From 323bb2e161b31e26b2818b9090d186537b8e2771 Mon Sep 17 00:00:00 2001 From: tjjfvi Date: Thu, 10 Nov 2022 09:58:23 -0800 Subject: [PATCH] move stuff to types directory --- codegen/_output/kusama/bitvec/order.ts | 11 - codegen/_output/kusama/codecs.ts | 3136 +++++++++-------- .../Equivocation/$$finality_grandpa.ts | 31 - .../_output/kusama/finality_grandpa/mod.ts | 27 - .../PerDispatchClass/$$frame_system/limits.ts | 19 - .../$$sp_weights/weight_v2.ts | 19 - .../dispatch/PerDispatchClass/mod.ts | 18 - .../kusama/frame_support/dispatch/mod.ts | 55 - codegen/_output/kusama/frame_support/mod.ts | 14 - .../kusama/frame_support/traits/misc.ts | 5 - .../kusama/frame_support/traits/preimages.ts | 40 - .../frame_support/traits/tokens/misc.ts | 7 - .../frame_system/extensions/check_genesis.ts | 12 - .../extensions/check_non_zero_sender.ts | 13 - .../extensions/check_spec_version.ts | 13 - .../extensions/check_tx_version.ts | 12 - .../frame_system/extensions/check_weight.ts | 11 - codegen/_output/kusama/frame_system/limits.ts | 38 - codegen/_output/kusama/frame_system/mod.ts | 74 - codegen/_output/kusama/mod.ts | 71 +- .../_output/kusama/pallet_authorship/mod.ts | 31 - .../_output/kusama/pallet_bags_list/list.ts | 32 - codegen/_output/kusama/pallet_balances/mod.ts | 49 - codegen/_output/kusama/pallet_bounties/mod.ts | 80 - .../kusama/pallet_child_bounties/mod.ts | 64 - .../_output/kusama/pallet_collective/mod.ts | 52 - .../kusama/pallet_democracy/conviction.ts | 14 - .../_output/kusama/pallet_democracy/types.ts | 67 - .../_output/kusama/pallet_democracy/vote.ts | 79 - .../kusama/pallet_democracy/vote_threshold.ts | 7 - .../mod.ts | 100 - .../signed.ts | 20 - .../kusama/pallet_elections_phragmen/mod.ts | 59 - .../kusama/pallet_fast_unstake/types.ts | 15 - codegen/_output/kusama/pallet_grandpa/mod.ts | 60 - .../_output/kusama/pallet_identity/types.ts | 498 --- .../_output/kusama/pallet_im_online/mod.ts | 32 - .../pallet_im_online/sr25519/app_sr25519.ts | 19 - codegen/_output/kusama/pallet_multisig/mod.ts | 29 - .../ConfigOp/$$sp_core/crypto.ts | 35 - .../pallet_nomination_pools/ConfigOp/mod.ts | 65 - .../kusama/pallet_nomination_pools/mod.ts | 106 - codegen/_output/kusama/pallet_preimage/mod.ts | 34 - codegen/_output/kusama/pallet_proxy/mod.ts | 29 - .../_output/kusama/pallet_scheduler/mod.ts | 19 - codegen/_output/kusama/pallet_staking/mod.ts | 177 - .../ConfigOp/$$sp_arithmetic/per_things.ts | 67 - .../pallet/pallet/ConfigOp/mod.ts | 65 - .../_output/kusama/pallet_staking/slashing.ts | 27 - codegen/_output/kusama/pallet_tips/mod.ts | 21 - .../kusama/pallet_transaction_payment/mod.ts | 9 - codegen/_output/kusama/pallet_treasury/mod.ts | 18 - codegen/_output/kusama/pallet_vesting/mod.ts | 10 - .../kusama/pallet_vesting/vesting_info.ts | 15 - codegen/_output/kusama/pallets/Auctions.ts | 10 +- codegen/_output/kusama/pallets/Authorship.ts | 4 +- codegen/_output/kusama/pallets/Babe.ts | 12 +- codegen/_output/kusama/pallets/Balances.ts | 24 +- codegen/_output/kusama/pallets/Bounties.ts | 36 +- .../_output/kusama/pallets/ChildBounties.ts | 28 +- codegen/_output/kusama/pallets/Claims.ts | 20 +- .../_output/kusama/pallets/Configuration.ts | 207 +- codegen/_output/kusama/pallets/Council.ts | 28 +- codegen/_output/kusama/pallets/Crowdloan.ts | 36 +- codegen/_output/kusama/pallets/Democracy.ts | 68 +- .../pallets/ElectionProviderMultiPhase.ts | 20 +- codegen/_output/kusama/pallets/FastUnstake.ts | 8 +- codegen/_output/kusama/pallets/Grandpa.ts | 12 +- codegen/_output/kusama/pallets/Hrmp.ts | 41 +- codegen/_output/kusama/pallets/Identity.ts | 56 +- codegen/_output/kusama/pallets/ImOnline.ts | 4 +- codegen/_output/kusama/pallets/Indices.ts | 20 +- codegen/_output/kusama/pallets/Initializer.ts | 4 +- codegen/_output/kusama/pallets/Multisig.ts | 16 +- .../_output/kusama/pallets/NominationPools.ts | 50 +- .../_output/kusama/pallets/ParaInherent.ts | 4 +- codegen/_output/kusama/pallets/Paras.ts | 44 +- .../_output/kusama/pallets/ParasDisputes.ts | 2 +- .../kusama/pallets/PhragmenElection.ts | 22 +- codegen/_output/kusama/pallets/Preimage.ts | 16 +- codegen/_output/kusama/pallets/Proxy.ts | 38 +- codegen/_output/kusama/pallets/Registrar.ts | 37 +- codegen/_output/kusama/pallets/Scheduler.ts | 24 +- codegen/_output/kusama/pallets/Session.ts | 6 +- codegen/_output/kusama/pallets/Slots.ts | 12 +- codegen/_output/kusama/pallets/Staking.ts | 92 +- codegen/_output/kusama/pallets/System.ts | 36 +- .../kusama/pallets/TechnicalCommittee.ts | 28 +- .../kusama/pallets/TechnicalMembership.ts | 26 +- codegen/_output/kusama/pallets/Timestamp.ts | 4 +- codegen/_output/kusama/pallets/Tips.ts | 24 +- codegen/_output/kusama/pallets/Treasury.ts | 20 +- codegen/_output/kusama/pallets/Ump.ts | 4 +- codegen/_output/kusama/pallets/Utility.ts | 20 +- codegen/_output/kusama/pallets/Vesting.ts | 18 +- codegen/_output/kusama/pallets/VoterList.ts | 8 +- codegen/_output/kusama/pallets/XcmPallet.ts | 40 +- .../kusama/polkadot_core_primitives.ts | 47 - .../kusama/polkadot_parachain/primitives.ts | 47 - .../polkadot_primitives/v2/assignment_app.ts | 11 - .../polkadot_primitives/v2/collator_app.ts | 19 - .../kusama/polkadot_primitives/v2/mod.ts | 368 -- .../kusama/polkadot_primitives/v2/signed.ts | 16 - .../polkadot_primitives/v2/validator_app.ts | 19 - codegen/_output/kusama/polkadot_runtime.ts | 1223 ------- .../polkadot_runtime_common/claims/mod.ts | 35 - .../polkadot_runtime_common/crowdloan/mod.ts | 58 - .../paras_registrar/mod.ts | 17 - .../configuration/mod.ts | 61 - .../disputes/mod.ts | 15 - .../polkadot_runtime_parachains/dmp/pallet.ts | 8 - .../polkadot_runtime_parachains/hrmp/mod.ts | 41 - .../inclusion/mod.ts | 41 - .../initializer/mod.ts | 21 - .../origin/pallet.ts | 18 - .../polkadot_runtime_parachains/paras/mod.ts | 100 - .../polkadot_runtime_parachains/scheduler.ts | 68 - .../shared/pallet.ts | 8 - codegen/_output/kusama/primitive_types.ts | 11 - .../kusama/sp_arithmetic/fixed_point.ts | 11 - .../kusama/sp_arithmetic/per_things.ts | 35 - .../kusama/sp_authority_discovery/app.ts | 11 - .../_output/kusama/sp_consensus_babe/app.ts | 11 - .../kusama/sp_consensus_babe/digests.ts | 98 - .../_output/kusama/sp_consensus_babe/mod.ts | 25 - codegen/_output/kusama/sp_consensus_slots.ts | 24 - codegen/_output/kusama/sp_core/crypto.ts | 19 - codegen/_output/kusama/sp_core/ecdsa.ts | 19 - codegen/_output/kusama/sp_core/ed25519.ts | 19 - codegen/_output/kusama/sp_core/mod.ts | 21 - codegen/_output/kusama/sp_core/offchain.ts | 22 - codegen/_output/kusama/sp_core/sr25519.ts | 19 - .../_output/kusama/sp_finality_grandpa/app.ts | 19 - .../_output/kusama/sp_finality_grandpa/mod.ts | 42 - codegen/_output/kusama/sp_npos_elections.ts | 26 - .../kusama/sp_runtime/generic/digest.ts | 66 - .../kusama/sp_runtime/generic/header.ts | 17 - codegen/_output/kusama/sp_runtime/mod.ts | 218 -- .../_output/kusama/sp_runtime/multiaddress.ts | 59 - codegen/_output/kusama/sp_runtime/traits.ts | 11 - codegen/_output/kusama/sp_session.ts | 15 - codegen/_output/kusama/sp_staking/offence.ts | 14 - codegen/_output/kusama/sp_version.ts | 20 - codegen/_output/kusama/sp_weights/mod.ts | 24 - .../_output/kusama/sp_weights/weight_v2.ts | 14 - .../_output/kusama/{ => types}/bitvec/mod.ts | 0 codegen/_output/kusama/types/bitvec/order.ts | 11 + .../Equivocation/$$finality_grandpa.ts | 34 + .../finality_grandpa/Equivocation/mod.ts | 0 .../kusama/types/finality_grandpa/mod.ts | 27 + .../PerDispatchClass/$$frame_system/limits.ts | 19 + .../PerDispatchClass/$$frame_system/mod.ts | 0 .../PerDispatchClass/$$sp_weights/mod.ts | 0 .../$$sp_weights/weight_v2.ts | 19 + .../dispatch/PerDispatchClass/mod.ts | 18 + .../types/frame_support/dispatch/mod.ts | 55 + .../_output/kusama/types/frame_support/mod.ts | 14 + .../kusama/types/frame_support/traits/misc.ts | 6 + .../{ => types}/frame_support/traits/mod.ts | 0 .../types/frame_support/traits/preimages.ts | 40 + .../types/frame_support/traits/tokens/misc.ts | 8 + .../frame_support/traits/tokens/mod.ts | 0 .../frame_system/extensions/check_genesis.ts | 12 + .../extensions/check_non_zero_sender.ts | 13 + .../extensions/check_spec_version.ts | 13 + .../extensions/check_tx_version.ts | 13 + .../frame_system/extensions/check_weight.ts | 12 + .../frame_system/extensions/mod.ts | 0 .../kusama/types/frame_system/limits.ts | 38 + .../_output/kusama/types/frame_system/mod.ts | 75 + .../kusama/{ => types}/frame_system/pallet.ts | 120 +- codegen/_output/kusama/types/mod.ts | 70 + .../kusama/types/pallet_authorship/mod.ts | 31 + .../types}/pallet_authorship/pallet.ts | 18 +- .../kusama/{ => types}/pallet_babe/mod.ts | 0 .../types}/pallet_babe/pallet.ts | 38 +- .../kusama/types/pallet_bags_list/list.ts | 32 + .../{ => types}/pallet_bags_list/mod.ts | 0 .../types}/pallet_bags_list/pallet.ts | 58 +- .../kusama/types/pallet_balances/mod.ts | 49 + .../types}/pallet_balances/pallet.ts | 182 +- .../kusama/types/pallet_bounties/mod.ts | 80 + .../types}/pallet_bounties/pallet.ts | 154 +- .../kusama/types/pallet_child_bounties/mod.ts | 65 + .../types}/pallet_child_bounties/pallet.ts | 134 +- .../kusama/types/pallet_collective/mod.ts | 52 + .../types}/pallet_collective/pallet.ts | 168 +- .../types/pallet_democracy/conviction.ts | 14 + .../{ => types}/pallet_democracy/mod.ts | 0 .../types}/pallet_democracy/pallet.ts | 290 +- .../kusama/types/pallet_democracy/types.ts | 68 + .../kusama/types/pallet_democracy/vote.ts | 79 + .../types/pallet_democracy/vote_threshold.ts | 8 + .../mod.ts | 104 + .../pallet.ts | 127 +- .../signed.ts | 20 + .../types/pallet_elections_phragmen/mod.ts | 59 + .../pallet_elections_phragmen/pallet.ts | 112 +- .../{ => types}/pallet_fast_unstake/mod.ts | 0 .../types}/pallet_fast_unstake/pallet.ts | 72 +- .../kusama/types/pallet_fast_unstake/types.ts | 16 + .../kusama/types/pallet_grandpa/mod.ts | 60 + .../{ => types}/pallet_grandpa/pallet.ts | 58 +- .../kusama/{ => types}/pallet_identity/mod.ts | 0 .../types}/pallet_identity/pallet.ts | 244 +- .../kusama/types/pallet_identity/types.ts | 498 +++ .../kusama/types/pallet_im_online/mod.ts | 35 + .../types}/pallet_im_online/pallet.ts | 42 +- .../pallet_im_online/sr25519/app_sr25519.ts | 20 + .../pallet_im_online/sr25519/mod.ts | 0 .../kusama/{ => types}/pallet_indices/mod.ts | 0 .../{ => types}/pallet_indices/pallet.ts | 84 +- .../{ => types}/pallet_membership/mod.ts | 0 .../types}/pallet_membership/pallet.ts | 66 +- .../kusama/types/pallet_multisig/mod.ts | 29 + .../{ => types}/pallet_multisig/pallet.ts | 112 +- .../ConfigOp/$$sp_core/crypto.ts | 35 + .../ConfigOp/$$sp_core/mod.ts | 0 .../pallet_nomination_pools/ConfigOp/mod.ts | 65 + .../types/pallet_nomination_pools/mod.ts | 107 + .../types}/pallet_nomination_pools/pallet.ts | 361 +- .../kusama/{ => types}/pallet_offences/mod.ts | 0 .../{ => types}/pallet_offences/pallet.ts | 14 +- .../kusama/types/pallet_preimage/mod.ts | 34 + .../types}/pallet_preimage/pallet.ts | 66 +- .../_output/kusama/types/pallet_proxy/mod.ts | 29 + .../kusama/{ => types}/pallet_proxy/pallet.ts | 186 +- .../kusama/types/pallet_scheduler/mod.ts | 19 + .../{ => types}/pallet_scheduler/pallet.ts | 138 +- .../kusama/{ => types}/pallet_session/mod.ts | 0 .../types}/pallet_session/pallet.ts | 32 +- .../kusama/types/pallet_staking/mod.ts | 177 + .../{ => types}/pallet_staking/pallet/mod.ts | 0 .../pallet/ConfigOp/$$sp_arithmetic/mod.ts | 0 .../ConfigOp/$$sp_arithmetic/per_things.ts | 69 + .../pallet/pallet/ConfigOp/mod.ts | 65 + .../pallet_staking/pallet/pallet/mod.ts | 335 +- .../kusama/types/pallet_staking/slashing.ts | 27 + .../{ => types}/pallet_timestamp/mod.ts | 0 .../types}/pallet_timestamp/pallet.ts | 16 +- .../_output/kusama/types/pallet_tips/mod.ts | 21 + .../types}/pallet_tips/pallet.ts | 112 +- .../types/pallet_transaction_payment/mod.ts | 9 + .../pallet_transaction_payment/pallet.ts | 20 +- .../kusama/types/pallet_treasury/mod.ts | 18 + .../types}/pallet_treasury/pallet.ts | 130 +- .../kusama/{ => types}/pallet_utility/mod.ts | 0 .../{ => types}/pallet_utility/pallet.ts | 94 +- .../kusama/types/pallet_vesting/mod.ts | 10 + .../types}/pallet_vesting/pallet.ts | 74 +- .../types/pallet_vesting/vesting_info.ts | 15 + .../kusama/{ => types}/pallet_xcm/mod.ts | 0 .../types}/pallet_xcm/pallet.ts | 354 +- .../kusama/types/polkadot_core_primitives.ts | 50 + .../{ => types}/polkadot_parachain/mod.ts | 0 .../types/polkadot_parachain/primitives.ts | 52 + .../{ => types}/polkadot_primitives/mod.ts | 0 .../polkadot_primitives/v2/assignment_app.ts | 11 + .../polkadot_primitives/v2/collator_app.ts | 20 + .../types/polkadot_primitives/v2/mod.ts | 375 ++ .../types/polkadot_primitives/v2/signed.ts | 16 + .../polkadot_primitives/v2/validator_app.ts | 20 + .../_output/kusama/types/polkadot_runtime.ts | 1224 +++++++ .../polkadot_runtime_common/auctions/mod.ts | 0 .../auctions/pallet.ts | 122 +- .../polkadot_runtime_common/claims/mod.ts | 38 + .../polkadot_runtime_common/claims/pallet.ts | 76 +- .../polkadot_runtime_common/crowdloan/mod.ts | 59 + .../crowdloan/pallet.ts | 204 +- .../polkadot_runtime_common/mod.ts | 0 .../paras_registrar/mod.ts | 18 + .../paras_registrar/pallet.ts | 132 +- .../polkadot_runtime_common/slots/mod.ts | 0 .../polkadot_runtime_common/slots/pallet.ts | 70 +- .../configuration/mod.ts | 61 + .../configuration/pallet.ts | 386 +- .../disputes/mod.ts | 16 + .../disputes/pallet.ts | 50 +- .../polkadot_runtime_parachains/dmp/mod.ts | 0 .../polkadot_runtime_parachains/dmp/pallet.ts | 8 + .../polkadot_runtime_parachains/hrmp/mod.ts | 42 + .../hrmp/pallet.ts | 166 +- .../inclusion/mod.ts | 41 + .../inclusion/pallet.ts | 54 +- .../initializer/mod.ts | 21 + .../initializer/pallet.ts | 17 +- .../polkadot_runtime_parachains/mod.ts | 0 .../polkadot_runtime_parachains/origin/mod.ts | 0 .../origin/pallet.ts | 19 + .../polkadot_runtime_parachains/paras/mod.ts | 106 + .../paras/pallet.ts | 167 +- .../paras_inherent/mod.ts | 0 .../paras_inherent/pallet.ts | 19 +- .../polkadot_runtime_parachains/scheduler.ts | 75 + .../polkadot_runtime_parachains/shared/mod.ts | 0 .../shared/pallet.ts | 8 + .../polkadot_runtime_parachains/ump/mod.ts | 0 .../polkadot_runtime_parachains/ump/pallet.ts | 79 +- .../_output/kusama/types/primitive_types.ts | 11 + .../kusama/types/sp_arithmetic/fixed_point.ts | 11 + .../kusama/{ => types}/sp_arithmetic/mod.ts | 0 .../kusama/types/sp_arithmetic/per_things.ts | 35 + .../types/sp_authority_discovery/app.ts | 11 + .../{ => types}/sp_authority_discovery/mod.ts | 0 .../kusama/types/sp_consensus_babe/app.ts | 11 + .../kusama/types/sp_consensus_babe/digests.ts | 103 + .../kusama/types/sp_consensus_babe/mod.ts | 25 + .../kusama/types/sp_consensus_slots.ts | 24 + .../_output/kusama/types/sp_core/crypto.ts | 19 + codegen/_output/kusama/types/sp_core/ecdsa.ts | 19 + .../_output/kusama/types/sp_core/ed25519.ts | 19 + codegen/_output/kusama/types/sp_core/mod.ts | 21 + .../_output/kusama/types/sp_core/offchain.ts | 22 + .../_output/kusama/types/sp_core/sr25519.ts | 19 + .../kusama/types/sp_finality_grandpa/app.ts | 19 + .../kusama/types/sp_finality_grandpa/mod.ts | 43 + .../_output/kusama/types/sp_npos_elections.ts | 26 + .../kusama/types/sp_runtime/generic/digest.ts | 66 + .../kusama/types/sp_runtime/generic/header.ts | 17 + .../{ => types}/sp_runtime/generic/mod.ts | 0 .../_output/kusama/types/sp_runtime/mod.ts | 218 ++ .../kusama/types/sp_runtime/multiaddress.ts | 59 + .../_output/kusama/types/sp_runtime/traits.ts | 11 + codegen/_output/kusama/types/sp_session.ts | 15 + .../kusama/{ => types}/sp_staking/mod.ts | 0 .../kusama/types/sp_staking/offence.ts | 14 + codegen/_output/kusama/types/sp_version.ts | 20 + .../_output/kusama/types/sp_weights/mod.ts | 24 + .../kusama/types/sp_weights/weight_v2.ts | 14 + codegen/_output/kusama/types/xcm/mod.ts | 125 + .../_output/kusama/types/xcm/v0/junction.ts | 261 ++ codegen/_output/kusama/types/xcm/v0/mod.ts | 157 + .../kusama/types/xcm/v0/multi_asset.ts | 121 + .../kusama/types/xcm/v0/multi_location.ts | 135 + codegen/_output/kusama/types/xcm/v0/order.ts | 100 + .../_output/kusama/types/xcm/v1/junction.ts | 100 + codegen/_output/kusama/types/xcm/v1/mod.ts | 180 + .../_output/kusama/types/xcm/v1/multiasset.ts | 201 ++ .../kusama/types/xcm/v1/multilocation.ts | 146 + codegen/_output/kusama/types/xcm/v1/order.ts | 102 + codegen/_output/kusama/types/xcm/v2/mod.ts | 372 ++ codegen/_output/kusama/types/xcm/v2/traits.ts | 233 ++ codegen/_output/kusama/xcm/mod.ts | 110 - codegen/_output/kusama/xcm/v0/junction.ts | 261 -- codegen/_output/kusama/xcm/v0/mod.ts | 153 - codegen/_output/kusama/xcm/v0/multi_asset.ts | 121 - .../_output/kusama/xcm/v0/multi_location.ts | 131 - codegen/_output/kusama/xcm/v0/order.ts | 100 - codegen/_output/kusama/xcm/v1/junction.ts | 100 - codegen/_output/kusama/xcm/v1/mod.ts | 174 - codegen/_output/kusama/xcm/v1/multiasset.ts | 199 -- .../_output/kusama/xcm/v1/multilocation.ts | 142 - codegen/_output/kusama/xcm/v1/order.ts | 102 - codegen/_output/kusama/xcm/v2/mod.ts | 366 -- codegen/_output/kusama/xcm/v2/traits.ts | 231 -- codegen/_output/polkadot/bitvec/order.ts | 11 - codegen/_output/polkadot/codecs.ts | 3136 +++++++++-------- .../Equivocation/$$finality_grandpa.ts | 31 - .../_output/polkadot/finality_grandpa/mod.ts | 27 - .../PerDispatchClass/$$frame_system/limits.ts | 19 - .../$$sp_weights/weight_v2.ts | 19 - .../dispatch/PerDispatchClass/mod.ts | 18 - .../polkadot/frame_support/dispatch/mod.ts | 55 - codegen/_output/polkadot/frame_support/mod.ts | 14 - .../polkadot/frame_support/traits/misc.ts | 5 - .../frame_support/traits/preimages.ts | 40 - .../frame_support/traits/tokens/misc.ts | 7 - .../frame_system/extensions/check_genesis.ts | 12 - .../extensions/check_non_zero_sender.ts | 13 - .../extensions/check_spec_version.ts | 13 - .../extensions/check_tx_version.ts | 12 - .../frame_system/extensions/check_weight.ts | 11 - .../_output/polkadot/frame_system/limits.ts | 38 - codegen/_output/polkadot/frame_system/mod.ts | 74 - codegen/_output/polkadot/mod.ts | 71 +- .../_output/polkadot/pallet_authorship/mod.ts | 31 - .../_output/polkadot/pallet_bags_list/list.ts | 32 - .../_output/polkadot/pallet_balances/mod.ts | 49 - .../_output/polkadot/pallet_bounties/mod.ts | 80 - .../polkadot/pallet_child_bounties/mod.ts | 64 - .../_output/polkadot/pallet_collective/mod.ts | 52 - .../polkadot/pallet_democracy/conviction.ts | 14 - .../polkadot/pallet_democracy/types.ts | 67 - .../_output/polkadot/pallet_democracy/vote.ts | 79 - .../pallet_democracy/vote_threshold.ts | 7 - .../mod.ts | 100 - .../signed.ts | 20 - .../polkadot/pallet_elections_phragmen/mod.ts | 59 - .../polkadot/pallet_fast_unstake/types.ts | 15 - .../_output/polkadot/pallet_grandpa/mod.ts | 60 - .../_output/polkadot/pallet_identity/types.ts | 498 --- .../_output/polkadot/pallet_im_online/mod.ts | 32 - .../pallet_im_online/sr25519/app_sr25519.ts | 19 - .../_output/polkadot/pallet_multisig/mod.ts | 29 - .../ConfigOp/$$sp_core/crypto.ts | 35 - .../pallet_nomination_pools/ConfigOp/mod.ts | 65 - .../polkadot/pallet_nomination_pools/mod.ts | 106 - .../_output/polkadot/pallet_preimage/mod.ts | 34 - codegen/_output/polkadot/pallet_proxy/mod.ts | 29 - .../_output/polkadot/pallet_scheduler/mod.ts | 19 - .../_output/polkadot/pallet_staking/mod.ts | 177 - .../ConfigOp/$$sp_arithmetic/per_things.ts | 67 - .../pallet/pallet/ConfigOp/mod.ts | 65 - .../polkadot/pallet_staking/slashing.ts | 27 - codegen/_output/polkadot/pallet_tips/mod.ts | 21 - .../pallet_transaction_payment/mod.ts | 9 - .../_output/polkadot/pallet_treasury/mod.ts | 18 - .../_output/polkadot/pallet_vesting/mod.ts | 10 - .../polkadot/pallet_vesting/vesting_info.ts | 15 - codegen/_output/polkadot/pallets/Auctions.ts | 10 +- .../_output/polkadot/pallets/Authorship.ts | 4 +- codegen/_output/polkadot/pallets/Babe.ts | 12 +- codegen/_output/polkadot/pallets/Balances.ts | 24 +- codegen/_output/polkadot/pallets/Bounties.ts | 36 +- .../_output/polkadot/pallets/ChildBounties.ts | 28 +- codegen/_output/polkadot/pallets/Claims.ts | 20 +- .../_output/polkadot/pallets/Configuration.ts | 207 +- codegen/_output/polkadot/pallets/Council.ts | 28 +- codegen/_output/polkadot/pallets/Crowdloan.ts | 36 +- codegen/_output/polkadot/pallets/Democracy.ts | 68 +- .../pallets/ElectionProviderMultiPhase.ts | 20 +- .../_output/polkadot/pallets/FastUnstake.ts | 8 +- codegen/_output/polkadot/pallets/Grandpa.ts | 12 +- codegen/_output/polkadot/pallets/Hrmp.ts | 41 +- codegen/_output/polkadot/pallets/Identity.ts | 56 +- codegen/_output/polkadot/pallets/ImOnline.ts | 4 +- codegen/_output/polkadot/pallets/Indices.ts | 20 +- .../_output/polkadot/pallets/Initializer.ts | 4 +- codegen/_output/polkadot/pallets/Multisig.ts | 16 +- .../polkadot/pallets/NominationPools.ts | 50 +- .../_output/polkadot/pallets/ParaInherent.ts | 4 +- codegen/_output/polkadot/pallets/Paras.ts | 44 +- .../_output/polkadot/pallets/ParasDisputes.ts | 2 +- .../polkadot/pallets/PhragmenElection.ts | 22 +- codegen/_output/polkadot/pallets/Preimage.ts | 16 +- codegen/_output/polkadot/pallets/Proxy.ts | 38 +- codegen/_output/polkadot/pallets/Registrar.ts | 37 +- codegen/_output/polkadot/pallets/Scheduler.ts | 24 +- codegen/_output/polkadot/pallets/Session.ts | 6 +- codegen/_output/polkadot/pallets/Slots.ts | 12 +- codegen/_output/polkadot/pallets/Staking.ts | 92 +- codegen/_output/polkadot/pallets/System.ts | 36 +- .../polkadot/pallets/TechnicalCommittee.ts | 28 +- .../polkadot/pallets/TechnicalMembership.ts | 26 +- codegen/_output/polkadot/pallets/Timestamp.ts | 4 +- codegen/_output/polkadot/pallets/Tips.ts | 24 +- codegen/_output/polkadot/pallets/Treasury.ts | 20 +- codegen/_output/polkadot/pallets/Ump.ts | 4 +- codegen/_output/polkadot/pallets/Utility.ts | 20 +- codegen/_output/polkadot/pallets/Vesting.ts | 18 +- codegen/_output/polkadot/pallets/VoterList.ts | 8 +- codegen/_output/polkadot/pallets/XcmPallet.ts | 40 +- .../polkadot/polkadot_core_primitives.ts | 47 - .../polkadot/polkadot_parachain/primitives.ts | 47 - .../polkadot_primitives/v2/assignment_app.ts | 11 - .../polkadot_primitives/v2/collator_app.ts | 19 - .../polkadot/polkadot_primitives/v2/mod.ts | 368 -- .../polkadot/polkadot_primitives/v2/signed.ts | 16 - .../polkadot_primitives/v2/validator_app.ts | 19 - codegen/_output/polkadot/polkadot_runtime.ts | 1223 ------- .../polkadot_runtime_common/claims/mod.ts | 35 - .../polkadot_runtime_common/crowdloan/mod.ts | 58 - .../paras_registrar/mod.ts | 17 - .../configuration/mod.ts | 61 - .../disputes/mod.ts | 15 - .../polkadot_runtime_parachains/dmp/pallet.ts | 8 - .../polkadot_runtime_parachains/hrmp/mod.ts | 41 - .../inclusion/mod.ts | 41 - .../initializer/mod.ts | 21 - .../origin/pallet.ts | 18 - .../polkadot_runtime_parachains/paras/mod.ts | 100 - .../polkadot_runtime_parachains/scheduler.ts | 68 - .../shared/pallet.ts | 8 - codegen/_output/polkadot/primitive_types.ts | 11 - .../polkadot/sp_arithmetic/fixed_point.ts | 11 - .../polkadot/sp_arithmetic/per_things.ts | 35 - .../polkadot/sp_authority_discovery/app.ts | 11 - .../_output/polkadot/sp_consensus_babe/app.ts | 11 - .../polkadot/sp_consensus_babe/digests.ts | 98 - .../_output/polkadot/sp_consensus_babe/mod.ts | 25 - .../_output/polkadot/sp_consensus_slots.ts | 24 - codegen/_output/polkadot/sp_core/crypto.ts | 19 - codegen/_output/polkadot/sp_core/ecdsa.ts | 19 - codegen/_output/polkadot/sp_core/ed25519.ts | 19 - codegen/_output/polkadot/sp_core/mod.ts | 21 - codegen/_output/polkadot/sp_core/offchain.ts | 22 - codegen/_output/polkadot/sp_core/sr25519.ts | 19 - .../polkadot/sp_finality_grandpa/app.ts | 19 - .../polkadot/sp_finality_grandpa/mod.ts | 42 - codegen/_output/polkadot/sp_npos_elections.ts | 26 - .../polkadot/sp_runtime/generic/digest.ts | 66 - .../polkadot/sp_runtime/generic/header.ts | 17 - codegen/_output/polkadot/sp_runtime/mod.ts | 218 -- .../polkadot/sp_runtime/multiaddress.ts | 59 - codegen/_output/polkadot/sp_runtime/traits.ts | 11 - codegen/_output/polkadot/sp_session.ts | 15 - .../_output/polkadot/sp_staking/offence.ts | 14 - codegen/_output/polkadot/sp_version.ts | 20 - codegen/_output/polkadot/sp_weights/mod.ts | 24 - .../_output/polkadot/sp_weights/weight_v2.ts | 14 - .../polkadot/{ => types}/bitvec/mod.ts | 0 .../_output/polkadot/types/bitvec/order.ts | 11 + .../Equivocation/$$finality_grandpa.ts | 34 + .../finality_grandpa/Equivocation/mod.ts | 0 .../polkadot/types/finality_grandpa/mod.ts | 27 + .../PerDispatchClass/$$frame_system/limits.ts | 19 + .../PerDispatchClass/$$frame_system/mod.ts | 0 .../PerDispatchClass/$$sp_weights/mod.ts | 0 .../$$sp_weights/weight_v2.ts | 19 + .../dispatch/PerDispatchClass/mod.ts | 18 + .../types/frame_support/dispatch/mod.ts | 55 + .../polkadot/types/frame_support/mod.ts | 14 + .../types/frame_support/traits/misc.ts | 6 + .../{ => types}/frame_support/traits/mod.ts | 0 .../types/frame_support/traits/preimages.ts | 40 + .../types/frame_support/traits/tokens/misc.ts | 8 + .../frame_support/traits/tokens/mod.ts | 0 .../frame_system/extensions/check_genesis.ts | 12 + .../extensions/check_non_zero_sender.ts | 13 + .../extensions/check_spec_version.ts | 13 + .../extensions/check_tx_version.ts | 13 + .../frame_system/extensions/check_weight.ts | 12 + .../frame_system/extensions/mod.ts | 0 .../polkadot/types/frame_system/limits.ts | 38 + .../polkadot/types/frame_system/mod.ts | 75 + .../types}/frame_system/pallet.ts | 120 +- codegen/_output/polkadot/types/mod.ts | 70 + .../polkadot/types/pallet_authorship/mod.ts | 31 + .../{ => types}/pallet_authorship/pallet.ts | 18 +- .../polkadot/{ => types}/pallet_babe/mod.ts | 0 .../{ => types}/pallet_babe/pallet.ts | 38 +- .../polkadot/types/pallet_bags_list/list.ts | 32 + .../{ => types}/pallet_bags_list/mod.ts | 0 .../types}/pallet_bags_list/pallet.ts | 58 +- .../polkadot/types/pallet_balances/mod.ts | 49 + .../types}/pallet_balances/pallet.ts | 182 +- .../polkadot/types/pallet_bounties/mod.ts | 80 + .../types}/pallet_bounties/pallet.ts | 154 +- .../types/pallet_child_bounties/mod.ts | 65 + .../types}/pallet_child_bounties/pallet.ts | 134 +- .../polkadot/types/pallet_collective/mod.ts | 52 + .../types}/pallet_collective/pallet.ts | 168 +- .../types/pallet_democracy/conviction.ts | 14 + .../{ => types}/pallet_democracy/mod.ts | 0 .../types}/pallet_democracy/pallet.ts | 290 +- .../polkadot/types/pallet_democracy/types.ts | 68 + .../polkadot/types/pallet_democracy/vote.ts | 79 + .../types/pallet_democracy/vote_threshold.ts | 8 + .../mod.ts | 104 + .../pallet.ts | 127 +- .../signed.ts | 20 + .../types/pallet_elections_phragmen/mod.ts | 59 + .../pallet_elections_phragmen/pallet.ts | 112 +- .../{ => types}/pallet_fast_unstake/mod.ts | 0 .../types}/pallet_fast_unstake/pallet.ts | 72 +- .../types/pallet_fast_unstake/types.ts | 16 + .../polkadot/types/pallet_grandpa/mod.ts | 60 + .../{ => types}/pallet_grandpa/pallet.ts | 58 +- .../{ => types}/pallet_identity/mod.ts | 0 .../types}/pallet_identity/pallet.ts | 244 +- .../polkadot/types/pallet_identity/types.ts | 498 +++ .../polkadot/types/pallet_im_online/mod.ts | 35 + .../types}/pallet_im_online/pallet.ts | 42 +- .../pallet_im_online/sr25519/app_sr25519.ts | 20 + .../pallet_im_online/sr25519/mod.ts | 0 .../{ => types}/pallet_indices/mod.ts | 0 .../types}/pallet_indices/pallet.ts | 84 +- .../{ => types}/pallet_membership/mod.ts | 0 .../types}/pallet_membership/pallet.ts | 66 +- .../polkadot/types/pallet_multisig/mod.ts | 29 + .../types}/pallet_multisig/pallet.ts | 112 +- .../ConfigOp/$$sp_core/crypto.ts | 35 + .../ConfigOp/$$sp_core/mod.ts | 0 .../pallet_nomination_pools/ConfigOp/mod.ts | 65 + .../types/pallet_nomination_pools/mod.ts | 107 + .../pallet_nomination_pools/pallet.ts | 361 +- .../{ => types}/pallet_offences/mod.ts | 0 .../types}/pallet_offences/pallet.ts | 14 +- .../polkadot/types/pallet_preimage/mod.ts | 34 + .../{ => types}/pallet_preimage/pallet.ts | 66 +- .../polkadot/types/pallet_proxy/mod.ts | 29 + .../types}/pallet_proxy/pallet.ts | 186 +- .../polkadot/types/pallet_scheduler/mod.ts | 19 + .../types}/pallet_scheduler/pallet.ts | 138 +- .../{ => types}/pallet_session/mod.ts | 0 .../{ => types}/pallet_session/pallet.ts | 32 +- .../polkadot/types/pallet_staking/mod.ts | 177 + .../{ => types}/pallet_staking/pallet/mod.ts | 0 .../pallet/ConfigOp/$$sp_arithmetic/mod.ts | 0 .../ConfigOp/$$sp_arithmetic/per_things.ts | 69 + .../pallet/pallet/ConfigOp/mod.ts | 65 + .../pallet_staking/pallet/pallet/mod.ts | 335 +- .../polkadot/types/pallet_staking/slashing.ts | 27 + .../{ => types}/pallet_timestamp/mod.ts | 0 .../types}/pallet_timestamp/pallet.ts | 16 +- .../_output/polkadot/types/pallet_tips/mod.ts | 21 + .../types}/pallet_tips/pallet.ts | 112 +- .../types/pallet_transaction_payment/mod.ts | 9 + .../pallet_transaction_payment/pallet.ts | 20 +- .../polkadot/types/pallet_treasury/mod.ts | 18 + .../types}/pallet_treasury/pallet.ts | 130 +- .../{ => types}/pallet_utility/mod.ts | 0 .../{ => types}/pallet_utility/pallet.ts | 94 +- .../polkadot/types/pallet_vesting/mod.ts | 10 + .../{ => types}/pallet_vesting/pallet.ts | 74 +- .../types/pallet_vesting/vesting_info.ts | 15 + .../polkadot/{ => types}/pallet_xcm/mod.ts | 0 .../polkadot/{ => types}/pallet_xcm/pallet.ts | 354 +- .../types/polkadot_core_primitives.ts | 50 + .../{ => types}/polkadot_parachain/mod.ts | 0 .../types/polkadot_parachain/primitives.ts | 52 + .../{ => types}/polkadot_primitives/mod.ts | 0 .../polkadot_primitives/v2/assignment_app.ts | 11 + .../polkadot_primitives/v2/collator_app.ts | 20 + .../types/polkadot_primitives/v2/mod.ts | 375 ++ .../types/polkadot_primitives/v2/signed.ts | 16 + .../polkadot_primitives/v2/validator_app.ts | 20 + .../polkadot/types/polkadot_runtime.ts | 1224 +++++++ .../polkadot_runtime_common/auctions/mod.ts | 0 .../auctions/pallet.ts | 122 +- .../polkadot_runtime_common/claims/mod.ts | 38 + .../polkadot_runtime_common/claims/pallet.ts | 76 +- .../polkadot_runtime_common/crowdloan/mod.ts | 59 + .../crowdloan/pallet.ts | 204 +- .../polkadot_runtime_common/mod.ts | 0 .../paras_registrar/mod.ts | 18 + .../paras_registrar/pallet.ts | 132 +- .../polkadot_runtime_common/slots/mod.ts | 0 .../polkadot_runtime_common/slots/pallet.ts | 70 +- .../configuration/mod.ts | 61 + .../configuration/pallet.ts | 386 +- .../disputes/mod.ts | 16 + .../disputes/pallet.ts | 50 +- .../polkadot_runtime_parachains/dmp/mod.ts | 0 .../polkadot_runtime_parachains/dmp/pallet.ts | 8 + .../polkadot_runtime_parachains/hrmp/mod.ts | 42 + .../hrmp/pallet.ts | 166 +- .../inclusion/mod.ts | 41 + .../inclusion/pallet.ts | 54 +- .../initializer/mod.ts | 21 + .../initializer/pallet.ts | 17 +- .../polkadot_runtime_parachains/mod.ts | 0 .../polkadot_runtime_parachains/origin/mod.ts | 0 .../origin/pallet.ts | 19 + .../polkadot_runtime_parachains/paras/mod.ts | 106 + .../paras/pallet.ts | 167 +- .../paras_inherent/mod.ts | 0 .../paras_inherent/pallet.ts | 19 +- .../polkadot_runtime_parachains/scheduler.ts | 75 + .../polkadot_runtime_parachains/shared/mod.ts | 0 .../shared/pallet.ts | 8 + .../polkadot_runtime_parachains/ump/mod.ts | 0 .../polkadot_runtime_parachains/ump/pallet.ts | 79 +- .../_output/polkadot/types/primitive_types.ts | 11 + .../types/sp_arithmetic/fixed_point.ts | 11 + .../polkadot/{ => types}/sp_arithmetic/mod.ts | 0 .../types/sp_arithmetic/per_things.ts | 35 + .../types/sp_authority_discovery/app.ts | 11 + .../{ => types}/sp_authority_discovery/mod.ts | 0 .../polkadot/types/sp_consensus_babe/app.ts | 11 + .../types/sp_consensus_babe/digests.ts | 103 + .../polkadot/types/sp_consensus_babe/mod.ts | 25 + .../polkadot/types/sp_consensus_slots.ts | 24 + .../_output/polkadot/types/sp_core/crypto.ts | 19 + .../_output/polkadot/types/sp_core/ecdsa.ts | 19 + .../_output/polkadot/types/sp_core/ed25519.ts | 19 + codegen/_output/polkadot/types/sp_core/mod.ts | 21 + .../polkadot/types/sp_core/offchain.ts | 22 + .../_output/polkadot/types/sp_core/sr25519.ts | 19 + .../polkadot/types/sp_finality_grandpa/app.ts | 19 + .../polkadot/types/sp_finality_grandpa/mod.ts | 43 + .../polkadot/types/sp_npos_elections.ts | 26 + .../types/sp_runtime/generic/digest.ts | 66 + .../types/sp_runtime/generic/header.ts | 17 + .../{ => types}/sp_runtime/generic/mod.ts | 0 .../_output/polkadot/types/sp_runtime/mod.ts | 218 ++ .../polkadot/types/sp_runtime/multiaddress.ts | 59 + .../polkadot/types/sp_runtime/traits.ts | 11 + codegen/_output/polkadot/types/sp_session.ts | 15 + .../polkadot/{ => types}/sp_staking/mod.ts | 0 .../polkadot/types/sp_staking/offence.ts | 14 + codegen/_output/polkadot/types/sp_version.ts | 20 + .../_output/polkadot/types/sp_weights/mod.ts | 24 + .../polkadot/types/sp_weights/weight_v2.ts | 14 + codegen/_output/polkadot/types/xcm/mod.ts | 125 + .../_output/polkadot/types/xcm/v0/junction.ts | 261 ++ codegen/_output/polkadot/types/xcm/v0/mod.ts | 157 + .../polkadot/types/xcm/v0/multi_asset.ts | 121 + .../polkadot/types/xcm/v0/multi_location.ts | 135 + .../_output/polkadot/types/xcm/v0/order.ts | 100 + .../_output/polkadot/types/xcm/v1/junction.ts | 100 + codegen/_output/polkadot/types/xcm/v1/mod.ts | 180 + .../polkadot/types/xcm/v1/multiasset.ts | 201 ++ .../polkadot/types/xcm/v1/multilocation.ts | 146 + .../_output/polkadot/types/xcm/v1/order.ts | 102 + codegen/_output/polkadot/types/xcm/v2/mod.ts | 372 ++ .../_output/polkadot/types/xcm/v2/traits.ts | 233 ++ codegen/_output/polkadot/xcm/mod.ts | 110 - codegen/_output/polkadot/xcm/v0/junction.ts | 261 -- codegen/_output/polkadot/xcm/v0/mod.ts | 153 - .../_output/polkadot/xcm/v0/multi_asset.ts | 121 - .../_output/polkadot/xcm/v0/multi_location.ts | 131 - codegen/_output/polkadot/xcm/v0/order.ts | 100 - codegen/_output/polkadot/xcm/v1/junction.ts | 100 - codegen/_output/polkadot/xcm/v1/mod.ts | 174 - codegen/_output/polkadot/xcm/v1/multiasset.ts | 199 -- .../_output/polkadot/xcm/v1/multilocation.ts | 142 - codegen/_output/polkadot/xcm/v1/order.ts | 102 - codegen/_output/polkadot/xcm/v2/mod.ts | 366 -- codegen/_output/polkadot/xcm/v2/traits.ts | 231 -- codegen/_output/rococo/bitvec/order.ts | 11 - codegen/_output/rococo/codecs.ts | 3136 +++++++++-------- .../Equivocation/$$finality_grandpa.ts | 31 - .../_output/rococo/finality_grandpa/mod.ts | 27 - .../PerDispatchClass/$$frame_system/limits.ts | 19 - .../$$sp_weights/weight_v2.ts | 19 - .../dispatch/PerDispatchClass/mod.ts | 18 - .../rococo/frame_support/dispatch/mod.ts | 55 - codegen/_output/rococo/frame_support/mod.ts | 14 - .../rococo/frame_support/traits/misc.ts | 5 - .../rococo/frame_support/traits/preimages.ts | 40 - .../frame_support/traits/tokens/misc.ts | 7 - .../frame_system/extensions/check_genesis.ts | 12 - .../extensions/check_non_zero_sender.ts | 13 - .../extensions/check_spec_version.ts | 13 - .../extensions/check_tx_version.ts | 12 - .../frame_system/extensions/check_weight.ts | 11 - codegen/_output/rococo/frame_system/limits.ts | 38 - codegen/_output/rococo/frame_system/mod.ts | 74 - codegen/_output/rococo/mod.ts | 71 +- .../_output/rococo/pallet_authorship/mod.ts | 31 - .../_output/rococo/pallet_bags_list/list.ts | 32 - codegen/_output/rococo/pallet_balances/mod.ts | 49 - codegen/_output/rococo/pallet_bounties/mod.ts | 80 - .../rococo/pallet_child_bounties/mod.ts | 64 - .../_output/rococo/pallet_collective/mod.ts | 52 - .../rococo/pallet_democracy/conviction.ts | 14 - .../_output/rococo/pallet_democracy/types.ts | 67 - .../_output/rococo/pallet_democracy/vote.ts | 79 - .../rococo/pallet_democracy/vote_threshold.ts | 7 - .../mod.ts | 100 - .../signed.ts | 20 - .../rococo/pallet_elections_phragmen/mod.ts | 59 - .../rococo/pallet_fast_unstake/types.ts | 15 - codegen/_output/rococo/pallet_grandpa/mod.ts | 60 - .../_output/rococo/pallet_identity/types.ts | 498 --- .../_output/rococo/pallet_im_online/mod.ts | 32 - .../pallet_im_online/sr25519/app_sr25519.ts | 19 - codegen/_output/rococo/pallet_multisig/mod.ts | 29 - .../ConfigOp/$$sp_core/crypto.ts | 35 - .../pallet_nomination_pools/ConfigOp/mod.ts | 65 - .../rococo/pallet_nomination_pools/mod.ts | 106 - codegen/_output/rococo/pallet_preimage/mod.ts | 34 - codegen/_output/rococo/pallet_proxy/mod.ts | 29 - .../_output/rococo/pallet_scheduler/mod.ts | 19 - codegen/_output/rococo/pallet_staking/mod.ts | 177 - .../ConfigOp/$$sp_arithmetic/per_things.ts | 67 - .../pallet/pallet/ConfigOp/mod.ts | 65 - .../_output/rococo/pallet_staking/slashing.ts | 27 - codegen/_output/rococo/pallet_tips/mod.ts | 21 - .../rococo/pallet_transaction_payment/mod.ts | 9 - codegen/_output/rococo/pallet_treasury/mod.ts | 18 - codegen/_output/rococo/pallet_vesting/mod.ts | 10 - .../rococo/pallet_vesting/vesting_info.ts | 15 - codegen/_output/rococo/pallets/Auctions.ts | 10 +- codegen/_output/rococo/pallets/Authorship.ts | 4 +- codegen/_output/rococo/pallets/Babe.ts | 12 +- codegen/_output/rococo/pallets/Balances.ts | 24 +- codegen/_output/rococo/pallets/Bounties.ts | 36 +- .../_output/rococo/pallets/ChildBounties.ts | 28 +- codegen/_output/rococo/pallets/Claims.ts | 20 +- .../_output/rococo/pallets/Configuration.ts | 207 +- codegen/_output/rococo/pallets/Council.ts | 28 +- codegen/_output/rococo/pallets/Crowdloan.ts | 36 +- codegen/_output/rococo/pallets/Democracy.ts | 68 +- .../pallets/ElectionProviderMultiPhase.ts | 20 +- codegen/_output/rococo/pallets/FastUnstake.ts | 8 +- codegen/_output/rococo/pallets/Grandpa.ts | 12 +- codegen/_output/rococo/pallets/Hrmp.ts | 41 +- codegen/_output/rococo/pallets/Identity.ts | 56 +- codegen/_output/rococo/pallets/ImOnline.ts | 4 +- codegen/_output/rococo/pallets/Indices.ts | 20 +- codegen/_output/rococo/pallets/Initializer.ts | 4 +- codegen/_output/rococo/pallets/Multisig.ts | 16 +- .../_output/rococo/pallets/NominationPools.ts | 50 +- .../_output/rococo/pallets/ParaInherent.ts | 4 +- codegen/_output/rococo/pallets/Paras.ts | 44 +- .../_output/rococo/pallets/ParasDisputes.ts | 2 +- .../rococo/pallets/PhragmenElection.ts | 22 +- codegen/_output/rococo/pallets/Preimage.ts | 16 +- codegen/_output/rococo/pallets/Proxy.ts | 38 +- codegen/_output/rococo/pallets/Registrar.ts | 37 +- codegen/_output/rococo/pallets/Scheduler.ts | 24 +- codegen/_output/rococo/pallets/Session.ts | 6 +- codegen/_output/rococo/pallets/Slots.ts | 12 +- codegen/_output/rococo/pallets/Staking.ts | 92 +- codegen/_output/rococo/pallets/System.ts | 36 +- .../rococo/pallets/TechnicalCommittee.ts | 28 +- .../rococo/pallets/TechnicalMembership.ts | 26 +- codegen/_output/rococo/pallets/Timestamp.ts | 4 +- codegen/_output/rococo/pallets/Tips.ts | 24 +- codegen/_output/rococo/pallets/Treasury.ts | 20 +- codegen/_output/rococo/pallets/Ump.ts | 4 +- codegen/_output/rococo/pallets/Utility.ts | 20 +- codegen/_output/rococo/pallets/Vesting.ts | 18 +- codegen/_output/rococo/pallets/VoterList.ts | 8 +- codegen/_output/rococo/pallets/XcmPallet.ts | 40 +- .../rococo/polkadot_core_primitives.ts | 47 - .../rococo/polkadot_parachain/primitives.ts | 47 - .../polkadot_primitives/v2/assignment_app.ts | 11 - .../polkadot_primitives/v2/collator_app.ts | 19 - .../rococo/polkadot_primitives/v2/mod.ts | 368 -- .../rococo/polkadot_primitives/v2/signed.ts | 16 - .../polkadot_primitives/v2/validator_app.ts | 19 - codegen/_output/rococo/polkadot_runtime.ts | 1223 ------- .../polkadot_runtime_common/claims/mod.ts | 35 - .../polkadot_runtime_common/crowdloan/mod.ts | 58 - .../paras_registrar/mod.ts | 17 - .../configuration/mod.ts | 61 - .../disputes/mod.ts | 15 - .../polkadot_runtime_parachains/dmp/pallet.ts | 8 - .../polkadot_runtime_parachains/hrmp/mod.ts | 41 - .../inclusion/mod.ts | 41 - .../initializer/mod.ts | 21 - .../origin/pallet.ts | 18 - .../polkadot_runtime_parachains/paras/mod.ts | 100 - .../polkadot_runtime_parachains/scheduler.ts | 68 - .../shared/pallet.ts | 8 - codegen/_output/rococo/primitive_types.ts | 11 - .../rococo/sp_arithmetic/fixed_point.ts | 11 - .../rococo/sp_arithmetic/per_things.ts | 35 - .../rococo/sp_authority_discovery/app.ts | 11 - .../_output/rococo/sp_consensus_babe/app.ts | 11 - .../rococo/sp_consensus_babe/digests.ts | 98 - .../_output/rococo/sp_consensus_babe/mod.ts | 25 - codegen/_output/rococo/sp_consensus_slots.ts | 24 - codegen/_output/rococo/sp_core/crypto.ts | 19 - codegen/_output/rococo/sp_core/ecdsa.ts | 19 - codegen/_output/rococo/sp_core/ed25519.ts | 19 - codegen/_output/rococo/sp_core/mod.ts | 21 - codegen/_output/rococo/sp_core/offchain.ts | 22 - codegen/_output/rococo/sp_core/sr25519.ts | 19 - .../_output/rococo/sp_finality_grandpa/app.ts | 19 - .../_output/rococo/sp_finality_grandpa/mod.ts | 42 - codegen/_output/rococo/sp_npos_elections.ts | 26 - .../rococo/sp_runtime/generic/digest.ts | 66 - .../rococo/sp_runtime/generic/header.ts | 17 - codegen/_output/rococo/sp_runtime/mod.ts | 218 -- .../_output/rococo/sp_runtime/multiaddress.ts | 59 - codegen/_output/rococo/sp_runtime/traits.ts | 11 - codegen/_output/rococo/sp_session.ts | 15 - codegen/_output/rococo/sp_staking/offence.ts | 14 - codegen/_output/rococo/sp_version.ts | 20 - codegen/_output/rococo/sp_weights/mod.ts | 24 - .../_output/rococo/sp_weights/weight_v2.ts | 14 - .../_output/rococo/{ => types}/bitvec/mod.ts | 0 codegen/_output/rococo/types/bitvec/order.ts | 11 + .../Equivocation/$$finality_grandpa.ts | 34 + .../finality_grandpa/Equivocation/mod.ts | 0 .../rococo/types/finality_grandpa/mod.ts | 27 + .../PerDispatchClass/$$frame_system/limits.ts | 19 + .../PerDispatchClass/$$frame_system/mod.ts | 0 .../PerDispatchClass/$$sp_weights/mod.ts | 0 .../$$sp_weights/weight_v2.ts | 19 + .../dispatch/PerDispatchClass/mod.ts | 18 + .../types/frame_support/dispatch/mod.ts | 55 + .../_output/rococo/types/frame_support/mod.ts | 14 + .../rococo/types/frame_support/traits/misc.ts | 6 + .../{ => types}/frame_support/traits/mod.ts | 0 .../types/frame_support/traits/preimages.ts | 40 + .../types/frame_support/traits/tokens/misc.ts | 8 + .../frame_support/traits/tokens/mod.ts | 0 .../frame_system/extensions/check_genesis.ts | 12 + .../extensions/check_non_zero_sender.ts | 13 + .../extensions/check_spec_version.ts | 13 + .../extensions/check_tx_version.ts | 13 + .../frame_system/extensions/check_weight.ts | 12 + .../frame_system/extensions/mod.ts | 0 .../rococo/types/frame_system/limits.ts | 38 + .../_output/rococo/types/frame_system/mod.ts | 75 + .../types}/frame_system/pallet.ts | 120 +- codegen/_output/rococo/types/mod.ts | 70 + .../rococo/types/pallet_authorship/mod.ts | 31 + .../types}/pallet_authorship/pallet.ts | 18 +- .../rococo/{ => types}/pallet_babe/mod.ts | 0 .../types}/pallet_babe/pallet.ts | 38 +- .../rococo/types/pallet_bags_list/list.ts | 32 + .../{ => types}/pallet_bags_list/mod.ts | 0 .../types}/pallet_bags_list/pallet.ts | 58 +- .../rococo/types/pallet_balances/mod.ts | 49 + .../types}/pallet_balances/pallet.ts | 182 +- .../rococo/types/pallet_bounties/mod.ts | 80 + .../types}/pallet_bounties/pallet.ts | 154 +- .../rococo/types/pallet_child_bounties/mod.ts | 65 + .../types}/pallet_child_bounties/pallet.ts | 134 +- .../rococo/types/pallet_collective/mod.ts | 52 + .../types}/pallet_collective/pallet.ts | 168 +- .../types/pallet_democracy/conviction.ts | 14 + .../{ => types}/pallet_democracy/mod.ts | 0 .../types}/pallet_democracy/pallet.ts | 290 +- .../rococo/types/pallet_democracy/types.ts | 68 + .../rococo/types/pallet_democracy/vote.ts | 79 + .../types/pallet_democracy/vote_threshold.ts | 8 + .../mod.ts | 104 + .../pallet.ts | 127 +- .../signed.ts | 20 + .../types/pallet_elections_phragmen/mod.ts | 59 + .../pallet_elections_phragmen/pallet.ts | 112 +- .../{ => types}/pallet_fast_unstake/mod.ts | 0 .../types}/pallet_fast_unstake/pallet.ts | 72 +- .../rococo/types/pallet_fast_unstake/types.ts | 16 + .../rococo/types/pallet_grandpa/mod.ts | 60 + .../{ => types}/pallet_grandpa/pallet.ts | 58 +- .../rococo/{ => types}/pallet_identity/mod.ts | 0 .../types}/pallet_identity/pallet.ts | 244 +- .../rococo/types/pallet_identity/types.ts | 498 +++ .../rococo/types/pallet_im_online/mod.ts | 35 + .../types}/pallet_im_online/pallet.ts | 42 +- .../pallet_im_online/sr25519/app_sr25519.ts | 20 + .../pallet_im_online/sr25519/mod.ts | 0 .../rococo/{ => types}/pallet_indices/mod.ts | 0 .../types}/pallet_indices/pallet.ts | 84 +- .../{ => types}/pallet_membership/mod.ts | 0 .../types}/pallet_membership/pallet.ts | 66 +- .../rococo/types/pallet_multisig/mod.ts | 29 + .../types}/pallet_multisig/pallet.ts | 112 +- .../ConfigOp/$$sp_core/crypto.ts | 35 + .../ConfigOp/$$sp_core/mod.ts | 0 .../pallet_nomination_pools/ConfigOp/mod.ts | 65 + .../types/pallet_nomination_pools/mod.ts | 107 + .../types}/pallet_nomination_pools/pallet.ts | 361 +- .../rococo/{ => types}/pallet_offences/mod.ts | 0 .../types}/pallet_offences/pallet.ts | 14 +- .../rococo/types/pallet_preimage/mod.ts | 34 + .../types}/pallet_preimage/pallet.ts | 66 +- .../_output/rococo/types/pallet_proxy/mod.ts | 29 + .../types}/pallet_proxy/pallet.ts | 186 +- .../rococo/types/pallet_scheduler/mod.ts | 19 + .../types}/pallet_scheduler/pallet.ts | 138 +- .../rococo/{ => types}/pallet_session/mod.ts | 0 .../types}/pallet_session/pallet.ts | 32 +- .../rococo/types/pallet_staking/mod.ts | 177 + .../{ => types}/pallet_staking/pallet/mod.ts | 0 .../pallet/ConfigOp/$$sp_arithmetic/mod.ts | 0 .../ConfigOp/$$sp_arithmetic/per_things.ts | 69 + .../pallet/pallet/ConfigOp/mod.ts | 65 + .../pallet_staking/pallet/pallet/mod.ts | 335 +- .../rococo/types/pallet_staking/slashing.ts | 27 + .../{ => types}/pallet_timestamp/mod.ts | 0 .../types}/pallet_timestamp/pallet.ts | 16 +- .../_output/rococo/types/pallet_tips/mod.ts | 21 + .../types}/pallet_tips/pallet.ts | 112 +- .../types/pallet_transaction_payment/mod.ts | 9 + .../pallet_transaction_payment/pallet.ts | 20 +- .../rococo/types/pallet_treasury/mod.ts | 18 + .../types}/pallet_treasury/pallet.ts | 130 +- .../rococo/{ => types}/pallet_utility/mod.ts | 0 .../{ => types}/pallet_utility/pallet.ts | 94 +- .../rococo/types/pallet_vesting/mod.ts | 10 + .../types}/pallet_vesting/pallet.ts | 74 +- .../types/pallet_vesting/vesting_info.ts | 15 + .../rococo/{ => types}/pallet_xcm/mod.ts | 0 .../types}/pallet_xcm/pallet.ts | 354 +- .../rococo/types/polkadot_core_primitives.ts | 50 + .../{ => types}/polkadot_parachain/mod.ts | 0 .../types/polkadot_parachain/primitives.ts | 52 + .../{ => types}/polkadot_primitives/mod.ts | 0 .../polkadot_primitives/v2/assignment_app.ts | 11 + .../polkadot_primitives/v2/collator_app.ts | 20 + .../types/polkadot_primitives/v2/mod.ts | 375 ++ .../types/polkadot_primitives/v2/signed.ts | 16 + .../polkadot_primitives/v2/validator_app.ts | 20 + .../_output/rococo/types/polkadot_runtime.ts | 1224 +++++++ .../polkadot_runtime_common/auctions/mod.ts | 0 .../auctions/pallet.ts | 122 +- .../polkadot_runtime_common/claims/mod.ts | 38 + .../polkadot_runtime_common/claims/pallet.ts | 76 +- .../polkadot_runtime_common/crowdloan/mod.ts | 59 + .../crowdloan/pallet.ts | 204 +- .../polkadot_runtime_common/mod.ts | 0 .../paras_registrar/mod.ts | 18 + .../paras_registrar/pallet.ts | 132 +- .../polkadot_runtime_common/slots/mod.ts | 0 .../polkadot_runtime_common/slots/pallet.ts | 70 +- .../configuration/mod.ts | 61 + .../configuration/pallet.ts | 386 +- .../disputes/mod.ts | 16 + .../disputes/pallet.ts | 50 +- .../polkadot_runtime_parachains/dmp/mod.ts | 0 .../polkadot_runtime_parachains/dmp/pallet.ts | 8 + .../polkadot_runtime_parachains/hrmp/mod.ts | 42 + .../hrmp/pallet.ts | 166 +- .../inclusion/mod.ts | 41 + .../inclusion/pallet.ts | 54 +- .../initializer/mod.ts | 21 + .../initializer/pallet.ts | 17 +- .../polkadot_runtime_parachains/mod.ts | 0 .../polkadot_runtime_parachains/origin/mod.ts | 0 .../origin/pallet.ts | 19 + .../polkadot_runtime_parachains/paras/mod.ts | 106 + .../paras/pallet.ts | 167 +- .../paras_inherent/mod.ts | 0 .../paras_inherent/pallet.ts | 19 +- .../polkadot_runtime_parachains/scheduler.ts | 75 + .../polkadot_runtime_parachains/shared/mod.ts | 0 .../shared/pallet.ts | 8 + .../polkadot_runtime_parachains/ump/mod.ts | 0 .../polkadot_runtime_parachains/ump/pallet.ts | 79 +- .../_output/rococo/types/primitive_types.ts | 11 + .../rococo/types/sp_arithmetic/fixed_point.ts | 11 + .../rococo/{ => types}/sp_arithmetic/mod.ts | 0 .../rococo/types/sp_arithmetic/per_things.ts | 35 + .../types/sp_authority_discovery/app.ts | 11 + .../{ => types}/sp_authority_discovery/mod.ts | 0 .../rococo/types/sp_consensus_babe/app.ts | 11 + .../rococo/types/sp_consensus_babe/digests.ts | 103 + .../rococo/types/sp_consensus_babe/mod.ts | 25 + .../rococo/types/sp_consensus_slots.ts | 24 + .../_output/rococo/types/sp_core/crypto.ts | 19 + codegen/_output/rococo/types/sp_core/ecdsa.ts | 19 + .../_output/rococo/types/sp_core/ed25519.ts | 19 + codegen/_output/rococo/types/sp_core/mod.ts | 21 + .../_output/rococo/types/sp_core/offchain.ts | 22 + .../_output/rococo/types/sp_core/sr25519.ts | 19 + .../rococo/types/sp_finality_grandpa/app.ts | 19 + .../rococo/types/sp_finality_grandpa/mod.ts | 43 + .../_output/rococo/types/sp_npos_elections.ts | 26 + .../rococo/types/sp_runtime/generic/digest.ts | 66 + .../rococo/types/sp_runtime/generic/header.ts | 17 + .../{ => types}/sp_runtime/generic/mod.ts | 0 .../_output/rococo/types/sp_runtime/mod.ts | 218 ++ .../rococo/types/sp_runtime/multiaddress.ts | 59 + .../_output/rococo/types/sp_runtime/traits.ts | 11 + codegen/_output/rococo/types/sp_session.ts | 15 + .../rococo/{ => types}/sp_staking/mod.ts | 0 .../rococo/types/sp_staking/offence.ts | 14 + codegen/_output/rococo/types/sp_version.ts | 20 + .../_output/rococo/types/sp_weights/mod.ts | 24 + .../rococo/types/sp_weights/weight_v2.ts | 14 + codegen/_output/rococo/types/xcm/mod.ts | 125 + .../_output/rococo/types/xcm/v0/junction.ts | 261 ++ codegen/_output/rococo/types/xcm/v0/mod.ts | 157 + .../rococo/types/xcm/v0/multi_asset.ts | 121 + .../rococo/types/xcm/v0/multi_location.ts | 135 + codegen/_output/rococo/types/xcm/v0/order.ts | 100 + .../_output/rococo/types/xcm/v1/junction.ts | 100 + codegen/_output/rococo/types/xcm/v1/mod.ts | 180 + .../_output/rococo/types/xcm/v1/multiasset.ts | 201 ++ .../rococo/types/xcm/v1/multilocation.ts | 146 + codegen/_output/rococo/types/xcm/v1/order.ts | 102 + codegen/_output/rococo/types/xcm/v2/mod.ts | 372 ++ codegen/_output/rococo/types/xcm/v2/traits.ts | 233 ++ codegen/_output/rococo/xcm/mod.ts | 110 - codegen/_output/rococo/xcm/v0/junction.ts | 261 -- codegen/_output/rococo/xcm/v0/mod.ts | 153 - codegen/_output/rococo/xcm/v0/multi_asset.ts | 121 - .../_output/rococo/xcm/v0/multi_location.ts | 131 - codegen/_output/rococo/xcm/v0/order.ts | 100 - codegen/_output/rococo/xcm/v1/junction.ts | 100 - codegen/_output/rococo/xcm/v1/mod.ts | 174 - codegen/_output/rococo/xcm/v1/multiasset.ts | 199 -- .../_output/rococo/xcm/v1/multilocation.ts | 142 - codegen/_output/rococo/xcm/v1/order.ts | 102 - codegen/_output/rococo/xcm/v2/mod.ts | 366 -- codegen/_output/rococo/xcm/v2/traits.ts | 231 -- codegen/_output/westend/bitvec/order.ts | 11 - codegen/_output/westend/codecs.ts | 3136 +++++++++-------- .../Equivocation/$$finality_grandpa.ts | 31 - .../_output/westend/finality_grandpa/mod.ts | 27 - .../PerDispatchClass/$$frame_system/limits.ts | 19 - .../$$sp_weights/weight_v2.ts | 19 - .../dispatch/PerDispatchClass/mod.ts | 18 - .../westend/frame_support/dispatch/mod.ts | 55 - codegen/_output/westend/frame_support/mod.ts | 14 - .../westend/frame_support/traits/misc.ts | 5 - .../westend/frame_support/traits/preimages.ts | 40 - .../frame_support/traits/tokens/misc.ts | 7 - .../frame_system/extensions/check_genesis.ts | 12 - .../extensions/check_non_zero_sender.ts | 13 - .../extensions/check_spec_version.ts | 13 - .../extensions/check_tx_version.ts | 12 - .../frame_system/extensions/check_weight.ts | 11 - .../_output/westend/frame_system/limits.ts | 38 - codegen/_output/westend/frame_system/mod.ts | 74 - codegen/_output/westend/mod.ts | 71 +- .../_output/westend/pallet_authorship/mod.ts | 31 - .../_output/westend/pallet_bags_list/list.ts | 32 - .../_output/westend/pallet_balances/mod.ts | 49 - .../_output/westend/pallet_bounties/mod.ts | 80 - .../westend/pallet_child_bounties/mod.ts | 64 - .../_output/westend/pallet_collective/mod.ts | 52 - .../westend/pallet_democracy/conviction.ts | 14 - .../_output/westend/pallet_democracy/types.ts | 67 - .../_output/westend/pallet_democracy/vote.ts | 79 - .../pallet_democracy/vote_threshold.ts | 7 - .../mod.ts | 100 - .../signed.ts | 20 - .../westend/pallet_elections_phragmen/mod.ts | 59 - .../westend/pallet_fast_unstake/types.ts | 15 - codegen/_output/westend/pallet_grandpa/mod.ts | 60 - .../_output/westend/pallet_identity/types.ts | 498 --- .../_output/westend/pallet_im_online/mod.ts | 32 - .../pallet_im_online/sr25519/app_sr25519.ts | 19 - .../_output/westend/pallet_multisig/mod.ts | 29 - .../ConfigOp/$$sp_core/crypto.ts | 35 - .../pallet_nomination_pools/ConfigOp/mod.ts | 65 - .../westend/pallet_nomination_pools/mod.ts | 106 - .../_output/westend/pallet_preimage/mod.ts | 34 - codegen/_output/westend/pallet_proxy/mod.ts | 29 - .../_output/westend/pallet_scheduler/mod.ts | 19 - codegen/_output/westend/pallet_staking/mod.ts | 177 - .../ConfigOp/$$sp_arithmetic/per_things.ts | 67 - .../pallet/pallet/ConfigOp/mod.ts | 65 - .../westend/pallet_staking/slashing.ts | 27 - codegen/_output/westend/pallet_tips/mod.ts | 21 - .../westend/pallet_transaction_payment/mod.ts | 9 - .../_output/westend/pallet_treasury/mod.ts | 18 - codegen/_output/westend/pallet_vesting/mod.ts | 10 - .../westend/pallet_vesting/vesting_info.ts | 15 - codegen/_output/westend/pallets/Auctions.ts | 10 +- codegen/_output/westend/pallets/Authorship.ts | 4 +- codegen/_output/westend/pallets/Babe.ts | 12 +- codegen/_output/westend/pallets/Balances.ts | 24 +- codegen/_output/westend/pallets/Bounties.ts | 36 +- .../_output/westend/pallets/ChildBounties.ts | 28 +- codegen/_output/westend/pallets/Claims.ts | 20 +- .../_output/westend/pallets/Configuration.ts | 207 +- codegen/_output/westend/pallets/Council.ts | 28 +- codegen/_output/westend/pallets/Crowdloan.ts | 36 +- codegen/_output/westend/pallets/Democracy.ts | 68 +- .../pallets/ElectionProviderMultiPhase.ts | 20 +- .../_output/westend/pallets/FastUnstake.ts | 8 +- codegen/_output/westend/pallets/Grandpa.ts | 12 +- codegen/_output/westend/pallets/Hrmp.ts | 41 +- codegen/_output/westend/pallets/Identity.ts | 56 +- codegen/_output/westend/pallets/ImOnline.ts | 4 +- codegen/_output/westend/pallets/Indices.ts | 20 +- .../_output/westend/pallets/Initializer.ts | 4 +- codegen/_output/westend/pallets/Multisig.ts | 16 +- .../westend/pallets/NominationPools.ts | 50 +- .../_output/westend/pallets/ParaInherent.ts | 4 +- codegen/_output/westend/pallets/Paras.ts | 44 +- .../_output/westend/pallets/ParasDisputes.ts | 2 +- .../westend/pallets/PhragmenElection.ts | 22 +- codegen/_output/westend/pallets/Preimage.ts | 16 +- codegen/_output/westend/pallets/Proxy.ts | 38 +- codegen/_output/westend/pallets/Registrar.ts | 37 +- codegen/_output/westend/pallets/Scheduler.ts | 24 +- codegen/_output/westend/pallets/Session.ts | 6 +- codegen/_output/westend/pallets/Slots.ts | 12 +- codegen/_output/westend/pallets/Staking.ts | 92 +- codegen/_output/westend/pallets/System.ts | 36 +- .../westend/pallets/TechnicalCommittee.ts | 28 +- .../westend/pallets/TechnicalMembership.ts | 26 +- codegen/_output/westend/pallets/Timestamp.ts | 4 +- codegen/_output/westend/pallets/Tips.ts | 24 +- codegen/_output/westend/pallets/Treasury.ts | 20 +- codegen/_output/westend/pallets/Ump.ts | 4 +- codegen/_output/westend/pallets/Utility.ts | 20 +- codegen/_output/westend/pallets/Vesting.ts | 18 +- codegen/_output/westend/pallets/VoterList.ts | 8 +- codegen/_output/westend/pallets/XcmPallet.ts | 40 +- .../westend/polkadot_core_primitives.ts | 47 - .../westend/polkadot_parachain/primitives.ts | 47 - .../polkadot_primitives/v2/assignment_app.ts | 11 - .../polkadot_primitives/v2/collator_app.ts | 19 - .../westend/polkadot_primitives/v2/mod.ts | 368 -- .../westend/polkadot_primitives/v2/signed.ts | 16 - .../polkadot_primitives/v2/validator_app.ts | 19 - codegen/_output/westend/polkadot_runtime.ts | 1223 ------- .../polkadot_runtime_common/claims/mod.ts | 35 - .../polkadot_runtime_common/crowdloan/mod.ts | 58 - .../paras_registrar/mod.ts | 17 - .../configuration/mod.ts | 61 - .../disputes/mod.ts | 15 - .../polkadot_runtime_parachains/dmp/pallet.ts | 8 - .../polkadot_runtime_parachains/hrmp/mod.ts | 41 - .../inclusion/mod.ts | 41 - .../initializer/mod.ts | 21 - .../origin/pallet.ts | 18 - .../polkadot_runtime_parachains/paras/mod.ts | 100 - .../polkadot_runtime_parachains/scheduler.ts | 68 - .../shared/pallet.ts | 8 - codegen/_output/westend/primitive_types.ts | 11 - .../westend/sp_arithmetic/fixed_point.ts | 11 - .../westend/sp_arithmetic/per_things.ts | 35 - .../westend/sp_authority_discovery/app.ts | 11 - .../_output/westend/sp_consensus_babe/app.ts | 11 - .../westend/sp_consensus_babe/digests.ts | 98 - .../_output/westend/sp_consensus_babe/mod.ts | 25 - codegen/_output/westend/sp_consensus_slots.ts | 24 - codegen/_output/westend/sp_core/crypto.ts | 19 - codegen/_output/westend/sp_core/ecdsa.ts | 19 - codegen/_output/westend/sp_core/ed25519.ts | 19 - codegen/_output/westend/sp_core/mod.ts | 21 - codegen/_output/westend/sp_core/offchain.ts | 22 - codegen/_output/westend/sp_core/sr25519.ts | 19 - .../westend/sp_finality_grandpa/app.ts | 19 - .../westend/sp_finality_grandpa/mod.ts | 42 - codegen/_output/westend/sp_npos_elections.ts | 26 - .../westend/sp_runtime/generic/digest.ts | 66 - .../westend/sp_runtime/generic/header.ts | 17 - codegen/_output/westend/sp_runtime/mod.ts | 218 -- .../westend/sp_runtime/multiaddress.ts | 59 - codegen/_output/westend/sp_runtime/traits.ts | 11 - codegen/_output/westend/sp_session.ts | 15 - codegen/_output/westend/sp_staking/offence.ts | 14 - codegen/_output/westend/sp_version.ts | 20 - codegen/_output/westend/sp_weights/mod.ts | 24 - .../_output/westend/sp_weights/weight_v2.ts | 14 - .../_output/westend/{ => types}/bitvec/mod.ts | 0 codegen/_output/westend/types/bitvec/order.ts | 11 + .../Equivocation/$$finality_grandpa.ts | 34 + .../finality_grandpa/Equivocation/mod.ts | 0 .../westend/types/finality_grandpa/mod.ts | 27 + .../PerDispatchClass/$$frame_system/limits.ts | 19 + .../PerDispatchClass/$$frame_system/mod.ts | 0 .../PerDispatchClass/$$sp_weights/mod.ts | 0 .../$$sp_weights/weight_v2.ts | 19 + .../dispatch/PerDispatchClass/mod.ts | 18 + .../types/frame_support/dispatch/mod.ts | 55 + .../westend/types/frame_support/mod.ts | 14 + .../types/frame_support/traits/misc.ts | 6 + .../{ => types}/frame_support/traits/mod.ts | 0 .../types/frame_support/traits/preimages.ts | 40 + .../types/frame_support/traits/tokens/misc.ts | 8 + .../frame_support/traits/tokens/mod.ts | 0 .../frame_system/extensions/check_genesis.ts | 12 + .../extensions/check_non_zero_sender.ts | 13 + .../extensions/check_spec_version.ts | 13 + .../extensions/check_tx_version.ts | 13 + .../frame_system/extensions/check_weight.ts | 12 + .../frame_system/extensions/mod.ts | 0 .../westend/types/frame_system/limits.ts | 38 + .../_output/westend/types/frame_system/mod.ts | 75 + .../{ => types}/frame_system/pallet.ts | 120 +- codegen/_output/westend/types/mod.ts | 70 + .../westend/types/pallet_authorship/mod.ts | 31 + .../{ => types}/pallet_authorship/pallet.ts | 18 +- .../westend/{ => types}/pallet_babe/mod.ts | 0 .../westend/{ => types}/pallet_babe/pallet.ts | 38 +- .../westend/types/pallet_bags_list/list.ts | 32 + .../{ => types}/pallet_bags_list/mod.ts | 0 .../types}/pallet_bags_list/pallet.ts | 58 +- .../westend/types/pallet_balances/mod.ts | 49 + .../{ => types}/pallet_balances/pallet.ts | 182 +- .../westend/types/pallet_bounties/mod.ts | 80 + .../types}/pallet_bounties/pallet.ts | 154 +- .../types/pallet_child_bounties/mod.ts | 65 + .../types}/pallet_child_bounties/pallet.ts | 134 +- .../westend/types/pallet_collective/mod.ts | 52 + .../types}/pallet_collective/pallet.ts | 168 +- .../types/pallet_democracy/conviction.ts | 14 + .../{ => types}/pallet_democracy/mod.ts | 0 .../{ => types}/pallet_democracy/pallet.ts | 290 +- .../westend/types/pallet_democracy/types.ts | 68 + .../westend/types/pallet_democracy/vote.ts | 79 + .../types/pallet_democracy/vote_threshold.ts | 8 + .../mod.ts | 104 + .../pallet.ts | 127 +- .../signed.ts | 20 + .../types/pallet_elections_phragmen/mod.ts | 59 + .../pallet_elections_phragmen/pallet.ts | 112 +- .../{ => types}/pallet_fast_unstake/mod.ts | 0 .../types}/pallet_fast_unstake/pallet.ts | 72 +- .../types/pallet_fast_unstake/types.ts | 16 + .../westend/types/pallet_grandpa/mod.ts | 60 + .../{ => types}/pallet_grandpa/pallet.ts | 58 +- .../{ => types}/pallet_identity/mod.ts | 0 .../{ => types}/pallet_identity/pallet.ts | 244 +- .../westend/types/pallet_identity/types.ts | 498 +++ .../westend/types/pallet_im_online/mod.ts | 35 + .../types}/pallet_im_online/pallet.ts | 42 +- .../pallet_im_online/sr25519/app_sr25519.ts | 20 + .../pallet_im_online/sr25519/mod.ts | 0 .../westend/{ => types}/pallet_indices/mod.ts | 0 .../types}/pallet_indices/pallet.ts | 84 +- .../{ => types}/pallet_membership/mod.ts | 0 .../{ => types}/pallet_membership/pallet.ts | 66 +- .../westend/types/pallet_multisig/mod.ts | 29 + .../types}/pallet_multisig/pallet.ts | 112 +- .../ConfigOp/$$sp_core/crypto.ts | 35 + .../ConfigOp/$$sp_core/mod.ts | 0 .../pallet_nomination_pools/ConfigOp/mod.ts | 65 + .../types/pallet_nomination_pools/mod.ts | 107 + .../types}/pallet_nomination_pools/pallet.ts | 361 +- .../{ => types}/pallet_offences/mod.ts | 0 .../types}/pallet_offences/pallet.ts | 14 +- .../westend/types/pallet_preimage/mod.ts | 34 + .../{ => types}/pallet_preimage/pallet.ts | 66 +- .../_output/westend/types/pallet_proxy/mod.ts | 29 + .../{ => types}/pallet_proxy/pallet.ts | 186 +- .../westend/types/pallet_scheduler/mod.ts | 19 + .../types}/pallet_scheduler/pallet.ts | 138 +- .../westend/{ => types}/pallet_session/mod.ts | 0 .../{ => types}/pallet_session/pallet.ts | 32 +- .../westend/types/pallet_staking/mod.ts | 177 + .../{ => types}/pallet_staking/pallet/mod.ts | 0 .../pallet/ConfigOp/$$sp_arithmetic/mod.ts | 0 .../ConfigOp/$$sp_arithmetic/per_things.ts | 69 + .../pallet/pallet/ConfigOp/mod.ts | 65 + .../pallet_staking/pallet/pallet/mod.ts | 335 +- .../westend/types/pallet_staking/slashing.ts | 27 + .../{ => types}/pallet_timestamp/mod.ts | 0 .../types}/pallet_timestamp/pallet.ts | 16 +- .../_output/westend/types/pallet_tips/mod.ts | 21 + .../types}/pallet_tips/pallet.ts | 112 +- .../types/pallet_transaction_payment/mod.ts | 9 + .../pallet_transaction_payment/pallet.ts | 20 +- .../westend/types/pallet_treasury/mod.ts | 18 + .../types}/pallet_treasury/pallet.ts | 130 +- .../westend/{ => types}/pallet_utility/mod.ts | 0 .../{ => types}/pallet_utility/pallet.ts | 94 +- .../westend/types/pallet_vesting/mod.ts | 10 + .../{ => types}/pallet_vesting/pallet.ts | 74 +- .../types/pallet_vesting/vesting_info.ts | 15 + .../westend/{ => types}/pallet_xcm/mod.ts | 0 .../westend/{ => types}/pallet_xcm/pallet.ts | 354 +- .../westend/types/polkadot_core_primitives.ts | 50 + .../{ => types}/polkadot_parachain/mod.ts | 0 .../types/polkadot_parachain/primitives.ts | 52 + .../{ => types}/polkadot_primitives/mod.ts | 0 .../polkadot_primitives/v2/assignment_app.ts | 11 + .../polkadot_primitives/v2/collator_app.ts | 20 + .../types/polkadot_primitives/v2/mod.ts | 375 ++ .../types/polkadot_primitives/v2/signed.ts | 16 + .../polkadot_primitives/v2/validator_app.ts | 20 + .../_output/westend/types/polkadot_runtime.ts | 1224 +++++++ .../polkadot_runtime_common/auctions/mod.ts | 0 .../auctions/pallet.ts | 122 +- .../polkadot_runtime_common/claims/mod.ts | 38 + .../polkadot_runtime_common/claims/pallet.ts | 76 +- .../polkadot_runtime_common/crowdloan/mod.ts | 59 + .../crowdloan/pallet.ts | 204 +- .../polkadot_runtime_common/mod.ts | 0 .../paras_registrar/mod.ts | 18 + .../paras_registrar/pallet.ts | 132 +- .../polkadot_runtime_common/slots/mod.ts | 0 .../polkadot_runtime_common/slots/pallet.ts | 70 +- .../configuration/mod.ts | 61 + .../configuration/pallet.ts | 386 +- .../disputes/mod.ts | 16 + .../disputes/pallet.ts | 50 +- .../polkadot_runtime_parachains/dmp/mod.ts | 0 .../polkadot_runtime_parachains/dmp/pallet.ts | 8 + .../polkadot_runtime_parachains/hrmp/mod.ts | 42 + .../hrmp/pallet.ts | 166 +- .../inclusion/mod.ts | 41 + .../inclusion/pallet.ts | 54 +- .../initializer/mod.ts | 21 + .../initializer/pallet.ts | 17 +- .../polkadot_runtime_parachains/mod.ts | 0 .../polkadot_runtime_parachains/origin/mod.ts | 0 .../origin/pallet.ts | 19 + .../polkadot_runtime_parachains/paras/mod.ts | 106 + .../paras/pallet.ts | 167 +- .../paras_inherent/mod.ts | 0 .../paras_inherent/pallet.ts | 19 +- .../polkadot_runtime_parachains/scheduler.ts | 75 + .../polkadot_runtime_parachains/shared/mod.ts | 0 .../shared/pallet.ts | 8 + .../polkadot_runtime_parachains/ump/mod.ts | 0 .../polkadot_runtime_parachains/ump/pallet.ts | 79 +- .../_output/westend/types/primitive_types.ts | 11 + .../types/sp_arithmetic/fixed_point.ts | 11 + .../westend/{ => types}/sp_arithmetic/mod.ts | 0 .../westend/types/sp_arithmetic/per_things.ts | 35 + .../types/sp_authority_discovery/app.ts | 11 + .../{ => types}/sp_authority_discovery/mod.ts | 0 .../westend/types/sp_consensus_babe/app.ts | 11 + .../types/sp_consensus_babe/digests.ts | 103 + .../westend/types/sp_consensus_babe/mod.ts | 25 + .../westend/types/sp_consensus_slots.ts | 24 + .../_output/westend/types/sp_core/crypto.ts | 19 + .../_output/westend/types/sp_core/ecdsa.ts | 19 + .../_output/westend/types/sp_core/ed25519.ts | 19 + codegen/_output/westend/types/sp_core/mod.ts | 21 + .../_output/westend/types/sp_core/offchain.ts | 22 + .../_output/westend/types/sp_core/sr25519.ts | 19 + .../westend/types/sp_finality_grandpa/app.ts | 19 + .../westend/types/sp_finality_grandpa/mod.ts | 43 + .../westend/types/sp_npos_elections.ts | 26 + .../types/sp_runtime/generic/digest.ts | 66 + .../types/sp_runtime/generic/header.ts | 17 + .../{ => types}/sp_runtime/generic/mod.ts | 0 .../_output/westend/types/sp_runtime/mod.ts | 218 ++ .../westend/types/sp_runtime/multiaddress.ts | 59 + .../westend/types/sp_runtime/traits.ts | 11 + codegen/_output/westend/types/sp_session.ts | 15 + .../westend/{ => types}/sp_staking/mod.ts | 0 .../westend/types/sp_staking/offence.ts | 14 + codegen/_output/westend/types/sp_version.ts | 20 + .../_output/westend/types/sp_weights/mod.ts | 24 + .../westend/types/sp_weights/weight_v2.ts | 14 + codegen/_output/westend/types/xcm/mod.ts | 125 + .../_output/westend/types/xcm/v0/junction.ts | 261 ++ codegen/_output/westend/types/xcm/v0/mod.ts | 157 + .../westend/types/xcm/v0/multi_asset.ts | 121 + .../westend/types/xcm/v0/multi_location.ts | 135 + codegen/_output/westend/types/xcm/v0/order.ts | 100 + .../_output/westend/types/xcm/v1/junction.ts | 100 + codegen/_output/westend/types/xcm/v1/mod.ts | 180 + .../westend/types/xcm/v1/multiasset.ts | 201 ++ .../westend/types/xcm/v1/multilocation.ts | 146 + codegen/_output/westend/types/xcm/v1/order.ts | 102 + codegen/_output/westend/types/xcm/v2/mod.ts | 372 ++ .../_output/westend/types/xcm/v2/traits.ts | 233 ++ codegen/_output/westend/xcm/mod.ts | 110 - codegen/_output/westend/xcm/v0/junction.ts | 261 -- codegen/_output/westend/xcm/v0/mod.ts | 153 - codegen/_output/westend/xcm/v0/multi_asset.ts | 121 - .../_output/westend/xcm/v0/multi_location.ts | 131 - codegen/_output/westend/xcm/v0/order.ts | 100 - codegen/_output/westend/xcm/v1/junction.ts | 100 - codegen/_output/westend/xcm/v1/mod.ts | 174 - codegen/_output/westend/xcm/v1/multiasset.ts | 199 -- .../_output/westend/xcm/v1/multilocation.ts | 142 - codegen/_output/westend/xcm/v1/order.ts | 102 - codegen/_output/westend/xcm/v2/mod.ts | 366 -- codegen/_output/westend/xcm/v2/traits.ts | 231 -- codegen/utils.ts | 4 +- frame_metadata/Extrinsic.ts | 7 +- 1422 files changed, 52256 insertions(+), 50387 deletions(-) delete mode 100644 codegen/_output/kusama/bitvec/order.ts delete mode 100644 codegen/_output/kusama/finality_grandpa/Equivocation/$$finality_grandpa.ts delete mode 100644 codegen/_output/kusama/finality_grandpa/mod.ts delete mode 100644 codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts delete mode 100644 codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts delete mode 100644 codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/mod.ts delete mode 100644 codegen/_output/kusama/frame_support/dispatch/mod.ts delete mode 100644 codegen/_output/kusama/frame_support/mod.ts delete mode 100644 codegen/_output/kusama/frame_support/traits/misc.ts delete mode 100644 codegen/_output/kusama/frame_support/traits/preimages.ts delete mode 100644 codegen/_output/kusama/frame_support/traits/tokens/misc.ts delete mode 100644 codegen/_output/kusama/frame_system/extensions/check_genesis.ts delete mode 100644 codegen/_output/kusama/frame_system/extensions/check_non_zero_sender.ts delete mode 100644 codegen/_output/kusama/frame_system/extensions/check_spec_version.ts delete mode 100644 codegen/_output/kusama/frame_system/extensions/check_tx_version.ts delete mode 100644 codegen/_output/kusama/frame_system/extensions/check_weight.ts delete mode 100644 codegen/_output/kusama/frame_system/limits.ts delete mode 100644 codegen/_output/kusama/frame_system/mod.ts delete mode 100644 codegen/_output/kusama/pallet_authorship/mod.ts delete mode 100644 codegen/_output/kusama/pallet_bags_list/list.ts delete mode 100644 codegen/_output/kusama/pallet_balances/mod.ts delete mode 100644 codegen/_output/kusama/pallet_bounties/mod.ts delete mode 100644 codegen/_output/kusama/pallet_child_bounties/mod.ts delete mode 100644 codegen/_output/kusama/pallet_collective/mod.ts delete mode 100644 codegen/_output/kusama/pallet_democracy/conviction.ts delete mode 100644 codegen/_output/kusama/pallet_democracy/types.ts delete mode 100644 codegen/_output/kusama/pallet_democracy/vote.ts delete mode 100644 codegen/_output/kusama/pallet_democracy/vote_threshold.ts delete mode 100644 codegen/_output/kusama/pallet_election_provider_multi_phase/mod.ts delete mode 100644 codegen/_output/kusama/pallet_election_provider_multi_phase/signed.ts delete mode 100644 codegen/_output/kusama/pallet_elections_phragmen/mod.ts delete mode 100644 codegen/_output/kusama/pallet_fast_unstake/types.ts delete mode 100644 codegen/_output/kusama/pallet_grandpa/mod.ts delete mode 100644 codegen/_output/kusama/pallet_identity/types.ts delete mode 100644 codegen/_output/kusama/pallet_im_online/mod.ts delete mode 100644 codegen/_output/kusama/pallet_im_online/sr25519/app_sr25519.ts delete mode 100644 codegen/_output/kusama/pallet_multisig/mod.ts delete mode 100644 codegen/_output/kusama/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts delete mode 100644 codegen/_output/kusama/pallet_nomination_pools/ConfigOp/mod.ts delete mode 100644 codegen/_output/kusama/pallet_nomination_pools/mod.ts delete mode 100644 codegen/_output/kusama/pallet_preimage/mod.ts delete mode 100644 codegen/_output/kusama/pallet_proxy/mod.ts delete mode 100644 codegen/_output/kusama/pallet_scheduler/mod.ts delete mode 100644 codegen/_output/kusama/pallet_staking/mod.ts delete mode 100644 codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts delete mode 100644 codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/mod.ts delete mode 100644 codegen/_output/kusama/pallet_staking/slashing.ts delete mode 100644 codegen/_output/kusama/pallet_tips/mod.ts delete mode 100644 codegen/_output/kusama/pallet_transaction_payment/mod.ts delete mode 100644 codegen/_output/kusama/pallet_treasury/mod.ts delete mode 100644 codegen/_output/kusama/pallet_vesting/mod.ts delete mode 100644 codegen/_output/kusama/pallet_vesting/vesting_info.ts delete mode 100644 codegen/_output/kusama/polkadot_core_primitives.ts delete mode 100644 codegen/_output/kusama/polkadot_parachain/primitives.ts delete mode 100644 codegen/_output/kusama/polkadot_primitives/v2/assignment_app.ts delete mode 100644 codegen/_output/kusama/polkadot_primitives/v2/collator_app.ts delete mode 100644 codegen/_output/kusama/polkadot_primitives/v2/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_primitives/v2/signed.ts delete mode 100644 codegen/_output/kusama/polkadot_primitives/v2/validator_app.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_common/claims/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_common/crowdloan/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_common/paras_registrar/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/configuration/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/disputes/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/dmp/pallet.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/hrmp/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/inclusion/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/initializer/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/origin/pallet.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/paras/mod.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/scheduler.ts delete mode 100644 codegen/_output/kusama/polkadot_runtime_parachains/shared/pallet.ts delete mode 100644 codegen/_output/kusama/primitive_types.ts delete mode 100644 codegen/_output/kusama/sp_arithmetic/fixed_point.ts delete mode 100644 codegen/_output/kusama/sp_arithmetic/per_things.ts delete mode 100644 codegen/_output/kusama/sp_authority_discovery/app.ts delete mode 100644 codegen/_output/kusama/sp_consensus_babe/app.ts delete mode 100644 codegen/_output/kusama/sp_consensus_babe/digests.ts delete mode 100644 codegen/_output/kusama/sp_consensus_babe/mod.ts delete mode 100644 codegen/_output/kusama/sp_consensus_slots.ts delete mode 100644 codegen/_output/kusama/sp_core/crypto.ts delete mode 100644 codegen/_output/kusama/sp_core/ecdsa.ts delete mode 100644 codegen/_output/kusama/sp_core/ed25519.ts delete mode 100644 codegen/_output/kusama/sp_core/mod.ts delete mode 100644 codegen/_output/kusama/sp_core/offchain.ts delete mode 100644 codegen/_output/kusama/sp_core/sr25519.ts delete mode 100644 codegen/_output/kusama/sp_finality_grandpa/app.ts delete mode 100644 codegen/_output/kusama/sp_finality_grandpa/mod.ts delete mode 100644 codegen/_output/kusama/sp_npos_elections.ts delete mode 100644 codegen/_output/kusama/sp_runtime/generic/digest.ts delete mode 100644 codegen/_output/kusama/sp_runtime/generic/header.ts delete mode 100644 codegen/_output/kusama/sp_runtime/mod.ts delete mode 100644 codegen/_output/kusama/sp_runtime/multiaddress.ts delete mode 100644 codegen/_output/kusama/sp_runtime/traits.ts delete mode 100644 codegen/_output/kusama/sp_session.ts delete mode 100644 codegen/_output/kusama/sp_staking/offence.ts delete mode 100644 codegen/_output/kusama/sp_version.ts delete mode 100644 codegen/_output/kusama/sp_weights/mod.ts delete mode 100644 codegen/_output/kusama/sp_weights/weight_v2.ts rename codegen/_output/kusama/{ => types}/bitvec/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/bitvec/order.ts create mode 100644 codegen/_output/kusama/types/finality_grandpa/Equivocation/$$finality_grandpa.ts rename codegen/_output/kusama/{ => types}/finality_grandpa/Equivocation/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/finality_grandpa/mod.ts create mode 100644 codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts rename codegen/_output/kusama/{ => types}/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts (100%) rename codegen/_output/kusama/{ => types}/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts create mode 100644 codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/mod.ts create mode 100644 codegen/_output/kusama/types/frame_support/dispatch/mod.ts create mode 100644 codegen/_output/kusama/types/frame_support/mod.ts create mode 100644 codegen/_output/kusama/types/frame_support/traits/misc.ts rename codegen/_output/kusama/{ => types}/frame_support/traits/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/frame_support/traits/preimages.ts create mode 100644 codegen/_output/kusama/types/frame_support/traits/tokens/misc.ts rename codegen/_output/kusama/{ => types}/frame_support/traits/tokens/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/frame_system/extensions/check_genesis.ts create mode 100644 codegen/_output/kusama/types/frame_system/extensions/check_non_zero_sender.ts create mode 100644 codegen/_output/kusama/types/frame_system/extensions/check_spec_version.ts create mode 100644 codegen/_output/kusama/types/frame_system/extensions/check_tx_version.ts create mode 100644 codegen/_output/kusama/types/frame_system/extensions/check_weight.ts rename codegen/_output/kusama/{ => types}/frame_system/extensions/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/frame_system/limits.ts create mode 100644 codegen/_output/kusama/types/frame_system/mod.ts rename codegen/_output/kusama/{ => types}/frame_system/pallet.ts (64%) create mode 100644 codegen/_output/kusama/types/mod.ts create mode 100644 codegen/_output/kusama/types/pallet_authorship/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_authorship/pallet.ts (52%) rename codegen/_output/kusama/{ => types}/pallet_babe/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/pallet_babe/pallet.ts (71%) create mode 100644 codegen/_output/kusama/types/pallet_bags_list/list.ts rename codegen/_output/kusama/{ => types}/pallet_bags_list/mod.ts (100%) rename codegen/_output/{polkadot => kusama/types}/pallet_bags_list/pallet.ts (65%) create mode 100644 codegen/_output/kusama/types/pallet_balances/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_balances/pallet.ts (69%) create mode 100644 codegen/_output/kusama/types/pallet_bounties/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_bounties/pallet.ts (71%) create mode 100644 codegen/_output/kusama/types/pallet_child_bounties/mod.ts rename codegen/_output/{polkadot => kusama/types}/pallet_child_bounties/pallet.ts (79%) create mode 100644 codegen/_output/kusama/types/pallet_collective/mod.ts rename codegen/_output/{polkadot => kusama/types}/pallet_collective/pallet.ts (80%) create mode 100644 codegen/_output/kusama/types/pallet_democracy/conviction.ts rename codegen/_output/kusama/{ => types}/pallet_democracy/mod.ts (100%) rename codegen/_output/{polkadot => kusama/types}/pallet_democracy/pallet.ts (75%) create mode 100644 codegen/_output/kusama/types/pallet_democracy/types.ts create mode 100644 codegen/_output/kusama/types/pallet_democracy/vote.ts create mode 100644 codegen/_output/kusama/types/pallet_democracy/vote_threshold.ts create mode 100644 codegen/_output/kusama/types/pallet_election_provider_multi_phase/mod.ts rename codegen/_output/kusama/{ => types}/pallet_election_provider_multi_phase/pallet.ts (65%) create mode 100644 codegen/_output/kusama/types/pallet_election_provider_multi_phase/signed.ts create mode 100644 codegen/_output/kusama/types/pallet_elections_phragmen/mod.ts rename codegen/_output/{polkadot => kusama/types}/pallet_elections_phragmen/pallet.ts (77%) rename codegen/_output/kusama/{ => types}/pallet_fast_unstake/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/pallet_fast_unstake/pallet.ts (69%) create mode 100644 codegen/_output/kusama/types/pallet_fast_unstake/types.ts create mode 100644 codegen/_output/kusama/types/pallet_grandpa/mod.ts rename codegen/_output/kusama/{ => types}/pallet_grandpa/pallet.ts (72%) rename codegen/_output/kusama/{ => types}/pallet_identity/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/pallet_identity/pallet.ts (77%) create mode 100644 codegen/_output/kusama/types/pallet_identity/types.ts create mode 100644 codegen/_output/kusama/types/pallet_im_online/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_im_online/pallet.ts (62%) create mode 100644 codegen/_output/kusama/types/pallet_im_online/sr25519/app_sr25519.ts rename codegen/_output/kusama/{ => types}/pallet_im_online/sr25519/mod.ts (100%) rename codegen/_output/kusama/{ => types}/pallet_indices/mod.ts (100%) rename codegen/_output/kusama/{ => types}/pallet_indices/pallet.ts (79%) rename codegen/_output/kusama/{ => types}/pallet_membership/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/pallet_membership/pallet.ts (63%) create mode 100644 codegen/_output/kusama/types/pallet_multisig/mod.ts rename codegen/_output/kusama/{ => types}/pallet_multisig/pallet.ts (81%) create mode 100644 codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts rename codegen/_output/kusama/{ => types}/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/mod.ts create mode 100644 codegen/_output/kusama/types/pallet_nomination_pools/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_nomination_pools/pallet.ts (69%) rename codegen/_output/kusama/{ => types}/pallet_offences/mod.ts (100%) rename codegen/_output/kusama/{ => types}/pallet_offences/pallet.ts (62%) create mode 100644 codegen/_output/kusama/types/pallet_preimage/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_preimage/pallet.ts (66%) create mode 100644 codegen/_output/kusama/types/pallet_proxy/mod.ts rename codegen/_output/kusama/{ => types}/pallet_proxy/pallet.ts (74%) create mode 100644 codegen/_output/kusama/types/pallet_scheduler/mod.ts rename codegen/_output/kusama/{ => types}/pallet_scheduler/pallet.ts (52%) rename codegen/_output/kusama/{ => types}/pallet_session/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/pallet_session/pallet.ts (80%) create mode 100644 codegen/_output/kusama/types/pallet_staking/mod.ts rename codegen/_output/kusama/{ => types}/pallet_staking/pallet/mod.ts (100%) rename codegen/_output/kusama/{ => types}/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts create mode 100644 codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts rename codegen/_output/kusama/{ => types}/pallet_staking/pallet/pallet/mod.ts (76%) create mode 100644 codegen/_output/kusama/types/pallet_staking/slashing.ts rename codegen/_output/kusama/{ => types}/pallet_timestamp/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/pallet_timestamp/pallet.ts (79%) create mode 100644 codegen/_output/kusama/types/pallet_tips/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_tips/pallet.ts (81%) create mode 100644 codegen/_output/kusama/types/pallet_transaction_payment/mod.ts rename codegen/_output/kusama/{ => types}/pallet_transaction_payment/pallet.ts (50%) create mode 100644 codegen/_output/kusama/types/pallet_treasury/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_treasury/pallet.ts (68%) rename codegen/_output/kusama/{ => types}/pallet_utility/mod.ts (100%) rename codegen/_output/kusama/{ => types}/pallet_utility/pallet.ts (76%) create mode 100644 codegen/_output/kusama/types/pallet_vesting/mod.ts rename codegen/_output/{rococo => kusama/types}/pallet_vesting/pallet.ts (80%) create mode 100644 codegen/_output/kusama/types/pallet_vesting/vesting_info.ts rename codegen/_output/kusama/{ => types}/pallet_xcm/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/pallet_xcm/pallet.ts (71%) create mode 100644 codegen/_output/kusama/types/polkadot_core_primitives.ts rename codegen/_output/kusama/{ => types}/polkadot_parachain/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/polkadot_parachain/primitives.ts rename codegen/_output/kusama/{ => types}/polkadot_primitives/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/polkadot_primitives/v2/assignment_app.ts create mode 100644 codegen/_output/kusama/types/polkadot_primitives/v2/collator_app.ts create mode 100644 codegen/_output/kusama/types/polkadot_primitives/v2/mod.ts create mode 100644 codegen/_output/kusama/types/polkadot_primitives/v2/signed.ts create mode 100644 codegen/_output/kusama/types/polkadot_primitives/v2/validator_app.ts create mode 100644 codegen/_output/kusama/types/polkadot_runtime.ts rename codegen/_output/kusama/{ => types}/polkadot_runtime_common/auctions/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_common/auctions/pallet.ts (63%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_common/claims/mod.ts rename codegen/_output/{polkadot => kusama/types}/polkadot_runtime_common/claims/pallet.ts (74%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_common/crowdloan/mod.ts rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_common/crowdloan/pallet.ts (57%) rename codegen/_output/kusama/{ => types}/polkadot_runtime_common/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_common/paras_registrar/mod.ts rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_common/paras_registrar/pallet.ts (65%) rename codegen/_output/kusama/{ => types}/polkadot_runtime_common/slots/mod.ts (100%) rename codegen/_output/kusama/{ => types}/polkadot_runtime_common/slots/pallet.ts (61%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/configuration/mod.ts rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_parachains/configuration/pallet.ts (55%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/disputes/mod.ts rename codegen/_output/{polkadot => kusama/types}/polkadot_runtime_parachains/disputes/pallet.ts (57%) rename codegen/_output/kusama/{ => types}/polkadot_runtime_parachains/dmp/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/dmp/pallet.ts create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/hrmp/mod.ts rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_parachains/hrmp/pallet.ts (64%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/inclusion/mod.ts rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_parachains/inclusion/pallet.ts (54%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/initializer/mod.ts rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_parachains/initializer/pallet.ts (57%) rename codegen/_output/kusama/{ => types}/polkadot_runtime_parachains/mod.ts (100%) rename codegen/_output/kusama/{ => types}/polkadot_runtime_parachains/origin/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/origin/pallet.ts create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/paras/mod.ts rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_parachains/paras/pallet.ts (58%) rename codegen/_output/kusama/{ => types}/polkadot_runtime_parachains/paras_inherent/mod.ts (100%) rename codegen/_output/{rococo => kusama/types}/polkadot_runtime_parachains/paras_inherent/pallet.ts (52%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/scheduler.ts rename codegen/_output/kusama/{ => types}/polkadot_runtime_parachains/shared/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/polkadot_runtime_parachains/shared/pallet.ts rename codegen/_output/kusama/{ => types}/polkadot_runtime_parachains/ump/mod.ts (100%) rename codegen/_output/kusama/{ => types}/polkadot_runtime_parachains/ump/pallet.ts (60%) create mode 100644 codegen/_output/kusama/types/primitive_types.ts create mode 100644 codegen/_output/kusama/types/sp_arithmetic/fixed_point.ts rename codegen/_output/kusama/{ => types}/sp_arithmetic/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/sp_arithmetic/per_things.ts create mode 100644 codegen/_output/kusama/types/sp_authority_discovery/app.ts rename codegen/_output/kusama/{ => types}/sp_authority_discovery/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/sp_consensus_babe/app.ts create mode 100644 codegen/_output/kusama/types/sp_consensus_babe/digests.ts create mode 100644 codegen/_output/kusama/types/sp_consensus_babe/mod.ts create mode 100644 codegen/_output/kusama/types/sp_consensus_slots.ts create mode 100644 codegen/_output/kusama/types/sp_core/crypto.ts create mode 100644 codegen/_output/kusama/types/sp_core/ecdsa.ts create mode 100644 codegen/_output/kusama/types/sp_core/ed25519.ts create mode 100644 codegen/_output/kusama/types/sp_core/mod.ts create mode 100644 codegen/_output/kusama/types/sp_core/offchain.ts create mode 100644 codegen/_output/kusama/types/sp_core/sr25519.ts create mode 100644 codegen/_output/kusama/types/sp_finality_grandpa/app.ts create mode 100644 codegen/_output/kusama/types/sp_finality_grandpa/mod.ts create mode 100644 codegen/_output/kusama/types/sp_npos_elections.ts create mode 100644 codegen/_output/kusama/types/sp_runtime/generic/digest.ts create mode 100644 codegen/_output/kusama/types/sp_runtime/generic/header.ts rename codegen/_output/kusama/{ => types}/sp_runtime/generic/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/sp_runtime/mod.ts create mode 100644 codegen/_output/kusama/types/sp_runtime/multiaddress.ts create mode 100644 codegen/_output/kusama/types/sp_runtime/traits.ts create mode 100644 codegen/_output/kusama/types/sp_session.ts rename codegen/_output/kusama/{ => types}/sp_staking/mod.ts (100%) create mode 100644 codegen/_output/kusama/types/sp_staking/offence.ts create mode 100644 codegen/_output/kusama/types/sp_version.ts create mode 100644 codegen/_output/kusama/types/sp_weights/mod.ts create mode 100644 codegen/_output/kusama/types/sp_weights/weight_v2.ts create mode 100644 codegen/_output/kusama/types/xcm/mod.ts create mode 100644 codegen/_output/kusama/types/xcm/v0/junction.ts create mode 100644 codegen/_output/kusama/types/xcm/v0/mod.ts create mode 100644 codegen/_output/kusama/types/xcm/v0/multi_asset.ts create mode 100644 codegen/_output/kusama/types/xcm/v0/multi_location.ts create mode 100644 codegen/_output/kusama/types/xcm/v0/order.ts create mode 100644 codegen/_output/kusama/types/xcm/v1/junction.ts create mode 100644 codegen/_output/kusama/types/xcm/v1/mod.ts create mode 100644 codegen/_output/kusama/types/xcm/v1/multiasset.ts create mode 100644 codegen/_output/kusama/types/xcm/v1/multilocation.ts create mode 100644 codegen/_output/kusama/types/xcm/v1/order.ts create mode 100644 codegen/_output/kusama/types/xcm/v2/mod.ts create mode 100644 codegen/_output/kusama/types/xcm/v2/traits.ts delete mode 100644 codegen/_output/kusama/xcm/mod.ts delete mode 100644 codegen/_output/kusama/xcm/v0/junction.ts delete mode 100644 codegen/_output/kusama/xcm/v0/mod.ts delete mode 100644 codegen/_output/kusama/xcm/v0/multi_asset.ts delete mode 100644 codegen/_output/kusama/xcm/v0/multi_location.ts delete mode 100644 codegen/_output/kusama/xcm/v0/order.ts delete mode 100644 codegen/_output/kusama/xcm/v1/junction.ts delete mode 100644 codegen/_output/kusama/xcm/v1/mod.ts delete mode 100644 codegen/_output/kusama/xcm/v1/multiasset.ts delete mode 100644 codegen/_output/kusama/xcm/v1/multilocation.ts delete mode 100644 codegen/_output/kusama/xcm/v1/order.ts delete mode 100644 codegen/_output/kusama/xcm/v2/mod.ts delete mode 100644 codegen/_output/kusama/xcm/v2/traits.ts delete mode 100644 codegen/_output/polkadot/bitvec/order.ts delete mode 100644 codegen/_output/polkadot/finality_grandpa/Equivocation/$$finality_grandpa.ts delete mode 100644 codegen/_output/polkadot/finality_grandpa/mod.ts delete mode 100644 codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts delete mode 100644 codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts delete mode 100644 codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/mod.ts delete mode 100644 codegen/_output/polkadot/frame_support/dispatch/mod.ts delete mode 100644 codegen/_output/polkadot/frame_support/mod.ts delete mode 100644 codegen/_output/polkadot/frame_support/traits/misc.ts delete mode 100644 codegen/_output/polkadot/frame_support/traits/preimages.ts delete mode 100644 codegen/_output/polkadot/frame_support/traits/tokens/misc.ts delete mode 100644 codegen/_output/polkadot/frame_system/extensions/check_genesis.ts delete mode 100644 codegen/_output/polkadot/frame_system/extensions/check_non_zero_sender.ts delete mode 100644 codegen/_output/polkadot/frame_system/extensions/check_spec_version.ts delete mode 100644 codegen/_output/polkadot/frame_system/extensions/check_tx_version.ts delete mode 100644 codegen/_output/polkadot/frame_system/extensions/check_weight.ts delete mode 100644 codegen/_output/polkadot/frame_system/limits.ts delete mode 100644 codegen/_output/polkadot/frame_system/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_authorship/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_bags_list/list.ts delete mode 100644 codegen/_output/polkadot/pallet_balances/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_bounties/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_child_bounties/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_collective/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_democracy/conviction.ts delete mode 100644 codegen/_output/polkadot/pallet_democracy/types.ts delete mode 100644 codegen/_output/polkadot/pallet_democracy/vote.ts delete mode 100644 codegen/_output/polkadot/pallet_democracy/vote_threshold.ts delete mode 100644 codegen/_output/polkadot/pallet_election_provider_multi_phase/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_election_provider_multi_phase/signed.ts delete mode 100644 codegen/_output/polkadot/pallet_elections_phragmen/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_fast_unstake/types.ts delete mode 100644 codegen/_output/polkadot/pallet_grandpa/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_identity/types.ts delete mode 100644 codegen/_output/polkadot/pallet_im_online/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_im_online/sr25519/app_sr25519.ts delete mode 100644 codegen/_output/polkadot/pallet_multisig/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts delete mode 100644 codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_nomination_pools/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_preimage/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_proxy/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_scheduler/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_staking/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts delete mode 100644 codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_staking/slashing.ts delete mode 100644 codegen/_output/polkadot/pallet_tips/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_transaction_payment/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_treasury/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_vesting/mod.ts delete mode 100644 codegen/_output/polkadot/pallet_vesting/vesting_info.ts delete mode 100644 codegen/_output/polkadot/polkadot_core_primitives.ts delete mode 100644 codegen/_output/polkadot/polkadot_parachain/primitives.ts delete mode 100644 codegen/_output/polkadot/polkadot_primitives/v2/assignment_app.ts delete mode 100644 codegen/_output/polkadot/polkadot_primitives/v2/collator_app.ts delete mode 100644 codegen/_output/polkadot/polkadot_primitives/v2/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_primitives/v2/signed.ts delete mode 100644 codegen/_output/polkadot/polkadot_primitives/v2/validator_app.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_common/claims/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_common/crowdloan/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_common/paras_registrar/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/configuration/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/disputes/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/dmp/pallet.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/hrmp/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/inclusion/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/initializer/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/origin/pallet.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/paras/mod.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/scheduler.ts delete mode 100644 codegen/_output/polkadot/polkadot_runtime_parachains/shared/pallet.ts delete mode 100644 codegen/_output/polkadot/primitive_types.ts delete mode 100644 codegen/_output/polkadot/sp_arithmetic/fixed_point.ts delete mode 100644 codegen/_output/polkadot/sp_arithmetic/per_things.ts delete mode 100644 codegen/_output/polkadot/sp_authority_discovery/app.ts delete mode 100644 codegen/_output/polkadot/sp_consensus_babe/app.ts delete mode 100644 codegen/_output/polkadot/sp_consensus_babe/digests.ts delete mode 100644 codegen/_output/polkadot/sp_consensus_babe/mod.ts delete mode 100644 codegen/_output/polkadot/sp_consensus_slots.ts delete mode 100644 codegen/_output/polkadot/sp_core/crypto.ts delete mode 100644 codegen/_output/polkadot/sp_core/ecdsa.ts delete mode 100644 codegen/_output/polkadot/sp_core/ed25519.ts delete mode 100644 codegen/_output/polkadot/sp_core/mod.ts delete mode 100644 codegen/_output/polkadot/sp_core/offchain.ts delete mode 100644 codegen/_output/polkadot/sp_core/sr25519.ts delete mode 100644 codegen/_output/polkadot/sp_finality_grandpa/app.ts delete mode 100644 codegen/_output/polkadot/sp_finality_grandpa/mod.ts delete mode 100644 codegen/_output/polkadot/sp_npos_elections.ts delete mode 100644 codegen/_output/polkadot/sp_runtime/generic/digest.ts delete mode 100644 codegen/_output/polkadot/sp_runtime/generic/header.ts delete mode 100644 codegen/_output/polkadot/sp_runtime/mod.ts delete mode 100644 codegen/_output/polkadot/sp_runtime/multiaddress.ts delete mode 100644 codegen/_output/polkadot/sp_runtime/traits.ts delete mode 100644 codegen/_output/polkadot/sp_session.ts delete mode 100644 codegen/_output/polkadot/sp_staking/offence.ts delete mode 100644 codegen/_output/polkadot/sp_version.ts delete mode 100644 codegen/_output/polkadot/sp_weights/mod.ts delete mode 100644 codegen/_output/polkadot/sp_weights/weight_v2.ts rename codegen/_output/polkadot/{ => types}/bitvec/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/bitvec/order.ts create mode 100644 codegen/_output/polkadot/types/finality_grandpa/Equivocation/$$finality_grandpa.ts rename codegen/_output/polkadot/{ => types}/finality_grandpa/Equivocation/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/finality_grandpa/mod.ts create mode 100644 codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts rename codegen/_output/polkadot/{ => types}/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts (100%) rename codegen/_output/polkadot/{ => types}/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts create mode 100644 codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/mod.ts create mode 100644 codegen/_output/polkadot/types/frame_support/dispatch/mod.ts create mode 100644 codegen/_output/polkadot/types/frame_support/mod.ts create mode 100644 codegen/_output/polkadot/types/frame_support/traits/misc.ts rename codegen/_output/polkadot/{ => types}/frame_support/traits/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/frame_support/traits/preimages.ts create mode 100644 codegen/_output/polkadot/types/frame_support/traits/tokens/misc.ts rename codegen/_output/polkadot/{ => types}/frame_support/traits/tokens/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/frame_system/extensions/check_genesis.ts create mode 100644 codegen/_output/polkadot/types/frame_system/extensions/check_non_zero_sender.ts create mode 100644 codegen/_output/polkadot/types/frame_system/extensions/check_spec_version.ts create mode 100644 codegen/_output/polkadot/types/frame_system/extensions/check_tx_version.ts create mode 100644 codegen/_output/polkadot/types/frame_system/extensions/check_weight.ts rename codegen/_output/polkadot/{ => types}/frame_system/extensions/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/frame_system/limits.ts create mode 100644 codegen/_output/polkadot/types/frame_system/mod.ts rename codegen/_output/{rococo => polkadot/types}/frame_system/pallet.ts (64%) create mode 100644 codegen/_output/polkadot/types/mod.ts create mode 100644 codegen/_output/polkadot/types/pallet_authorship/mod.ts rename codegen/_output/polkadot/{ => types}/pallet_authorship/pallet.ts (52%) rename codegen/_output/polkadot/{ => types}/pallet_babe/mod.ts (100%) rename codegen/_output/polkadot/{ => types}/pallet_babe/pallet.ts (71%) create mode 100644 codegen/_output/polkadot/types/pallet_bags_list/list.ts rename codegen/_output/polkadot/{ => types}/pallet_bags_list/mod.ts (100%) rename codegen/_output/{rococo => polkadot/types}/pallet_bags_list/pallet.ts (65%) create mode 100644 codegen/_output/polkadot/types/pallet_balances/mod.ts rename codegen/_output/{kusama => polkadot/types}/pallet_balances/pallet.ts (69%) create mode 100644 codegen/_output/polkadot/types/pallet_bounties/mod.ts rename codegen/_output/{westend => polkadot/types}/pallet_bounties/pallet.ts (71%) create mode 100644 codegen/_output/polkadot/types/pallet_child_bounties/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_child_bounties/pallet.ts (79%) create mode 100644 codegen/_output/polkadot/types/pallet_collective/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_collective/pallet.ts (80%) create mode 100644 codegen/_output/polkadot/types/pallet_democracy/conviction.ts rename codegen/_output/polkadot/{ => types}/pallet_democracy/mod.ts (100%) rename codegen/_output/{rococo => polkadot/types}/pallet_democracy/pallet.ts (75%) create mode 100644 codegen/_output/polkadot/types/pallet_democracy/types.ts create mode 100644 codegen/_output/polkadot/types/pallet_democracy/vote.ts create mode 100644 codegen/_output/polkadot/types/pallet_democracy/vote_threshold.ts create mode 100644 codegen/_output/polkadot/types/pallet_election_provider_multi_phase/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_election_provider_multi_phase/pallet.ts (65%) create mode 100644 codegen/_output/polkadot/types/pallet_election_provider_multi_phase/signed.ts create mode 100644 codegen/_output/polkadot/types/pallet_elections_phragmen/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_elections_phragmen/pallet.ts (77%) rename codegen/_output/polkadot/{ => types}/pallet_fast_unstake/mod.ts (100%) rename codegen/_output/{kusama => polkadot/types}/pallet_fast_unstake/pallet.ts (69%) create mode 100644 codegen/_output/polkadot/types/pallet_fast_unstake/types.ts create mode 100644 codegen/_output/polkadot/types/pallet_grandpa/mod.ts rename codegen/_output/polkadot/{ => types}/pallet_grandpa/pallet.ts (72%) rename codegen/_output/polkadot/{ => types}/pallet_identity/mod.ts (100%) rename codegen/_output/{kusama => polkadot/types}/pallet_identity/pallet.ts (77%) create mode 100644 codegen/_output/polkadot/types/pallet_identity/types.ts create mode 100644 codegen/_output/polkadot/types/pallet_im_online/mod.ts rename codegen/_output/{westend => polkadot/types}/pallet_im_online/pallet.ts (62%) create mode 100644 codegen/_output/polkadot/types/pallet_im_online/sr25519/app_sr25519.ts rename codegen/_output/polkadot/{ => types}/pallet_im_online/sr25519/mod.ts (100%) rename codegen/_output/polkadot/{ => types}/pallet_indices/mod.ts (100%) rename codegen/_output/{rococo => polkadot/types}/pallet_indices/pallet.ts (79%) rename codegen/_output/polkadot/{ => types}/pallet_membership/mod.ts (100%) rename codegen/_output/{kusama => polkadot/types}/pallet_membership/pallet.ts (63%) create mode 100644 codegen/_output/polkadot/types/pallet_multisig/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_multisig/pallet.ts (81%) create mode 100644 codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts rename codegen/_output/polkadot/{ => types}/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/mod.ts create mode 100644 codegen/_output/polkadot/types/pallet_nomination_pools/mod.ts rename codegen/_output/polkadot/{ => types}/pallet_nomination_pools/pallet.ts (69%) rename codegen/_output/polkadot/{ => types}/pallet_offences/mod.ts (100%) rename codegen/_output/{rococo => polkadot/types}/pallet_offences/pallet.ts (62%) create mode 100644 codegen/_output/polkadot/types/pallet_preimage/mod.ts rename codegen/_output/polkadot/{ => types}/pallet_preimage/pallet.ts (66%) create mode 100644 codegen/_output/polkadot/types/pallet_proxy/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_proxy/pallet.ts (74%) create mode 100644 codegen/_output/polkadot/types/pallet_scheduler/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_scheduler/pallet.ts (52%) rename codegen/_output/polkadot/{ => types}/pallet_session/mod.ts (100%) rename codegen/_output/polkadot/{ => types}/pallet_session/pallet.ts (80%) create mode 100644 codegen/_output/polkadot/types/pallet_staking/mod.ts rename codegen/_output/polkadot/{ => types}/pallet_staking/pallet/mod.ts (100%) rename codegen/_output/polkadot/{ => types}/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts create mode 100644 codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_staking/pallet/pallet/mod.ts (76%) create mode 100644 codegen/_output/polkadot/types/pallet_staking/slashing.ts rename codegen/_output/polkadot/{ => types}/pallet_timestamp/mod.ts (100%) rename codegen/_output/{kusama => polkadot/types}/pallet_timestamp/pallet.ts (79%) create mode 100644 codegen/_output/polkadot/types/pallet_tips/mod.ts rename codegen/_output/{kusama => polkadot/types}/pallet_tips/pallet.ts (81%) create mode 100644 codegen/_output/polkadot/types/pallet_transaction_payment/mod.ts rename codegen/_output/{rococo => polkadot/types}/pallet_transaction_payment/pallet.ts (50%) create mode 100644 codegen/_output/polkadot/types/pallet_treasury/mod.ts rename codegen/_output/{kusama => polkadot/types}/pallet_treasury/pallet.ts (68%) rename codegen/_output/polkadot/{ => types}/pallet_utility/mod.ts (100%) rename codegen/_output/polkadot/{ => types}/pallet_utility/pallet.ts (76%) create mode 100644 codegen/_output/polkadot/types/pallet_vesting/mod.ts rename codegen/_output/polkadot/{ => types}/pallet_vesting/pallet.ts (80%) create mode 100644 codegen/_output/polkadot/types/pallet_vesting/vesting_info.ts rename codegen/_output/polkadot/{ => types}/pallet_xcm/mod.ts (100%) rename codegen/_output/polkadot/{ => types}/pallet_xcm/pallet.ts (71%) create mode 100644 codegen/_output/polkadot/types/polkadot_core_primitives.ts rename codegen/_output/polkadot/{ => types}/polkadot_parachain/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/polkadot_parachain/primitives.ts rename codegen/_output/polkadot/{ => types}/polkadot_primitives/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/polkadot_primitives/v2/assignment_app.ts create mode 100644 codegen/_output/polkadot/types/polkadot_primitives/v2/collator_app.ts create mode 100644 codegen/_output/polkadot/types/polkadot_primitives/v2/mod.ts create mode 100644 codegen/_output/polkadot/types/polkadot_primitives/v2/signed.ts create mode 100644 codegen/_output/polkadot/types/polkadot_primitives/v2/validator_app.ts create mode 100644 codegen/_output/polkadot/types/polkadot_runtime.ts rename codegen/_output/polkadot/{ => types}/polkadot_runtime_common/auctions/mod.ts (100%) rename codegen/_output/{westend => polkadot/types}/polkadot_runtime_common/auctions/pallet.ts (63%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_common/claims/mod.ts rename codegen/_output/{rococo => polkadot/types}/polkadot_runtime_common/claims/pallet.ts (74%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_common/crowdloan/mod.ts rename codegen/_output/{kusama => polkadot/types}/polkadot_runtime_common/crowdloan/pallet.ts (57%) rename codegen/_output/polkadot/{ => types}/polkadot_runtime_common/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_common/paras_registrar/mod.ts rename codegen/_output/polkadot/{ => types}/polkadot_runtime_common/paras_registrar/pallet.ts (65%) rename codegen/_output/polkadot/{ => types}/polkadot_runtime_common/slots/mod.ts (100%) rename codegen/_output/{rococo => polkadot/types}/polkadot_runtime_common/slots/pallet.ts (61%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/configuration/mod.ts rename codegen/_output/polkadot/{ => types}/polkadot_runtime_parachains/configuration/pallet.ts (55%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/disputes/mod.ts rename codegen/_output/{kusama => polkadot/types}/polkadot_runtime_parachains/disputes/pallet.ts (57%) rename codegen/_output/polkadot/{ => types}/polkadot_runtime_parachains/dmp/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/dmp/pallet.ts create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/hrmp/mod.ts rename codegen/_output/{kusama => polkadot/types}/polkadot_runtime_parachains/hrmp/pallet.ts (64%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/inclusion/mod.ts rename codegen/_output/polkadot/{ => types}/polkadot_runtime_parachains/inclusion/pallet.ts (54%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/initializer/mod.ts rename codegen/_output/{westend => polkadot/types}/polkadot_runtime_parachains/initializer/pallet.ts (57%) rename codegen/_output/polkadot/{ => types}/polkadot_runtime_parachains/mod.ts (100%) rename codegen/_output/polkadot/{ => types}/polkadot_runtime_parachains/origin/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/origin/pallet.ts create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/paras/mod.ts rename codegen/_output/{westend => polkadot/types}/polkadot_runtime_parachains/paras/pallet.ts (58%) rename codegen/_output/polkadot/{ => types}/polkadot_runtime_parachains/paras_inherent/mod.ts (100%) rename codegen/_output/{westend => polkadot/types}/polkadot_runtime_parachains/paras_inherent/pallet.ts (52%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/scheduler.ts rename codegen/_output/polkadot/{ => types}/polkadot_runtime_parachains/shared/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/polkadot_runtime_parachains/shared/pallet.ts rename codegen/_output/polkadot/{ => types}/polkadot_runtime_parachains/ump/mod.ts (100%) rename codegen/_output/{rococo => polkadot/types}/polkadot_runtime_parachains/ump/pallet.ts (60%) create mode 100644 codegen/_output/polkadot/types/primitive_types.ts create mode 100644 codegen/_output/polkadot/types/sp_arithmetic/fixed_point.ts rename codegen/_output/polkadot/{ => types}/sp_arithmetic/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/sp_arithmetic/per_things.ts create mode 100644 codegen/_output/polkadot/types/sp_authority_discovery/app.ts rename codegen/_output/polkadot/{ => types}/sp_authority_discovery/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/sp_consensus_babe/app.ts create mode 100644 codegen/_output/polkadot/types/sp_consensus_babe/digests.ts create mode 100644 codegen/_output/polkadot/types/sp_consensus_babe/mod.ts create mode 100644 codegen/_output/polkadot/types/sp_consensus_slots.ts create mode 100644 codegen/_output/polkadot/types/sp_core/crypto.ts create mode 100644 codegen/_output/polkadot/types/sp_core/ecdsa.ts create mode 100644 codegen/_output/polkadot/types/sp_core/ed25519.ts create mode 100644 codegen/_output/polkadot/types/sp_core/mod.ts create mode 100644 codegen/_output/polkadot/types/sp_core/offchain.ts create mode 100644 codegen/_output/polkadot/types/sp_core/sr25519.ts create mode 100644 codegen/_output/polkadot/types/sp_finality_grandpa/app.ts create mode 100644 codegen/_output/polkadot/types/sp_finality_grandpa/mod.ts create mode 100644 codegen/_output/polkadot/types/sp_npos_elections.ts create mode 100644 codegen/_output/polkadot/types/sp_runtime/generic/digest.ts create mode 100644 codegen/_output/polkadot/types/sp_runtime/generic/header.ts rename codegen/_output/polkadot/{ => types}/sp_runtime/generic/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/sp_runtime/mod.ts create mode 100644 codegen/_output/polkadot/types/sp_runtime/multiaddress.ts create mode 100644 codegen/_output/polkadot/types/sp_runtime/traits.ts create mode 100644 codegen/_output/polkadot/types/sp_session.ts rename codegen/_output/polkadot/{ => types}/sp_staking/mod.ts (100%) create mode 100644 codegen/_output/polkadot/types/sp_staking/offence.ts create mode 100644 codegen/_output/polkadot/types/sp_version.ts create mode 100644 codegen/_output/polkadot/types/sp_weights/mod.ts create mode 100644 codegen/_output/polkadot/types/sp_weights/weight_v2.ts create mode 100644 codegen/_output/polkadot/types/xcm/mod.ts create mode 100644 codegen/_output/polkadot/types/xcm/v0/junction.ts create mode 100644 codegen/_output/polkadot/types/xcm/v0/mod.ts create mode 100644 codegen/_output/polkadot/types/xcm/v0/multi_asset.ts create mode 100644 codegen/_output/polkadot/types/xcm/v0/multi_location.ts create mode 100644 codegen/_output/polkadot/types/xcm/v0/order.ts create mode 100644 codegen/_output/polkadot/types/xcm/v1/junction.ts create mode 100644 codegen/_output/polkadot/types/xcm/v1/mod.ts create mode 100644 codegen/_output/polkadot/types/xcm/v1/multiasset.ts create mode 100644 codegen/_output/polkadot/types/xcm/v1/multilocation.ts create mode 100644 codegen/_output/polkadot/types/xcm/v1/order.ts create mode 100644 codegen/_output/polkadot/types/xcm/v2/mod.ts create mode 100644 codegen/_output/polkadot/types/xcm/v2/traits.ts delete mode 100644 codegen/_output/polkadot/xcm/mod.ts delete mode 100644 codegen/_output/polkadot/xcm/v0/junction.ts delete mode 100644 codegen/_output/polkadot/xcm/v0/mod.ts delete mode 100644 codegen/_output/polkadot/xcm/v0/multi_asset.ts delete mode 100644 codegen/_output/polkadot/xcm/v0/multi_location.ts delete mode 100644 codegen/_output/polkadot/xcm/v0/order.ts delete mode 100644 codegen/_output/polkadot/xcm/v1/junction.ts delete mode 100644 codegen/_output/polkadot/xcm/v1/mod.ts delete mode 100644 codegen/_output/polkadot/xcm/v1/multiasset.ts delete mode 100644 codegen/_output/polkadot/xcm/v1/multilocation.ts delete mode 100644 codegen/_output/polkadot/xcm/v1/order.ts delete mode 100644 codegen/_output/polkadot/xcm/v2/mod.ts delete mode 100644 codegen/_output/polkadot/xcm/v2/traits.ts delete mode 100644 codegen/_output/rococo/bitvec/order.ts delete mode 100644 codegen/_output/rococo/finality_grandpa/Equivocation/$$finality_grandpa.ts delete mode 100644 codegen/_output/rococo/finality_grandpa/mod.ts delete mode 100644 codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts delete mode 100644 codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts delete mode 100644 codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/mod.ts delete mode 100644 codegen/_output/rococo/frame_support/dispatch/mod.ts delete mode 100644 codegen/_output/rococo/frame_support/mod.ts delete mode 100644 codegen/_output/rococo/frame_support/traits/misc.ts delete mode 100644 codegen/_output/rococo/frame_support/traits/preimages.ts delete mode 100644 codegen/_output/rococo/frame_support/traits/tokens/misc.ts delete mode 100644 codegen/_output/rococo/frame_system/extensions/check_genesis.ts delete mode 100644 codegen/_output/rococo/frame_system/extensions/check_non_zero_sender.ts delete mode 100644 codegen/_output/rococo/frame_system/extensions/check_spec_version.ts delete mode 100644 codegen/_output/rococo/frame_system/extensions/check_tx_version.ts delete mode 100644 codegen/_output/rococo/frame_system/extensions/check_weight.ts delete mode 100644 codegen/_output/rococo/frame_system/limits.ts delete mode 100644 codegen/_output/rococo/frame_system/mod.ts delete mode 100644 codegen/_output/rococo/pallet_authorship/mod.ts delete mode 100644 codegen/_output/rococo/pallet_bags_list/list.ts delete mode 100644 codegen/_output/rococo/pallet_balances/mod.ts delete mode 100644 codegen/_output/rococo/pallet_bounties/mod.ts delete mode 100644 codegen/_output/rococo/pallet_child_bounties/mod.ts delete mode 100644 codegen/_output/rococo/pallet_collective/mod.ts delete mode 100644 codegen/_output/rococo/pallet_democracy/conviction.ts delete mode 100644 codegen/_output/rococo/pallet_democracy/types.ts delete mode 100644 codegen/_output/rococo/pallet_democracy/vote.ts delete mode 100644 codegen/_output/rococo/pallet_democracy/vote_threshold.ts delete mode 100644 codegen/_output/rococo/pallet_election_provider_multi_phase/mod.ts delete mode 100644 codegen/_output/rococo/pallet_election_provider_multi_phase/signed.ts delete mode 100644 codegen/_output/rococo/pallet_elections_phragmen/mod.ts delete mode 100644 codegen/_output/rococo/pallet_fast_unstake/types.ts delete mode 100644 codegen/_output/rococo/pallet_grandpa/mod.ts delete mode 100644 codegen/_output/rococo/pallet_identity/types.ts delete mode 100644 codegen/_output/rococo/pallet_im_online/mod.ts delete mode 100644 codegen/_output/rococo/pallet_im_online/sr25519/app_sr25519.ts delete mode 100644 codegen/_output/rococo/pallet_multisig/mod.ts delete mode 100644 codegen/_output/rococo/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts delete mode 100644 codegen/_output/rococo/pallet_nomination_pools/ConfigOp/mod.ts delete mode 100644 codegen/_output/rococo/pallet_nomination_pools/mod.ts delete mode 100644 codegen/_output/rococo/pallet_preimage/mod.ts delete mode 100644 codegen/_output/rococo/pallet_proxy/mod.ts delete mode 100644 codegen/_output/rococo/pallet_scheduler/mod.ts delete mode 100644 codegen/_output/rococo/pallet_staking/mod.ts delete mode 100644 codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts delete mode 100644 codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/mod.ts delete mode 100644 codegen/_output/rococo/pallet_staking/slashing.ts delete mode 100644 codegen/_output/rococo/pallet_tips/mod.ts delete mode 100644 codegen/_output/rococo/pallet_transaction_payment/mod.ts delete mode 100644 codegen/_output/rococo/pallet_treasury/mod.ts delete mode 100644 codegen/_output/rococo/pallet_vesting/mod.ts delete mode 100644 codegen/_output/rococo/pallet_vesting/vesting_info.ts delete mode 100644 codegen/_output/rococo/polkadot_core_primitives.ts delete mode 100644 codegen/_output/rococo/polkadot_parachain/primitives.ts delete mode 100644 codegen/_output/rococo/polkadot_primitives/v2/assignment_app.ts delete mode 100644 codegen/_output/rococo/polkadot_primitives/v2/collator_app.ts delete mode 100644 codegen/_output/rococo/polkadot_primitives/v2/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_primitives/v2/signed.ts delete mode 100644 codegen/_output/rococo/polkadot_primitives/v2/validator_app.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_common/claims/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_common/crowdloan/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_common/paras_registrar/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/configuration/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/disputes/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/dmp/pallet.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/hrmp/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/inclusion/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/initializer/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/origin/pallet.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/paras/mod.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/scheduler.ts delete mode 100644 codegen/_output/rococo/polkadot_runtime_parachains/shared/pallet.ts delete mode 100644 codegen/_output/rococo/primitive_types.ts delete mode 100644 codegen/_output/rococo/sp_arithmetic/fixed_point.ts delete mode 100644 codegen/_output/rococo/sp_arithmetic/per_things.ts delete mode 100644 codegen/_output/rococo/sp_authority_discovery/app.ts delete mode 100644 codegen/_output/rococo/sp_consensus_babe/app.ts delete mode 100644 codegen/_output/rococo/sp_consensus_babe/digests.ts delete mode 100644 codegen/_output/rococo/sp_consensus_babe/mod.ts delete mode 100644 codegen/_output/rococo/sp_consensus_slots.ts delete mode 100644 codegen/_output/rococo/sp_core/crypto.ts delete mode 100644 codegen/_output/rococo/sp_core/ecdsa.ts delete mode 100644 codegen/_output/rococo/sp_core/ed25519.ts delete mode 100644 codegen/_output/rococo/sp_core/mod.ts delete mode 100644 codegen/_output/rococo/sp_core/offchain.ts delete mode 100644 codegen/_output/rococo/sp_core/sr25519.ts delete mode 100644 codegen/_output/rococo/sp_finality_grandpa/app.ts delete mode 100644 codegen/_output/rococo/sp_finality_grandpa/mod.ts delete mode 100644 codegen/_output/rococo/sp_npos_elections.ts delete mode 100644 codegen/_output/rococo/sp_runtime/generic/digest.ts delete mode 100644 codegen/_output/rococo/sp_runtime/generic/header.ts delete mode 100644 codegen/_output/rococo/sp_runtime/mod.ts delete mode 100644 codegen/_output/rococo/sp_runtime/multiaddress.ts delete mode 100644 codegen/_output/rococo/sp_runtime/traits.ts delete mode 100644 codegen/_output/rococo/sp_session.ts delete mode 100644 codegen/_output/rococo/sp_staking/offence.ts delete mode 100644 codegen/_output/rococo/sp_version.ts delete mode 100644 codegen/_output/rococo/sp_weights/mod.ts delete mode 100644 codegen/_output/rococo/sp_weights/weight_v2.ts rename codegen/_output/rococo/{ => types}/bitvec/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/bitvec/order.ts create mode 100644 codegen/_output/rococo/types/finality_grandpa/Equivocation/$$finality_grandpa.ts rename codegen/_output/rococo/{ => types}/finality_grandpa/Equivocation/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/finality_grandpa/mod.ts create mode 100644 codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts rename codegen/_output/rococo/{ => types}/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts (100%) rename codegen/_output/rococo/{ => types}/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts create mode 100644 codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/mod.ts create mode 100644 codegen/_output/rococo/types/frame_support/dispatch/mod.ts create mode 100644 codegen/_output/rococo/types/frame_support/mod.ts create mode 100644 codegen/_output/rococo/types/frame_support/traits/misc.ts rename codegen/_output/rococo/{ => types}/frame_support/traits/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/frame_support/traits/preimages.ts create mode 100644 codegen/_output/rococo/types/frame_support/traits/tokens/misc.ts rename codegen/_output/rococo/{ => types}/frame_support/traits/tokens/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/frame_system/extensions/check_genesis.ts create mode 100644 codegen/_output/rococo/types/frame_system/extensions/check_non_zero_sender.ts create mode 100644 codegen/_output/rococo/types/frame_system/extensions/check_spec_version.ts create mode 100644 codegen/_output/rococo/types/frame_system/extensions/check_tx_version.ts create mode 100644 codegen/_output/rococo/types/frame_system/extensions/check_weight.ts rename codegen/_output/rococo/{ => types}/frame_system/extensions/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/frame_system/limits.ts create mode 100644 codegen/_output/rococo/types/frame_system/mod.ts rename codegen/_output/{polkadot => rococo/types}/frame_system/pallet.ts (64%) create mode 100644 codegen/_output/rococo/types/mod.ts create mode 100644 codegen/_output/rococo/types/pallet_authorship/mod.ts rename codegen/_output/{kusama => rococo/types}/pallet_authorship/pallet.ts (52%) rename codegen/_output/rococo/{ => types}/pallet_babe/mod.ts (100%) rename codegen/_output/{kusama => rococo/types}/pallet_babe/pallet.ts (71%) create mode 100644 codegen/_output/rococo/types/pallet_bags_list/list.ts rename codegen/_output/rococo/{ => types}/pallet_bags_list/mod.ts (100%) rename codegen/_output/{westend => rococo/types}/pallet_bags_list/pallet.ts (65%) create mode 100644 codegen/_output/rococo/types/pallet_balances/mod.ts rename codegen/_output/{polkadot => rococo/types}/pallet_balances/pallet.ts (69%) create mode 100644 codegen/_output/rococo/types/pallet_bounties/mod.ts rename codegen/_output/{kusama => rococo/types}/pallet_bounties/pallet.ts (71%) create mode 100644 codegen/_output/rococo/types/pallet_child_bounties/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_child_bounties/pallet.ts (79%) create mode 100644 codegen/_output/rococo/types/pallet_collective/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_collective/pallet.ts (80%) create mode 100644 codegen/_output/rococo/types/pallet_democracy/conviction.ts rename codegen/_output/rococo/{ => types}/pallet_democracy/mod.ts (100%) rename codegen/_output/{kusama => rococo/types}/pallet_democracy/pallet.ts (75%) create mode 100644 codegen/_output/rococo/types/pallet_democracy/types.ts create mode 100644 codegen/_output/rococo/types/pallet_democracy/vote.ts create mode 100644 codegen/_output/rococo/types/pallet_democracy/vote_threshold.ts create mode 100644 codegen/_output/rococo/types/pallet_election_provider_multi_phase/mod.ts rename codegen/_output/{polkadot => rococo/types}/pallet_election_provider_multi_phase/pallet.ts (65%) create mode 100644 codegen/_output/rococo/types/pallet_election_provider_multi_phase/signed.ts create mode 100644 codegen/_output/rococo/types/pallet_elections_phragmen/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_elections_phragmen/pallet.ts (77%) rename codegen/_output/rococo/{ => types}/pallet_fast_unstake/mod.ts (100%) rename codegen/_output/{westend => rococo/types}/pallet_fast_unstake/pallet.ts (69%) create mode 100644 codegen/_output/rococo/types/pallet_fast_unstake/types.ts create mode 100644 codegen/_output/rococo/types/pallet_grandpa/mod.ts rename codegen/_output/rococo/{ => types}/pallet_grandpa/pallet.ts (72%) rename codegen/_output/rococo/{ => types}/pallet_identity/mod.ts (100%) rename codegen/_output/{polkadot => rococo/types}/pallet_identity/pallet.ts (77%) create mode 100644 codegen/_output/rococo/types/pallet_identity/types.ts create mode 100644 codegen/_output/rococo/types/pallet_im_online/mod.ts rename codegen/_output/{kusama => rococo/types}/pallet_im_online/pallet.ts (62%) create mode 100644 codegen/_output/rococo/types/pallet_im_online/sr25519/app_sr25519.ts rename codegen/_output/rococo/{ => types}/pallet_im_online/sr25519/mod.ts (100%) rename codegen/_output/rococo/{ => types}/pallet_indices/mod.ts (100%) rename codegen/_output/{westend => rococo/types}/pallet_indices/pallet.ts (79%) rename codegen/_output/rococo/{ => types}/pallet_membership/mod.ts (100%) rename codegen/_output/{polkadot => rococo/types}/pallet_membership/pallet.ts (63%) create mode 100644 codegen/_output/rococo/types/pallet_multisig/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_multisig/pallet.ts (81%) create mode 100644 codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts rename codegen/_output/rococo/{ => types}/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/mod.ts create mode 100644 codegen/_output/rococo/types/pallet_nomination_pools/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_nomination_pools/pallet.ts (69%) rename codegen/_output/rococo/{ => types}/pallet_offences/mod.ts (100%) rename codegen/_output/{westend => rococo/types}/pallet_offences/pallet.ts (62%) create mode 100644 codegen/_output/rococo/types/pallet_preimage/mod.ts rename codegen/_output/{kusama => rococo/types}/pallet_preimage/pallet.ts (66%) create mode 100644 codegen/_output/rococo/types/pallet_proxy/mod.ts rename codegen/_output/{polkadot => rococo/types}/pallet_proxy/pallet.ts (74%) create mode 100644 codegen/_output/rococo/types/pallet_scheduler/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_scheduler/pallet.ts (52%) rename codegen/_output/rococo/{ => types}/pallet_session/mod.ts (100%) rename codegen/_output/{kusama => rococo/types}/pallet_session/pallet.ts (80%) create mode 100644 codegen/_output/rococo/types/pallet_staking/mod.ts rename codegen/_output/rococo/{ => types}/pallet_staking/pallet/mod.ts (100%) rename codegen/_output/rococo/{ => types}/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts create mode 100644 codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts rename codegen/_output/{polkadot => rococo/types}/pallet_staking/pallet/pallet/mod.ts (76%) create mode 100644 codegen/_output/rococo/types/pallet_staking/slashing.ts rename codegen/_output/rococo/{ => types}/pallet_timestamp/mod.ts (100%) rename codegen/_output/{westend => rococo/types}/pallet_timestamp/pallet.ts (79%) create mode 100644 codegen/_output/rococo/types/pallet_tips/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_tips/pallet.ts (81%) create mode 100644 codegen/_output/rococo/types/pallet_transaction_payment/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_transaction_payment/pallet.ts (50%) create mode 100644 codegen/_output/rococo/types/pallet_treasury/mod.ts rename codegen/_output/{westend => rococo/types}/pallet_treasury/pallet.ts (68%) rename codegen/_output/rococo/{ => types}/pallet_utility/mod.ts (100%) rename codegen/_output/rococo/{ => types}/pallet_utility/pallet.ts (76%) create mode 100644 codegen/_output/rococo/types/pallet_vesting/mod.ts rename codegen/_output/{kusama => rococo/types}/pallet_vesting/pallet.ts (80%) create mode 100644 codegen/_output/rococo/types/pallet_vesting/vesting_info.ts rename codegen/_output/rococo/{ => types}/pallet_xcm/mod.ts (100%) rename codegen/_output/{kusama => rococo/types}/pallet_xcm/pallet.ts (71%) create mode 100644 codegen/_output/rococo/types/polkadot_core_primitives.ts rename codegen/_output/rococo/{ => types}/polkadot_parachain/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/polkadot_parachain/primitives.ts rename codegen/_output/rococo/{ => types}/polkadot_primitives/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/polkadot_primitives/v2/assignment_app.ts create mode 100644 codegen/_output/rococo/types/polkadot_primitives/v2/collator_app.ts create mode 100644 codegen/_output/rococo/types/polkadot_primitives/v2/mod.ts create mode 100644 codegen/_output/rococo/types/polkadot_primitives/v2/signed.ts create mode 100644 codegen/_output/rococo/types/polkadot_primitives/v2/validator_app.ts create mode 100644 codegen/_output/rococo/types/polkadot_runtime.ts rename codegen/_output/rococo/{ => types}/polkadot_runtime_common/auctions/mod.ts (100%) rename codegen/_output/{kusama => rococo/types}/polkadot_runtime_common/auctions/pallet.ts (63%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_common/claims/mod.ts rename codegen/_output/{kusama => rococo/types}/polkadot_runtime_common/claims/pallet.ts (74%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_common/crowdloan/mod.ts rename codegen/_output/{westend => rococo/types}/polkadot_runtime_common/crowdloan/pallet.ts (57%) rename codegen/_output/rococo/{ => types}/polkadot_runtime_common/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_common/paras_registrar/mod.ts rename codegen/_output/{westend => rococo/types}/polkadot_runtime_common/paras_registrar/pallet.ts (65%) rename codegen/_output/rococo/{ => types}/polkadot_runtime_common/slots/mod.ts (100%) rename codegen/_output/{westend => rococo/types}/polkadot_runtime_common/slots/pallet.ts (61%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/configuration/mod.ts rename codegen/_output/{kusama => rococo/types}/polkadot_runtime_parachains/configuration/pallet.ts (55%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/disputes/mod.ts rename codegen/_output/rococo/{ => types}/polkadot_runtime_parachains/disputes/pallet.ts (57%) rename codegen/_output/rococo/{ => types}/polkadot_runtime_parachains/dmp/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/dmp/pallet.ts create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/hrmp/mod.ts rename codegen/_output/{polkadot => rococo/types}/polkadot_runtime_parachains/hrmp/pallet.ts (64%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/inclusion/mod.ts rename codegen/_output/{kusama => rococo/types}/polkadot_runtime_parachains/inclusion/pallet.ts (54%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/initializer/mod.ts rename codegen/_output/{polkadot => rococo/types}/polkadot_runtime_parachains/initializer/pallet.ts (57%) rename codegen/_output/rococo/{ => types}/polkadot_runtime_parachains/mod.ts (100%) rename codegen/_output/rococo/{ => types}/polkadot_runtime_parachains/origin/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/origin/pallet.ts create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/paras/mod.ts rename codegen/_output/{polkadot => rococo/types}/polkadot_runtime_parachains/paras/pallet.ts (58%) rename codegen/_output/rococo/{ => types}/polkadot_runtime_parachains/paras_inherent/mod.ts (100%) rename codegen/_output/{polkadot => rococo/types}/polkadot_runtime_parachains/paras_inherent/pallet.ts (52%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/scheduler.ts rename codegen/_output/rococo/{ => types}/polkadot_runtime_parachains/shared/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/polkadot_runtime_parachains/shared/pallet.ts rename codegen/_output/rococo/{ => types}/polkadot_runtime_parachains/ump/mod.ts (100%) rename codegen/_output/{polkadot => rococo/types}/polkadot_runtime_parachains/ump/pallet.ts (60%) create mode 100644 codegen/_output/rococo/types/primitive_types.ts create mode 100644 codegen/_output/rococo/types/sp_arithmetic/fixed_point.ts rename codegen/_output/rococo/{ => types}/sp_arithmetic/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/sp_arithmetic/per_things.ts create mode 100644 codegen/_output/rococo/types/sp_authority_discovery/app.ts rename codegen/_output/rococo/{ => types}/sp_authority_discovery/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/sp_consensus_babe/app.ts create mode 100644 codegen/_output/rococo/types/sp_consensus_babe/digests.ts create mode 100644 codegen/_output/rococo/types/sp_consensus_babe/mod.ts create mode 100644 codegen/_output/rococo/types/sp_consensus_slots.ts create mode 100644 codegen/_output/rococo/types/sp_core/crypto.ts create mode 100644 codegen/_output/rococo/types/sp_core/ecdsa.ts create mode 100644 codegen/_output/rococo/types/sp_core/ed25519.ts create mode 100644 codegen/_output/rococo/types/sp_core/mod.ts create mode 100644 codegen/_output/rococo/types/sp_core/offchain.ts create mode 100644 codegen/_output/rococo/types/sp_core/sr25519.ts create mode 100644 codegen/_output/rococo/types/sp_finality_grandpa/app.ts create mode 100644 codegen/_output/rococo/types/sp_finality_grandpa/mod.ts create mode 100644 codegen/_output/rococo/types/sp_npos_elections.ts create mode 100644 codegen/_output/rococo/types/sp_runtime/generic/digest.ts create mode 100644 codegen/_output/rococo/types/sp_runtime/generic/header.ts rename codegen/_output/rococo/{ => types}/sp_runtime/generic/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/sp_runtime/mod.ts create mode 100644 codegen/_output/rococo/types/sp_runtime/multiaddress.ts create mode 100644 codegen/_output/rococo/types/sp_runtime/traits.ts create mode 100644 codegen/_output/rococo/types/sp_session.ts rename codegen/_output/rococo/{ => types}/sp_staking/mod.ts (100%) create mode 100644 codegen/_output/rococo/types/sp_staking/offence.ts create mode 100644 codegen/_output/rococo/types/sp_version.ts create mode 100644 codegen/_output/rococo/types/sp_weights/mod.ts create mode 100644 codegen/_output/rococo/types/sp_weights/weight_v2.ts create mode 100644 codegen/_output/rococo/types/xcm/mod.ts create mode 100644 codegen/_output/rococo/types/xcm/v0/junction.ts create mode 100644 codegen/_output/rococo/types/xcm/v0/mod.ts create mode 100644 codegen/_output/rococo/types/xcm/v0/multi_asset.ts create mode 100644 codegen/_output/rococo/types/xcm/v0/multi_location.ts create mode 100644 codegen/_output/rococo/types/xcm/v0/order.ts create mode 100644 codegen/_output/rococo/types/xcm/v1/junction.ts create mode 100644 codegen/_output/rococo/types/xcm/v1/mod.ts create mode 100644 codegen/_output/rococo/types/xcm/v1/multiasset.ts create mode 100644 codegen/_output/rococo/types/xcm/v1/multilocation.ts create mode 100644 codegen/_output/rococo/types/xcm/v1/order.ts create mode 100644 codegen/_output/rococo/types/xcm/v2/mod.ts create mode 100644 codegen/_output/rococo/types/xcm/v2/traits.ts delete mode 100644 codegen/_output/rococo/xcm/mod.ts delete mode 100644 codegen/_output/rococo/xcm/v0/junction.ts delete mode 100644 codegen/_output/rococo/xcm/v0/mod.ts delete mode 100644 codegen/_output/rococo/xcm/v0/multi_asset.ts delete mode 100644 codegen/_output/rococo/xcm/v0/multi_location.ts delete mode 100644 codegen/_output/rococo/xcm/v0/order.ts delete mode 100644 codegen/_output/rococo/xcm/v1/junction.ts delete mode 100644 codegen/_output/rococo/xcm/v1/mod.ts delete mode 100644 codegen/_output/rococo/xcm/v1/multiasset.ts delete mode 100644 codegen/_output/rococo/xcm/v1/multilocation.ts delete mode 100644 codegen/_output/rococo/xcm/v1/order.ts delete mode 100644 codegen/_output/rococo/xcm/v2/mod.ts delete mode 100644 codegen/_output/rococo/xcm/v2/traits.ts delete mode 100644 codegen/_output/westend/bitvec/order.ts delete mode 100644 codegen/_output/westend/finality_grandpa/Equivocation/$$finality_grandpa.ts delete mode 100644 codegen/_output/westend/finality_grandpa/mod.ts delete mode 100644 codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts delete mode 100644 codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts delete mode 100644 codegen/_output/westend/frame_support/dispatch/PerDispatchClass/mod.ts delete mode 100644 codegen/_output/westend/frame_support/dispatch/mod.ts delete mode 100644 codegen/_output/westend/frame_support/mod.ts delete mode 100644 codegen/_output/westend/frame_support/traits/misc.ts delete mode 100644 codegen/_output/westend/frame_support/traits/preimages.ts delete mode 100644 codegen/_output/westend/frame_support/traits/tokens/misc.ts delete mode 100644 codegen/_output/westend/frame_system/extensions/check_genesis.ts delete mode 100644 codegen/_output/westend/frame_system/extensions/check_non_zero_sender.ts delete mode 100644 codegen/_output/westend/frame_system/extensions/check_spec_version.ts delete mode 100644 codegen/_output/westend/frame_system/extensions/check_tx_version.ts delete mode 100644 codegen/_output/westend/frame_system/extensions/check_weight.ts delete mode 100644 codegen/_output/westend/frame_system/limits.ts delete mode 100644 codegen/_output/westend/frame_system/mod.ts delete mode 100644 codegen/_output/westend/pallet_authorship/mod.ts delete mode 100644 codegen/_output/westend/pallet_bags_list/list.ts delete mode 100644 codegen/_output/westend/pallet_balances/mod.ts delete mode 100644 codegen/_output/westend/pallet_bounties/mod.ts delete mode 100644 codegen/_output/westend/pallet_child_bounties/mod.ts delete mode 100644 codegen/_output/westend/pallet_collective/mod.ts delete mode 100644 codegen/_output/westend/pallet_democracy/conviction.ts delete mode 100644 codegen/_output/westend/pallet_democracy/types.ts delete mode 100644 codegen/_output/westend/pallet_democracy/vote.ts delete mode 100644 codegen/_output/westend/pallet_democracy/vote_threshold.ts delete mode 100644 codegen/_output/westend/pallet_election_provider_multi_phase/mod.ts delete mode 100644 codegen/_output/westend/pallet_election_provider_multi_phase/signed.ts delete mode 100644 codegen/_output/westend/pallet_elections_phragmen/mod.ts delete mode 100644 codegen/_output/westend/pallet_fast_unstake/types.ts delete mode 100644 codegen/_output/westend/pallet_grandpa/mod.ts delete mode 100644 codegen/_output/westend/pallet_identity/types.ts delete mode 100644 codegen/_output/westend/pallet_im_online/mod.ts delete mode 100644 codegen/_output/westend/pallet_im_online/sr25519/app_sr25519.ts delete mode 100644 codegen/_output/westend/pallet_multisig/mod.ts delete mode 100644 codegen/_output/westend/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts delete mode 100644 codegen/_output/westend/pallet_nomination_pools/ConfigOp/mod.ts delete mode 100644 codegen/_output/westend/pallet_nomination_pools/mod.ts delete mode 100644 codegen/_output/westend/pallet_preimage/mod.ts delete mode 100644 codegen/_output/westend/pallet_proxy/mod.ts delete mode 100644 codegen/_output/westend/pallet_scheduler/mod.ts delete mode 100644 codegen/_output/westend/pallet_staking/mod.ts delete mode 100644 codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts delete mode 100644 codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/mod.ts delete mode 100644 codegen/_output/westend/pallet_staking/slashing.ts delete mode 100644 codegen/_output/westend/pallet_tips/mod.ts delete mode 100644 codegen/_output/westend/pallet_transaction_payment/mod.ts delete mode 100644 codegen/_output/westend/pallet_treasury/mod.ts delete mode 100644 codegen/_output/westend/pallet_vesting/mod.ts delete mode 100644 codegen/_output/westend/pallet_vesting/vesting_info.ts delete mode 100644 codegen/_output/westend/polkadot_core_primitives.ts delete mode 100644 codegen/_output/westend/polkadot_parachain/primitives.ts delete mode 100644 codegen/_output/westend/polkadot_primitives/v2/assignment_app.ts delete mode 100644 codegen/_output/westend/polkadot_primitives/v2/collator_app.ts delete mode 100644 codegen/_output/westend/polkadot_primitives/v2/mod.ts delete mode 100644 codegen/_output/westend/polkadot_primitives/v2/signed.ts delete mode 100644 codegen/_output/westend/polkadot_primitives/v2/validator_app.ts delete mode 100644 codegen/_output/westend/polkadot_runtime.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_common/claims/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_common/crowdloan/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_common/paras_registrar/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/configuration/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/disputes/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/dmp/pallet.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/hrmp/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/inclusion/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/initializer/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/origin/pallet.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/paras/mod.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/scheduler.ts delete mode 100644 codegen/_output/westend/polkadot_runtime_parachains/shared/pallet.ts delete mode 100644 codegen/_output/westend/primitive_types.ts delete mode 100644 codegen/_output/westend/sp_arithmetic/fixed_point.ts delete mode 100644 codegen/_output/westend/sp_arithmetic/per_things.ts delete mode 100644 codegen/_output/westend/sp_authority_discovery/app.ts delete mode 100644 codegen/_output/westend/sp_consensus_babe/app.ts delete mode 100644 codegen/_output/westend/sp_consensus_babe/digests.ts delete mode 100644 codegen/_output/westend/sp_consensus_babe/mod.ts delete mode 100644 codegen/_output/westend/sp_consensus_slots.ts delete mode 100644 codegen/_output/westend/sp_core/crypto.ts delete mode 100644 codegen/_output/westend/sp_core/ecdsa.ts delete mode 100644 codegen/_output/westend/sp_core/ed25519.ts delete mode 100644 codegen/_output/westend/sp_core/mod.ts delete mode 100644 codegen/_output/westend/sp_core/offchain.ts delete mode 100644 codegen/_output/westend/sp_core/sr25519.ts delete mode 100644 codegen/_output/westend/sp_finality_grandpa/app.ts delete mode 100644 codegen/_output/westend/sp_finality_grandpa/mod.ts delete mode 100644 codegen/_output/westend/sp_npos_elections.ts delete mode 100644 codegen/_output/westend/sp_runtime/generic/digest.ts delete mode 100644 codegen/_output/westend/sp_runtime/generic/header.ts delete mode 100644 codegen/_output/westend/sp_runtime/mod.ts delete mode 100644 codegen/_output/westend/sp_runtime/multiaddress.ts delete mode 100644 codegen/_output/westend/sp_runtime/traits.ts delete mode 100644 codegen/_output/westend/sp_session.ts delete mode 100644 codegen/_output/westend/sp_staking/offence.ts delete mode 100644 codegen/_output/westend/sp_version.ts delete mode 100644 codegen/_output/westend/sp_weights/mod.ts delete mode 100644 codegen/_output/westend/sp_weights/weight_v2.ts rename codegen/_output/westend/{ => types}/bitvec/mod.ts (100%) create mode 100644 codegen/_output/westend/types/bitvec/order.ts create mode 100644 codegen/_output/westend/types/finality_grandpa/Equivocation/$$finality_grandpa.ts rename codegen/_output/westend/{ => types}/finality_grandpa/Equivocation/mod.ts (100%) create mode 100644 codegen/_output/westend/types/finality_grandpa/mod.ts create mode 100644 codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts rename codegen/_output/westend/{ => types}/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts (100%) rename codegen/_output/westend/{ => types}/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts (100%) create mode 100644 codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts create mode 100644 codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/mod.ts create mode 100644 codegen/_output/westend/types/frame_support/dispatch/mod.ts create mode 100644 codegen/_output/westend/types/frame_support/mod.ts create mode 100644 codegen/_output/westend/types/frame_support/traits/misc.ts rename codegen/_output/westend/{ => types}/frame_support/traits/mod.ts (100%) create mode 100644 codegen/_output/westend/types/frame_support/traits/preimages.ts create mode 100644 codegen/_output/westend/types/frame_support/traits/tokens/misc.ts rename codegen/_output/westend/{ => types}/frame_support/traits/tokens/mod.ts (100%) create mode 100644 codegen/_output/westend/types/frame_system/extensions/check_genesis.ts create mode 100644 codegen/_output/westend/types/frame_system/extensions/check_non_zero_sender.ts create mode 100644 codegen/_output/westend/types/frame_system/extensions/check_spec_version.ts create mode 100644 codegen/_output/westend/types/frame_system/extensions/check_tx_version.ts create mode 100644 codegen/_output/westend/types/frame_system/extensions/check_weight.ts rename codegen/_output/westend/{ => types}/frame_system/extensions/mod.ts (100%) create mode 100644 codegen/_output/westend/types/frame_system/limits.ts create mode 100644 codegen/_output/westend/types/frame_system/mod.ts rename codegen/_output/westend/{ => types}/frame_system/pallet.ts (64%) create mode 100644 codegen/_output/westend/types/mod.ts create mode 100644 codegen/_output/westend/types/pallet_authorship/mod.ts rename codegen/_output/westend/{ => types}/pallet_authorship/pallet.ts (52%) rename codegen/_output/westend/{ => types}/pallet_babe/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_babe/pallet.ts (71%) create mode 100644 codegen/_output/westend/types/pallet_bags_list/list.ts rename codegen/_output/westend/{ => types}/pallet_bags_list/mod.ts (100%) rename codegen/_output/{kusama => westend/types}/pallet_bags_list/pallet.ts (65%) create mode 100644 codegen/_output/westend/types/pallet_balances/mod.ts rename codegen/_output/westend/{ => types}/pallet_balances/pallet.ts (69%) create mode 100644 codegen/_output/westend/types/pallet_bounties/mod.ts rename codegen/_output/{polkadot => westend/types}/pallet_bounties/pallet.ts (71%) create mode 100644 codegen/_output/westend/types/pallet_child_bounties/mod.ts rename codegen/_output/{kusama => westend/types}/pallet_child_bounties/pallet.ts (79%) create mode 100644 codegen/_output/westend/types/pallet_collective/mod.ts rename codegen/_output/{kusama => westend/types}/pallet_collective/pallet.ts (80%) create mode 100644 codegen/_output/westend/types/pallet_democracy/conviction.ts rename codegen/_output/westend/{ => types}/pallet_democracy/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_democracy/pallet.ts (75%) create mode 100644 codegen/_output/westend/types/pallet_democracy/types.ts create mode 100644 codegen/_output/westend/types/pallet_democracy/vote.ts create mode 100644 codegen/_output/westend/types/pallet_democracy/vote_threshold.ts create mode 100644 codegen/_output/westend/types/pallet_election_provider_multi_phase/mod.ts rename codegen/_output/westend/{ => types}/pallet_election_provider_multi_phase/pallet.ts (65%) create mode 100644 codegen/_output/westend/types/pallet_election_provider_multi_phase/signed.ts create mode 100644 codegen/_output/westend/types/pallet_elections_phragmen/mod.ts rename codegen/_output/{kusama => westend/types}/pallet_elections_phragmen/pallet.ts (77%) rename codegen/_output/westend/{ => types}/pallet_fast_unstake/mod.ts (100%) rename codegen/_output/{polkadot => westend/types}/pallet_fast_unstake/pallet.ts (69%) create mode 100644 codegen/_output/westend/types/pallet_fast_unstake/types.ts create mode 100644 codegen/_output/westend/types/pallet_grandpa/mod.ts rename codegen/_output/westend/{ => types}/pallet_grandpa/pallet.ts (72%) rename codegen/_output/westend/{ => types}/pallet_identity/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_identity/pallet.ts (77%) create mode 100644 codegen/_output/westend/types/pallet_identity/types.ts create mode 100644 codegen/_output/westend/types/pallet_im_online/mod.ts rename codegen/_output/{polkadot => westend/types}/pallet_im_online/pallet.ts (62%) create mode 100644 codegen/_output/westend/types/pallet_im_online/sr25519/app_sr25519.ts rename codegen/_output/westend/{ => types}/pallet_im_online/sr25519/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_indices/mod.ts (100%) rename codegen/_output/{polkadot => westend/types}/pallet_indices/pallet.ts (79%) rename codegen/_output/westend/{ => types}/pallet_membership/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_membership/pallet.ts (63%) create mode 100644 codegen/_output/westend/types/pallet_multisig/mod.ts rename codegen/_output/{polkadot => westend/types}/pallet_multisig/pallet.ts (81%) create mode 100644 codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts rename codegen/_output/westend/{ => types}/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts (100%) create mode 100644 codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/mod.ts create mode 100644 codegen/_output/westend/types/pallet_nomination_pools/mod.ts rename codegen/_output/{kusama => westend/types}/pallet_nomination_pools/pallet.ts (69%) rename codegen/_output/westend/{ => types}/pallet_offences/mod.ts (100%) rename codegen/_output/{polkadot => westend/types}/pallet_offences/pallet.ts (62%) create mode 100644 codegen/_output/westend/types/pallet_preimage/mod.ts rename codegen/_output/westend/{ => types}/pallet_preimage/pallet.ts (66%) create mode 100644 codegen/_output/westend/types/pallet_proxy/mod.ts rename codegen/_output/westend/{ => types}/pallet_proxy/pallet.ts (74%) create mode 100644 codegen/_output/westend/types/pallet_scheduler/mod.ts rename codegen/_output/{polkadot => westend/types}/pallet_scheduler/pallet.ts (52%) rename codegen/_output/westend/{ => types}/pallet_session/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_session/pallet.ts (80%) create mode 100644 codegen/_output/westend/types/pallet_staking/mod.ts rename codegen/_output/westend/{ => types}/pallet_staking/pallet/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts (100%) create mode 100644 codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts create mode 100644 codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts rename codegen/_output/westend/{ => types}/pallet_staking/pallet/pallet/mod.ts (76%) create mode 100644 codegen/_output/westend/types/pallet_staking/slashing.ts rename codegen/_output/westend/{ => types}/pallet_timestamp/mod.ts (100%) rename codegen/_output/{polkadot => westend/types}/pallet_timestamp/pallet.ts (79%) create mode 100644 codegen/_output/westend/types/pallet_tips/mod.ts rename codegen/_output/{polkadot => westend/types}/pallet_tips/pallet.ts (81%) create mode 100644 codegen/_output/westend/types/pallet_transaction_payment/mod.ts rename codegen/_output/{polkadot => westend/types}/pallet_transaction_payment/pallet.ts (50%) create mode 100644 codegen/_output/westend/types/pallet_treasury/mod.ts rename codegen/_output/{polkadot => westend/types}/pallet_treasury/pallet.ts (68%) rename codegen/_output/westend/{ => types}/pallet_utility/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_utility/pallet.ts (76%) create mode 100644 codegen/_output/westend/types/pallet_vesting/mod.ts rename codegen/_output/westend/{ => types}/pallet_vesting/pallet.ts (80%) create mode 100644 codegen/_output/westend/types/pallet_vesting/vesting_info.ts rename codegen/_output/westend/{ => types}/pallet_xcm/mod.ts (100%) rename codegen/_output/westend/{ => types}/pallet_xcm/pallet.ts (71%) create mode 100644 codegen/_output/westend/types/polkadot_core_primitives.ts rename codegen/_output/westend/{ => types}/polkadot_parachain/mod.ts (100%) create mode 100644 codegen/_output/westend/types/polkadot_parachain/primitives.ts rename codegen/_output/westend/{ => types}/polkadot_primitives/mod.ts (100%) create mode 100644 codegen/_output/westend/types/polkadot_primitives/v2/assignment_app.ts create mode 100644 codegen/_output/westend/types/polkadot_primitives/v2/collator_app.ts create mode 100644 codegen/_output/westend/types/polkadot_primitives/v2/mod.ts create mode 100644 codegen/_output/westend/types/polkadot_primitives/v2/signed.ts create mode 100644 codegen/_output/westend/types/polkadot_primitives/v2/validator_app.ts create mode 100644 codegen/_output/westend/types/polkadot_runtime.ts rename codegen/_output/westend/{ => types}/polkadot_runtime_common/auctions/mod.ts (100%) rename codegen/_output/{polkadot => westend/types}/polkadot_runtime_common/auctions/pallet.ts (63%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_common/claims/mod.ts rename codegen/_output/westend/{ => types}/polkadot_runtime_common/claims/pallet.ts (74%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_common/crowdloan/mod.ts rename codegen/_output/{polkadot => westend/types}/polkadot_runtime_common/crowdloan/pallet.ts (57%) rename codegen/_output/westend/{ => types}/polkadot_runtime_common/mod.ts (100%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_common/paras_registrar/mod.ts rename codegen/_output/{kusama => westend/types}/polkadot_runtime_common/paras_registrar/pallet.ts (65%) rename codegen/_output/westend/{ => types}/polkadot_runtime_common/slots/mod.ts (100%) rename codegen/_output/{polkadot => westend/types}/polkadot_runtime_common/slots/pallet.ts (61%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/configuration/mod.ts rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/configuration/pallet.ts (55%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/disputes/mod.ts rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/disputes/pallet.ts (57%) rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/dmp/mod.ts (100%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/dmp/pallet.ts create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/hrmp/mod.ts rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/hrmp/pallet.ts (64%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/inclusion/mod.ts rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/inclusion/pallet.ts (54%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/initializer/mod.ts rename codegen/_output/{kusama => westend/types}/polkadot_runtime_parachains/initializer/pallet.ts (57%) rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/mod.ts (100%) rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/origin/mod.ts (100%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/origin/pallet.ts create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/paras/mod.ts rename codegen/_output/{kusama => westend/types}/polkadot_runtime_parachains/paras/pallet.ts (58%) rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/paras_inherent/mod.ts (100%) rename codegen/_output/{kusama => westend/types}/polkadot_runtime_parachains/paras_inherent/pallet.ts (52%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/scheduler.ts rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/shared/mod.ts (100%) create mode 100644 codegen/_output/westend/types/polkadot_runtime_parachains/shared/pallet.ts rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/ump/mod.ts (100%) rename codegen/_output/westend/{ => types}/polkadot_runtime_parachains/ump/pallet.ts (60%) create mode 100644 codegen/_output/westend/types/primitive_types.ts create mode 100644 codegen/_output/westend/types/sp_arithmetic/fixed_point.ts rename codegen/_output/westend/{ => types}/sp_arithmetic/mod.ts (100%) create mode 100644 codegen/_output/westend/types/sp_arithmetic/per_things.ts create mode 100644 codegen/_output/westend/types/sp_authority_discovery/app.ts rename codegen/_output/westend/{ => types}/sp_authority_discovery/mod.ts (100%) create mode 100644 codegen/_output/westend/types/sp_consensus_babe/app.ts create mode 100644 codegen/_output/westend/types/sp_consensus_babe/digests.ts create mode 100644 codegen/_output/westend/types/sp_consensus_babe/mod.ts create mode 100644 codegen/_output/westend/types/sp_consensus_slots.ts create mode 100644 codegen/_output/westend/types/sp_core/crypto.ts create mode 100644 codegen/_output/westend/types/sp_core/ecdsa.ts create mode 100644 codegen/_output/westend/types/sp_core/ed25519.ts create mode 100644 codegen/_output/westend/types/sp_core/mod.ts create mode 100644 codegen/_output/westend/types/sp_core/offchain.ts create mode 100644 codegen/_output/westend/types/sp_core/sr25519.ts create mode 100644 codegen/_output/westend/types/sp_finality_grandpa/app.ts create mode 100644 codegen/_output/westend/types/sp_finality_grandpa/mod.ts create mode 100644 codegen/_output/westend/types/sp_npos_elections.ts create mode 100644 codegen/_output/westend/types/sp_runtime/generic/digest.ts create mode 100644 codegen/_output/westend/types/sp_runtime/generic/header.ts rename codegen/_output/westend/{ => types}/sp_runtime/generic/mod.ts (100%) create mode 100644 codegen/_output/westend/types/sp_runtime/mod.ts create mode 100644 codegen/_output/westend/types/sp_runtime/multiaddress.ts create mode 100644 codegen/_output/westend/types/sp_runtime/traits.ts create mode 100644 codegen/_output/westend/types/sp_session.ts rename codegen/_output/westend/{ => types}/sp_staking/mod.ts (100%) create mode 100644 codegen/_output/westend/types/sp_staking/offence.ts create mode 100644 codegen/_output/westend/types/sp_version.ts create mode 100644 codegen/_output/westend/types/sp_weights/mod.ts create mode 100644 codegen/_output/westend/types/sp_weights/weight_v2.ts create mode 100644 codegen/_output/westend/types/xcm/mod.ts create mode 100644 codegen/_output/westend/types/xcm/v0/junction.ts create mode 100644 codegen/_output/westend/types/xcm/v0/mod.ts create mode 100644 codegen/_output/westend/types/xcm/v0/multi_asset.ts create mode 100644 codegen/_output/westend/types/xcm/v0/multi_location.ts create mode 100644 codegen/_output/westend/types/xcm/v0/order.ts create mode 100644 codegen/_output/westend/types/xcm/v1/junction.ts create mode 100644 codegen/_output/westend/types/xcm/v1/mod.ts create mode 100644 codegen/_output/westend/types/xcm/v1/multiasset.ts create mode 100644 codegen/_output/westend/types/xcm/v1/multilocation.ts create mode 100644 codegen/_output/westend/types/xcm/v1/order.ts create mode 100644 codegen/_output/westend/types/xcm/v2/mod.ts create mode 100644 codegen/_output/westend/types/xcm/v2/traits.ts delete mode 100644 codegen/_output/westend/xcm/mod.ts delete mode 100644 codegen/_output/westend/xcm/v0/junction.ts delete mode 100644 codegen/_output/westend/xcm/v0/mod.ts delete mode 100644 codegen/_output/westend/xcm/v0/multi_asset.ts delete mode 100644 codegen/_output/westend/xcm/v0/multi_location.ts delete mode 100644 codegen/_output/westend/xcm/v0/order.ts delete mode 100644 codegen/_output/westend/xcm/v1/junction.ts delete mode 100644 codegen/_output/westend/xcm/v1/mod.ts delete mode 100644 codegen/_output/westend/xcm/v1/multiasset.ts delete mode 100644 codegen/_output/westend/xcm/v1/multilocation.ts delete mode 100644 codegen/_output/westend/xcm/v1/order.ts delete mode 100644 codegen/_output/westend/xcm/v2/mod.ts delete mode 100644 codegen/_output/westend/xcm/v2/traits.ts diff --git a/codegen/_output/kusama/bitvec/order.ts b/codegen/_output/kusama/bitvec/order.ts deleted file mode 100644 index d11f4895b..000000000 --- a/codegen/_output/kusama/bitvec/order.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $lsb0: $.Codec = _codec.$384 - -export function Lsb0() { - return null -} - -export type Lsb0 = null diff --git a/codegen/_output/kusama/codecs.ts b/codegen/_output/kusama/codecs.ts index ec0089ee3..0d6bf21bf 100644 --- a/codegen/_output/kusama/codecs.ts +++ b/codegen/_output/kusama/codecs.ts @@ -3,20 +3,22 @@ import type * as t from "./mod.ts" export const $1: $.Codec = $.sizedUint8Array(32) -export const $0: $.Codec = $1 +export const $0: $.Codec = $1 -export const $2: $.Codec = $.u8 +export const $2: $.Codec = $.u8 -export const $4: $.Codec = $.u32 +export const $4: $.Codec = $.u32 -export const $6: $.Codec = $.u128 +export const $6: $.Codec = $.u128 -export const $5: $.Codec = $.object(["free", $6], ["reserved", $6], [ - "misc_frozen", - $6, -], ["fee_frozen", $6]) +export const $5: $.Codec = $.object( + ["free", $6], + ["reserved", $6], + ["misc_frozen", $6], + ["fee_frozen", $6], +) -export const $3: $.Codec = $.object( +export const $3: $.Codec = $.object( ["nonce", $4], ["consumers", $4], ["providers", $4], @@ -24,25 +26,26 @@ export const $3: $.Codec = $.object( ["data", $5], ) -export const $10: $.Codec = $.u64 +export const $10: $.Codec = $.u64 -export const $9: $.Codec> = $.compact($10) +export const $9: $.Codec> = $.compact($10) -export const $8: $.Codec = $.object(["ref_time", $9], [ +export const $8: $.Codec = $.object(["ref_time", $9], [ "proof_size", $9, ]) -export const $7: $.Codec = - $.object(["normal", $8], ["operational", $8], ["mandatory", $8]) +export const $7: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight +> = $.object(["normal", $8], ["operational", $8], ["mandatory", $8]) -export const $11: $.Codec = $1 +export const $11: $.Codec = $1 export const $12: $.Codec = $.uint8Array export const $16: $.Codec = $.sizedUint8Array(4) -export const $15: $.Codec = $.taggedUnion("type", { +export const $15: $.Codec = $.taggedUnion("type", { 6: ["PreRuntime", ["value", $.tuple($16, $12)]], 4: ["Consensus", ["value", $.tuple($16, $12)]], 5: ["Seal", ["value", $.tuple($16, $12)]], @@ -50,32 +53,35 @@ export const $15: $.Codec = $.taggedUnio 8: ["RuntimeEnvironmentUpdated"], }) -export const $14: $.Codec> = $.array($15) +export const $14: $.Codec> = $.array($15) -export const $13: $.Codec = $.object(["logs", $14]) +export const $13: $.Codec = $.object(["logs", $14]) -export const $156: $.Codec = $.taggedUnion("type", { +export const $156: $.Codec = $.taggedUnion("type", { 0: ["ApplyExtrinsic", ["value", $4]], 1: ["Finalization"], 2: ["Initialization"], }) -export const $22: $.Codec = $.stringUnion({ +export const $22: $.Codec = $.stringUnion({ 0: "Normal", 1: "Operational", 2: "Mandatory", }) -export const $23: $.Codec = $.stringUnion({ 0: "Yes", 1: "No" }) +export const $23: $.Codec = $.stringUnion({ + 0: "Yes", + 1: "No", +}) -export const $21: $.Codec = $.object(["weight", $8], [ +export const $21: $.Codec = $.object(["weight", $8], [ "class", $22, ], ["pays_fee", $23]) -export const $25: $.Codec = $.object(["index", $2], ["error", $16]) +export const $25: $.Codec = $.object(["index", $2], ["error", $16]) -export const $26: $.Codec = $.stringUnion({ +export const $26: $.Codec = $.stringUnion({ 0: "NoFunds", 1: "WouldDie", 2: "BelowMinimum", @@ -85,18 +91,18 @@ export const $26: $.Codec = $.stringUnion({ 6: "Unsupported", }) -export const $27: $.Codec = $.stringUnion({ +export const $27: $.Codec = $.stringUnion({ 0: "Underflow", 1: "Overflow", 2: "DivisionByZero", }) -export const $28: $.Codec = $.stringUnion({ +export const $28: $.Codec = $.stringUnion({ 0: "LimitReached", 1: "NoLayer", }) -export const $24: $.Codec = $.taggedUnion("type", { +export const $24: $.Codec = $.taggedUnion("type", { 0: ["Other"], 1: ["CannotLookup"], 2: ["BadOrigin"], @@ -112,7 +118,7 @@ export const $24: $.Codec = $.taggedUnion("type", { 12: ["Unavailable"], }) -export const $20: $.Codec = $.taggedUnion("type", { +export const $20: $.Codec = $.taggedUnion("type", { 0: ["ExtrinsicSuccess", ["dispatch_info", $21]], 1: ["ExtrinsicFailed", ["dispatch_error", $24], ["dispatch_info", $21]], 2: ["CodeUpdated"], @@ -121,18 +127,18 @@ export const $20: $.Codec = $.taggedUnion("type", { 5: ["Remarked", ["sender", $0], ["hash", $11]], }) -export const $30: $.Codec<[t.u32, t.u32]> = $.tuple($4, $4) +export const $30: $.Codec<[t.types.u32, t.types.u32]> = $.tuple($4, $4) export const $31: $.Codec = $.option($1) export const $33: $.Codec = C.$null -export const $32: $.Codec> = $.result( +export const $32: $.Codec> = $.result( $33, - $.instance(C.ChainError, ["value", $24]), + $.instance(C.ChainError, ["value", $24]), ) -export const $29: $.Codec = $.taggedUnion("type", { +export const $29: $.Codec = $.taggedUnion("type", { 0: ["Scheduled", ["when", $4], ["index", $4]], 1: ["Canceled", ["when", $4], ["index", $4]], 2: ["Dispatched", ["task", $30], ["id", $31], ["result", $32]], @@ -141,24 +147,24 @@ export const $29: $.Codec = $.taggedUnion("type 5: ["PermanentlyOverweight", ["task", $30], ["id", $31]], }) -export const $34: $.Codec = $.taggedUnion("type", { +export const $34: $.Codec = $.taggedUnion("type", { 0: ["Noted", ["hash", $11]], 1: ["Requested", ["hash", $11]], 2: ["Cleared", ["hash", $11]], }) -export const $35: $.Codec = $.taggedUnion("type", { +export const $35: $.Codec = $.taggedUnion("type", { 0: ["IndexAssigned", ["who", $0], ["index", $4]], 1: ["IndexFreed", ["index", $4]], 2: ["IndexFrozen", ["index", $4], ["who", $0]], }) -export const $37: $.Codec = $.stringUnion({ +export const $37: $.Codec = $.stringUnion({ 0: "Free", 1: "Reserved", }) -export const $36: $.Codec = $.taggedUnion("type", { +export const $36: $.Codec = $.taggedUnion("type", { 0: ["Endowed", ["account", $0], ["free_balance", $6]], 1: ["DustLost", ["account", $0], ["amount", $6]], 2: ["Transfer", ["from", $0], ["to", $0], ["amount", $6]], @@ -171,22 +177,22 @@ export const $36: $.Codec = $.taggedUnion("type" 9: ["Slashed", ["who", $0], ["amount", $6]], }) -export const $38: $.Codec = $.taggedUnion("type", { +export const $38: $.Codec = $.taggedUnion("type", { 0: ["TransactionFeePaid", ["who", $0], ["actual_fee", $6], ["tip", $6]], }) -export const $42: $.Codec = $4 +export const $42: $.Codec = $4 -export const $41: $.Codec> = $.compact($42) +export const $41: $.Codec> = $.compact($42) export const $43: $.Codec = $.bool -export const $40: $.Codec = $.object(["commission", $41], [ +export const $40: $.Codec = $.object(["commission", $41], [ "blocked", $43, ]) -export const $39: $.Codec = $.taggedUnion("type", { +export const $39: $.Codec = $.taggedUnion("type", { 0: ["EraPaid", ["era_index", $4], ["validator_payout", $6], ["remainder", $6]], 1: ["Rewarded", ["stash", $0], ["amount", $6]], 2: ["Slashed", ["staker", $0], ["amount", $6]], @@ -204,74 +210,79 @@ export const $39: $.Codec = $.taggedUnion( export const $45: $.Codec = $.sizedUint8Array(16) -export const $44: $.Codec = $.taggedUnion("type", { +export const $44: $.Codec = $.taggedUnion("type", { 0: ["Offence", ["kind", $45], ["timeslot", $12]], }) -export const $46: $.Codec = $.taggedUnion("type", { +export const $46: $.Codec = $.taggedUnion("type", { 0: ["NewSession", ["session_index", $4]], }) -export const $51: $.Codec = $1 +export const $51: $.Codec = $1 -export const $50: $.Codec = $51 +export const $50: $.Codec = $51 -export const $49: $.Codec<[t.sp_finality_grandpa.app.Public, t.u64]> = $.tuple($50, $10) +export const $49: $.Codec<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> = $.tuple( + $50, + $10, +) -export const $48: $.Codec> = $.array($49) +export const $48: $.Codec> = $.array( + $49, +) -export const $47: $.Codec = $.taggedUnion("type", { +export const $47: $.Codec = $.taggedUnion("type", { 0: ["NewAuthorities", ["authority_set", $48]], 1: ["Paused"], 2: ["Resumed"], }) -export const $54: $.Codec = $1 +export const $54: $.Codec = $1 -export const $53: $.Codec = $54 +export const $53: $.Codec = $54 -export const $58: $.Codec> = $.compact($6) +export const $58: $.Codec> = $.compact($6) -export const $60: $.Codec = $.object(["who", $0], [ +export const $60: $.Codec = $.object(["who", $0], [ "value", $58, ]) -export const $59: $.Codec> = $.array($60) - -export const $57: $.Codec = $.object(["total", $58], ["own", $58], [ - "others", - $59, -]) +export const $59: $.Codec> = $.array($60) -export const $56: $.Codec<[t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure]> = $.tuple( - $0, - $57, +export const $57: $.Codec = $.object( + ["total", $58], + ["own", $58], + ["others", $59], ) -export const $55: $.Codec> = $ - .array($56) +export const $56: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> = $ + .tuple($0, $57) + +export const $55: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> +> = $.array($56) -export const $52: $.Codec = $.taggedUnion("type", { +export const $52: $.Codec = $.taggedUnion("type", { 0: ["HeartbeatReceived", ["authority_id", $53]], 1: ["AllGood"], 2: ["SomeOffline", ["offline", $55]], }) -export const $62: $.Codec = $.stringUnion({ +export const $62: $.Codec = $.stringUnion({ 0: "SuperMajorityApprove", 1: "SuperMajorityAgainst", 2: "SimpleMajority", }) -export const $64: $.Codec = $2 +export const $64: $.Codec = $2 -export const $63: $.Codec = $.taggedUnion("type", { +export const $63: $.Codec = $.taggedUnion("type", { 0: ["Standard", ["vote", $64], ["balance", $6]], 1: ["Split", ["aye", $6], ["nay", $6]], }) -export const $61: $.Codec = $.taggedUnion("type", { +export const $61: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["proposal_index", $4], ["deposit", $6]], 1: ["Tabled", ["proposal_index", $4], ["deposit", $6]], 2: ["ExternalTabled"], @@ -288,7 +299,7 @@ export const $61: $.Codec = $.taggedUnion("type 13: ["ProposalCanceled", ["prop_index", $4]], }) -export const $65: $.Codec = $.taggedUnion("type", { +export const $65: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["account", $0], ["proposal_index", $4], ["proposal_hash", $11], [ "threshold", $4, @@ -301,7 +312,7 @@ export const $65: $.Codec = $.taggedUnion("typ 6: ["Closed", ["proposal_hash", $11], ["yes", $4], ["no", $4]], }) -export const $66: $.Codec = $.taggedUnion("type", { +export const $66: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["account", $0], ["proposal_index", $4], ["proposal_hash", $11], [ "threshold", $4, @@ -314,11 +325,11 @@ export const $66: $.Codec = $.taggedUnion("typ 6: ["Closed", ["proposal_hash", $11], ["yes", $4], ["no", $4]], }) -export const $69: $.Codec<[t.sp_core.crypto.AccountId32, t.u128]> = $.tuple($0, $6) +export const $69: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128]> = $.tuple($0, $6) -export const $68: $.Codec> = $.array($69) +export const $68: $.Codec> = $.array($69) -export const $67: $.Codec = $.taggedUnion("type", { +export const $67: $.Codec = $.taggedUnion("type", { 0: ["NewTerm", ["new_members", $68]], 1: ["EmptyTerm"], 2: ["ElectionError"], @@ -328,7 +339,7 @@ export const $67: $.Codec = $.taggedUn 6: ["SeatHolderSlashed", ["seat_holder", $0], ["amount", $6]], }) -export const $70: $.Codec = $.stringUnion({ +export const $70: $.Codec = $.stringUnion({ 0: "MemberAdded", 1: "MemberRemoved", 2: "MembersSwapped", @@ -337,7 +348,7 @@ export const $70: $.Codec = $.stringUnion({ 5: "Dummy", }) -export const $71: $.Codec = $.taggedUnion("type", { +export const $71: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["proposal_index", $4]], 1: ["Spending", ["budget_remaining", $6]], 2: ["Awarded", ["proposal_index", $4], ["award", $6], ["account", $0]], @@ -350,18 +361,19 @@ export const $71: $.Codec = $.taggedUnion("type" export const $74: $.Codec = $.sizedUint8Array(20) -export const $73: $.Codec = $74 +export const $73: $.Codec = $74 -export const $72: $.Codec = $.taggedUnion("type", { - 0: ["Claimed", ["who", $0], ["ethereum_address", $73], ["amount", $6]], -}) +export const $72: $.Codec = $.taggedUnion( + "type", + { 0: ["Claimed", ["who", $0], ["ethereum_address", $73], ["amount", $6]] }, +) -export const $75: $.Codec = $.taggedUnion("type", { +export const $75: $.Codec = $.taggedUnion("type", { 0: ["VestingUpdated", ["account", $0], ["unvested", $6]], 1: ["VestingCompleted", ["account", $0]], }) -export const $76: $.Codec = $.taggedUnion("type", { +export const $76: $.Codec = $.taggedUnion("type", { 0: ["BatchInterrupted", ["index", $4], ["error", $24]], 1: ["BatchCompleted"], 2: ["BatchCompletedWithErrors"], @@ -370,7 +382,7 @@ export const $76: $.Codec = $.taggedUnion("type", 5: ["DispatchedAs", ["result", $32]], }) -export const $77: $.Codec = $.taggedUnion("type", { +export const $77: $.Codec = $.taggedUnion("type", { 0: ["IdentitySet", ["who", $0]], 1: ["IdentityCleared", ["who", $0], ["deposit", $6]], 2: ["IdentityKilled", ["who", $0], ["deposit", $6]], @@ -383,7 +395,7 @@ export const $77: $.Codec = $.taggedUnion("type" 9: ["SubIdentityRevoked", ["sub", $0], ["main", $0], ["deposit", $6]], }) -export const $79: $.Codec = $.stringUnion({ +export const $79: $.Codec = $.stringUnion({ 0: "Any", 1: "NonTransfer", 2: "Governance", @@ -393,9 +405,9 @@ export const $79: $.Codec = $.stringUnion({ 7: "Auction", }) -export const $80: $.Codec = $.u16 +export const $80: $.Codec = $.u16 -export const $78: $.Codec = $.taggedUnion("type", { +export const $78: $.Codec = $.taggedUnion("type", { 0: ["ProxyExecuted", ["result", $32]], 1: ["PureCreated", ["pure", $0], ["who", $0], ["proxy_type", $79], ["disambiguation_index", $80]], 2: ["Announced", ["real", $0], ["proxy", $0], ["call_hash", $11]], @@ -403,9 +415,12 @@ export const $78: $.Codec = $.taggedUnion("type", { 4: ["ProxyRemoved", ["delegator", $0], ["delegatee", $0], ["proxy_type", $79], ["delay", $4]], }) -export const $82: $.Codec = $.object(["height", $4], ["index", $4]) +export const $82: $.Codec = $.object(["height", $4], [ + "index", + $4, +]) -export const $81: $.Codec = $.taggedUnion("type", { +export const $81: $.Codec = $.taggedUnion("type", { 0: ["NewMultisig", ["approving", $0], ["multisig", $0], ["call_hash", $1]], 1: ["MultisigApproval", ["approving", $0], ["timepoint", $82], ["multisig", $0], [ "call_hash", @@ -421,7 +436,7 @@ export const $81: $.Codec = $.taggedUnion("type" ]], }) -export const $83: $.Codec = $.taggedUnion("type", { +export const $83: $.Codec = $.taggedUnion("type", { 0: ["BountyProposed", ["index", $4]], 1: ["BountyRejected", ["index", $4], ["bond", $6]], 2: ["BountyBecameActive", ["index", $4]], @@ -431,14 +446,14 @@ export const $83: $.Codec = $.taggedUnion("type" 6: ["BountyExtended", ["index", $4]], }) -export const $84: $.Codec = $.taggedUnion("type", { +export const $84: $.Codec = $.taggedUnion("type", { 0: ["Added", ["index", $4], ["child_index", $4]], 1: ["Awarded", ["index", $4], ["child_index", $4], ["beneficiary", $0]], 2: ["Claimed", ["index", $4], ["child_index", $4], ["payout", $6], ["beneficiary", $0]], 3: ["Canceled", ["index", $4], ["child_index", $4]], }) -export const $85: $.Codec = $.taggedUnion("type", { +export const $85: $.Codec = $.taggedUnion("type", { 0: ["NewTip", ["tip_hash", $11]], 1: ["TipClosing", ["tip_hash", $11]], 2: ["TipClosed", ["tip_hash", $11], ["who", $0], ["payout", $6]], @@ -446,22 +461,17 @@ export const $85: $.Codec = $.taggedUnion("type", { 4: ["TipSlashed", ["tip_hash", $11], ["finder", $0], ["deposit", $6]], }) -export const $87: $.Codec = $.stringUnion({ - 0: "OnChain", - 1: "Signed", - 2: "Unsigned", - 3: "Fallback", - 4: "Emergency", -}) +export const $87: $.Codec = $ + .stringUnion({ 0: "OnChain", 1: "Signed", 2: "Unsigned", 3: "Fallback", 4: "Emergency" }) -export const $88: $.Codec = $.object(["minimal_stake", $6], [ - "sum_stake", - $6, -], ["sum_stake_squared", $6]) +export const $88: $.Codec = $.object( + ["minimal_stake", $6], + ["sum_stake", $6], + ["sum_stake_squared", $6], +) -export const $86: $.Codec = $.taggedUnion( - "type", - { +export const $86: $.Codec = $ + .taggedUnion("type", { 0: ["SolutionStored", ["compute", $87], ["prev_ejected", $43]], 1: ["ElectionFinalized", ["compute", $87], ["score", $88]], 2: ["ElectionFailed"], @@ -469,23 +479,22 @@ export const $86: $.Codec = 4: ["Slashed", ["account", $0], ["value", $6]], 5: ["SignedPhaseStarted", ["round", $4]], 6: ["UnsignedPhaseStarted", ["round", $4]], - }, -) + }) -export const $89: $.Codec = $.taggedUnion("type", { +export const $89: $.Codec = $.taggedUnion("type", { 0: ["Rebagged", ["who", $0], ["from", $10], ["to", $10]], 1: ["ScoreUpdated", ["who", $0], ["new_score", $10]], }) -export const $91: $.Codec = $.stringUnion({ +export const $91: $.Codec = $.stringUnion({ 0: "Open", 1: "Blocked", 2: "Destroying", }) -export const $92: $.Codec = $.option($0) +export const $92: $.Codec = $.option($0) -export const $90: $.Codec = $.taggedUnion("type", { +export const $90: $.Codec = $.taggedUnion("type", { 0: ["Created", ["depositor", $0], ["pool_id", $4]], 1: ["Bonded", ["member", $0], ["pool_id", $4], ["bonded", $6], ["joined", $43]], 2: ["PaidOut", ["member", $0], ["pool_id", $4], ["payout", $6]], @@ -499,9 +508,9 @@ export const $90: $.Codec = $.taggedUnio 10: ["UnbondingPoolSlashed", ["pool_id", $4], ["era", $4], ["balance", $6]], }) -export const $94: $.Codec> = $.array($4) +export const $94: $.Codec> = $.array($4) -export const $93: $.Codec = $.taggedUnion("type", { +export const $93: $.Codec = $.taggedUnion("type", { 0: ["Unstaked", ["stash", $0], ["result", $32]], 1: ["Slashed", ["stash", $0], ["amount", $6]], 2: ["Checking", ["stash", $0], ["eras", $94]], @@ -509,19 +518,19 @@ export const $93: $.Codec = $.taggedUnion("t 4: ["InternalError"], }) -export const $98: $.Codec = $4 +export const $98: $.Codec = $4 -export const $99: $.Codec = $54 +export const $99: $.Codec = $54 export const $102: $.Codec = $.sizedUint8Array(64) -export const $101: $.Codec = $102 +export const $101: $.Codec = $102 -export const $100: $.Codec = $101 +export const $100: $.Codec = $101 -export const $103: $.Codec = $11 +export const $103: $.Codec = $11 -export const $97: $.Codec = $.object( +export const $97: $.Codec = $.object( ["para_id", $98], ["relay_parent", $11], ["collator", $99], @@ -533,27 +542,25 @@ export const $97: $.Codec = $.obje ["validation_code_hash", $103], ) -export const $96: $.Codec = $.object( - ["descriptor", $97], - ["commitments_hash", $11], -) +export const $96: $.Codec = $.object([ + "descriptor", + $97, +], ["commitments_hash", $11]) -export const $104: $.Codec = $12 +export const $104: $.Codec = $12 -export const $105: $.Codec = $4 +export const $105: $.Codec = $4 -export const $106: $.Codec = $4 +export const $106: $.Codec = $4 -export const $95: $.Codec = $.taggedUnion( - "type", - { +export const $95: $.Codec = $ + .taggedUnion("type", { 0: ["CandidateBacked", ["value", $.tuple($96, $104, $105, $106)]], 1: ["CandidateIncluded", ["value", $.tuple($96, $104, $105, $106)]], 2: ["CandidateTimedOut", ["value", $.tuple($96, $104, $105)]], - }, -) + }) -export const $107: $.Codec = $.taggedUnion( +export const $107: $.Codec = $.taggedUnion( "type", { 0: ["CurrentCodeUpdated", ["value", $98]], @@ -567,7 +574,7 @@ export const $107: $.Codec = $ }, ) -export const $110: $.Codec = $.taggedUnion("type", { +export const $110: $.Codec = $.taggedUnion("type", { 0: ["Overflow"], 1: ["Unimplemented"], 2: ["UntrustedReserveLocation"], @@ -596,28 +603,31 @@ export const $110: $.Codec = $.taggedUnion("type", { 25: ["WeightNotComputable"], }) -export const $109: $.Codec = $.taggedUnion("type", { +export const $109: $.Codec = $.taggedUnion("type", { 0: ["Complete", ["value", $10]], 1: ["Incomplete", ["value", $.tuple($10, $110)]], 2: ["Error", ["value", $110]], }) -export const $108: $.Codec = $.taggedUnion("type", { - 0: ["InvalidFormat", ["value", $1]], - 1: ["UnsupportedVersion", ["value", $1]], - 2: ["ExecutedUpward", ["value", $.tuple($1, $109)]], - 3: ["WeightExhausted", ["value", $.tuple($1, $8, $8)]], - 4: ["UpwardMessagesReceived", ["value", $.tuple($98, $4, $4)]], - 5: ["OverweightEnqueued", ["value", $.tuple($98, $1, $10, $8)]], - 6: ["OverweightServiced", ["value", $.tuple($10, $8)]], -}) +export const $108: $.Codec = $.taggedUnion( + "type", + { + 0: ["InvalidFormat", ["value", $1]], + 1: ["UnsupportedVersion", ["value", $1]], + 2: ["ExecutedUpward", ["value", $.tuple($1, $109)]], + 3: ["WeightExhausted", ["value", $.tuple($1, $8, $8)]], + 4: ["UpwardMessagesReceived", ["value", $.tuple($98, $4, $4)]], + 5: ["OverweightEnqueued", ["value", $.tuple($98, $1, $10, $8)]], + 6: ["OverweightServiced", ["value", $.tuple($10, $8)]], + }, +) -export const $112: $.Codec = $.object([ +export const $112: $.Codec = $.object([ "sender", $98, ], ["recipient", $98]) -export const $111: $.Codec = $.taggedUnion( +export const $111: $.Codec = $.taggedUnion( "type", { 0: ["OpenChannelRequested", ["value", $.tuple($98, $98, $4, $4)]], @@ -628,46 +638,41 @@ export const $111: $.Codec = $. }, ) -export const $114: $.Codec = $11 +export const $114: $.Codec = $11 -export const $115: $.Codec = $.stringUnion({ - 0: "Local", - 1: "Remote", -}) +export const $115: $.Codec = $ + .stringUnion({ 0: "Local", 1: "Remote" }) -export const $116: $.Codec = $.stringUnion({ - 0: "Valid", - 1: "Invalid", -}) +export const $116: $.Codec = $ + .stringUnion({ 0: "Valid", 1: "Invalid" }) -export const $113: $.Codec = $.taggedUnion( - "type", - { +export const $113: $.Codec = $ + .taggedUnion("type", { 0: ["DisputeInitiated", ["value", $.tuple($114, $115)]], 1: ["DisputeConcluded", ["value", $.tuple($114, $116)]], 2: ["DisputeTimedOut", ["value", $114]], 3: ["Revert", ["value", $4]], - }, -) + }) -export const $117: $.Codec = $.taggedUnion( - "type", - { +export const $117: $.Codec = $ + .taggedUnion("type", { 0: ["Registered", ["para_id", $98], ["manager", $0]], 1: ["Deregistered", ["para_id", $98]], 2: ["Reserved", ["para_id", $98], ["who", $0]], + }) + +export const $118: $.Codec = $.taggedUnion( + "type", + { + 0: ["NewLeasePeriod", ["lease_period", $4]], + 1: ["Leased", ["para_id", $98], ["leaser", $0], ["period_begin", $4], ["period_count", $4], [ + "extra_reserved", + $6, + ], ["total_amount", $6]], }, ) -export const $118: $.Codec = $.taggedUnion("type", { - 0: ["NewLeasePeriod", ["lease_period", $4]], - 1: ["Leased", ["para_id", $98], ["leaser", $0], ["period_begin", $4], ["period_count", $4], [ - "extra_reserved", - $6, - ], ["total_amount", $6]], -}) - -export const $119: $.Codec = $.taggedUnion( +export const $119: $.Codec = $.taggedUnion( "type", { 0: ["AuctionStarted", ["auction_index", $4], ["lease_period", $4], ["ending", $4]], @@ -683,7 +688,7 @@ export const $119: $.Codec = $. }, ) -export const $120: $.Codec = $.taggedUnion( +export const $120: $.Codec = $.taggedUnion( "type", { 0: ["Created", ["para_id", $98]], @@ -699,18 +704,18 @@ export const $120: $.Codec = $ }, ) -export const $125: $.Codec> = $.compact($4) +export const $125: $.Codec> = $.compact($4) export const $127: $.Codec = $12 -export const $126: $.Codec = $.taggedUnion("type", { +export const $126: $.Codec = $.taggedUnion("type", { 0: ["Any"], 1: ["Named", ["value", $127]], 2: ["Polkadot"], 3: ["Kusama"], }) -export const $128: $.Codec = $.taggedUnion("type", { +export const $128: $.Codec = $.taggedUnion("type", { 0: ["Unit"], 1: ["Named", ["value", $127]], 2: ["Index", ["value", $125]], @@ -720,7 +725,7 @@ export const $128: $.Codec = $.taggedUnion("type", { 6: ["Judicial"], }) -export const $129: $.Codec = $.taggedUnion("type", { +export const $129: $.Codec = $.taggedUnion("type", { 0: ["Voice"], 1: ["Members", ["count", $125]], 2: ["Fraction", ["nom", $125], ["denom", $125]], @@ -728,7 +733,7 @@ export const $129: $.Codec = $.taggedUnion("type", { 4: ["MoreThanProportion", ["nom", $125], ["denom", $125]], }) -export const $124: $.Codec = $.taggedUnion("type", { +export const $124: $.Codec = $.taggedUnion("type", { 0: ["Parachain", ["value", $125]], 1: ["AccountId32", ["network", $126], ["id", $1]], 2: ["AccountIndex64", ["network", $126], ["index", $9]], @@ -740,7 +745,7 @@ export const $124: $.Codec = $.taggedUnion("type", { 8: ["Plurality", ["id", $128], ["part", $129]], }) -export const $123: $.Codec = $.taggedUnion("type", { +export const $123: $.Codec = $.taggedUnion("type", { 0: ["Here"], 1: ["X1", ["value", $124]], 2: ["X2", ["value", $.tuple($124, $124)]], @@ -752,19 +757,19 @@ export const $123: $.Codec = $.taggedUnion("ty 8: ["X8", ["value", $.tuple($124, $124, $124, $124, $124, $124, $124, $124)]], }) -export const $122: $.Codec = $.object(["parents", $2], [ +export const $122: $.Codec = $.object(["parents", $2], [ "interior", $123, ]) -export const $136: $.Codec = $.taggedUnion("type", { +export const $136: $.Codec = $.taggedUnion("type", { 0: ["Concrete", ["value", $122]], 1: ["Abstract", ["value", $12]], }) export const $139: $.Codec = $.sizedUint8Array(8) -export const $138: $.Codec = $.taggedUnion("type", { +export const $138: $.Codec = $.taggedUnion("type", { 0: ["Undefined"], 1: ["Index", ["value", $58]], 2: ["Array4", ["value", $16]], @@ -774,29 +779,32 @@ export const $138: $.Codec = $.taggedUnion("t 6: ["Blob", ["value", $12]], }) -export const $137: $.Codec = $.taggedUnion("type", { +export const $137: $.Codec = $.taggedUnion("type", { 0: ["Fungible", ["value", $58]], 1: ["NonFungible", ["value", $138]], }) -export const $135: $.Codec = $.object(["id", $136], ["fun", $137]) +export const $135: $.Codec = $.object(["id", $136], [ + "fun", + $137, +]) -export const $134: $.Codec> = $.array($135) +export const $134: $.Codec> = $.array($135) -export const $133: $.Codec = $134 +export const $133: $.Codec = $134 -export const $142: $.Codec<[t.u32, t.xcm.v2.traits.Error]> = $.tuple($4, $110) +export const $142: $.Codec<[t.types.u32, t.types.xcm.v2.traits.Error]> = $.tuple($4, $110) -export const $141: $.Codec<[t.u32, t.xcm.v2.traits.Error] | undefined> = $.option($142) +export const $141: $.Codec<[t.types.u32, t.types.xcm.v2.traits.Error] | undefined> = $.option($142) -export const $140: $.Codec = $.taggedUnion("type", { +export const $140: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["Assets", ["value", $133]], 2: ["ExecutionResult", ["value", $141]], 3: ["Version", ["value", $4]], }) -export const $143: $.Codec = $.stringUnion({ +export const $143: $.Codec = $.stringUnion({ 0: "Native", 1: "SovereignAccount", 2: "Superuser", @@ -805,27 +813,27 @@ export const $143: $.Codec = $.stringUnion({ export const $144: $.Codec<{ encoded: Uint8Array }> = $.object(["encoded", $12]) -export const $147: $.Codec = $.stringUnion({ +export const $147: $.Codec = $.stringUnion({ 0: "Fungible", 1: "NonFungible", }) -export const $146: $.Codec = $.taggedUnion("type", { +export const $146: $.Codec = $.taggedUnion("type", { 0: ["All"], 1: ["AllOf", ["id", $136], ["fun", $147]], }) -export const $145: $.Codec = $.taggedUnion("type", { +export const $145: $.Codec = $.taggedUnion("type", { 0: ["Definite", ["value", $133]], 1: ["Wild", ["value", $146]], }) -export const $148: $.Codec = $.taggedUnion("type", { +export const $148: $.Codec = $.taggedUnion("type", { 0: ["Unlimited"], 1: ["Limited", ["value", $9]], }) -export const $132: $.Codec = $.taggedUnion("type", { +export const $132: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["value", $133]], 1: ["ReserveAssetDeposited", ["value", $133]], 2: ["ReceiveTeleportedAsset", ["value", $133]], @@ -868,13 +876,13 @@ export const $132: $.Codec = $.taggedUnion("type", { 27: ["UnsubscribeVersion"], }) -export const $131: $.Codec> = $.array($132) +export const $131: $.Codec> = $.array($132) -export const $130: $.Codec> = $131 +export const $130: $.Codec> = $131 -export const $149: $.Codec = $.option($122) +export const $149: $.Codec = $.option($122) -export const $154: $.Codec = $.taggedUnion("type", { +export const $154: $.Codec = $.taggedUnion("type", { 0: ["Parent"], 1: ["Parachain", ["value", $125]], 2: ["AccountId32", ["network", $126], ["id", $1]], @@ -887,7 +895,7 @@ export const $154: $.Codec = $.taggedUnion("type", { 9: ["Plurality", ["id", $128], ["part", $129]], }) -export const $153: $.Codec = $.taggedUnion("type", { +export const $153: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["X1", ["value", $154]], 2: ["X2", ["value", $.tuple($154, $154)]], @@ -899,7 +907,7 @@ export const $153: $.Codec = $.taggedUnio 8: ["X8", ["value", $.tuple($154, $154, $154, $154, $154, $154, $154, $154)]], }) -export const $152: $.Codec = $.taggedUnion("type", { +export const $152: $.Codec = $.taggedUnion("type", { 0: ["None"], 1: ["All"], 2: ["AllFungible"], @@ -914,19 +922,19 @@ export const $152: $.Codec = $.taggedUnion("typ 11: ["ConcreteNonFungible", ["class", $153], ["instance", $138]], }) -export const $151: $.Codec> = $.array($152) +export const $151: $.Codec> = $.array($152) -export const $150: $.Codec = $.taggedUnion("type", { +export const $150: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $151]], 1: ["V1", ["value", $133]], }) -export const $155: $.Codec = $.taggedUnion("type", { +export const $155: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $153]], 1: ["V1", ["value", $122]], }) -export const $121: $.Codec = $.taggedUnion("type", { +export const $121: $.Codec = $.taggedUnion("type", { 0: ["Attempted", ["value", $109]], 1: ["Sent", ["value", $.tuple($122, $122, $130)]], 2: ["UnexpectedResponse", ["value", $.tuple($122, $10)]], @@ -946,7 +954,7 @@ export const $121: $.Codec = $.taggedUnion("type", { 16: ["AssetsClaimed", ["value", $.tuple($11, $122, $150)]], }) -export const $19: $.Codec = $.taggedUnion("type", { +export const $19: $.Codec = $.taggedUnion("type", { 0: ["System", ["value", $20]], 1: ["Scheduler", ["value", $29]], 10: ["Preimage", ["value", $34]], @@ -989,23 +997,23 @@ export const $19: $.Codec = $.taggedUnion("type 99: ["XcmPallet", ["value", $121]], }) -export const $157: $.Codec> = $.array($11) +export const $157: $.Codec> = $.array($11) -export const $18: $.Codec = $.object(["phase", $156], ["event", $19], [ - "topics", - $157, -]) +export const $18: $.Codec = $.object(["phase", $156], [ + "event", + $19, +], ["topics", $157]) -export const $17: $.Codec> = $.array($18) +export const $17: $.Codec> = $.array($18) -export const $158: $.Codec> = $.array($30) +export const $158: $.Codec> = $.array($30) export const $160: $.Codec = $.str -export const $159: $.Codec = $.object( - ["spec_version", $125], - ["spec_name", $160], -) +export const $159: $.Codec = $.object([ + "spec_version", + $125, +], ["spec_name", $160]) export const $163: $.Codec<[Uint8Array, Uint8Array]> = $.tuple($12, $12) @@ -1013,7 +1021,7 @@ export const $162: $.Codec> = $.array($163) export const $164: $.Codec> = $.array($12) -export const $161: $.Codec = $.taggedUnion("type", { +export const $161: $.Codec = $.taggedUnion("type", { 0: ["fill_block", ["ratio", $42]], 1: ["remark", ["remark", $12]], 2: ["set_heap_pages", ["pages", $10]], @@ -1025,9 +1033,9 @@ export const $161: $.Codec = $.taggedUnion("type", { 8: ["remark_with_event", ["remark", $12]], }) -export const $168: $.Codec = $.option($8) +export const $168: $.Codec = $.option($8) -export const $167: $.Codec = $.object( +export const $167: $.Codec = $.object( ["base_extrinsic", $8], ["max_extrinsic", $168], ["max_total", $168], @@ -1035,31 +1043,35 @@ export const $167: $.Codec = $.object( ) export const $166: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass + t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass > = $.object(["normal", $167], ["operational", $167], ["mandatory", $167]) -export const $165: $.Codec = $.object(["base_block", $8], [ - "max_block", - $8, -], ["per_class", $166]) +export const $165: $.Codec = $.object( + ["base_block", $8], + ["max_block", $8], + ["per_class", $166], +) -export const $170: $.Codec = $.object( +export const $170: $.Codec = $.object( ["normal", $4], ["operational", $4], ["mandatory", $4], ) -export const $169: $.Codec = $.object(["max", $170]) +export const $169: $.Codec = $.object(["max", $170]) -export const $171: $.Codec = $.object(["read", $10], ["write", $10]) +export const $171: $.Codec = $.object(["read", $10], [ + "write", + $10, +]) -export const $175: $.Codec<[Uint8Array, t.u32]> = $.tuple($139, $4) +export const $175: $.Codec<[Uint8Array, t.types.u32]> = $.tuple($139, $4) -export const $174: $.Codec> = $.array($175) +export const $174: $.Codec> = $.array($175) -export const $173: $.Codec> = $174 +export const $173: $.Codec> = $174 -export const $172: $.Codec = $.object( +export const $172: $.Codec = $.object( ["spec_name", $160], ["impl_name", $160], ["authoring_version", $4], @@ -1070,7 +1082,7 @@ export const $172: $.Codec = $.object( ["state_version", $2], ) -export const $176: $.Codec = $.stringUnion({ +export const $176: $.Codec = $.stringUnion({ 0: "InvalidSpecName", 1: "SpecVersionNeedsToIncrease", 2: "FailedToExtractRuntimeVersion", @@ -1081,45 +1093,43 @@ export const $176: $.Codec = $.stringUnion({ export const $448: $.Codec = $12 -export const $180: $.Codec = $.taggedUnion("type", { +export const $180: $.Codec = $.taggedUnion("type", { 0: ["Legacy", ["hash", $11]], 1: ["Inline", ["value", $448]], 2: ["Lookup", ["hash", $11], ["len", $4]], }) -export const $183: $.Codec<[t.u32, t.u32] | undefined> = $.option($30) +export const $183: $.Codec<[t.types.u32, t.types.u32] | undefined> = $.option($30) -export const $257: $.Codec = $.taggedUnion("type", { +export const $257: $.Codec = $.taggedUnion("type", { 0: ["Root"], 1: ["Signed", ["value", $0]], 2: ["None"], }) -export const $258: $.Codec = $.taggedUnion("type", { +export const $258: $.Codec = $.taggedUnion("type", { 0: ["Members", ["value", $.tuple($4, $4)]], 1: ["Member", ["value", $0]], 2: ["_Phantom"], }) -export const $259: $.Codec = $.taggedUnion("type", { +export const $259: $.Codec = $.taggedUnion("type", { 0: ["Members", ["value", $.tuple($4, $4)]], 1: ["Member", ["value", $0]], 2: ["_Phantom"], }) -export const $260: $.Codec = $.taggedUnion( - "type", - { 0: ["Parachain", ["value", $98]] }, -) +export const $260: $.Codec = $ + .taggedUnion("type", { 0: ["Parachain", ["value", $98]] }) -export const $261: $.Codec = $.taggedUnion("type", { +export const $261: $.Codec = $.taggedUnion("type", { 0: ["Xcm", ["value", $122]], 1: ["Response", ["value", $122]], }) -export const $262: $.Codec = $.never +export const $262: $.Codec = $.never -export const $256: $.Codec = $.taggedUnion("type", { +export const $256: $.Codec = $.taggedUnion("type", { 0: ["system", ["value", $257]], 15: ["Council", ["value", $258]], 16: ["TechnicalCommittee", ["value", $259]], @@ -1128,7 +1138,7 @@ export const $256: $.Codec = $.taggedUnion("typ 5: ["Void", ["value", $262]], }) -export const $179: $.Codec = $.object( +export const $179: $.Codec = $.object( ["maybe_id", $31], ["priority", $2], ["call", $180], @@ -1136,13 +1146,13 @@ export const $179: $.Codec = $.object( ["origin", $256], ) -export const $178: $.Codec = $.option($179) +export const $178: $.Codec = $.option($179) -export const $449: $.Codec> = $.array($178) +export const $449: $.Codec> = $.array($178) -export const $177: $.Codec> = $449 +export const $177: $.Codec> = $449 -export const $182: $.Codec = $.taggedUnion("type", { +export const $182: $.Codec = $.taggedUnion("type", { 0: ["schedule", ["when", $4], ["maybe_periodic", $183], ["priority", $2], [ "call", $.deferred(() => $181), @@ -1167,18 +1177,18 @@ export const $182: $.Codec = $.taggedUnion("type ], }) -export const $184: $.Codec = $.taggedUnion("type", { +export const $184: $.Codec = $.taggedUnion("type", { 0: ["note_preimage", ["bytes", $12]], 1: ["unnote_preimage", ["hash", $11]], 2: ["request_preimage", ["hash", $11]], 3: ["unrequest_preimage", ["hash", $11]], }) -export const $189: $.Codec = $54 +export const $189: $.Codec = $54 -export const $190: $.Codec = $10 +export const $190: $.Codec = $10 -export const $187: $.Codec = $.object( +export const $187: $.Codec = $.object( ["parent_hash", $11], ["number", $125], ["state_root", $11], @@ -1186,44 +1196,44 @@ export const $187: $.Codec = $.object( ["digest", $13], ) -export const $186: $.Codec = $.object( +export const $186: $.Codec = $.object( ["offender", $189], ["slot", $190], ["first_header", $187], ["second_header", $187], ) -export const $191: $.Codec = $.object(["session", $4], [ +export const $191: $.Codec = $.object(["session", $4], [ "trie_nodes", $164, ], ["validator_count", $4]) -export const $193: $.Codec<[t.u64, t.u64]> = $.tuple($10, $10) +export const $193: $.Codec<[t.types.u64, t.types.u64]> = $.tuple($10, $10) -export const $194: $.Codec = $.stringUnion({ +export const $194: $.Codec = $.stringUnion({ 0: "PrimarySlots", 1: "PrimaryAndSecondaryPlainSlots", 2: "PrimaryAndSecondaryVRFSlots", }) -export const $192: $.Codec = $.taggedUnion( +export const $192: $.Codec = $.taggedUnion( "type", { 1: ["V1", ["c", $193], ["allowed_slots", $194]] }, ) -export const $185: $.Codec = $.taggedUnion("type", { +export const $185: $.Codec = $.taggedUnion("type", { 0: ["report_equivocation", ["equivocation_proof", $186], ["key_owner_proof", $191]], 1: ["report_equivocation_unsigned", ["equivocation_proof", $186], ["key_owner_proof", $191]], 2: ["plan_config_change", ["config", $192]], }) -export const $195: $.Codec = $.taggedUnion("type", { +export const $195: $.Codec = $.taggedUnion("type", { 0: ["set", ["now", $9]], }) export const $198: $.Codec> = $.compact($33) -export const $197: $.Codec = $.taggedUnion("type", { +export const $197: $.Codec = $.taggedUnion("type", { 0: ["Id", ["value", $0]], 1: ["Index", ["value", $198]], 2: ["Raw", ["value", $12]], @@ -1231,7 +1241,7 @@ export const $197: $.Codec = $.taggedUni 4: ["Address20", ["value", $74]], }) -export const $196: $.Codec = $.taggedUnion("type", { +export const $196: $.Codec = $.taggedUnion("type", { 0: ["claim", ["index", $4]], 1: ["transfer", ["new", $197], ["index", $4]], 2: ["free", ["index", $4]], @@ -1239,7 +1249,7 @@ export const $196: $.Codec = $.taggedUnion("type", 4: ["freeze", ["index", $4]], }) -export const $199: $.Codec = $.taggedUnion("type", { +export const $199: $.Codec = $.taggedUnion("type", { 0: ["transfer", ["dest", $197], ["value", $58]], 1: ["set_balance", ["who", $197], ["new_free", $58], ["new_reserved", $58]], 2: ["force_transfer", ["source", $197], ["dest", $197], ["value", $58]], @@ -1248,13 +1258,13 @@ export const $199: $.Codec = $.taggedUnion("type" 5: ["force_unreserve", ["who", $197], ["amount", $6]], }) -export const $201: $.Codec> = $.array($187) +export const $201: $.Codec> = $.array($187) -export const $200: $.Codec = $.taggedUnion("type", { +export const $200: $.Codec = $.taggedUnion("type", { 0: ["set_uncles", ["new_uncles", $201]], }) -export const $203: $.Codec = $.taggedUnion("type", { +export const $203: $.Codec = $.taggedUnion("type", { 0: ["Staked"], 1: ["Stash"], 2: ["Controller"], @@ -1262,33 +1272,31 @@ export const $203: $.Codec = $.taggedUnion(" 4: ["None"], }) -export const $204: $.Codec> = $.array($197) +export const $204: $.Codec> = $.array($197) -export const $205: $.Codec = $2 +export const $205: $.Codec = $2 -export const $206: $.Codec> = $.array($0) +export const $206: $.Codec> = $.array($0) -export const $207: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $6]], - 2: ["Remove"], -}) +export const $207: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $6]], 2: ["Remove"] }, +) -export const $208: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $4]], - 2: ["Remove"], -}) +export const $208: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $4]], 2: ["Remove"] }, +) export const $209: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent > = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $205]], 2: ["Remove"] }) export const $210: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill > = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $42]], 2: ["Remove"] }) -export const $202: $.Codec = $.taggedUnion("type", { +export const $202: $.Codec = $.taggedUnion("type", { 0: ["bond", ["controller", $197], ["value", $58], ["payee", $203]], 1: ["bond_extra", ["max_additional", $58]], 2: ["unbond", ["value", $58]], @@ -1324,13 +1332,13 @@ export const $202: $.Codec = $.taggedUnion( 24: ["force_apply_min_commission", ["validator_stash", $0]], }) -export const $213: $.Codec = $54 +export const $213: $.Codec = $54 -export const $214: $.Codec = $54 +export const $214: $.Codec = $54 -export const $215: $.Codec = $54 +export const $215: $.Codec = $54 -export const $212: $.Codec = $.object( +export const $212: $.Codec = $.object( ["grandpa", $50], ["babe", $189], ["im_online", $53], @@ -1339,73 +1347,67 @@ export const $212: $.Codec = $.object( ["authority_discovery", $215], ) -export const $211: $.Codec = $.taggedUnion("type", { +export const $211: $.Codec = $.taggedUnion("type", { 0: ["set_keys", ["keys", $212], ["proof", $12]], 1: ["purge_keys"], }) -export const $220: $.Codec = $.object(["target_hash", $11], [ +export const $220: $.Codec = $.object(["target_hash", $11], [ "target_number", $4, ]) -export const $222: $.Codec = $102 +export const $222: $.Codec = $102 -export const $221: $.Codec = $222 +export const $221: $.Codec = $222 -export const $223: $.Codec<[t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature]> = $ - .tuple($220, $221) +export const $223: $.Codec< + [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] +> = $.tuple($220, $221) -export const $219: $.Codec = $.object( - ["round_number", $10], - ["identity", $50], - ["first", $223], - ["second", $223], -) +export const $219: $.Codec = $ + .object(["round_number", $10], ["identity", $50], ["first", $223], ["second", $223]) -export const $225: $.Codec = $.object(["target_hash", $11], [ +export const $225: $.Codec = $.object(["target_hash", $11], [ "target_number", $4, ]) -export const $226: $.Codec<[t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature]> = $ - .tuple($225, $221) +export const $226: $.Codec< + [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] +> = $.tuple($225, $221) -export const $224: $.Codec = $.object( - ["round_number", $10], - ["identity", $50], - ["first", $226], - ["second", $226], -) +export const $224: $.Codec = $ + .object(["round_number", $10], ["identity", $50], ["first", $226], ["second", $226]) -export const $218: $.Codec = $.taggedUnion("type", { +export const $218: $.Codec = $.taggedUnion("type", { 0: ["Prevote", ["value", $219]], 1: ["Precommit", ["value", $224]], }) -export const $217: $.Codec = $.object(["set_id", $10], [ - "equivocation", - $218, -]) +export const $217: $.Codec = $.object([ + "set_id", + $10, +], ["equivocation", $218]) -export const $216: $.Codec = $.taggedUnion("type", { +export const $216: $.Codec = $.taggedUnion("type", { 0: ["report_equivocation", ["equivocation_proof", $217], ["key_owner_proof", $191]], 1: ["report_equivocation_unsigned", ["equivocation_proof", $217], ["key_owner_proof", $191]], 2: ["note_stalled", ["delay", $4], ["best_finalized_block_number", $4]], }) -export const $230: $.Codec = $12 +export const $230: $.Codec = $12 -export const $232: $.Codec = $12 +export const $232: $.Codec = $12 -export const $231: $.Codec> = $.array($232) +export const $231: $.Codec> = $.array($232) -export const $229: $.Codec = $.object(["peer_id", $230], [ - "external_addresses", - $231, -]) +export const $229: $.Codec = $.object([ + "peer_id", + $230, +], ["external_addresses", $231]) -export const $228: $.Codec = $.object( +export const $228: $.Codec = $.object( ["block_number", $4], ["network_state", $229], ["session_index", $4], @@ -1413,13 +1415,13 @@ export const $228: $.Codec = $.object( ["validators_len", $4], ) -export const $233: $.Codec = $101 +export const $233: $.Codec = $101 -export const $227: $.Codec = $.taggedUnion("type", { +export const $227: $.Codec = $.taggedUnion("type", { 0: ["heartbeat", ["heartbeat", $228], ["signature", $233]], }) -export const $235: $.Codec = $.stringUnion({ +export const $235: $.Codec = $.stringUnion({ 0: "None", 1: "Locked1x", 2: "Locked2x", @@ -1429,9 +1431,9 @@ export const $235: $.Codec = $.stringU 6: "Locked6x", }) -export const $236: $.Codec = $.option($4) +export const $236: $.Codec = $.option($4) -export const $234: $.Codec = $.taggedUnion("type", { +export const $234: $.Codec = $.taggedUnion("type", { 0: ["propose", ["proposal", $180], ["value", $58]], 1: ["second", ["proposal", $125]], 2: ["vote", ["ref_index", $125], ["vote", $63]], @@ -1452,11 +1454,11 @@ export const $234: $.Codec = $.taggedUnion("type 17: ["cancel_proposal", ["prop_index", $125]], }) -export const $239: $.Codec = $10 +export const $239: $.Codec = $10 -export const $238: $.Codec> = $.compact($239) +export const $238: $.Codec> = $.compact($239) -export const $237: $.Codec = $.taggedUnion("type", { +export const $237: $.Codec = $.taggedUnion("type", { 0: ["set_members", ["new_members", $206], ["prime", $92], ["old_count", $4]], 1: ["execute", ["proposal", $.deferred(() => $181)], ["length_bound", $125]], 2: ["propose", ["threshold", $125], ["proposal", $.deferred(() => $181)], ["length_bound", $125]], @@ -1475,7 +1477,7 @@ export const $237: $.Codec = $.taggedUnion("typ ]], }) -export const $240: $.Codec = $.taggedUnion("type", { +export const $240: $.Codec = $.taggedUnion("type", { 0: ["set_members", ["new_members", $206], ["prime", $92], ["old_count", $4]], 1: ["execute", ["proposal", $.deferred(() => $181)], ["length_bound", $125]], 2: ["propose", ["threshold", $125], ["proposal", $.deferred(() => $181)], ["length_bound", $125]], @@ -1494,13 +1496,13 @@ export const $240: $.Codec = $.taggedUnion("typ ]], }) -export const $242: $.Codec = $.taggedUnion("type", { +export const $242: $.Codec = $.taggedUnion("type", { 0: ["Member"], 1: ["RunnerUp"], 2: ["Candidate", ["value", $125]], }) -export const $241: $.Codec = $.taggedUnion("type", { +export const $241: $.Codec = $.taggedUnion("type", { 0: ["vote", ["votes", $206], ["value", $58]], 1: ["remove_voter"], 2: ["submit_candidacy", ["candidate_count", $125]], @@ -1509,7 +1511,7 @@ export const $241: $.Codec = $.taggedUn 5: ["clean_defunct_voters", ["num_voters", $4], ["num_defunct", $4]], }) -export const $243: $.Codec = $.taggedUnion("type", { +export const $243: $.Codec = $.taggedUnion("type", { 0: ["add_member", ["who", $197]], 1: ["remove_member", ["who", $197]], 2: ["swap_member", ["remove", $197], ["add", $197]], @@ -1519,7 +1521,7 @@ export const $243: $.Codec = $.taggedUnion("typ 6: ["clear_prime"], }) -export const $244: $.Codec = $.taggedUnion("type", { +export const $244: $.Codec = $.taggedUnion("type", { 0: ["propose_spend", ["value", $58], ["beneficiary", $197]], 1: ["reject_proposal", ["proposal_id", $125]], 2: ["approve_proposal", ["proposal_id", $125]], @@ -1529,35 +1531,38 @@ export const $244: $.Codec = $.taggedUnion("type" export const $247: $.Codec = $.sizedUint8Array(65) -export const $246: $.Codec = $247 +export const $246: $.Codec = $247 -export const $249: $.Codec<[t.u128, t.u128, t.u32]> = $.tuple($6, $6, $4) +export const $249: $.Codec<[t.types.u128, t.types.u128, t.types.u32]> = $.tuple($6, $6, $4) -export const $248: $.Codec<[t.u128, t.u128, t.u32] | undefined> = $.option($249) +export const $248: $.Codec<[t.types.u128, t.types.u128, t.types.u32] | undefined> = $.option($249) -export const $251: $.Codec = $.stringUnion({ +export const $251: $.Codec = $.stringUnion({ 0: "Regular", 1: "Saft", }) -export const $250: $.Codec = $.option( - $251, -) +export const $250: $.Codec = $ + .option($251) -export const $245: $.Codec = $.taggedUnion("type", { - 0: ["claim", ["dest", $0], ["ethereum_signature", $246]], - 1: ["mint_claim", ["who", $73], ["value", $6], ["vesting_schedule", $248], ["statement", $250]], - 2: ["claim_attest", ["dest", $0], ["ethereum_signature", $246], ["statement", $12]], - 3: ["attest", ["statement", $12]], - 4: ["move_claim", ["old", $73], ["new", $73], ["maybe_preclaim", $92]], -}) +export const $245: $.Codec = $.taggedUnion( + "type", + { + 0: ["claim", ["dest", $0], ["ethereum_signature", $246]], + 1: ["mint_claim", ["who", $73], ["value", $6], ["vesting_schedule", $248], ["statement", $250]], + 2: ["claim_attest", ["dest", $0], ["ethereum_signature", $246], ["statement", $12]], + 3: ["attest", ["statement", $12]], + 4: ["move_claim", ["old", $73], ["new", $73], ["maybe_preclaim", $92]], + }, +) -export const $253: $.Codec = $.object(["locked", $6], [ - "per_block", - $6, -], ["starting_block", $4]) +export const $253: $.Codec = $.object( + ["locked", $6], + ["per_block", $6], + ["starting_block", $4], +) -export const $252: $.Codec = $.taggedUnion("type", { +export const $252: $.Codec = $.taggedUnion("type", { 0: ["vest"], 1: ["vest_other", ["target", $197]], 2: ["vested_transfer", ["target", $197], ["schedule", $253]], @@ -1565,9 +1570,11 @@ export const $252: $.Codec = $.taggedUnion("type", 4: ["merge_schedules", ["schedule1_index", $4], ["schedule2_index", $4]], }) -export const $255: $.Codec> = $.array($.deferred(() => $181)) +export const $255: $.Codec> = $.array( + $.deferred(() => $181), +) -export const $254: $.Codec = $.taggedUnion("type", { +export const $254: $.Codec = $.taggedUnion("type", { 0: ["batch", ["calls", $255]], 1: ["as_derivative", ["index", $80], ["call", $.deferred(() => $181)]], 2: ["batch_all", ["calls", $255]], @@ -1631,7 +1638,7 @@ export const $294: $.Codec = $.sizedUint8Array(30) export const $295: $.Codec = $.sizedUint8Array(31) -export const $267: $.Codec = $.taggedUnion("type", { +export const $267: $.Codec = $.taggedUnion("type", { 0: ["None"], 1: ["Raw0", ["value", $268]], 2: ["Raw1", ["value", $269]], @@ -1672,20 +1679,21 @@ export const $267: $.Codec = $.taggedUnion("type", 37: ["ShaThree256", ["value", $1]], }) -export const $266: $.Codec<[t.pallet_identity.types.Data, t.pallet_identity.types.Data]> = $.tuple( - $267, - $267, -) +export const $266: $.Codec< + [t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data] +> = $.tuple($267, $267) -export const $296: $.Codec> = $ - .array($266) +export const $296: $.Codec< + Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> +> = $.array($266) -export const $265: $.Codec> = - $296 +export const $265: $.Codec< + Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> +> = $296 export const $297: $.Codec = $.option($74) -export const $264: $.Codec = $.object( +export const $264: $.Codec = $.object( ["additional", $265], ["display", $267], ["legal", $267], @@ -1697,17 +1705,17 @@ export const $264: $.Codec = $.object( ["twitter", $267], ) -export const $299: $.Codec<[t.sp_core.crypto.AccountId32, t.pallet_identity.types.Data]> = $.tuple( - $0, - $267, -) +export const $299: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data] +> = $.tuple($0, $267) -export const $298: $.Codec> = $ - .array($299) +export const $298: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data]> +> = $.array($299) -export const $300: $.Codec = $10 +export const $300: $.Codec = $10 -export const $302: $.Codec = $.taggedUnion("type", { +export const $302: $.Codec = $.taggedUnion("type", { 0: ["Unknown"], 1: ["FeePaid", ["value", $6]], 2: ["Reasonable"], @@ -1717,7 +1725,7 @@ export const $302: $.Codec = $.taggedUnion("t 6: ["Erroneous"], }) -export const $263: $.Codec = $.taggedUnion("type", { +export const $263: $.Codec = $.taggedUnion("type", { 0: ["add_registrar", ["account", $197]], 1: ["set_identity", ["info", $264]], 2: ["set_subs", ["subs", $298]], @@ -1738,9 +1746,9 @@ export const $263: $.Codec = $.taggedUnion("type" 14: ["quit_sub"], }) -export const $304: $.Codec = $.option($79) +export const $304: $.Codec = $.option($79) -export const $303: $.Codec = $.taggedUnion("type", { +export const $303: $.Codec = $.taggedUnion("type", { 0: ["proxy", ["real", $197], ["force_proxy_type", $304], ["call", $.deferred(() => $181)]], 1: ["add_proxy", ["delegate", $197], ["proxy_type", $79], ["delay", $4]], 2: ["remove_proxy", ["delegate", $197], ["proxy_type", $79], ["delay", $4]], @@ -1759,9 +1767,9 @@ export const $303: $.Codec = $.taggedUnion("type", { ]], }) -export const $306: $.Codec = $.option($82) +export const $306: $.Codec = $.option($82) -export const $305: $.Codec = $.taggedUnion("type", { +export const $305: $.Codec = $.taggedUnion("type", { 0: ["as_multi_threshold_1", ["other_signatories", $206], ["call", $.deferred(() => $181)]], 1: ["as_multi", ["threshold", $80], ["other_signatories", $206], ["maybe_timepoint", $306], [ "call", @@ -1781,7 +1789,7 @@ export const $305: $.Codec = $.taggedUnion("type" ]], }) -export const $307: $.Codec = $.taggedUnion("type", { +export const $307: $.Codec = $.taggedUnion("type", { 0: ["propose_bounty", ["value", $58], ["description", $12]], 1: ["approve_bounty", ["bounty_id", $125]], 2: ["propose_curator", ["bounty_id", $125], ["curator", $197], ["fee", $58]], @@ -1793,7 +1801,7 @@ export const $307: $.Codec = $.taggedUnion("type" 8: ["extend_bounty_expiry", ["bounty_id", $125], ["remark", $12]], }) -export const $308: $.Codec = $.taggedUnion("type", { +export const $308: $.Codec = $.taggedUnion("type", { 0: ["add_child_bounty", ["parent_bounty_id", $125], ["value", $58], ["description", $12]], 1: ["propose_curator", ["parent_bounty_id", $125], ["child_bounty_id", $125], ["curator", $197], [ "fee", @@ -1809,7 +1817,7 @@ export const $308: $.Codec = $.taggedUnion( 6: ["close_child_bounty", ["parent_bounty_id", $125], ["child_bounty_id", $125]], }) -export const $309: $.Codec = $.taggedUnion("type", { +export const $309: $.Codec = $.taggedUnion("type", { 0: ["report_awesome", ["reason", $12], ["who", $197]], 1: ["retract_tip", ["hash", $11]], 2: ["tip_new", ["reason", $12], ["who", $197], ["tip_value", $58]], @@ -1818,745 +1826,746 @@ export const $309: $.Codec = $.taggedUnion("type", { 5: ["slash_tip", ["hash", $11]], }) -export const $315: $.Codec> = $.compact($80) +export const $315: $.Codec> = $.compact($80) -export const $314: $.Codec<[t.Compact, t.Compact]> = $.tuple($125, $315) +export const $314: $.Codec<[t.Compact, t.Compact]> = $.tuple($125, $315) -export const $313: $.Codec, t.Compact]>> = $.array($314) +export const $313: $.Codec, t.Compact]>> = $.array($314) -export const $320: $.Codec = $80 +export const $320: $.Codec = $80 -export const $319: $.Codec> = $.compact($320) +export const $319: $.Codec> = $.compact($320) -export const $318: $.Codec<[t.Compact, t.Compact]> = $ - .tuple($315, $319) +export const $318: $.Codec< + [t.Compact, t.Compact] +> = $.tuple($315, $319) export const $317: $.Codec< [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, + t.Compact, + [t.Compact, t.Compact], + t.Compact, ] > = $.tuple($125, $318, $315) export const $316: $.Codec< Array< [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, + t.Compact, + [t.Compact, t.Compact], + t.Compact, ] > > = $.array($317) export const $323: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 2) export const $322: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $323, $315) export const $321: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($322) export const $326: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 3) export const $325: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $326, $315) export const $324: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($325) export const $329: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 4) export const $328: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $329, $315) export const $327: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($328) export const $332: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 5) export const $331: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $332, $315) export const $330: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($331) export const $335: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 6) export const $334: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $335, $315) export const $333: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($334) export const $338: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 7) export const $337: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $338, $315) export const $336: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($337) export const $341: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 8) export const $340: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $341, $315) export const $339: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($340) export const $344: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 9) export const $343: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $344, $315) export const $342: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($343) export const $347: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 10) export const $346: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $347, $315) export const $345: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($346) export const $350: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 11) export const $349: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $350, $315) export const $348: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($349) export const $353: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 12) export const $352: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $353, $315) export const $351: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($352) export const $356: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 13) export const $355: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $356, $315) export const $354: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($355) export const $359: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 14) export const $358: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $359, $315) export const $357: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($358) export const $362: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 15) export const $361: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $362, $315) export const $360: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($361) -export const $312: $.Codec = $.object( +export const $312: $.Codec = $.object( ["votes1", $313], ["votes2", $316], ["votes3", $321], @@ -2575,64 +2584,64 @@ export const $312: $.Codec = $.object( ["votes16", $360], ) -export const $311: $.Codec = $.object( +export const $311: $.Codec = $.object( ["solution", $312], ["score", $88], ["round", $4], ) -export const $363: $.Codec = $ +export const $363: $.Codec = $ .object(["voters", $125], ["targets", $125]) -export const $364: $.Codec = $.option($88) +export const $364: $.Codec = $.option($88) -export const $367: $.Codec = $.object(["total", $6], ["voters", $68]) +export const $367: $.Codec = $.object(["total", $6], [ + "voters", + $68, +]) -export const $366: $.Codec<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> = $.tuple( - $0, - $367, -) +export const $366: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support] +> = $.tuple($0, $367) -export const $365: $.Codec> = $ - .array($366) +export const $365: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> +> = $.array($366) -export const $310: $.Codec = $.taggedUnion( - "type", - { +export const $310: $.Codec = $ + .taggedUnion("type", { 0: ["submit_unsigned", ["raw_solution", $311], ["witness", $363]], 1: ["set_minimum_untrusted_score", ["maybe_next_score", $364]], 2: ["set_emergency_election_result", ["supports", $365]], 3: ["submit", ["raw_solution", $311]], 4: ["governance_fallback", ["maybe_max_voters", $236], ["maybe_max_targets", $236]], - }, -) + }) -export const $368: $.Codec = $.taggedUnion("type", { +export const $368: $.Codec = $.taggedUnion("type", { 0: ["rebag", ["dislocated", $197]], 1: ["put_in_front_of", ["lighter", $197]], }) -export const $370: $.Codec = $.taggedUnion("type", { +export const $370: $.Codec = $.taggedUnion("type", { 0: ["FreeBalance", ["value", $6]], 1: ["Rewards"], }) -export const $371: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $6]], - 2: ["Remove"], -}) +export const $371: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $6]], 2: ["Remove"] }, +) -export const $372: $.Codec = $.taggedUnion("type", { +export const $372: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $4]], 2: ["Remove"], }) -export const $373: $.Codec = $ - .taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $0]], 2: ["Remove"] }) +export const $373: $.Codec = + $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $0]], 2: ["Remove"] }) -export const $369: $.Codec = $.taggedUnion("type", { +export const $369: $.Codec = $.taggedUnion("type", { 0: ["join", ["amount", $58], ["pool_id", $4]], 1: ["bond_extra", ["extra", $370]], 2: ["claim_payout"], @@ -2654,15 +2663,14 @@ export const $369: $.Codec = $.taggedUnio 12: ["chill", ["pool_id", $4]], }) -export const $374: $.Codec = $.taggedUnion("type", { +export const $374: $.Codec = $.taggedUnion("type", { 0: ["register_fast_unstake"], 1: ["deregister"], 2: ["control", ["unchecked_eras_to_check", $4]], }) -export const $375: $.Codec = $.taggedUnion( - "type", - { +export const $375: $.Codec = $ + .taggedUnion("type", { 0: ["set_validation_upgrade_cooldown", ["new", $4]], 1: ["set_validation_upgrade_delay", ["new", $4]], 2: ["set_code_retention_period", ["new", $4]], @@ -2708,43 +2716,45 @@ export const $375: $.Codec = $.never +export const $376: $.Codec = $.never -export const $377: $.Codec = $.never +export const $377: $.Codec = $.never export const $383: $.Codec<$.BitSequence> = $.bitSequence -export const $382: $.Codec = $383 +export const $382: $.Codec = $383 -export const $385: $.Codec = $4 +export const $385: $.Codec = $4 -export const $386: $.Codec = $101 +export const $386: $.Codec = $101 -export const $381: $.Codec = $.object( +export const $381: $.Codec = $.object( ["payload", $382], ["validator_index", $385], ["signature", $386], ) -export const $380: $.Codec> = $.array($381) +export const $380: $.Codec> = $.array( + $381, +) -export const $392: $.Codec = $.object([ +export const $392: $.Codec = $.object([ "recipient", $98, ], ["data", $12]) -export const $391: $.Codec> = $.array($392) +export const $391: $.Codec> = $.array( + $392, +) -export const $394: $.Codec = $12 +export const $394: $.Codec = $12 -export const $393: $.Codec = $.option( - $394, -) +export const $393: $.Codec = $ + .option($394) -export const $390: $.Codec = $.object( +export const $390: $.Codec = $.object( ["upward_messages", $164], ["horizontal_messages", $391], ["new_validation_code", $393], @@ -2753,89 +2763,90 @@ export const $390: $.Codec = $.ob ["hrmp_watermark", $4], ) -export const $389: $.Codec = $.object([ +export const $389: $.Codec = $.object([ "descriptor", $97, ], ["commitments", $390]) -export const $396: $.Codec = $.taggedUnion("type", { - 1: ["Implicit", ["value", $386]], - 2: ["Explicit", ["value", $386]], -}) +export const $396: $.Codec = $.taggedUnion( + "type", + { 1: ["Implicit", ["value", $386]], 2: ["Explicit", ["value", $386]] }, +) -export const $395: $.Codec> = $.array($396) +export const $395: $.Codec> = $.array( + $396, +) -export const $388: $.Codec = $.object( +export const $388: $.Codec = $.object( ["candidate", $389], ["validity_votes", $395], ["validator_indices", $383], ) -export const $387: $.Codec> = $.array($388) +export const $387: $.Codec> = $.array($388) -export const $402: $.Codec = $.taggedUnion( - "type", - { +export const $402: $.Codec = $ + .taggedUnion("type", { 0: ["Explicit"], 1: ["BackingSeconded", ["value", $11]], 2: ["BackingValid", ["value", $11]], 3: ["ApprovalChecking"], - }, -) + }) -export const $403: $.Codec = $.stringUnion({ - 0: "Explicit", -}) +export const $403: $.Codec = $ + .stringUnion({ 0: "Explicit" }) -export const $401: $.Codec = $.taggedUnion("type", { - 0: ["Valid", ["value", $402]], - 1: ["Invalid", ["value", $403]], -}) +export const $401: $.Codec = $.taggedUnion( + "type", + { 0: ["Valid", ["value", $402]], 1: ["Invalid", ["value", $403]] }, +) export const $400: $.Codec< [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, ] > = $.tuple($401, $385, $386) export const $399: $.Codec< Array< [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, ] > > = $.array($400) -export const $398: $.Codec = $.object( +export const $398: $.Codec = $.object( ["candidate_hash", $114], ["session", $4], ["statements", $399], ) -export const $397: $.Codec> = $.array($398) +export const $397: $.Codec> = $.array( + $398, +) -export const $379: $.Codec = $.object( +export const $379: $.Codec = $.object( ["bitfields", $380], ["backed_candidates", $387], ["disputes", $397], ["parent_header", $187], ) -export const $378: $.Codec = $ +export const $378: $.Codec = $ .taggedUnion("type", { 0: ["enter", ["data", $379]] }) -export const $405: $.Codec = $.object( +export const $405: $.Codec = $.object( ["accept", $43], ["subject", $103], ["session_index", $4], ["validator_index", $385], ) -export const $404: $.Codec = $.taggedUnion( +export const $404: $.Codec = $.taggedUnion( "type", { 0: ["force_set_current_code", ["para", $98], ["new_code", $394]], @@ -2852,41 +2863,41 @@ export const $404: $.Codec = $. }, ) -export const $406: $.Codec = $.taggedUnion( - "type", - { 0: ["force_approve", ["up_to", $4]] }, -) +export const $406: $.Codec = $ + .taggedUnion("type", { 0: ["force_approve", ["up_to", $4]] }) -export const $407: $.Codec = $.never +export const $407: $.Codec = $.never -export const $408: $.Codec = $.taggedUnion("type", { - 0: ["service_overweight", ["index", $10], ["weight_limit", $8]], -}) - -export const $409: $.Codec = $.taggedUnion("type", { - 0: ["hrmp_init_open_channel", ["recipient", $98], ["proposed_max_capacity", $4], [ - "proposed_max_message_size", - $4, - ]], - 1: ["hrmp_accept_open_channel", ["sender", $98]], - 2: ["hrmp_close_channel", ["channel_id", $112]], - 3: ["force_clean_hrmp", ["para", $98], ["inbound", $4], ["outbound", $4]], - 4: ["force_process_hrmp_open", ["channels", $4]], - 5: ["force_process_hrmp_close", ["channels", $4]], - 6: ["hrmp_cancel_open_request", ["channel_id", $112], ["open_requests", $4]], - 7: ["force_open_hrmp_channel", ["sender", $98], ["recipient", $98], ["max_capacity", $4], [ - "max_message_size", - $4, - ]], -}) - -export const $410: $.Codec = $.stringUnion({ - 0: "force_unfreeze", -}) +export const $408: $.Codec = $.taggedUnion( + "type", + { 0: ["service_overweight", ["index", $10], ["weight_limit", $8]] }, +) -export const $411: $.Codec = $.taggedUnion( +export const $409: $.Codec = $.taggedUnion( "type", { + 0: ["hrmp_init_open_channel", ["recipient", $98], ["proposed_max_capacity", $4], [ + "proposed_max_message_size", + $4, + ]], + 1: ["hrmp_accept_open_channel", ["sender", $98]], + 2: ["hrmp_close_channel", ["channel_id", $112]], + 3: ["force_clean_hrmp", ["para", $98], ["inbound", $4], ["outbound", $4]], + 4: ["force_process_hrmp_open", ["channels", $4]], + 5: ["force_process_hrmp_close", ["channels", $4]], + 6: ["hrmp_cancel_open_request", ["channel_id", $112], ["open_requests", $4]], + 7: ["force_open_hrmp_channel", ["sender", $98], ["recipient", $98], ["max_capacity", $4], [ + "max_message_size", + $4, + ]], + }, +) + +export const $410: $.Codec = $ + .stringUnion({ 0: "force_unfreeze" }) + +export const $411: $.Codec = $ + .taggedUnion("type", { 0: ["register", ["id", $98], ["genesis_head", $104], ["validation_code", $394]], 1: ["force_register", ["who", $0], ["deposit", $6], ["id", $98], ["genesis_head", $104], [ "validation_code", @@ -2899,52 +2910,57 @@ export const $411: $.Codec = $.taggedUnion( + "type", + { + 0: ["force_lease", ["para", $98], ["leaser", $0], ["amount", $6], ["period_begin", $4], [ + "period_count", + $4, + ]], + 1: ["clear_all_leases", ["para", $98]], + 2: ["trigger_onboard", ["para", $98]], }, ) -export const $412: $.Codec = $.taggedUnion("type", { - 0: ["force_lease", ["para", $98], ["leaser", $0], ["amount", $6], ["period_begin", $4], [ - "period_count", - $4, - ]], - 1: ["clear_all_leases", ["para", $98]], - 2: ["trigger_onboard", ["para", $98]], -}) - -export const $414: $.Codec> = $.compact($98) +export const $414: $.Codec> = $.compact($98) -export const $413: $.Codec = $.taggedUnion("type", { - 0: ["new_auction", ["duration", $125], ["lease_period_index", $125]], - 1: ["bid", ["para", $414], ["auction_index", $125], ["first_slot", $125], ["last_slot", $125], [ - "amount", - $58, - ]], - 2: ["cancel_auction"], -}) +export const $413: $.Codec = $.taggedUnion( + "type", + { + 0: ["new_auction", ["duration", $125], ["lease_period_index", $125]], + 1: ["bid", ["para", $414], ["auction_index", $125], ["first_slot", $125], ["last_slot", $125], [ + "amount", + $58, + ]], + 2: ["cancel_auction"], + }, +) export const $419: $.Codec = $.sizedUint8Array(33) -export const $418: $.Codec = $419 +export const $418: $.Codec = $419 -export const $417: $.Codec = $.taggedUnion("type", { +export const $417: $.Codec = $.taggedUnion("type", { 0: ["Ed25519", ["value", $51]], 1: ["Sr25519", ["value", $54]], 2: ["Ecdsa", ["value", $418]], }) -export const $416: $.Codec = $.option($417) +export const $416: $.Codec = $.option($417) -export const $422: $.Codec = $247 +export const $422: $.Codec = $247 -export const $421: $.Codec = $.taggedUnion("type", { +export const $421: $.Codec = $.taggedUnion("type", { 0: ["Ed25519", ["value", $222]], 1: ["Sr25519", ["value", $101]], 2: ["Ecdsa", ["value", $422]], }) -export const $420: $.Codec = $.option($421) +export const $420: $.Codec = $.option($421) -export const $415: $.Codec = $.taggedUnion( +export const $415: $.Codec = $.taggedUnion( "type", { 0: ["create", ["index", $414], ["cap", $58], ["first_period", $125], ["last_period", $125], [ @@ -2965,9 +2981,9 @@ export const $415: $.Codec = $. }, ) -export const $428: $.Codec> = $.array($.deferred(() => $425)) +export const $428: $.Codec> = $.array($.deferred(() => $425)) -export const $427: $.Codec = $.taggedUnion("type", { +export const $427: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["DepositAsset", ["assets", $151], ["dest", $153]], 2: ["DepositReserveAsset", ["assets", $151], ["dest", $153], ["effects", $.deferred(() => $426)]], @@ -2984,13 +3000,13 @@ export const $427: $.Codec = $.taggedUnion("type", { ]], }) -export const $426: $.Codec> = $.array($427) +export const $426: $.Codec> = $.array($427) -export const $429: $.Codec = $.taggedUnion("type", { +export const $429: $.Codec = $.taggedUnion("type", { 0: ["Assets", ["value", $151]], }) -export const $425: $.Codec = $.taggedUnion("type", { +export const $425: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $151], ["effects", $426]], 1: ["ReserveAssetDeposit", ["assets", $151], ["effects", $426]], 2: ["TeleportAsset", ["assets", $151], ["effects", $426]], @@ -3007,9 +3023,9 @@ export const $425: $.Codec = $.taggedUnion("type", { 10: ["RelayedFrom", ["who", $153], ["message", $.deferred(() => $425)]], }) -export const $433: $.Codec> = $.array($.deferred(() => $430)) +export const $433: $.Codec> = $.array($.deferred(() => $430)) -export const $432: $.Codec = $.taggedUnion("type", { +export const $432: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["DepositAsset", ["assets", $145], ["max_assets", $4], ["beneficiary", $122]], 2: ["DepositReserveAsset", ["assets", $145], ["max_assets", $4], ["dest", $122], [ @@ -3029,14 +3045,14 @@ export const $432: $.Codec = $.taggedUnion("type", { ]], }) -export const $431: $.Codec> = $.array($432) +export const $431: $.Codec> = $.array($432) -export const $434: $.Codec = $.taggedUnion("type", { +export const $434: $.Codec = $.taggedUnion("type", { 0: ["Assets", ["value", $133]], 1: ["Version", ["value", $4]], }) -export const $430: $.Codec = $.taggedUnion("type", { +export const $430: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $133], ["effects", $431]], 1: ["ReserveAssetDeposited", ["assets", $133], ["effects", $431]], 2: ["ReceiveTeleportedAsset", ["assets", $133], ["effects", $431]], @@ -3055,15 +3071,15 @@ export const $430: $.Codec = $.taggedUnion("type", { 12: ["UnsubscribeVersion"], }) -export const $424: $.Codec = $.taggedUnion("type", { +export const $424: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $425]], 1: ["V1", ["value", $430]], 2: ["V2", ["value", $130]], }) -export const $439: $.Codec> = $.array($.deferred(() => $436)) +export const $439: $.Codec> = $.array($.deferred(() => $436)) -export const $438: $.Codec = $.taggedUnion("type", { +export const $438: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["DepositAsset", ["assets", $151], ["dest", $153]], 2: ["DepositReserveAsset", ["assets", $151], ["dest", $153], ["effects", $426]], @@ -3077,11 +3093,11 @@ export const $438: $.Codec = $.taggedUnion("type", { ]], }) -export const $437: $.Codec> = $.array($438) +export const $437: $.Codec> = $.array($438) export const $440: $.Codec<{ encoded: Uint8Array }> = $.object(["encoded", $12]) -export const $436: $.Codec = $.taggedUnion("type", { +export const $436: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $151], ["effects", $437]], 1: ["ReserveAssetDeposit", ["assets", $151], ["effects", $437]], 2: ["TeleportAsset", ["assets", $151], ["effects", $437]], @@ -3098,9 +3114,9 @@ export const $436: $.Codec = $.taggedUnion("type", { 10: ["RelayedFrom", ["who", $153], ["message", $.deferred(() => $436)]], }) -export const $444: $.Codec> = $.array($.deferred(() => $441)) +export const $444: $.Codec> = $.array($.deferred(() => $441)) -export const $443: $.Codec = $.taggedUnion("type", { +export const $443: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["DepositAsset", ["assets", $145], ["max_assets", $4], ["beneficiary", $122]], 2: ["DepositReserveAsset", ["assets", $145], ["max_assets", $4], ["dest", $122], [ @@ -3117,9 +3133,9 @@ export const $443: $.Codec = $.taggedUnion("type", { ]], }) -export const $442: $.Codec> = $.array($443) +export const $442: $.Codec> = $.array($443) -export const $441: $.Codec = $.taggedUnion("type", { +export const $441: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $133], ["effects", $442]], 1: ["ReserveAssetDeposited", ["assets", $133], ["effects", $442]], 2: ["ReceiveTeleportedAsset", ["assets", $133], ["effects", $442]], @@ -3138,7 +3154,7 @@ export const $441: $.Codec = $.taggedUnion("type", { 12: ["UnsubscribeVersion"], }) -export const $447: $.Codec = $.taggedUnion("type", { +export const $447: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["value", $133]], 1: ["ReserveAssetDeposited", ["value", $133]], 2: ["ReceiveTeleportedAsset", ["value", $133]], @@ -3178,17 +3194,17 @@ export const $447: $.Codec = $.taggedUnion("type", { 27: ["UnsubscribeVersion"], }) -export const $446: $.Codec> = $.array($447) +export const $446: $.Codec> = $.array($447) -export const $445: $.Codec> = $446 +export const $445: $.Codec> = $446 -export const $435: $.Codec = $.taggedUnion("type", { +export const $435: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $436]], 1: ["V1", ["value", $441]], 2: ["V2", ["value", $445]], }) -export const $423: $.Codec = $.taggedUnion("type", { +export const $423: $.Codec = $.taggedUnion("type", { 0: ["send", ["dest", $155], ["message", $424]], 1: ["teleport_assets", ["dest", $155], ["beneficiary", $155], ["assets", $150], [ "fee_asset_item", @@ -3213,7 +3229,7 @@ export const $423: $.Codec = $.taggedUnion("type", { ], ["weight_limit", $148]], }) -export const $181: $.Codec = $.taggedUnion("type", { +export const $181: $.Codec = $.taggedUnion("type", { 0: ["System", ["value", $161]], 1: ["Scheduler", ["value", $182]], 10: ["Preimage", ["value", $184]], @@ -3262,9 +3278,9 @@ export const $181: $.Codec = $.taggedUnion("type 99: ["XcmPallet", ["value", $423]], }) -export const $188: $.Codec = C.$null +export const $188: $.Codec = C.$null -export const $301: $.Codec = $.stringUnion({ +export const $301: $.Codec = $.stringUnion({ 1: "Display", 2: "Legal", 4: "Web", @@ -3275,9 +3291,9 @@ export const $301: $.Codec = $.stringUnio 128: "Twitter", }) -export const $384: $.Codec = C.$null +export const $384: $.Codec = C.$null -export const $450: $.Codec = $.stringUnion({ +export const $450: $.Codec = $.stringUnion({ 0: "FailedToSchedule", 1: "NotFound", 2: "TargetBlockNumberInPast", @@ -3285,18 +3301,19 @@ export const $450: $.Codec = $.stringUnion({ 4: "Named", }) -export const $452: $.Codec<[t.sp_core.crypto.AccountId32, t.u128] | undefined> = $.option($69) +export const $452: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128] | undefined> = $ + .option($69) -export const $451: $.Codec = $.taggedUnion("type", { +export const $451: $.Codec = $.taggedUnion("type", { 0: ["Unrequested", ["deposit", $69], ["len", $4]], 1: ["Requested", ["deposit", $452], ["count", $4], ["len", $236]], }) -export const $453: $.Codec<[t.primitive_types.H256, t.u32]> = $.tuple($11, $4) +export const $453: $.Codec<[t.types.primitive_types.H256, t.types.u32]> = $.tuple($11, $4) export const $454: $.Codec = $12 -export const $455: $.Codec = $.stringUnion({ +export const $455: $.Codec = $.stringUnion({ 0: "TooBig", 1: "AlreadyNoted", 2: "NotAuthorized", @@ -3305,58 +3322,69 @@ export const $455: $.Codec = $.stringUnion({ 5: "NotRequested", }) -export const $457: $.Codec<[t.sp_consensus_babe.app.Public, t.u64]> = $.tuple($189, $10) +export const $457: $.Codec<[t.types.sp_consensus_babe.app.Public, t.types.u64]> = $.tuple( + $189, + $10, +) -export const $458: $.Codec> = $.array($457) +export const $458: $.Codec> = $.array( + $457, +) -export const $456: $.Codec> = $458 +export const $456: $.Codec> = $458 export const $460: $.Codec> = $.array($1) export const $459: $.Codec> = $460 -export const $463: $.Codec = $.object( +export const $463: $.Codec = $.object( ["authority_index", $4], ["slot", $190], ["vrf_output", $1], ["vrf_proof", $102], ) -export const $464: $.Codec = $.object([ +export const $464: $.Codec = $.object([ "authority_index", $4, ], ["slot", $190]) -export const $465: $.Codec = $.object( +export const $465: $.Codec = $.object( ["authority_index", $4], ["slot", $190], ["vrf_output", $1], ["vrf_proof", $102], ) -export const $462: $.Codec = $.taggedUnion("type", { +export const $462: $.Codec = $.taggedUnion("type", { 1: ["Primary", ["value", $463]], 2: ["SecondaryPlain", ["value", $464]], 3: ["SecondaryVRF", ["value", $465]], }) -export const $461: $.Codec = $.option($462) +export const $461: $.Codec = $.option( + $462, +) -export const $466: $.Codec = $.object(["c", $193], [ - "allowed_slots", - $194, -]) +export const $466: $.Codec = $.object( + ["c", $193], + ["allowed_slots", $194], +) -export const $467: $.Codec = $.stringUnion({ +export const $467: $.Codec = $.stringUnion({ 0: "InvalidEquivocationProof", 1: "InvalidKeyOwnershipProof", 2: "DuplicateOffenceReport", 3: "InvalidConfiguration", }) -export const $468: $.Codec<[t.sp_core.crypto.AccountId32, t.u128, boolean]> = $.tuple($0, $6, $43) +export const $468: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128, boolean]> = $.tuple( + $0, + $6, + $43, +) -export const $469: $.Codec = $.stringUnion({ +export const $469: $.Codec = $.stringUnion({ 0: "NotAssigned", 1: "NotOwner", 2: "InUse", @@ -3364,33 +3392,36 @@ export const $469: $.Codec = $.stringUnion({ 4: "Permanent", }) -export const $472: $.Codec = $.stringUnion({ +export const $472: $.Codec = $.stringUnion({ 0: "Fee", 1: "Misc", 2: "All", }) -export const $471: $.Codec = $.object(["id", $139], ["amount", $6], [ - "reasons", - $472, -]) +export const $471: $.Codec = $.object(["id", $139], [ + "amount", + $6, +], ["reasons", $472]) -export const $473: $.Codec> = $.array($471) +export const $473: $.Codec> = $.array($471) -export const $470: $.Codec> = $473 +export const $470: $.Codec> = $473 -export const $475: $.Codec = $.object(["id", $139], ["amount", $6]) +export const $475: $.Codec = $.object(["id", $139], [ + "amount", + $6, +]) -export const $476: $.Codec> = $.array($475) +export const $476: $.Codec> = $.array($475) -export const $474: $.Codec> = $476 +export const $474: $.Codec> = $476 -export const $477: $.Codec = $.stringUnion({ +export const $477: $.Codec = $.stringUnion({ 0: "V1_0_0", 1: "V2_0_0", }) -export const $478: $.Codec = $.stringUnion({ +export const $478: $.Codec = $.stringUnion({ 0: "VestingBalance", 1: "LiquidityRestrictions", 2: "InsufficientBalance", @@ -3401,23 +3432,23 @@ export const $478: $.Codec = $.stringUnion({ 7: "TooManyReserves", }) -export const $479: $.Codec = $6 +export const $479: $.Codec = $6 -export const $480: $.Codec = $.stringUnion({ +export const $480: $.Codec = $.stringUnion({ 0: "V1Ancient", 1: "V2", }) -export const $482: $.Codec = $.taggedUnion("type", { +export const $482: $.Codec = $.taggedUnion("type", { 0: ["InclusionHeight", ["value", $4]], 1: ["Uncle", ["value", $.tuple($11, $92)]], }) -export const $483: $.Codec> = $.array($482) +export const $483: $.Codec> = $.array($482) -export const $481: $.Codec> = $483 +export const $481: $.Codec> = $483 -export const $484: $.Codec = $.stringUnion({ +export const $484: $.Codec = $.stringUnion({ 0: "InvalidUncleParent", 1: "UnclesAlreadySet", 2: "TooManyUncles", @@ -3427,15 +3458,18 @@ export const $484: $.Codec = $.stringUnion({ 6: "OldUncle", }) -export const $487: $.Codec = $.object(["value", $58], ["era", $125]) +export const $487: $.Codec = $.object(["value", $58], [ + "era", + $125, +]) -export const $488: $.Codec> = $.array($487) +export const $488: $.Codec> = $.array($487) -export const $486: $.Codec> = $488 +export const $486: $.Codec> = $488 -export const $489: $.Codec> = $94 +export const $489: $.Codec> = $94 -export const $485: $.Codec = $.object( +export const $485: $.Codec = $.object( ["stash", $0], ["total", $58], ["active", $58], @@ -3443,41 +3477,43 @@ export const $485: $.Codec = $.object( ["claimed_rewards", $489], ) -export const $491: $.Codec> = $206 +export const $491: $.Codec> = $206 -export const $490: $.Codec = $.object(["targets", $491], [ +export const $490: $.Codec = $.object(["targets", $491], [ "submitted_in", $4, ], ["suppressed", $43]) -export const $493: $.Codec = $.option($10) +export const $493: $.Codec = $.option($10) -export const $492: $.Codec = $.object(["index", $4], [ +export const $492: $.Codec = $.object(["index", $4], [ "start", $493, ]) -export const $494: $.Codec<[t.u32, t.sp_core.crypto.AccountId32]> = $.tuple($4, $0) +export const $494: $.Codec<[t.types.u32, t.types.sp_core.crypto.AccountId32]> = $.tuple($4, $0) -export const $496: $.Codec> = $.map($0, $4) +export const $496: $.Codec> = $.map($0, $4) -export const $495: $.Codec = $.object(["total", $4], [ +export const $495: $.Codec = $.object(["total", $4], [ "individual", $496, ]) -export const $498: $.Codec<[t.sp_core.crypto.AccountId32, t.u32]> = $.tuple($0, $4) +export const $498: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u32]> = $.tuple($0, $4) -export const $497: $.Codec> = $.array($498) +export const $497: $.Codec> = $.array( + $498, +) -export const $499: $.Codec = $.stringUnion({ +export const $499: $.Codec = $.stringUnion({ 0: "NotForcing", 1: "ForceNew", 2: "ForceNone", 3: "ForceAlways", }) -export const $501: $.Codec = $.object( +export const $501: $.Codec = $.object( ["validator", $0], ["own", $6], ["others", $68], @@ -3485,27 +3521,30 @@ export const $501: $.Codec = $.object( ["payout", $6], ) -export const $500: $.Codec> = $.array($501) +export const $500: $.Codec> = $.array($501) -export const $502: $.Codec<[t.sp_arithmetic.per_things.Perbill, t.u128]> = $.tuple($42, $6) +export const $502: $.Codec<[t.types.sp_arithmetic.per_things.Perbill, t.types.u128]> = $.tuple( + $42, + $6, +) -export const $503: $.Codec = $.object( +export const $503: $.Codec = $.object( ["span_index", $4], ["last_start", $4], ["last_nonzero_slash", $4], ["prior", $94], ) -export const $504: $.Codec = $.object(["slashed", $6], [ +export const $504: $.Codec = $.object(["slashed", $6], [ "paid_out", $6, ]) -export const $506: $.Codec<[t.u32, boolean]> = $.tuple($4, $43) +export const $506: $.Codec<[t.types.u32, boolean]> = $.tuple($4, $43) -export const $505: $.Codec> = $.array($506) +export const $505: $.Codec> = $.array($506) -export const $507: $.Codec = $.stringUnion({ +export const $507: $.Codec = $.stringUnion({ 0: "V1_0_0Ancient", 1: "V2_0_0", 2: "V3_0_0", @@ -3520,7 +3559,7 @@ export const $507: $.Codec = $.stringUnion({ 11: "V12_0_0", }) -export const $508: $.Codec = $.stringUnion({ +export const $508: $.Codec = $.stringUnion({ 0: "NotController", 1: "NotStash", 2: "AlreadyBonded", @@ -3548,24 +3587,26 @@ export const $508: $.Codec = $.stringUnion 24: "BoundNotMet", }) -export const $509: $.Codec = $.object(["offender", $56], [ - "reporters", - $206, -]) +export const $509: $.Codec = $.object( + ["offender", $56], + ["reporters", $206], +) export const $510: $.Codec<[Uint8Array, Uint8Array]> = $.tuple($45, $12) -export const $512: $.Codec<[t.sp_core.crypto.AccountId32, t.polkadot_runtime.SessionKeys]> = $ - .tuple($0, $212) +export const $512: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_runtime.SessionKeys] +> = $.tuple($0, $212) -export const $511: $.Codec> = - $.array($512) +export const $511: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.polkadot_runtime.SessionKeys]> +> = $.array($512) -export const $514: $.Codec = $16 +export const $514: $.Codec = $16 -export const $513: $.Codec<[t.sp_core.crypto.KeyTypeId, Uint8Array]> = $.tuple($514, $12) +export const $513: $.Codec<[t.types.sp_core.crypto.KeyTypeId, Uint8Array]> = $.tuple($514, $12) -export const $515: $.Codec = $.stringUnion({ +export const $515: $.Codec = $.stringUnion({ 0: "InvalidProof", 1: "NoAssociatedValidatorId", 2: "DuplicatedKey", @@ -3573,23 +3614,23 @@ export const $515: $.Codec = $.stringUnion({ 4: "NoAccount", }) -export const $516: $.Codec = $.taggedUnion("type", { +export const $516: $.Codec = $.taggedUnion("type", { 0: ["Live"], 1: ["PendingPause", ["scheduled_at", $4], ["delay", $4]], 2: ["Paused"], 3: ["PendingResume", ["scheduled_at", $4], ["delay", $4]], }) -export const $518: $.Codec> = $48 +export const $518: $.Codec> = $48 -export const $517: $.Codec = $.object( +export const $517: $.Codec = $.object( ["scheduled_at", $4], ["delay", $4], ["next_authorities", $518], ["forced", $236], ) -export const $519: $.Codec = $.stringUnion({ +export const $519: $.Codec = $.stringUnion({ 0: "PauseFailed", 1: "ResumeFailed", 2: "ChangePending", @@ -3599,9 +3640,11 @@ export const $519: $.Codec = $.stringUnion({ 6: "DuplicateOffenceReport", }) -export const $521: $.Codec> = $.array($53) +export const $521: $.Codec> = $.array( + $53, +) -export const $520: $.Codec> = $521 +export const $520: $.Codec> = $521 export const $524: $.Codec = $12 @@ -3609,40 +3652,57 @@ export const $526: $.Codec> = $.array($524) export const $525: $.Codec> = $526 -export const $523: $.Codec = $.object([ +export const $523: $.Codec = $.object([ "peer_id", $524, ], ["external_addresses", $525]) -export const $522: $.Codec = $.lenPrefixed($523) +export const $522: $.Codec = $.lenPrefixed( + $523, +) -export const $527: $.Codec = $.stringUnion({ +export const $527: $.Codec = $.stringUnion({ 0: "InvalidKey", 1: "DuplicatedHeartbeat", }) export const $529: $.Codec< - [t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32] + [t.types.u32, t.types.frame_support.traits.preimages.Bounded, t.types.sp_core.crypto.AccountId32] > = $.tuple($4, $180, $0) export const $530: $.Codec< - Array<[t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32]> + Array< + [ + t.types.u32, + t.types.frame_support.traits.preimages.Bounded, + t.types.sp_core.crypto.AccountId32, + ] + > > = $.array($529) export const $528: $.Codec< - Array<[t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32]> + Array< + [ + t.types.u32, + t.types.frame_support.traits.preimages.Bounded, + t.types.sp_core.crypto.AccountId32, + ] + > > = $530 -export const $532: $.Codec> = $206 +export const $532: $.Codec> = $206 -export const $531: $.Codec<[Array, t.u128]> = $.tuple($532, $6) +export const $531: $.Codec<[Array, t.types.u128]> = $.tuple( + $532, + $6, +) -export const $535: $.Codec = $.object(["ayes", $6], ["nays", $6], [ - "turnout", +export const $535: $.Codec = $.object(["ayes", $6], [ + "nays", $6, -]) +], ["turnout", $6]) -export const $534: $.Codec = $.object( +export const $534: $.Codec = $.object( ["end", $4], ["proposal", $180], ["threshold", $62], @@ -3650,25 +3710,29 @@ export const $534: $.Codec = $.object ["tally", $535], ) -export const $533: $.Codec = $.taggedUnion("type", { +export const $533: $.Codec = $.taggedUnion("type", { 0: ["Ongoing", ["value", $534]], 1: ["Finished", ["approved", $43], ["end", $4]], }) -export const $538: $.Codec<[t.u32, t.pallet_democracy.vote.AccountVote]> = $.tuple($4, $63) +export const $538: $.Codec<[t.types.u32, t.types.pallet_democracy.vote.AccountVote]> = $.tuple( + $4, + $63, +) -export const $539: $.Codec> = $.array($538) +export const $539: $.Codec> = $ + .array($538) -export const $537: $.Codec> = $539 +export const $537: $.Codec> = $539 -export const $540: $.Codec = $.object(["votes", $6], [ +export const $540: $.Codec = $.object(["votes", $6], [ "capital", $6, ]) -export const $541: $.Codec = $.tuple($4, $6) +export const $541: $.Codec = $.tuple($4, $6) -export const $536: $.Codec = $.taggedUnion("type", { +export const $536: $.Codec = $.taggedUnion("type", { 0: ["Direct", ["votes", $537], ["delegations", $540], ["prior", $541]], 1: ["Delegating", ["balance", $6], ["target", $0], ["conviction", $235], ["delegations", $540], [ "prior", @@ -3677,12 +3741,18 @@ export const $536: $.Codec = $.taggedUnion("type }) export const $542: $.Codec< - [t.frame_support.traits.preimages.Bounded, t.pallet_democracy.vote_threshold.VoteThreshold] + [ + t.types.frame_support.traits.preimages.Bounded, + t.types.pallet_democracy.vote_threshold.VoteThreshold, + ] > = $.tuple($180, $62) -export const $543: $.Codec<[t.u32, Array]> = $.tuple($4, $532) +export const $543: $.Codec<[t.types.u32, Array]> = $.tuple( + $4, + $532, +) -export const $544: $.Codec = $.stringUnion({ +export const $544: $.Codec = $.stringUnion({ 0: "ValueLow", 1: "ProposalMissing", 2: "AlreadyCanceled", @@ -3708,9 +3778,9 @@ export const $544: $.Codec = $.stringUnion({ 22: "VotingPeriodLow", }) -export const $545: $.Codec> = $157 +export const $545: $.Codec> = $157 -export const $546: $.Codec = $.object( +export const $546: $.Codec = $.object( ["index", $4], ["threshold", $4], ["ayes", $206], @@ -3718,7 +3788,7 @@ export const $546: $.Codec = $.object( ["end", $4], ) -export const $547: $.Codec = $.stringUnion({ +export const $547: $.Codec = $.stringUnion({ 0: "NotMember", 1: "DuplicateProposal", 2: "ProposalMissing", @@ -3731,9 +3801,9 @@ export const $547: $.Codec = $.stringUnion({ 9: "WrongProposalLength", }) -export const $548: $.Codec> = $157 +export const $548: $.Codec> = $157 -export const $549: $.Codec = $.stringUnion({ +export const $549: $.Codec = $.stringUnion({ 0: "NotMember", 1: "DuplicateProposal", 2: "ProposalMissing", @@ -3746,19 +3816,19 @@ export const $549: $.Codec = $.stringUnion({ 9: "WrongProposalLength", }) -export const $551: $.Codec = $.object(["who", $0], [ +export const $551: $.Codec = $.object(["who", $0], [ "stake", $6, ], ["deposit", $6]) -export const $550: $.Codec> = $.array($551) +export const $550: $.Codec> = $.array($551) -export const $552: $.Codec = $.object(["votes", $206], [ +export const $552: $.Codec = $.object(["votes", $206], [ "stake", $6, ], ["deposit", $6]) -export const $553: $.Codec = $.stringUnion({ +export const $553: $.Codec = $.stringUnion({ 0: "UnableToVote", 1: "NoVotes", 2: "TooManyVotes", @@ -3778,28 +3848,30 @@ export const $553: $.Codec = $.stringU 16: "InvalidReplacement", }) -export const $554: $.Codec> = $206 +export const $554: $.Codec> = $206 -export const $555: $.Codec = $.stringUnion({ +export const $555: $.Codec = $.stringUnion({ 0: "AlreadyMember", 1: "NotMember", 2: "TooManyMembers", }) -export const $556: $.Codec = $.object(["proposer", $0], ["value", $6], [ - "beneficiary", - $0, -], ["bond", $6]) +export const $556: $.Codec = $.object( + ["proposer", $0], + ["value", $6], + ["beneficiary", $0], + ["bond", $6], +) -export const $557: $.Codec> = $94 +export const $557: $.Codec> = $94 -export const $558: $.Codec = $4 +export const $558: $.Codec = $4 -export const $559: $.Codec = $.option($6) +export const $559: $.Codec = $.option($6) -export const $560: $.Codec = $139 +export const $560: $.Codec = $139 -export const $561: $.Codec = $.stringUnion({ +export const $561: $.Codec = $.stringUnion({ 0: "InsufficientProposersBalance", 1: "InvalidIndex", 2: "TooManyApprovals", @@ -3807,7 +3879,7 @@ export const $561: $.Codec = $.stringUnion({ 4: "ProposalNotApproved", }) -export const $562: $.Codec = $.stringUnion({ +export const $562: $.Codec = $.stringUnion({ 0: "InvalidEthereumSignature", 1: "SignerHasNoClaim", 2: "SenderHasNoClaim", @@ -3816,13 +3888,13 @@ export const $562: $.Codec = $.st 5: "VestedBalanceExists", }) -export const $564: $.Codec> = $.array($253) +export const $564: $.Codec> = $.array($253) -export const $563: $.Codec> = $564 +export const $563: $.Codec> = $564 -export const $565: $.Codec = $.stringUnion({ 0: "V0", 1: "V1" }) +export const $565: $.Codec = $.stringUnion({ 0: "V0", 1: "V1" }) -export const $566: $.Codec = $.stringUnion({ +export const $566: $.Codec = $.stringUnion({ 0: "NotVesting", 1: "AtMaxVestingSchedules", 2: "AmountLow", @@ -3830,37 +3902,50 @@ export const $566: $.Codec = $.stringUnion({ 4: "InvalidScheduleParams", }) -export const $567: $.Codec = $.stringUnion({ 0: "TooManyCalls" }) - -export const $570: $.Codec<[t.u32, t.pallet_identity.types.Judgement]> = $.tuple($4, $302) +export const $567: $.Codec = $.stringUnion({ + 0: "TooManyCalls", +}) -export const $571: $.Codec> = $.array($570) +export const $570: $.Codec<[t.types.u32, t.types.pallet_identity.types.Judgement]> = $.tuple( + $4, + $302, +) -export const $569: $.Codec> = $571 +export const $571: $.Codec> = $.array( + $570, +) -export const $568: $.Codec = $.object(["judgements", $569], [ - "deposit", - $6, -], ["info", $264]) +export const $569: $.Codec> = $571 -export const $573: $.Codec> = $206 +export const $568: $.Codec = $.object( + ["judgements", $569], + ["deposit", $6], + ["info", $264], +) -export const $572: $.Codec<[t.u128, Array]> = $.tuple($6, $573) +export const $573: $.Codec> = $206 -export const $576: $.Codec = $.object(["account", $0], [ - "fee", +export const $572: $.Codec<[t.types.u128, Array]> = $.tuple( $6, -], ["fields", $300]) + $573, +) -export const $575: $.Codec = $.option($576) +export const $576: $.Codec = $.object( + ["account", $0], + ["fee", $6], + ["fields", $300], +) -export const $577: $.Codec> = $.array( - $575, +export const $575: $.Codec = $.option( + $576, ) -export const $574: $.Codec> = $577 +export const $577: $.Codec> = $ + .array($575) + +export const $574: $.Codec> = $577 -export const $578: $.Codec = $.stringUnion({ +export const $578: $.Codec = $.stringUnion({ 0: "TooManySubAccounts", 1: "NotFound", 2: "NotNamed", @@ -3880,30 +3965,35 @@ export const $578: $.Codec = $.stringUnion({ 16: "JudgementForDifferentIdentity", }) -export const $581: $.Codec = $.object(["delegate", $0], [ +export const $581: $.Codec = $.object(["delegate", $0], [ "proxy_type", $79, ], ["delay", $4]) -export const $582: $.Codec> = $.array($581) - -export const $580: $.Codec> = $582 +export const $582: $.Codec> = $.array($581) -export const $579: $.Codec<[Array, t.u128]> = $.tuple($580, $6) +export const $580: $.Codec> = $582 -export const $585: $.Codec = $.object( - ["real", $0], - ["call_hash", $11], - ["height", $4], +export const $579: $.Codec<[Array, t.types.u128]> = $.tuple( + $580, + $6, ) -export const $586: $.Codec> = $.array($585) +export const $585: $.Codec = $.object(["real", $0], [ + "call_hash", + $11, +], ["height", $4]) + +export const $586: $.Codec> = $.array($585) -export const $584: $.Codec> = $586 +export const $584: $.Codec> = $586 -export const $583: $.Codec<[Array, t.u128]> = $.tuple($584, $6) +export const $583: $.Codec<[Array, t.types.u128]> = $.tuple( + $584, + $6, +) -export const $587: $.Codec = $.stringUnion({ +export const $587: $.Codec = $.stringUnion({ 0: "TooMany", 1: "NotFound", 2: "NotProxy", @@ -3914,14 +4004,16 @@ export const $587: $.Codec = $.stringUnion({ 7: "NoSelfProxy", }) -export const $588: $.Codec<[t.sp_core.crypto.AccountId32, Uint8Array]> = $.tuple($0, $1) +export const $588: $.Codec<[t.types.sp_core.crypto.AccountId32, Uint8Array]> = $.tuple($0, $1) -export const $589: $.Codec = $.object(["when", $82], ["deposit", $6], [ - "depositor", - $0, -], ["approvals", $206]) +export const $589: $.Codec = $.object( + ["when", $82], + ["deposit", $6], + ["depositor", $0], + ["approvals", $206], +) -export const $590: $.Codec = $.stringUnion({ +export const $590: $.Codec = $.stringUnion({ 0: "MinimumThreshold", 1: "AlreadyApproved", 2: "NoApprovalsNeeded", @@ -3938,7 +4030,7 @@ export const $590: $.Codec = $.stringUnion({ 13: "AlreadyStored", }) -export const $592: $.Codec = $.taggedUnion("type", { +export const $592: $.Codec = $.taggedUnion("type", { 0: ["Proposed"], 1: ["Approved"], 2: ["Funded"], @@ -3947,7 +4039,7 @@ export const $592: $.Codec = $.taggedUnion("type 5: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], }) -export const $591: $.Codec = $.object( +export const $591: $.Codec = $.object( ["proposer", $0], ["value", $6], ["fee", $6], @@ -3958,7 +4050,7 @@ export const $591: $.Codec = $.object( export const $593: $.Codec = $12 -export const $594: $.Codec = $.stringUnion({ +export const $594: $.Codec = $.stringUnion({ 0: "InsufficientProposersBalance", 1: "InvalidIndex", 2: "ReasonTooBig", @@ -3972,14 +4064,17 @@ export const $594: $.Codec = $.stringUnion({ 10: "TooManyQueued", }) -export const $596: $.Codec = $.taggedUnion("type", { - 0: ["Added"], - 1: ["CuratorProposed", ["curator", $0]], - 2: ["Active", ["curator", $0]], - 3: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], -}) +export const $596: $.Codec = $.taggedUnion( + "type", + { + 0: ["Added"], + 1: ["CuratorProposed", ["curator", $0]], + 2: ["Active", ["curator", $0]], + 3: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], + }, +) -export const $595: $.Codec = $.object( +export const $595: $.Codec = $.object( ["parent_bounty", $4], ["value", $6], ["fee", $6], @@ -3987,13 +4082,13 @@ export const $595: $.Codec = $.object( ["status", $596], ) -export const $597: $.Codec = $.stringUnion({ +export const $597: $.Codec = $.stringUnion({ 0: "ParentBountyNotActive", 1: "InsufficientBountyBalance", 2: "TooManyChildBounties", }) -export const $598: $.Codec = $.object( +export const $598: $.Codec = $.object( ["reason", $11], ["who", $0], ["finder", $0], @@ -4003,7 +4098,7 @@ export const $598: $.Codec = $.object( ["finders_fee", $43], ) -export const $599: $.Codec = $.stringUnion({ +export const $599: $.Codec = $.stringUnion({ 0: "ReasonTooBig", 1: "AlreadyKnown", 2: "UnknownTip", @@ -4012,61 +4107,70 @@ export const $599: $.Codec = $.stringUnion({ 5: "Premature", }) -export const $601: $.Codec<[boolean, t.u32]> = $.tuple($43, $4) +export const $601: $.Codec<[boolean, t.types.u32]> = $.tuple($43, $4) -export const $600: $.Codec = $.taggedUnion("type", { - 0: ["Off"], - 1: ["Signed"], - 2: ["Unsigned", ["value", $601]], - 3: ["Emergency"], -}) +export const $600: $.Codec = $.taggedUnion( + "type", + { 0: ["Off"], 1: ["Signed"], 2: ["Unsigned", ["value", $601]], 3: ["Emergency"] }, +) -export const $602: $.Codec = $.object( +export const $602: $.Codec = $.object( ["supports", $365], ["score", $88], ["compute", $87], ) export const $605: $.Codec< - [t.sp_core.crypto.AccountId32, t.u64, Array] + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] > = $.tuple($0, $10, $491) export const $604: $.Codec< - Array<[t.sp_core.crypto.AccountId32, t.u64, Array]> + Array< + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] + > > = $.array($605) -export const $603: $.Codec = $.object([ +export const $603: $.Codec = $.object([ "voters", $604, ], ["targets", $206]) -export const $607: $.Codec> = $.map($88, $4) +export const $607: $.Codec> = $.map( + $88, + $4, +) -export const $606: $.Codec> = $607 +export const $606: $.Codec> = $607 -export const $609: $.Codec<[t.sp_npos_elections.ElectionScore, t.u32]> = $.tuple($88, $4) +export const $609: $.Codec<[t.types.sp_npos_elections.ElectionScore, t.types.u32]> = $.tuple( + $88, + $4, +) -export const $608: $.Codec> = $.array($609) +export const $608: $.Codec> = $.array( + $609, +) -export const $610: $.Codec = $ +export const $610: $.Codec = $ .object(["who", $0], ["deposit", $6], ["raw_solution", $311], ["call_fee", $6]) -export const $611: $.Codec = $.stringUnion({ - 0: "PreDispatchEarlySubmission", - 1: "PreDispatchWrongWinnerCount", - 2: "PreDispatchWeakSubmission", - 3: "SignedQueueFull", - 4: "SignedCannotPayDeposit", - 5: "SignedInvalidWitness", - 6: "SignedTooMuchWeight", - 7: "OcwCallWrongEra", - 8: "MissingSnapshotMetadata", - 9: "InvalidSubmissionIndex", - 10: "CallNotAllowed", - 11: "FallbackFailed", -}) - -export const $612: $.Codec = $.object( +export const $611: $.Codec = $ + .stringUnion({ + 0: "PreDispatchEarlySubmission", + 1: "PreDispatchWrongWinnerCount", + 2: "PreDispatchWeakSubmission", + 3: "SignedQueueFull", + 4: "SignedCannotPayDeposit", + 5: "SignedInvalidWitness", + 6: "SignedTooMuchWeight", + 7: "OcwCallWrongEra", + 8: "MissingSnapshotMetadata", + 9: "InvalidSubmissionIndex", + 10: "CallNotAllowed", + 11: "FallbackFailed", + }) + +export const $612: $.Codec = $.object( ["id", $0], ["prev", $92], ["next", $92], @@ -4074,77 +4178,87 @@ export const $612: $.Codec = $.object( ["score", $10], ) -export const $613: $.Codec = $.object(["head", $92], ["tail", $92]) +export const $613: $.Codec = $.object(["head", $92], [ + "tail", + $92, +]) -export const $614: $.Codec> = $.array($10) +export const $614: $.Codec> = $.array($10) -export const $616: $.Codec = $.stringUnion({ +export const $616: $.Codec = $.stringUnion({ 0: "Duplicate", 1: "NotHeavier", 2: "NotInSameBag", 3: "NodeNotFound", }) -export const $615: $.Codec = $.taggedUnion("type", { +export const $615: $.Codec = $.taggedUnion("type", { 0: ["List", ["value", $616]], }) -export const $619: $.Codec> = $.map($4, $6) +export const $619: $.Codec> = $.map($4, $6) -export const $618: $.Codec> = $619 +export const $618: $.Codec> = $619 -export const $617: $.Codec = $.object( +export const $617: $.Codec = $.object( ["pool_id", $4], ["points", $6], ["last_recorded_reward_counter", $479], ["unbonding_eras", $618], ) -export const $621: $.Codec<[t.u32, t.u128]> = $.tuple($4, $6) +export const $621: $.Codec<[t.types.u32, t.types.u128]> = $.tuple($4, $6) -export const $620: $.Codec> = $.array($621) +export const $620: $.Codec> = $.array($621) -export const $623: $.Codec = $.object( +export const $623: $.Codec = $.object( ["depositor", $0], ["root", $92], ["nominator", $92], ["state_toggler", $92], ) -export const $622: $.Codec = $.object( +export const $622: $.Codec = $.object( ["points", $6], ["state", $91], ["member_counter", $4], ["roles", $623], ) -export const $624: $.Codec = $.object( +export const $624: $.Codec = $.object( ["last_recorded_reward_counter", $479], ["last_recorded_total_payouts", $6], ["total_rewards_claimed", $6], ) -export const $626: $.Codec = $.object(["points", $6], [ +export const $626: $.Codec = $.object(["points", $6], [ "balance", $6, ]) -export const $628: $.Codec> = $.map($4, $626) +export const $628: $.Codec> = $.map( + $4, + $626, +) -export const $627: $.Codec> = $628 +export const $627: $.Codec> = $628 -export const $625: $.Codec = $.object(["no_era", $626], [ +export const $625: $.Codec = $.object(["no_era", $626], [ "with_era", $627, ]) -export const $630: $.Codec<[t.u32, t.pallet_nomination_pools.UnbondPool]> = $.tuple($4, $626) +export const $630: $.Codec<[t.types.u32, t.types.pallet_nomination_pools.UnbondPool]> = $.tuple( + $4, + $626, +) -export const $629: $.Codec> = $.array($630) +export const $629: $.Codec> = $ + .array($630) export const $631: $.Codec = $12 -export const $633: $.Codec = $.stringUnion({ +export const $633: $.Codec = $.stringUnion({ 0: "NotEnoughSpaceInUnbondPool", 1: "PoolNotFound", 2: "RewardPoolNotFound", @@ -4152,7 +4266,7 @@ export const $633: $.Codec = $. 4: "BondedStashKilledPrematurely", }) -export const $632: $.Codec = $.taggedUnion("type", { +export const $632: $.Codec = $.taggedUnion("type", { 0: ["PoolNotFound"], 1: ["PoolMemberNotFound"], 2: ["RewardPoolNotFound"], @@ -4176,16 +4290,17 @@ export const $632: $.Codec = $.taggedUni 20: ["PartialUnbondNotAllowedPermissionlessly"], }) -export const $636: $.Codec> = $94 +export const $636: $.Codec> = $94 -export const $634: $.Codec = $.object(["stash", $0], [ - "checked", - $636, -], ["deposit", $6]) +export const $634: $.Codec = $.object( + ["stash", $0], + ["checked", $636], + ["deposit", $6], +) -export const $635: $.Codec = C.$null +export const $635: $.Codec = C.$null -export const $637: $.Codec = $.stringUnion({ +export const $637: $.Codec = $.stringUnion({ 0: "NotController", 1: "AlreadyQueued", 2: "NotFullyBonded", @@ -4194,7 +4309,7 @@ export const $637: $.Codec = $.stringUnion({ 5: "CallNotAllowed", }) -export const $638: $.Codec = $ +export const $638: $.Codec = $ .object( ["max_code_size", $4], ["max_head_data_size", $4], @@ -4241,100 +4356,122 @@ export const $638: $.Codec = - $.tuple($4, $638) +export const $640: $.Codec< + [t.types.u32, t.types.polkadot_runtime_parachains.configuration.HostConfiguration] +> = $.tuple($4, $638) export const $639: $.Codec< - Array<[t.u32, t.polkadot_runtime_parachains.configuration.HostConfiguration]> + Array<[t.types.u32, t.types.polkadot_runtime_parachains.configuration.HostConfiguration]> > = $.array($640) -export const $641: $.Codec = $ +export const $641: $.Codec = $ .stringUnion({ 0: "InvalidNewValue" }) -export const $642: $.Codec> = $.array($385) +export const $642: $.Codec> = $.array($385) -export const $643: $.Codec> = $.array($213) +export const $643: $.Codec> = $.array( + $213, +) -export const $644: $.Codec = $ - .object(["bitfield", $382], ["submitted_at", $4]) +export const $644: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord +> = $.object(["bitfield", $382], ["submitted_at", $4]) -export const $645: $.Codec = $ - .object( - ["core", $105], - ["hash", $114], - ["descriptor", $97], - ["availability_votes", $383], - ["backers", $383], - ["relay_parent_number", $4], - ["backed_in_number", $4], - ["backing_group", $106], - ) +export const $645: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability +> = $.object( + ["core", $105], + ["hash", $114], + ["descriptor", $97], + ["availability_votes", $383], + ["backers", $383], + ["relay_parent_number", $4], + ["backed_in_number", $4], + ["backing_group", $106], +) -export const $646: $.Codec = $.stringUnion({ - 0: "UnsortedOrDuplicateValidatorIndices", - 1: "UnsortedOrDuplicateDisputeStatementSet", - 2: "UnsortedOrDuplicateBackedCandidates", - 3: "UnexpectedRelayParent", - 4: "WrongBitfieldSize", - 5: "BitfieldAllZeros", - 6: "BitfieldDuplicateOrUnordered", - 7: "ValidatorIndexOutOfBounds", - 8: "InvalidBitfieldSignature", - 9: "UnscheduledCandidate", - 10: "CandidateScheduledBeforeParaFree", - 11: "WrongCollator", - 12: "ScheduledOutOfOrder", - 13: "HeadDataTooLarge", - 14: "PrematureCodeUpgrade", - 15: "NewCodeTooLarge", - 16: "CandidateNotInParentContext", - 17: "InvalidGroupIndex", - 18: "InsufficientBacking", - 19: "InvalidBacking", - 20: "NotCollatorSigned", - 21: "ValidationDataHashMismatch", - 22: "IncorrectDownwardMessageHandling", - 23: "InvalidUpwardMessages", - 24: "HrmpWatermarkMishandling", - 25: "InvalidOutboundHrmp", - 26: "InvalidValidationCodeHash", - 27: "ParaHeadMismatch", - 28: "BitfieldReferencesFreedCore", -}) +export const $646: $.Codec = $ + .stringUnion({ + 0: "UnsortedOrDuplicateValidatorIndices", + 1: "UnsortedOrDuplicateDisputeStatementSet", + 2: "UnsortedOrDuplicateBackedCandidates", + 3: "UnexpectedRelayParent", + 4: "WrongBitfieldSize", + 5: "BitfieldAllZeros", + 6: "BitfieldDuplicateOrUnordered", + 7: "ValidatorIndexOutOfBounds", + 8: "InvalidBitfieldSignature", + 9: "UnscheduledCandidate", + 10: "CandidateScheduledBeforeParaFree", + 11: "WrongCollator", + 12: "ScheduledOutOfOrder", + 13: "HeadDataTooLarge", + 14: "PrematureCodeUpgrade", + 15: "NewCodeTooLarge", + 16: "CandidateNotInParentContext", + 17: "InvalidGroupIndex", + 18: "InsufficientBacking", + 19: "InvalidBacking", + 20: "NotCollatorSigned", + 21: "ValidationDataHashMismatch", + 22: "IncorrectDownwardMessageHandling", + 23: "InvalidUpwardMessages", + 24: "HrmpWatermarkMishandling", + 25: "InvalidOutboundHrmp", + 26: "InvalidValidationCodeHash", + 27: "ParaHeadMismatch", + 28: "BitfieldReferencesFreedCore", + }) export const $651: $.Codec< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] > = $.tuple($385, $396) export const $650: $.Codec< - Array<[t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation]> + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + > > = $.array($651) export const $649: $.Codec< [ - t.polkadot_primitives.v2.CandidateReceipt, - Array<[t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation]>, + t.types.polkadot_primitives.v2.CandidateReceipt, + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + >, ] > = $.tuple($96, $650) export const $648: $.Codec< Array< [ - t.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_primitives.v2.CandidateReceipt, Array< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] >, ] > > = $.array($649) -export const $647: $.Codec = $.object( +export const $647: $.Codec = $.object( ["session", $4], ["backing_validators_per_candidate", $648], ["disputes", $397], ) -export const $652: $.Codec = $ +export const $652: $.Codec = $ .stringUnion({ 0: "TooManyInclusionInherents", 1: "InvalidParentHeader", @@ -4344,122 +4481,119 @@ export const $652: $.Codec>> = $.array($642) - -export const $658: $.Codec = $.tuple($98, $99) +export const $653: $.Codec>> = $.array( + $642, +) -export const $657: $.Codec = $.object(["claim", $658], [ - "retries", - $4, -]) +export const $658: $.Codec = $.tuple($98, $99) -export const $656: $.Codec = $.object([ +export const $657: $.Codec = $.object([ "claim", - $657, -], ["core_offset", $4]) + $658, +], ["retries", $4]) -export const $655: $.Codec> = $ - .array($656) +export const $656: $.Codec = $ + .object(["claim", $657], ["core_offset", $4]) -export const $654: $.Codec = $.object( - ["queue", $655], - ["next_core_offset", $4], -) +export const $655: $.Codec> = + $.array($656) -export const $661: $.Codec = $.taggedUnion("type", { +export const $654: $.Codec = $ + .object(["queue", $655], ["next_core_offset", $4]) + +export const $661: $.Codec = $.taggedUnion("type", { 0: ["Parathread", ["value", $657]], 1: ["Parachain"], }) -export const $660: $.Codec = $.option($661) - -export const $659: $.Codec> = $.array( - $660, +export const $660: $.Codec = $.option( + $661, ) -export const $662: $.Codec> = $.array($98) +export const $659: $.Codec> = $ + .array($660) -export const $665: $.Codec = $.taggedUnion( - "type", - { 0: ["Parachain"], 1: ["Parathread", ["value", $.tuple($99, $4)]] }, -) +export const $662: $.Codec> = $.array($98) -export const $664: $.Codec = $.object( +export const $665: $.Codec = $ + .taggedUnion("type", { 0: ["Parachain"], 1: ["Parathread", ["value", $.tuple($99, $4)]] }) + +export const $664: $.Codec = $.object( ["core", $105], ["para_id", $98], ["kind", $665], ["group_idx", $106], ) -export const $663: $.Codec> = $.array( - $664, -) +export const $663: $.Codec> = $ + .array($664) -export const $668: $.Codec = $.taggedUnion( +export const $668: $.Codec = $.taggedUnion( "type", { 0: ["Onboarding", ["value", $98]], 1: ["Upgrade", ["id", $98], ["relay_parent_number", $4]] }, ) -export const $667: $.Codec> = $.array( - $668, -) +export const $667: $.Codec> = $ + .array($668) -export const $666: $.Codec = $.object( - ["votes_accept", $383], - ["votes_reject", $383], - ["age", $4], - ["created_at", $4], - ["causes", $667], -) +export const $666: $.Codec = $ + .object(["votes_accept", $383], ["votes_reject", $383], ["age", $4], ["created_at", $4], [ + "causes", + $667, + ]) -export const $669: $.Codec> = $.array( - $103, -) +export const $669: $.Codec> = $ + .array($103) -export const $670: $.Codec = $.stringUnion({ - 0: "Onboarding", - 1: "Parathread", - 2: "Parachain", - 3: "UpgradingParathread", - 4: "DowngradingParachain", - 5: "OffboardingParathread", - 6: "OffboardingParachain", -}) +export const $670: $.Codec = $.stringUnion( + { + 0: "Onboarding", + 1: "Parathread", + 2: "Parachain", + 3: "UpgradingParathread", + 4: "DowngradingParachain", + 5: "OffboardingParathread", + 6: "OffboardingParachain", + }, +) -export const $671: $.Codec<[t.polkadot_parachain.primitives.Id, t.u32]> = $.tuple($98, $4) +export const $671: $.Codec<[t.types.polkadot_parachain.primitives.Id, t.types.u32]> = $.tuple( + $98, + $4, +) -export const $674: $.Codec = $.object([ +export const $674: $.Codec = $.object([ "expected_at", $4, ], ["activated_at", $4]) -export const $673: $.Codec> = $.array( - $674, -) +export const $673: $.Codec> = $ + .array($674) -export const $672: $.Codec = $.object([ +export const $672: $.Codec = $.object([ "upgrade_times", $673, ], ["last_pruned", $236]) -export const $675: $.Codec> = $.array($671) +export const $675: $.Codec> = $ + .array($671) -export const $676: $.Codec = $.stringUnion({ +export const $676: $.Codec = $.stringUnion({ 0: "Abort", 1: "GoAhead", }) -export const $677: $.Codec = $.stringUnion({ +export const $677: $.Codec = $.stringUnion({ 0: "Present", }) -export const $678: $.Codec = $.object( +export const $678: $.Codec = $.object( ["genesis_head", $104], ["validation_code", $394], ["parachain", $43], ) -export const $679: $.Codec = $.stringUnion({ +export const $679: $.Codec = $.stringUnion({ 0: "NotRegistered", 1: "CannotOnboard", 2: "CannotOffboard", @@ -4475,42 +4609,44 @@ export const $679: $.Codec = $ 12: "CannotUpgradeCode", }) -export const $681: $.Codec = $ - .object(["validators", $643], ["queued", $643], ["session_index", $4]) +export const $681: $.Codec = + $.object(["validators", $643], ["queued", $643], ["session_index", $4]) -export const $680: $.Codec> = - $.array($681) +export const $680: $.Codec< + Array +> = $.array($681) -export const $683: $.Codec = $.object([ +export const $683: $.Codec = $.object([ "sent_at", $4, ], ["msg", $12]) -export const $682: $.Codec> = $.array( - $683, -) +export const $682: $.Codec> = $ + .array($683) -export const $684: $.Codec<[t.polkadot_parachain.primitives.Id, Uint8Array]> = $.tuple($98, $12) +export const $684: $.Codec<[t.types.polkadot_parachain.primitives.Id, Uint8Array]> = $.tuple( + $98, + $12, +) -export const $685: $.Codec = $.stringUnion({ +export const $685: $.Codec = $.stringUnion({ 0: "UnknownMessageIndex", 1: "WeightOverLimit", }) -export const $686: $.Codec = $.object( - ["confirmed", $43], - ["_age", $4], - ["sender_deposit", $6], - ["max_message_size", $4], - ["max_capacity", $4], - ["max_total_size", $4], -) +export const $686: $.Codec = $ + .object(["confirmed", $43], ["_age", $4], ["sender_deposit", $6], ["max_message_size", $4], [ + "max_capacity", + $4, + ], ["max_total_size", $4]) -export const $687: $.Codec> = $.array($112) +export const $687: $.Codec> = $.array( + $112, +) -export const $689: $.Codec = $.option($11) +export const $689: $.Codec = $.option($11) -export const $688: $.Codec = $.object( +export const $688: $.Codec = $.object( ["max_capacity", $4], ["max_total_size", $4], ["max_message_size", $4], @@ -4521,20 +4657,22 @@ export const $688: $.Codec = $.o ["recipient_deposit", $6], ) -export const $691: $.Codec = $.object([ +export const $691: $.Codec = $.object([ "sent_at", $4, ], ["data", $12]) -export const $690: $.Codec> = $.array($691) +export const $690: $.Codec> = $.array( + $691, +) -export const $693: $.Codec<[t.u32, Array]> = $.tuple($4, $662) +export const $693: $.Codec<[t.types.u32, Array]> = $ + .tuple($4, $662) -export const $692: $.Codec]>> = $.array( - $693, -) +export const $692: $.Codec]>> = + $.array($693) -export const $694: $.Codec = $.stringUnion({ +export const $694: $.Codec = $.stringUnion({ 0: "OpenHrmpChannelToSelf", 1: "OpenHrmpChannelInvalidRecipient", 2: "OpenHrmpChannelZeroCapacity", @@ -4556,11 +4694,13 @@ export const $694: $.Codec = $. 18: "WrongWitness", }) -export const $695: $.Codec> = $.array($214) +export const $695: $.Codec> = $.array( + $214, +) -export const $697: $.Codec> = $.array($215) +export const $697: $.Codec> = $.array($215) -export const $696: $.Codec = $.object( +export const $696: $.Codec = $.object( ["active_validator_indices", $642], ["random_seed", $1], ["dispute_period", $4], @@ -4576,110 +4716,152 @@ export const $696: $.Codec = $.object( ["needed_approvals", $4], ) -export const $698: $.Codec<[t.u32, t.polkadot_core_primitives.CandidateHash]> = $.tuple($4, $114) +export const $698: $.Codec<[t.types.u32, t.types.polkadot_core_primitives.CandidateHash]> = $.tuple( + $4, + $114, +) -export const $699: $.Codec = $.object( +export const $699: $.Codec = $.object( ["validators_for", $383], ["validators_against", $383], ["start", $4], ["concluded_at", $236], ) -export const $700: $.Codec = $.stringUnion({ - 0: "DuplicateDisputeStatementSets", - 1: "AncientDisputeStatement", - 2: "ValidatorIndexOutOfBounds", - 3: "InvalidSignature", - 4: "DuplicateStatement", - 5: "PotentialSpam", - 6: "SingleSidedDispute", -}) +export const $700: $.Codec = $ + .stringUnion({ + 0: "DuplicateDisputeStatementSets", + 1: "AncientDisputeStatement", + 2: "ValidatorIndexOutOfBounds", + 3: "InvalidSignature", + 4: "DuplicateStatement", + 5: "PotentialSpam", + 6: "SingleSidedDispute", + }) -export const $701: $.Codec = $.object( +export const $701: $.Codec = $.object( ["manager", $0], ["deposit", $6], ["locked", $43], ) -export const $702: $.Codec = $.stringUnion({ - 0: "NotRegistered", - 1: "AlreadyRegistered", - 2: "NotOwner", - 3: "CodeTooLarge", - 4: "HeadDataTooLarge", - 5: "NotParachain", - 6: "NotParathread", - 7: "CannotDeregister", - 8: "CannotDowngrade", - 9: "CannotUpgrade", - 10: "ParaLocked", - 11: "NotReserved", - 12: "EmptyCode", - 13: "CannotSwap", -}) - -export const $703: $.Codec> = $.array( - $452, -) +export const $702: $.Codec = $ + .stringUnion({ + 0: "NotRegistered", + 1: "AlreadyRegistered", + 2: "NotOwner", + 3: "CodeTooLarge", + 4: "HeadDataTooLarge", + 5: "NotParachain", + 6: "NotParathread", + 7: "CannotDeregister", + 8: "CannotDowngrade", + 9: "CannotUpgrade", + 10: "ParaLocked", + 11: "NotReserved", + 12: "EmptyCode", + 13: "CannotSwap", + }) + +export const $703: $.Codec> = + $.array($452) -export const $704: $.Codec = $.stringUnion({ +export const $704: $.Codec = $.stringUnion({ 0: "ParaNotOnboarding", 1: "LeaseError", }) -export const $705: $.Codec<[t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id]> = $ - .tuple($0, $98) +export const $705: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id] +> = $.tuple($0, $98) export const $708: $.Codec< - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] > = $.tuple($0, $98, $6) export const $707: $.Codec< - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined > = $.option($708) export const $706: $.Codec< [ - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, ] > = $.sizedArray($707, 36) -export const $709: $.Codec = $.stringUnion({ +export const $709: $.Codec = $.stringUnion({ 0: "AuctionInProgress", 1: "LeasePeriodInPast", 2: "ParaNotRegistered", @@ -4689,12 +4871,14 @@ export const $709: $.Codec = $. 6: "AlreadyLeasedOut", }) -export const $711: $.Codec = $.taggedUnion( - "type", - { 0: ["Never"], 1: ["PreEnding", ["value", $4]], 2: ["Ending", ["value", $4]] }, -) +export const $711: $.Codec = $ + .taggedUnion("type", { + 0: ["Never"], + 1: ["PreEnding", ["value", $4]], + 2: ["Ending", ["value", $4]], + }) -export const $710: $.Codec = $.object( +export const $710: $.Codec = $.object( ["depositor", $0], ["verifier", $416], ["deposit", $6], @@ -4707,7 +4891,7 @@ export const $710: $.Codec = $.obj ["fund_index", $4], ) -export const $712: $.Codec = $.stringUnion({ +export const $712: $.Codec = $.stringUnion({ 0: "FirstPeriodInPast", 1: "FirstPeriodTooFarInFuture", 2: "LastPeriodBeforeFirstPeriod", @@ -4733,42 +4917,47 @@ export const $712: $.Codec = $ 22: "NoLeasePeriod", }) -export const $715: $.Codec<[t.u8, t.u8]> = $.tuple($2, $2) +export const $715: $.Codec<[t.types.u8, t.types.u8]> = $.tuple($2, $2) -export const $714: $.Codec<[t.u8, t.u8] | undefined> = $.option($715) +export const $714: $.Codec<[t.types.u8, t.types.u8] | undefined> = $.option($715) -export const $716: $.Codec = $.taggedUnion("type", { +export const $716: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $429]], 1: ["V1", ["value", $434]], 2: ["V2", ["value", $140]], }) -export const $713: $.Codec = $.taggedUnion("type", { +export const $713: $.Codec = $.taggedUnion("type", { 0: ["Pending", ["responder", $155], ["maybe_notify", $714], ["timeout", $4]], 1: ["VersionNotifier", ["origin", $155], ["is_active", $43]], 2: ["Ready", ["response", $716], ["at", $4]], }) -export const $717: $.Codec<[t.u32, t.xcm.VersionedMultiLocation]> = $.tuple($4, $155) +export const $717: $.Codec<[t.types.u32, t.types.xcm.VersionedMultiLocation]> = $.tuple($4, $155) -export const $718: $.Codec<[t.u64, t.u64, t.u32]> = $.tuple($10, $10, $4) +export const $718: $.Codec<[t.types.u64, t.types.u64, t.types.u32]> = $.tuple($10, $10, $4) -export const $720: $.Codec<[t.xcm.VersionedMultiLocation, t.u32]> = $.tuple($155, $4) +export const $720: $.Codec<[t.types.xcm.VersionedMultiLocation, t.types.u32]> = $.tuple($155, $4) -export const $721: $.Codec> = $.array($720) +export const $721: $.Codec> = $.array( + $720, +) -export const $719: $.Codec> = $721 +export const $719: $.Codec> = $721 export const $723: $.Codec = $.option($12) -export const $722: $.Codec = $.taggedUnion("type", { - 0: ["MigrateSupportedVersion"], - 1: ["MigrateVersionNotifiers"], - 2: ["NotifyCurrentTargets", ["value", $723]], - 3: ["MigrateAndNotifyOldTargets"], -}) +export const $722: $.Codec = $.taggedUnion( + "type", + { + 0: ["MigrateSupportedVersion"], + 1: ["MigrateVersionNotifiers"], + 2: ["NotifyCurrentTargets", ["value", $723]], + 3: ["MigrateAndNotifyOldTargets"], + }, +) -export const $724: $.Codec = $.stringUnion({ +export const $724: $.Codec = $.stringUnion({ 0: "Unreachable", 1: "SendFailure", 2: "Filtered", @@ -4786,42 +4975,45 @@ export const $724: $.Codec = $.stringUnion({ export const $725: $.Codec = $12 -export const $727: $.Codec = - C.$null +export const $727: $.Codec< + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender +> = C.$null -export const $728: $.Codec = C.$null +export const $728: $.Codec = + C.$null -export const $729: $.Codec = C.$null +export const $729: $.Codec = + C.$null -export const $730: $.Codec = C.$null +export const $730: $.Codec = C.$null export const $732: $.Codec = C.$era export const $731: $.Codec = $732 -export const $733: $.Codec> = $125 +export const $733: $.Codec> = $125 -export const $734: $.Codec = C.$null +export const $734: $.Codec = C.$null -export const $735: $.Codec> = $58 +export const $735: $.Codec> = $58 -export const $736: $.Codec = C.$null +export const $736: $.Codec = C.$null export const $726: $.Codec< [ - t.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender, - t.frame_system.extensions.check_spec_version.CheckSpecVersion, - t.frame_system.extensions.check_tx_version.CheckTxVersion, - t.frame_system.extensions.check_genesis.CheckGenesis, + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender, + t.types.frame_system.extensions.check_spec_version.CheckSpecVersion, + t.types.frame_system.extensions.check_tx_version.CheckTxVersion, + t.types.frame_system.extensions.check_genesis.CheckGenesis, C.Era, - t.Compact, - t.frame_system.extensions.check_weight.CheckWeight, - t.Compact, - t.polkadot_runtime_common.claims.PrevalidateAttests, + t.Compact, + t.types.frame_system.extensions.check_weight.CheckWeight, + t.Compact, + t.types.polkadot_runtime_common.claims.PrevalidateAttests, ] > = $.tuple($727, $728, $729, $730, $731, $733, $734, $735, $736) -export const $737: $.Codec = C.$null +export const $737: $.Codec = C.$null export const _all: $.AnyCodec[] = [ $0, diff --git a/codegen/_output/kusama/finality_grandpa/Equivocation/$$finality_grandpa.ts b/codegen/_output/kusama/finality_grandpa/Equivocation/$$finality_grandpa.ts deleted file mode 100644 index 45ab3cd8b..000000000 --- a/codegen/_output/kusama/finality_grandpa/Equivocation/$$finality_grandpa.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $precommit: $.Codec = - _codec.$224 - -export const $prevote: $.Codec = - _codec.$219 - -export interface Precommit { - round_number: t.u64 - identity: t.sp_finality_grandpa.app.Public - first: [t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature] - second: [t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature] -} - -export function Precommit(value: t.finality_grandpa.Equivocation.$$finality_grandpa.Precommit) { - return value -} - -export interface Prevote { - round_number: t.u64 - identity: t.sp_finality_grandpa.app.Public - first: [t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature] - second: [t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature] -} - -export function Prevote(value: t.finality_grandpa.Equivocation.$$finality_grandpa.Prevote) { - return value -} diff --git a/codegen/_output/kusama/finality_grandpa/mod.ts b/codegen/_output/kusama/finality_grandpa/mod.ts deleted file mode 100644 index 42e157d96..000000000 --- a/codegen/_output/kusama/finality_grandpa/mod.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as Equivocation from "./Equivocation/mod.ts" - -export const $precommit: $.Codec = _codec.$225 - -export const $prevote: $.Codec = _codec.$220 - -export interface Precommit { - target_hash: t.primitive_types.H256 - target_number: t.u32 -} - -export function Precommit(value: t.finality_grandpa.Precommit) { - return value -} - -export interface Prevote { - target_hash: t.primitive_types.H256 - target_number: t.u32 -} - -export function Prevote(value: t.finality_grandpa.Prevote) { - return value -} diff --git a/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts b/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts deleted file mode 100644 index 0b7ef13b1..000000000 --- a/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export const $weightsPerClass: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass -> = _codec.$166 - -export interface WeightsPerClass { - normal: t.frame_system.limits.WeightsPerClass - operational: t.frame_system.limits.WeightsPerClass - mandatory: t.frame_system.limits.WeightsPerClass -} - -export function WeightsPerClass( - value: t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass, -) { - return value -} diff --git a/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts b/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts deleted file mode 100644 index 70b4175fe..000000000 --- a/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export const $weight: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight -> = _codec.$7 - -export interface Weight { - normal: t.sp_weights.weight_v2.Weight - operational: t.sp_weights.weight_v2.Weight - mandatory: t.sp_weights.weight_v2.Weight -} - -export function Weight( - value: t.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight, -) { - return value -} diff --git a/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/mod.ts b/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/mod.ts deleted file mode 100644 index f17c65ea6..000000000 --- a/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/mod.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export * as $$frame_system from "./$$frame_system/mod.ts" -export * as $$sp_weights from "./$$sp_weights/mod.ts" - -export const $$$u32: $.Codec = _codec.$170 - -export interface $$u32 { - normal: t.u32 - operational: t.u32 - mandatory: t.u32 -} - -export function $$u32(value: t.frame_support.dispatch.PerDispatchClass.$$u32) { - return value -} diff --git a/codegen/_output/kusama/frame_support/dispatch/mod.ts b/codegen/_output/kusama/frame_support/dispatch/mod.ts deleted file mode 100644 index 41e096b5d..000000000 --- a/codegen/_output/kusama/frame_support/dispatch/mod.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as PerDispatchClass from "./PerDispatchClass/mod.ts" - -export const $dispatchClass: $.Codec = _codec.$22 - -export const $dispatchInfo: $.Codec = _codec.$21 - -export const $pays: $.Codec = _codec.$23 - -export const $rawOrigin: $.Codec = _codec.$257 - -export type DispatchClass = "Normal" | "Operational" | "Mandatory" - -export interface DispatchInfo { - weight: t.sp_weights.weight_v2.Weight - class: t.frame_support.dispatch.DispatchClass - pays_fee: t.frame_support.dispatch.Pays -} - -export function DispatchInfo(value: t.frame_support.dispatch.DispatchInfo) { - return value -} - -export type Pays = "Yes" | "No" - -export type RawOrigin = - | t.frame_support.dispatch.RawOrigin.Root - | t.frame_support.dispatch.RawOrigin.Signed - | t.frame_support.dispatch.RawOrigin.None -export namespace RawOrigin { - export interface Root { - type: "Root" - } - export interface Signed { - type: "Signed" - value: t.sp_core.crypto.AccountId32 - } - export interface None { - type: "None" - } - export function Root(): t.frame_support.dispatch.RawOrigin.Root { - return { type: "Root" } - } - export function Signed( - value: t.frame_support.dispatch.RawOrigin.Signed["value"], - ): t.frame_support.dispatch.RawOrigin.Signed { - return { type: "Signed", value } - } - export function None(): t.frame_support.dispatch.RawOrigin.None { - return { type: "None" } - } -} diff --git a/codegen/_output/kusama/frame_support/mod.ts b/codegen/_output/kusama/frame_support/mod.ts deleted file mode 100644 index e3c066b58..000000000 --- a/codegen/_output/kusama/frame_support/mod.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as dispatch from "./dispatch/mod.ts" -export * as traits from "./traits/mod.ts" - -export const $palletId: $.Codec = _codec.$560 - -export type PalletId = Uint8Array - -export function PalletId(value: t.frame_support.PalletId) { - return value -} diff --git a/codegen/_output/kusama/frame_support/traits/misc.ts b/codegen/_output/kusama/frame_support/traits/misc.ts deleted file mode 100644 index 9aeb1612a..000000000 --- a/codegen/_output/kusama/frame_support/traits/misc.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $wrapperOpaque: $.Codec = _codec.$522 diff --git a/codegen/_output/kusama/frame_support/traits/preimages.ts b/codegen/_output/kusama/frame_support/traits/preimages.ts deleted file mode 100644 index f7b6cd24a..000000000 --- a/codegen/_output/kusama/frame_support/traits/preimages.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $bounded: $.Codec = _codec.$180 - -export type Bounded = - | t.frame_support.traits.preimages.Bounded.Legacy - | t.frame_support.traits.preimages.Bounded.Inline - | t.frame_support.traits.preimages.Bounded.Lookup -export namespace Bounded { - export interface Legacy { - type: "Legacy" - hash: t.primitive_types.H256 - } - export interface Inline { - type: "Inline" - value: Uint8Array - } - export interface Lookup { - type: "Lookup" - hash: t.primitive_types.H256 - len: t.u32 - } - export function Legacy( - value: Omit, - ): t.frame_support.traits.preimages.Bounded.Legacy { - return { type: "Legacy", ...value } - } - export function Inline( - value: t.frame_support.traits.preimages.Bounded.Inline["value"], - ): t.frame_support.traits.preimages.Bounded.Inline { - return { type: "Inline", value } - } - export function Lookup( - value: Omit, - ): t.frame_support.traits.preimages.Bounded.Lookup { - return { type: "Lookup", ...value } - } -} diff --git a/codegen/_output/kusama/frame_support/traits/tokens/misc.ts b/codegen/_output/kusama/frame_support/traits/tokens/misc.ts deleted file mode 100644 index ee5be5d4b..000000000 --- a/codegen/_output/kusama/frame_support/traits/tokens/misc.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export const $balanceStatus: $.Codec = _codec.$37 - -export type BalanceStatus = "Free" | "Reserved" diff --git a/codegen/_output/kusama/frame_system/extensions/check_genesis.ts b/codegen/_output/kusama/frame_system/extensions/check_genesis.ts deleted file mode 100644 index 558e0306a..000000000 --- a/codegen/_output/kusama/frame_system/extensions/check_genesis.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkGenesis: $.Codec = - _codec.$730 - -export function CheckGenesis() { - return null -} - -export type CheckGenesis = null diff --git a/codegen/_output/kusama/frame_system/extensions/check_non_zero_sender.ts b/codegen/_output/kusama/frame_system/extensions/check_non_zero_sender.ts deleted file mode 100644 index 6400ed748..000000000 --- a/codegen/_output/kusama/frame_system/extensions/check_non_zero_sender.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkNonZeroSender: $.Codec< - t.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender -> = _codec.$727 - -export function CheckNonZeroSender() { - return null -} - -export type CheckNonZeroSender = null diff --git a/codegen/_output/kusama/frame_system/extensions/check_spec_version.ts b/codegen/_output/kusama/frame_system/extensions/check_spec_version.ts deleted file mode 100644 index e692bdc9e..000000000 --- a/codegen/_output/kusama/frame_system/extensions/check_spec_version.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkSpecVersion: $.Codec< - t.frame_system.extensions.check_spec_version.CheckSpecVersion -> = _codec.$728 - -export function CheckSpecVersion() { - return null -} - -export type CheckSpecVersion = null diff --git a/codegen/_output/kusama/frame_system/extensions/check_tx_version.ts b/codegen/_output/kusama/frame_system/extensions/check_tx_version.ts deleted file mode 100644 index d2ddd0d49..000000000 --- a/codegen/_output/kusama/frame_system/extensions/check_tx_version.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkTxVersion: $.Codec = - _codec.$729 - -export function CheckTxVersion() { - return null -} - -export type CheckTxVersion = null diff --git a/codegen/_output/kusama/frame_system/extensions/check_weight.ts b/codegen/_output/kusama/frame_system/extensions/check_weight.ts deleted file mode 100644 index acb4a106e..000000000 --- a/codegen/_output/kusama/frame_system/extensions/check_weight.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkWeight: $.Codec = _codec.$734 - -export function CheckWeight() { - return null -} - -export type CheckWeight = null diff --git a/codegen/_output/kusama/frame_system/limits.ts b/codegen/_output/kusama/frame_system/limits.ts deleted file mode 100644 index 1448f520d..000000000 --- a/codegen/_output/kusama/frame_system/limits.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $blockLength: $.Codec = _codec.$169 - -export const $blockWeights: $.Codec = _codec.$165 - -export const $weightsPerClass: $.Codec = _codec.$167 - -export interface BlockLength { - max: t.frame_support.dispatch.PerDispatchClass.$$u32 -} - -export function BlockLength(value: t.frame_system.limits.BlockLength) { - return value -} - -export interface BlockWeights { - base_block: t.sp_weights.weight_v2.Weight - max_block: t.sp_weights.weight_v2.Weight - per_class: t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass -} - -export function BlockWeights(value: t.frame_system.limits.BlockWeights) { - return value -} - -export interface WeightsPerClass { - base_extrinsic: t.sp_weights.weight_v2.Weight - max_extrinsic: t.sp_weights.weight_v2.Weight | undefined - max_total: t.sp_weights.weight_v2.Weight | undefined - reserved: t.sp_weights.weight_v2.Weight | undefined -} - -export function WeightsPerClass(value: t.frame_system.limits.WeightsPerClass) { - return value -} diff --git a/codegen/_output/kusama/frame_system/mod.ts b/codegen/_output/kusama/frame_system/mod.ts deleted file mode 100644 index fad2eca0c..000000000 --- a/codegen/_output/kusama/frame_system/mod.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as extensions from "./extensions/mod.ts" -export * as limits from "./limits.ts" -export * as pallet from "./pallet.ts" - -export const $accountInfo: $.Codec = _codec.$3 - -export const $eventRecord: $.Codec = _codec.$18 - -export const $lastRuntimeUpgradeInfo: $.Codec = _codec.$159 - -export const $phase: $.Codec = _codec.$156 - -export interface AccountInfo { - nonce: t.u32 - consumers: t.u32 - providers: t.u32 - sufficients: t.u32 - data: t.pallet_balances.AccountData -} - -export function AccountInfo(value: t.frame_system.AccountInfo) { - return value -} - -export interface EventRecord { - phase: t.frame_system.Phase - event: t.polkadot_runtime.RuntimeEvent - topics: Array -} - -export function EventRecord(value: t.frame_system.EventRecord) { - return value -} - -export interface LastRuntimeUpgradeInfo { - spec_version: t.Compact - spec_name: string -} - -export function LastRuntimeUpgradeInfo(value: t.frame_system.LastRuntimeUpgradeInfo) { - return value -} - -export type Phase = - | t.frame_system.Phase.ApplyExtrinsic - | t.frame_system.Phase.Finalization - | t.frame_system.Phase.Initialization -export namespace Phase { - export interface ApplyExtrinsic { - type: "ApplyExtrinsic" - value: t.u32 - } - export interface Finalization { - type: "Finalization" - } - export interface Initialization { - type: "Initialization" - } - export function ApplyExtrinsic( - value: t.frame_system.Phase.ApplyExtrinsic["value"], - ): t.frame_system.Phase.ApplyExtrinsic { - return { type: "ApplyExtrinsic", value } - } - export function Finalization(): t.frame_system.Phase.Finalization { - return { type: "Finalization" } - } - export function Initialization(): t.frame_system.Phase.Initialization { - return { type: "Initialization" } - } -} diff --git a/codegen/_output/kusama/mod.ts b/codegen/_output/kusama/mod.ts index badbc43c5..621c80dbf 100644 --- a/codegen/_output/kusama/mod.ts +++ b/codegen/_output/kusama/mod.ts @@ -1,74 +1,5 @@ -import { $, C } from "./capi.ts" -import * as _codec from "./codecs.ts" - export * as _metadata from "./_metadata.ts" -export * as bitvec from "./bitvec/mod.ts" -export * as finality_grandpa from "./finality_grandpa/mod.ts" -export * as frame_support from "./frame_support/mod.ts" -export * as frame_system from "./frame_system/mod.ts" -export * as pallet_authorship from "./pallet_authorship/mod.ts" -export * as pallet_babe from "./pallet_babe/mod.ts" -export * as pallet_bags_list from "./pallet_bags_list/mod.ts" -export * as pallet_balances from "./pallet_balances/mod.ts" -export * as pallet_bounties from "./pallet_bounties/mod.ts" -export * as pallet_child_bounties from "./pallet_child_bounties/mod.ts" -export * as pallet_collective from "./pallet_collective/mod.ts" -export * as pallet_democracy from "./pallet_democracy/mod.ts" -export * as pallet_election_provider_multi_phase from "./pallet_election_provider_multi_phase/mod.ts" -export * as pallet_elections_phragmen from "./pallet_elections_phragmen/mod.ts" -export * as pallet_fast_unstake from "./pallet_fast_unstake/mod.ts" -export * as pallet_grandpa from "./pallet_grandpa/mod.ts" -export * as pallet_identity from "./pallet_identity/mod.ts" -export * as pallet_im_online from "./pallet_im_online/mod.ts" -export * as pallet_indices from "./pallet_indices/mod.ts" -export * as pallet_membership from "./pallet_membership/mod.ts" -export * as pallet_multisig from "./pallet_multisig/mod.ts" -export * as pallet_nomination_pools from "./pallet_nomination_pools/mod.ts" -export * as pallet_offences from "./pallet_offences/mod.ts" -export * as pallet_preimage from "./pallet_preimage/mod.ts" -export * as pallet_proxy from "./pallet_proxy/mod.ts" -export * as pallet_scheduler from "./pallet_scheduler/mod.ts" -export * as pallet_session from "./pallet_session/mod.ts" -export * as pallet_staking from "./pallet_staking/mod.ts" -export * as pallet_timestamp from "./pallet_timestamp/mod.ts" -export * as pallet_tips from "./pallet_tips/mod.ts" -export * as pallet_transaction_payment from "./pallet_transaction_payment/mod.ts" -export * as pallet_treasury from "./pallet_treasury/mod.ts" -export * as pallet_utility from "./pallet_utility/mod.ts" -export * as pallet_vesting from "./pallet_vesting/mod.ts" -export * as pallet_xcm from "./pallet_xcm/mod.ts" export * as pallets from "./pallets/mod.ts" -export * as polkadot_core_primitives from "./polkadot_core_primitives.ts" -export * as polkadot_parachain from "./polkadot_parachain/mod.ts" -export * as polkadot_primitives from "./polkadot_primitives/mod.ts" -export * as polkadot_runtime from "./polkadot_runtime.ts" -export * as polkadot_runtime_common from "./polkadot_runtime_common/mod.ts" -export * as polkadot_runtime_parachains from "./polkadot_runtime_parachains/mod.ts" -export * as primitive_types from "./primitive_types.ts" -export * as sp_arithmetic from "./sp_arithmetic/mod.ts" -export * as sp_authority_discovery from "./sp_authority_discovery/mod.ts" -export * as sp_consensus_babe from "./sp_consensus_babe/mod.ts" -export * as sp_consensus_slots from "./sp_consensus_slots.ts" -export * as sp_core from "./sp_core/mod.ts" -export * as sp_finality_grandpa from "./sp_finality_grandpa/mod.ts" -export * as sp_npos_elections from "./sp_npos_elections.ts" -export * as sp_runtime from "./sp_runtime/mod.ts" -export * as sp_session from "./sp_session.ts" -export * as sp_staking from "./sp_staking/mod.ts" -export * as sp_version from "./sp_version.ts" -export * as sp_weights from "./sp_weights/mod.ts" -export * as xcm from "./xcm/mod.ts" - -export const $era: $.Codec = _codec.$732 +export * as types from "./types/mod.ts" export type Compact = T - -export type u128 = bigint - -export type u16 = number - -export type u32 = number - -export type u64 = bigint - -export type u8 = number diff --git a/codegen/_output/kusama/pallet_authorship/mod.ts b/codegen/_output/kusama/pallet_authorship/mod.ts deleted file mode 100644 index a2e6949b9..000000000 --- a/codegen/_output/kusama/pallet_authorship/mod.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $uncleEntryItem: $.Codec = _codec.$482 - -export type UncleEntryItem = - | t.pallet_authorship.UncleEntryItem.InclusionHeight - | t.pallet_authorship.UncleEntryItem.Uncle -export namespace UncleEntryItem { - export interface InclusionHeight { - type: "InclusionHeight" - value: t.u32 - } - export interface Uncle { - type: "Uncle" - value: [t.primitive_types.H256, t.sp_core.crypto.AccountId32 | undefined] - } - export function InclusionHeight( - value: t.pallet_authorship.UncleEntryItem.InclusionHeight["value"], - ): t.pallet_authorship.UncleEntryItem.InclusionHeight { - return { type: "InclusionHeight", value } - } - export function Uncle( - ...value: t.pallet_authorship.UncleEntryItem.Uncle["value"] - ): t.pallet_authorship.UncleEntryItem.Uncle { - return { type: "Uncle", value } - } -} diff --git a/codegen/_output/kusama/pallet_bags_list/list.ts b/codegen/_output/kusama/pallet_bags_list/list.ts deleted file mode 100644 index 2c7ff3b65..000000000 --- a/codegen/_output/kusama/pallet_bags_list/list.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $bag: $.Codec = _codec.$613 - -export const $listError: $.Codec = _codec.$616 - -export const $node: $.Codec = _codec.$612 - -export interface Bag { - head: t.sp_core.crypto.AccountId32 | undefined - tail: t.sp_core.crypto.AccountId32 | undefined -} - -export function Bag(value: t.pallet_bags_list.list.Bag) { - return value -} - -export type ListError = "Duplicate" | "NotHeavier" | "NotInSameBag" | "NodeNotFound" - -export interface Node { - id: t.sp_core.crypto.AccountId32 - prev: t.sp_core.crypto.AccountId32 | undefined - next: t.sp_core.crypto.AccountId32 | undefined - bag_upper: t.u64 - score: t.u64 -} - -export function Node(value: t.pallet_bags_list.list.Node) { - return value -} diff --git a/codegen/_output/kusama/pallet_balances/mod.ts b/codegen/_output/kusama/pallet_balances/mod.ts deleted file mode 100644 index 4f241fc40..000000000 --- a/codegen/_output/kusama/pallet_balances/mod.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $accountData: $.Codec = _codec.$5 - -export const $balanceLock: $.Codec = _codec.$471 - -export const $reasons: $.Codec = _codec.$472 - -export const $releases: $.Codec = _codec.$477 - -export const $reserveData: $.Codec = _codec.$475 - -export interface AccountData { - free: t.u128 - reserved: t.u128 - misc_frozen: t.u128 - fee_frozen: t.u128 -} - -export function AccountData(value: t.pallet_balances.AccountData) { - return value -} - -export interface BalanceLock { - id: Uint8Array - amount: t.u128 - reasons: t.pallet_balances.Reasons -} - -export function BalanceLock(value: t.pallet_balances.BalanceLock) { - return value -} - -export type Reasons = "Fee" | "Misc" | "All" - -export type Releases = "V1_0_0" | "V2_0_0" - -export interface ReserveData { - id: Uint8Array - amount: t.u128 -} - -export function ReserveData(value: t.pallet_balances.ReserveData) { - return value -} diff --git a/codegen/_output/kusama/pallet_bounties/mod.ts b/codegen/_output/kusama/pallet_bounties/mod.ts deleted file mode 100644 index 69d0638db..000000000 --- a/codegen/_output/kusama/pallet_bounties/mod.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $bounty: $.Codec = _codec.$591 - -export const $bountyStatus: $.Codec = _codec.$592 - -export interface Bounty { - proposer: t.sp_core.crypto.AccountId32 - value: t.u128 - fee: t.u128 - curator_deposit: t.u128 - bond: t.u128 - status: t.pallet_bounties.BountyStatus -} - -export function Bounty(value: t.pallet_bounties.Bounty) { - return value -} - -export type BountyStatus = - | t.pallet_bounties.BountyStatus.Proposed - | t.pallet_bounties.BountyStatus.Approved - | t.pallet_bounties.BountyStatus.Funded - | t.pallet_bounties.BountyStatus.CuratorProposed - | t.pallet_bounties.BountyStatus.Active - | t.pallet_bounties.BountyStatus.PendingPayout -export namespace BountyStatus { - export interface Proposed { - type: "Proposed" - } - export interface Approved { - type: "Approved" - } - export interface Funded { - type: "Funded" - } - export interface CuratorProposed { - type: "CuratorProposed" - curator: t.sp_core.crypto.AccountId32 - } - export interface Active { - type: "Active" - curator: t.sp_core.crypto.AccountId32 - update_due: t.u32 - } - export interface PendingPayout { - type: "PendingPayout" - curator: t.sp_core.crypto.AccountId32 - beneficiary: t.sp_core.crypto.AccountId32 - unlock_at: t.u32 - } - export function Proposed(): t.pallet_bounties.BountyStatus.Proposed { - return { type: "Proposed" } - } - export function Approved(): t.pallet_bounties.BountyStatus.Approved { - return { type: "Approved" } - } - export function Funded(): t.pallet_bounties.BountyStatus.Funded { - return { type: "Funded" } - } - export function CuratorProposed( - value: Omit, - ): t.pallet_bounties.BountyStatus.CuratorProposed { - return { type: "CuratorProposed", ...value } - } - export function Active( - value: Omit, - ): t.pallet_bounties.BountyStatus.Active { - return { type: "Active", ...value } - } - export function PendingPayout( - value: Omit, - ): t.pallet_bounties.BountyStatus.PendingPayout { - return { type: "PendingPayout", ...value } - } -} diff --git a/codegen/_output/kusama/pallet_child_bounties/mod.ts b/codegen/_output/kusama/pallet_child_bounties/mod.ts deleted file mode 100644 index 73ae5cafd..000000000 --- a/codegen/_output/kusama/pallet_child_bounties/mod.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $childBounty: $.Codec = _codec.$595 - -export const $childBountyStatus: $.Codec = _codec.$596 - -export interface ChildBounty { - parent_bounty: t.u32 - value: t.u128 - fee: t.u128 - curator_deposit: t.u128 - status: t.pallet_child_bounties.ChildBountyStatus -} - -export function ChildBounty(value: t.pallet_child_bounties.ChildBounty) { - return value -} - -export type ChildBountyStatus = - | t.pallet_child_bounties.ChildBountyStatus.Added - | t.pallet_child_bounties.ChildBountyStatus.CuratorProposed - | t.pallet_child_bounties.ChildBountyStatus.Active - | t.pallet_child_bounties.ChildBountyStatus.PendingPayout -export namespace ChildBountyStatus { - export interface Added { - type: "Added" - } - export interface CuratorProposed { - type: "CuratorProposed" - curator: t.sp_core.crypto.AccountId32 - } - export interface Active { - type: "Active" - curator: t.sp_core.crypto.AccountId32 - } - export interface PendingPayout { - type: "PendingPayout" - curator: t.sp_core.crypto.AccountId32 - beneficiary: t.sp_core.crypto.AccountId32 - unlock_at: t.u32 - } - export function Added(): t.pallet_child_bounties.ChildBountyStatus.Added { - return { type: "Added" } - } - export function CuratorProposed( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.CuratorProposed { - return { type: "CuratorProposed", ...value } - } - export function Active( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.Active { - return { type: "Active", ...value } - } - export function PendingPayout( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.PendingPayout { - return { type: "PendingPayout", ...value } - } -} diff --git a/codegen/_output/kusama/pallet_collective/mod.ts b/codegen/_output/kusama/pallet_collective/mod.ts deleted file mode 100644 index d3ddd8c32..000000000 --- a/codegen/_output/kusama/pallet_collective/mod.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $rawOrigin: $.Codec = _codec.$258 - -export const $votes: $.Codec = _codec.$546 - -export type RawOrigin = - | t.pallet_collective.RawOrigin.Members - | t.pallet_collective.RawOrigin.Member - | t.pallet_collective.RawOrigin._Phantom -export namespace RawOrigin { - export interface Members { - type: "Members" - value: [t.u32, t.u32] - } - export interface Member { - type: "Member" - value: t.sp_core.crypto.AccountId32 - } - export interface _Phantom { - type: "_Phantom" - } - export function Members( - ...value: t.pallet_collective.RawOrigin.Members["value"] - ): t.pallet_collective.RawOrigin.Members { - return { type: "Members", value } - } - export function Member( - value: t.pallet_collective.RawOrigin.Member["value"], - ): t.pallet_collective.RawOrigin.Member { - return { type: "Member", value } - } - export function _Phantom(): t.pallet_collective.RawOrigin._Phantom { - return { type: "_Phantom" } - } -} - -export interface Votes { - index: t.u32 - threshold: t.u32 - ayes: Array - nays: Array - end: t.u32 -} - -export function Votes(value: t.pallet_collective.Votes) { - return value -} diff --git a/codegen/_output/kusama/pallet_democracy/conviction.ts b/codegen/_output/kusama/pallet_democracy/conviction.ts deleted file mode 100644 index dd2c491bb..000000000 --- a/codegen/_output/kusama/pallet_democracy/conviction.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $conviction: $.Codec = _codec.$235 - -export type Conviction = - | "None" - | "Locked1x" - | "Locked2x" - | "Locked3x" - | "Locked4x" - | "Locked5x" - | "Locked6x" diff --git a/codegen/_output/kusama/pallet_democracy/types.ts b/codegen/_output/kusama/pallet_democracy/types.ts deleted file mode 100644 index 3c2087e74..000000000 --- a/codegen/_output/kusama/pallet_democracy/types.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $delegations: $.Codec = _codec.$540 - -export const $referendumInfo: $.Codec = _codec.$533 - -export const $referendumStatus: $.Codec = _codec.$534 - -export const $tally: $.Codec = _codec.$535 - -export interface Delegations { - votes: t.u128 - capital: t.u128 -} - -export function Delegations(value: t.pallet_democracy.types.Delegations) { - return value -} - -export type ReferendumInfo = - | t.pallet_democracy.types.ReferendumInfo.Ongoing - | t.pallet_democracy.types.ReferendumInfo.Finished -export namespace ReferendumInfo { - export interface Ongoing { - type: "Ongoing" - value: t.pallet_democracy.types.ReferendumStatus - } - export interface Finished { - type: "Finished" - approved: boolean - end: t.u32 - } - export function Ongoing( - value: t.pallet_democracy.types.ReferendumInfo.Ongoing["value"], - ): t.pallet_democracy.types.ReferendumInfo.Ongoing { - return { type: "Ongoing", value } - } - export function Finished( - value: Omit, - ): t.pallet_democracy.types.ReferendumInfo.Finished { - return { type: "Finished", ...value } - } -} - -export interface ReferendumStatus { - end: t.u32 - proposal: t.frame_support.traits.preimages.Bounded - threshold: t.pallet_democracy.vote_threshold.VoteThreshold - delay: t.u32 - tally: t.pallet_democracy.types.Tally -} - -export function ReferendumStatus(value: t.pallet_democracy.types.ReferendumStatus) { - return value -} - -export interface Tally { - ayes: t.u128 - nays: t.u128 - turnout: t.u128 -} - -export function Tally(value: t.pallet_democracy.types.Tally) { - return value -} diff --git a/codegen/_output/kusama/pallet_democracy/vote.ts b/codegen/_output/kusama/pallet_democracy/vote.ts deleted file mode 100644 index 1125141fe..000000000 --- a/codegen/_output/kusama/pallet_democracy/vote.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $accountVote: $.Codec = _codec.$63 - -export const $priorLock: $.Codec = _codec.$541 - -export const $vote: $.Codec = _codec.$64 - -export const $voting: $.Codec = _codec.$536 - -export type AccountVote = - | t.pallet_democracy.vote.AccountVote.Standard - | t.pallet_democracy.vote.AccountVote.Split -export namespace AccountVote { - export interface Standard { - type: "Standard" - vote: t.pallet_democracy.vote.Vote - balance: t.u128 - } - export interface Split { - type: "Split" - aye: t.u128 - nay: t.u128 - } - export function Standard( - value: Omit, - ): t.pallet_democracy.vote.AccountVote.Standard { - return { type: "Standard", ...value } - } - export function Split( - value: Omit, - ): t.pallet_democracy.vote.AccountVote.Split { - return { type: "Split", ...value } - } -} - -export type PriorLock = [t.u32, t.u128] - -export function PriorLock(...value: t.pallet_democracy.vote.PriorLock) { - return value -} - -export type Vote = t.u8 - -export function Vote(value: t.pallet_democracy.vote.Vote) { - return value -} - -export type Voting = - | t.pallet_democracy.vote.Voting.Direct - | t.pallet_democracy.vote.Voting.Delegating -export namespace Voting { - export interface Direct { - type: "Direct" - votes: Array<[t.u32, t.pallet_democracy.vote.AccountVote]> - delegations: t.pallet_democracy.types.Delegations - prior: t.pallet_democracy.vote.PriorLock - } - export interface Delegating { - type: "Delegating" - balance: t.u128 - target: t.sp_core.crypto.AccountId32 - conviction: t.pallet_democracy.conviction.Conviction - delegations: t.pallet_democracy.types.Delegations - prior: t.pallet_democracy.vote.PriorLock - } - export function Direct( - value: Omit, - ): t.pallet_democracy.vote.Voting.Direct { - return { type: "Direct", ...value } - } - export function Delegating( - value: Omit, - ): t.pallet_democracy.vote.Voting.Delegating { - return { type: "Delegating", ...value } - } -} diff --git a/codegen/_output/kusama/pallet_democracy/vote_threshold.ts b/codegen/_output/kusama/pallet_democracy/vote_threshold.ts deleted file mode 100644 index 336aa57c0..000000000 --- a/codegen/_output/kusama/pallet_democracy/vote_threshold.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $voteThreshold: $.Codec = _codec.$62 - -export type VoteThreshold = "SuperMajorityApprove" | "SuperMajorityAgainst" | "SimpleMajority" diff --git a/codegen/_output/kusama/pallet_election_provider_multi_phase/mod.ts b/codegen/_output/kusama/pallet_election_provider_multi_phase/mod.ts deleted file mode 100644 index ab4732a0f..000000000 --- a/codegen/_output/kusama/pallet_election_provider_multi_phase/mod.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as signed from "./signed.ts" - -export const $electionCompute: $.Codec = - _codec.$87 - -export const $phase: $.Codec = _codec.$600 - -export const $rawSolution: $.Codec = _codec.$311 - -export const $readySolution: $.Codec = - _codec.$602 - -export const $roundSnapshot: $.Codec = - _codec.$603 - -export const $solutionOrSnapshotSize: $.Codec< - t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize -> = _codec.$363 - -export type ElectionCompute = "OnChain" | "Signed" | "Unsigned" | "Fallback" | "Emergency" - -export type Phase = - | t.pallet_election_provider_multi_phase.Phase.Off - | t.pallet_election_provider_multi_phase.Phase.Signed - | t.pallet_election_provider_multi_phase.Phase.Unsigned - | t.pallet_election_provider_multi_phase.Phase.Emergency -export namespace Phase { - export interface Off { - type: "Off" - } - export interface Signed { - type: "Signed" - } - export interface Unsigned { - type: "Unsigned" - value: [boolean, t.u32] - } - export interface Emergency { - type: "Emergency" - } - export function Off(): t.pallet_election_provider_multi_phase.Phase.Off { - return { type: "Off" } - } - export function Signed(): t.pallet_election_provider_multi_phase.Phase.Signed { - return { type: "Signed" } - } - export function Unsigned( - value: t.pallet_election_provider_multi_phase.Phase.Unsigned["value"], - ): t.pallet_election_provider_multi_phase.Phase.Unsigned { - return { type: "Unsigned", value } - } - export function Emergency(): t.pallet_election_provider_multi_phase.Phase.Emergency { - return { type: "Emergency" } - } -} - -export interface RawSolution { - solution: t.polkadot_runtime.NposCompactSolution16 - score: t.sp_npos_elections.ElectionScore - round: t.u32 -} - -export function RawSolution(value: t.pallet_election_provider_multi_phase.RawSolution) { - return value -} - -export interface ReadySolution { - supports: Array<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> - score: t.sp_npos_elections.ElectionScore - compute: t.pallet_election_provider_multi_phase.ElectionCompute -} - -export function ReadySolution(value: t.pallet_election_provider_multi_phase.ReadySolution) { - return value -} - -export interface RoundSnapshot { - voters: Array<[t.sp_core.crypto.AccountId32, t.u64, Array]> - targets: Array -} - -export function RoundSnapshot(value: t.pallet_election_provider_multi_phase.RoundSnapshot) { - return value -} - -export interface SolutionOrSnapshotSize { - voters: t.Compact - targets: t.Compact -} - -export function SolutionOrSnapshotSize( - value: t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize, -) { - return value -} diff --git a/codegen/_output/kusama/pallet_election_provider_multi_phase/signed.ts b/codegen/_output/kusama/pallet_election_provider_multi_phase/signed.ts deleted file mode 100644 index f4a92ea3f..000000000 --- a/codegen/_output/kusama/pallet_election_provider_multi_phase/signed.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $signedSubmission: $.Codec< - t.pallet_election_provider_multi_phase.signed.SignedSubmission -> = _codec.$610 - -export interface SignedSubmission { - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 - raw_solution: t.pallet_election_provider_multi_phase.RawSolution - call_fee: t.u128 -} - -export function SignedSubmission( - value: t.pallet_election_provider_multi_phase.signed.SignedSubmission, -) { - return value -} diff --git a/codegen/_output/kusama/pallet_elections_phragmen/mod.ts b/codegen/_output/kusama/pallet_elections_phragmen/mod.ts deleted file mode 100644 index b45ea1046..000000000 --- a/codegen/_output/kusama/pallet_elections_phragmen/mod.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $renouncing: $.Codec = _codec.$242 - -export const $seatHolder: $.Codec = _codec.$551 - -export const $voter: $.Codec = _codec.$552 - -export type Renouncing = - | t.pallet_elections_phragmen.Renouncing.Member - | t.pallet_elections_phragmen.Renouncing.RunnerUp - | t.pallet_elections_phragmen.Renouncing.Candidate -export namespace Renouncing { - export interface Member { - type: "Member" - } - export interface RunnerUp { - type: "RunnerUp" - } - export interface Candidate { - type: "Candidate" - value: t.Compact - } - export function Member(): t.pallet_elections_phragmen.Renouncing.Member { - return { type: "Member" } - } - export function RunnerUp(): t.pallet_elections_phragmen.Renouncing.RunnerUp { - return { type: "RunnerUp" } - } - export function Candidate( - value: t.pallet_elections_phragmen.Renouncing.Candidate["value"], - ): t.pallet_elections_phragmen.Renouncing.Candidate { - return { type: "Candidate", value } - } -} - -export interface SeatHolder { - who: t.sp_core.crypto.AccountId32 - stake: t.u128 - deposit: t.u128 -} - -export function SeatHolder(value: t.pallet_elections_phragmen.SeatHolder) { - return value -} - -export interface Voter { - votes: Array - stake: t.u128 - deposit: t.u128 -} - -export function Voter(value: t.pallet_elections_phragmen.Voter) { - return value -} diff --git a/codegen/_output/kusama/pallet_fast_unstake/types.ts b/codegen/_output/kusama/pallet_fast_unstake/types.ts deleted file mode 100644 index 9714fd8b5..000000000 --- a/codegen/_output/kusama/pallet_fast_unstake/types.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $unstakeRequest: $.Codec = _codec.$634 - -export interface UnstakeRequest { - stash: t.sp_core.crypto.AccountId32 - checked: Array - deposit: t.u128 -} - -export function UnstakeRequest(value: t.pallet_fast_unstake.types.UnstakeRequest) { - return value -} diff --git a/codegen/_output/kusama/pallet_grandpa/mod.ts b/codegen/_output/kusama/pallet_grandpa/mod.ts deleted file mode 100644 index fc0234231..000000000 --- a/codegen/_output/kusama/pallet_grandpa/mod.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $storedPendingChange: $.Codec = _codec.$517 - -export const $storedState: $.Codec = _codec.$516 - -export interface StoredPendingChange { - scheduled_at: t.u32 - delay: t.u32 - next_authorities: Array<[t.sp_finality_grandpa.app.Public, t.u64]> - forced: t.u32 | undefined -} - -export function StoredPendingChange(value: t.pallet_grandpa.StoredPendingChange) { - return value -} - -export type StoredState = - | t.pallet_grandpa.StoredState.Live - | t.pallet_grandpa.StoredState.PendingPause - | t.pallet_grandpa.StoredState.Paused - | t.pallet_grandpa.StoredState.PendingResume -export namespace StoredState { - export interface Live { - type: "Live" - } - export interface PendingPause { - type: "PendingPause" - scheduled_at: t.u32 - delay: t.u32 - } - export interface Paused { - type: "Paused" - } - export interface PendingResume { - type: "PendingResume" - scheduled_at: t.u32 - delay: t.u32 - } - export function Live(): t.pallet_grandpa.StoredState.Live { - return { type: "Live" } - } - export function PendingPause( - value: Omit, - ): t.pallet_grandpa.StoredState.PendingPause { - return { type: "PendingPause", ...value } - } - export function Paused(): t.pallet_grandpa.StoredState.Paused { - return { type: "Paused" } - } - export function PendingResume( - value: Omit, - ): t.pallet_grandpa.StoredState.PendingResume { - return { type: "PendingResume", ...value } - } -} diff --git a/codegen/_output/kusama/pallet_identity/types.ts b/codegen/_output/kusama/pallet_identity/types.ts deleted file mode 100644 index 61a8e7b01..000000000 --- a/codegen/_output/kusama/pallet_identity/types.ts +++ /dev/null @@ -1,498 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $data: $.Codec = _codec.$267 - -export const $identityField: $.Codec = _codec.$301 - -export const $identityInfo: $.Codec = _codec.$264 - -export const $judgement: $.Codec = _codec.$302 - -export const $registrarInfo: $.Codec = _codec.$576 - -export const $registration: $.Codec = _codec.$568 - -export type Data = - | t.pallet_identity.types.Data.None - | t.pallet_identity.types.Data.Raw0 - | t.pallet_identity.types.Data.Raw1 - | t.pallet_identity.types.Data.Raw2 - | t.pallet_identity.types.Data.Raw3 - | t.pallet_identity.types.Data.Raw4 - | t.pallet_identity.types.Data.Raw5 - | t.pallet_identity.types.Data.Raw6 - | t.pallet_identity.types.Data.Raw7 - | t.pallet_identity.types.Data.Raw8 - | t.pallet_identity.types.Data.Raw9 - | t.pallet_identity.types.Data.Raw10 - | t.pallet_identity.types.Data.Raw11 - | t.pallet_identity.types.Data.Raw12 - | t.pallet_identity.types.Data.Raw13 - | t.pallet_identity.types.Data.Raw14 - | t.pallet_identity.types.Data.Raw15 - | t.pallet_identity.types.Data.Raw16 - | t.pallet_identity.types.Data.Raw17 - | t.pallet_identity.types.Data.Raw18 - | t.pallet_identity.types.Data.Raw19 - | t.pallet_identity.types.Data.Raw20 - | t.pallet_identity.types.Data.Raw21 - | t.pallet_identity.types.Data.Raw22 - | t.pallet_identity.types.Data.Raw23 - | t.pallet_identity.types.Data.Raw24 - | t.pallet_identity.types.Data.Raw25 - | t.pallet_identity.types.Data.Raw26 - | t.pallet_identity.types.Data.Raw27 - | t.pallet_identity.types.Data.Raw28 - | t.pallet_identity.types.Data.Raw29 - | t.pallet_identity.types.Data.Raw30 - | t.pallet_identity.types.Data.Raw31 - | t.pallet_identity.types.Data.Raw32 - | t.pallet_identity.types.Data.BlakeTwo256 - | t.pallet_identity.types.Data.Sha256 - | t.pallet_identity.types.Data.Keccak256 - | t.pallet_identity.types.Data.ShaThree256 -export namespace Data { - export interface None { - type: "None" - } - export interface Raw0 { - type: "Raw0" - value: Uint8Array - } - export interface Raw1 { - type: "Raw1" - value: Uint8Array - } - export interface Raw2 { - type: "Raw2" - value: Uint8Array - } - export interface Raw3 { - type: "Raw3" - value: Uint8Array - } - export interface Raw4 { - type: "Raw4" - value: Uint8Array - } - export interface Raw5 { - type: "Raw5" - value: Uint8Array - } - export interface Raw6 { - type: "Raw6" - value: Uint8Array - } - export interface Raw7 { - type: "Raw7" - value: Uint8Array - } - export interface Raw8 { - type: "Raw8" - value: Uint8Array - } - export interface Raw9 { - type: "Raw9" - value: Uint8Array - } - export interface Raw10 { - type: "Raw10" - value: Uint8Array - } - export interface Raw11 { - type: "Raw11" - value: Uint8Array - } - export interface Raw12 { - type: "Raw12" - value: Uint8Array - } - export interface Raw13 { - type: "Raw13" - value: Uint8Array - } - export interface Raw14 { - type: "Raw14" - value: Uint8Array - } - export interface Raw15 { - type: "Raw15" - value: Uint8Array - } - export interface Raw16 { - type: "Raw16" - value: Uint8Array - } - export interface Raw17 { - type: "Raw17" - value: Uint8Array - } - export interface Raw18 { - type: "Raw18" - value: Uint8Array - } - export interface Raw19 { - type: "Raw19" - value: Uint8Array - } - export interface Raw20 { - type: "Raw20" - value: Uint8Array - } - export interface Raw21 { - type: "Raw21" - value: Uint8Array - } - export interface Raw22 { - type: "Raw22" - value: Uint8Array - } - export interface Raw23 { - type: "Raw23" - value: Uint8Array - } - export interface Raw24 { - type: "Raw24" - value: Uint8Array - } - export interface Raw25 { - type: "Raw25" - value: Uint8Array - } - export interface Raw26 { - type: "Raw26" - value: Uint8Array - } - export interface Raw27 { - type: "Raw27" - value: Uint8Array - } - export interface Raw28 { - type: "Raw28" - value: Uint8Array - } - export interface Raw29 { - type: "Raw29" - value: Uint8Array - } - export interface Raw30 { - type: "Raw30" - value: Uint8Array - } - export interface Raw31 { - type: "Raw31" - value: Uint8Array - } - export interface Raw32 { - type: "Raw32" - value: Uint8Array - } - export interface BlakeTwo256 { - type: "BlakeTwo256" - value: Uint8Array - } - export interface Sha256 { - type: "Sha256" - value: Uint8Array - } - export interface Keccak256 { - type: "Keccak256" - value: Uint8Array - } - export interface ShaThree256 { - type: "ShaThree256" - value: Uint8Array - } - export function None(): t.pallet_identity.types.Data.None { - return { type: "None" } - } - export function Raw0( - value: t.pallet_identity.types.Data.Raw0["value"], - ): t.pallet_identity.types.Data.Raw0 { - return { type: "Raw0", value } - } - export function Raw1( - value: t.pallet_identity.types.Data.Raw1["value"], - ): t.pallet_identity.types.Data.Raw1 { - return { type: "Raw1", value } - } - export function Raw2( - value: t.pallet_identity.types.Data.Raw2["value"], - ): t.pallet_identity.types.Data.Raw2 { - return { type: "Raw2", value } - } - export function Raw3( - value: t.pallet_identity.types.Data.Raw3["value"], - ): t.pallet_identity.types.Data.Raw3 { - return { type: "Raw3", value } - } - export function Raw4( - value: t.pallet_identity.types.Data.Raw4["value"], - ): t.pallet_identity.types.Data.Raw4 { - return { type: "Raw4", value } - } - export function Raw5( - value: t.pallet_identity.types.Data.Raw5["value"], - ): t.pallet_identity.types.Data.Raw5 { - return { type: "Raw5", value } - } - export function Raw6( - value: t.pallet_identity.types.Data.Raw6["value"], - ): t.pallet_identity.types.Data.Raw6 { - return { type: "Raw6", value } - } - export function Raw7( - value: t.pallet_identity.types.Data.Raw7["value"], - ): t.pallet_identity.types.Data.Raw7 { - return { type: "Raw7", value } - } - export function Raw8( - value: t.pallet_identity.types.Data.Raw8["value"], - ): t.pallet_identity.types.Data.Raw8 { - return { type: "Raw8", value } - } - export function Raw9( - value: t.pallet_identity.types.Data.Raw9["value"], - ): t.pallet_identity.types.Data.Raw9 { - return { type: "Raw9", value } - } - export function Raw10( - value: t.pallet_identity.types.Data.Raw10["value"], - ): t.pallet_identity.types.Data.Raw10 { - return { type: "Raw10", value } - } - export function Raw11( - value: t.pallet_identity.types.Data.Raw11["value"], - ): t.pallet_identity.types.Data.Raw11 { - return { type: "Raw11", value } - } - export function Raw12( - value: t.pallet_identity.types.Data.Raw12["value"], - ): t.pallet_identity.types.Data.Raw12 { - return { type: "Raw12", value } - } - export function Raw13( - value: t.pallet_identity.types.Data.Raw13["value"], - ): t.pallet_identity.types.Data.Raw13 { - return { type: "Raw13", value } - } - export function Raw14( - value: t.pallet_identity.types.Data.Raw14["value"], - ): t.pallet_identity.types.Data.Raw14 { - return { type: "Raw14", value } - } - export function Raw15( - value: t.pallet_identity.types.Data.Raw15["value"], - ): t.pallet_identity.types.Data.Raw15 { - return { type: "Raw15", value } - } - export function Raw16( - value: t.pallet_identity.types.Data.Raw16["value"], - ): t.pallet_identity.types.Data.Raw16 { - return { type: "Raw16", value } - } - export function Raw17( - value: t.pallet_identity.types.Data.Raw17["value"], - ): t.pallet_identity.types.Data.Raw17 { - return { type: "Raw17", value } - } - export function Raw18( - value: t.pallet_identity.types.Data.Raw18["value"], - ): t.pallet_identity.types.Data.Raw18 { - return { type: "Raw18", value } - } - export function Raw19( - value: t.pallet_identity.types.Data.Raw19["value"], - ): t.pallet_identity.types.Data.Raw19 { - return { type: "Raw19", value } - } - export function Raw20( - value: t.pallet_identity.types.Data.Raw20["value"], - ): t.pallet_identity.types.Data.Raw20 { - return { type: "Raw20", value } - } - export function Raw21( - value: t.pallet_identity.types.Data.Raw21["value"], - ): t.pallet_identity.types.Data.Raw21 { - return { type: "Raw21", value } - } - export function Raw22( - value: t.pallet_identity.types.Data.Raw22["value"], - ): t.pallet_identity.types.Data.Raw22 { - return { type: "Raw22", value } - } - export function Raw23( - value: t.pallet_identity.types.Data.Raw23["value"], - ): t.pallet_identity.types.Data.Raw23 { - return { type: "Raw23", value } - } - export function Raw24( - value: t.pallet_identity.types.Data.Raw24["value"], - ): t.pallet_identity.types.Data.Raw24 { - return { type: "Raw24", value } - } - export function Raw25( - value: t.pallet_identity.types.Data.Raw25["value"], - ): t.pallet_identity.types.Data.Raw25 { - return { type: "Raw25", value } - } - export function Raw26( - value: t.pallet_identity.types.Data.Raw26["value"], - ): t.pallet_identity.types.Data.Raw26 { - return { type: "Raw26", value } - } - export function Raw27( - value: t.pallet_identity.types.Data.Raw27["value"], - ): t.pallet_identity.types.Data.Raw27 { - return { type: "Raw27", value } - } - export function Raw28( - value: t.pallet_identity.types.Data.Raw28["value"], - ): t.pallet_identity.types.Data.Raw28 { - return { type: "Raw28", value } - } - export function Raw29( - value: t.pallet_identity.types.Data.Raw29["value"], - ): t.pallet_identity.types.Data.Raw29 { - return { type: "Raw29", value } - } - export function Raw30( - value: t.pallet_identity.types.Data.Raw30["value"], - ): t.pallet_identity.types.Data.Raw30 { - return { type: "Raw30", value } - } - export function Raw31( - value: t.pallet_identity.types.Data.Raw31["value"], - ): t.pallet_identity.types.Data.Raw31 { - return { type: "Raw31", value } - } - export function Raw32( - value: t.pallet_identity.types.Data.Raw32["value"], - ): t.pallet_identity.types.Data.Raw32 { - return { type: "Raw32", value } - } - export function BlakeTwo256( - value: t.pallet_identity.types.Data.BlakeTwo256["value"], - ): t.pallet_identity.types.Data.BlakeTwo256 { - return { type: "BlakeTwo256", value } - } - export function Sha256( - value: t.pallet_identity.types.Data.Sha256["value"], - ): t.pallet_identity.types.Data.Sha256 { - return { type: "Sha256", value } - } - export function Keccak256( - value: t.pallet_identity.types.Data.Keccak256["value"], - ): t.pallet_identity.types.Data.Keccak256 { - return { type: "Keccak256", value } - } - export function ShaThree256( - value: t.pallet_identity.types.Data.ShaThree256["value"], - ): t.pallet_identity.types.Data.ShaThree256 { - return { type: "ShaThree256", value } - } -} - -export type IdentityField = - | "Display" - | "Legal" - | "Web" - | "Riot" - | "Email" - | "PgpFingerprint" - | "Image" - | "Twitter" - -export interface IdentityInfo { - additional: Array<[t.pallet_identity.types.Data, t.pallet_identity.types.Data]> - display: t.pallet_identity.types.Data - legal: t.pallet_identity.types.Data - web: t.pallet_identity.types.Data - riot: t.pallet_identity.types.Data - email: t.pallet_identity.types.Data - pgp_fingerprint: Uint8Array | undefined - image: t.pallet_identity.types.Data - twitter: t.pallet_identity.types.Data -} - -export function IdentityInfo(value: t.pallet_identity.types.IdentityInfo) { - return value -} - -export type Judgement = - | t.pallet_identity.types.Judgement.Unknown - | t.pallet_identity.types.Judgement.FeePaid - | t.pallet_identity.types.Judgement.Reasonable - | t.pallet_identity.types.Judgement.KnownGood - | t.pallet_identity.types.Judgement.OutOfDate - | t.pallet_identity.types.Judgement.LowQuality - | t.pallet_identity.types.Judgement.Erroneous -export namespace Judgement { - export interface Unknown { - type: "Unknown" - } - export interface FeePaid { - type: "FeePaid" - value: t.u128 - } - export interface Reasonable { - type: "Reasonable" - } - export interface KnownGood { - type: "KnownGood" - } - export interface OutOfDate { - type: "OutOfDate" - } - export interface LowQuality { - type: "LowQuality" - } - export interface Erroneous { - type: "Erroneous" - } - export function Unknown(): t.pallet_identity.types.Judgement.Unknown { - return { type: "Unknown" } - } - export function FeePaid( - value: t.pallet_identity.types.Judgement.FeePaid["value"], - ): t.pallet_identity.types.Judgement.FeePaid { - return { type: "FeePaid", value } - } - export function Reasonable(): t.pallet_identity.types.Judgement.Reasonable { - return { type: "Reasonable" } - } - export function KnownGood(): t.pallet_identity.types.Judgement.KnownGood { - return { type: "KnownGood" } - } - export function OutOfDate(): t.pallet_identity.types.Judgement.OutOfDate { - return { type: "OutOfDate" } - } - export function LowQuality(): t.pallet_identity.types.Judgement.LowQuality { - return { type: "LowQuality" } - } - export function Erroneous(): t.pallet_identity.types.Judgement.Erroneous { - return { type: "Erroneous" } - } -} - -export interface RegistrarInfo { - account: t.sp_core.crypto.AccountId32 - fee: t.u128 - fields: t.u64 -} - -export function RegistrarInfo(value: t.pallet_identity.types.RegistrarInfo) { - return value -} - -export interface Registration { - judgements: Array<[t.u32, t.pallet_identity.types.Judgement]> - deposit: t.u128 - info: t.pallet_identity.types.IdentityInfo -} - -export function Registration(value: t.pallet_identity.types.Registration) { - return value -} diff --git a/codegen/_output/kusama/pallet_im_online/mod.ts b/codegen/_output/kusama/pallet_im_online/mod.ts deleted file mode 100644 index ff5fa7fb4..000000000 --- a/codegen/_output/kusama/pallet_im_online/mod.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as sr25519 from "./sr25519/mod.ts" - -export const $boundedOpaqueNetworkState: $.Codec = - _codec.$523 - -export const $heartbeat: $.Codec = _codec.$228 - -export interface BoundedOpaqueNetworkState { - peer_id: Uint8Array - external_addresses: Array -} - -export function BoundedOpaqueNetworkState(value: t.pallet_im_online.BoundedOpaqueNetworkState) { - return value -} - -export interface Heartbeat { - block_number: t.u32 - network_state: t.sp_core.offchain.OpaqueNetworkState - session_index: t.u32 - authority_index: t.u32 - validators_len: t.u32 -} - -export function Heartbeat(value: t.pallet_im_online.Heartbeat) { - return value -} diff --git a/codegen/_output/kusama/pallet_im_online/sr25519/app_sr25519.ts b/codegen/_output/kusama/pallet_im_online/sr25519/app_sr25519.ts deleted file mode 100644 index 61759e84e..000000000 --- a/codegen/_output/kusama/pallet_im_online/sr25519/app_sr25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$53 - -export const $signature: $.Codec = _codec.$233 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.pallet_im_online.sr25519.app_sr25519.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.pallet_im_online.sr25519.app_sr25519.Signature) { - return value -} diff --git a/codegen/_output/kusama/pallet_multisig/mod.ts b/codegen/_output/kusama/pallet_multisig/mod.ts deleted file mode 100644 index 3e930b936..000000000 --- a/codegen/_output/kusama/pallet_multisig/mod.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $multisig: $.Codec = _codec.$589 - -export const $timepoint: $.Codec = _codec.$82 - -export interface Multisig { - when: t.pallet_multisig.Timepoint - deposit: t.u128 - depositor: t.sp_core.crypto.AccountId32 - approvals: Array -} - -export function Multisig(value: t.pallet_multisig.Multisig) { - return value -} - -export interface Timepoint { - height: t.u32 - index: t.u32 -} - -export function Timepoint(value: t.pallet_multisig.Timepoint) { - return value -} diff --git a/codegen/_output/kusama/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts b/codegen/_output/kusama/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts deleted file mode 100644 index fb559f463..000000000 --- a/codegen/_output/kusama/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export const $accountId32: $.Codec< - t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 -> = _codec.$373 - -export type AccountId32 = - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove -export namespace AccountId32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_core.crypto.AccountId32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/kusama/pallet_nomination_pools/ConfigOp/mod.ts b/codegen/_output/kusama/pallet_nomination_pools/ConfigOp/mod.ts deleted file mode 100644 index d2e7ee56d..000000000 --- a/codegen/_output/kusama/pallet_nomination_pools/ConfigOp/mod.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as $$sp_core from "./$$sp_core/mod.ts" - -export const $$$u128: $.Codec = _codec.$371 - -export const $$$u32: $.Codec = _codec.$372 - -export type $$u128 = - | t.pallet_nomination_pools.ConfigOp.$$u128.Noop - | t.pallet_nomination_pools.ConfigOp.$$u128.Set - | t.pallet_nomination_pools.ConfigOp.$$u128.Remove -export namespace $$u128 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u128 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$u128.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$u128.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$u128.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$u128.Remove { - return { type: "Remove" } - } -} - -export type $$u32 = - | t.pallet_nomination_pools.ConfigOp.$$u32.Noop - | t.pallet_nomination_pools.ConfigOp.$$u32.Set - | t.pallet_nomination_pools.ConfigOp.$$u32.Remove -export namespace $$u32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$u32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$u32.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$u32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$u32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/kusama/pallet_nomination_pools/mod.ts b/codegen/_output/kusama/pallet_nomination_pools/mod.ts deleted file mode 100644 index e7343ef6b..000000000 --- a/codegen/_output/kusama/pallet_nomination_pools/mod.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as ConfigOp from "./ConfigOp/mod.ts" -export * as pallet from "./pallet.ts" - -export const $bondExtra: $.Codec = _codec.$370 - -export const $bondedPoolInner: $.Codec = _codec.$622 - -export const $poolMember: $.Codec = _codec.$617 - -export const $poolRoles: $.Codec = _codec.$623 - -export const $poolState: $.Codec = _codec.$91 - -export const $rewardPool: $.Codec = _codec.$624 - -export const $subPools: $.Codec = _codec.$625 - -export const $unbondPool: $.Codec = _codec.$626 - -export type BondExtra = - | t.pallet_nomination_pools.BondExtra.FreeBalance - | t.pallet_nomination_pools.BondExtra.Rewards -export namespace BondExtra { - export interface FreeBalance { - type: "FreeBalance" - value: t.u128 - } - export interface Rewards { - type: "Rewards" - } - export function FreeBalance( - value: t.pallet_nomination_pools.BondExtra.FreeBalance["value"], - ): t.pallet_nomination_pools.BondExtra.FreeBalance { - return { type: "FreeBalance", value } - } - export function Rewards(): t.pallet_nomination_pools.BondExtra.Rewards { - return { type: "Rewards" } - } -} - -export interface BondedPoolInner { - points: t.u128 - state: t.pallet_nomination_pools.PoolState - member_counter: t.u32 - roles: t.pallet_nomination_pools.PoolRoles -} - -export function BondedPoolInner(value: t.pallet_nomination_pools.BondedPoolInner) { - return value -} - -export interface PoolMember { - pool_id: t.u32 - points: t.u128 - last_recorded_reward_counter: t.sp_arithmetic.fixed_point.FixedU128 - unbonding_eras: Map -} - -export function PoolMember(value: t.pallet_nomination_pools.PoolMember) { - return value -} - -export interface PoolRoles { - depositor: t.sp_core.crypto.AccountId32 - root: t.sp_core.crypto.AccountId32 | undefined - nominator: t.sp_core.crypto.AccountId32 | undefined - state_toggler: t.sp_core.crypto.AccountId32 | undefined -} - -export function PoolRoles(value: t.pallet_nomination_pools.PoolRoles) { - return value -} - -export type PoolState = "Open" | "Blocked" | "Destroying" - -export interface RewardPool { - last_recorded_reward_counter: t.sp_arithmetic.fixed_point.FixedU128 - last_recorded_total_payouts: t.u128 - total_rewards_claimed: t.u128 -} - -export function RewardPool(value: t.pallet_nomination_pools.RewardPool) { - return value -} - -export interface SubPools { - no_era: t.pallet_nomination_pools.UnbondPool - with_era: Map -} - -export function SubPools(value: t.pallet_nomination_pools.SubPools) { - return value -} - -export interface UnbondPool { - points: t.u128 - balance: t.u128 -} - -export function UnbondPool(value: t.pallet_nomination_pools.UnbondPool) { - return value -} diff --git a/codegen/_output/kusama/pallet_preimage/mod.ts b/codegen/_output/kusama/pallet_preimage/mod.ts deleted file mode 100644 index 23fdfaa18..000000000 --- a/codegen/_output/kusama/pallet_preimage/mod.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $requestStatus: $.Codec = _codec.$451 - -export type RequestStatus = - | t.pallet_preimage.RequestStatus.Unrequested - | t.pallet_preimage.RequestStatus.Requested -export namespace RequestStatus { - export interface Unrequested { - type: "Unrequested" - deposit: [t.sp_core.crypto.AccountId32, t.u128] - len: t.u32 - } - export interface Requested { - type: "Requested" - deposit: [t.sp_core.crypto.AccountId32, t.u128] | undefined - count: t.u32 - len: t.u32 | undefined - } - export function Unrequested( - value: Omit, - ): t.pallet_preimage.RequestStatus.Unrequested { - return { type: "Unrequested", ...value } - } - export function Requested( - value: Omit, - ): t.pallet_preimage.RequestStatus.Requested { - return { type: "Requested", ...value } - } -} diff --git a/codegen/_output/kusama/pallet_proxy/mod.ts b/codegen/_output/kusama/pallet_proxy/mod.ts deleted file mode 100644 index 77dc9f480..000000000 --- a/codegen/_output/kusama/pallet_proxy/mod.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $announcement: $.Codec = _codec.$585 - -export const $proxyDefinition: $.Codec = _codec.$581 - -export interface Announcement { - real: t.sp_core.crypto.AccountId32 - call_hash: t.primitive_types.H256 - height: t.u32 -} - -export function Announcement(value: t.pallet_proxy.Announcement) { - return value -} - -export interface ProxyDefinition { - delegate: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 -} - -export function ProxyDefinition(value: t.pallet_proxy.ProxyDefinition) { - return value -} diff --git a/codegen/_output/kusama/pallet_scheduler/mod.ts b/codegen/_output/kusama/pallet_scheduler/mod.ts deleted file mode 100644 index 797decaad..000000000 --- a/codegen/_output/kusama/pallet_scheduler/mod.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $scheduled: $.Codec = _codec.$179 - -export interface Scheduled { - maybe_id: Uint8Array | undefined - priority: t.u8 - call: t.frame_support.traits.preimages.Bounded - maybe_periodic: [t.u32, t.u32] | undefined - origin: t.polkadot_runtime.OriginCaller -} - -export function Scheduled(value: t.pallet_scheduler.Scheduled) { - return value -} diff --git a/codegen/_output/kusama/pallet_staking/mod.ts b/codegen/_output/kusama/pallet_staking/mod.ts deleted file mode 100644 index 5843c06ba..000000000 --- a/codegen/_output/kusama/pallet_staking/mod.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet/mod.ts" -export * as slashing from "./slashing.ts" - -export const $activeEraInfo: $.Codec = _codec.$492 - -export const $eraRewardPoints: $.Codec = _codec.$495 - -export const $exposure: $.Codec = _codec.$57 - -export const $forcing: $.Codec = _codec.$499 - -export const $individualExposure: $.Codec = _codec.$60 - -export const $nominations: $.Codec = _codec.$490 - -export const $releases: $.Codec = _codec.$507 - -export const $rewardDestination: $.Codec = _codec.$203 - -export const $stakingLedger: $.Codec = _codec.$485 - -export const $unappliedSlash: $.Codec = _codec.$501 - -export const $unlockChunk: $.Codec = _codec.$487 - -export const $validatorPrefs: $.Codec = _codec.$40 - -export interface ActiveEraInfo { - index: t.u32 - start: t.u64 | undefined -} - -export function ActiveEraInfo(value: t.pallet_staking.ActiveEraInfo) { - return value -} - -export interface EraRewardPoints { - total: t.u32 - individual: Map -} - -export function EraRewardPoints(value: t.pallet_staking.EraRewardPoints) { - return value -} - -export interface Exposure { - total: t.Compact - own: t.Compact - others: Array -} - -export function Exposure(value: t.pallet_staking.Exposure) { - return value -} - -export type Forcing = "NotForcing" | "ForceNew" | "ForceNone" | "ForceAlways" - -export interface IndividualExposure { - who: t.sp_core.crypto.AccountId32 - value: t.Compact -} - -export function IndividualExposure(value: t.pallet_staking.IndividualExposure) { - return value -} - -export interface Nominations { - targets: Array - submitted_in: t.u32 - suppressed: boolean -} - -export function Nominations(value: t.pallet_staking.Nominations) { - return value -} - -export type Releases = - | "V1_0_0Ancient" - | "V2_0_0" - | "V3_0_0" - | "V4_0_0" - | "V5_0_0" - | "V6_0_0" - | "V7_0_0" - | "V8_0_0" - | "V9_0_0" - | "V10_0_0" - | "V11_0_0" - | "V12_0_0" - -export type RewardDestination = - | t.pallet_staking.RewardDestination.Staked - | t.pallet_staking.RewardDestination.Stash - | t.pallet_staking.RewardDestination.Controller - | t.pallet_staking.RewardDestination.Account - | t.pallet_staking.RewardDestination.None -export namespace RewardDestination { - export interface Staked { - type: "Staked" - } - export interface Stash { - type: "Stash" - } - export interface Controller { - type: "Controller" - } - export interface Account { - type: "Account" - value: t.sp_core.crypto.AccountId32 - } - export interface None { - type: "None" - } - export function Staked(): t.pallet_staking.RewardDestination.Staked { - return { type: "Staked" } - } - export function Stash(): t.pallet_staking.RewardDestination.Stash { - return { type: "Stash" } - } - export function Controller(): t.pallet_staking.RewardDestination.Controller { - return { type: "Controller" } - } - export function Account( - value: t.pallet_staking.RewardDestination.Account["value"], - ): t.pallet_staking.RewardDestination.Account { - return { type: "Account", value } - } - export function None(): t.pallet_staking.RewardDestination.None { - return { type: "None" } - } -} - -export interface StakingLedger { - stash: t.sp_core.crypto.AccountId32 - total: t.Compact - active: t.Compact - unlocking: Array - claimed_rewards: Array -} - -export function StakingLedger(value: t.pallet_staking.StakingLedger) { - return value -} - -export interface UnappliedSlash { - validator: t.sp_core.crypto.AccountId32 - own: t.u128 - others: Array<[t.sp_core.crypto.AccountId32, t.u128]> - reporters: Array - payout: t.u128 -} - -export function UnappliedSlash(value: t.pallet_staking.UnappliedSlash) { - return value -} - -export interface UnlockChunk { - value: t.Compact - era: t.Compact -} - -export function UnlockChunk(value: t.pallet_staking.UnlockChunk) { - return value -} - -export interface ValidatorPrefs { - commission: t.Compact - blocked: boolean -} - -export function ValidatorPrefs(value: t.pallet_staking.ValidatorPrefs) { - return value -} diff --git a/codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts b/codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts deleted file mode 100644 index 34e3f793e..000000000 --- a/codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { $ } from "../../../../../capi.ts" -import * as _codec from "../../../../../codecs.ts" -import type * as t from "../../../../../mod.ts" - -export const $perbill: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill -> = _codec.$210 - -export const $percent: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent -> = _codec.$209 - -export type Perbill = - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove -export namespace Perbill { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_arithmetic.per_things.Perbill - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove { - return { type: "Remove" } - } -} - -export type Percent = - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove -export namespace Percent { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_arithmetic.per_things.Percent - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/mod.ts b/codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/mod.ts deleted file mode 100644 index c64836e7a..000000000 --- a/codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/mod.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export * as $$sp_arithmetic from "./$$sp_arithmetic/mod.ts" - -export const $$$u128: $.Codec = _codec.$207 - -export const $$$u32: $.Codec = _codec.$208 - -export type $$u128 = - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove -export namespace $$u128 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u128 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove { - return { type: "Remove" } - } -} - -export type $$u32 = - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove -export namespace $$u32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/kusama/pallet_staking/slashing.ts b/codegen/_output/kusama/pallet_staking/slashing.ts deleted file mode 100644 index cc2a18d2a..000000000 --- a/codegen/_output/kusama/pallet_staking/slashing.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $slashingSpans: $.Codec = _codec.$503 - -export const $spanRecord: $.Codec = _codec.$504 - -export interface SlashingSpans { - span_index: t.u32 - last_start: t.u32 - last_nonzero_slash: t.u32 - prior: Array -} - -export function SlashingSpans(value: t.pallet_staking.slashing.SlashingSpans) { - return value -} - -export interface SpanRecord { - slashed: t.u128 - paid_out: t.u128 -} - -export function SpanRecord(value: t.pallet_staking.slashing.SpanRecord) { - return value -} diff --git a/codegen/_output/kusama/pallet_tips/mod.ts b/codegen/_output/kusama/pallet_tips/mod.ts deleted file mode 100644 index 522e3fef6..000000000 --- a/codegen/_output/kusama/pallet_tips/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $openTip: $.Codec = _codec.$598 - -export interface OpenTip { - reason: t.primitive_types.H256 - who: t.sp_core.crypto.AccountId32 - finder: t.sp_core.crypto.AccountId32 - deposit: t.u128 - closes: t.u32 | undefined - tips: Array<[t.sp_core.crypto.AccountId32, t.u128]> - finders_fee: boolean -} - -export function OpenTip(value: t.pallet_tips.OpenTip) { - return value -} diff --git a/codegen/_output/kusama/pallet_transaction_payment/mod.ts b/codegen/_output/kusama/pallet_transaction_payment/mod.ts deleted file mode 100644 index 9d33267c4..000000000 --- a/codegen/_output/kusama/pallet_transaction_payment/mod.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $releases: $.Codec = _codec.$480 - -export type Releases = "V1Ancient" | "V2" diff --git a/codegen/_output/kusama/pallet_treasury/mod.ts b/codegen/_output/kusama/pallet_treasury/mod.ts deleted file mode 100644 index 372f4c69e..000000000 --- a/codegen/_output/kusama/pallet_treasury/mod.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $proposal: $.Codec = _codec.$556 - -export interface Proposal { - proposer: t.sp_core.crypto.AccountId32 - value: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 - bond: t.u128 -} - -export function Proposal(value: t.pallet_treasury.Proposal) { - return value -} diff --git a/codegen/_output/kusama/pallet_vesting/mod.ts b/codegen/_output/kusama/pallet_vesting/mod.ts deleted file mode 100644 index e4f930af2..000000000 --- a/codegen/_output/kusama/pallet_vesting/mod.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as vesting_info from "./vesting_info.ts" - -export const $releases: $.Codec = _codec.$565 - -export type Releases = "V0" | "V1" diff --git a/codegen/_output/kusama/pallet_vesting/vesting_info.ts b/codegen/_output/kusama/pallet_vesting/vesting_info.ts deleted file mode 100644 index 493a479c6..000000000 --- a/codegen/_output/kusama/pallet_vesting/vesting_info.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $vestingInfo: $.Codec = _codec.$253 - -export interface VestingInfo { - locked: t.u128 - per_block: t.u128 - starting_block: t.u32 -} - -export function VestingInfo(value: t.pallet_vesting.vesting_info.VestingInfo) { - return value -} diff --git a/codegen/_output/kusama/pallets/Auctions.ts b/codegen/_output/kusama/pallets/Auctions.ts index 2a684058d..11ac25fc7 100644 --- a/codegen/_output/kusama/pallets/Auctions.ts +++ b/codegen/_output/kusama/pallets/Auctions.ts @@ -70,8 +70,8 @@ export const Winning = { * bid win. This amount is held throughout the range. */ export function bid( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { ...value, type: "bid" } } } @@ -80,7 +80,7 @@ export function bid( * * Can only be called by Root origin. */ -export function cancel_auction(): t.polkadot_runtime.RuntimeCall { +export function cancel_auction(): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { type: "cancel_auction" } } } @@ -92,7 +92,7 @@ export function cancel_auction(): t.polkadot_runtime.RuntimeCall { * `lease_period_index` of the initial lease period of the four that are to be auctioned. */ export function new_auction( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { ...value, type: "new_auction" } } } diff --git a/codegen/_output/kusama/pallets/Authorship.ts b/codegen/_output/kusama/pallets/Authorship.ts index 83838aae1..a8a3ed241 100644 --- a/codegen/_output/kusama/pallets/Authorship.ts +++ b/codegen/_output/kusama/pallets/Authorship.ts @@ -30,7 +30,7 @@ export const Uncles = { /** Provide a set of uncles. */ export function set_uncles( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Authorship", value: { ...value, type: "set_uncles" } } } diff --git a/codegen/_output/kusama/pallets/Babe.ts b/codegen/_output/kusama/pallets/Babe.ts index 622165525..60c8ec3e0 100644 --- a/codegen/_output/kusama/pallets/Babe.ts +++ b/codegen/_output/kusama/pallets/Babe.ts @@ -203,8 +203,8 @@ export const UnderConstruction = { * not been enacted yet. */ export function plan_config_change( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "plan_config_change" } } } @@ -215,8 +215,8 @@ export function plan_config_change( * be reported. */ export function report_equivocation( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "report_equivocation" } } } @@ -231,7 +231,7 @@ export function report_equivocation( * reporter. */ export function report_equivocation_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "report_equivocation_unsigned" } } } diff --git a/codegen/_output/kusama/pallets/Balances.ts b/codegen/_output/kusama/pallets/Balances.ts index e0a24d0af..94013e84d 100644 --- a/codegen/_output/kusama/pallets/Balances.ts +++ b/codegen/_output/kusama/pallets/Balances.ts @@ -88,8 +88,8 @@ export const TotalIssuance = { * # */ export function force_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "force_transfer" } } } @@ -99,8 +99,8 @@ export function force_transfer( * Can only be called by ROOT. */ export function force_unreserve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "force_unreserve" } } } @@ -115,8 +115,8 @@ export function force_unreserve( * The dispatch origin for this call is `root`. */ export function set_balance( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "set_balance" } } } @@ -148,8 +148,8 @@ export function set_balance( * # */ export function transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer" } } } @@ -173,8 +173,8 @@ export function transfer( * # */ export function transfer_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer_all" } } } @@ -187,7 +187,7 @@ export function transfer_all( * [`transfer`]: struct.Pallet.html#method.transfer */ export function transfer_keep_alive( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer_keep_alive" } } } diff --git a/codegen/_output/kusama/pallets/Bounties.ts b/codegen/_output/kusama/pallets/Bounties.ts index e28487021..38eb59c51 100644 --- a/codegen/_output/kusama/pallets/Bounties.ts +++ b/codegen/_output/kusama/pallets/Bounties.ts @@ -49,8 +49,8 @@ export const BountyDescriptions = { * # */ export function accept_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "accept_curator" } } } @@ -65,8 +65,8 @@ export function accept_curator( * # */ export function approve_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "approve_bounty" } } } @@ -84,8 +84,8 @@ export function approve_bounty( * # */ export function award_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "award_bounty" } } } @@ -101,8 +101,8 @@ export function award_bounty( * # */ export function claim_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "claim_bounty" } } } @@ -119,8 +119,8 @@ export function claim_bounty( * # */ export function close_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "close_bounty" } } } @@ -137,8 +137,8 @@ export function close_bounty( * # */ export function extend_bounty_expiry( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "extend_bounty_expiry" } } } @@ -157,8 +157,8 @@ export function extend_bounty_expiry( * - `description`: The description of this bounty. */ export function propose_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "propose_bounty" } } } @@ -172,8 +172,8 @@ export function propose_bounty( * # */ export function propose_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "propose_curator" } } } @@ -198,7 +198,7 @@ export function propose_curator( * # */ export function unassign_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "unassign_curator" } } } diff --git a/codegen/_output/kusama/pallets/ChildBounties.ts b/codegen/_output/kusama/pallets/ChildBounties.ts index 90a6ec24d..9e28106f9 100644 --- a/codegen/_output/kusama/pallets/ChildBounties.ts +++ b/codegen/_output/kusama/pallets/ChildBounties.ts @@ -72,8 +72,8 @@ export const ParentChildBounties = { * - `child_bounty_id`: Index of child bounty. */ export function accept_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "accept_curator" } } } @@ -99,8 +99,8 @@ export function accept_curator( * - `description`: Text description for the child-bounty. */ export function add_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "add_child_bounty" } } } @@ -124,8 +124,8 @@ export function add_child_bounty( * - `beneficiary`: Beneficiary account. */ export function award_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "award_child_bounty" } } } @@ -148,8 +148,8 @@ export function award_child_bounty( * - `child_bounty_id`: Index of child bounty. */ export function claim_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "claim_child_bounty" } } } @@ -178,8 +178,8 @@ export function claim_child_bounty( * - `child_bounty_id`: Index of child bounty. */ export function close_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "close_child_bounty" } } } @@ -201,8 +201,8 @@ export function close_child_bounty( * - `fee`: payment fee to child-bounty curator for execution. */ export function propose_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "propose_curator" } } } @@ -243,7 +243,7 @@ export function propose_curator( * - `child_bounty_id`: Index of child bounty. */ export function unassign_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "unassign_curator" } } } diff --git a/codegen/_output/kusama/pallets/Claims.ts b/codegen/_output/kusama/pallets/Claims.ts index 0c28984e6..edf86e907 100644 --- a/codegen/_output/kusama/pallets/Claims.ts +++ b/codegen/_output/kusama/pallets/Claims.ts @@ -64,8 +64,8 @@ export const Vesting = { * */ export function attest( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "attest" } } } @@ -96,8 +96,8 @@ export function attest( * */ export function claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "claim" } } } @@ -130,8 +130,8 @@ export function claim( * */ export function claim_attest( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "claim_attest" } } } @@ -153,13 +153,13 @@ export function claim_attest( * */ export function mint_claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "mint_claim" } } } export function move_claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "move_claim" } } } diff --git a/codegen/_output/kusama/pallets/Configuration.ts b/codegen/_output/kusama/pallets/Configuration.ts index 30cf79ed3..1406bb479 100644 --- a/codegen/_output/kusama/pallets/Configuration.ts +++ b/codegen/_output/kusama/pallets/Configuration.ts @@ -45,40 +45,40 @@ export const PendingConfigs = { */ export function set_bypass_consistency_check( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_bypass_consistency_check" } } } /** Set the availability period for parachains. */ export function set_chain_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_chain_availability_period" } } } /** Set the acceptance period for an included candidate. */ export function set_code_retention_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_code_retention_period" } } } /** Set the dispute conclusion by time out period. */ export function set_dispute_conclusion_by_time_out_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_conclusion_by_time_out_period" }, @@ -88,27 +88,30 @@ export function set_dispute_conclusion_by_time_out_period( /** Set the maximum number of dispute spam slots. */ export function set_dispute_max_spam_slots( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_max_spam_slots" } } } /** Set the dispute period, in number of sessions to keep for disputes. */ export function set_dispute_period( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_period" } } } /** Set the dispute post conclusion acceptance period. */ export function set_dispute_post_conclusion_acceptance_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_post_conclusion_acceptance_period" }, @@ -118,50 +121,50 @@ export function set_dispute_post_conclusion_acceptance_period( /** Set the parachain validator-group rotation frequency */ export function set_group_rotation_frequency( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_group_rotation_frequency" } } } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_capacity( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_capacity" } } } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export function set_hrmp_channel_max_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_message_size" } } } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_total_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_total_size" } } } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export function set_hrmp_max_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_message_num_per_candidate" }, @@ -171,10 +174,10 @@ export function set_hrmp_max_message_num_per_candidate( /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export function set_hrmp_max_parachain_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parachain_inbound_channels" }, @@ -184,10 +187,10 @@ export function set_hrmp_max_parachain_inbound_channels( /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export function set_hrmp_max_parachain_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parachain_outbound_channels" }, @@ -197,10 +200,10 @@ export function set_hrmp_max_parachain_outbound_channels( /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export function set_hrmp_max_parathread_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parathread_inbound_channels" }, @@ -210,10 +213,10 @@ export function set_hrmp_max_parathread_inbound_channels( /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export function set_hrmp_max_parathread_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parathread_outbound_channels" }, @@ -223,10 +226,10 @@ export function set_hrmp_max_parathread_outbound_channels( /** Sets the number of sessions after which an HRMP open channel request expires. */ export function set_hrmp_open_request_ttl( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_open_request_ttl" } } } @@ -236,64 +239,70 @@ export function set_hrmp_open_request_ttl( */ export function set_hrmp_recipient_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_recipient_deposit" } } } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export function set_hrmp_sender_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_sender_deposit" } } } /** Set the max validation code size for incoming upgrades. */ export function set_max_code_size( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_code_size" } } } /** Set the critical downward message size. */ export function set_max_downward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_downward_message_size" } } } /** Set the max head data size for paras. */ export function set_max_head_data_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_head_data_size" } } } /** Set the max POV block size for incoming upgrades. */ export function set_max_pov_size( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_pov_size" } } } /** Sets the maximum number of messages that a candidate can contain. */ export function set_max_upward_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_message_num_per_candidate" }, @@ -303,47 +312,50 @@ export function set_max_upward_message_num_per_candidate( /** Sets the maximum size of an upward message that can be sent by a candidate. */ export function set_max_upward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_message_size" } } } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_count( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_queue_count" } } } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_queue_size" } } } /** Set the maximum number of validators to use in parachain consensus. */ export function set_max_validators( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_validators" } } } /** Set the maximum number of validators to assign to any core. */ export function set_max_validators_per_core( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_validators_per_core" } } } @@ -355,10 +367,10 @@ export function set_max_validators_per_core( */ export function set_minimum_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_minimum_validation_upgrade_delay" }, @@ -367,15 +379,21 @@ export function set_minimum_validation_upgrade_delay( /** Set the total number of delay tranches. */ export function set_n_delay_tranches( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_n_delay_tranches" } } } /** Set the number of validators needed to approve a block. */ export function set_needed_approvals( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_needed_approvals" } } } @@ -384,121 +402,130 @@ export function set_needed_approvals( * Must be at least 1. */ export function set_no_show_slots( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_no_show_slots" } } } /** Set the number of parathread execution cores. */ export function set_parathread_cores( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_parathread_cores" } } } /** Set the number of retries for a particular parathread. */ export function set_parathread_retries( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_parathread_retries" } } } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export function set_pvf_checking_enabled( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_pvf_checking_enabled" } } } /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export function set_pvf_voting_ttl( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_pvf_voting_ttl" } } } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export function set_relay_vrf_modulo_samples( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_relay_vrf_modulo_samples" } } } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export function set_scheduling_lookahead( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_scheduling_lookahead" } } } /** Set the availability period for parathreads. */ export function set_thread_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_thread_availability_period" } } } /** Sets the maximum amount of weight any individual upward message may consume. */ export function set_ump_max_individual_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_ump_max_individual_weight" } } } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export function set_ump_service_total_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_ump_service_total_weight" } } } /** Set the validation upgrade cooldown. */ export function set_validation_upgrade_cooldown( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_validation_upgrade_cooldown" } } } /** Set the validation upgrade delay. */ export function set_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_validation_upgrade_delay" } } } /** Set the zeroth delay tranche width. */ export function set_zeroth_delay_tranche_width( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_zeroth_delay_tranche_width" } } } diff --git a/codegen/_output/kusama/pallets/Council.ts b/codegen/_output/kusama/pallets/Council.ts index d39cb07f8..c29fe873b 100644 --- a/codegen/_output/kusama/pallets/Council.ts +++ b/codegen/_output/kusama/pallets/Council.ts @@ -91,8 +91,8 @@ export const Voting = { * # */ export function close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "close" } } } @@ -131,8 +131,8 @@ export function close( * # */ export function close_old_weight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "close_old_weight" } } } @@ -153,8 +153,8 @@ export function close_old_weight( * # */ export function disapprove_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "disapprove_proposal" } } } @@ -172,8 +172,8 @@ export function disapprove_proposal( * # */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "execute" } } } @@ -207,8 +207,8 @@ export function execute( * # */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "propose" } } } @@ -247,8 +247,8 @@ export function propose( * # */ export function set_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "set_members" } } } @@ -270,7 +270,7 @@ export function set_members( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/kusama/pallets/Crowdloan.ts b/codegen/_output/kusama/pallets/Crowdloan.ts index a8dbd2785..688c6953b 100644 --- a/codegen/_output/kusama/pallets/Crowdloan.ts +++ b/codegen/_output/kusama/pallets/Crowdloan.ts @@ -47,8 +47,8 @@ export const NextFundIndex = { * Origin must be Signed, and the user must have contributed to the crowdloan. */ export function add_memo( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "add_memo" } } } @@ -57,8 +57,8 @@ export function add_memo( * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "contribute" } } } @@ -67,8 +67,8 @@ export function contribute( * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "contribute_all" } } } @@ -79,15 +79,15 @@ export function contribute_all( * by the parachain manager. */ export function create( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "create" } } } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export function dissolve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "dissolve" } } } @@ -97,8 +97,8 @@ export function dissolve( * Can only be called by Root origin. */ export function edit( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "edit" } } } @@ -108,8 +108,8 @@ export function edit( * Origin must be Signed, and the fund has non-zero raise. */ export function poke( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "poke" } } } @@ -121,8 +121,8 @@ export function poke( * Origin must be signed, but can come from anyone. */ export function refund( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "refund" } } } @@ -146,7 +146,7 @@ export function refund( * - `index`: The parachain to whose crowdloan the contribution was made. */ export function withdraw( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "withdraw" } } } diff --git a/codegen/_output/kusama/pallets/Democracy.ts b/codegen/_output/kusama/pallets/Democracy.ts index d2b0b6df4..6efe7333f 100644 --- a/codegen/_output/kusama/pallets/Democracy.ts +++ b/codegen/_output/kusama/pallets/Democracy.ts @@ -146,8 +146,8 @@ export const VotingOf = { * reasonable value). */ export function blacklist( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "blacklist" } } } @@ -161,8 +161,8 @@ export function blacklist( * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ export function cancel_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "cancel_proposal" } } } @@ -176,8 +176,8 @@ export function cancel_proposal( * # Weight: `O(1)`. */ export function cancel_referendum( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "cancel_referendum" } } } @@ -188,7 +188,7 @@ export function cancel_referendum( * * Weight: `O(1)`. */ -export function clear_public_proposals(): t.polkadot_runtime.RuntimeCall { +export function clear_public_proposals(): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { type: "clear_public_proposals" } } } @@ -215,8 +215,8 @@ export function clear_public_proposals(): t.polkadot_runtime.RuntimeCall { * voted on. Weight is charged as if maximum votes. */ export function delegate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "delegate" } } } @@ -231,8 +231,8 @@ export function delegate( * Weight: `O(1)`. */ export function emergency_cancel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "emergency_cancel" } } } @@ -245,8 +245,8 @@ export function emergency_cancel( * - `proposal_hash`: The preimage hash of the proposal. */ export function external_propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose" } } } @@ -264,8 +264,8 @@ export function external_propose( * Weight: `O(1)` */ export function external_propose_default( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose_default" } } } @@ -283,8 +283,8 @@ export function external_propose_default( * Weight: `O(1)` */ export function external_propose_majority( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose_majority" } } } @@ -307,8 +307,8 @@ export function external_propose_majority( * Weight: `O(1)` */ export function fast_track( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "fast_track" } } } @@ -324,8 +324,8 @@ export function fast_track( * Emits `Proposed`. */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "propose" } } } @@ -347,8 +347,8 @@ export function propose( * Weight is calculated for the maximum number of vote. */ export function remove_other_vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "remove_other_vote" } } } @@ -382,8 +382,8 @@ export function remove_other_vote( * Weight is calculated for the maximum number of vote. */ export function remove_vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "remove_vote" } } } @@ -396,8 +396,8 @@ export function remove_vote( * - `proposal`: The index of the proposal to second. */ export function second( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "second" } } } @@ -415,7 +415,7 @@ export function second( * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ -export function undelegate(): t.polkadot_runtime.RuntimeCall { +export function undelegate(): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { type: "undelegate" } } } @@ -429,8 +429,8 @@ export function undelegate(): t.polkadot_runtime.RuntimeCall { * Weight: `O(R)` with R number of vote of target. */ export function unlock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "unlock" } } } @@ -446,8 +446,8 @@ export function unlock( * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ export function veto_external( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "veto_external" } } } @@ -461,7 +461,7 @@ export function veto_external( * - `vote`: The vote configuration. */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/kusama/pallets/ElectionProviderMultiPhase.ts b/codegen/_output/kusama/pallets/ElectionProviderMultiPhase.ts index b916efffe..3a438e083 100644 --- a/codegen/_output/kusama/pallets/ElectionProviderMultiPhase.ts +++ b/codegen/_output/kusama/pallets/ElectionProviderMultiPhase.ts @@ -142,8 +142,8 @@ export const SnapshotMetadata = { * calling [`Call::set_emergency_election_result`]. */ export function governance_fallback( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "governance_fallback" } } } @@ -159,10 +159,10 @@ export function governance_fallback( */ export function set_emergency_election_result( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "set_emergency_election_result" }, @@ -178,10 +178,10 @@ export function set_emergency_election_result( */ export function set_minimum_untrusted_score( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "set_minimum_untrusted_score" }, @@ -200,8 +200,8 @@ export function set_minimum_untrusted_score( * might be rewarded, slashed, or get all or a part of the deposit back. */ export function submit( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "submit" } } } @@ -222,7 +222,7 @@ export function submit( * No deposit or reward is associated with this submission. */ export function submit_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "submit_unsigned" } } } diff --git a/codegen/_output/kusama/pallets/FastUnstake.ts b/codegen/_output/kusama/pallets/FastUnstake.ts index 00d6afe84..b659ceb40 100644 --- a/codegen/_output/kusama/pallets/FastUnstake.ts +++ b/codegen/_output/kusama/pallets/FastUnstake.ts @@ -55,8 +55,8 @@ export const Queue = { * Dispatch origin must be signed by the [`Config::ControlOrigin`]. */ export function control( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { ...value, type: "control" } } } @@ -69,7 +69,7 @@ export function control( * calling `register_fast_unstake`. This should probably be followed by a call to * `Staking::rebond`. */ -export function deregister(): t.polkadot_runtime.RuntimeCall { +export function deregister(): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { type: "deregister" } } } @@ -93,6 +93,6 @@ export function deregister(): t.polkadot_runtime.RuntimeCall { * the normal staking system, but they lose part of their unbonding chunks due to consuming * the chain's resources. */ -export function register_fast_unstake(): t.polkadot_runtime.RuntimeCall { +export function register_fast_unstake(): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { type: "register_fast_unstake" } } } diff --git a/codegen/_output/kusama/pallets/Grandpa.ts b/codegen/_output/kusama/pallets/Grandpa.ts index cc48e77eb..1b9dc06cf 100644 --- a/codegen/_output/kusama/pallets/Grandpa.ts +++ b/codegen/_output/kusama/pallets/Grandpa.ts @@ -79,8 +79,8 @@ export const State = { * Only callable by root. */ export function note_stalled( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "note_stalled" } } } @@ -91,8 +91,8 @@ export function note_stalled( * will be reported. */ export function report_equivocation( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "report_equivocation" } } } @@ -108,7 +108,7 @@ export function report_equivocation( * reporter. */ export function report_equivocation_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "report_equivocation_unsigned" } } } diff --git a/codegen/_output/kusama/pallets/Hrmp.ts b/codegen/_output/kusama/pallets/Hrmp.ts index 379910e66..574868fe8 100644 --- a/codegen/_output/kusama/pallets/Hrmp.ts +++ b/codegen/_output/kusama/pallets/Hrmp.ts @@ -172,8 +172,8 @@ export const HrmpWatermarks = { * Number of inbound and outbound channels for `para` must be provided as witness data of weighing. */ export function force_clean_hrmp( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_clean_hrmp" } } } @@ -186,8 +186,8 @@ export function force_clean_hrmp( * Relay Chain, e.g. a common good parachain. */ export function force_open_hrmp_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_open_hrmp_channel" } } } @@ -200,8 +200,11 @@ export function force_open_hrmp_channel( * Total number of closing channels must be provided as witness data of weighing. */ export function force_process_hrmp_close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_process_hrmp_close" } } } @@ -214,8 +217,8 @@ export function force_process_hrmp_close( * Total number of opening channels must be provided as witness data of weighing. */ export function force_process_hrmp_open( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_process_hrmp_open" } } } @@ -225,8 +228,11 @@ export function force_process_hrmp_open( * The channel will be opened only on the next session boundary. */ export function hrmp_accept_open_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_accept_open_channel" } } } @@ -241,8 +247,11 @@ export function hrmp_accept_open_channel( * witness data. */ export function hrmp_cancel_open_request( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_cancel_open_request" } } } @@ -253,8 +262,8 @@ export function hrmp_cancel_open_request( * The closure can only happen on a session change. */ export function hrmp_close_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_close_channel" } } } @@ -271,7 +280,7 @@ export function hrmp_close_channel( * change. */ export function hrmp_init_open_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_init_open_channel" } } } diff --git a/codegen/_output/kusama/pallets/Identity.ts b/codegen/_output/kusama/pallets/Identity.ts index d0caa8037..c538e7b1e 100644 --- a/codegen/_output/kusama/pallets/Identity.ts +++ b/codegen/_output/kusama/pallets/Identity.ts @@ -72,8 +72,8 @@ export const SuperOf = { * # */ export function add_registrar( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "add_registrar" } } } @@ -87,8 +87,8 @@ export function add_registrar( * sub identity of `sub`. */ export function add_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "add_sub" } } } @@ -112,8 +112,8 @@ export function add_sub( * # */ export function cancel_request( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "cancel_request" } } } @@ -137,7 +137,7 @@ export function cancel_request( * - One event. * # */ -export function clear_identity(): t.polkadot_runtime.RuntimeCall { +export function clear_identity(): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { type: "clear_identity" } } } @@ -163,8 +163,8 @@ export function clear_identity(): t.polkadot_runtime.RuntimeCall { * # */ export function kill_identity( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "kill_identity" } } } @@ -191,8 +191,8 @@ export function kill_identity( * # */ export function provide_judgement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "provide_judgement" } } } @@ -208,7 +208,7 @@ export function provide_judgement( * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ -export function quit_sub(): t.polkadot_runtime.RuntimeCall { +export function quit_sub(): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { type: "quit_sub" } } } @@ -222,8 +222,8 @@ export function quit_sub(): t.polkadot_runtime.RuntimeCall { * sub identity of `sub`. */ export function remove_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "remove_sub" } } } @@ -234,8 +234,8 @@ export function remove_sub( * sub identity of `sub`. */ export function rename_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "rename_sub" } } } @@ -265,8 +265,8 @@ export function rename_sub( * # */ export function request_judgement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "request_judgement" } } } @@ -286,8 +286,8 @@ export function request_judgement( * # */ export function set_account_id( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_account_id" } } } @@ -307,8 +307,8 @@ export function set_account_id( * # */ export function set_fee( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_fee" } } } @@ -328,8 +328,8 @@ export function set_fee( * # */ export function set_fields( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_fields" } } } @@ -355,8 +355,8 @@ export function set_fields( * # */ export function set_identity( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_identity" } } } @@ -384,7 +384,7 @@ export function set_identity( * # */ export function set_subs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_subs" } } } diff --git a/codegen/_output/kusama/pallets/ImOnline.ts b/codegen/_output/kusama/pallets/ImOnline.ts index b74de1209..17433d668 100644 --- a/codegen/_output/kusama/pallets/ImOnline.ts +++ b/codegen/_output/kusama/pallets/ImOnline.ts @@ -67,7 +67,7 @@ export const ReceivedHeartbeats = { * # */ export function heartbeat( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ImOnline", value: { ...value, type: "heartbeat" } } } diff --git a/codegen/_output/kusama/pallets/Indices.ts b/codegen/_output/kusama/pallets/Indices.ts index ef5567b14..6c48c3a11 100644 --- a/codegen/_output/kusama/pallets/Indices.ts +++ b/codegen/_output/kusama/pallets/Indices.ts @@ -32,8 +32,8 @@ export const Accounts = { * # */ export function claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "claim" } } } @@ -61,8 +61,8 @@ export function claim( * # */ export function force_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "force_transfer" } } } @@ -87,8 +87,8 @@ export function force_transfer( * # */ export function free( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "free" } } } @@ -113,8 +113,8 @@ export function free( * # */ export function freeze( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "freeze" } } } @@ -141,7 +141,7 @@ export function freeze( * # */ export function transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "transfer" } } } diff --git a/codegen/_output/kusama/pallets/Initializer.ts b/codegen/_output/kusama/pallets/Initializer.ts index 5c4fc4498..6bc8b433b 100644 --- a/codegen/_output/kusama/pallets/Initializer.ts +++ b/codegen/_output/kusama/pallets/Initializer.ts @@ -42,7 +42,7 @@ export const HasInitialized = { * chain are valid and should be finalized. */ export function force_approve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Initializer", value: { ...value, type: "force_approve" } } } diff --git a/codegen/_output/kusama/pallets/Multisig.ts b/codegen/_output/kusama/pallets/Multisig.ts index 326dd142b..361443f31 100644 --- a/codegen/_output/kusama/pallets/Multisig.ts +++ b/codegen/_output/kusama/pallets/Multisig.ts @@ -48,8 +48,8 @@ export const Multisigs = { * # */ export function approve_as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "approve_as_multi" } } } @@ -101,8 +101,8 @@ export function approve_as_multi( * # */ export function as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "as_multi" } } } @@ -125,8 +125,8 @@ export function as_multi( * # */ export function as_multi_threshold_1( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "as_multi_threshold_1" } } } @@ -159,7 +159,7 @@ export function as_multi_threshold_1( * # */ export function cancel_as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "cancel_as_multi" } } } diff --git a/codegen/_output/kusama/pallets/NominationPools.ts b/codegen/_output/kusama/pallets/NominationPools.ts index c524076d6..b27120267 100644 --- a/codegen/_output/kusama/pallets/NominationPools.ts +++ b/codegen/_output/kusama/pallets/NominationPools.ts @@ -201,8 +201,8 @@ export const SubPoolsStorage = { * Bonding extra funds implies an automatic payout of all pending rewards as well. */ export function bond_extra( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "bond_extra" } } } @@ -216,8 +216,8 @@ export function bond_extra( * account. */ export function chill( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "chill" } } } @@ -229,7 +229,7 @@ export function chill( * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". */ -export function claim_payout(): t.polkadot_runtime.RuntimeCall { +export function claim_payout(): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { type: "claim_payout" } } } @@ -253,8 +253,8 @@ export function claim_payout(): t.polkadot_runtime.RuntimeCall { * needs at have at least `amount + existential_deposit` transferrable. */ export function create( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "create" } } } @@ -271,8 +271,8 @@ export function create( * * Only a pool with [`PoolState::Open`] can be joined */ export function join( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "join" } } } @@ -286,8 +286,8 @@ export function join( * account. */ export function nominate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "nominate" } } } @@ -300,8 +300,8 @@ export function nominate( * they attempt to unbond. */ export function pool_withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "pool_withdraw_unbonded" } } } @@ -318,8 +318,8 @@ export function pool_withdraw_unbonded( * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. */ export function set_configs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_configs" } } } @@ -330,8 +330,8 @@ export function set_configs( * of the pool. */ export function set_metadata( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_metadata" } } } @@ -348,8 +348,8 @@ export function set_metadata( * then the state of the pool can be permissionlessly changed to `Destroying`. */ export function set_state( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_state" } } } @@ -384,8 +384,8 @@ export function set_state( * `NoMoreChunks` error from the staking system. */ export function unbond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "unbond" } } } @@ -399,8 +399,8 @@ export function unbond( * most pool members and they should be informed of changes to pool roles. */ export function update_roles( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "update_roles" } } } @@ -426,7 +426,7 @@ export function update_roles( * If the target is the depositor, the pool will be destroyed. */ export function withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "withdraw_unbonded" } } } diff --git a/codegen/_output/kusama/pallets/ParaInherent.ts b/codegen/_output/kusama/pallets/ParaInherent.ts index 99714c021..587241087 100644 --- a/codegen/_output/kusama/pallets/ParaInherent.ts +++ b/codegen/_output/kusama/pallets/ParaInherent.ts @@ -28,7 +28,7 @@ export const OnChainVotes = { /** Enter the paras inherent. This will process bitfields and backed candidates. */ export function enter( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ParaInherent", value: { ...value, type: "enter" } } } diff --git a/codegen/_output/kusama/pallets/Paras.ts b/codegen/_output/kusama/pallets/Paras.ts index 09d9e3990..89d407f49 100644 --- a/codegen/_output/kusama/pallets/Paras.ts +++ b/codegen/_output/kusama/pallets/Paras.ts @@ -265,15 +265,18 @@ export const UpgradeRestrictionSignal = { * the go-ahead signal while the PVF pre-checking feature is enabled. */ export function add_trusted_validation_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "add_trusted_validation_code" } } } /** Note a new block head for para within the context of the current block. */ export function force_note_new_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_note_new_head" } } } @@ -283,29 +286,32 @@ export function force_note_new_head( * initializer... */ export function force_queue_action( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_queue_action" } } } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export function force_schedule_code_upgrade( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_schedule_code_upgrade" } } } /** Set the storage for the parachain validation code immediately. */ export function force_set_current_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_set_current_code" } } } /** Set the storage for the current parachain head data immediately. */ export function force_set_current_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_set_current_head" } } } @@ -314,8 +320,11 @@ export function force_set_current_head( * enacts the results if that was the last vote before achieving the supermajority. */ export function include_pvf_check_statement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "include_pvf_check_statement" } } } @@ -327,7 +336,10 @@ export function include_pvf_check_statement( * dispatching. */ export function poke_unused_validation_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "poke_unused_validation_code" } } } diff --git a/codegen/_output/kusama/pallets/ParasDisputes.ts b/codegen/_output/kusama/pallets/ParasDisputes.ts index 599086069..6bac6f10b 100644 --- a/codegen/_output/kusama/pallets/ParasDisputes.ts +++ b/codegen/_output/kusama/pallets/ParasDisputes.ts @@ -64,6 +64,6 @@ export const SpamSlots = { value: _codec.$94, } -export function force_unfreeze(): t.polkadot_runtime.RuntimeCall { +export function force_unfreeze(): t.types.polkadot_runtime.RuntimeCall { return { type: "ParasDisputes", value: "force_unfreeze" } } diff --git a/codegen/_output/kusama/pallets/PhragmenElection.ts b/codegen/_output/kusama/pallets/PhragmenElection.ts index 5c8d82e72..e68ca3af3 100644 --- a/codegen/_output/kusama/pallets/PhragmenElection.ts +++ b/codegen/_output/kusama/pallets/PhragmenElection.ts @@ -80,8 +80,8 @@ export const Voting = { * # */ export function clean_defunct_voters( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "clean_defunct_voters" } } } @@ -106,8 +106,8 @@ export function clean_defunct_voters( * # */ export function remove_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "remove_member" } } } @@ -118,7 +118,7 @@ export function remove_member( * * The dispatch origin of this call must be signed and be a voter. */ -export function remove_voter(): t.polkadot_runtime.RuntimeCall { +export function remove_voter(): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { type: "remove_voter" } } } @@ -143,8 +143,8 @@ export function remove_voter(): t.polkadot_runtime.RuntimeCall { * # */ export function renounce_candidacy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "renounce_candidacy" } } } @@ -166,8 +166,8 @@ export function renounce_candidacy( * # */ export function submit_candidacy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "submit_candidacy" } } } @@ -197,7 +197,7 @@ export function submit_candidacy( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/kusama/pallets/Preimage.ts b/codegen/_output/kusama/pallets/Preimage.ts index 9a21906ce..669848d8a 100644 --- a/codegen/_output/kusama/pallets/Preimage.ts +++ b/codegen/_output/kusama/pallets/Preimage.ts @@ -26,8 +26,8 @@ export const StatusFor = { * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ export function note_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "note_preimage" } } } @@ -38,8 +38,8 @@ export function note_preimage( * a user may have paid, and take the control of the preimage out of their hands. */ export function request_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "request_preimage" } } } @@ -52,8 +52,8 @@ export function request_preimage( * - `len`: The length of the preimage of `hash`. */ export function unnote_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "unnote_preimage" } } } @@ -63,7 +63,7 @@ export function unnote_preimage( * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ export function unrequest_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "unrequest_preimage" } } } diff --git a/codegen/_output/kusama/pallets/Proxy.ts b/codegen/_output/kusama/pallets/Proxy.ts index 4c78c42c1..667c8dcc9 100644 --- a/codegen/_output/kusama/pallets/Proxy.ts +++ b/codegen/_output/kusama/pallets/Proxy.ts @@ -35,8 +35,8 @@ export const Proxies = { * zero. */ export function add_proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "add_proxy" } } } @@ -58,8 +58,8 @@ export function add_proxy( * - `call_hash`: The hash of the call to be made by the `real` account. */ export function announce( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "announce" } } } @@ -84,8 +84,8 @@ export function announce( * Fails if there are insufficient funds to pay for deposit. */ export function create_pure( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "create_pure" } } } @@ -108,8 +108,8 @@ export function create_pure( * account whose `pure` call has corresponding parameters. */ export function kill_pure( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "kill_pure" } } } @@ -127,8 +127,8 @@ export function kill_pure( * - `call`: The call to be made by the `real` account. */ export function proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "proxy" } } } @@ -146,8 +146,8 @@ export function proxy( * - `call`: The call to be made by the `real` account. */ export function proxy_announced( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "proxy_announced" } } } @@ -164,8 +164,8 @@ export function proxy_announced( * - `call_hash`: The hash of the call to be made. */ export function reject_announcement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "reject_announcement" } } } @@ -182,8 +182,8 @@ export function reject_announcement( * - `call_hash`: The hash of the call to be made by the `real` account. */ export function remove_announcement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "remove_announcement" } } } @@ -195,7 +195,7 @@ export function remove_announcement( * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ -export function remove_proxies(): t.polkadot_runtime.RuntimeCall { +export function remove_proxies(): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { type: "remove_proxies" } } } @@ -209,7 +209,7 @@ export function remove_proxies(): t.polkadot_runtime.RuntimeCall { * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ export function remove_proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "remove_proxy" } } } diff --git a/codegen/_output/kusama/pallets/Registrar.ts b/codegen/_output/kusama/pallets/Registrar.ts index 23b3d3c87..4a50b1a52 100644 --- a/codegen/_output/kusama/pallets/Registrar.ts +++ b/codegen/_output/kusama/pallets/Registrar.ts @@ -41,8 +41,8 @@ export const PendingSwap = { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function add_lock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "add_lock" } } } @@ -52,8 +52,8 @@ export function add_lock( * The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread. */ export function deregister( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "deregister" } } } @@ -66,8 +66,8 @@ export function deregister( * can be registered, including sub-1000 IDs which are System Parachains. */ export function force_register( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "force_register" } } } @@ -88,8 +88,8 @@ export function force_register( * The `Registered` event is emitted in case of success. */ export function register( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "register" } } } @@ -100,8 +100,8 @@ export function register( * Can only be called by the Root origin or the parachain. */ export function remove_lock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "remove_lock" } } } @@ -121,7 +121,7 @@ export function remove_lock( * ## Events * The `Reserved` event is emitted in case of success, which provides the ID reserved for use. */ -export function reserve(): t.polkadot_runtime.RuntimeCall { +export function reserve(): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { type: "reserve" } } } @@ -131,8 +131,11 @@ export function reserve(): t.polkadot_runtime.RuntimeCall { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function schedule_code_upgrade( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "schedule_code_upgrade" } } } @@ -142,8 +145,8 @@ export function schedule_code_upgrade( * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function set_current_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "set_current_head" } } } @@ -161,7 +164,7 @@ export function set_current_head( * and the auction deposit are switched. */ export function swap( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "swap" } } } diff --git a/codegen/_output/kusama/pallets/Scheduler.ts b/codegen/_output/kusama/pallets/Scheduler.ts index e499f3a60..98ed2fb19 100644 --- a/codegen/_output/kusama/pallets/Scheduler.ts +++ b/codegen/_output/kusama/pallets/Scheduler.ts @@ -35,22 +35,22 @@ export const Lookup = { /** Cancel an anonymously scheduled task. */ export function cancel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "cancel" } } } /** Cancel a named scheduled task. */ export function cancel_named( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "cancel_named" } } } /** Anonymously schedule a task. */ export function schedule( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule" } } } @@ -62,15 +62,15 @@ export function schedule( * # */ export function schedule_after( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_after" } } } /** Schedule a named task. */ export function schedule_named( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_named" } } } @@ -82,7 +82,7 @@ export function schedule_named( * # */ export function schedule_named_after( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_named_after" } } } diff --git a/codegen/_output/kusama/pallets/Session.ts b/codegen/_output/kusama/pallets/Session.ts index aaef74b84..d55559324 100644 --- a/codegen/_output/kusama/pallets/Session.ts +++ b/codegen/_output/kusama/pallets/Session.ts @@ -95,7 +95,7 @@ export const Validators = { * - DbWrites per key id: `KeyOwner` * # */ -export function purge_keys(): t.polkadot_runtime.RuntimeCall { +export function purge_keys(): t.types.polkadot_runtime.RuntimeCall { return { type: "Session", value: { type: "purge_keys" } } } @@ -116,7 +116,7 @@ export function purge_keys(): t.polkadot_runtime.RuntimeCall { * # */ export function set_keys( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Session", value: { ...value, type: "set_keys" } } } diff --git a/codegen/_output/kusama/pallets/Slots.ts b/codegen/_output/kusama/pallets/Slots.ts index f4380df60..c45355a0e 100644 --- a/codegen/_output/kusama/pallets/Slots.ts +++ b/codegen/_output/kusama/pallets/Slots.ts @@ -34,8 +34,8 @@ export const Leases = { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function clear_all_leases( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "clear_all_leases" } } } @@ -46,8 +46,8 @@ export function clear_all_leases( * The dispatch origin for this call must match `T::ForceOrigin`. */ export function force_lease( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "force_lease" } } } @@ -61,7 +61,7 @@ export function force_lease( * Origin must be signed, but can be called by anyone. */ export function trigger_onboard( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "trigger_onboard" } } } diff --git a/codegen/_output/kusama/pallets/Staking.ts b/codegen/_output/kusama/pallets/Staking.ts index 0797b8b1d..2ab1664ce 100644 --- a/codegen/_output/kusama/pallets/Staking.ts +++ b/codegen/_output/kusama/pallets/Staking.ts @@ -479,8 +479,8 @@ export const Validators = { * # */ export function bond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "bond" } } } @@ -502,8 +502,8 @@ export function bond( * # */ export function bond_extra( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "bond_extra" } } } @@ -515,8 +515,8 @@ export function bond_extra( * Parameters: era and indices of the slashes for that era to kill. */ export function cancel_deferred_slash( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "cancel_deferred_slash" } } } @@ -533,7 +533,7 @@ export function cancel_deferred_slash( * - Writes are limited to the `origin` account key. * # */ -export function chill(): t.polkadot_runtime.RuntimeCall { +export function chill(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "chill" } } } @@ -566,8 +566,8 @@ export function chill(): t.polkadot_runtime.RuntimeCall { * who do not satisfy these requirements. */ export function chill_other( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "chill_other" } } } @@ -577,8 +577,8 @@ export function chill_other( * can call this. */ export function force_apply_min_commission( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "force_apply_min_commission" } } } @@ -600,7 +600,7 @@ export function force_apply_min_commission( * - Write ForceEra * # */ -export function force_new_era(): t.polkadot_runtime.RuntimeCall { +export function force_new_era(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_new_era" } } } @@ -615,7 +615,7 @@ export function force_new_era(): t.polkadot_runtime.RuntimeCall { * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ -export function force_new_era_always(): t.polkadot_runtime.RuntimeCall { +export function force_new_era_always(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_new_era_always" } } } @@ -636,7 +636,7 @@ export function force_new_era_always(): t.polkadot_runtime.RuntimeCall { * - Write: ForceEra * # */ -export function force_no_eras(): t.polkadot_runtime.RuntimeCall { +export function force_no_eras(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_no_eras" } } } @@ -646,8 +646,8 @@ export function force_no_eras(): t.polkadot_runtime.RuntimeCall { * The dispatch origin must be Root. */ export function force_unstake( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "force_unstake" } } } @@ -661,8 +661,8 @@ export function force_unstake( * # */ export function increase_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "increase_validator_count" } } } @@ -680,8 +680,8 @@ export function increase_validator_count( * block any further nominations. */ export function kick( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "kick" } } } @@ -699,8 +699,8 @@ export function kick( * # */ export function nominate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "nominate" } } } @@ -728,8 +728,8 @@ export function nominate( * # */ export function payout_stakers( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "payout_stakers" } } } @@ -748,8 +748,8 @@ export function payout_stakers( * Refunds the transaction fees upon successful execution. */ export function reap_stash( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "reap_stash" } } } @@ -765,8 +765,8 @@ export function reap_stash( * # */ export function rebond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "rebond" } } } @@ -780,8 +780,8 @@ export function rebond( * # */ export function scale_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "scale_validator_count" } } } @@ -804,8 +804,8 @@ export function scale_validator_count( * # */ export function set_controller( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_controller" } } } @@ -815,8 +815,8 @@ export function set_controller( * The dispatch origin must be Root. */ export function set_invulnerables( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_invulnerables" } } } @@ -839,8 +839,8 @@ export function set_invulnerables( * # */ export function set_payee( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_payee" } } } @@ -864,8 +864,8 @@ export function set_payee( * to kick people under the new limits, `chill_other` should be called. */ export function set_staking_configs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_staking_configs" } } } @@ -880,8 +880,8 @@ export function set_staking_configs( * # */ export function set_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_validator_count" } } } @@ -907,8 +907,8 @@ export function set_validator_count( * See also [`Call::withdraw_unbonded`]. */ export function unbond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "unbond" } } } @@ -920,8 +920,8 @@ export function unbond( * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ export function validate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "validate" } } } @@ -943,7 +943,7 @@ export function validate( * # */ export function withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "withdraw_unbonded" } } } diff --git a/codegen/_output/kusama/pallets/System.ts b/codegen/_output/kusama/pallets/System.ts index 16aee5b15..1cf99909c 100644 --- a/codegen/_output/kusama/pallets/System.ts +++ b/codegen/_output/kusama/pallets/System.ts @@ -170,8 +170,8 @@ export const UpgradedToU32RefCount = { /** A dispatch that will fill the block weight up to the given ratio. */ export function fill_block( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "fill_block" } } } @@ -182,15 +182,15 @@ export function fill_block( * the prefix we are removing to accurately calculate the weight of this function. */ export function kill_prefix( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "kill_prefix" } } } /** Kill some items from storage. */ export function kill_storage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "kill_storage" } } } @@ -202,15 +202,15 @@ export function kill_storage( * # */ export function remark( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "remark" } } } /** Make some on-chain remark and emit event. */ export function remark_with_event( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "remark_with_event" } } } @@ -229,8 +229,8 @@ export function remark_with_event( * # */ export function set_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_code" } } } @@ -246,21 +246,21 @@ export function set_code( * block. # */ export function set_code_without_checks( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_code_without_checks" } } } /** Set the number of pages in the WebAssembly environment's heap. */ export function set_heap_pages( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_heap_pages" } } } /** Set some items of storage. */ export function set_storage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_storage" } } } diff --git a/codegen/_output/kusama/pallets/TechnicalCommittee.ts b/codegen/_output/kusama/pallets/TechnicalCommittee.ts index ef8a8713e..6673173eb 100644 --- a/codegen/_output/kusama/pallets/TechnicalCommittee.ts +++ b/codegen/_output/kusama/pallets/TechnicalCommittee.ts @@ -91,8 +91,8 @@ export const Voting = { * # */ export function close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "close" } } } @@ -131,8 +131,8 @@ export function close( * # */ export function close_old_weight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "close_old_weight" } } } @@ -153,8 +153,8 @@ export function close_old_weight( * # */ export function disapprove_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "disapprove_proposal" } } } @@ -172,8 +172,8 @@ export function disapprove_proposal( * # */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "execute" } } } @@ -207,8 +207,8 @@ export function execute( * # */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "propose" } } } @@ -247,8 +247,8 @@ export function propose( * # */ export function set_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "set_members" } } } @@ -270,7 +270,7 @@ export function set_members( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/kusama/pallets/TechnicalMembership.ts b/codegen/_output/kusama/pallets/TechnicalMembership.ts index 6c7460838..b5a5331f1 100644 --- a/codegen/_output/kusama/pallets/TechnicalMembership.ts +++ b/codegen/_output/kusama/pallets/TechnicalMembership.ts @@ -25,8 +25,8 @@ export const Prime = { * May only be called from `T::AddOrigin`. */ export function add_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "add_member" } } } @@ -38,8 +38,8 @@ export function add_member( * Prime membership is passed from the origin account to `new`, if extant. */ export function change_key( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "change_key" } } } @@ -48,7 +48,7 @@ export function change_key( * * May only be called from `T::PrimeOrigin`. */ -export function clear_prime(): t.polkadot_runtime.RuntimeCall { +export function clear_prime(): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { type: "clear_prime" } } } @@ -58,8 +58,8 @@ export function clear_prime(): t.polkadot_runtime.RuntimeCall { * May only be called from `T::RemoveOrigin`. */ export function remove_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "remove_member" } } } @@ -70,8 +70,8 @@ export function remove_member( * May only be called from `T::ResetOrigin`. */ export function reset_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "reset_members" } } } @@ -81,8 +81,8 @@ export function reset_members( * May only be called from `T::PrimeOrigin`. */ export function set_prime( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "set_prime" } } } @@ -94,7 +94,7 @@ export function set_prime( * Prime membership is *not* passed from `remove` to `add`, if extant. */ export function swap_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "swap_member" } } } diff --git a/codegen/_output/kusama/pallets/Timestamp.ts b/codegen/_output/kusama/pallets/Timestamp.ts index 7d2fbc242..98f831d32 100644 --- a/codegen/_output/kusama/pallets/Timestamp.ts +++ b/codegen/_output/kusama/pallets/Timestamp.ts @@ -32,7 +32,7 @@ export const Now = { type: "Plain", modifier: "Default", hashers: [], key: [], v * # */ export function set( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Timestamp", value: { ...value, type: "set" } } } diff --git a/codegen/_output/kusama/pallets/Tips.ts b/codegen/_output/kusama/pallets/Tips.ts index b4eaa8e83..6e7639c2f 100644 --- a/codegen/_output/kusama/pallets/Tips.ts +++ b/codegen/_output/kusama/pallets/Tips.ts @@ -46,8 +46,8 @@ export const Tips = { * # */ export function close_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "close_tip" } } } @@ -73,8 +73,8 @@ export function close_tip( * # */ export function report_awesome( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "report_awesome" } } } @@ -100,8 +100,8 @@ export function report_awesome( * # */ export function retract_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "retract_tip" } } } @@ -120,8 +120,8 @@ export function retract_tip( * # */ export function slash_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "slash_tip" } } } @@ -152,8 +152,8 @@ export function slash_tip( * # */ export function tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "tip" } } } @@ -182,7 +182,7 @@ export function tip( * # */ export function tip_new( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "tip_new" } } } diff --git a/codegen/_output/kusama/pallets/Treasury.ts b/codegen/_output/kusama/pallets/Treasury.ts index a65f54575..1f93620f2 100644 --- a/codegen/_output/kusama/pallets/Treasury.ts +++ b/codegen/_output/kusama/pallets/Treasury.ts @@ -42,8 +42,8 @@ export const Proposals = { * # */ export function approve_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "approve_proposal" } } } @@ -59,8 +59,8 @@ export function approve_proposal( * # */ export function propose_spend( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "propose_spend" } } } @@ -76,8 +76,8 @@ export function propose_spend( * # */ export function reject_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "reject_proposal" } } } @@ -99,8 +99,8 @@ export function reject_proposal( * exist altogether, thus there is no way it would have been approved in the first place. */ export function remove_approval( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "remove_approval" } } } @@ -115,7 +115,7 @@ export function remove_approval( * beneficiary. */ export function spend( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "spend" } } } diff --git a/codegen/_output/kusama/pallets/Ump.ts b/codegen/_output/kusama/pallets/Ump.ts index d362ca1a4..817207c25 100644 --- a/codegen/_output/kusama/pallets/Ump.ts +++ b/codegen/_output/kusama/pallets/Ump.ts @@ -109,7 +109,7 @@ export const RelayDispatchQueues = { * - `OverweightServiced`: On success. */ export function service_overweight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Ump", value: { ...value, type: "service_overweight" } } } diff --git a/codegen/_output/kusama/pallets/Utility.ts b/codegen/_output/kusama/pallets/Utility.ts index 05b704bba..1483e7521 100644 --- a/codegen/_output/kusama/pallets/Utility.ts +++ b/codegen/_output/kusama/pallets/Utility.ts @@ -16,8 +16,8 @@ import type * as t from "../mod.ts" * The dispatch origin for this call must be _Signed_. */ export function as_derivative( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "as_derivative" } } } @@ -43,8 +43,8 @@ export function as_derivative( * event is deposited. */ export function batch( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "batch" } } } @@ -65,8 +65,8 @@ export function batch( * # */ export function batch_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "batch_all" } } } @@ -83,8 +83,8 @@ export function batch_all( * # */ export function dispatch_as( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "dispatch_as" } } } @@ -105,7 +105,7 @@ export function dispatch_as( * # */ export function force_batch( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "force_batch" } } } diff --git a/codegen/_output/kusama/pallets/Vesting.ts b/codegen/_output/kusama/pallets/Vesting.ts index 7f5b1a9c8..878fb6f4e 100644 --- a/codegen/_output/kusama/pallets/Vesting.ts +++ b/codegen/_output/kusama/pallets/Vesting.ts @@ -45,8 +45,8 @@ export const Vesting = { * # */ export function force_vested_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "force_vested_transfer" } } } @@ -74,8 +74,8 @@ export function force_vested_transfer( * - `schedule2_index`: index of the second schedule to merge. */ export function merge_schedules( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "merge_schedules" } } } @@ -94,7 +94,7 @@ export function merge_schedules( * - Writes: Vesting Storage, Balances Locks, [Sender Account] * # */ -export function vest(): t.polkadot_runtime.RuntimeCall { +export function vest(): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { type: "vest" } } } @@ -116,8 +116,8 @@ export function vest(): t.polkadot_runtime.RuntimeCall { * # */ export function vest_other( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "vest_other" } } } @@ -141,7 +141,7 @@ export function vest_other( * # */ export function vested_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "vested_transfer" } } } diff --git a/codegen/_output/kusama/pallets/VoterList.ts b/codegen/_output/kusama/pallets/VoterList.ts index 67113267d..b9d36aa53 100644 --- a/codegen/_output/kusama/pallets/VoterList.ts +++ b/codegen/_output/kusama/pallets/VoterList.ts @@ -48,8 +48,8 @@ export const ListNodes = { * - and `origin` has a greater `Score` than `lighter`. */ export function put_in_front_of( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "VoterList", value: { ...value, type: "put_in_front_of" } } } @@ -66,7 +66,7 @@ export function put_in_front_of( * If `dislocated` does not exists, it returns an error. */ export function rebag( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "VoterList", value: { ...value, type: "rebag" } } } diff --git a/codegen/_output/kusama/pallets/XcmPallet.ts b/codegen/_output/kusama/pallets/XcmPallet.ts index 6cbbd708e..c03154e71 100644 --- a/codegen/_output/kusama/pallets/XcmPallet.ts +++ b/codegen/_output/kusama/pallets/XcmPallet.ts @@ -112,8 +112,8 @@ export const VersionNotifyTargets = { * to completion; only that *some* of it was executed. */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "execute" } } } @@ -125,8 +125,8 @@ export function execute( * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. */ export function force_default_xcm_version( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_default_xcm_version" } } } @@ -137,8 +137,8 @@ export function force_default_xcm_version( * - `location`: The location to which we should subscribe for XCM version notifications. */ export function force_subscribe_version_notify( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_subscribe_version_notify" } } } @@ -151,8 +151,8 @@ export function force_subscribe_version_notify( * notifications which we no longer desire. */ export function force_unsubscribe_version_notify( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_unsubscribe_version_notify" } } } @@ -165,8 +165,8 @@ export function force_unsubscribe_version_notify( * - `xcm_version`: The latest version of XCM that `location` supports. */ export function force_xcm_version( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_xcm_version" } } } @@ -191,8 +191,8 @@ export function force_xcm_version( * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_reserve_transfer_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "limited_reserve_transfer_assets" } } } @@ -216,8 +216,8 @@ export function limited_reserve_transfer_assets( * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_teleport_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "limited_teleport_assets" } } } @@ -240,14 +240,14 @@ export function limited_teleport_assets( * fees. */ export function reserve_transfer_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "reserve_transfer_assets" } } } export function send( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "send" } } } @@ -269,7 +269,7 @@ export function send( * fees. */ export function teleport_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "teleport_assets" } } } diff --git a/codegen/_output/kusama/polkadot_core_primitives.ts b/codegen/_output/kusama/polkadot_core_primitives.ts deleted file mode 100644 index a8e55ae4f..000000000 --- a/codegen/_output/kusama/polkadot_core_primitives.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $candidateHash: $.Codec = _codec.$114 - -export const $inboundDownwardMessage: $.Codec = - _codec.$683 - -export const $inboundHrmpMessage: $.Codec = - _codec.$691 - -export const $outboundHrmpMessage: $.Codec = - _codec.$392 - -export type CandidateHash = t.primitive_types.H256 - -export function CandidateHash(value: t.polkadot_core_primitives.CandidateHash) { - return value -} - -export interface InboundDownwardMessage { - sent_at: t.u32 - msg: Uint8Array -} - -export function InboundDownwardMessage(value: t.polkadot_core_primitives.InboundDownwardMessage) { - return value -} - -export interface InboundHrmpMessage { - sent_at: t.u32 - data: Uint8Array -} - -export function InboundHrmpMessage(value: t.polkadot_core_primitives.InboundHrmpMessage) { - return value -} - -export interface OutboundHrmpMessage { - recipient: t.polkadot_parachain.primitives.Id - data: Uint8Array -} - -export function OutboundHrmpMessage(value: t.polkadot_core_primitives.OutboundHrmpMessage) { - return value -} diff --git a/codegen/_output/kusama/polkadot_parachain/primitives.ts b/codegen/_output/kusama/polkadot_parachain/primitives.ts deleted file mode 100644 index f9ab65262..000000000 --- a/codegen/_output/kusama/polkadot_parachain/primitives.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $headData: $.Codec = _codec.$104 - -export const $hrmpChannelId: $.Codec = _codec.$112 - -export const $id: $.Codec = _codec.$98 - -export const $validationCode: $.Codec = _codec.$394 - -export const $validationCodeHash: $.Codec = - _codec.$103 - -export type HeadData = Uint8Array - -export function HeadData(value: t.polkadot_parachain.primitives.HeadData) { - return value -} - -export interface HrmpChannelId { - sender: t.polkadot_parachain.primitives.Id - recipient: t.polkadot_parachain.primitives.Id -} - -export function HrmpChannelId(value: t.polkadot_parachain.primitives.HrmpChannelId) { - return value -} - -export type Id = t.u32 - -export function Id(value: t.polkadot_parachain.primitives.Id) { - return value -} - -export type ValidationCode = Uint8Array - -export function ValidationCode(value: t.polkadot_parachain.primitives.ValidationCode) { - return value -} - -export type ValidationCodeHash = t.primitive_types.H256 - -export function ValidationCodeHash(value: t.polkadot_parachain.primitives.ValidationCodeHash) { - return value -} diff --git a/codegen/_output/kusama/polkadot_primitives/v2/assignment_app.ts b/codegen/_output/kusama/polkadot_primitives/v2/assignment_app.ts deleted file mode 100644 index b9c1ce5c3..000000000 --- a/codegen/_output/kusama/polkadot_primitives/v2/assignment_app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$214 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.assignment_app.Public) { - return value -} diff --git a/codegen/_output/kusama/polkadot_primitives/v2/collator_app.ts b/codegen/_output/kusama/polkadot_primitives/v2/collator_app.ts deleted file mode 100644 index eb96a0a47..000000000 --- a/codegen/_output/kusama/polkadot_primitives/v2/collator_app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$99 - -export const $signature: $.Codec = _codec.$100 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.collator_app.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.polkadot_primitives.v2.collator_app.Signature) { - return value -} diff --git a/codegen/_output/kusama/polkadot_primitives/v2/mod.ts b/codegen/_output/kusama/polkadot_primitives/v2/mod.ts deleted file mode 100644 index 4ad2b58a2..000000000 --- a/codegen/_output/kusama/polkadot_primitives/v2/mod.ts +++ /dev/null @@ -1,368 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as assignment_app from "./assignment_app.ts" -export * as collator_app from "./collator_app.ts" -export * as signed from "./signed.ts" -export * as validator_app from "./validator_app.ts" - -export const $availabilityBitfield: $.Codec = - _codec.$382 - -export const $backedCandidate: $.Codec = _codec.$388 - -export const $candidateCommitments: $.Codec = - _codec.$390 - -export const $candidateDescriptor: $.Codec = - _codec.$97 - -export const $candidateReceipt: $.Codec = _codec.$96 - -export const $committedCandidateReceipt: $.Codec< - t.polkadot_primitives.v2.CommittedCandidateReceipt -> = _codec.$389 - -export const $coreIndex: $.Codec = _codec.$105 - -export const $coreOccupied: $.Codec = _codec.$661 - -export const $disputeState: $.Codec = _codec.$699 - -export const $disputeStatement: $.Codec = _codec.$401 - -export const $disputeStatementSet: $.Codec = - _codec.$398 - -export const $groupIndex: $.Codec = _codec.$106 - -export const $inherentData: $.Codec = _codec.$379 - -export const $invalidDisputeStatementKind: $.Codec< - t.polkadot_primitives.v2.InvalidDisputeStatementKind -> = _codec.$403 - -export const $parathreadClaim: $.Codec = _codec.$658 - -export const $parathreadEntry: $.Codec = _codec.$657 - -export const $pvfCheckStatement: $.Codec = _codec.$405 - -export const $scrapedOnChainVotes: $.Codec = - _codec.$647 - -export const $sessionInfo: $.Codec = _codec.$696 - -export const $upgradeGoAhead: $.Codec = _codec.$676 - -export const $upgradeRestriction: $.Codec = _codec.$677 - -export const $validDisputeStatementKind: $.Codec< - t.polkadot_primitives.v2.ValidDisputeStatementKind -> = _codec.$402 - -export const $validatorIndex: $.Codec = _codec.$385 - -export const $validityAttestation: $.Codec = - _codec.$396 - -export type AvailabilityBitfield = $.BitSequence - -export function AvailabilityBitfield(value: t.polkadot_primitives.v2.AvailabilityBitfield) { - return value -} - -export interface BackedCandidate { - candidate: t.polkadot_primitives.v2.CommittedCandidateReceipt - validity_votes: Array - validator_indices: $.BitSequence -} - -export function BackedCandidate(value: t.polkadot_primitives.v2.BackedCandidate) { - return value -} - -export interface CandidateCommitments { - upward_messages: Array - horizontal_messages: Array - new_validation_code: t.polkadot_parachain.primitives.ValidationCode | undefined - head_data: t.polkadot_parachain.primitives.HeadData - processed_downward_messages: t.u32 - hrmp_watermark: t.u32 -} - -export function CandidateCommitments(value: t.polkadot_primitives.v2.CandidateCommitments) { - return value -} - -export interface CandidateDescriptor { - para_id: t.polkadot_parachain.primitives.Id - relay_parent: t.primitive_types.H256 - collator: t.polkadot_primitives.v2.collator_app.Public - persisted_validation_data_hash: t.primitive_types.H256 - pov_hash: t.primitive_types.H256 - erasure_root: t.primitive_types.H256 - signature: t.polkadot_primitives.v2.collator_app.Signature - para_head: t.primitive_types.H256 - validation_code_hash: t.polkadot_parachain.primitives.ValidationCodeHash -} - -export function CandidateDescriptor(value: t.polkadot_primitives.v2.CandidateDescriptor) { - return value -} - -export interface CandidateReceipt { - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - commitments_hash: t.primitive_types.H256 -} - -export function CandidateReceipt(value: t.polkadot_primitives.v2.CandidateReceipt) { - return value -} - -export interface CommittedCandidateReceipt { - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - commitments: t.polkadot_primitives.v2.CandidateCommitments -} - -export function CommittedCandidateReceipt( - value: t.polkadot_primitives.v2.CommittedCandidateReceipt, -) { - return value -} - -export type CoreIndex = t.u32 - -export function CoreIndex(value: t.polkadot_primitives.v2.CoreIndex) { - return value -} - -export type CoreOccupied = - | t.polkadot_primitives.v2.CoreOccupied.Parathread - | t.polkadot_primitives.v2.CoreOccupied.Parachain -export namespace CoreOccupied { - export interface Parathread { - type: "Parathread" - value: t.polkadot_primitives.v2.ParathreadEntry - } - export interface Parachain { - type: "Parachain" - } - export function Parathread( - value: t.polkadot_primitives.v2.CoreOccupied.Parathread["value"], - ): t.polkadot_primitives.v2.CoreOccupied.Parathread { - return { type: "Parathread", value } - } - export function Parachain(): t.polkadot_primitives.v2.CoreOccupied.Parachain { - return { type: "Parachain" } - } -} - -export interface DisputeState { - validators_for: $.BitSequence - validators_against: $.BitSequence - start: t.u32 - concluded_at: t.u32 | undefined -} - -export function DisputeState(value: t.polkadot_primitives.v2.DisputeState) { - return value -} - -export type DisputeStatement = - | t.polkadot_primitives.v2.DisputeStatement.Valid - | t.polkadot_primitives.v2.DisputeStatement.Invalid -export namespace DisputeStatement { - export interface Valid { - type: "Valid" - value: t.polkadot_primitives.v2.ValidDisputeStatementKind - } - export interface Invalid { - type: "Invalid" - value: t.polkadot_primitives.v2.InvalidDisputeStatementKind - } - export function Valid( - value: t.polkadot_primitives.v2.DisputeStatement.Valid["value"], - ): t.polkadot_primitives.v2.DisputeStatement.Valid { - return { type: "Valid", value } - } - export function Invalid( - value: t.polkadot_primitives.v2.DisputeStatement.Invalid["value"], - ): t.polkadot_primitives.v2.DisputeStatement.Invalid { - return { type: "Invalid", value } - } -} - -export interface DisputeStatementSet { - candidate_hash: t.polkadot_core_primitives.CandidateHash - session: t.u32 - statements: Array< - [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, - ] - > -} - -export function DisputeStatementSet(value: t.polkadot_primitives.v2.DisputeStatementSet) { - return value -} - -export type GroupIndex = t.u32 - -export function GroupIndex(value: t.polkadot_primitives.v2.GroupIndex) { - return value -} - -export interface InherentData { - bitfields: Array - backed_candidates: Array - disputes: Array - parent_header: t.sp_runtime.generic.header.Header -} - -export function InherentData(value: t.polkadot_primitives.v2.InherentData) { - return value -} - -export type InvalidDisputeStatementKind = "Explicit" - -export type ParathreadClaim = [ - t.polkadot_parachain.primitives.Id, - t.polkadot_primitives.v2.collator_app.Public, -] - -export function ParathreadClaim(...value: t.polkadot_primitives.v2.ParathreadClaim) { - return value -} - -export interface ParathreadEntry { - claim: t.polkadot_primitives.v2.ParathreadClaim - retries: t.u32 -} - -export function ParathreadEntry(value: t.polkadot_primitives.v2.ParathreadEntry) { - return value -} - -export interface PvfCheckStatement { - accept: boolean - subject: t.polkadot_parachain.primitives.ValidationCodeHash - session_index: t.u32 - validator_index: t.polkadot_primitives.v2.ValidatorIndex -} - -export function PvfCheckStatement(value: t.polkadot_primitives.v2.PvfCheckStatement) { - return value -} - -export interface ScrapedOnChainVotes { - session: t.u32 - backing_validators_per_candidate: Array< - [ - t.polkadot_primitives.v2.CandidateReceipt, - Array< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] - >, - ] - > - disputes: Array -} - -export function ScrapedOnChainVotes(value: t.polkadot_primitives.v2.ScrapedOnChainVotes) { - return value -} - -export interface SessionInfo { - active_validator_indices: Array - random_seed: Uint8Array - dispute_period: t.u32 - validators: Array - discovery_keys: Array - assignment_keys: Array - validator_groups: Array> - n_cores: t.u32 - zeroth_delay_tranche_width: t.u32 - relay_vrf_modulo_samples: t.u32 - n_delay_tranches: t.u32 - no_show_slots: t.u32 - needed_approvals: t.u32 -} - -export function SessionInfo(value: t.polkadot_primitives.v2.SessionInfo) { - return value -} - -export type UpgradeGoAhead = "Abort" | "GoAhead" - -export type UpgradeRestriction = "Present" - -export type ValidDisputeStatementKind = - | t.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit - | t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded - | t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid - | t.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking -export namespace ValidDisputeStatementKind { - export interface Explicit { - type: "Explicit" - } - export interface BackingSeconded { - type: "BackingSeconded" - value: t.primitive_types.H256 - } - export interface BackingValid { - type: "BackingValid" - value: t.primitive_types.H256 - } - export interface ApprovalChecking { - type: "ApprovalChecking" - } - export function Explicit(): t.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit { - return { type: "Explicit" } - } - export function BackingSeconded( - value: t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded["value"], - ): t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded { - return { type: "BackingSeconded", value } - } - export function BackingValid( - value: t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid["value"], - ): t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid { - return { type: "BackingValid", value } - } - export function ApprovalChecking(): t.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking { - return { type: "ApprovalChecking" } - } -} - -export type ValidatorIndex = t.u32 - -export function ValidatorIndex(value: t.polkadot_primitives.v2.ValidatorIndex) { - return value -} - -export type ValidityAttestation = - | t.polkadot_primitives.v2.ValidityAttestation.Implicit - | t.polkadot_primitives.v2.ValidityAttestation.Explicit -export namespace ValidityAttestation { - export interface Implicit { - type: "Implicit" - value: t.polkadot_primitives.v2.validator_app.Signature - } - export interface Explicit { - type: "Explicit" - value: t.polkadot_primitives.v2.validator_app.Signature - } - export function Implicit( - value: t.polkadot_primitives.v2.ValidityAttestation.Implicit["value"], - ): t.polkadot_primitives.v2.ValidityAttestation.Implicit { - return { type: "Implicit", value } - } - export function Explicit( - value: t.polkadot_primitives.v2.ValidityAttestation.Explicit["value"], - ): t.polkadot_primitives.v2.ValidityAttestation.Explicit { - return { type: "Explicit", value } - } -} diff --git a/codegen/_output/kusama/polkadot_primitives/v2/signed.ts b/codegen/_output/kusama/polkadot_primitives/v2/signed.ts deleted file mode 100644 index e2d11430f..000000000 --- a/codegen/_output/kusama/polkadot_primitives/v2/signed.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $uncheckedSigned: $.Codec = - _codec.$381 - -export interface UncheckedSigned { - payload: t.polkadot_primitives.v2.AvailabilityBitfield - validator_index: t.polkadot_primitives.v2.ValidatorIndex - signature: t.polkadot_primitives.v2.validator_app.Signature -} - -export function UncheckedSigned(value: t.polkadot_primitives.v2.signed.UncheckedSigned) { - return value -} diff --git a/codegen/_output/kusama/polkadot_primitives/v2/validator_app.ts b/codegen/_output/kusama/polkadot_primitives/v2/validator_app.ts deleted file mode 100644 index e56ded198..000000000 --- a/codegen/_output/kusama/polkadot_primitives/v2/validator_app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$213 - -export const $signature: $.Codec = _codec.$386 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.validator_app.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.polkadot_primitives.v2.validator_app.Signature) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime.ts b/codegen/_output/kusama/polkadot_runtime.ts deleted file mode 100644 index d07d2f44d..000000000 --- a/codegen/_output/kusama/polkadot_runtime.ts +++ /dev/null @@ -1,1223 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $nposCompactSolution16: $.Codec = _codec.$312 - -export const $originCaller: $.Codec = _codec.$256 - -export const $proxyType: $.Codec = _codec.$79 - -export const $runtime: $.Codec = _codec.$737 - -export const $runtimeCall: $.Codec = _codec.$181 - -export const $runtimeEvent: $.Codec = _codec.$19 - -export const $sessionKeys: $.Codec = _codec.$212 - -export interface NposCompactSolution16 { - votes1: Array<[t.Compact, t.Compact]> - votes2: Array< - [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, - ] - > - votes3: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes4: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes5: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes6: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes7: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes8: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes9: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes10: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes11: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes12: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes13: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes14: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes15: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes16: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > -} - -export function NposCompactSolution16(value: t.polkadot_runtime.NposCompactSolution16) { - return value -} - -export type OriginCaller = - | t.polkadot_runtime.OriginCaller.system - | t.polkadot_runtime.OriginCaller.Council - | t.polkadot_runtime.OriginCaller.TechnicalCommittee - | t.polkadot_runtime.OriginCaller.ParachainsOrigin - | t.polkadot_runtime.OriginCaller.XcmPallet - | t.polkadot_runtime.OriginCaller.Void -export namespace OriginCaller { - export interface system { - type: "system" - value: t.frame_support.dispatch.RawOrigin - } - export interface Council { - type: "Council" - value: t.pallet_collective.RawOrigin - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.RawOrigin - } - export interface ParachainsOrigin { - type: "ParachainsOrigin" - value: t.polkadot_runtime_parachains.origin.pallet.Origin - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Origin - } - export interface Void { - type: "Void" - value: t.sp_core.Void - } - export function system( - value: t.polkadot_runtime.OriginCaller.system["value"], - ): t.polkadot_runtime.OriginCaller.system { - return { type: "system", value } - } - export function Council( - value: t.polkadot_runtime.OriginCaller.Council["value"], - ): t.polkadot_runtime.OriginCaller.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.OriginCaller.TechnicalCommittee["value"], - ): t.polkadot_runtime.OriginCaller.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function ParachainsOrigin( - value: t.polkadot_runtime.OriginCaller.ParachainsOrigin["value"], - ): t.polkadot_runtime.OriginCaller.ParachainsOrigin { - return { type: "ParachainsOrigin", value } - } - export function XcmPallet( - value: t.polkadot_runtime.OriginCaller.XcmPallet["value"], - ): t.polkadot_runtime.OriginCaller.XcmPallet { - return { type: "XcmPallet", value } - } - export function Void( - value: t.polkadot_runtime.OriginCaller.Void["value"], - ): t.polkadot_runtime.OriginCaller.Void { - return { type: "Void", value } - } -} - -export type ProxyType = - | "Any" - | "NonTransfer" - | "Governance" - | "Staking" - | "IdentityJudgement" - | "CancelProxy" - | "Auction" - -export function Runtime() { - return null -} - -export type Runtime = null - -export type RuntimeCall = - | t.polkadot_runtime.RuntimeCall.System - | t.polkadot_runtime.RuntimeCall.Scheduler - | t.polkadot_runtime.RuntimeCall.Preimage - | t.polkadot_runtime.RuntimeCall.Babe - | t.polkadot_runtime.RuntimeCall.Timestamp - | t.polkadot_runtime.RuntimeCall.Indices - | t.polkadot_runtime.RuntimeCall.Balances - | t.polkadot_runtime.RuntimeCall.Authorship - | t.polkadot_runtime.RuntimeCall.Staking - | t.polkadot_runtime.RuntimeCall.Session - | t.polkadot_runtime.RuntimeCall.Grandpa - | t.polkadot_runtime.RuntimeCall.ImOnline - | t.polkadot_runtime.RuntimeCall.Democracy - | t.polkadot_runtime.RuntimeCall.Council - | t.polkadot_runtime.RuntimeCall.TechnicalCommittee - | t.polkadot_runtime.RuntimeCall.PhragmenElection - | t.polkadot_runtime.RuntimeCall.TechnicalMembership - | t.polkadot_runtime.RuntimeCall.Treasury - | t.polkadot_runtime.RuntimeCall.Claims - | t.polkadot_runtime.RuntimeCall.Vesting - | t.polkadot_runtime.RuntimeCall.Utility - | t.polkadot_runtime.RuntimeCall.Identity - | t.polkadot_runtime.RuntimeCall.Proxy - | t.polkadot_runtime.RuntimeCall.Multisig - | t.polkadot_runtime.RuntimeCall.Bounties - | t.polkadot_runtime.RuntimeCall.ChildBounties - | t.polkadot_runtime.RuntimeCall.Tips - | t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase - | t.polkadot_runtime.RuntimeCall.VoterList - | t.polkadot_runtime.RuntimeCall.NominationPools - | t.polkadot_runtime.RuntimeCall.FastUnstake - | t.polkadot_runtime.RuntimeCall.Configuration - | t.polkadot_runtime.RuntimeCall.ParasShared - | t.polkadot_runtime.RuntimeCall.ParaInclusion - | t.polkadot_runtime.RuntimeCall.ParaInherent - | t.polkadot_runtime.RuntimeCall.Paras - | t.polkadot_runtime.RuntimeCall.Initializer - | t.polkadot_runtime.RuntimeCall.Dmp - | t.polkadot_runtime.RuntimeCall.Ump - | t.polkadot_runtime.RuntimeCall.Hrmp - | t.polkadot_runtime.RuntimeCall.ParasDisputes - | t.polkadot_runtime.RuntimeCall.Registrar - | t.polkadot_runtime.RuntimeCall.Slots - | t.polkadot_runtime.RuntimeCall.Auctions - | t.polkadot_runtime.RuntimeCall.Crowdloan - | t.polkadot_runtime.RuntimeCall.XcmPallet -export namespace RuntimeCall { - export interface System { - type: "System" - value: t.frame_system.pallet.Call - } - export interface Scheduler { - type: "Scheduler" - value: t.pallet_scheduler.pallet.Call - } - export interface Preimage { - type: "Preimage" - value: t.pallet_preimage.pallet.Call - } - export interface Babe { - type: "Babe" - value: t.pallet_babe.pallet.Call - } - export interface Timestamp { - type: "Timestamp" - value: t.pallet_timestamp.pallet.Call - } - export interface Indices { - type: "Indices" - value: t.pallet_indices.pallet.Call - } - export interface Balances { - type: "Balances" - value: t.pallet_balances.pallet.Call - } - export interface Authorship { - type: "Authorship" - value: t.pallet_authorship.pallet.Call - } - export interface Staking { - type: "Staking" - value: t.pallet_staking.pallet.pallet.Call - } - export interface Session { - type: "Session" - value: t.pallet_session.pallet.Call - } - export interface Grandpa { - type: "Grandpa" - value: t.pallet_grandpa.pallet.Call - } - export interface ImOnline { - type: "ImOnline" - value: t.pallet_im_online.pallet.Call - } - export interface Democracy { - type: "Democracy" - value: t.pallet_democracy.pallet.Call - } - export interface Council { - type: "Council" - value: t.pallet_collective.pallet.Call - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.pallet.Call - } - export interface PhragmenElection { - type: "PhragmenElection" - value: t.pallet_elections_phragmen.pallet.Call - } - export interface TechnicalMembership { - type: "TechnicalMembership" - value: t.pallet_membership.pallet.Call - } - export interface Treasury { - type: "Treasury" - value: t.pallet_treasury.pallet.Call - } - export interface Claims { - type: "Claims" - value: t.polkadot_runtime_common.claims.pallet.Call - } - export interface Vesting { - type: "Vesting" - value: t.pallet_vesting.pallet.Call - } - export interface Utility { - type: "Utility" - value: t.pallet_utility.pallet.Call - } - export interface Identity { - type: "Identity" - value: t.pallet_identity.pallet.Call - } - export interface Proxy { - type: "Proxy" - value: t.pallet_proxy.pallet.Call - } - export interface Multisig { - type: "Multisig" - value: t.pallet_multisig.pallet.Call - } - export interface Bounties { - type: "Bounties" - value: t.pallet_bounties.pallet.Call - } - export interface ChildBounties { - type: "ChildBounties" - value: t.pallet_child_bounties.pallet.Call - } - export interface Tips { - type: "Tips" - value: t.pallet_tips.pallet.Call - } - export interface ElectionProviderMultiPhase { - type: "ElectionProviderMultiPhase" - value: t.pallet_election_provider_multi_phase.pallet.Call - } - export interface VoterList { - type: "VoterList" - value: t.pallet_bags_list.pallet.Call - } - export interface NominationPools { - type: "NominationPools" - value: t.pallet_nomination_pools.pallet.Call - } - export interface FastUnstake { - type: "FastUnstake" - value: t.pallet_fast_unstake.pallet.Call - } - export interface Configuration { - type: "Configuration" - value: t.polkadot_runtime_parachains.configuration.pallet.Call - } - export interface ParasShared { - type: "ParasShared" - value: t.polkadot_runtime_parachains.shared.pallet.Call - } - export interface ParaInclusion { - type: "ParaInclusion" - value: t.polkadot_runtime_parachains.inclusion.pallet.Call - } - export interface ParaInherent { - type: "ParaInherent" - value: t.polkadot_runtime_parachains.paras_inherent.pallet.Call - } - export interface Paras { - type: "Paras" - value: t.polkadot_runtime_parachains.paras.pallet.Call - } - export interface Initializer { - type: "Initializer" - value: t.polkadot_runtime_parachains.initializer.pallet.Call - } - export interface Dmp { - type: "Dmp" - value: t.polkadot_runtime_parachains.dmp.pallet.Call - } - export interface Ump { - type: "Ump" - value: t.polkadot_runtime_parachains.ump.pallet.Call - } - export interface Hrmp { - type: "Hrmp" - value: t.polkadot_runtime_parachains.hrmp.pallet.Call - } - export interface ParasDisputes { - type: "ParasDisputes" - value: t.polkadot_runtime_parachains.disputes.pallet.Call - } - export interface Registrar { - type: "Registrar" - value: t.polkadot_runtime_common.paras_registrar.pallet.Call - } - export interface Slots { - type: "Slots" - value: t.polkadot_runtime_common.slots.pallet.Call - } - export interface Auctions { - type: "Auctions" - value: t.polkadot_runtime_common.auctions.pallet.Call - } - export interface Crowdloan { - type: "Crowdloan" - value: t.polkadot_runtime_common.crowdloan.pallet.Call - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Call - } - export function System( - value: t.polkadot_runtime.RuntimeCall.System["value"], - ): t.polkadot_runtime.RuntimeCall.System { - return { type: "System", value } - } - export function Scheduler( - value: t.polkadot_runtime.RuntimeCall.Scheduler["value"], - ): t.polkadot_runtime.RuntimeCall.Scheduler { - return { type: "Scheduler", value } - } - export function Preimage( - value: t.polkadot_runtime.RuntimeCall.Preimage["value"], - ): t.polkadot_runtime.RuntimeCall.Preimage { - return { type: "Preimage", value } - } - export function Babe( - value: t.polkadot_runtime.RuntimeCall.Babe["value"], - ): t.polkadot_runtime.RuntimeCall.Babe { - return { type: "Babe", value } - } - export function Timestamp( - value: t.polkadot_runtime.RuntimeCall.Timestamp["value"], - ): t.polkadot_runtime.RuntimeCall.Timestamp { - return { type: "Timestamp", value } - } - export function Indices( - value: t.polkadot_runtime.RuntimeCall.Indices["value"], - ): t.polkadot_runtime.RuntimeCall.Indices { - return { type: "Indices", value } - } - export function Balances( - value: t.polkadot_runtime.RuntimeCall.Balances["value"], - ): t.polkadot_runtime.RuntimeCall.Balances { - return { type: "Balances", value } - } - export function Authorship( - value: t.polkadot_runtime.RuntimeCall.Authorship["value"], - ): t.polkadot_runtime.RuntimeCall.Authorship { - return { type: "Authorship", value } - } - export function Staking( - value: t.polkadot_runtime.RuntimeCall.Staking["value"], - ): t.polkadot_runtime.RuntimeCall.Staking { - return { type: "Staking", value } - } - export function Session( - value: t.polkadot_runtime.RuntimeCall.Session["value"], - ): t.polkadot_runtime.RuntimeCall.Session { - return { type: "Session", value } - } - export function Grandpa( - value: t.polkadot_runtime.RuntimeCall.Grandpa["value"], - ): t.polkadot_runtime.RuntimeCall.Grandpa { - return { type: "Grandpa", value } - } - export function ImOnline( - value: t.polkadot_runtime.RuntimeCall.ImOnline["value"], - ): t.polkadot_runtime.RuntimeCall.ImOnline { - return { type: "ImOnline", value } - } - export function Democracy( - value: t.polkadot_runtime.RuntimeCall.Democracy["value"], - ): t.polkadot_runtime.RuntimeCall.Democracy { - return { type: "Democracy", value } - } - export function Council( - value: t.polkadot_runtime.RuntimeCall.Council["value"], - ): t.polkadot_runtime.RuntimeCall.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.RuntimeCall.TechnicalCommittee["value"], - ): t.polkadot_runtime.RuntimeCall.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function PhragmenElection( - value: t.polkadot_runtime.RuntimeCall.PhragmenElection["value"], - ): t.polkadot_runtime.RuntimeCall.PhragmenElection { - return { type: "PhragmenElection", value } - } - export function TechnicalMembership( - value: t.polkadot_runtime.RuntimeCall.TechnicalMembership["value"], - ): t.polkadot_runtime.RuntimeCall.TechnicalMembership { - return { type: "TechnicalMembership", value } - } - export function Treasury( - value: t.polkadot_runtime.RuntimeCall.Treasury["value"], - ): t.polkadot_runtime.RuntimeCall.Treasury { - return { type: "Treasury", value } - } - export function Claims( - value: t.polkadot_runtime.RuntimeCall.Claims["value"], - ): t.polkadot_runtime.RuntimeCall.Claims { - return { type: "Claims", value } - } - export function Vesting( - value: t.polkadot_runtime.RuntimeCall.Vesting["value"], - ): t.polkadot_runtime.RuntimeCall.Vesting { - return { type: "Vesting", value } - } - export function Utility( - value: t.polkadot_runtime.RuntimeCall.Utility["value"], - ): t.polkadot_runtime.RuntimeCall.Utility { - return { type: "Utility", value } - } - export function Identity( - value: t.polkadot_runtime.RuntimeCall.Identity["value"], - ): t.polkadot_runtime.RuntimeCall.Identity { - return { type: "Identity", value } - } - export function Proxy( - value: t.polkadot_runtime.RuntimeCall.Proxy["value"], - ): t.polkadot_runtime.RuntimeCall.Proxy { - return { type: "Proxy", value } - } - export function Multisig( - value: t.polkadot_runtime.RuntimeCall.Multisig["value"], - ): t.polkadot_runtime.RuntimeCall.Multisig { - return { type: "Multisig", value } - } - export function Bounties( - value: t.polkadot_runtime.RuntimeCall.Bounties["value"], - ): t.polkadot_runtime.RuntimeCall.Bounties { - return { type: "Bounties", value } - } - export function ChildBounties( - value: t.polkadot_runtime.RuntimeCall.ChildBounties["value"], - ): t.polkadot_runtime.RuntimeCall.ChildBounties { - return { type: "ChildBounties", value } - } - export function Tips( - value: t.polkadot_runtime.RuntimeCall.Tips["value"], - ): t.polkadot_runtime.RuntimeCall.Tips { - return { type: "Tips", value } - } - export function ElectionProviderMultiPhase( - value: t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase["value"], - ): t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase { - return { type: "ElectionProviderMultiPhase", value } - } - export function VoterList( - value: t.polkadot_runtime.RuntimeCall.VoterList["value"], - ): t.polkadot_runtime.RuntimeCall.VoterList { - return { type: "VoterList", value } - } - export function NominationPools( - value: t.polkadot_runtime.RuntimeCall.NominationPools["value"], - ): t.polkadot_runtime.RuntimeCall.NominationPools { - return { type: "NominationPools", value } - } - export function FastUnstake( - value: t.polkadot_runtime.RuntimeCall.FastUnstake["value"], - ): t.polkadot_runtime.RuntimeCall.FastUnstake { - return { type: "FastUnstake", value } - } - export function Configuration( - value: t.polkadot_runtime.RuntimeCall.Configuration["value"], - ): t.polkadot_runtime.RuntimeCall.Configuration { - return { type: "Configuration", value } - } - export function ParasShared( - value: t.polkadot_runtime.RuntimeCall.ParasShared["value"], - ): t.polkadot_runtime.RuntimeCall.ParasShared { - return { type: "ParasShared", value } - } - export function ParaInclusion( - value: t.polkadot_runtime.RuntimeCall.ParaInclusion["value"], - ): t.polkadot_runtime.RuntimeCall.ParaInclusion { - return { type: "ParaInclusion", value } - } - export function ParaInherent( - value: t.polkadot_runtime.RuntimeCall.ParaInherent["value"], - ): t.polkadot_runtime.RuntimeCall.ParaInherent { - return { type: "ParaInherent", value } - } - export function Paras( - value: t.polkadot_runtime.RuntimeCall.Paras["value"], - ): t.polkadot_runtime.RuntimeCall.Paras { - return { type: "Paras", value } - } - export function Initializer( - value: t.polkadot_runtime.RuntimeCall.Initializer["value"], - ): t.polkadot_runtime.RuntimeCall.Initializer { - return { type: "Initializer", value } - } - export function Dmp( - value: t.polkadot_runtime.RuntimeCall.Dmp["value"], - ): t.polkadot_runtime.RuntimeCall.Dmp { - return { type: "Dmp", value } - } - export function Ump( - value: t.polkadot_runtime.RuntimeCall.Ump["value"], - ): t.polkadot_runtime.RuntimeCall.Ump { - return { type: "Ump", value } - } - export function Hrmp( - value: t.polkadot_runtime.RuntimeCall.Hrmp["value"], - ): t.polkadot_runtime.RuntimeCall.Hrmp { - return { type: "Hrmp", value } - } - export function ParasDisputes( - value: t.polkadot_runtime.RuntimeCall.ParasDisputes["value"], - ): t.polkadot_runtime.RuntimeCall.ParasDisputes { - return { type: "ParasDisputes", value } - } - export function Registrar( - value: t.polkadot_runtime.RuntimeCall.Registrar["value"], - ): t.polkadot_runtime.RuntimeCall.Registrar { - return { type: "Registrar", value } - } - export function Slots( - value: t.polkadot_runtime.RuntimeCall.Slots["value"], - ): t.polkadot_runtime.RuntimeCall.Slots { - return { type: "Slots", value } - } - export function Auctions( - value: t.polkadot_runtime.RuntimeCall.Auctions["value"], - ): t.polkadot_runtime.RuntimeCall.Auctions { - return { type: "Auctions", value } - } - export function Crowdloan( - value: t.polkadot_runtime.RuntimeCall.Crowdloan["value"], - ): t.polkadot_runtime.RuntimeCall.Crowdloan { - return { type: "Crowdloan", value } - } - export function XcmPallet( - value: t.polkadot_runtime.RuntimeCall.XcmPallet["value"], - ): t.polkadot_runtime.RuntimeCall.XcmPallet { - return { type: "XcmPallet", value } - } -} - -export type RuntimeEvent = - | t.polkadot_runtime.RuntimeEvent.System - | t.polkadot_runtime.RuntimeEvent.Scheduler - | t.polkadot_runtime.RuntimeEvent.Preimage - | t.polkadot_runtime.RuntimeEvent.Indices - | t.polkadot_runtime.RuntimeEvent.Balances - | t.polkadot_runtime.RuntimeEvent.TransactionPayment - | t.polkadot_runtime.RuntimeEvent.Staking - | t.polkadot_runtime.RuntimeEvent.Offences - | t.polkadot_runtime.RuntimeEvent.Session - | t.polkadot_runtime.RuntimeEvent.Grandpa - | t.polkadot_runtime.RuntimeEvent.ImOnline - | t.polkadot_runtime.RuntimeEvent.Democracy - | t.polkadot_runtime.RuntimeEvent.Council - | t.polkadot_runtime.RuntimeEvent.TechnicalCommittee - | t.polkadot_runtime.RuntimeEvent.PhragmenElection - | t.polkadot_runtime.RuntimeEvent.TechnicalMembership - | t.polkadot_runtime.RuntimeEvent.Treasury - | t.polkadot_runtime.RuntimeEvent.Claims - | t.polkadot_runtime.RuntimeEvent.Vesting - | t.polkadot_runtime.RuntimeEvent.Utility - | t.polkadot_runtime.RuntimeEvent.Identity - | t.polkadot_runtime.RuntimeEvent.Proxy - | t.polkadot_runtime.RuntimeEvent.Multisig - | t.polkadot_runtime.RuntimeEvent.Bounties - | t.polkadot_runtime.RuntimeEvent.ChildBounties - | t.polkadot_runtime.RuntimeEvent.Tips - | t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase - | t.polkadot_runtime.RuntimeEvent.VoterList - | t.polkadot_runtime.RuntimeEvent.NominationPools - | t.polkadot_runtime.RuntimeEvent.FastUnstake - | t.polkadot_runtime.RuntimeEvent.ParaInclusion - | t.polkadot_runtime.RuntimeEvent.Paras - | t.polkadot_runtime.RuntimeEvent.Ump - | t.polkadot_runtime.RuntimeEvent.Hrmp - | t.polkadot_runtime.RuntimeEvent.ParasDisputes - | t.polkadot_runtime.RuntimeEvent.Registrar - | t.polkadot_runtime.RuntimeEvent.Slots - | t.polkadot_runtime.RuntimeEvent.Auctions - | t.polkadot_runtime.RuntimeEvent.Crowdloan - | t.polkadot_runtime.RuntimeEvent.XcmPallet -export namespace RuntimeEvent { - export interface System { - type: "System" - value: t.frame_system.pallet.Event - } - export interface Scheduler { - type: "Scheduler" - value: t.pallet_scheduler.pallet.Event - } - export interface Preimage { - type: "Preimage" - value: t.pallet_preimage.pallet.Event - } - export interface Indices { - type: "Indices" - value: t.pallet_indices.pallet.Event - } - export interface Balances { - type: "Balances" - value: t.pallet_balances.pallet.Event - } - export interface TransactionPayment { - type: "TransactionPayment" - value: t.pallet_transaction_payment.pallet.Event - } - export interface Staking { - type: "Staking" - value: t.pallet_staking.pallet.pallet.Event - } - export interface Offences { - type: "Offences" - value: t.pallet_offences.pallet.Event - } - export interface Session { - type: "Session" - value: t.pallet_session.pallet.Event - } - export interface Grandpa { - type: "Grandpa" - value: t.pallet_grandpa.pallet.Event - } - export interface ImOnline { - type: "ImOnline" - value: t.pallet_im_online.pallet.Event - } - export interface Democracy { - type: "Democracy" - value: t.pallet_democracy.pallet.Event - } - export interface Council { - type: "Council" - value: t.pallet_collective.pallet.Event - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.pallet.Event - } - export interface PhragmenElection { - type: "PhragmenElection" - value: t.pallet_elections_phragmen.pallet.Event - } - export interface TechnicalMembership { - type: "TechnicalMembership" - value: t.pallet_membership.pallet.Event - } - export interface Treasury { - type: "Treasury" - value: t.pallet_treasury.pallet.Event - } - export interface Claims { - type: "Claims" - value: t.polkadot_runtime_common.claims.pallet.Event - } - export interface Vesting { - type: "Vesting" - value: t.pallet_vesting.pallet.Event - } - export interface Utility { - type: "Utility" - value: t.pallet_utility.pallet.Event - } - export interface Identity { - type: "Identity" - value: t.pallet_identity.pallet.Event - } - export interface Proxy { - type: "Proxy" - value: t.pallet_proxy.pallet.Event - } - export interface Multisig { - type: "Multisig" - value: t.pallet_multisig.pallet.Event - } - export interface Bounties { - type: "Bounties" - value: t.pallet_bounties.pallet.Event - } - export interface ChildBounties { - type: "ChildBounties" - value: t.pallet_child_bounties.pallet.Event - } - export interface Tips { - type: "Tips" - value: t.pallet_tips.pallet.Event - } - export interface ElectionProviderMultiPhase { - type: "ElectionProviderMultiPhase" - value: t.pallet_election_provider_multi_phase.pallet.Event - } - export interface VoterList { - type: "VoterList" - value: t.pallet_bags_list.pallet.Event - } - export interface NominationPools { - type: "NominationPools" - value: t.pallet_nomination_pools.pallet.Event - } - export interface FastUnstake { - type: "FastUnstake" - value: t.pallet_fast_unstake.pallet.Event - } - export interface ParaInclusion { - type: "ParaInclusion" - value: t.polkadot_runtime_parachains.inclusion.pallet.Event - } - export interface Paras { - type: "Paras" - value: t.polkadot_runtime_parachains.paras.pallet.Event - } - export interface Ump { - type: "Ump" - value: t.polkadot_runtime_parachains.ump.pallet.Event - } - export interface Hrmp { - type: "Hrmp" - value: t.polkadot_runtime_parachains.hrmp.pallet.Event - } - export interface ParasDisputes { - type: "ParasDisputes" - value: t.polkadot_runtime_parachains.disputes.pallet.Event - } - export interface Registrar { - type: "Registrar" - value: t.polkadot_runtime_common.paras_registrar.pallet.Event - } - export interface Slots { - type: "Slots" - value: t.polkadot_runtime_common.slots.pallet.Event - } - export interface Auctions { - type: "Auctions" - value: t.polkadot_runtime_common.auctions.pallet.Event - } - export interface Crowdloan { - type: "Crowdloan" - value: t.polkadot_runtime_common.crowdloan.pallet.Event - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Event - } - export function System( - value: t.polkadot_runtime.RuntimeEvent.System["value"], - ): t.polkadot_runtime.RuntimeEvent.System { - return { type: "System", value } - } - export function Scheduler( - value: t.polkadot_runtime.RuntimeEvent.Scheduler["value"], - ): t.polkadot_runtime.RuntimeEvent.Scheduler { - return { type: "Scheduler", value } - } - export function Preimage( - value: t.polkadot_runtime.RuntimeEvent.Preimage["value"], - ): t.polkadot_runtime.RuntimeEvent.Preimage { - return { type: "Preimage", value } - } - export function Indices( - value: t.polkadot_runtime.RuntimeEvent.Indices["value"], - ): t.polkadot_runtime.RuntimeEvent.Indices { - return { type: "Indices", value } - } - export function Balances( - value: t.polkadot_runtime.RuntimeEvent.Balances["value"], - ): t.polkadot_runtime.RuntimeEvent.Balances { - return { type: "Balances", value } - } - export function TransactionPayment( - value: t.polkadot_runtime.RuntimeEvent.TransactionPayment["value"], - ): t.polkadot_runtime.RuntimeEvent.TransactionPayment { - return { type: "TransactionPayment", value } - } - export function Staking( - value: t.polkadot_runtime.RuntimeEvent.Staking["value"], - ): t.polkadot_runtime.RuntimeEvent.Staking { - return { type: "Staking", value } - } - export function Offences( - value: t.polkadot_runtime.RuntimeEvent.Offences["value"], - ): t.polkadot_runtime.RuntimeEvent.Offences { - return { type: "Offences", value } - } - export function Session( - value: t.polkadot_runtime.RuntimeEvent.Session["value"], - ): t.polkadot_runtime.RuntimeEvent.Session { - return { type: "Session", value } - } - export function Grandpa( - value: t.polkadot_runtime.RuntimeEvent.Grandpa["value"], - ): t.polkadot_runtime.RuntimeEvent.Grandpa { - return { type: "Grandpa", value } - } - export function ImOnline( - value: t.polkadot_runtime.RuntimeEvent.ImOnline["value"], - ): t.polkadot_runtime.RuntimeEvent.ImOnline { - return { type: "ImOnline", value } - } - export function Democracy( - value: t.polkadot_runtime.RuntimeEvent.Democracy["value"], - ): t.polkadot_runtime.RuntimeEvent.Democracy { - return { type: "Democracy", value } - } - export function Council( - value: t.polkadot_runtime.RuntimeEvent.Council["value"], - ): t.polkadot_runtime.RuntimeEvent.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.RuntimeEvent.TechnicalCommittee["value"], - ): t.polkadot_runtime.RuntimeEvent.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function PhragmenElection( - value: t.polkadot_runtime.RuntimeEvent.PhragmenElection["value"], - ): t.polkadot_runtime.RuntimeEvent.PhragmenElection { - return { type: "PhragmenElection", value } - } - export function TechnicalMembership( - value: t.polkadot_runtime.RuntimeEvent.TechnicalMembership["value"], - ): t.polkadot_runtime.RuntimeEvent.TechnicalMembership { - return { type: "TechnicalMembership", value } - } - export function Treasury( - value: t.polkadot_runtime.RuntimeEvent.Treasury["value"], - ): t.polkadot_runtime.RuntimeEvent.Treasury { - return { type: "Treasury", value } - } - export function Claims( - value: t.polkadot_runtime.RuntimeEvent.Claims["value"], - ): t.polkadot_runtime.RuntimeEvent.Claims { - return { type: "Claims", value } - } - export function Vesting( - value: t.polkadot_runtime.RuntimeEvent.Vesting["value"], - ): t.polkadot_runtime.RuntimeEvent.Vesting { - return { type: "Vesting", value } - } - export function Utility( - value: t.polkadot_runtime.RuntimeEvent.Utility["value"], - ): t.polkadot_runtime.RuntimeEvent.Utility { - return { type: "Utility", value } - } - export function Identity( - value: t.polkadot_runtime.RuntimeEvent.Identity["value"], - ): t.polkadot_runtime.RuntimeEvent.Identity { - return { type: "Identity", value } - } - export function Proxy( - value: t.polkadot_runtime.RuntimeEvent.Proxy["value"], - ): t.polkadot_runtime.RuntimeEvent.Proxy { - return { type: "Proxy", value } - } - export function Multisig( - value: t.polkadot_runtime.RuntimeEvent.Multisig["value"], - ): t.polkadot_runtime.RuntimeEvent.Multisig { - return { type: "Multisig", value } - } - export function Bounties( - value: t.polkadot_runtime.RuntimeEvent.Bounties["value"], - ): t.polkadot_runtime.RuntimeEvent.Bounties { - return { type: "Bounties", value } - } - export function ChildBounties( - value: t.polkadot_runtime.RuntimeEvent.ChildBounties["value"], - ): t.polkadot_runtime.RuntimeEvent.ChildBounties { - return { type: "ChildBounties", value } - } - export function Tips( - value: t.polkadot_runtime.RuntimeEvent.Tips["value"], - ): t.polkadot_runtime.RuntimeEvent.Tips { - return { type: "Tips", value } - } - export function ElectionProviderMultiPhase( - value: t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase["value"], - ): t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase { - return { type: "ElectionProviderMultiPhase", value } - } - export function VoterList( - value: t.polkadot_runtime.RuntimeEvent.VoterList["value"], - ): t.polkadot_runtime.RuntimeEvent.VoterList { - return { type: "VoterList", value } - } - export function NominationPools( - value: t.polkadot_runtime.RuntimeEvent.NominationPools["value"], - ): t.polkadot_runtime.RuntimeEvent.NominationPools { - return { type: "NominationPools", value } - } - export function FastUnstake( - value: t.polkadot_runtime.RuntimeEvent.FastUnstake["value"], - ): t.polkadot_runtime.RuntimeEvent.FastUnstake { - return { type: "FastUnstake", value } - } - export function ParaInclusion( - value: t.polkadot_runtime.RuntimeEvent.ParaInclusion["value"], - ): t.polkadot_runtime.RuntimeEvent.ParaInclusion { - return { type: "ParaInclusion", value } - } - export function Paras( - value: t.polkadot_runtime.RuntimeEvent.Paras["value"], - ): t.polkadot_runtime.RuntimeEvent.Paras { - return { type: "Paras", value } - } - export function Ump( - value: t.polkadot_runtime.RuntimeEvent.Ump["value"], - ): t.polkadot_runtime.RuntimeEvent.Ump { - return { type: "Ump", value } - } - export function Hrmp( - value: t.polkadot_runtime.RuntimeEvent.Hrmp["value"], - ): t.polkadot_runtime.RuntimeEvent.Hrmp { - return { type: "Hrmp", value } - } - export function ParasDisputes( - value: t.polkadot_runtime.RuntimeEvent.ParasDisputes["value"], - ): t.polkadot_runtime.RuntimeEvent.ParasDisputes { - return { type: "ParasDisputes", value } - } - export function Registrar( - value: t.polkadot_runtime.RuntimeEvent.Registrar["value"], - ): t.polkadot_runtime.RuntimeEvent.Registrar { - return { type: "Registrar", value } - } - export function Slots( - value: t.polkadot_runtime.RuntimeEvent.Slots["value"], - ): t.polkadot_runtime.RuntimeEvent.Slots { - return { type: "Slots", value } - } - export function Auctions( - value: t.polkadot_runtime.RuntimeEvent.Auctions["value"], - ): t.polkadot_runtime.RuntimeEvent.Auctions { - return { type: "Auctions", value } - } - export function Crowdloan( - value: t.polkadot_runtime.RuntimeEvent.Crowdloan["value"], - ): t.polkadot_runtime.RuntimeEvent.Crowdloan { - return { type: "Crowdloan", value } - } - export function XcmPallet( - value: t.polkadot_runtime.RuntimeEvent.XcmPallet["value"], - ): t.polkadot_runtime.RuntimeEvent.XcmPallet { - return { type: "XcmPallet", value } - } -} - -export interface SessionKeys { - grandpa: t.sp_finality_grandpa.app.Public - babe: t.sp_consensus_babe.app.Public - im_online: t.pallet_im_online.sr25519.app_sr25519.Public - para_validator: t.polkadot_primitives.v2.validator_app.Public - para_assignment: t.polkadot_primitives.v2.assignment_app.Public - authority_discovery: t.sp_authority_discovery.app.Public -} - -export function SessionKeys(value: t.polkadot_runtime.SessionKeys) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime_common/claims/mod.ts b/codegen/_output/kusama/polkadot_runtime_common/claims/mod.ts deleted file mode 100644 index 205db5f73..000000000 --- a/codegen/_output/kusama/polkadot_runtime_common/claims/mod.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $ecdsaSignature: $.Codec = _codec.$246 - -export const $ethereumAddress: $.Codec = - _codec.$73 - -export const $prevalidateAttests: $.Codec = - _codec.$736 - -export const $statementKind: $.Codec = _codec.$251 - -export type EcdsaSignature = Uint8Array - -export function EcdsaSignature(value: t.polkadot_runtime_common.claims.EcdsaSignature) { - return value -} - -export type EthereumAddress = Uint8Array - -export function EthereumAddress(value: t.polkadot_runtime_common.claims.EthereumAddress) { - return value -} - -export function PrevalidateAttests() { - return null -} - -export type PrevalidateAttests = null - -export type StatementKind = "Regular" | "Saft" diff --git a/codegen/_output/kusama/polkadot_runtime_common/crowdloan/mod.ts b/codegen/_output/kusama/polkadot_runtime_common/crowdloan/mod.ts deleted file mode 100644 index a65019c60..000000000 --- a/codegen/_output/kusama/polkadot_runtime_common/crowdloan/mod.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $fundInfo: $.Codec = _codec.$710 - -export const $lastContribution: $.Codec = - _codec.$711 - -export interface FundInfo { - depositor: t.sp_core.crypto.AccountId32 - verifier: t.sp_runtime.MultiSigner | undefined - deposit: t.u128 - raised: t.u128 - end: t.u32 - cap: t.u128 - last_contribution: t.polkadot_runtime_common.crowdloan.LastContribution - first_period: t.u32 - last_period: t.u32 - fund_index: t.u32 -} - -export function FundInfo(value: t.polkadot_runtime_common.crowdloan.FundInfo) { - return value -} - -export type LastContribution = - | t.polkadot_runtime_common.crowdloan.LastContribution.Never - | t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding - | t.polkadot_runtime_common.crowdloan.LastContribution.Ending -export namespace LastContribution { - export interface Never { - type: "Never" - } - export interface PreEnding { - type: "PreEnding" - value: t.u32 - } - export interface Ending { - type: "Ending" - value: t.u32 - } - export function Never(): t.polkadot_runtime_common.crowdloan.LastContribution.Never { - return { type: "Never" } - } - export function PreEnding( - value: t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding["value"], - ): t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding { - return { type: "PreEnding", value } - } - export function Ending( - value: t.polkadot_runtime_common.crowdloan.LastContribution.Ending["value"], - ): t.polkadot_runtime_common.crowdloan.LastContribution.Ending { - return { type: "Ending", value } - } -} diff --git a/codegen/_output/kusama/polkadot_runtime_common/paras_registrar/mod.ts b/codegen/_output/kusama/polkadot_runtime_common/paras_registrar/mod.ts deleted file mode 100644 index 952b109ba..000000000 --- a/codegen/_output/kusama/polkadot_runtime_common/paras_registrar/mod.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $paraInfo: $.Codec = _codec.$701 - -export interface ParaInfo { - manager: t.sp_core.crypto.AccountId32 - deposit: t.u128 - locked: boolean -} - -export function ParaInfo(value: t.polkadot_runtime_common.paras_registrar.ParaInfo) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/configuration/mod.ts b/codegen/_output/kusama/polkadot_runtime_parachains/configuration/mod.ts deleted file mode 100644 index 58a100e5b..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/configuration/mod.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $hostConfiguration: $.Codec< - t.polkadot_runtime_parachains.configuration.HostConfiguration -> = _codec.$638 - -export interface HostConfiguration { - max_code_size: t.u32 - max_head_data_size: t.u32 - max_upward_queue_count: t.u32 - max_upward_queue_size: t.u32 - max_upward_message_size: t.u32 - max_upward_message_num_per_candidate: t.u32 - hrmp_max_message_num_per_candidate: t.u32 - validation_upgrade_cooldown: t.u32 - validation_upgrade_delay: t.u32 - max_pov_size: t.u32 - max_downward_message_size: t.u32 - ump_service_total_weight: t.sp_weights.weight_v2.Weight - hrmp_max_parachain_outbound_channels: t.u32 - hrmp_max_parathread_outbound_channels: t.u32 - hrmp_sender_deposit: t.u128 - hrmp_recipient_deposit: t.u128 - hrmp_channel_max_capacity: t.u32 - hrmp_channel_max_total_size: t.u32 - hrmp_max_parachain_inbound_channels: t.u32 - hrmp_max_parathread_inbound_channels: t.u32 - hrmp_channel_max_message_size: t.u32 - code_retention_period: t.u32 - parathread_cores: t.u32 - parathread_retries: t.u32 - group_rotation_frequency: t.u32 - chain_availability_period: t.u32 - thread_availability_period: t.u32 - scheduling_lookahead: t.u32 - max_validators_per_core: t.u32 | undefined - max_validators: t.u32 | undefined - dispute_period: t.u32 - dispute_post_conclusion_acceptance_period: t.u32 - dispute_max_spam_slots: t.u32 - dispute_conclusion_by_time_out_period: t.u32 - no_show_slots: t.u32 - n_delay_tranches: t.u32 - zeroth_delay_tranche_width: t.u32 - needed_approvals: t.u32 - relay_vrf_modulo_samples: t.u32 - ump_max_individual_weight: t.sp_weights.weight_v2.Weight - pvf_checking_enabled: boolean - pvf_voting_ttl: t.u32 - minimum_validation_upgrade_delay: t.u32 -} - -export function HostConfiguration( - value: t.polkadot_runtime_parachains.configuration.HostConfiguration, -) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/disputes/mod.ts b/codegen/_output/kusama/polkadot_runtime_parachains/disputes/mod.ts deleted file mode 100644 index d1f7d5c78..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/disputes/mod.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $disputeLocation: $.Codec = - _codec.$115 - -export const $disputeResult: $.Codec = - _codec.$116 - -export type DisputeLocation = "Local" | "Remote" - -export type DisputeResult = "Valid" | "Invalid" diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/dmp/pallet.ts b/codegen/_output/kusama/polkadot_runtime_parachains/dmp/pallet.ts deleted file mode 100644 index 824aca702..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/dmp/pallet.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $call: $.Codec = _codec.$407 - -/** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = never diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/hrmp/mod.ts b/codegen/_output/kusama/polkadot_runtime_parachains/hrmp/mod.ts deleted file mode 100644 index 80f6f4046..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/hrmp/mod.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $hrmpChannel: $.Codec = _codec.$688 - -export const $hrmpOpenChannelRequest: $.Codec< - t.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest -> = _codec.$686 - -export interface HrmpChannel { - max_capacity: t.u32 - max_total_size: t.u32 - max_message_size: t.u32 - msg_count: t.u32 - total_size: t.u32 - mqc_head: t.primitive_types.H256 | undefined - sender_deposit: t.u128 - recipient_deposit: t.u128 -} - -export function HrmpChannel(value: t.polkadot_runtime_parachains.hrmp.HrmpChannel) { - return value -} - -export interface HrmpOpenChannelRequest { - confirmed: boolean - _age: t.u32 - sender_deposit: t.u128 - max_message_size: t.u32 - max_capacity: t.u32 - max_total_size: t.u32 -} - -export function HrmpOpenChannelRequest( - value: t.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest, -) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/inclusion/mod.ts b/codegen/_output/kusama/polkadot_runtime_parachains/inclusion/mod.ts deleted file mode 100644 index 8d4b05566..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/inclusion/mod.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $availabilityBitfieldRecord: $.Codec< - t.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord -> = _codec.$644 - -export const $candidatePendingAvailability: $.Codec< - t.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability -> = _codec.$645 - -export interface AvailabilityBitfieldRecord { - bitfield: t.polkadot_primitives.v2.AvailabilityBitfield - submitted_at: t.u32 -} - -export function AvailabilityBitfieldRecord( - value: t.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord, -) { - return value -} - -export interface CandidatePendingAvailability { - core: t.polkadot_primitives.v2.CoreIndex - hash: t.polkadot_core_primitives.CandidateHash - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - availability_votes: $.BitSequence - backers: $.BitSequence - relay_parent_number: t.u32 - backed_in_number: t.u32 - backing_group: t.polkadot_primitives.v2.GroupIndex -} - -export function CandidatePendingAvailability( - value: t.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability, -) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/initializer/mod.ts b/codegen/_output/kusama/polkadot_runtime_parachains/initializer/mod.ts deleted file mode 100644 index 13dbb8fd9..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/initializer/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $bufferedSessionChange: $.Codec< - t.polkadot_runtime_parachains.initializer.BufferedSessionChange -> = _codec.$681 - -export interface BufferedSessionChange { - validators: Array - queued: Array - session_index: t.u32 -} - -export function BufferedSessionChange( - value: t.polkadot_runtime_parachains.initializer.BufferedSessionChange, -) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/origin/pallet.ts b/codegen/_output/kusama/polkadot_runtime_parachains/origin/pallet.ts deleted file mode 100644 index ae5aabd46..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/origin/pallet.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $origin: $.Codec = _codec.$260 - -export type Origin = t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain -export namespace Origin { - export interface Parachain { - type: "Parachain" - value: t.polkadot_parachain.primitives.Id - } - export function Parachain( - value: t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain["value"], - ): t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain { - return { type: "Parachain", value } - } -} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/paras/mod.ts b/codegen/_output/kusama/polkadot_runtime_parachains/paras/mod.ts deleted file mode 100644 index 4d940b368..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/paras/mod.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $paraGenesisArgs: $.Codec = - _codec.$678 - -export const $paraLifecycle: $.Codec = - _codec.$670 - -export const $paraPastCodeMeta: $.Codec = - _codec.$672 - -export const $pvfCheckActiveVoteState: $.Codec< - t.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState -> = _codec.$666 - -export const $pvfCheckCause: $.Codec = - _codec.$668 - -export const $replacementTimes: $.Codec = - _codec.$674 - -export interface ParaGenesisArgs { - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode - parachain: boolean -} - -export function ParaGenesisArgs(value: t.polkadot_runtime_parachains.paras.ParaGenesisArgs) { - return value -} - -export type ParaLifecycle = - | "Onboarding" - | "Parathread" - | "Parachain" - | "UpgradingParathread" - | "DowngradingParachain" - | "OffboardingParathread" - | "OffboardingParachain" - -export interface ParaPastCodeMeta { - upgrade_times: Array - last_pruned: t.u32 | undefined -} - -export function ParaPastCodeMeta(value: t.polkadot_runtime_parachains.paras.ParaPastCodeMeta) { - return value -} - -export interface PvfCheckActiveVoteState { - votes_accept: $.BitSequence - votes_reject: $.BitSequence - age: t.u32 - created_at: t.u32 - causes: Array -} - -export function PvfCheckActiveVoteState( - value: t.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState, -) { - return value -} - -export type PvfCheckCause = - | t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding - | t.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade -export namespace PvfCheckCause { - export interface Onboarding { - type: "Onboarding" - value: t.polkadot_parachain.primitives.Id - } - export interface Upgrade { - type: "Upgrade" - id: t.polkadot_parachain.primitives.Id - relay_parent_number: t.u32 - } - export function Onboarding( - value: t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding["value"], - ): t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding { - return { type: "Onboarding", value } - } - export function Upgrade( - value: Omit, - ): t.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade { - return { type: "Upgrade", ...value } - } -} - -export interface ReplacementTimes { - expected_at: t.u32 - activated_at: t.u32 -} - -export function ReplacementTimes(value: t.polkadot_runtime_parachains.paras.ReplacementTimes) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/scheduler.ts b/codegen/_output/kusama/polkadot_runtime_parachains/scheduler.ts deleted file mode 100644 index 7fdaa4ecb..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/scheduler.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $assignmentKind: $.Codec = - _codec.$665 - -export const $coreAssignment: $.Codec = - _codec.$664 - -export const $parathreadClaimQueue: $.Codec< - t.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue -> = _codec.$654 - -export const $queuedParathread: $.Codec = - _codec.$656 - -export type AssignmentKind = - | t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain - | t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread -export namespace AssignmentKind { - export interface Parachain { - type: "Parachain" - } - export interface Parathread { - type: "Parathread" - value: [t.polkadot_primitives.v2.collator_app.Public, t.u32] - } - export function Parachain(): t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain { - return { type: "Parachain" } - } - export function Parathread( - ...value: t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread["value"] - ): t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread { - return { type: "Parathread", value } - } -} - -export interface CoreAssignment { - core: t.polkadot_primitives.v2.CoreIndex - para_id: t.polkadot_parachain.primitives.Id - kind: t.polkadot_runtime_parachains.scheduler.AssignmentKind - group_idx: t.polkadot_primitives.v2.GroupIndex -} - -export function CoreAssignment(value: t.polkadot_runtime_parachains.scheduler.CoreAssignment) { - return value -} - -export interface ParathreadClaimQueue { - queue: Array - next_core_offset: t.u32 -} - -export function ParathreadClaimQueue( - value: t.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue, -) { - return value -} - -export interface QueuedParathread { - claim: t.polkadot_primitives.v2.ParathreadEntry - core_offset: t.u32 -} - -export function QueuedParathread(value: t.polkadot_runtime_parachains.scheduler.QueuedParathread) { - return value -} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/shared/pallet.ts b/codegen/_output/kusama/polkadot_runtime_parachains/shared/pallet.ts deleted file mode 100644 index c40d97d4d..000000000 --- a/codegen/_output/kusama/polkadot_runtime_parachains/shared/pallet.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $call: $.Codec = _codec.$376 - -/** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = never diff --git a/codegen/_output/kusama/primitive_types.ts b/codegen/_output/kusama/primitive_types.ts deleted file mode 100644 index 10f714849..000000000 --- a/codegen/_output/kusama/primitive_types.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $h256: $.Codec = _codec.$11 - -export type H256 = Uint8Array - -export function H256(value: t.primitive_types.H256) { - return value -} diff --git a/codegen/_output/kusama/sp_arithmetic/fixed_point.ts b/codegen/_output/kusama/sp_arithmetic/fixed_point.ts deleted file mode 100644 index 674cc82fd..000000000 --- a/codegen/_output/kusama/sp_arithmetic/fixed_point.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $fixedU128: $.Codec = _codec.$479 - -export type FixedU128 = t.u128 - -export function FixedU128(value: t.sp_arithmetic.fixed_point.FixedU128) { - return value -} diff --git a/codegen/_output/kusama/sp_arithmetic/per_things.ts b/codegen/_output/kusama/sp_arithmetic/per_things.ts deleted file mode 100644 index c152d090b..000000000 --- a/codegen/_output/kusama/sp_arithmetic/per_things.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $perU16: $.Codec = _codec.$320 - -export const $perbill: $.Codec = _codec.$42 - -export const $percent: $.Codec = _codec.$205 - -export const $permill: $.Codec = _codec.$558 - -export type PerU16 = t.u16 - -export function PerU16(value: t.sp_arithmetic.per_things.PerU16) { - return value -} - -export type Perbill = t.u32 - -export function Perbill(value: t.sp_arithmetic.per_things.Perbill) { - return value -} - -export type Percent = t.u8 - -export function Percent(value: t.sp_arithmetic.per_things.Percent) { - return value -} - -export type Permill = t.u32 - -export function Permill(value: t.sp_arithmetic.per_things.Permill) { - return value -} diff --git a/codegen/_output/kusama/sp_authority_discovery/app.ts b/codegen/_output/kusama/sp_authority_discovery/app.ts deleted file mode 100644 index 918896eec..000000000 --- a/codegen/_output/kusama/sp_authority_discovery/app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$215 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.sp_authority_discovery.app.Public) { - return value -} diff --git a/codegen/_output/kusama/sp_consensus_babe/app.ts b/codegen/_output/kusama/sp_consensus_babe/app.ts deleted file mode 100644 index 40f9ba509..000000000 --- a/codegen/_output/kusama/sp_consensus_babe/app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$189 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.sp_consensus_babe.app.Public) { - return value -} diff --git a/codegen/_output/kusama/sp_consensus_babe/digests.ts b/codegen/_output/kusama/sp_consensus_babe/digests.ts deleted file mode 100644 index 423b1d1b6..000000000 --- a/codegen/_output/kusama/sp_consensus_babe/digests.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $nextConfigDescriptor: $.Codec = - _codec.$192 - -export const $preDigest: $.Codec = _codec.$462 - -export const $primaryPreDigest: $.Codec = _codec.$463 - -export const $secondaryPlainPreDigest: $.Codec< - t.sp_consensus_babe.digests.SecondaryPlainPreDigest -> = _codec.$464 - -export const $secondaryVRFPreDigest: $.Codec = - _codec.$465 - -export type NextConfigDescriptor = t.sp_consensus_babe.digests.NextConfigDescriptor.V1 -export namespace NextConfigDescriptor { - export interface V1 { - type: "V1" - c: [t.u64, t.u64] - allowed_slots: t.sp_consensus_babe.AllowedSlots - } - export function V1( - value: Omit, - ): t.sp_consensus_babe.digests.NextConfigDescriptor.V1 { - return { type: "V1", ...value } - } -} - -export type PreDigest = - | t.sp_consensus_babe.digests.PreDigest.Primary - | t.sp_consensus_babe.digests.PreDigest.SecondaryPlain - | t.sp_consensus_babe.digests.PreDigest.SecondaryVRF -export namespace PreDigest { - export interface Primary { - type: "Primary" - value: t.sp_consensus_babe.digests.PrimaryPreDigest - } - export interface SecondaryPlain { - type: "SecondaryPlain" - value: t.sp_consensus_babe.digests.SecondaryPlainPreDigest - } - export interface SecondaryVRF { - type: "SecondaryVRF" - value: t.sp_consensus_babe.digests.SecondaryVRFPreDigest - } - export function Primary( - value: t.sp_consensus_babe.digests.PreDigest.Primary["value"], - ): t.sp_consensus_babe.digests.PreDigest.Primary { - return { type: "Primary", value } - } - export function SecondaryPlain( - value: t.sp_consensus_babe.digests.PreDigest.SecondaryPlain["value"], - ): t.sp_consensus_babe.digests.PreDigest.SecondaryPlain { - return { type: "SecondaryPlain", value } - } - export function SecondaryVRF( - value: t.sp_consensus_babe.digests.PreDigest.SecondaryVRF["value"], - ): t.sp_consensus_babe.digests.PreDigest.SecondaryVRF { - return { type: "SecondaryVRF", value } - } -} - -export interface PrimaryPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot - vrf_output: Uint8Array - vrf_proof: Uint8Array -} - -export function PrimaryPreDigest(value: t.sp_consensus_babe.digests.PrimaryPreDigest) { - return value -} - -export interface SecondaryPlainPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot -} - -export function SecondaryPlainPreDigest( - value: t.sp_consensus_babe.digests.SecondaryPlainPreDigest, -) { - return value -} - -export interface SecondaryVRFPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot - vrf_output: Uint8Array - vrf_proof: Uint8Array -} - -export function SecondaryVRFPreDigest(value: t.sp_consensus_babe.digests.SecondaryVRFPreDigest) { - return value -} diff --git a/codegen/_output/kusama/sp_consensus_babe/mod.ts b/codegen/_output/kusama/sp_consensus_babe/mod.ts deleted file mode 100644 index a38c9e392..000000000 --- a/codegen/_output/kusama/sp_consensus_babe/mod.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as app from "./app.ts" -export * as digests from "./digests.ts" - -export const $allowedSlots: $.Codec = _codec.$194 - -export const $babeEpochConfiguration: $.Codec = - _codec.$466 - -export type AllowedSlots = - | "PrimarySlots" - | "PrimaryAndSecondaryPlainSlots" - | "PrimaryAndSecondaryVRFSlots" - -export interface BabeEpochConfiguration { - c: [t.u64, t.u64] - allowed_slots: t.sp_consensus_babe.AllowedSlots -} - -export function BabeEpochConfiguration(value: t.sp_consensus_babe.BabeEpochConfiguration) { - return value -} diff --git a/codegen/_output/kusama/sp_consensus_slots.ts b/codegen/_output/kusama/sp_consensus_slots.ts deleted file mode 100644 index 841934e60..000000000 --- a/codegen/_output/kusama/sp_consensus_slots.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $equivocationProof: $.Codec = _codec.$186 - -export const $slot: $.Codec = _codec.$190 - -export interface EquivocationProof { - offender: t.sp_consensus_babe.app.Public - slot: t.sp_consensus_slots.Slot - first_header: t.sp_runtime.generic.header.Header - second_header: t.sp_runtime.generic.header.Header -} - -export function EquivocationProof(value: t.sp_consensus_slots.EquivocationProof) { - return value -} - -export type Slot = t.u64 - -export function Slot(value: t.sp_consensus_slots.Slot) { - return value -} diff --git a/codegen/_output/kusama/sp_core/crypto.ts b/codegen/_output/kusama/sp_core/crypto.ts deleted file mode 100644 index 8fa0bc6b2..000000000 --- a/codegen/_output/kusama/sp_core/crypto.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $accountId32: $.Codec = _codec.$0 - -export const $keyTypeId: $.Codec = _codec.$514 - -export type AccountId32 = Uint8Array - -export function AccountId32(value: t.sp_core.crypto.AccountId32) { - return value -} - -export type KeyTypeId = Uint8Array - -export function KeyTypeId(value: t.sp_core.crypto.KeyTypeId) { - return value -} diff --git a/codegen/_output/kusama/sp_core/ecdsa.ts b/codegen/_output/kusama/sp_core/ecdsa.ts deleted file mode 100644 index b69928dff..000000000 --- a/codegen/_output/kusama/sp_core/ecdsa.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$418 - -export const $signature: $.Codec = _codec.$422 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.ecdsa.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.ecdsa.Signature) { - return value -} diff --git a/codegen/_output/kusama/sp_core/ed25519.ts b/codegen/_output/kusama/sp_core/ed25519.ts deleted file mode 100644 index ed142f6b4..000000000 --- a/codegen/_output/kusama/sp_core/ed25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$51 - -export const $signature: $.Codec = _codec.$222 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.ed25519.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.ed25519.Signature) { - return value -} diff --git a/codegen/_output/kusama/sp_core/mod.ts b/codegen/_output/kusama/sp_core/mod.ts deleted file mode 100644 index ab5fac89c..000000000 --- a/codegen/_output/kusama/sp_core/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as crypto from "./crypto.ts" -export * as ecdsa from "./ecdsa.ts" -export * as ed25519 from "./ed25519.ts" -export * as offchain from "./offchain.ts" -export * as sr25519 from "./sr25519.ts" - -export const $opaquePeerId: $.Codec = _codec.$230 - -export const $void: $.Codec = _codec.$262 - -export type OpaquePeerId = Uint8Array - -export function OpaquePeerId(value: t.sp_core.OpaquePeerId) { - return value -} - -export type Void = never diff --git a/codegen/_output/kusama/sp_core/offchain.ts b/codegen/_output/kusama/sp_core/offchain.ts deleted file mode 100644 index 3aa308902..000000000 --- a/codegen/_output/kusama/sp_core/offchain.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $opaqueMultiaddr: $.Codec = _codec.$232 - -export const $opaqueNetworkState: $.Codec = _codec.$229 - -export type OpaqueMultiaddr = Uint8Array - -export function OpaqueMultiaddr(value: t.sp_core.offchain.OpaqueMultiaddr) { - return value -} - -export interface OpaqueNetworkState { - peer_id: t.sp_core.OpaquePeerId - external_addresses: Array -} - -export function OpaqueNetworkState(value: t.sp_core.offchain.OpaqueNetworkState) { - return value -} diff --git a/codegen/_output/kusama/sp_core/sr25519.ts b/codegen/_output/kusama/sp_core/sr25519.ts deleted file mode 100644 index a8a042cf8..000000000 --- a/codegen/_output/kusama/sp_core/sr25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$54 - -export const $signature: $.Codec = _codec.$101 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.sr25519.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.sr25519.Signature) { - return value -} diff --git a/codegen/_output/kusama/sp_finality_grandpa/app.ts b/codegen/_output/kusama/sp_finality_grandpa/app.ts deleted file mode 100644 index 511c7a3b0..000000000 --- a/codegen/_output/kusama/sp_finality_grandpa/app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$50 - -export const $signature: $.Codec = _codec.$221 - -export type Public = t.sp_core.ed25519.Public - -export function Public(value: t.sp_finality_grandpa.app.Public) { - return value -} - -export type Signature = t.sp_core.ed25519.Signature - -export function Signature(value: t.sp_finality_grandpa.app.Signature) { - return value -} diff --git a/codegen/_output/kusama/sp_finality_grandpa/mod.ts b/codegen/_output/kusama/sp_finality_grandpa/mod.ts deleted file mode 100644 index ea0fdf364..000000000 --- a/codegen/_output/kusama/sp_finality_grandpa/mod.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as app from "./app.ts" - -export const $equivocation: $.Codec = _codec.$218 - -export const $equivocationProof: $.Codec = _codec.$217 - -export type Equivocation = - | t.sp_finality_grandpa.Equivocation.Prevote - | t.sp_finality_grandpa.Equivocation.Precommit -export namespace Equivocation { - export interface Prevote { - type: "Prevote" - value: t.finality_grandpa.Equivocation.$$finality_grandpa.Prevote - } - export interface Precommit { - type: "Precommit" - value: t.finality_grandpa.Equivocation.$$finality_grandpa.Precommit - } - export function Prevote( - value: t.sp_finality_grandpa.Equivocation.Prevote["value"], - ): t.sp_finality_grandpa.Equivocation.Prevote { - return { type: "Prevote", value } - } - export function Precommit( - value: t.sp_finality_grandpa.Equivocation.Precommit["value"], - ): t.sp_finality_grandpa.Equivocation.Precommit { - return { type: "Precommit", value } - } -} - -export interface EquivocationProof { - set_id: t.u64 - equivocation: t.sp_finality_grandpa.Equivocation -} - -export function EquivocationProof(value: t.sp_finality_grandpa.EquivocationProof) { - return value -} diff --git a/codegen/_output/kusama/sp_npos_elections.ts b/codegen/_output/kusama/sp_npos_elections.ts deleted file mode 100644 index 7bbe5b644..000000000 --- a/codegen/_output/kusama/sp_npos_elections.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $electionScore: $.Codec = _codec.$88 - -export const $support: $.Codec = _codec.$367 - -export interface ElectionScore { - minimal_stake: t.u128 - sum_stake: t.u128 - sum_stake_squared: t.u128 -} - -export function ElectionScore(value: t.sp_npos_elections.ElectionScore) { - return value -} - -export interface Support { - total: t.u128 - voters: Array<[t.sp_core.crypto.AccountId32, t.u128]> -} - -export function Support(value: t.sp_npos_elections.Support) { - return value -} diff --git a/codegen/_output/kusama/sp_runtime/generic/digest.ts b/codegen/_output/kusama/sp_runtime/generic/digest.ts deleted file mode 100644 index 1b574b774..000000000 --- a/codegen/_output/kusama/sp_runtime/generic/digest.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $digest: $.Codec = _codec.$13 - -export const $digestItem: $.Codec = _codec.$15 - -export interface Digest { - logs: Array -} - -export function Digest(value: t.sp_runtime.generic.digest.Digest) { - return value -} - -export type DigestItem = - | t.sp_runtime.generic.digest.DigestItem.PreRuntime - | t.sp_runtime.generic.digest.DigestItem.Consensus - | t.sp_runtime.generic.digest.DigestItem.Seal - | t.sp_runtime.generic.digest.DigestItem.Other - | t.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated -export namespace DigestItem { - export interface PreRuntime { - type: "PreRuntime" - value: [Uint8Array, Uint8Array] - } - export interface Consensus { - type: "Consensus" - value: [Uint8Array, Uint8Array] - } - export interface Seal { - type: "Seal" - value: [Uint8Array, Uint8Array] - } - export interface Other { - type: "Other" - value: Uint8Array - } - export interface RuntimeEnvironmentUpdated { - type: "RuntimeEnvironmentUpdated" - } - export function PreRuntime( - ...value: t.sp_runtime.generic.digest.DigestItem.PreRuntime["value"] - ): t.sp_runtime.generic.digest.DigestItem.PreRuntime { - return { type: "PreRuntime", value } - } - export function Consensus( - ...value: t.sp_runtime.generic.digest.DigestItem.Consensus["value"] - ): t.sp_runtime.generic.digest.DigestItem.Consensus { - return { type: "Consensus", value } - } - export function Seal( - ...value: t.sp_runtime.generic.digest.DigestItem.Seal["value"] - ): t.sp_runtime.generic.digest.DigestItem.Seal { - return { type: "Seal", value } - } - export function Other( - value: t.sp_runtime.generic.digest.DigestItem.Other["value"], - ): t.sp_runtime.generic.digest.DigestItem.Other { - return { type: "Other", value } - } - export function RuntimeEnvironmentUpdated(): t.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated { - return { type: "RuntimeEnvironmentUpdated" } - } -} diff --git a/codegen/_output/kusama/sp_runtime/generic/header.ts b/codegen/_output/kusama/sp_runtime/generic/header.ts deleted file mode 100644 index 70f43e755..000000000 --- a/codegen/_output/kusama/sp_runtime/generic/header.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $header: $.Codec = _codec.$187 - -export interface Header { - parent_hash: t.primitive_types.H256 - number: t.Compact - state_root: t.primitive_types.H256 - extrinsics_root: t.primitive_types.H256 - digest: t.sp_runtime.generic.digest.Digest -} - -export function Header(value: t.sp_runtime.generic.header.Header) { - return value -} diff --git a/codegen/_output/kusama/sp_runtime/mod.ts b/codegen/_output/kusama/sp_runtime/mod.ts deleted file mode 100644 index a8b3cf982..000000000 --- a/codegen/_output/kusama/sp_runtime/mod.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as generic from "./generic/mod.ts" -export * as multiaddress from "./multiaddress.ts" -export * as traits from "./traits.ts" - -export const $arithmeticError: $.Codec = _codec.$27 - -export const $dispatchError: $.Codec = _codec.$24 - -export const $moduleError: $.Codec = _codec.$25 - -export const $multiSignature: $.Codec = _codec.$421 - -export const $multiSigner: $.Codec = _codec.$417 - -export const $tokenError: $.Codec = _codec.$26 - -export const $transactionalError: $.Codec = _codec.$28 - -export type ArithmeticError = "Underflow" | "Overflow" | "DivisionByZero" - -export type DispatchError = - | t.sp_runtime.DispatchError.Other - | t.sp_runtime.DispatchError.CannotLookup - | t.sp_runtime.DispatchError.BadOrigin - | t.sp_runtime.DispatchError.Module - | t.sp_runtime.DispatchError.ConsumerRemaining - | t.sp_runtime.DispatchError.NoProviders - | t.sp_runtime.DispatchError.TooManyConsumers - | t.sp_runtime.DispatchError.Token - | t.sp_runtime.DispatchError.Arithmetic - | t.sp_runtime.DispatchError.Transactional - | t.sp_runtime.DispatchError.Exhausted - | t.sp_runtime.DispatchError.Corruption - | t.sp_runtime.DispatchError.Unavailable -export namespace DispatchError { - export interface Other { - type: "Other" - } - export interface CannotLookup { - type: "CannotLookup" - } - export interface BadOrigin { - type: "BadOrigin" - } - export interface Module { - type: "Module" - value: t.sp_runtime.ModuleError - } - export interface ConsumerRemaining { - type: "ConsumerRemaining" - } - export interface NoProviders { - type: "NoProviders" - } - export interface TooManyConsumers { - type: "TooManyConsumers" - } - export interface Token { - type: "Token" - value: t.sp_runtime.TokenError - } - export interface Arithmetic { - type: "Arithmetic" - value: t.sp_runtime.ArithmeticError - } - export interface Transactional { - type: "Transactional" - value: t.sp_runtime.TransactionalError - } - export interface Exhausted { - type: "Exhausted" - } - export interface Corruption { - type: "Corruption" - } - export interface Unavailable { - type: "Unavailable" - } - export function Other(): t.sp_runtime.DispatchError.Other { - return { type: "Other" } - } - export function CannotLookup(): t.sp_runtime.DispatchError.CannotLookup { - return { type: "CannotLookup" } - } - export function BadOrigin(): t.sp_runtime.DispatchError.BadOrigin { - return { type: "BadOrigin" } - } - export function Module( - value: t.sp_runtime.DispatchError.Module["value"], - ): t.sp_runtime.DispatchError.Module { - return { type: "Module", value } - } - export function ConsumerRemaining(): t.sp_runtime.DispatchError.ConsumerRemaining { - return { type: "ConsumerRemaining" } - } - export function NoProviders(): t.sp_runtime.DispatchError.NoProviders { - return { type: "NoProviders" } - } - export function TooManyConsumers(): t.sp_runtime.DispatchError.TooManyConsumers { - return { type: "TooManyConsumers" } - } - export function Token( - value: t.sp_runtime.DispatchError.Token["value"], - ): t.sp_runtime.DispatchError.Token { - return { type: "Token", value } - } - export function Arithmetic( - value: t.sp_runtime.DispatchError.Arithmetic["value"], - ): t.sp_runtime.DispatchError.Arithmetic { - return { type: "Arithmetic", value } - } - export function Transactional( - value: t.sp_runtime.DispatchError.Transactional["value"], - ): t.sp_runtime.DispatchError.Transactional { - return { type: "Transactional", value } - } - export function Exhausted(): t.sp_runtime.DispatchError.Exhausted { - return { type: "Exhausted" } - } - export function Corruption(): t.sp_runtime.DispatchError.Corruption { - return { type: "Corruption" } - } - export function Unavailable(): t.sp_runtime.DispatchError.Unavailable { - return { type: "Unavailable" } - } -} - -export interface ModuleError { - index: t.u8 - error: Uint8Array -} - -export function ModuleError(value: t.sp_runtime.ModuleError) { - return value -} - -export type MultiSignature = - | t.sp_runtime.MultiSignature.Ed25519 - | t.sp_runtime.MultiSignature.Sr25519 - | t.sp_runtime.MultiSignature.Ecdsa -export namespace MultiSignature { - export interface Ed25519 { - type: "Ed25519" - value: t.sp_core.ed25519.Signature - } - export interface Sr25519 { - type: "Sr25519" - value: t.sp_core.sr25519.Signature - } - export interface Ecdsa { - type: "Ecdsa" - value: t.sp_core.ecdsa.Signature - } - export function Ed25519( - value: t.sp_runtime.MultiSignature.Ed25519["value"], - ): t.sp_runtime.MultiSignature.Ed25519 { - return { type: "Ed25519", value } - } - export function Sr25519( - value: t.sp_runtime.MultiSignature.Sr25519["value"], - ): t.sp_runtime.MultiSignature.Sr25519 { - return { type: "Sr25519", value } - } - export function Ecdsa( - value: t.sp_runtime.MultiSignature.Ecdsa["value"], - ): t.sp_runtime.MultiSignature.Ecdsa { - return { type: "Ecdsa", value } - } -} - -export type MultiSigner = - | t.sp_runtime.MultiSigner.Ed25519 - | t.sp_runtime.MultiSigner.Sr25519 - | t.sp_runtime.MultiSigner.Ecdsa -export namespace MultiSigner { - export interface Ed25519 { - type: "Ed25519" - value: t.sp_core.ed25519.Public - } - export interface Sr25519 { - type: "Sr25519" - value: t.sp_core.sr25519.Public - } - export interface Ecdsa { - type: "Ecdsa" - value: t.sp_core.ecdsa.Public - } - export function Ed25519( - value: t.sp_runtime.MultiSigner.Ed25519["value"], - ): t.sp_runtime.MultiSigner.Ed25519 { - return { type: "Ed25519", value } - } - export function Sr25519( - value: t.sp_runtime.MultiSigner.Sr25519["value"], - ): t.sp_runtime.MultiSigner.Sr25519 { - return { type: "Sr25519", value } - } - export function Ecdsa( - value: t.sp_runtime.MultiSigner.Ecdsa["value"], - ): t.sp_runtime.MultiSigner.Ecdsa { - return { type: "Ecdsa", value } - } -} - -export type TokenError = - | "NoFunds" - | "WouldDie" - | "BelowMinimum" - | "CannotCreate" - | "UnknownAsset" - | "Frozen" - | "Unsupported" - -export type TransactionalError = "LimitReached" | "NoLayer" diff --git a/codegen/_output/kusama/sp_runtime/multiaddress.ts b/codegen/_output/kusama/sp_runtime/multiaddress.ts deleted file mode 100644 index 4dc61094d..000000000 --- a/codegen/_output/kusama/sp_runtime/multiaddress.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $multiAddress: $.Codec = _codec.$197 - -export type MultiAddress = - | t.sp_runtime.multiaddress.MultiAddress.Id - | t.sp_runtime.multiaddress.MultiAddress.Index - | t.sp_runtime.multiaddress.MultiAddress.Raw - | t.sp_runtime.multiaddress.MultiAddress.Address32 - | t.sp_runtime.multiaddress.MultiAddress.Address20 -export namespace MultiAddress { - export interface Id { - type: "Id" - value: t.sp_core.crypto.AccountId32 - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Raw { - type: "Raw" - value: Uint8Array - } - export interface Address32 { - type: "Address32" - value: Uint8Array - } - export interface Address20 { - type: "Address20" - value: Uint8Array - } - export function Id( - value: t.sp_runtime.multiaddress.MultiAddress.Id["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Id { - return { type: "Id", value } - } - export function Index( - value: t.sp_runtime.multiaddress.MultiAddress.Index["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Index { - return { type: "Index", value } - } - export function Raw( - value: t.sp_runtime.multiaddress.MultiAddress.Raw["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Raw { - return { type: "Raw", value } - } - export function Address32( - value: t.sp_runtime.multiaddress.MultiAddress.Address32["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Address32 { - return { type: "Address32", value } - } - export function Address20( - value: t.sp_runtime.multiaddress.MultiAddress.Address20["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Address20 { - return { type: "Address20", value } - } -} diff --git a/codegen/_output/kusama/sp_runtime/traits.ts b/codegen/_output/kusama/sp_runtime/traits.ts deleted file mode 100644 index 942c3712f..000000000 --- a/codegen/_output/kusama/sp_runtime/traits.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $blakeTwo256: $.Codec = _codec.$188 - -export function BlakeTwo256() { - return null -} - -export type BlakeTwo256 = null diff --git a/codegen/_output/kusama/sp_session.ts b/codegen/_output/kusama/sp_session.ts deleted file mode 100644 index 3ebb285df..000000000 --- a/codegen/_output/kusama/sp_session.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $membershipProof: $.Codec = _codec.$191 - -export interface MembershipProof { - session: t.u32 - trie_nodes: Array - validator_count: t.u32 -} - -export function MembershipProof(value: t.sp_session.MembershipProof) { - return value -} diff --git a/codegen/_output/kusama/sp_staking/offence.ts b/codegen/_output/kusama/sp_staking/offence.ts deleted file mode 100644 index 02918d79f..000000000 --- a/codegen/_output/kusama/sp_staking/offence.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $offenceDetails: $.Codec = _codec.$509 - -export interface OffenceDetails { - offender: [t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure] - reporters: Array -} - -export function OffenceDetails(value: t.sp_staking.offence.OffenceDetails) { - return value -} diff --git a/codegen/_output/kusama/sp_version.ts b/codegen/_output/kusama/sp_version.ts deleted file mode 100644 index 3f8103413..000000000 --- a/codegen/_output/kusama/sp_version.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $runtimeVersion: $.Codec = _codec.$172 - -export interface RuntimeVersion { - spec_name: string - impl_name: string - authoring_version: t.u32 - spec_version: t.u32 - impl_version: t.u32 - apis: Array<[Uint8Array, t.u32]> - transaction_version: t.u32 - state_version: t.u8 -} - -export function RuntimeVersion(value: t.sp_version.RuntimeVersion) { - return value -} diff --git a/codegen/_output/kusama/sp_weights/mod.ts b/codegen/_output/kusama/sp_weights/mod.ts deleted file mode 100644 index 88c479fdd..000000000 --- a/codegen/_output/kusama/sp_weights/mod.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as weight_v2 from "./weight_v2.ts" - -export const $oldWeight: $.Codec = _codec.$239 - -export const $runtimeDbWeight: $.Codec = _codec.$171 - -export type OldWeight = t.u64 - -export function OldWeight(value: t.sp_weights.OldWeight) { - return value -} - -export interface RuntimeDbWeight { - read: t.u64 - write: t.u64 -} - -export function RuntimeDbWeight(value: t.sp_weights.RuntimeDbWeight) { - return value -} diff --git a/codegen/_output/kusama/sp_weights/weight_v2.ts b/codegen/_output/kusama/sp_weights/weight_v2.ts deleted file mode 100644 index 755882259..000000000 --- a/codegen/_output/kusama/sp_weights/weight_v2.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $weight: $.Codec = _codec.$8 - -export interface Weight { - ref_time: t.Compact - proof_size: t.Compact -} - -export function Weight(value: t.sp_weights.weight_v2.Weight) { - return value -} diff --git a/codegen/_output/kusama/bitvec/mod.ts b/codegen/_output/kusama/types/bitvec/mod.ts similarity index 100% rename from codegen/_output/kusama/bitvec/mod.ts rename to codegen/_output/kusama/types/bitvec/mod.ts diff --git a/codegen/_output/kusama/types/bitvec/order.ts b/codegen/_output/kusama/types/bitvec/order.ts new file mode 100644 index 000000000..935f6bcef --- /dev/null +++ b/codegen/_output/kusama/types/bitvec/order.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $lsb0: $.Codec = _codec.$384 + +export function Lsb0() { + return null +} + +export type Lsb0 = null diff --git a/codegen/_output/kusama/types/finality_grandpa/Equivocation/$$finality_grandpa.ts b/codegen/_output/kusama/types/finality_grandpa/Equivocation/$$finality_grandpa.ts new file mode 100644 index 000000000..1c207b7ac --- /dev/null +++ b/codegen/_output/kusama/types/finality_grandpa/Equivocation/$$finality_grandpa.ts @@ -0,0 +1,34 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $precommit: $.Codec< + t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit +> = _codec.$224 + +export const $prevote: $.Codec = + _codec.$219 + +export interface Precommit { + round_number: t.types.u64 + identity: t.types.sp_finality_grandpa.app.Public + first: [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] + second: [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] +} + +export function Precommit( + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit, +) { + return value +} + +export interface Prevote { + round_number: t.types.u64 + identity: t.types.sp_finality_grandpa.app.Public + first: [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] + second: [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] +} + +export function Prevote(value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Prevote) { + return value +} diff --git a/codegen/_output/kusama/finality_grandpa/Equivocation/mod.ts b/codegen/_output/kusama/types/finality_grandpa/Equivocation/mod.ts similarity index 100% rename from codegen/_output/kusama/finality_grandpa/Equivocation/mod.ts rename to codegen/_output/kusama/types/finality_grandpa/Equivocation/mod.ts diff --git a/codegen/_output/kusama/types/finality_grandpa/mod.ts b/codegen/_output/kusama/types/finality_grandpa/mod.ts new file mode 100644 index 000000000..c8be0a838 --- /dev/null +++ b/codegen/_output/kusama/types/finality_grandpa/mod.ts @@ -0,0 +1,27 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as Equivocation from "./Equivocation/mod.ts" + +export const $precommit: $.Codec = _codec.$225 + +export const $prevote: $.Codec = _codec.$220 + +export interface Precommit { + target_hash: t.types.primitive_types.H256 + target_number: t.types.u32 +} + +export function Precommit(value: t.types.finality_grandpa.Precommit) { + return value +} + +export interface Prevote { + target_hash: t.types.primitive_types.H256 + target_number: t.types.u32 +} + +export function Prevote(value: t.types.finality_grandpa.Prevote) { + return value +} diff --git a/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts b/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts new file mode 100644 index 000000000..750971775 --- /dev/null +++ b/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export const $weightsPerClass: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass +> = _codec.$166 + +export interface WeightsPerClass { + normal: t.types.frame_system.limits.WeightsPerClass + operational: t.types.frame_system.limits.WeightsPerClass + mandatory: t.types.frame_system.limits.WeightsPerClass +} + +export function WeightsPerClass( + value: t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass, +) { + return value +} diff --git a/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts b/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts similarity index 100% rename from codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts rename to codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts diff --git a/codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts b/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts similarity index 100% rename from codegen/_output/kusama/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts rename to codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts diff --git a/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts b/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts new file mode 100644 index 000000000..78ff1d029 --- /dev/null +++ b/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export const $weight: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight +> = _codec.$7 + +export interface Weight { + normal: t.types.sp_weights.weight_v2.Weight + operational: t.types.sp_weights.weight_v2.Weight + mandatory: t.types.sp_weights.weight_v2.Weight +} + +export function Weight( + value: t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight, +) { + return value +} diff --git a/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/mod.ts b/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/mod.ts new file mode 100644 index 000000000..68fdf3c0d --- /dev/null +++ b/codegen/_output/kusama/types/frame_support/dispatch/PerDispatchClass/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export * as $$frame_system from "./$$frame_system/mod.ts" +export * as $$sp_weights from "./$$sp_weights/mod.ts" + +export const $$$u32: $.Codec = _codec.$170 + +export interface $$u32 { + normal: t.types.u32 + operational: t.types.u32 + mandatory: t.types.u32 +} + +export function $$u32(value: t.types.frame_support.dispatch.PerDispatchClass.$$u32) { + return value +} diff --git a/codegen/_output/kusama/types/frame_support/dispatch/mod.ts b/codegen/_output/kusama/types/frame_support/dispatch/mod.ts new file mode 100644 index 000000000..0b6ae050e --- /dev/null +++ b/codegen/_output/kusama/types/frame_support/dispatch/mod.ts @@ -0,0 +1,55 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as PerDispatchClass from "./PerDispatchClass/mod.ts" + +export const $dispatchClass: $.Codec = _codec.$22 + +export const $dispatchInfo: $.Codec = _codec.$21 + +export const $pays: $.Codec = _codec.$23 + +export const $rawOrigin: $.Codec = _codec.$257 + +export type DispatchClass = "Normal" | "Operational" | "Mandatory" + +export interface DispatchInfo { + weight: t.types.sp_weights.weight_v2.Weight + class: t.types.frame_support.dispatch.DispatchClass + pays_fee: t.types.frame_support.dispatch.Pays +} + +export function DispatchInfo(value: t.types.frame_support.dispatch.DispatchInfo) { + return value +} + +export type Pays = "Yes" | "No" + +export type RawOrigin = + | t.types.frame_support.dispatch.RawOrigin.Root + | t.types.frame_support.dispatch.RawOrigin.Signed + | t.types.frame_support.dispatch.RawOrigin.None +export namespace RawOrigin { + export interface Root { + type: "Root" + } + export interface Signed { + type: "Signed" + value: t.types.sp_core.crypto.AccountId32 + } + export interface None { + type: "None" + } + export function Root(): t.types.frame_support.dispatch.RawOrigin.Root { + return { type: "Root" } + } + export function Signed( + value: t.types.frame_support.dispatch.RawOrigin.Signed["value"], + ): t.types.frame_support.dispatch.RawOrigin.Signed { + return { type: "Signed", value } + } + export function None(): t.types.frame_support.dispatch.RawOrigin.None { + return { type: "None" } + } +} diff --git a/codegen/_output/kusama/types/frame_support/mod.ts b/codegen/_output/kusama/types/frame_support/mod.ts new file mode 100644 index 000000000..c96f0dc75 --- /dev/null +++ b/codegen/_output/kusama/types/frame_support/mod.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as dispatch from "./dispatch/mod.ts" +export * as traits from "./traits/mod.ts" + +export const $palletId: $.Codec = _codec.$560 + +export type PalletId = Uint8Array + +export function PalletId(value: t.types.frame_support.PalletId) { + return value +} diff --git a/codegen/_output/kusama/types/frame_support/traits/misc.ts b/codegen/_output/kusama/types/frame_support/traits/misc.ts new file mode 100644 index 000000000..50833b76d --- /dev/null +++ b/codegen/_output/kusama/types/frame_support/traits/misc.ts @@ -0,0 +1,6 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $wrapperOpaque: $.Codec = + _codec.$522 diff --git a/codegen/_output/kusama/frame_support/traits/mod.ts b/codegen/_output/kusama/types/frame_support/traits/mod.ts similarity index 100% rename from codegen/_output/kusama/frame_support/traits/mod.ts rename to codegen/_output/kusama/types/frame_support/traits/mod.ts diff --git a/codegen/_output/kusama/types/frame_support/traits/preimages.ts b/codegen/_output/kusama/types/frame_support/traits/preimages.ts new file mode 100644 index 000000000..6c288bd3f --- /dev/null +++ b/codegen/_output/kusama/types/frame_support/traits/preimages.ts @@ -0,0 +1,40 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $bounded: $.Codec = _codec.$180 + +export type Bounded = + | t.types.frame_support.traits.preimages.Bounded.Legacy + | t.types.frame_support.traits.preimages.Bounded.Inline + | t.types.frame_support.traits.preimages.Bounded.Lookup +export namespace Bounded { + export interface Legacy { + type: "Legacy" + hash: t.types.primitive_types.H256 + } + export interface Inline { + type: "Inline" + value: Uint8Array + } + export interface Lookup { + type: "Lookup" + hash: t.types.primitive_types.H256 + len: t.types.u32 + } + export function Legacy( + value: Omit, + ): t.types.frame_support.traits.preimages.Bounded.Legacy { + return { type: "Legacy", ...value } + } + export function Inline( + value: t.types.frame_support.traits.preimages.Bounded.Inline["value"], + ): t.types.frame_support.traits.preimages.Bounded.Inline { + return { type: "Inline", value } + } + export function Lookup( + value: Omit, + ): t.types.frame_support.traits.preimages.Bounded.Lookup { + return { type: "Lookup", ...value } + } +} diff --git a/codegen/_output/kusama/types/frame_support/traits/tokens/misc.ts b/codegen/_output/kusama/types/frame_support/traits/tokens/misc.ts new file mode 100644 index 000000000..ad411b772 --- /dev/null +++ b/codegen/_output/kusama/types/frame_support/traits/tokens/misc.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export const $balanceStatus: $.Codec = + _codec.$37 + +export type BalanceStatus = "Free" | "Reserved" diff --git a/codegen/_output/kusama/frame_support/traits/tokens/mod.ts b/codegen/_output/kusama/types/frame_support/traits/tokens/mod.ts similarity index 100% rename from codegen/_output/kusama/frame_support/traits/tokens/mod.ts rename to codegen/_output/kusama/types/frame_support/traits/tokens/mod.ts diff --git a/codegen/_output/kusama/types/frame_system/extensions/check_genesis.ts b/codegen/_output/kusama/types/frame_system/extensions/check_genesis.ts new file mode 100644 index 000000000..9217e24b6 --- /dev/null +++ b/codegen/_output/kusama/types/frame_system/extensions/check_genesis.ts @@ -0,0 +1,12 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkGenesis: $.Codec = + _codec.$730 + +export function CheckGenesis() { + return null +} + +export type CheckGenesis = null diff --git a/codegen/_output/kusama/types/frame_system/extensions/check_non_zero_sender.ts b/codegen/_output/kusama/types/frame_system/extensions/check_non_zero_sender.ts new file mode 100644 index 000000000..d67c5ed3a --- /dev/null +++ b/codegen/_output/kusama/types/frame_system/extensions/check_non_zero_sender.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkNonZeroSender: $.Codec< + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender +> = _codec.$727 + +export function CheckNonZeroSender() { + return null +} + +export type CheckNonZeroSender = null diff --git a/codegen/_output/kusama/types/frame_system/extensions/check_spec_version.ts b/codegen/_output/kusama/types/frame_system/extensions/check_spec_version.ts new file mode 100644 index 000000000..d5841d0a2 --- /dev/null +++ b/codegen/_output/kusama/types/frame_system/extensions/check_spec_version.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkSpecVersion: $.Codec< + t.types.frame_system.extensions.check_spec_version.CheckSpecVersion +> = _codec.$728 + +export function CheckSpecVersion() { + return null +} + +export type CheckSpecVersion = null diff --git a/codegen/_output/kusama/types/frame_system/extensions/check_tx_version.ts b/codegen/_output/kusama/types/frame_system/extensions/check_tx_version.ts new file mode 100644 index 000000000..d7214c76e --- /dev/null +++ b/codegen/_output/kusama/types/frame_system/extensions/check_tx_version.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkTxVersion: $.Codec< + t.types.frame_system.extensions.check_tx_version.CheckTxVersion +> = _codec.$729 + +export function CheckTxVersion() { + return null +} + +export type CheckTxVersion = null diff --git a/codegen/_output/kusama/types/frame_system/extensions/check_weight.ts b/codegen/_output/kusama/types/frame_system/extensions/check_weight.ts new file mode 100644 index 000000000..57d4346d4 --- /dev/null +++ b/codegen/_output/kusama/types/frame_system/extensions/check_weight.ts @@ -0,0 +1,12 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkWeight: $.Codec = + _codec.$734 + +export function CheckWeight() { + return null +} + +export type CheckWeight = null diff --git a/codegen/_output/kusama/frame_system/extensions/mod.ts b/codegen/_output/kusama/types/frame_system/extensions/mod.ts similarity index 100% rename from codegen/_output/kusama/frame_system/extensions/mod.ts rename to codegen/_output/kusama/types/frame_system/extensions/mod.ts diff --git a/codegen/_output/kusama/types/frame_system/limits.ts b/codegen/_output/kusama/types/frame_system/limits.ts new file mode 100644 index 000000000..0bd584eb6 --- /dev/null +++ b/codegen/_output/kusama/types/frame_system/limits.ts @@ -0,0 +1,38 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $blockLength: $.Codec = _codec.$169 + +export const $blockWeights: $.Codec = _codec.$165 + +export const $weightsPerClass: $.Codec = _codec.$167 + +export interface BlockLength { + max: t.types.frame_support.dispatch.PerDispatchClass.$$u32 +} + +export function BlockLength(value: t.types.frame_system.limits.BlockLength) { + return value +} + +export interface BlockWeights { + base_block: t.types.sp_weights.weight_v2.Weight + max_block: t.types.sp_weights.weight_v2.Weight + per_class: t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass +} + +export function BlockWeights(value: t.types.frame_system.limits.BlockWeights) { + return value +} + +export interface WeightsPerClass { + base_extrinsic: t.types.sp_weights.weight_v2.Weight + max_extrinsic: t.types.sp_weights.weight_v2.Weight | undefined + max_total: t.types.sp_weights.weight_v2.Weight | undefined + reserved: t.types.sp_weights.weight_v2.Weight | undefined +} + +export function WeightsPerClass(value: t.types.frame_system.limits.WeightsPerClass) { + return value +} diff --git a/codegen/_output/kusama/types/frame_system/mod.ts b/codegen/_output/kusama/types/frame_system/mod.ts new file mode 100644 index 000000000..9d3020762 --- /dev/null +++ b/codegen/_output/kusama/types/frame_system/mod.ts @@ -0,0 +1,75 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as extensions from "./extensions/mod.ts" +export * as limits from "./limits.ts" +export * as pallet from "./pallet.ts" + +export const $accountInfo: $.Codec = _codec.$3 + +export const $eventRecord: $.Codec = _codec.$18 + +export const $lastRuntimeUpgradeInfo: $.Codec = + _codec.$159 + +export const $phase: $.Codec = _codec.$156 + +export interface AccountInfo { + nonce: t.types.u32 + consumers: t.types.u32 + providers: t.types.u32 + sufficients: t.types.u32 + data: t.types.pallet_balances.AccountData +} + +export function AccountInfo(value: t.types.frame_system.AccountInfo) { + return value +} + +export interface EventRecord { + phase: t.types.frame_system.Phase + event: t.types.polkadot_runtime.RuntimeEvent + topics: Array +} + +export function EventRecord(value: t.types.frame_system.EventRecord) { + return value +} + +export interface LastRuntimeUpgradeInfo { + spec_version: t.Compact + spec_name: string +} + +export function LastRuntimeUpgradeInfo(value: t.types.frame_system.LastRuntimeUpgradeInfo) { + return value +} + +export type Phase = + | t.types.frame_system.Phase.ApplyExtrinsic + | t.types.frame_system.Phase.Finalization + | t.types.frame_system.Phase.Initialization +export namespace Phase { + export interface ApplyExtrinsic { + type: "ApplyExtrinsic" + value: t.types.u32 + } + export interface Finalization { + type: "Finalization" + } + export interface Initialization { + type: "Initialization" + } + export function ApplyExtrinsic( + value: t.types.frame_system.Phase.ApplyExtrinsic["value"], + ): t.types.frame_system.Phase.ApplyExtrinsic { + return { type: "ApplyExtrinsic", value } + } + export function Finalization(): t.types.frame_system.Phase.Finalization { + return { type: "Finalization" } + } + export function Initialization(): t.types.frame_system.Phase.Initialization { + return { type: "Initialization" } + } +} diff --git a/codegen/_output/kusama/frame_system/pallet.ts b/codegen/_output/kusama/types/frame_system/pallet.ts similarity index 64% rename from codegen/_output/kusama/frame_system/pallet.ts rename to codegen/_output/kusama/types/frame_system/pallet.ts index 4ffb7de47..9893cfdc6 100644 --- a/codegen/_output/kusama/frame_system/pallet.ts +++ b/codegen/_output/kusama/types/frame_system/pallet.ts @@ -1,29 +1,29 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$161 +export const $call: $.Codec = _codec.$161 -export const $error: $.Codec = _codec.$176 +export const $error: $.Codec = _codec.$176 -export const $event: $.Codec = _codec.$20 +export const $event: $.Codec = _codec.$20 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.frame_system.pallet.Call.fill_block - | t.frame_system.pallet.Call.remark - | t.frame_system.pallet.Call.set_heap_pages - | t.frame_system.pallet.Call.set_code - | t.frame_system.pallet.Call.set_code_without_checks - | t.frame_system.pallet.Call.set_storage - | t.frame_system.pallet.Call.kill_storage - | t.frame_system.pallet.Call.kill_prefix - | t.frame_system.pallet.Call.remark_with_event + | t.types.frame_system.pallet.Call.fill_block + | t.types.frame_system.pallet.Call.remark + | t.types.frame_system.pallet.Call.set_heap_pages + | t.types.frame_system.pallet.Call.set_code + | t.types.frame_system.pallet.Call.set_code_without_checks + | t.types.frame_system.pallet.Call.set_storage + | t.types.frame_system.pallet.Call.kill_storage + | t.types.frame_system.pallet.Call.kill_prefix + | t.types.frame_system.pallet.Call.remark_with_event export namespace Call { /** A dispatch that will fill the block weight up to the given ratio. */ export interface fill_block { type: "fill_block" - ratio: t.sp_arithmetic.per_things.Perbill + ratio: t.types.sp_arithmetic.per_things.Perbill } /** * Make some on-chain remark. @@ -39,7 +39,7 @@ export namespace Call { /** Set the number of pages in the WebAssembly environment's heap. */ export interface set_heap_pages { type: "set_heap_pages" - pages: t.u64 + pages: t.types.u64 } /** * Set the new runtime code. @@ -93,7 +93,7 @@ export namespace Call { export interface kill_prefix { type: "kill_prefix" prefix: Uint8Array - subkeys: t.u32 + subkeys: t.types.u32 } /** Make some on-chain remark and emit event. */ export interface remark_with_event { @@ -102,8 +102,8 @@ export namespace Call { } /** A dispatch that will fill the block weight up to the given ratio. */ export function fill_block( - value: Omit, - ): t.frame_system.pallet.Call.fill_block { + value: Omit, + ): t.types.frame_system.pallet.Call.fill_block { return { type: "fill_block", ...value } } /** @@ -114,14 +114,14 @@ export namespace Call { * # */ export function remark( - value: Omit, - ): t.frame_system.pallet.Call.remark { + value: Omit, + ): t.types.frame_system.pallet.Call.remark { return { type: "remark", ...value } } /** Set the number of pages in the WebAssembly environment's heap. */ export function set_heap_pages( - value: Omit, - ): t.frame_system.pallet.Call.set_heap_pages { + value: Omit, + ): t.types.frame_system.pallet.Call.set_heap_pages { return { type: "set_heap_pages", ...value } } /** @@ -139,8 +139,8 @@ export namespace Call { * # */ export function set_code( - value: Omit, - ): t.frame_system.pallet.Call.set_code { + value: Omit, + ): t.types.frame_system.pallet.Call.set_code { return { type: "set_code", ...value } } /** @@ -155,20 +155,20 @@ export namespace Call { * block. # */ export function set_code_without_checks( - value: Omit, - ): t.frame_system.pallet.Call.set_code_without_checks { + value: Omit, + ): t.types.frame_system.pallet.Call.set_code_without_checks { return { type: "set_code_without_checks", ...value } } /** Set some items of storage. */ export function set_storage( - value: Omit, - ): t.frame_system.pallet.Call.set_storage { + value: Omit, + ): t.types.frame_system.pallet.Call.set_storage { return { type: "set_storage", ...value } } /** Kill some items from storage. */ export function kill_storage( - value: Omit, - ): t.frame_system.pallet.Call.kill_storage { + value: Omit, + ): t.types.frame_system.pallet.Call.kill_storage { return { type: "kill_storage", ...value } } /** @@ -178,14 +178,14 @@ export namespace Call { * the prefix we are removing to accurately calculate the weight of this function. */ export function kill_prefix( - value: Omit, - ): t.frame_system.pallet.Call.kill_prefix { + value: Omit, + ): t.types.frame_system.pallet.Call.kill_prefix { return { type: "kill_prefix", ...value } } /** Make some on-chain remark and emit event. */ export function remark_with_event( - value: Omit, - ): t.frame_system.pallet.Call.remark_with_event { + value: Omit, + ): t.types.frame_system.pallet.Call.remark_with_event { return { type: "remark_with_event", ...value } } } @@ -201,23 +201,23 @@ export type Error = /** Event for the System pallet. */ export type Event = - | t.frame_system.pallet.Event.ExtrinsicSuccess - | t.frame_system.pallet.Event.ExtrinsicFailed - | t.frame_system.pallet.Event.CodeUpdated - | t.frame_system.pallet.Event.NewAccount - | t.frame_system.pallet.Event.KilledAccount - | t.frame_system.pallet.Event.Remarked + | t.types.frame_system.pallet.Event.ExtrinsicSuccess + | t.types.frame_system.pallet.Event.ExtrinsicFailed + | t.types.frame_system.pallet.Event.CodeUpdated + | t.types.frame_system.pallet.Event.NewAccount + | t.types.frame_system.pallet.Event.KilledAccount + | t.types.frame_system.pallet.Event.Remarked export namespace Event { /** An extrinsic completed successfully. */ export interface ExtrinsicSuccess { type: "ExtrinsicSuccess" - dispatch_info: t.frame_support.dispatch.DispatchInfo + dispatch_info: t.types.frame_support.dispatch.DispatchInfo } /** An extrinsic failed. */ export interface ExtrinsicFailed { type: "ExtrinsicFailed" - dispatch_error: t.sp_runtime.DispatchError - dispatch_info: t.frame_support.dispatch.DispatchInfo + dispatch_error: t.types.sp_runtime.DispatchError + dispatch_info: t.types.frame_support.dispatch.DispatchInfo } /** `:code` was updated. */ export interface CodeUpdated { @@ -226,51 +226,51 @@ export namespace Event { /** A new account was created. */ export interface NewAccount { type: "NewAccount" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** An account was reaped. */ export interface KilledAccount { type: "KilledAccount" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** On on-chain remark happened. */ export interface Remarked { type: "Remarked" - sender: t.sp_core.crypto.AccountId32 - hash: t.primitive_types.H256 + sender: t.types.sp_core.crypto.AccountId32 + hash: t.types.primitive_types.H256 } /** An extrinsic completed successfully. */ export function ExtrinsicSuccess( - value: Omit, - ): t.frame_system.pallet.Event.ExtrinsicSuccess { + value: Omit, + ): t.types.frame_system.pallet.Event.ExtrinsicSuccess { return { type: "ExtrinsicSuccess", ...value } } /** An extrinsic failed. */ export function ExtrinsicFailed( - value: Omit, - ): t.frame_system.pallet.Event.ExtrinsicFailed { + value: Omit, + ): t.types.frame_system.pallet.Event.ExtrinsicFailed { return { type: "ExtrinsicFailed", ...value } } /** `:code` was updated. */ - export function CodeUpdated(): t.frame_system.pallet.Event.CodeUpdated { + export function CodeUpdated(): t.types.frame_system.pallet.Event.CodeUpdated { return { type: "CodeUpdated" } } /** A new account was created. */ export function NewAccount( - value: Omit, - ): t.frame_system.pallet.Event.NewAccount { + value: Omit, + ): t.types.frame_system.pallet.Event.NewAccount { return { type: "NewAccount", ...value } } /** An account was reaped. */ export function KilledAccount( - value: Omit, - ): t.frame_system.pallet.Event.KilledAccount { + value: Omit, + ): t.types.frame_system.pallet.Event.KilledAccount { return { type: "KilledAccount", ...value } } /** On on-chain remark happened. */ export function Remarked( - value: Omit, - ): t.frame_system.pallet.Event.Remarked { + value: Omit, + ): t.types.frame_system.pallet.Event.Remarked { return { type: "Remarked", ...value } } } diff --git a/codegen/_output/kusama/types/mod.ts b/codegen/_output/kusama/types/mod.ts new file mode 100644 index 000000000..1e8000c3b --- /dev/null +++ b/codegen/_output/kusama/types/mod.ts @@ -0,0 +1,70 @@ +import { $, C } from "../capi.ts" +import * as _codec from "../codecs.ts" + +export * as bitvec from "./bitvec/mod.ts" +export * as finality_grandpa from "./finality_grandpa/mod.ts" +export * as frame_support from "./frame_support/mod.ts" +export * as frame_system from "./frame_system/mod.ts" +export * as pallet_authorship from "./pallet_authorship/mod.ts" +export * as pallet_babe from "./pallet_babe/mod.ts" +export * as pallet_bags_list from "./pallet_bags_list/mod.ts" +export * as pallet_balances from "./pallet_balances/mod.ts" +export * as pallet_bounties from "./pallet_bounties/mod.ts" +export * as pallet_child_bounties from "./pallet_child_bounties/mod.ts" +export * as pallet_collective from "./pallet_collective/mod.ts" +export * as pallet_democracy from "./pallet_democracy/mod.ts" +export * as pallet_election_provider_multi_phase from "./pallet_election_provider_multi_phase/mod.ts" +export * as pallet_elections_phragmen from "./pallet_elections_phragmen/mod.ts" +export * as pallet_fast_unstake from "./pallet_fast_unstake/mod.ts" +export * as pallet_grandpa from "./pallet_grandpa/mod.ts" +export * as pallet_identity from "./pallet_identity/mod.ts" +export * as pallet_im_online from "./pallet_im_online/mod.ts" +export * as pallet_indices from "./pallet_indices/mod.ts" +export * as pallet_membership from "./pallet_membership/mod.ts" +export * as pallet_multisig from "./pallet_multisig/mod.ts" +export * as pallet_nomination_pools from "./pallet_nomination_pools/mod.ts" +export * as pallet_offences from "./pallet_offences/mod.ts" +export * as pallet_preimage from "./pallet_preimage/mod.ts" +export * as pallet_proxy from "./pallet_proxy/mod.ts" +export * as pallet_scheduler from "./pallet_scheduler/mod.ts" +export * as pallet_session from "./pallet_session/mod.ts" +export * as pallet_staking from "./pallet_staking/mod.ts" +export * as pallet_timestamp from "./pallet_timestamp/mod.ts" +export * as pallet_tips from "./pallet_tips/mod.ts" +export * as pallet_transaction_payment from "./pallet_transaction_payment/mod.ts" +export * as pallet_treasury from "./pallet_treasury/mod.ts" +export * as pallet_utility from "./pallet_utility/mod.ts" +export * as pallet_vesting from "./pallet_vesting/mod.ts" +export * as pallet_xcm from "./pallet_xcm/mod.ts" +export * as polkadot_core_primitives from "./polkadot_core_primitives.ts" +export * as polkadot_parachain from "./polkadot_parachain/mod.ts" +export * as polkadot_primitives from "./polkadot_primitives/mod.ts" +export * as polkadot_runtime from "./polkadot_runtime.ts" +export * as polkadot_runtime_common from "./polkadot_runtime_common/mod.ts" +export * as polkadot_runtime_parachains from "./polkadot_runtime_parachains/mod.ts" +export * as primitive_types from "./primitive_types.ts" +export * as sp_arithmetic from "./sp_arithmetic/mod.ts" +export * as sp_authority_discovery from "./sp_authority_discovery/mod.ts" +export * as sp_consensus_babe from "./sp_consensus_babe/mod.ts" +export * as sp_consensus_slots from "./sp_consensus_slots.ts" +export * as sp_core from "./sp_core/mod.ts" +export * as sp_finality_grandpa from "./sp_finality_grandpa/mod.ts" +export * as sp_npos_elections from "./sp_npos_elections.ts" +export * as sp_runtime from "./sp_runtime/mod.ts" +export * as sp_session from "./sp_session.ts" +export * as sp_staking from "./sp_staking/mod.ts" +export * as sp_version from "./sp_version.ts" +export * as sp_weights from "./sp_weights/mod.ts" +export * as xcm from "./xcm/mod.ts" + +export const $era: $.Codec = _codec.$732 + +export type u128 = bigint + +export type u16 = number + +export type u32 = number + +export type u64 = bigint + +export type u8 = number diff --git a/codegen/_output/kusama/types/pallet_authorship/mod.ts b/codegen/_output/kusama/types/pallet_authorship/mod.ts new file mode 100644 index 000000000..ef19eeff5 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_authorship/mod.ts @@ -0,0 +1,31 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $uncleEntryItem: $.Codec = _codec.$482 + +export type UncleEntryItem = + | t.types.pallet_authorship.UncleEntryItem.InclusionHeight + | t.types.pallet_authorship.UncleEntryItem.Uncle +export namespace UncleEntryItem { + export interface InclusionHeight { + type: "InclusionHeight" + value: t.types.u32 + } + export interface Uncle { + type: "Uncle" + value: [t.types.primitive_types.H256, t.types.sp_core.crypto.AccountId32 | undefined] + } + export function InclusionHeight( + value: t.types.pallet_authorship.UncleEntryItem.InclusionHeight["value"], + ): t.types.pallet_authorship.UncleEntryItem.InclusionHeight { + return { type: "InclusionHeight", value } + } + export function Uncle( + ...value: t.types.pallet_authorship.UncleEntryItem.Uncle["value"] + ): t.types.pallet_authorship.UncleEntryItem.Uncle { + return { type: "Uncle", value } + } +} diff --git a/codegen/_output/rococo/pallet_authorship/pallet.ts b/codegen/_output/kusama/types/pallet_authorship/pallet.ts similarity index 52% rename from codegen/_output/rococo/pallet_authorship/pallet.ts rename to codegen/_output/kusama/types/pallet_authorship/pallet.ts index 80e38fee7..79d0bba91 100644 --- a/codegen/_output/rococo/pallet_authorship/pallet.ts +++ b/codegen/_output/kusama/types/pallet_authorship/pallet.ts @@ -1,23 +1,23 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$200 +export const $call: $.Codec = _codec.$200 -export const $error: $.Codec = _codec.$484 +export const $error: $.Codec = _codec.$484 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_authorship.pallet.Call.set_uncles +export type Call = t.types.pallet_authorship.pallet.Call.set_uncles export namespace Call { /** Provide a set of uncles. */ export interface set_uncles { type: "set_uncles" - new_uncles: Array + new_uncles: Array } /** Provide a set of uncles. */ export function set_uncles( - value: Omit, - ): t.pallet_authorship.pallet.Call.set_uncles { + value: Omit, + ): t.types.pallet_authorship.pallet.Call.set_uncles { return { type: "set_uncles", ...value } } } diff --git a/codegen/_output/kusama/pallet_babe/mod.ts b/codegen/_output/kusama/types/pallet_babe/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_babe/mod.ts rename to codegen/_output/kusama/types/pallet_babe/mod.ts diff --git a/codegen/_output/rococo/pallet_babe/pallet.ts b/codegen/_output/kusama/types/pallet_babe/pallet.ts similarity index 71% rename from codegen/_output/rococo/pallet_babe/pallet.ts rename to codegen/_output/kusama/types/pallet_babe/pallet.ts index a5520e28d..d57335b38 100644 --- a/codegen/_output/rococo/pallet_babe/pallet.ts +++ b/codegen/_output/kusama/types/pallet_babe/pallet.ts @@ -1,16 +1,16 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$185 +export const $call: $.Codec = _codec.$185 -export const $error: $.Codec = _codec.$467 +export const $error: $.Codec = _codec.$467 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_babe.pallet.Call.report_equivocation - | t.pallet_babe.pallet.Call.report_equivocation_unsigned - | t.pallet_babe.pallet.Call.plan_config_change + | t.types.pallet_babe.pallet.Call.report_equivocation + | t.types.pallet_babe.pallet.Call.report_equivocation_unsigned + | t.types.pallet_babe.pallet.Call.plan_config_change export namespace Call { /** * Report authority equivocation/misbehavior. This method will verify @@ -20,8 +20,8 @@ export namespace Call { */ export interface report_equivocation { type: "report_equivocation" - equivocation_proof: t.sp_consensus_slots.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_consensus_slots.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Report authority equivocation/misbehavior. This method will verify @@ -35,8 +35,8 @@ export namespace Call { */ export interface report_equivocation_unsigned { type: "report_equivocation_unsigned" - equivocation_proof: t.sp_consensus_slots.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_consensus_slots.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Plan an epoch config change. The epoch config change is recorded and will be enacted on @@ -46,7 +46,7 @@ export namespace Call { */ export interface plan_config_change { type: "plan_config_change" - config: t.sp_consensus_babe.digests.NextConfigDescriptor + config: t.types.sp_consensus_babe.digests.NextConfigDescriptor } /** * Report authority equivocation/misbehavior. This method will verify @@ -55,8 +55,8 @@ export namespace Call { * be reported. */ export function report_equivocation( - value: Omit, - ): t.pallet_babe.pallet.Call.report_equivocation { + value: Omit, + ): t.types.pallet_babe.pallet.Call.report_equivocation { return { type: "report_equivocation", ...value } } /** @@ -70,8 +70,8 @@ export namespace Call { * reporter. */ export function report_equivocation_unsigned( - value: Omit, - ): t.pallet_babe.pallet.Call.report_equivocation_unsigned { + value: Omit, + ): t.types.pallet_babe.pallet.Call.report_equivocation_unsigned { return { type: "report_equivocation_unsigned", ...value } } /** @@ -81,8 +81,8 @@ export namespace Call { * not been enacted yet. */ export function plan_config_change( - value: Omit, - ): t.pallet_babe.pallet.Call.plan_config_change { + value: Omit, + ): t.types.pallet_babe.pallet.Call.plan_config_change { return { type: "plan_config_change", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_bags_list/list.ts b/codegen/_output/kusama/types/pallet_bags_list/list.ts new file mode 100644 index 000000000..7948bdffa --- /dev/null +++ b/codegen/_output/kusama/types/pallet_bags_list/list.ts @@ -0,0 +1,32 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $bag: $.Codec = _codec.$613 + +export const $listError: $.Codec = _codec.$616 + +export const $node: $.Codec = _codec.$612 + +export interface Bag { + head: t.types.sp_core.crypto.AccountId32 | undefined + tail: t.types.sp_core.crypto.AccountId32 | undefined +} + +export function Bag(value: t.types.pallet_bags_list.list.Bag) { + return value +} + +export type ListError = "Duplicate" | "NotHeavier" | "NotInSameBag" | "NodeNotFound" + +export interface Node { + id: t.types.sp_core.crypto.AccountId32 + prev: t.types.sp_core.crypto.AccountId32 | undefined + next: t.types.sp_core.crypto.AccountId32 | undefined + bag_upper: t.types.u64 + score: t.types.u64 +} + +export function Node(value: t.types.pallet_bags_list.list.Node) { + return value +} diff --git a/codegen/_output/kusama/pallet_bags_list/mod.ts b/codegen/_output/kusama/types/pallet_bags_list/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_bags_list/mod.ts rename to codegen/_output/kusama/types/pallet_bags_list/mod.ts diff --git a/codegen/_output/polkadot/pallet_bags_list/pallet.ts b/codegen/_output/kusama/types/pallet_bags_list/pallet.ts similarity index 65% rename from codegen/_output/polkadot/pallet_bags_list/pallet.ts rename to codegen/_output/kusama/types/pallet_bags_list/pallet.ts index 24e9d23d4..783e83a34 100644 --- a/codegen/_output/polkadot/pallet_bags_list/pallet.ts +++ b/codegen/_output/kusama/types/pallet_bags_list/pallet.ts @@ -1,17 +1,17 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$368 +export const $call: $.Codec = _codec.$368 -export const $error: $.Codec = _codec.$615 +export const $error: $.Codec = _codec.$615 -export const $event: $.Codec = _codec.$89 +export const $event: $.Codec = _codec.$89 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_bags_list.pallet.Call.rebag - | t.pallet_bags_list.pallet.Call.put_in_front_of + | t.types.pallet_bags_list.pallet.Call.rebag + | t.types.pallet_bags_list.pallet.Call.put_in_front_of export namespace Call { /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently @@ -27,7 +27,7 @@ export namespace Call { */ export interface rebag { type: "rebag" - dislocated: t.sp_runtime.multiaddress.MultiAddress + dislocated: t.types.sp_runtime.multiaddress.MultiAddress } /** * Move the caller's Id directly in front of `lighter`. @@ -41,7 +41,7 @@ export namespace Call { */ export interface put_in_front_of { type: "put_in_front_of" - lighter: t.sp_runtime.multiaddress.MultiAddress + lighter: t.types.sp_runtime.multiaddress.MultiAddress } /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently @@ -56,8 +56,8 @@ export namespace Call { * If `dislocated` does not exists, it returns an error. */ export function rebag( - value: Omit, - ): t.pallet_bags_list.pallet.Call.rebag { + value: Omit, + ): t.types.pallet_bags_list.pallet.Call.rebag { return { type: "rebag", ...value } } /** @@ -71,56 +71,56 @@ export namespace Call { * - and `origin` has a greater `Score` than `lighter`. */ export function put_in_front_of( - value: Omit, - ): t.pallet_bags_list.pallet.Call.put_in_front_of { + value: Omit, + ): t.types.pallet_bags_list.pallet.Call.put_in_front_of { return { type: "put_in_front_of", ...value } } } /** Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) of this pallet. */ -export type Error = t.pallet_bags_list.pallet.Error.List +export type Error = t.types.pallet_bags_list.pallet.Error.List export namespace Error { /** A error in the list interface implementation. */ export interface List { type: "List" - value: t.pallet_bags_list.list.ListError + value: t.types.pallet_bags_list.list.ListError } /** A error in the list interface implementation. */ export function List( - value: t.pallet_bags_list.pallet.Error.List["value"], - ): t.pallet_bags_list.pallet.Error.List { + value: t.types.pallet_bags_list.pallet.Error.List["value"], + ): t.types.pallet_bags_list.pallet.Error.List { return { type: "List", value } } } /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_bags_list.pallet.Event.Rebagged - | t.pallet_bags_list.pallet.Event.ScoreUpdated + | t.types.pallet_bags_list.pallet.Event.Rebagged + | t.types.pallet_bags_list.pallet.Event.ScoreUpdated export namespace Event { /** Moved an account from one bag to another. */ export interface Rebagged { type: "Rebagged" - who: t.sp_core.crypto.AccountId32 - from: t.u64 - to: t.u64 + who: t.types.sp_core.crypto.AccountId32 + from: t.types.u64 + to: t.types.u64 } /** Updated the score of some account to the given amount. */ export interface ScoreUpdated { type: "ScoreUpdated" - who: t.sp_core.crypto.AccountId32 - new_score: t.u64 + who: t.types.sp_core.crypto.AccountId32 + new_score: t.types.u64 } /** Moved an account from one bag to another. */ export function Rebagged( - value: Omit, - ): t.pallet_bags_list.pallet.Event.Rebagged { + value: Omit, + ): t.types.pallet_bags_list.pallet.Event.Rebagged { return { type: "Rebagged", ...value } } /** Updated the score of some account to the given amount. */ export function ScoreUpdated( - value: Omit, - ): t.pallet_bags_list.pallet.Event.ScoreUpdated { + value: Omit, + ): t.types.pallet_bags_list.pallet.Event.ScoreUpdated { return { type: "ScoreUpdated", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_balances/mod.ts b/codegen/_output/kusama/types/pallet_balances/mod.ts new file mode 100644 index 000000000..64bd303ec --- /dev/null +++ b/codegen/_output/kusama/types/pallet_balances/mod.ts @@ -0,0 +1,49 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $accountData: $.Codec = _codec.$5 + +export const $balanceLock: $.Codec = _codec.$471 + +export const $reasons: $.Codec = _codec.$472 + +export const $releases: $.Codec = _codec.$477 + +export const $reserveData: $.Codec = _codec.$475 + +export interface AccountData { + free: t.types.u128 + reserved: t.types.u128 + misc_frozen: t.types.u128 + fee_frozen: t.types.u128 +} + +export function AccountData(value: t.types.pallet_balances.AccountData) { + return value +} + +export interface BalanceLock { + id: Uint8Array + amount: t.types.u128 + reasons: t.types.pallet_balances.Reasons +} + +export function BalanceLock(value: t.types.pallet_balances.BalanceLock) { + return value +} + +export type Reasons = "Fee" | "Misc" | "All" + +export type Releases = "V1_0_0" | "V2_0_0" + +export interface ReserveData { + id: Uint8Array + amount: t.types.u128 +} + +export function ReserveData(value: t.types.pallet_balances.ReserveData) { + return value +} diff --git a/codegen/_output/rococo/pallet_balances/pallet.ts b/codegen/_output/kusama/types/pallet_balances/pallet.ts similarity index 69% rename from codegen/_output/rococo/pallet_balances/pallet.ts rename to codegen/_output/kusama/types/pallet_balances/pallet.ts index a46b3f365..cd175644c 100644 --- a/codegen/_output/rococo/pallet_balances/pallet.ts +++ b/codegen/_output/kusama/types/pallet_balances/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$199 +export const $call: $.Codec = _codec.$199 -export const $error: $.Codec = _codec.$478 +export const $error: $.Codec = _codec.$478 -export const $event: $.Codec = _codec.$36 +export const $event: $.Codec = _codec.$36 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_balances.pallet.Call.transfer - | t.pallet_balances.pallet.Call.set_balance - | t.pallet_balances.pallet.Call.force_transfer - | t.pallet_balances.pallet.Call.transfer_keep_alive - | t.pallet_balances.pallet.Call.transfer_all - | t.pallet_balances.pallet.Call.force_unreserve + | t.types.pallet_balances.pallet.Call.transfer + | t.types.pallet_balances.pallet.Call.set_balance + | t.types.pallet_balances.pallet.Call.force_transfer + | t.types.pallet_balances.pallet.Call.transfer_keep_alive + | t.types.pallet_balances.pallet.Call.transfer_all + | t.types.pallet_balances.pallet.Call.force_unreserve export namespace Call { /** * Transfer some liquid free balance to another account. @@ -46,8 +46,8 @@ export namespace Call { */ export interface transfer { type: "transfer" - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Set the balances of a given account. @@ -61,9 +61,9 @@ export namespace Call { */ export interface set_balance { type: "set_balance" - who: t.sp_runtime.multiaddress.MultiAddress - new_free: t.Compact - new_reserved: t.Compact + who: t.types.sp_runtime.multiaddress.MultiAddress + new_free: t.Compact + new_reserved: t.Compact } /** * Exactly as `transfer`, except the origin must be root and the source account may be @@ -75,9 +75,9 @@ export namespace Call { */ export interface force_transfer { type: "force_transfer" - source: t.sp_runtime.multiaddress.MultiAddress - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + source: t.types.sp_runtime.multiaddress.MultiAddress + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Same as the [`transfer`] call, but with a check that the transfer will not kill the @@ -89,8 +89,8 @@ export namespace Call { */ export interface transfer_keep_alive { type: "transfer_keep_alive" - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Transfer the entire transferable balance from the caller account. @@ -113,7 +113,7 @@ export namespace Call { */ export interface transfer_all { type: "transfer_all" - dest: t.sp_runtime.multiaddress.MultiAddress + dest: t.types.sp_runtime.multiaddress.MultiAddress keep_alive: boolean } /** @@ -123,8 +123,8 @@ export namespace Call { */ export interface force_unreserve { type: "force_unreserve" - who: t.sp_runtime.multiaddress.MultiAddress - amount: t.u128 + who: t.types.sp_runtime.multiaddress.MultiAddress + amount: t.types.u128 } /** * Transfer some liquid free balance to another account. @@ -154,8 +154,8 @@ export namespace Call { * # */ export function transfer( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer { return { type: "transfer", ...value } } /** @@ -169,8 +169,8 @@ export namespace Call { * The dispatch origin for this call is `root`. */ export function set_balance( - value: Omit, - ): t.pallet_balances.pallet.Call.set_balance { + value: Omit, + ): t.types.pallet_balances.pallet.Call.set_balance { return { type: "set_balance", ...value } } /** @@ -182,8 +182,8 @@ export namespace Call { * # */ export function force_transfer( - value: Omit, - ): t.pallet_balances.pallet.Call.force_transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Call.force_transfer { return { type: "force_transfer", ...value } } /** @@ -195,8 +195,8 @@ export namespace Call { * [`transfer`]: struct.Pallet.html#method.transfer */ export function transfer_keep_alive( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer_keep_alive { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer_keep_alive { return { type: "transfer_keep_alive", ...value } } /** @@ -219,8 +219,8 @@ export namespace Call { * # */ export function transfer_all( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer_all { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer_all { return { type: "transfer_all", ...value } } /** @@ -229,8 +229,8 @@ export namespace Call { * Can only be called by ROOT. */ export function force_unreserve( - value: Omit, - ): t.pallet_balances.pallet.Call.force_unreserve { + value: Omit, + ): t.types.pallet_balances.pallet.Call.force_unreserve { return { type: "force_unreserve", ...value } } } @@ -248,22 +248,22 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_balances.pallet.Event.Endowed - | t.pallet_balances.pallet.Event.DustLost - | t.pallet_balances.pallet.Event.Transfer - | t.pallet_balances.pallet.Event.BalanceSet - | t.pallet_balances.pallet.Event.Reserved - | t.pallet_balances.pallet.Event.Unreserved - | t.pallet_balances.pallet.Event.ReserveRepatriated - | t.pallet_balances.pallet.Event.Deposit - | t.pallet_balances.pallet.Event.Withdraw - | t.pallet_balances.pallet.Event.Slashed + | t.types.pallet_balances.pallet.Event.Endowed + | t.types.pallet_balances.pallet.Event.DustLost + | t.types.pallet_balances.pallet.Event.Transfer + | t.types.pallet_balances.pallet.Event.BalanceSet + | t.types.pallet_balances.pallet.Event.Reserved + | t.types.pallet_balances.pallet.Event.Unreserved + | t.types.pallet_balances.pallet.Event.ReserveRepatriated + | t.types.pallet_balances.pallet.Event.Deposit + | t.types.pallet_balances.pallet.Event.Withdraw + | t.types.pallet_balances.pallet.Event.Slashed export namespace Event { /** An account was created with some free balance. */ export interface Endowed { type: "Endowed" - account: t.sp_core.crypto.AccountId32 - free_balance: t.u128 + account: t.types.sp_core.crypto.AccountId32 + free_balance: t.types.u128 } /** * An account was removed whose balance was non-zero but below ExistentialDeposit, @@ -271,34 +271,34 @@ export namespace Event { */ export interface DustLost { type: "DustLost" - account: t.sp_core.crypto.AccountId32 - amount: t.u128 + account: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Transfer succeeded. */ export interface Transfer { type: "Transfer" - from: t.sp_core.crypto.AccountId32 - to: t.sp_core.crypto.AccountId32 - amount: t.u128 + from: t.types.sp_core.crypto.AccountId32 + to: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A balance was set by root. */ export interface BalanceSet { type: "BalanceSet" - who: t.sp_core.crypto.AccountId32 - free: t.u128 - reserved: t.u128 + who: t.types.sp_core.crypto.AccountId32 + free: t.types.u128 + reserved: t.types.u128 } /** Some balance was reserved (moved from free to reserved). */ export interface Reserved { type: "Reserved" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some balance was unreserved (moved from reserved to free). */ export interface Unreserved { type: "Unreserved" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * Some balance was moved from the reserve of the first account to the second account. @@ -306,33 +306,33 @@ export namespace Event { */ export interface ReserveRepatriated { type: "ReserveRepatriated" - from: t.sp_core.crypto.AccountId32 - to: t.sp_core.crypto.AccountId32 - amount: t.u128 - destination_status: t.frame_support.traits.tokens.misc.BalanceStatus + from: t.types.sp_core.crypto.AccountId32 + to: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 + destination_status: t.types.frame_support.traits.tokens.misc.BalanceStatus } /** Some amount was deposited (e.g. for transaction fees). */ export interface Deposit { type: "Deposit" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some amount was withdrawn from the account (e.g. for transaction fees). */ export interface Withdraw { type: "Withdraw" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some amount was removed from the account (e.g. for misbehavior). */ export interface Slashed { type: "Slashed" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** An account was created with some free balance. */ export function Endowed( - value: Omit, - ): t.pallet_balances.pallet.Event.Endowed { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Endowed { return { type: "Endowed", ...value } } /** @@ -340,32 +340,32 @@ export namespace Event { * resulting in an outright loss. */ export function DustLost( - value: Omit, - ): t.pallet_balances.pallet.Event.DustLost { + value: Omit, + ): t.types.pallet_balances.pallet.Event.DustLost { return { type: "DustLost", ...value } } /** Transfer succeeded. */ export function Transfer( - value: Omit, - ): t.pallet_balances.pallet.Event.Transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Transfer { return { type: "Transfer", ...value } } /** A balance was set by root. */ export function BalanceSet( - value: Omit, - ): t.pallet_balances.pallet.Event.BalanceSet { + value: Omit, + ): t.types.pallet_balances.pallet.Event.BalanceSet { return { type: "BalanceSet", ...value } } /** Some balance was reserved (moved from free to reserved). */ export function Reserved( - value: Omit, - ): t.pallet_balances.pallet.Event.Reserved { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Reserved { return { type: "Reserved", ...value } } /** Some balance was unreserved (moved from reserved to free). */ export function Unreserved( - value: Omit, - ): t.pallet_balances.pallet.Event.Unreserved { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Unreserved { return { type: "Unreserved", ...value } } /** @@ -373,26 +373,26 @@ export namespace Event { * Final argument indicates the destination balance type. */ export function ReserveRepatriated( - value: Omit, - ): t.pallet_balances.pallet.Event.ReserveRepatriated { + value: Omit, + ): t.types.pallet_balances.pallet.Event.ReserveRepatriated { return { type: "ReserveRepatriated", ...value } } /** Some amount was deposited (e.g. for transaction fees). */ export function Deposit( - value: Omit, - ): t.pallet_balances.pallet.Event.Deposit { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Deposit { return { type: "Deposit", ...value } } /** Some amount was withdrawn from the account (e.g. for transaction fees). */ export function Withdraw( - value: Omit, - ): t.pallet_balances.pallet.Event.Withdraw { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Withdraw { return { type: "Withdraw", ...value } } /** Some amount was removed from the account (e.g. for misbehavior). */ export function Slashed( - value: Omit, - ): t.pallet_balances.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Slashed { return { type: "Slashed", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_bounties/mod.ts b/codegen/_output/kusama/types/pallet_bounties/mod.ts new file mode 100644 index 000000000..e5425d665 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_bounties/mod.ts @@ -0,0 +1,80 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $bounty: $.Codec = _codec.$591 + +export const $bountyStatus: $.Codec = _codec.$592 + +export interface Bounty { + proposer: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 + fee: t.types.u128 + curator_deposit: t.types.u128 + bond: t.types.u128 + status: t.types.pallet_bounties.BountyStatus +} + +export function Bounty(value: t.types.pallet_bounties.Bounty) { + return value +} + +export type BountyStatus = + | t.types.pallet_bounties.BountyStatus.Proposed + | t.types.pallet_bounties.BountyStatus.Approved + | t.types.pallet_bounties.BountyStatus.Funded + | t.types.pallet_bounties.BountyStatus.CuratorProposed + | t.types.pallet_bounties.BountyStatus.Active + | t.types.pallet_bounties.BountyStatus.PendingPayout +export namespace BountyStatus { + export interface Proposed { + type: "Proposed" + } + export interface Approved { + type: "Approved" + } + export interface Funded { + type: "Funded" + } + export interface CuratorProposed { + type: "CuratorProposed" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface Active { + type: "Active" + curator: t.types.sp_core.crypto.AccountId32 + update_due: t.types.u32 + } + export interface PendingPayout { + type: "PendingPayout" + curator: t.types.sp_core.crypto.AccountId32 + beneficiary: t.types.sp_core.crypto.AccountId32 + unlock_at: t.types.u32 + } + export function Proposed(): t.types.pallet_bounties.BountyStatus.Proposed { + return { type: "Proposed" } + } + export function Approved(): t.types.pallet_bounties.BountyStatus.Approved { + return { type: "Approved" } + } + export function Funded(): t.types.pallet_bounties.BountyStatus.Funded { + return { type: "Funded" } + } + export function CuratorProposed( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.CuratorProposed { + return { type: "CuratorProposed", ...value } + } + export function Active( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.Active { + return { type: "Active", ...value } + } + export function PendingPayout( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.PendingPayout { + return { type: "PendingPayout", ...value } + } +} diff --git a/codegen/_output/rococo/pallet_bounties/pallet.ts b/codegen/_output/kusama/types/pallet_bounties/pallet.ts similarity index 71% rename from codegen/_output/rococo/pallet_bounties/pallet.ts rename to codegen/_output/kusama/types/pallet_bounties/pallet.ts index 312005e0f..f08c878f0 100644 --- a/codegen/_output/rococo/pallet_bounties/pallet.ts +++ b/codegen/_output/kusama/types/pallet_bounties/pallet.ts @@ -1,24 +1,24 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$307 +export const $call: $.Codec = _codec.$307 -export const $error: $.Codec = _codec.$594 +export const $error: $.Codec = _codec.$594 -export const $event: $.Codec = _codec.$83 +export const $event: $.Codec = _codec.$83 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_bounties.pallet.Call.propose_bounty - | t.pallet_bounties.pallet.Call.approve_bounty - | t.pallet_bounties.pallet.Call.propose_curator - | t.pallet_bounties.pallet.Call.unassign_curator - | t.pallet_bounties.pallet.Call.accept_curator - | t.pallet_bounties.pallet.Call.award_bounty - | t.pallet_bounties.pallet.Call.claim_bounty - | t.pallet_bounties.pallet.Call.close_bounty - | t.pallet_bounties.pallet.Call.extend_bounty_expiry + | t.types.pallet_bounties.pallet.Call.propose_bounty + | t.types.pallet_bounties.pallet.Call.approve_bounty + | t.types.pallet_bounties.pallet.Call.propose_curator + | t.types.pallet_bounties.pallet.Call.unassign_curator + | t.types.pallet_bounties.pallet.Call.accept_curator + | t.types.pallet_bounties.pallet.Call.award_bounty + | t.types.pallet_bounties.pallet.Call.claim_bounty + | t.types.pallet_bounties.pallet.Call.close_bounty + | t.types.pallet_bounties.pallet.Call.extend_bounty_expiry export namespace Call { /** * Propose a new bounty. @@ -36,7 +36,7 @@ export namespace Call { */ export interface propose_bounty { type: "propose_bounty" - value: t.Compact + value: t.Compact description: Uint8Array } /** @@ -51,7 +51,7 @@ export namespace Call { */ export interface approve_bounty { type: "approve_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Assign a curator to a funded bounty. @@ -64,9 +64,9 @@ export namespace Call { */ export interface propose_curator { type: "propose_curator" - bounty_id: t.Compact - curator: t.sp_runtime.multiaddress.MultiAddress - fee: t.Compact + bounty_id: t.Compact + curator: t.types.sp_runtime.multiaddress.MultiAddress + fee: t.Compact } /** * Unassign curator from a bounty. @@ -90,7 +90,7 @@ export namespace Call { */ export interface unassign_curator { type: "unassign_curator" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Accept the curator role for a bounty. @@ -104,7 +104,7 @@ export namespace Call { */ export interface accept_curator { type: "accept_curator" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Award bounty to a beneficiary account. The beneficiary will be able to claim the funds @@ -121,8 +121,8 @@ export namespace Call { */ export interface award_bounty { type: "award_bounty" - bounty_id: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + bounty_id: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Claim the payout from an awarded bounty after payout delay. @@ -137,7 +137,7 @@ export namespace Call { */ export interface claim_bounty { type: "claim_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Cancel a proposed or active bounty. All the funds will be sent to treasury and @@ -153,7 +153,7 @@ export namespace Call { */ export interface close_bounty { type: "close_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Extend the expiry time of an active bounty. @@ -169,7 +169,7 @@ export namespace Call { */ export interface extend_bounty_expiry { type: "extend_bounty_expiry" - bounty_id: t.Compact + bounty_id: t.Compact remark: Uint8Array } /** @@ -187,8 +187,8 @@ export namespace Call { * - `description`: The description of this bounty. */ export function propose_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.propose_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.propose_bounty { return { type: "propose_bounty", ...value } } /** @@ -202,8 +202,8 @@ export namespace Call { * # */ export function approve_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.approve_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.approve_bounty { return { type: "approve_bounty", ...value } } /** @@ -216,8 +216,8 @@ export namespace Call { * # */ export function propose_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.propose_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.propose_curator { return { type: "propose_curator", ...value } } /** @@ -241,8 +241,8 @@ export namespace Call { * # */ export function unassign_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.unassign_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.unassign_curator { return { type: "unassign_curator", ...value } } /** @@ -256,8 +256,8 @@ export namespace Call { * # */ export function accept_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.accept_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.accept_curator { return { type: "accept_curator", ...value } } /** @@ -274,8 +274,8 @@ export namespace Call { * # */ export function award_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.award_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.award_bounty { return { type: "award_bounty", ...value } } /** @@ -290,8 +290,8 @@ export namespace Call { * # */ export function claim_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.claim_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.claim_bounty { return { type: "claim_bounty", ...value } } /** @@ -307,8 +307,8 @@ export namespace Call { * # */ export function close_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.close_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.close_bounty { return { type: "close_bounty", ...value } } /** @@ -324,8 +324,8 @@ export namespace Call { * # */ export function extend_bounty_expiry( - value: Omit, - ): t.pallet_bounties.pallet.Call.extend_bounty_expiry { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.extend_bounty_expiry { return { type: "extend_bounty_expiry", ...value } } } @@ -346,93 +346,93 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_bounties.pallet.Event.BountyProposed - | t.pallet_bounties.pallet.Event.BountyRejected - | t.pallet_bounties.pallet.Event.BountyBecameActive - | t.pallet_bounties.pallet.Event.BountyAwarded - | t.pallet_bounties.pallet.Event.BountyClaimed - | t.pallet_bounties.pallet.Event.BountyCanceled - | t.pallet_bounties.pallet.Event.BountyExtended + | t.types.pallet_bounties.pallet.Event.BountyProposed + | t.types.pallet_bounties.pallet.Event.BountyRejected + | t.types.pallet_bounties.pallet.Event.BountyBecameActive + | t.types.pallet_bounties.pallet.Event.BountyAwarded + | t.types.pallet_bounties.pallet.Event.BountyClaimed + | t.types.pallet_bounties.pallet.Event.BountyCanceled + | t.types.pallet_bounties.pallet.Event.BountyExtended export namespace Event { /** New bounty proposal. */ export interface BountyProposed { type: "BountyProposed" - index: t.u32 + index: t.types.u32 } /** A bounty proposal was rejected; funds were slashed. */ export interface BountyRejected { type: "BountyRejected" - index: t.u32 - bond: t.u128 + index: t.types.u32 + bond: t.types.u128 } /** A bounty proposal is funded and became active. */ export interface BountyBecameActive { type: "BountyBecameActive" - index: t.u32 + index: t.types.u32 } /** A bounty is awarded to a beneficiary. */ export interface BountyAwarded { type: "BountyAwarded" - index: t.u32 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A bounty is claimed by beneficiary. */ export interface BountyClaimed { type: "BountyClaimed" - index: t.u32 - payout: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + payout: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A bounty is cancelled. */ export interface BountyCanceled { type: "BountyCanceled" - index: t.u32 + index: t.types.u32 } /** A bounty expiry is extended. */ export interface BountyExtended { type: "BountyExtended" - index: t.u32 + index: t.types.u32 } /** New bounty proposal. */ export function BountyProposed( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyProposed { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyProposed { return { type: "BountyProposed", ...value } } /** A bounty proposal was rejected; funds were slashed. */ export function BountyRejected( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyRejected { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyRejected { return { type: "BountyRejected", ...value } } /** A bounty proposal is funded and became active. */ export function BountyBecameActive( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyBecameActive { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyBecameActive { return { type: "BountyBecameActive", ...value } } /** A bounty is awarded to a beneficiary. */ export function BountyAwarded( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyAwarded { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyAwarded { return { type: "BountyAwarded", ...value } } /** A bounty is claimed by beneficiary. */ export function BountyClaimed( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyClaimed { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyClaimed { return { type: "BountyClaimed", ...value } } /** A bounty is cancelled. */ export function BountyCanceled( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyCanceled { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyCanceled { return { type: "BountyCanceled", ...value } } /** A bounty expiry is extended. */ export function BountyExtended( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyExtended { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyExtended { return { type: "BountyExtended", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_child_bounties/mod.ts b/codegen/_output/kusama/types/pallet_child_bounties/mod.ts new file mode 100644 index 000000000..9355697ec --- /dev/null +++ b/codegen/_output/kusama/types/pallet_child_bounties/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $childBounty: $.Codec = _codec.$595 + +export const $childBountyStatus: $.Codec = + _codec.$596 + +export interface ChildBounty { + parent_bounty: t.types.u32 + value: t.types.u128 + fee: t.types.u128 + curator_deposit: t.types.u128 + status: t.types.pallet_child_bounties.ChildBountyStatus +} + +export function ChildBounty(value: t.types.pallet_child_bounties.ChildBounty) { + return value +} + +export type ChildBountyStatus = + | t.types.pallet_child_bounties.ChildBountyStatus.Added + | t.types.pallet_child_bounties.ChildBountyStatus.CuratorProposed + | t.types.pallet_child_bounties.ChildBountyStatus.Active + | t.types.pallet_child_bounties.ChildBountyStatus.PendingPayout +export namespace ChildBountyStatus { + export interface Added { + type: "Added" + } + export interface CuratorProposed { + type: "CuratorProposed" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface Active { + type: "Active" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface PendingPayout { + type: "PendingPayout" + curator: t.types.sp_core.crypto.AccountId32 + beneficiary: t.types.sp_core.crypto.AccountId32 + unlock_at: t.types.u32 + } + export function Added(): t.types.pallet_child_bounties.ChildBountyStatus.Added { + return { type: "Added" } + } + export function CuratorProposed( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.CuratorProposed { + return { type: "CuratorProposed", ...value } + } + export function Active( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.Active { + return { type: "Active", ...value } + } + export function PendingPayout( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.PendingPayout { + return { type: "PendingPayout", ...value } + } +} diff --git a/codegen/_output/polkadot/pallet_child_bounties/pallet.ts b/codegen/_output/kusama/types/pallet_child_bounties/pallet.ts similarity index 79% rename from codegen/_output/polkadot/pallet_child_bounties/pallet.ts rename to codegen/_output/kusama/types/pallet_child_bounties/pallet.ts index 85d228af3..bca3b2363 100644 --- a/codegen/_output/polkadot/pallet_child_bounties/pallet.ts +++ b/codegen/_output/kusama/types/pallet_child_bounties/pallet.ts @@ -1,22 +1,22 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$308 +export const $call: $.Codec = _codec.$308 -export const $error: $.Codec = _codec.$597 +export const $error: $.Codec = _codec.$597 -export const $event: $.Codec = _codec.$84 +export const $event: $.Codec = _codec.$84 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_child_bounties.pallet.Call.add_child_bounty - | t.pallet_child_bounties.pallet.Call.propose_curator - | t.pallet_child_bounties.pallet.Call.accept_curator - | t.pallet_child_bounties.pallet.Call.unassign_curator - | t.pallet_child_bounties.pallet.Call.award_child_bounty - | t.pallet_child_bounties.pallet.Call.claim_child_bounty - | t.pallet_child_bounties.pallet.Call.close_child_bounty + | t.types.pallet_child_bounties.pallet.Call.add_child_bounty + | t.types.pallet_child_bounties.pallet.Call.propose_curator + | t.types.pallet_child_bounties.pallet.Call.accept_curator + | t.types.pallet_child_bounties.pallet.Call.unassign_curator + | t.types.pallet_child_bounties.pallet.Call.award_child_bounty + | t.types.pallet_child_bounties.pallet.Call.claim_child_bounty + | t.types.pallet_child_bounties.pallet.Call.close_child_bounty export namespace Call { /** * Add a new child-bounty. @@ -41,8 +41,8 @@ export namespace Call { */ export interface add_child_bounty { type: "add_child_bounty" - parent_bounty_id: t.Compact - value: t.Compact + parent_bounty_id: t.Compact + value: t.Compact description: Uint8Array } /** @@ -64,10 +64,10 @@ export namespace Call { */ export interface propose_curator { type: "propose_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact - curator: t.sp_runtime.multiaddress.MultiAddress - fee: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact + curator: t.types.sp_runtime.multiaddress.MultiAddress + fee: t.Compact } /** * Accept the curator role for the child-bounty. @@ -92,8 +92,8 @@ export namespace Call { */ export interface accept_curator { type: "accept_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Unassign curator from a child-bounty. @@ -133,8 +133,8 @@ export namespace Call { */ export interface unassign_curator { type: "unassign_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Award child-bounty to a beneficiary. @@ -157,9 +157,9 @@ export namespace Call { */ export interface award_child_bounty { type: "award_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + parent_bounty_id: t.Compact + child_bounty_id: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Claim the payout from an awarded child-bounty after payout delay. @@ -181,8 +181,8 @@ export namespace Call { */ export interface claim_child_bounty { type: "claim_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Cancel a proposed or active child-bounty. Child-bounty account funds @@ -210,8 +210,8 @@ export namespace Call { */ export interface close_child_bounty { type: "close_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Add a new child-bounty. @@ -235,8 +235,8 @@ export namespace Call { * - `description`: Text description for the child-bounty. */ export function add_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.add_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.add_child_bounty { return { type: "add_child_bounty", ...value } } /** @@ -257,8 +257,8 @@ export namespace Call { * - `fee`: payment fee to child-bounty curator for execution. */ export function propose_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.propose_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.propose_curator { return { type: "propose_curator", ...value } } /** @@ -283,8 +283,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function accept_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.accept_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.accept_curator { return { type: "accept_curator", ...value } } /** @@ -324,8 +324,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function unassign_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.unassign_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.unassign_curator { return { type: "unassign_curator", ...value } } /** @@ -348,8 +348,8 @@ export namespace Call { * - `beneficiary`: Beneficiary account. */ export function award_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.award_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.award_child_bounty { return { type: "award_child_bounty", ...value } } /** @@ -371,8 +371,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function claim_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.claim_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.claim_child_bounty { return { type: "claim_child_bounty", ...value } } /** @@ -400,8 +400,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function close_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.close_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.close_child_bounty { return { type: "close_child_bounty", ...value } } } @@ -411,60 +411,60 @@ export type Error = "ParentBountyNotActive" | "InsufficientBountyBalance" | "Too /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_child_bounties.pallet.Event.Added - | t.pallet_child_bounties.pallet.Event.Awarded - | t.pallet_child_bounties.pallet.Event.Claimed - | t.pallet_child_bounties.pallet.Event.Canceled + | t.types.pallet_child_bounties.pallet.Event.Added + | t.types.pallet_child_bounties.pallet.Event.Awarded + | t.types.pallet_child_bounties.pallet.Event.Claimed + | t.types.pallet_child_bounties.pallet.Event.Canceled export namespace Event { /** A child-bounty is added. */ export interface Added { type: "Added" - index: t.u32 - child_index: t.u32 + index: t.types.u32 + child_index: t.types.u32 } /** A child-bounty is awarded to a beneficiary. */ export interface Awarded { type: "Awarded" - index: t.u32 - child_index: t.u32 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + child_index: t.types.u32 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A child-bounty is claimed by beneficiary. */ export interface Claimed { type: "Claimed" - index: t.u32 - child_index: t.u32 - payout: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + child_index: t.types.u32 + payout: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A child-bounty is cancelled. */ export interface Canceled { type: "Canceled" - index: t.u32 - child_index: t.u32 + index: t.types.u32 + child_index: t.types.u32 } /** A child-bounty is added. */ export function Added( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Added { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Added { return { type: "Added", ...value } } /** A child-bounty is awarded to a beneficiary. */ export function Awarded( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Awarded { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Awarded { return { type: "Awarded", ...value } } /** A child-bounty is claimed by beneficiary. */ export function Claimed( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Claimed { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Claimed { return { type: "Claimed", ...value } } /** A child-bounty is cancelled. */ export function Canceled( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Canceled { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Canceled { return { type: "Canceled", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_collective/mod.ts b/codegen/_output/kusama/types/pallet_collective/mod.ts new file mode 100644 index 000000000..020fac5da --- /dev/null +++ b/codegen/_output/kusama/types/pallet_collective/mod.ts @@ -0,0 +1,52 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $rawOrigin: $.Codec = _codec.$258 + +export const $votes: $.Codec = _codec.$546 + +export type RawOrigin = + | t.types.pallet_collective.RawOrigin.Members + | t.types.pallet_collective.RawOrigin.Member + | t.types.pallet_collective.RawOrigin._Phantom +export namespace RawOrigin { + export interface Members { + type: "Members" + value: [t.types.u32, t.types.u32] + } + export interface Member { + type: "Member" + value: t.types.sp_core.crypto.AccountId32 + } + export interface _Phantom { + type: "_Phantom" + } + export function Members( + ...value: t.types.pallet_collective.RawOrigin.Members["value"] + ): t.types.pallet_collective.RawOrigin.Members { + return { type: "Members", value } + } + export function Member( + value: t.types.pallet_collective.RawOrigin.Member["value"], + ): t.types.pallet_collective.RawOrigin.Member { + return { type: "Member", value } + } + export function _Phantom(): t.types.pallet_collective.RawOrigin._Phantom { + return { type: "_Phantom" } + } +} + +export interface Votes { + index: t.types.u32 + threshold: t.types.u32 + ayes: Array + nays: Array + end: t.types.u32 +} + +export function Votes(value: t.types.pallet_collective.Votes) { + return value +} diff --git a/codegen/_output/polkadot/pallet_collective/pallet.ts b/codegen/_output/kusama/types/pallet_collective/pallet.ts similarity index 80% rename from codegen/_output/polkadot/pallet_collective/pallet.ts rename to codegen/_output/kusama/types/pallet_collective/pallet.ts index a15fd391a..f189d56db 100644 --- a/codegen/_output/polkadot/pallet_collective/pallet.ts +++ b/codegen/_output/kusama/types/pallet_collective/pallet.ts @@ -1,22 +1,22 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$237 +export const $call: $.Codec = _codec.$237 -export const $error: $.Codec = _codec.$547 +export const $error: $.Codec = _codec.$547 -export const $event: $.Codec = _codec.$65 +export const $event: $.Codec = _codec.$65 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_collective.pallet.Call.set_members - | t.pallet_collective.pallet.Call.execute - | t.pallet_collective.pallet.Call.propose - | t.pallet_collective.pallet.Call.vote - | t.pallet_collective.pallet.Call.close_old_weight - | t.pallet_collective.pallet.Call.disapprove_proposal - | t.pallet_collective.pallet.Call.close + | t.types.pallet_collective.pallet.Call.set_members + | t.types.pallet_collective.pallet.Call.execute + | t.types.pallet_collective.pallet.Call.propose + | t.types.pallet_collective.pallet.Call.vote + | t.types.pallet_collective.pallet.Call.close_old_weight + | t.types.pallet_collective.pallet.Call.disapprove_proposal + | t.types.pallet_collective.pallet.Call.close export namespace Call { /** * Set the collective's membership. @@ -54,9 +54,9 @@ export namespace Call { */ export interface set_members { type: "set_members" - new_members: Array - prime: t.sp_core.crypto.AccountId32 | undefined - old_count: t.u32 + new_members: Array + prime: t.types.sp_core.crypto.AccountId32 | undefined + old_count: t.types.u32 } /** * Dispatch a proposal from a member using the `Member` origin. @@ -73,8 +73,8 @@ export namespace Call { */ export interface execute { type: "execute" - proposal: t.polkadot_runtime.RuntimeCall - length_bound: t.Compact + proposal: t.types.polkadot_runtime.RuntimeCall + length_bound: t.Compact } /** * Add a new proposal to either be voted on or executed directly. @@ -107,9 +107,9 @@ export namespace Call { */ export interface propose { type: "propose" - threshold: t.Compact - proposal: t.polkadot_runtime.RuntimeCall - length_bound: t.Compact + threshold: t.Compact + proposal: t.types.polkadot_runtime.RuntimeCall + length_bound: t.Compact } /** * Add an aye or nay vote for the sender to the given proposal. @@ -130,8 +130,8 @@ export namespace Call { */ export interface vote { type: "vote" - proposal: t.primitive_types.H256 - index: t.Compact + proposal: t.types.primitive_types.H256 + index: t.Compact approve: boolean } /** @@ -170,10 +170,10 @@ export namespace Call { */ export interface close_old_weight { type: "close_old_weight" - proposal_hash: t.primitive_types.H256 - index: t.Compact - proposal_weight_bound: t.Compact - length_bound: t.Compact + proposal_hash: t.types.primitive_types.H256 + index: t.Compact + proposal_weight_bound: t.Compact + length_bound: t.Compact } /** * Disapprove a proposal, close, and remove it from the system, regardless of its current @@ -193,7 +193,7 @@ export namespace Call { */ export interface disapprove_proposal { type: "disapprove_proposal" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** * Close a vote that is either approved, disapproved or whose voting period has ended. @@ -231,10 +231,10 @@ export namespace Call { */ export interface close { type: "close" - proposal_hash: t.primitive_types.H256 - index: t.Compact - proposal_weight_bound: t.sp_weights.weight_v2.Weight - length_bound: t.Compact + proposal_hash: t.types.primitive_types.H256 + index: t.Compact + proposal_weight_bound: t.types.sp_weights.weight_v2.Weight + length_bound: t.Compact } /** * Set the collective's membership. @@ -271,8 +271,8 @@ export namespace Call { * # */ export function set_members( - value: Omit, - ): t.pallet_collective.pallet.Call.set_members { + value: Omit, + ): t.types.pallet_collective.pallet.Call.set_members { return { type: "set_members", ...value } } /** @@ -289,8 +289,8 @@ export namespace Call { * # */ export function execute( - value: Omit, - ): t.pallet_collective.pallet.Call.execute { + value: Omit, + ): t.types.pallet_collective.pallet.Call.execute { return { type: "execute", ...value } } /** @@ -323,8 +323,8 @@ export namespace Call { * # */ export function propose( - value: Omit, - ): t.pallet_collective.pallet.Call.propose { + value: Omit, + ): t.types.pallet_collective.pallet.Call.propose { return { type: "propose", ...value } } /** @@ -345,8 +345,8 @@ export namespace Call { * # */ export function vote( - value: Omit, - ): t.pallet_collective.pallet.Call.vote { + value: Omit, + ): t.types.pallet_collective.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -384,8 +384,8 @@ export namespace Call { * # */ export function close_old_weight( - value: Omit, - ): t.pallet_collective.pallet.Call.close_old_weight { + value: Omit, + ): t.types.pallet_collective.pallet.Call.close_old_weight { return { type: "close_old_weight", ...value } } /** @@ -405,8 +405,8 @@ export namespace Call { * # */ export function disapprove_proposal( - value: Omit, - ): t.pallet_collective.pallet.Call.disapprove_proposal { + value: Omit, + ): t.types.pallet_collective.pallet.Call.disapprove_proposal { return { type: "disapprove_proposal", ...value } } /** @@ -444,8 +444,8 @@ export namespace Call { * # */ export function close( - value: Omit, - ): t.pallet_collective.pallet.Call.close { + value: Omit, + ): t.types.pallet_collective.pallet.Call.close { return { type: "close", ...value } } } @@ -465,13 +465,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_collective.pallet.Event.Proposed - | t.pallet_collective.pallet.Event.Voted - | t.pallet_collective.pallet.Event.Approved - | t.pallet_collective.pallet.Event.Disapproved - | t.pallet_collective.pallet.Event.Executed - | t.pallet_collective.pallet.Event.MemberExecuted - | t.pallet_collective.pallet.Event.Closed + | t.types.pallet_collective.pallet.Event.Proposed + | t.types.pallet_collective.pallet.Event.Voted + | t.types.pallet_collective.pallet.Event.Approved + | t.types.pallet_collective.pallet.Event.Disapproved + | t.types.pallet_collective.pallet.Event.Executed + | t.types.pallet_collective.pallet.Event.MemberExecuted + | t.types.pallet_collective.pallet.Event.Closed export namespace Event { /** * A motion (given hash) has been proposed (by given account) with a threshold (given @@ -479,10 +479,10 @@ export namespace Event { */ export interface Proposed { type: "Proposed" - account: t.sp_core.crypto.AccountId32 - proposal_index: t.u32 - proposal_hash: t.primitive_types.H256 - threshold: t.u32 + account: t.types.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + proposal_hash: t.types.primitive_types.H256 + threshold: t.types.u32 } /** * A motion (given hash) has been voted on by given account, leaving @@ -490,48 +490,48 @@ export namespace Event { */ export interface Voted { type: "Voted" - account: t.sp_core.crypto.AccountId32 - proposal_hash: t.primitive_types.H256 + account: t.types.sp_core.crypto.AccountId32 + proposal_hash: t.types.primitive_types.H256 voted: boolean - yes: t.u32 - no: t.u32 + yes: t.types.u32 + no: t.types.u32 } /** A motion was approved by the required threshold. */ export interface Approved { type: "Approved" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** A motion was not approved by the required threshold. */ export interface Disapproved { type: "Disapproved" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** A motion was executed; result will be `Ok` if it returned without error. */ export interface Executed { type: "Executed" - proposal_hash: t.primitive_types.H256 - result: null | C.ChainError + proposal_hash: t.types.primitive_types.H256 + result: null | C.ChainError } /** A single member did some action; result will be `Ok` if it returned without error. */ export interface MemberExecuted { type: "MemberExecuted" - proposal_hash: t.primitive_types.H256 - result: null | C.ChainError + proposal_hash: t.types.primitive_types.H256 + result: null | C.ChainError } /** A proposal was closed because its threshold was reached or after its duration was up. */ export interface Closed { type: "Closed" - proposal_hash: t.primitive_types.H256 - yes: t.u32 - no: t.u32 + proposal_hash: t.types.primitive_types.H256 + yes: t.types.u32 + no: t.types.u32 } /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). */ export function Proposed( - value: Omit, - ): t.pallet_collective.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** @@ -539,38 +539,38 @@ export namespace Event { * a tally (yes votes and no votes given respectively as `MemberCount`). */ export function Voted( - value: Omit, - ): t.pallet_collective.pallet.Event.Voted { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Voted { return { type: "Voted", ...value } } /** A motion was approved by the required threshold. */ export function Approved( - value: Omit, - ): t.pallet_collective.pallet.Event.Approved { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Approved { return { type: "Approved", ...value } } /** A motion was not approved by the required threshold. */ export function Disapproved( - value: Omit, - ): t.pallet_collective.pallet.Event.Disapproved { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Disapproved { return { type: "Disapproved", ...value } } /** A motion was executed; result will be `Ok` if it returned without error. */ export function Executed( - value: Omit, - ): t.pallet_collective.pallet.Event.Executed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Executed { return { type: "Executed", ...value } } /** A single member did some action; result will be `Ok` if it returned without error. */ export function MemberExecuted( - value: Omit, - ): t.pallet_collective.pallet.Event.MemberExecuted { + value: Omit, + ): t.types.pallet_collective.pallet.Event.MemberExecuted { return { type: "MemberExecuted", ...value } } /** A proposal was closed because its threshold was reached or after its duration was up. */ export function Closed( - value: Omit, - ): t.pallet_collective.pallet.Event.Closed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Closed { return { type: "Closed", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_democracy/conviction.ts b/codegen/_output/kusama/types/pallet_democracy/conviction.ts new file mode 100644 index 000000000..c35068358 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_democracy/conviction.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $conviction: $.Codec = _codec.$235 + +export type Conviction = + | "None" + | "Locked1x" + | "Locked2x" + | "Locked3x" + | "Locked4x" + | "Locked5x" + | "Locked6x" diff --git a/codegen/_output/kusama/pallet_democracy/mod.ts b/codegen/_output/kusama/types/pallet_democracy/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_democracy/mod.ts rename to codegen/_output/kusama/types/pallet_democracy/mod.ts diff --git a/codegen/_output/polkadot/pallet_democracy/pallet.ts b/codegen/_output/kusama/types/pallet_democracy/pallet.ts similarity index 75% rename from codegen/_output/polkadot/pallet_democracy/pallet.ts rename to codegen/_output/kusama/types/pallet_democracy/pallet.ts index e138410cc..3981f4554 100644 --- a/codegen/_output/polkadot/pallet_democracy/pallet.ts +++ b/codegen/_output/kusama/types/pallet_democracy/pallet.ts @@ -1,33 +1,33 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$234 +export const $call: $.Codec = _codec.$234 -export const $error: $.Codec = _codec.$544 +export const $error: $.Codec = _codec.$544 -export const $event: $.Codec = _codec.$61 +export const $event: $.Codec = _codec.$61 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_democracy.pallet.Call.propose - | t.pallet_democracy.pallet.Call.second - | t.pallet_democracy.pallet.Call.vote - | t.pallet_democracy.pallet.Call.emergency_cancel - | t.pallet_democracy.pallet.Call.external_propose - | t.pallet_democracy.pallet.Call.external_propose_majority - | t.pallet_democracy.pallet.Call.external_propose_default - | t.pallet_democracy.pallet.Call.fast_track - | t.pallet_democracy.pallet.Call.veto_external - | t.pallet_democracy.pallet.Call.cancel_referendum - | t.pallet_democracy.pallet.Call.delegate - | t.pallet_democracy.pallet.Call.undelegate - | t.pallet_democracy.pallet.Call.clear_public_proposals - | t.pallet_democracy.pallet.Call.unlock - | t.pallet_democracy.pallet.Call.remove_vote - | t.pallet_democracy.pallet.Call.remove_other_vote - | t.pallet_democracy.pallet.Call.blacklist - | t.pallet_democracy.pallet.Call.cancel_proposal + | t.types.pallet_democracy.pallet.Call.propose + | t.types.pallet_democracy.pallet.Call.second + | t.types.pallet_democracy.pallet.Call.vote + | t.types.pallet_democracy.pallet.Call.emergency_cancel + | t.types.pallet_democracy.pallet.Call.external_propose + | t.types.pallet_democracy.pallet.Call.external_propose_majority + | t.types.pallet_democracy.pallet.Call.external_propose_default + | t.types.pallet_democracy.pallet.Call.fast_track + | t.types.pallet_democracy.pallet.Call.veto_external + | t.types.pallet_democracy.pallet.Call.cancel_referendum + | t.types.pallet_democracy.pallet.Call.delegate + | t.types.pallet_democracy.pallet.Call.undelegate + | t.types.pallet_democracy.pallet.Call.clear_public_proposals + | t.types.pallet_democracy.pallet.Call.unlock + | t.types.pallet_democracy.pallet.Call.remove_vote + | t.types.pallet_democracy.pallet.Call.remove_other_vote + | t.types.pallet_democracy.pallet.Call.blacklist + | t.types.pallet_democracy.pallet.Call.cancel_proposal export namespace Call { /** * Propose a sensitive action to be taken. @@ -42,8 +42,8 @@ export namespace Call { */ export interface propose { type: "propose" - proposal: t.frame_support.traits.preimages.Bounded - value: t.Compact + proposal: t.types.frame_support.traits.preimages.Bounded + value: t.Compact } /** * Signals agreement with a particular proposal. @@ -55,7 +55,7 @@ export namespace Call { */ export interface second { type: "second" - proposal: t.Compact + proposal: t.Compact } /** * Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; @@ -68,8 +68,8 @@ export namespace Call { */ export interface vote { type: "vote" - ref_index: t.Compact - vote: t.pallet_democracy.vote.AccountVote + ref_index: t.Compact + vote: t.types.pallet_democracy.vote.AccountVote } /** * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same @@ -83,7 +83,7 @@ export namespace Call { */ export interface emergency_cancel { type: "emergency_cancel" - ref_index: t.u32 + ref_index: t.types.u32 } /** * Schedule a referendum to be tabled once it is legal to schedule an external @@ -95,7 +95,7 @@ export namespace Call { */ export interface external_propose { type: "external_propose" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule a majority-carries referendum to be tabled next once it is legal to schedule @@ -112,7 +112,7 @@ export namespace Call { */ export interface external_propose_majority { type: "external_propose_majority" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to @@ -129,7 +129,7 @@ export namespace Call { */ export interface external_propose_default { type: "external_propose_default" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule the currently externally-proposed majority-carries referendum to be tabled @@ -151,9 +151,9 @@ export namespace Call { */ export interface fast_track { type: "fast_track" - proposal_hash: t.primitive_types.H256 - voting_period: t.u32 - delay: t.u32 + proposal_hash: t.types.primitive_types.H256 + voting_period: t.types.u32 + delay: t.types.u32 } /** * Veto and blacklist the external proposal hash. @@ -168,7 +168,7 @@ export namespace Call { */ export interface veto_external { type: "veto_external" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** * Remove a referendum. @@ -181,7 +181,7 @@ export namespace Call { */ export interface cancel_referendum { type: "cancel_referendum" - ref_index: t.Compact + ref_index: t.Compact } /** * Delegate the voting power (with some given conviction) of the sending account. @@ -207,9 +207,9 @@ export namespace Call { */ export interface delegate { type: "delegate" - to: t.sp_runtime.multiaddress.MultiAddress - conviction: t.pallet_democracy.conviction.Conviction - balance: t.u128 + to: t.types.sp_runtime.multiaddress.MultiAddress + conviction: t.types.pallet_democracy.conviction.Conviction + balance: t.types.u128 } /** * Undelegate the voting power of the sending account. @@ -249,7 +249,7 @@ export namespace Call { */ export interface unlock { type: "unlock" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove a vote for a referendum. @@ -282,7 +282,7 @@ export namespace Call { */ export interface remove_vote { type: "remove_vote" - index: t.u32 + index: t.types.u32 } /** * Remove a vote for a referendum. @@ -303,8 +303,8 @@ export namespace Call { */ export interface remove_other_vote { type: "remove_other_vote" - target: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + target: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 } /** * Permanently place a proposal into the blacklist. This prevents it from ever being @@ -325,8 +325,8 @@ export namespace Call { */ export interface blacklist { type: "blacklist" - proposal_hash: t.primitive_types.H256 - maybe_ref_index: t.u32 | undefined + proposal_hash: t.types.primitive_types.H256 + maybe_ref_index: t.types.u32 | undefined } /** * Remove a proposal. @@ -339,7 +339,7 @@ export namespace Call { */ export interface cancel_proposal { type: "cancel_proposal" - prop_index: t.Compact + prop_index: t.Compact } /** * Propose a sensitive action to be taken. @@ -353,8 +353,8 @@ export namespace Call { * Emits `Proposed`. */ export function propose( - value: Omit, - ): t.pallet_democracy.pallet.Call.propose { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.propose { return { type: "propose", ...value } } /** @@ -366,8 +366,8 @@ export namespace Call { * - `proposal`: The index of the proposal to second. */ export function second( - value: Omit, - ): t.pallet_democracy.pallet.Call.second { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.second { return { type: "second", ...value } } /** @@ -380,8 +380,8 @@ export namespace Call { * - `vote`: The vote configuration. */ export function vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -395,8 +395,8 @@ export namespace Call { * Weight: `O(1)`. */ export function emergency_cancel( - value: Omit, - ): t.pallet_democracy.pallet.Call.emergency_cancel { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.emergency_cancel { return { type: "emergency_cancel", ...value } } /** @@ -408,8 +408,8 @@ export namespace Call { * - `proposal_hash`: The preimage hash of the proposal. */ export function external_propose( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose { return { type: "external_propose", ...value } } /** @@ -426,8 +426,8 @@ export namespace Call { * Weight: `O(1)` */ export function external_propose_majority( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose_majority { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose_majority { return { type: "external_propose_majority", ...value } } /** @@ -444,8 +444,8 @@ export namespace Call { * Weight: `O(1)` */ export function external_propose_default( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose_default { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose_default { return { type: "external_propose_default", ...value } } /** @@ -467,8 +467,8 @@ export namespace Call { * Weight: `O(1)` */ export function fast_track( - value: Omit, - ): t.pallet_democracy.pallet.Call.fast_track { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.fast_track { return { type: "fast_track", ...value } } /** @@ -483,8 +483,8 @@ export namespace Call { * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ export function veto_external( - value: Omit, - ): t.pallet_democracy.pallet.Call.veto_external { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.veto_external { return { type: "veto_external", ...value } } /** @@ -497,8 +497,8 @@ export namespace Call { * # Weight: `O(1)`. */ export function cancel_referendum( - value: Omit, - ): t.pallet_democracy.pallet.Call.cancel_referendum { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.cancel_referendum { return { type: "cancel_referendum", ...value } } /** @@ -524,8 +524,8 @@ export namespace Call { * voted on. Weight is charged as if maximum votes. */ export function delegate( - value: Omit, - ): t.pallet_democracy.pallet.Call.delegate { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.delegate { return { type: "delegate", ...value } } /** @@ -542,7 +542,7 @@ export namespace Call { * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ - export function undelegate(): t.pallet_democracy.pallet.Call.undelegate { + export function undelegate(): t.types.pallet_democracy.pallet.Call.undelegate { return { type: "undelegate" } } /** @@ -552,7 +552,7 @@ export namespace Call { * * Weight: `O(1)`. */ - export function clear_public_proposals(): t.pallet_democracy.pallet.Call.clear_public_proposals { + export function clear_public_proposals(): t.types.pallet_democracy.pallet.Call.clear_public_proposals { return { type: "clear_public_proposals" } } /** @@ -565,8 +565,8 @@ export namespace Call { * Weight: `O(R)` with R number of vote of target. */ export function unlock( - value: Omit, - ): t.pallet_democracy.pallet.Call.unlock { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.unlock { return { type: "unlock", ...value } } /** @@ -599,8 +599,8 @@ export namespace Call { * Weight is calculated for the maximum number of vote. */ export function remove_vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.remove_vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.remove_vote { return { type: "remove_vote", ...value } } /** @@ -621,8 +621,8 @@ export namespace Call { * Weight is calculated for the maximum number of vote. */ export function remove_other_vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.remove_other_vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.remove_other_vote { return { type: "remove_other_vote", ...value } } /** @@ -643,8 +643,8 @@ export namespace Call { * reasonable value). */ export function blacklist( - value: Omit, - ): t.pallet_democracy.pallet.Call.blacklist { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.blacklist { return { type: "blacklist", ...value } } /** @@ -657,8 +657,8 @@ export namespace Call { * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ export function cancel_proposal( - value: Omit, - ): t.pallet_democracy.pallet.Call.cancel_proposal { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.cancel_proposal { return { type: "cancel_proposal", ...value } } } @@ -691,32 +691,32 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_democracy.pallet.Event.Proposed - | t.pallet_democracy.pallet.Event.Tabled - | t.pallet_democracy.pallet.Event.ExternalTabled - | t.pallet_democracy.pallet.Event.Started - | t.pallet_democracy.pallet.Event.Passed - | t.pallet_democracy.pallet.Event.NotPassed - | t.pallet_democracy.pallet.Event.Cancelled - | t.pallet_democracy.pallet.Event.Delegated - | t.pallet_democracy.pallet.Event.Undelegated - | t.pallet_democracy.pallet.Event.Vetoed - | t.pallet_democracy.pallet.Event.Blacklisted - | t.pallet_democracy.pallet.Event.Voted - | t.pallet_democracy.pallet.Event.Seconded - | t.pallet_democracy.pallet.Event.ProposalCanceled + | t.types.pallet_democracy.pallet.Event.Proposed + | t.types.pallet_democracy.pallet.Event.Tabled + | t.types.pallet_democracy.pallet.Event.ExternalTabled + | t.types.pallet_democracy.pallet.Event.Started + | t.types.pallet_democracy.pallet.Event.Passed + | t.types.pallet_democracy.pallet.Event.NotPassed + | t.types.pallet_democracy.pallet.Event.Cancelled + | t.types.pallet_democracy.pallet.Event.Delegated + | t.types.pallet_democracy.pallet.Event.Undelegated + | t.types.pallet_democracy.pallet.Event.Vetoed + | t.types.pallet_democracy.pallet.Event.Blacklisted + | t.types.pallet_democracy.pallet.Event.Voted + | t.types.pallet_democracy.pallet.Event.Seconded + | t.types.pallet_democracy.pallet.Event.ProposalCanceled export namespace Event { /** A motion has been proposed by a public account. */ export interface Proposed { type: "Proposed" - proposal_index: t.u32 - deposit: t.u128 + proposal_index: t.types.u32 + deposit: t.types.u128 } /** A public proposal has been tabled for referendum vote. */ export interface Tabled { type: "Tabled" - proposal_index: t.u32 - deposit: t.u128 + proposal_index: t.types.u32 + deposit: t.types.u128 } /** An external proposal has been tabled. */ export interface ExternalTabled { @@ -725,145 +725,145 @@ export namespace Event { /** A referendum has begun. */ export interface Started { type: "Started" - ref_index: t.u32 - threshold: t.pallet_democracy.vote_threshold.VoteThreshold + ref_index: t.types.u32 + threshold: t.types.pallet_democracy.vote_threshold.VoteThreshold } /** A proposal has been approved by referendum. */ export interface Passed { type: "Passed" - ref_index: t.u32 + ref_index: t.types.u32 } /** A proposal has been rejected by referendum. */ export interface NotPassed { type: "NotPassed" - ref_index: t.u32 + ref_index: t.types.u32 } /** A referendum has been cancelled. */ export interface Cancelled { type: "Cancelled" - ref_index: t.u32 + ref_index: t.types.u32 } /** An account has delegated their vote to another account. */ export interface Delegated { type: "Delegated" - who: t.sp_core.crypto.AccountId32 - target: t.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 + target: t.types.sp_core.crypto.AccountId32 } /** An account has cancelled a previous delegation operation. */ export interface Undelegated { type: "Undelegated" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** An external proposal has been vetoed. */ export interface Vetoed { type: "Vetoed" - who: t.sp_core.crypto.AccountId32 - proposal_hash: t.primitive_types.H256 - until: t.u32 + who: t.types.sp_core.crypto.AccountId32 + proposal_hash: t.types.primitive_types.H256 + until: t.types.u32 } /** A proposal_hash has been blacklisted permanently. */ export interface Blacklisted { type: "Blacklisted" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** An account has voted in a referendum */ export interface Voted { type: "Voted" - voter: t.sp_core.crypto.AccountId32 - ref_index: t.u32 - vote: t.pallet_democracy.vote.AccountVote + voter: t.types.sp_core.crypto.AccountId32 + ref_index: t.types.u32 + vote: t.types.pallet_democracy.vote.AccountVote } /** An account has secconded a proposal */ export interface Seconded { type: "Seconded" - seconder: t.sp_core.crypto.AccountId32 - prop_index: t.u32 + seconder: t.types.sp_core.crypto.AccountId32 + prop_index: t.types.u32 } /** A proposal got canceled. */ export interface ProposalCanceled { type: "ProposalCanceled" - prop_index: t.u32 + prop_index: t.types.u32 } /** A motion has been proposed by a public account. */ export function Proposed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** A public proposal has been tabled for referendum vote. */ export function Tabled( - value: Omit, - ): t.pallet_democracy.pallet.Event.Tabled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Tabled { return { type: "Tabled", ...value } } /** An external proposal has been tabled. */ - export function ExternalTabled(): t.pallet_democracy.pallet.Event.ExternalTabled { + export function ExternalTabled(): t.types.pallet_democracy.pallet.Event.ExternalTabled { return { type: "ExternalTabled" } } /** A referendum has begun. */ export function Started( - value: Omit, - ): t.pallet_democracy.pallet.Event.Started { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Started { return { type: "Started", ...value } } /** A proposal has been approved by referendum. */ export function Passed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Passed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Passed { return { type: "Passed", ...value } } /** A proposal has been rejected by referendum. */ export function NotPassed( - value: Omit, - ): t.pallet_democracy.pallet.Event.NotPassed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.NotPassed { return { type: "NotPassed", ...value } } /** A referendum has been cancelled. */ export function Cancelled( - value: Omit, - ): t.pallet_democracy.pallet.Event.Cancelled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Cancelled { return { type: "Cancelled", ...value } } /** An account has delegated their vote to another account. */ export function Delegated( - value: Omit, - ): t.pallet_democracy.pallet.Event.Delegated { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Delegated { return { type: "Delegated", ...value } } /** An account has cancelled a previous delegation operation. */ export function Undelegated( - value: Omit, - ): t.pallet_democracy.pallet.Event.Undelegated { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Undelegated { return { type: "Undelegated", ...value } } /** An external proposal has been vetoed. */ export function Vetoed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Vetoed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Vetoed { return { type: "Vetoed", ...value } } /** A proposal_hash has been blacklisted permanently. */ export function Blacklisted( - value: Omit, - ): t.pallet_democracy.pallet.Event.Blacklisted { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Blacklisted { return { type: "Blacklisted", ...value } } /** An account has voted in a referendum */ export function Voted( - value: Omit, - ): t.pallet_democracy.pallet.Event.Voted { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Voted { return { type: "Voted", ...value } } /** An account has secconded a proposal */ export function Seconded( - value: Omit, - ): t.pallet_democracy.pallet.Event.Seconded { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Seconded { return { type: "Seconded", ...value } } /** A proposal got canceled. */ export function ProposalCanceled( - value: Omit, - ): t.pallet_democracy.pallet.Event.ProposalCanceled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.ProposalCanceled { return { type: "ProposalCanceled", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_democracy/types.ts b/codegen/_output/kusama/types/pallet_democracy/types.ts new file mode 100644 index 000000000..f0129bbe9 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_democracy/types.ts @@ -0,0 +1,68 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $delegations: $.Codec = _codec.$540 + +export const $referendumInfo: $.Codec = _codec.$533 + +export const $referendumStatus: $.Codec = + _codec.$534 + +export const $tally: $.Codec = _codec.$535 + +export interface Delegations { + votes: t.types.u128 + capital: t.types.u128 +} + +export function Delegations(value: t.types.pallet_democracy.types.Delegations) { + return value +} + +export type ReferendumInfo = + | t.types.pallet_democracy.types.ReferendumInfo.Ongoing + | t.types.pallet_democracy.types.ReferendumInfo.Finished +export namespace ReferendumInfo { + export interface Ongoing { + type: "Ongoing" + value: t.types.pallet_democracy.types.ReferendumStatus + } + export interface Finished { + type: "Finished" + approved: boolean + end: t.types.u32 + } + export function Ongoing( + value: t.types.pallet_democracy.types.ReferendumInfo.Ongoing["value"], + ): t.types.pallet_democracy.types.ReferendumInfo.Ongoing { + return { type: "Ongoing", value } + } + export function Finished( + value: Omit, + ): t.types.pallet_democracy.types.ReferendumInfo.Finished { + return { type: "Finished", ...value } + } +} + +export interface ReferendumStatus { + end: t.types.u32 + proposal: t.types.frame_support.traits.preimages.Bounded + threshold: t.types.pallet_democracy.vote_threshold.VoteThreshold + delay: t.types.u32 + tally: t.types.pallet_democracy.types.Tally +} + +export function ReferendumStatus(value: t.types.pallet_democracy.types.ReferendumStatus) { + return value +} + +export interface Tally { + ayes: t.types.u128 + nays: t.types.u128 + turnout: t.types.u128 +} + +export function Tally(value: t.types.pallet_democracy.types.Tally) { + return value +} diff --git a/codegen/_output/kusama/types/pallet_democracy/vote.ts b/codegen/_output/kusama/types/pallet_democracy/vote.ts new file mode 100644 index 000000000..14238d064 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_democracy/vote.ts @@ -0,0 +1,79 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $accountVote: $.Codec = _codec.$63 + +export const $priorLock: $.Codec = _codec.$541 + +export const $vote: $.Codec = _codec.$64 + +export const $voting: $.Codec = _codec.$536 + +export type AccountVote = + | t.types.pallet_democracy.vote.AccountVote.Standard + | t.types.pallet_democracy.vote.AccountVote.Split +export namespace AccountVote { + export interface Standard { + type: "Standard" + vote: t.types.pallet_democracy.vote.Vote + balance: t.types.u128 + } + export interface Split { + type: "Split" + aye: t.types.u128 + nay: t.types.u128 + } + export function Standard( + value: Omit, + ): t.types.pallet_democracy.vote.AccountVote.Standard { + return { type: "Standard", ...value } + } + export function Split( + value: Omit, + ): t.types.pallet_democracy.vote.AccountVote.Split { + return { type: "Split", ...value } + } +} + +export type PriorLock = [t.types.u32, t.types.u128] + +export function PriorLock(...value: t.types.pallet_democracy.vote.PriorLock) { + return value +} + +export type Vote = t.types.u8 + +export function Vote(value: t.types.pallet_democracy.vote.Vote) { + return value +} + +export type Voting = + | t.types.pallet_democracy.vote.Voting.Direct + | t.types.pallet_democracy.vote.Voting.Delegating +export namespace Voting { + export interface Direct { + type: "Direct" + votes: Array<[t.types.u32, t.types.pallet_democracy.vote.AccountVote]> + delegations: t.types.pallet_democracy.types.Delegations + prior: t.types.pallet_democracy.vote.PriorLock + } + export interface Delegating { + type: "Delegating" + balance: t.types.u128 + target: t.types.sp_core.crypto.AccountId32 + conviction: t.types.pallet_democracy.conviction.Conviction + delegations: t.types.pallet_democracy.types.Delegations + prior: t.types.pallet_democracy.vote.PriorLock + } + export function Direct( + value: Omit, + ): t.types.pallet_democracy.vote.Voting.Direct { + return { type: "Direct", ...value } + } + export function Delegating( + value: Omit, + ): t.types.pallet_democracy.vote.Voting.Delegating { + return { type: "Delegating", ...value } + } +} diff --git a/codegen/_output/kusama/types/pallet_democracy/vote_threshold.ts b/codegen/_output/kusama/types/pallet_democracy/vote_threshold.ts new file mode 100644 index 000000000..6bb511ea0 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_democracy/vote_threshold.ts @@ -0,0 +1,8 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $voteThreshold: $.Codec = + _codec.$62 + +export type VoteThreshold = "SuperMajorityApprove" | "SuperMajorityAgainst" | "SimpleMajority" diff --git a/codegen/_output/kusama/types/pallet_election_provider_multi_phase/mod.ts b/codegen/_output/kusama/types/pallet_election_provider_multi_phase/mod.ts new file mode 100644 index 000000000..2db454efe --- /dev/null +++ b/codegen/_output/kusama/types/pallet_election_provider_multi_phase/mod.ts @@ -0,0 +1,104 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as signed from "./signed.ts" + +export const $electionCompute: $.Codec< + t.types.pallet_election_provider_multi_phase.ElectionCompute +> = _codec.$87 + +export const $phase: $.Codec = _codec.$600 + +export const $rawSolution: $.Codec = + _codec.$311 + +export const $readySolution: $.Codec = + _codec.$602 + +export const $roundSnapshot: $.Codec = + _codec.$603 + +export const $solutionOrSnapshotSize: $.Codec< + t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize +> = _codec.$363 + +export type ElectionCompute = "OnChain" | "Signed" | "Unsigned" | "Fallback" | "Emergency" + +export type Phase = + | t.types.pallet_election_provider_multi_phase.Phase.Off + | t.types.pallet_election_provider_multi_phase.Phase.Signed + | t.types.pallet_election_provider_multi_phase.Phase.Unsigned + | t.types.pallet_election_provider_multi_phase.Phase.Emergency +export namespace Phase { + export interface Off { + type: "Off" + } + export interface Signed { + type: "Signed" + } + export interface Unsigned { + type: "Unsigned" + value: [boolean, t.types.u32] + } + export interface Emergency { + type: "Emergency" + } + export function Off(): t.types.pallet_election_provider_multi_phase.Phase.Off { + return { type: "Off" } + } + export function Signed(): t.types.pallet_election_provider_multi_phase.Phase.Signed { + return { type: "Signed" } + } + export function Unsigned( + value: t.types.pallet_election_provider_multi_phase.Phase.Unsigned["value"], + ): t.types.pallet_election_provider_multi_phase.Phase.Unsigned { + return { type: "Unsigned", value } + } + export function Emergency(): t.types.pallet_election_provider_multi_phase.Phase.Emergency { + return { type: "Emergency" } + } +} + +export interface RawSolution { + solution: t.types.polkadot_runtime.NposCompactSolution16 + score: t.types.sp_npos_elections.ElectionScore + round: t.types.u32 +} + +export function RawSolution(value: t.types.pallet_election_provider_multi_phase.RawSolution) { + return value +} + +export interface ReadySolution { + supports: Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> + score: t.types.sp_npos_elections.ElectionScore + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute +} + +export function ReadySolution(value: t.types.pallet_election_provider_multi_phase.ReadySolution) { + return value +} + +export interface RoundSnapshot { + voters: Array< + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] + > + targets: Array +} + +export function RoundSnapshot(value: t.types.pallet_election_provider_multi_phase.RoundSnapshot) { + return value +} + +export interface SolutionOrSnapshotSize { + voters: t.Compact + targets: t.Compact +} + +export function SolutionOrSnapshotSize( + value: t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize, +) { + return value +} diff --git a/codegen/_output/kusama/pallet_election_provider_multi_phase/pallet.ts b/codegen/_output/kusama/types/pallet_election_provider_multi_phase/pallet.ts similarity index 65% rename from codegen/_output/kusama/pallet_election_provider_multi_phase/pallet.ts rename to codegen/_output/kusama/types/pallet_election_provider_multi_phase/pallet.ts index 4c2c8e6b3..f887c8e4c 100644 --- a/codegen/_output/kusama/pallet_election_provider_multi_phase/pallet.ts +++ b/codegen/_output/kusama/types/pallet_election_provider_multi_phase/pallet.ts @@ -1,20 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$310 +export const $call: $.Codec = _codec.$310 -export const $error: $.Codec = _codec.$611 +export const $error: $.Codec = + _codec.$611 -export const $event: $.Codec = _codec.$86 +export const $event: $.Codec = _codec.$86 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned - | t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score - | t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result - | t.pallet_election_provider_multi_phase.pallet.Call.submit - | t.pallet_election_provider_multi_phase.pallet.Call.governance_fallback + | t.types.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned + | t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score + | t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result + | t.types.pallet_election_provider_multi_phase.pallet.Call.submit + | t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback export namespace Call { /** * Submit a solution for the unsigned phase. @@ -34,8 +35,8 @@ export namespace Call { */ export interface submit_unsigned { type: "submit_unsigned" - raw_solution: t.pallet_election_provider_multi_phase.RawSolution - witness: t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution + witness: t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize } /** * Set a new value for `MinimumUntrustedScore`. @@ -46,7 +47,7 @@ export namespace Call { */ export interface set_minimum_untrusted_score { type: "set_minimum_untrusted_score" - maybe_next_score: t.sp_npos_elections.ElectionScore | undefined + maybe_next_score: t.types.sp_npos_elections.ElectionScore | undefined } /** * Set a solution in the queue, to be handed out to the client of this pallet in the next @@ -60,7 +61,7 @@ export namespace Call { */ export interface set_emergency_election_result { type: "set_emergency_election_result" - supports: Array<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> + supports: Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> } /** * Submit a solution for the signed phase. @@ -75,7 +76,7 @@ export namespace Call { */ export interface submit { type: "submit" - raw_solution: t.pallet_election_provider_multi_phase.RawSolution + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution } /** * Trigger the governance fallback. @@ -85,8 +86,8 @@ export namespace Call { */ export interface governance_fallback { type: "governance_fallback" - maybe_max_voters: t.u32 | undefined - maybe_max_targets: t.u32 | undefined + maybe_max_voters: t.types.u32 | undefined + maybe_max_targets: t.types.u32 | undefined } /** * Submit a solution for the unsigned phase. @@ -105,8 +106,8 @@ export namespace Call { * No deposit or reward is associated with this submission. */ export function submit_unsigned( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned { return { type: "submit_unsigned", ...value } } /** @@ -118,10 +119,10 @@ export namespace Call { */ export function set_minimum_untrusted_score( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, "type" >, - ): t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score { + ): t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score { return { type: "set_minimum_untrusted_score", ...value } } /** @@ -136,10 +137,10 @@ export namespace Call { */ export function set_emergency_election_result( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, "type" >, - ): t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result { + ): t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result { return { type: "set_emergency_election_result", ...value } } /** @@ -154,8 +155,8 @@ export namespace Call { * might be rewarded, slashed, or get all or a part of the deposit back. */ export function submit( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.submit { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.submit { return { type: "submit", ...value } } /** @@ -165,8 +166,11 @@ export namespace Call { * calling [`Call::set_emergency_election_result`]. */ export function governance_fallback( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.governance_fallback { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback { return { type: "governance_fallback", ...value } } } @@ -188,13 +192,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_election_provider_multi_phase.pallet.Event.SolutionStored - | t.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized - | t.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed - | t.pallet_election_provider_multi_phase.pallet.Event.Rewarded - | t.pallet_election_provider_multi_phase.pallet.Event.Slashed - | t.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted - | t.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted + | t.types.pallet_election_provider_multi_phase.pallet.Event.SolutionStored + | t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized + | t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed + | t.types.pallet_election_provider_multi_phase.pallet.Event.Rewarded + | t.types.pallet_election_provider_multi_phase.pallet.Event.Slashed + | t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted + | t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted export namespace Event { /** * A solution was stored with the given compute. @@ -206,14 +210,14 @@ export namespace Event { */ export interface SolutionStored { type: "SolutionStored" - compute: t.pallet_election_provider_multi_phase.ElectionCompute + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute prev_ejected: boolean } /** The election has been finalized, with the given computation and score. */ export interface ElectionFinalized { type: "ElectionFinalized" - compute: t.pallet_election_provider_multi_phase.ElectionCompute - score: t.sp_npos_elections.ElectionScore + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute + score: t.types.sp_npos_elections.ElectionScore } /** * An election failed. @@ -226,24 +230,24 @@ export namespace Event { /** An account has been rewarded for their signed submission being finalized. */ export interface Rewarded { type: "Rewarded" - account: t.sp_core.crypto.AccountId32 - value: t.u128 + account: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 } /** An account has been slashed for submitting an invalid signed submission. */ export interface Slashed { type: "Slashed" - account: t.sp_core.crypto.AccountId32 - value: t.u128 + account: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 } /** The signed phase of the given round has started. */ export interface SignedPhaseStarted { type: "SignedPhaseStarted" - round: t.u32 + round: t.types.u32 } /** The unsigned phase of the given round has started. */ export interface UnsignedPhaseStarted { type: "UnsignedPhaseStarted" - round: t.u32 + round: t.types.u32 } /** * A solution was stored with the given compute. @@ -254,14 +258,17 @@ export namespace Event { * The `bool` is `true` when a previous solution was ejected to make room for this one. */ export function SolutionStored( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.SolutionStored { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.SolutionStored { return { type: "SolutionStored", ...value } } /** The election has been finalized, with the given computation and score. */ export function ElectionFinalized( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized { return { type: "ElectionFinalized", ...value } } /** @@ -269,31 +276,37 @@ export namespace Event { * * Not much can be said about which computes failed in the process. */ - export function ElectionFailed(): t.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed { + export function ElectionFailed(): t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed { return { type: "ElectionFailed" } } /** An account has been rewarded for their signed submission being finalized. */ export function Rewarded( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.Rewarded { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.Rewarded { return { type: "Rewarded", ...value } } /** An account has been slashed for submitting an invalid signed submission. */ export function Slashed( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** The signed phase of the given round has started. */ export function SignedPhaseStarted( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted { return { type: "SignedPhaseStarted", ...value } } /** The unsigned phase of the given round has started. */ export function UnsignedPhaseStarted( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted { return { type: "UnsignedPhaseStarted", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_election_provider_multi_phase/signed.ts b/codegen/_output/kusama/types/pallet_election_provider_multi_phase/signed.ts new file mode 100644 index 000000000..6fbed6f87 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_election_provider_multi_phase/signed.ts @@ -0,0 +1,20 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $signedSubmission: $.Codec< + t.types.pallet_election_provider_multi_phase.signed.SignedSubmission +> = _codec.$610 + +export interface SignedSubmission { + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution + call_fee: t.types.u128 +} + +export function SignedSubmission( + value: t.types.pallet_election_provider_multi_phase.signed.SignedSubmission, +) { + return value +} diff --git a/codegen/_output/kusama/types/pallet_elections_phragmen/mod.ts b/codegen/_output/kusama/types/pallet_elections_phragmen/mod.ts new file mode 100644 index 000000000..2dbfe20df --- /dev/null +++ b/codegen/_output/kusama/types/pallet_elections_phragmen/mod.ts @@ -0,0 +1,59 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $renouncing: $.Codec = _codec.$242 + +export const $seatHolder: $.Codec = _codec.$551 + +export const $voter: $.Codec = _codec.$552 + +export type Renouncing = + | t.types.pallet_elections_phragmen.Renouncing.Member + | t.types.pallet_elections_phragmen.Renouncing.RunnerUp + | t.types.pallet_elections_phragmen.Renouncing.Candidate +export namespace Renouncing { + export interface Member { + type: "Member" + } + export interface RunnerUp { + type: "RunnerUp" + } + export interface Candidate { + type: "Candidate" + value: t.Compact + } + export function Member(): t.types.pallet_elections_phragmen.Renouncing.Member { + return { type: "Member" } + } + export function RunnerUp(): t.types.pallet_elections_phragmen.Renouncing.RunnerUp { + return { type: "RunnerUp" } + } + export function Candidate( + value: t.types.pallet_elections_phragmen.Renouncing.Candidate["value"], + ): t.types.pallet_elections_phragmen.Renouncing.Candidate { + return { type: "Candidate", value } + } +} + +export interface SeatHolder { + who: t.types.sp_core.crypto.AccountId32 + stake: t.types.u128 + deposit: t.types.u128 +} + +export function SeatHolder(value: t.types.pallet_elections_phragmen.SeatHolder) { + return value +} + +export interface Voter { + votes: Array + stake: t.types.u128 + deposit: t.types.u128 +} + +export function Voter(value: t.types.pallet_elections_phragmen.Voter) { + return value +} diff --git a/codegen/_output/polkadot/pallet_elections_phragmen/pallet.ts b/codegen/_output/kusama/types/pallet_elections_phragmen/pallet.ts similarity index 77% rename from codegen/_output/polkadot/pallet_elections_phragmen/pallet.ts rename to codegen/_output/kusama/types/pallet_elections_phragmen/pallet.ts index 4867e13f0..f8d119b2b 100644 --- a/codegen/_output/polkadot/pallet_elections_phragmen/pallet.ts +++ b/codegen/_output/kusama/types/pallet_elections_phragmen/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$241 +export const $call: $.Codec = _codec.$241 -export const $error: $.Codec = _codec.$553 +export const $error: $.Codec = _codec.$553 -export const $event: $.Codec = _codec.$67 +export const $event: $.Codec = _codec.$67 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_elections_phragmen.pallet.Call.vote - | t.pallet_elections_phragmen.pallet.Call.remove_voter - | t.pallet_elections_phragmen.pallet.Call.submit_candidacy - | t.pallet_elections_phragmen.pallet.Call.renounce_candidacy - | t.pallet_elections_phragmen.pallet.Call.remove_member - | t.pallet_elections_phragmen.pallet.Call.clean_defunct_voters + | t.types.pallet_elections_phragmen.pallet.Call.vote + | t.types.pallet_elections_phragmen.pallet.Call.remove_voter + | t.types.pallet_elections_phragmen.pallet.Call.submit_candidacy + | t.types.pallet_elections_phragmen.pallet.Call.renounce_candidacy + | t.types.pallet_elections_phragmen.pallet.Call.remove_member + | t.types.pallet_elections_phragmen.pallet.Call.clean_defunct_voters export namespace Call { /** * Vote for a set of candidates for the upcoming round of election. This can be called to @@ -44,8 +44,8 @@ export namespace Call { */ export interface vote { type: "vote" - votes: Array - value: t.Compact + votes: Array + value: t.Compact } /** * Remove `origin` as a voter. @@ -76,7 +76,7 @@ export namespace Call { */ export interface submit_candidacy { type: "submit_candidacy" - candidate_count: t.Compact + candidate_count: t.Compact } /** * Renounce one's intention to be a candidate for the next election round. 3 potential @@ -100,7 +100,7 @@ export namespace Call { */ export interface renounce_candidacy { type: "renounce_candidacy" - renouncing: t.pallet_elections_phragmen.Renouncing + renouncing: t.types.pallet_elections_phragmen.Renouncing } /** * Remove a particular member from the set. This is effective immediately and the bond of @@ -124,7 +124,7 @@ export namespace Call { */ export interface remove_member { type: "remove_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress slash_bond: boolean rerun_election: boolean } @@ -142,8 +142,8 @@ export namespace Call { */ export interface clean_defunct_voters { type: "clean_defunct_voters" - num_voters: t.u32 - num_defunct: t.u32 + num_voters: t.types.u32 + num_defunct: t.types.u32 } /** * Vote for a set of candidates for the upcoming round of election. This can be called to @@ -171,8 +171,8 @@ export namespace Call { * # */ export function vote( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.vote { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -182,7 +182,7 @@ export namespace Call { * * The dispatch origin of this call must be signed and be a voter. */ - export function remove_voter(): t.pallet_elections_phragmen.pallet.Call.remove_voter { + export function remove_voter(): t.types.pallet_elections_phragmen.pallet.Call.remove_voter { return { type: "remove_voter" } } /** @@ -203,8 +203,8 @@ export namespace Call { * # */ export function submit_candidacy( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.submit_candidacy { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.submit_candidacy { return { type: "submit_candidacy", ...value } } /** @@ -228,8 +228,8 @@ export namespace Call { * # */ export function renounce_candidacy( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.renounce_candidacy { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.renounce_candidacy { return { type: "renounce_candidacy", ...value } } /** @@ -253,8 +253,8 @@ export namespace Call { * # */ export function remove_member( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.remove_member { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.remove_member { return { type: "remove_member", ...value } } /** @@ -270,8 +270,8 @@ export namespace Call { * # */ export function clean_defunct_voters( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.clean_defunct_voters { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.clean_defunct_voters { return { type: "clean_defunct_voters", ...value } } } @@ -298,13 +298,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_elections_phragmen.pallet.Event.NewTerm - | t.pallet_elections_phragmen.pallet.Event.EmptyTerm - | t.pallet_elections_phragmen.pallet.Event.ElectionError - | t.pallet_elections_phragmen.pallet.Event.MemberKicked - | t.pallet_elections_phragmen.pallet.Event.Renounced - | t.pallet_elections_phragmen.pallet.Event.CandidateSlashed - | t.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed + | t.types.pallet_elections_phragmen.pallet.Event.NewTerm + | t.types.pallet_elections_phragmen.pallet.Event.EmptyTerm + | t.types.pallet_elections_phragmen.pallet.Event.ElectionError + | t.types.pallet_elections_phragmen.pallet.Event.MemberKicked + | t.types.pallet_elections_phragmen.pallet.Event.Renounced + | t.types.pallet_elections_phragmen.pallet.Event.CandidateSlashed + | t.types.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed export namespace Event { /** * A new term with new_members. This indicates that enough candidates existed to run @@ -315,7 +315,7 @@ export namespace Event { */ export interface NewTerm { type: "NewTerm" - new_members: Array<[t.sp_core.crypto.AccountId32, t.u128]> + new_members: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> } /** * No (or not enough) candidates existed for this round. This is different from @@ -334,12 +334,12 @@ export namespace Event { */ export interface MemberKicked { type: "MemberKicked" - member: t.sp_core.crypto.AccountId32 + member: t.types.sp_core.crypto.AccountId32 } /** Someone has renounced their candidacy. */ export interface Renounced { type: "Renounced" - candidate: t.sp_core.crypto.AccountId32 + candidate: t.types.sp_core.crypto.AccountId32 } /** * A candidate was slashed by amount due to failing to obtain a seat as member or @@ -349,14 +349,14 @@ export namespace Event { */ export interface CandidateSlashed { type: "CandidateSlashed" - candidate: t.sp_core.crypto.AccountId32 - amount: t.u128 + candidate: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A seat holder was slashed by amount by being forcefully removed from the set. */ export interface SeatHolderSlashed { type: "SeatHolderSlashed" - seat_holder: t.sp_core.crypto.AccountId32 - amount: t.u128 + seat_holder: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * A new term with new_members. This indicates that enough candidates existed to run @@ -366,19 +366,19 @@ export namespace Event { * begin with. */ export function NewTerm( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.NewTerm { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.NewTerm { return { type: "NewTerm", ...value } } /** * No (or not enough) candidates existed for this round. This is different from * `NewTerm(\[\])`. See the description of `NewTerm`. */ - export function EmptyTerm(): t.pallet_elections_phragmen.pallet.Event.EmptyTerm { + export function EmptyTerm(): t.types.pallet_elections_phragmen.pallet.Event.EmptyTerm { return { type: "EmptyTerm" } } /** Internal error happened while trying to perform election. */ - export function ElectionError(): t.pallet_elections_phragmen.pallet.Event.ElectionError { + export function ElectionError(): t.types.pallet_elections_phragmen.pallet.Event.ElectionError { return { type: "ElectionError" } } /** @@ -386,14 +386,14 @@ export namespace Event { * `EmptyTerm`. */ export function MemberKicked( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.MemberKicked { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.MemberKicked { return { type: "MemberKicked", ...value } } /** Someone has renounced their candidacy. */ export function Renounced( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.Renounced { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.Renounced { return { type: "Renounced", ...value } } /** @@ -403,14 +403,14 @@ export namespace Event { * Note that old members and runners-up are also candidates. */ export function CandidateSlashed( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.CandidateSlashed { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.CandidateSlashed { return { type: "CandidateSlashed", ...value } } /** A seat holder was slashed by amount by being forcefully removed from the set. */ export function SeatHolderSlashed( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed { return { type: "SeatHolderSlashed", ...value } } } diff --git a/codegen/_output/kusama/pallet_fast_unstake/mod.ts b/codegen/_output/kusama/types/pallet_fast_unstake/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_fast_unstake/mod.ts rename to codegen/_output/kusama/types/pallet_fast_unstake/mod.ts diff --git a/codegen/_output/rococo/pallet_fast_unstake/pallet.ts b/codegen/_output/kusama/types/pallet_fast_unstake/pallet.ts similarity index 69% rename from codegen/_output/rococo/pallet_fast_unstake/pallet.ts rename to codegen/_output/kusama/types/pallet_fast_unstake/pallet.ts index f71b89fd1..593f22acc 100644 --- a/codegen/_output/rococo/pallet_fast_unstake/pallet.ts +++ b/codegen/_output/kusama/types/pallet_fast_unstake/pallet.ts @@ -1,20 +1,20 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$374 +export const $call: $.Codec = _codec.$374 -export const $error: $.Codec = _codec.$637 +export const $error: $.Codec = _codec.$637 -export const $event: $.Codec = _codec.$93 +export const $event: $.Codec = _codec.$93 -export const $maxChecking: $.Codec = _codec.$635 +export const $maxChecking: $.Codec = _codec.$635 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_fast_unstake.pallet.Call.register_fast_unstake - | t.pallet_fast_unstake.pallet.Call.deregister - | t.pallet_fast_unstake.pallet.Call.control + | t.types.pallet_fast_unstake.pallet.Call.register_fast_unstake + | t.types.pallet_fast_unstake.pallet.Call.deregister + | t.types.pallet_fast_unstake.pallet.Call.control export namespace Call { /** * Register oneself for fast-unstake. @@ -58,7 +58,7 @@ export namespace Call { */ export interface control { type: "control" - unchecked_eras_to_check: t.u32 + unchecked_eras_to_check: t.types.u32 } /** * Register oneself for fast-unstake. @@ -80,7 +80,7 @@ export namespace Call { * the normal staking system, but they lose part of their unbonding chunks due to consuming * the chain's resources. */ - export function register_fast_unstake(): t.pallet_fast_unstake.pallet.Call.register_fast_unstake { + export function register_fast_unstake(): t.types.pallet_fast_unstake.pallet.Call.register_fast_unstake { return { type: "register_fast_unstake" } } /** @@ -92,7 +92,7 @@ export namespace Call { * calling `register_fast_unstake`. This should probably be followed by a call to * `Staking::rebond`. */ - export function deregister(): t.pallet_fast_unstake.pallet.Call.deregister { + export function deregister(): t.types.pallet_fast_unstake.pallet.Call.deregister { return { type: "deregister" } } /** @@ -101,8 +101,8 @@ export namespace Call { * Dispatch origin must be signed by the [`Config::ControlOrigin`]. */ export function control( - value: Omit, - ): t.pallet_fast_unstake.pallet.Call.control { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Call.control { return { type: "control", ...value } } } @@ -118,29 +118,29 @@ export type Error = /** The events of this pallet. */ export type Event = - | t.pallet_fast_unstake.pallet.Event.Unstaked - | t.pallet_fast_unstake.pallet.Event.Slashed - | t.pallet_fast_unstake.pallet.Event.Checking - | t.pallet_fast_unstake.pallet.Event.Errored - | t.pallet_fast_unstake.pallet.Event.InternalError + | t.types.pallet_fast_unstake.pallet.Event.Unstaked + | t.types.pallet_fast_unstake.pallet.Event.Slashed + | t.types.pallet_fast_unstake.pallet.Event.Checking + | t.types.pallet_fast_unstake.pallet.Event.Errored + | t.types.pallet_fast_unstake.pallet.Event.InternalError export namespace Event { /** A staker was unstaked. */ export interface Unstaked { type: "Unstaked" - stash: t.sp_core.crypto.AccountId32 - result: null | C.ChainError + stash: t.types.sp_core.crypto.AccountId32 + result: null | C.ChainError } /** A staker was slashed for requesting fast-unstake whilst being exposed. */ export interface Slashed { type: "Slashed" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A staker was partially checked for the given eras, but the process did not finish. */ export interface Checking { type: "Checking" - stash: t.sp_core.crypto.AccountId32 - eras: Array + stash: t.types.sp_core.crypto.AccountId32 + eras: Array } /** * Some internal error happened while migrating stash. They are removed as head as a @@ -148,7 +148,7 @@ export namespace Event { */ export interface Errored { type: "Errored" - stash: t.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** An internal error happened. Operations will be paused now. */ export interface InternalError { @@ -156,20 +156,20 @@ export namespace Event { } /** A staker was unstaked. */ export function Unstaked( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Unstaked { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Unstaked { return { type: "Unstaked", ...value } } /** A staker was slashed for requesting fast-unstake whilst being exposed. */ export function Slashed( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** A staker was partially checked for the given eras, but the process did not finish. */ export function Checking( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Checking { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Checking { return { type: "Checking", ...value } } /** @@ -177,12 +177,12 @@ export namespace Event { * consequence. */ export function Errored( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Errored { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Errored { return { type: "Errored", ...value } } /** An internal error happened. Operations will be paused now. */ - export function InternalError(): t.pallet_fast_unstake.pallet.Event.InternalError { + export function InternalError(): t.types.pallet_fast_unstake.pallet.Event.InternalError { return { type: "InternalError" } } } diff --git a/codegen/_output/kusama/types/pallet_fast_unstake/types.ts b/codegen/_output/kusama/types/pallet_fast_unstake/types.ts new file mode 100644 index 000000000..e29dae328 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_fast_unstake/types.ts @@ -0,0 +1,16 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $unstakeRequest: $.Codec = + _codec.$634 + +export interface UnstakeRequest { + stash: t.types.sp_core.crypto.AccountId32 + checked: Array + deposit: t.types.u128 +} + +export function UnstakeRequest(value: t.types.pallet_fast_unstake.types.UnstakeRequest) { + return value +} diff --git a/codegen/_output/kusama/types/pallet_grandpa/mod.ts b/codegen/_output/kusama/types/pallet_grandpa/mod.ts new file mode 100644 index 000000000..699b2d179 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_grandpa/mod.ts @@ -0,0 +1,60 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $storedPendingChange: $.Codec = _codec.$517 + +export const $storedState: $.Codec = _codec.$516 + +export interface StoredPendingChange { + scheduled_at: t.types.u32 + delay: t.types.u32 + next_authorities: Array<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> + forced: t.types.u32 | undefined +} + +export function StoredPendingChange(value: t.types.pallet_grandpa.StoredPendingChange) { + return value +} + +export type StoredState = + | t.types.pallet_grandpa.StoredState.Live + | t.types.pallet_grandpa.StoredState.PendingPause + | t.types.pallet_grandpa.StoredState.Paused + | t.types.pallet_grandpa.StoredState.PendingResume +export namespace StoredState { + export interface Live { + type: "Live" + } + export interface PendingPause { + type: "PendingPause" + scheduled_at: t.types.u32 + delay: t.types.u32 + } + export interface Paused { + type: "Paused" + } + export interface PendingResume { + type: "PendingResume" + scheduled_at: t.types.u32 + delay: t.types.u32 + } + export function Live(): t.types.pallet_grandpa.StoredState.Live { + return { type: "Live" } + } + export function PendingPause( + value: Omit, + ): t.types.pallet_grandpa.StoredState.PendingPause { + return { type: "PendingPause", ...value } + } + export function Paused(): t.types.pallet_grandpa.StoredState.Paused { + return { type: "Paused" } + } + export function PendingResume( + value: Omit, + ): t.types.pallet_grandpa.StoredState.PendingResume { + return { type: "PendingResume", ...value } + } +} diff --git a/codegen/_output/kusama/pallet_grandpa/pallet.ts b/codegen/_output/kusama/types/pallet_grandpa/pallet.ts similarity index 72% rename from codegen/_output/kusama/pallet_grandpa/pallet.ts rename to codegen/_output/kusama/types/pallet_grandpa/pallet.ts index cfe60ddee..922a4100f 100644 --- a/codegen/_output/kusama/pallet_grandpa/pallet.ts +++ b/codegen/_output/kusama/types/pallet_grandpa/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$216 +export const $call: $.Codec = _codec.$216 -export const $error: $.Codec = _codec.$519 +export const $error: $.Codec = _codec.$519 -export const $event: $.Codec = _codec.$47 +export const $event: $.Codec = _codec.$47 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_grandpa.pallet.Call.report_equivocation - | t.pallet_grandpa.pallet.Call.report_equivocation_unsigned - | t.pallet_grandpa.pallet.Call.note_stalled + | t.types.pallet_grandpa.pallet.Call.report_equivocation + | t.types.pallet_grandpa.pallet.Call.report_equivocation_unsigned + | t.types.pallet_grandpa.pallet.Call.note_stalled export namespace Call { /** * Report voter equivocation/misbehavior. This method will verify the @@ -22,8 +22,8 @@ export namespace Call { */ export interface report_equivocation { type: "report_equivocation" - equivocation_proof: t.sp_finality_grandpa.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_finality_grandpa.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Report voter equivocation/misbehavior. This method will verify the @@ -38,8 +38,8 @@ export namespace Call { */ export interface report_equivocation_unsigned { type: "report_equivocation_unsigned" - equivocation_proof: t.sp_finality_grandpa.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_finality_grandpa.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Note that the current authority set of the GRANDPA finality gadget has stalled. @@ -57,8 +57,8 @@ export namespace Call { */ export interface note_stalled { type: "note_stalled" - delay: t.u32 - best_finalized_block_number: t.u32 + delay: t.types.u32 + best_finalized_block_number: t.types.u32 } /** * Report voter equivocation/misbehavior. This method will verify the @@ -67,8 +67,8 @@ export namespace Call { * will be reported. */ export function report_equivocation( - value: Omit, - ): t.pallet_grandpa.pallet.Call.report_equivocation { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.report_equivocation { return { type: "report_equivocation", ...value } } /** @@ -83,8 +83,8 @@ export namespace Call { * reporter. */ export function report_equivocation_unsigned( - value: Omit, - ): t.pallet_grandpa.pallet.Call.report_equivocation_unsigned { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.report_equivocation_unsigned { return { type: "report_equivocation_unsigned", ...value } } /** @@ -102,8 +102,8 @@ export namespace Call { * Only callable by root. */ export function note_stalled( - value: Omit, - ): t.pallet_grandpa.pallet.Call.note_stalled { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.note_stalled { return { type: "note_stalled", ...value } } } @@ -120,14 +120,14 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_grandpa.pallet.Event.NewAuthorities - | t.pallet_grandpa.pallet.Event.Paused - | t.pallet_grandpa.pallet.Event.Resumed + | t.types.pallet_grandpa.pallet.Event.NewAuthorities + | t.types.pallet_grandpa.pallet.Event.Paused + | t.types.pallet_grandpa.pallet.Event.Resumed export namespace Event { /** New authority set has been applied. */ export interface NewAuthorities { type: "NewAuthorities" - authority_set: Array<[t.sp_finality_grandpa.app.Public, t.u64]> + authority_set: Array<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> } /** Current authority set has been paused. */ export interface Paused { @@ -139,16 +139,16 @@ export namespace Event { } /** New authority set has been applied. */ export function NewAuthorities( - value: Omit, - ): t.pallet_grandpa.pallet.Event.NewAuthorities { + value: Omit, + ): t.types.pallet_grandpa.pallet.Event.NewAuthorities { return { type: "NewAuthorities", ...value } } /** Current authority set has been paused. */ - export function Paused(): t.pallet_grandpa.pallet.Event.Paused { + export function Paused(): t.types.pallet_grandpa.pallet.Event.Paused { return { type: "Paused" } } /** Current authority set has been resumed. */ - export function Resumed(): t.pallet_grandpa.pallet.Event.Resumed { + export function Resumed(): t.types.pallet_grandpa.pallet.Event.Resumed { return { type: "Resumed" } } } diff --git a/codegen/_output/kusama/pallet_identity/mod.ts b/codegen/_output/kusama/types/pallet_identity/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_identity/mod.ts rename to codegen/_output/kusama/types/pallet_identity/mod.ts diff --git a/codegen/_output/rococo/pallet_identity/pallet.ts b/codegen/_output/kusama/types/pallet_identity/pallet.ts similarity index 77% rename from codegen/_output/rococo/pallet_identity/pallet.ts rename to codegen/_output/kusama/types/pallet_identity/pallet.ts index 98461520b..4dea704fd 100644 --- a/codegen/_output/rococo/pallet_identity/pallet.ts +++ b/codegen/_output/kusama/types/pallet_identity/pallet.ts @@ -1,30 +1,30 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$263 +export const $call: $.Codec = _codec.$263 -export const $error: $.Codec = _codec.$578 +export const $error: $.Codec = _codec.$578 -export const $event: $.Codec = _codec.$77 +export const $event: $.Codec = _codec.$77 /** Identity pallet declaration. */ export type Call = - | t.pallet_identity.pallet.Call.add_registrar - | t.pallet_identity.pallet.Call.set_identity - | t.pallet_identity.pallet.Call.set_subs - | t.pallet_identity.pallet.Call.clear_identity - | t.pallet_identity.pallet.Call.request_judgement - | t.pallet_identity.pallet.Call.cancel_request - | t.pallet_identity.pallet.Call.set_fee - | t.pallet_identity.pallet.Call.set_account_id - | t.pallet_identity.pallet.Call.set_fields - | t.pallet_identity.pallet.Call.provide_judgement - | t.pallet_identity.pallet.Call.kill_identity - | t.pallet_identity.pallet.Call.add_sub - | t.pallet_identity.pallet.Call.rename_sub - | t.pallet_identity.pallet.Call.remove_sub - | t.pallet_identity.pallet.Call.quit_sub + | t.types.pallet_identity.pallet.Call.add_registrar + | t.types.pallet_identity.pallet.Call.set_identity + | t.types.pallet_identity.pallet.Call.set_subs + | t.types.pallet_identity.pallet.Call.clear_identity + | t.types.pallet_identity.pallet.Call.request_judgement + | t.types.pallet_identity.pallet.Call.cancel_request + | t.types.pallet_identity.pallet.Call.set_fee + | t.types.pallet_identity.pallet.Call.set_account_id + | t.types.pallet_identity.pallet.Call.set_fields + | t.types.pallet_identity.pallet.Call.provide_judgement + | t.types.pallet_identity.pallet.Call.kill_identity + | t.types.pallet_identity.pallet.Call.add_sub + | t.types.pallet_identity.pallet.Call.rename_sub + | t.types.pallet_identity.pallet.Call.remove_sub + | t.types.pallet_identity.pallet.Call.quit_sub export namespace Call { /** * Add a registrar to the system. @@ -43,7 +43,7 @@ export namespace Call { */ export interface add_registrar { type: "add_registrar" - account: t.sp_runtime.multiaddress.MultiAddress + account: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set an account's identity information and reserve the appropriate deposit. @@ -68,7 +68,7 @@ export namespace Call { */ export interface set_identity { type: "set_identity" - info: t.pallet_identity.types.IdentityInfo + info: t.types.pallet_identity.types.IdentityInfo } /** * Set the sub-accounts of the sender. @@ -95,7 +95,7 @@ export namespace Call { */ export interface set_subs { type: "set_subs" - subs: Array<[t.sp_core.crypto.AccountId32, t.pallet_identity.types.Data]> + subs: Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data]> } /** * Clear an account's identity info and all sub-accounts and return all deposits. @@ -147,8 +147,8 @@ export namespace Call { */ export interface request_judgement { type: "request_judgement" - reg_index: t.Compact - max_fee: t.Compact + reg_index: t.Compact + max_fee: t.Compact } /** * Cancel a previous request. @@ -171,7 +171,7 @@ export namespace Call { */ export interface cancel_request { type: "cancel_request" - reg_index: t.u32 + reg_index: t.types.u32 } /** * Set the fee required for a judgement to be requested from a registrar. @@ -190,8 +190,8 @@ export namespace Call { */ export interface set_fee { type: "set_fee" - index: t.Compact - fee: t.Compact + index: t.Compact + fee: t.Compact } /** * Change the account associated with a registrar. @@ -210,8 +210,8 @@ export namespace Call { */ export interface set_account_id { type: "set_account_id" - index: t.Compact - new: t.sp_runtime.multiaddress.MultiAddress + index: t.Compact + new: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set the field information for a registrar. @@ -230,8 +230,8 @@ export namespace Call { */ export interface set_fields { type: "set_fields" - index: t.Compact - fields: t.u64 + index: t.Compact + fields: t.types.u64 } /** * Provide a judgement for an account's identity. @@ -257,10 +257,10 @@ export namespace Call { */ export interface provide_judgement { type: "provide_judgement" - reg_index: t.Compact - target: t.sp_runtime.multiaddress.MultiAddress - judgement: t.pallet_identity.types.Judgement - identity: t.primitive_types.H256 + reg_index: t.Compact + target: t.types.sp_runtime.multiaddress.MultiAddress + judgement: t.types.pallet_identity.types.Judgement + identity: t.types.primitive_types.H256 } /** * Remove an account's identity and sub-account information and slash the deposits. @@ -285,7 +285,7 @@ export namespace Call { */ export interface kill_identity { type: "kill_identity" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Add the given account to the sender's subs. @@ -298,8 +298,8 @@ export namespace Call { */ export interface add_sub { type: "add_sub" - sub: t.sp_runtime.multiaddress.MultiAddress - data: t.pallet_identity.types.Data + sub: t.types.sp_runtime.multiaddress.MultiAddress + data: t.types.pallet_identity.types.Data } /** * Alter the associated name of the given sub-account. @@ -309,8 +309,8 @@ export namespace Call { */ export interface rename_sub { type: "rename_sub" - sub: t.sp_runtime.multiaddress.MultiAddress - data: t.pallet_identity.types.Data + sub: t.types.sp_runtime.multiaddress.MultiAddress + data: t.types.pallet_identity.types.Data } /** * Remove the given account from the sender's subs. @@ -323,7 +323,7 @@ export namespace Call { */ export interface remove_sub { type: "remove_sub" - sub: t.sp_runtime.multiaddress.MultiAddress + sub: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove the sender as a sub-account. @@ -356,8 +356,8 @@ export namespace Call { * # */ export function add_registrar( - value: Omit, - ): t.pallet_identity.pallet.Call.add_registrar { + value: Omit, + ): t.types.pallet_identity.pallet.Call.add_registrar { return { type: "add_registrar", ...value } } /** @@ -382,8 +382,8 @@ export namespace Call { * # */ export function set_identity( - value: Omit, - ): t.pallet_identity.pallet.Call.set_identity { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_identity { return { type: "set_identity", ...value } } /** @@ -410,8 +410,8 @@ export namespace Call { * # */ export function set_subs( - value: Omit, - ): t.pallet_identity.pallet.Call.set_subs { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_subs { return { type: "set_subs", ...value } } /** @@ -434,7 +434,7 @@ export namespace Call { * - One event. * # */ - export function clear_identity(): t.pallet_identity.pallet.Call.clear_identity { + export function clear_identity(): t.types.pallet_identity.pallet.Call.clear_identity { return { type: "clear_identity" } } /** @@ -463,8 +463,8 @@ export namespace Call { * # */ export function request_judgement( - value: Omit, - ): t.pallet_identity.pallet.Call.request_judgement { + value: Omit, + ): t.types.pallet_identity.pallet.Call.request_judgement { return { type: "request_judgement", ...value } } /** @@ -487,8 +487,8 @@ export namespace Call { * # */ export function cancel_request( - value: Omit, - ): t.pallet_identity.pallet.Call.cancel_request { + value: Omit, + ): t.types.pallet_identity.pallet.Call.cancel_request { return { type: "cancel_request", ...value } } /** @@ -507,8 +507,8 @@ export namespace Call { * # */ export function set_fee( - value: Omit, - ): t.pallet_identity.pallet.Call.set_fee { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_fee { return { type: "set_fee", ...value } } /** @@ -527,8 +527,8 @@ export namespace Call { * # */ export function set_account_id( - value: Omit, - ): t.pallet_identity.pallet.Call.set_account_id { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_account_id { return { type: "set_account_id", ...value } } /** @@ -547,8 +547,8 @@ export namespace Call { * # */ export function set_fields( - value: Omit, - ): t.pallet_identity.pallet.Call.set_fields { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_fields { return { type: "set_fields", ...value } } /** @@ -574,8 +574,8 @@ export namespace Call { * # */ export function provide_judgement( - value: Omit, - ): t.pallet_identity.pallet.Call.provide_judgement { + value: Omit, + ): t.types.pallet_identity.pallet.Call.provide_judgement { return { type: "provide_judgement", ...value } } /** @@ -600,8 +600,8 @@ export namespace Call { * # */ export function kill_identity( - value: Omit, - ): t.pallet_identity.pallet.Call.kill_identity { + value: Omit, + ): t.types.pallet_identity.pallet.Call.kill_identity { return { type: "kill_identity", ...value } } /** @@ -614,8 +614,8 @@ export namespace Call { * sub identity of `sub`. */ export function add_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.add_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.add_sub { return { type: "add_sub", ...value } } /** @@ -625,8 +625,8 @@ export namespace Call { * sub identity of `sub`. */ export function rename_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.rename_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.rename_sub { return { type: "rename_sub", ...value } } /** @@ -639,8 +639,8 @@ export namespace Call { * sub identity of `sub`. */ export function remove_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.remove_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.remove_sub { return { type: "remove_sub", ...value } } /** @@ -655,7 +655,7 @@ export namespace Call { * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ - export function quit_sub(): t.pallet_identity.pallet.Call.quit_sub { + export function quit_sub(): t.types.pallet_identity.pallet.Call.quit_sub { return { type: "quit_sub" } } } @@ -682,70 +682,70 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_identity.pallet.Event.IdentitySet - | t.pallet_identity.pallet.Event.IdentityCleared - | t.pallet_identity.pallet.Event.IdentityKilled - | t.pallet_identity.pallet.Event.JudgementRequested - | t.pallet_identity.pallet.Event.JudgementUnrequested - | t.pallet_identity.pallet.Event.JudgementGiven - | t.pallet_identity.pallet.Event.RegistrarAdded - | t.pallet_identity.pallet.Event.SubIdentityAdded - | t.pallet_identity.pallet.Event.SubIdentityRemoved - | t.pallet_identity.pallet.Event.SubIdentityRevoked + | t.types.pallet_identity.pallet.Event.IdentitySet + | t.types.pallet_identity.pallet.Event.IdentityCleared + | t.types.pallet_identity.pallet.Event.IdentityKilled + | t.types.pallet_identity.pallet.Event.JudgementRequested + | t.types.pallet_identity.pallet.Event.JudgementUnrequested + | t.types.pallet_identity.pallet.Event.JudgementGiven + | t.types.pallet_identity.pallet.Event.RegistrarAdded + | t.types.pallet_identity.pallet.Event.SubIdentityAdded + | t.types.pallet_identity.pallet.Event.SubIdentityRemoved + | t.types.pallet_identity.pallet.Event.SubIdentityRevoked export namespace Event { /** A name was set or reset (which will remove all judgements). */ export interface IdentitySet { type: "IdentitySet" - who: t.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 } /** A name was cleared, and the given balance returned. */ export interface IdentityCleared { type: "IdentityCleared" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A name was removed and the given balance slashed. */ export interface IdentityKilled { type: "IdentityKilled" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A judgement was asked from a registrar. */ export interface JudgementRequested { type: "JudgementRequested" - who: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A judgement request was retracted. */ export interface JudgementUnrequested { type: "JudgementUnrequested" - who: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A judgement was given by a registrar. */ export interface JudgementGiven { type: "JudgementGiven" - target: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + target: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A registrar was added. */ export interface RegistrarAdded { type: "RegistrarAdded" - registrar_index: t.u32 + registrar_index: t.types.u32 } /** A sub-identity was added to an identity and the deposit paid. */ export interface SubIdentityAdded { type: "SubIdentityAdded" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A sub-identity was removed from an identity and the deposit freed. */ export interface SubIdentityRemoved { type: "SubIdentityRemoved" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** * A sub-identity was cleared, and the given deposit repatriated from the @@ -753,62 +753,62 @@ export namespace Event { */ export interface SubIdentityRevoked { type: "SubIdentityRevoked" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A name was set or reset (which will remove all judgements). */ export function IdentitySet( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentitySet { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentitySet { return { type: "IdentitySet", ...value } } /** A name was cleared, and the given balance returned. */ export function IdentityCleared( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentityCleared { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentityCleared { return { type: "IdentityCleared", ...value } } /** A name was removed and the given balance slashed. */ export function IdentityKilled( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentityKilled { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentityKilled { return { type: "IdentityKilled", ...value } } /** A judgement was asked from a registrar. */ export function JudgementRequested( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementRequested { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementRequested { return { type: "JudgementRequested", ...value } } /** A judgement request was retracted. */ export function JudgementUnrequested( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementUnrequested { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementUnrequested { return { type: "JudgementUnrequested", ...value } } /** A judgement was given by a registrar. */ export function JudgementGiven( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementGiven { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementGiven { return { type: "JudgementGiven", ...value } } /** A registrar was added. */ export function RegistrarAdded( - value: Omit, - ): t.pallet_identity.pallet.Event.RegistrarAdded { + value: Omit, + ): t.types.pallet_identity.pallet.Event.RegistrarAdded { return { type: "RegistrarAdded", ...value } } /** A sub-identity was added to an identity and the deposit paid. */ export function SubIdentityAdded( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityAdded { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityAdded { return { type: "SubIdentityAdded", ...value } } /** A sub-identity was removed from an identity and the deposit freed. */ export function SubIdentityRemoved( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityRemoved { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityRemoved { return { type: "SubIdentityRemoved", ...value } } /** @@ -816,8 +816,8 @@ export namespace Event { * main identity account to the sub-identity account. */ export function SubIdentityRevoked( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityRevoked { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityRevoked { return { type: "SubIdentityRevoked", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_identity/types.ts b/codegen/_output/kusama/types/pallet_identity/types.ts new file mode 100644 index 000000000..29c467c24 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_identity/types.ts @@ -0,0 +1,498 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $data: $.Codec = _codec.$267 + +export const $identityField: $.Codec = _codec.$301 + +export const $identityInfo: $.Codec = _codec.$264 + +export const $judgement: $.Codec = _codec.$302 + +export const $registrarInfo: $.Codec = _codec.$576 + +export const $registration: $.Codec = _codec.$568 + +export type Data = + | t.types.pallet_identity.types.Data.None + | t.types.pallet_identity.types.Data.Raw0 + | t.types.pallet_identity.types.Data.Raw1 + | t.types.pallet_identity.types.Data.Raw2 + | t.types.pallet_identity.types.Data.Raw3 + | t.types.pallet_identity.types.Data.Raw4 + | t.types.pallet_identity.types.Data.Raw5 + | t.types.pallet_identity.types.Data.Raw6 + | t.types.pallet_identity.types.Data.Raw7 + | t.types.pallet_identity.types.Data.Raw8 + | t.types.pallet_identity.types.Data.Raw9 + | t.types.pallet_identity.types.Data.Raw10 + | t.types.pallet_identity.types.Data.Raw11 + | t.types.pallet_identity.types.Data.Raw12 + | t.types.pallet_identity.types.Data.Raw13 + | t.types.pallet_identity.types.Data.Raw14 + | t.types.pallet_identity.types.Data.Raw15 + | t.types.pallet_identity.types.Data.Raw16 + | t.types.pallet_identity.types.Data.Raw17 + | t.types.pallet_identity.types.Data.Raw18 + | t.types.pallet_identity.types.Data.Raw19 + | t.types.pallet_identity.types.Data.Raw20 + | t.types.pallet_identity.types.Data.Raw21 + | t.types.pallet_identity.types.Data.Raw22 + | t.types.pallet_identity.types.Data.Raw23 + | t.types.pallet_identity.types.Data.Raw24 + | t.types.pallet_identity.types.Data.Raw25 + | t.types.pallet_identity.types.Data.Raw26 + | t.types.pallet_identity.types.Data.Raw27 + | t.types.pallet_identity.types.Data.Raw28 + | t.types.pallet_identity.types.Data.Raw29 + | t.types.pallet_identity.types.Data.Raw30 + | t.types.pallet_identity.types.Data.Raw31 + | t.types.pallet_identity.types.Data.Raw32 + | t.types.pallet_identity.types.Data.BlakeTwo256 + | t.types.pallet_identity.types.Data.Sha256 + | t.types.pallet_identity.types.Data.Keccak256 + | t.types.pallet_identity.types.Data.ShaThree256 +export namespace Data { + export interface None { + type: "None" + } + export interface Raw0 { + type: "Raw0" + value: Uint8Array + } + export interface Raw1 { + type: "Raw1" + value: Uint8Array + } + export interface Raw2 { + type: "Raw2" + value: Uint8Array + } + export interface Raw3 { + type: "Raw3" + value: Uint8Array + } + export interface Raw4 { + type: "Raw4" + value: Uint8Array + } + export interface Raw5 { + type: "Raw5" + value: Uint8Array + } + export interface Raw6 { + type: "Raw6" + value: Uint8Array + } + export interface Raw7 { + type: "Raw7" + value: Uint8Array + } + export interface Raw8 { + type: "Raw8" + value: Uint8Array + } + export interface Raw9 { + type: "Raw9" + value: Uint8Array + } + export interface Raw10 { + type: "Raw10" + value: Uint8Array + } + export interface Raw11 { + type: "Raw11" + value: Uint8Array + } + export interface Raw12 { + type: "Raw12" + value: Uint8Array + } + export interface Raw13 { + type: "Raw13" + value: Uint8Array + } + export interface Raw14 { + type: "Raw14" + value: Uint8Array + } + export interface Raw15 { + type: "Raw15" + value: Uint8Array + } + export interface Raw16 { + type: "Raw16" + value: Uint8Array + } + export interface Raw17 { + type: "Raw17" + value: Uint8Array + } + export interface Raw18 { + type: "Raw18" + value: Uint8Array + } + export interface Raw19 { + type: "Raw19" + value: Uint8Array + } + export interface Raw20 { + type: "Raw20" + value: Uint8Array + } + export interface Raw21 { + type: "Raw21" + value: Uint8Array + } + export interface Raw22 { + type: "Raw22" + value: Uint8Array + } + export interface Raw23 { + type: "Raw23" + value: Uint8Array + } + export interface Raw24 { + type: "Raw24" + value: Uint8Array + } + export interface Raw25 { + type: "Raw25" + value: Uint8Array + } + export interface Raw26 { + type: "Raw26" + value: Uint8Array + } + export interface Raw27 { + type: "Raw27" + value: Uint8Array + } + export interface Raw28 { + type: "Raw28" + value: Uint8Array + } + export interface Raw29 { + type: "Raw29" + value: Uint8Array + } + export interface Raw30 { + type: "Raw30" + value: Uint8Array + } + export interface Raw31 { + type: "Raw31" + value: Uint8Array + } + export interface Raw32 { + type: "Raw32" + value: Uint8Array + } + export interface BlakeTwo256 { + type: "BlakeTwo256" + value: Uint8Array + } + export interface Sha256 { + type: "Sha256" + value: Uint8Array + } + export interface Keccak256 { + type: "Keccak256" + value: Uint8Array + } + export interface ShaThree256 { + type: "ShaThree256" + value: Uint8Array + } + export function None(): t.types.pallet_identity.types.Data.None { + return { type: "None" } + } + export function Raw0( + value: t.types.pallet_identity.types.Data.Raw0["value"], + ): t.types.pallet_identity.types.Data.Raw0 { + return { type: "Raw0", value } + } + export function Raw1( + value: t.types.pallet_identity.types.Data.Raw1["value"], + ): t.types.pallet_identity.types.Data.Raw1 { + return { type: "Raw1", value } + } + export function Raw2( + value: t.types.pallet_identity.types.Data.Raw2["value"], + ): t.types.pallet_identity.types.Data.Raw2 { + return { type: "Raw2", value } + } + export function Raw3( + value: t.types.pallet_identity.types.Data.Raw3["value"], + ): t.types.pallet_identity.types.Data.Raw3 { + return { type: "Raw3", value } + } + export function Raw4( + value: t.types.pallet_identity.types.Data.Raw4["value"], + ): t.types.pallet_identity.types.Data.Raw4 { + return { type: "Raw4", value } + } + export function Raw5( + value: t.types.pallet_identity.types.Data.Raw5["value"], + ): t.types.pallet_identity.types.Data.Raw5 { + return { type: "Raw5", value } + } + export function Raw6( + value: t.types.pallet_identity.types.Data.Raw6["value"], + ): t.types.pallet_identity.types.Data.Raw6 { + return { type: "Raw6", value } + } + export function Raw7( + value: t.types.pallet_identity.types.Data.Raw7["value"], + ): t.types.pallet_identity.types.Data.Raw7 { + return { type: "Raw7", value } + } + export function Raw8( + value: t.types.pallet_identity.types.Data.Raw8["value"], + ): t.types.pallet_identity.types.Data.Raw8 { + return { type: "Raw8", value } + } + export function Raw9( + value: t.types.pallet_identity.types.Data.Raw9["value"], + ): t.types.pallet_identity.types.Data.Raw9 { + return { type: "Raw9", value } + } + export function Raw10( + value: t.types.pallet_identity.types.Data.Raw10["value"], + ): t.types.pallet_identity.types.Data.Raw10 { + return { type: "Raw10", value } + } + export function Raw11( + value: t.types.pallet_identity.types.Data.Raw11["value"], + ): t.types.pallet_identity.types.Data.Raw11 { + return { type: "Raw11", value } + } + export function Raw12( + value: t.types.pallet_identity.types.Data.Raw12["value"], + ): t.types.pallet_identity.types.Data.Raw12 { + return { type: "Raw12", value } + } + export function Raw13( + value: t.types.pallet_identity.types.Data.Raw13["value"], + ): t.types.pallet_identity.types.Data.Raw13 { + return { type: "Raw13", value } + } + export function Raw14( + value: t.types.pallet_identity.types.Data.Raw14["value"], + ): t.types.pallet_identity.types.Data.Raw14 { + return { type: "Raw14", value } + } + export function Raw15( + value: t.types.pallet_identity.types.Data.Raw15["value"], + ): t.types.pallet_identity.types.Data.Raw15 { + return { type: "Raw15", value } + } + export function Raw16( + value: t.types.pallet_identity.types.Data.Raw16["value"], + ): t.types.pallet_identity.types.Data.Raw16 { + return { type: "Raw16", value } + } + export function Raw17( + value: t.types.pallet_identity.types.Data.Raw17["value"], + ): t.types.pallet_identity.types.Data.Raw17 { + return { type: "Raw17", value } + } + export function Raw18( + value: t.types.pallet_identity.types.Data.Raw18["value"], + ): t.types.pallet_identity.types.Data.Raw18 { + return { type: "Raw18", value } + } + export function Raw19( + value: t.types.pallet_identity.types.Data.Raw19["value"], + ): t.types.pallet_identity.types.Data.Raw19 { + return { type: "Raw19", value } + } + export function Raw20( + value: t.types.pallet_identity.types.Data.Raw20["value"], + ): t.types.pallet_identity.types.Data.Raw20 { + return { type: "Raw20", value } + } + export function Raw21( + value: t.types.pallet_identity.types.Data.Raw21["value"], + ): t.types.pallet_identity.types.Data.Raw21 { + return { type: "Raw21", value } + } + export function Raw22( + value: t.types.pallet_identity.types.Data.Raw22["value"], + ): t.types.pallet_identity.types.Data.Raw22 { + return { type: "Raw22", value } + } + export function Raw23( + value: t.types.pallet_identity.types.Data.Raw23["value"], + ): t.types.pallet_identity.types.Data.Raw23 { + return { type: "Raw23", value } + } + export function Raw24( + value: t.types.pallet_identity.types.Data.Raw24["value"], + ): t.types.pallet_identity.types.Data.Raw24 { + return { type: "Raw24", value } + } + export function Raw25( + value: t.types.pallet_identity.types.Data.Raw25["value"], + ): t.types.pallet_identity.types.Data.Raw25 { + return { type: "Raw25", value } + } + export function Raw26( + value: t.types.pallet_identity.types.Data.Raw26["value"], + ): t.types.pallet_identity.types.Data.Raw26 { + return { type: "Raw26", value } + } + export function Raw27( + value: t.types.pallet_identity.types.Data.Raw27["value"], + ): t.types.pallet_identity.types.Data.Raw27 { + return { type: "Raw27", value } + } + export function Raw28( + value: t.types.pallet_identity.types.Data.Raw28["value"], + ): t.types.pallet_identity.types.Data.Raw28 { + return { type: "Raw28", value } + } + export function Raw29( + value: t.types.pallet_identity.types.Data.Raw29["value"], + ): t.types.pallet_identity.types.Data.Raw29 { + return { type: "Raw29", value } + } + export function Raw30( + value: t.types.pallet_identity.types.Data.Raw30["value"], + ): t.types.pallet_identity.types.Data.Raw30 { + return { type: "Raw30", value } + } + export function Raw31( + value: t.types.pallet_identity.types.Data.Raw31["value"], + ): t.types.pallet_identity.types.Data.Raw31 { + return { type: "Raw31", value } + } + export function Raw32( + value: t.types.pallet_identity.types.Data.Raw32["value"], + ): t.types.pallet_identity.types.Data.Raw32 { + return { type: "Raw32", value } + } + export function BlakeTwo256( + value: t.types.pallet_identity.types.Data.BlakeTwo256["value"], + ): t.types.pallet_identity.types.Data.BlakeTwo256 { + return { type: "BlakeTwo256", value } + } + export function Sha256( + value: t.types.pallet_identity.types.Data.Sha256["value"], + ): t.types.pallet_identity.types.Data.Sha256 { + return { type: "Sha256", value } + } + export function Keccak256( + value: t.types.pallet_identity.types.Data.Keccak256["value"], + ): t.types.pallet_identity.types.Data.Keccak256 { + return { type: "Keccak256", value } + } + export function ShaThree256( + value: t.types.pallet_identity.types.Data.ShaThree256["value"], + ): t.types.pallet_identity.types.Data.ShaThree256 { + return { type: "ShaThree256", value } + } +} + +export type IdentityField = + | "Display" + | "Legal" + | "Web" + | "Riot" + | "Email" + | "PgpFingerprint" + | "Image" + | "Twitter" + +export interface IdentityInfo { + additional: Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> + display: t.types.pallet_identity.types.Data + legal: t.types.pallet_identity.types.Data + web: t.types.pallet_identity.types.Data + riot: t.types.pallet_identity.types.Data + email: t.types.pallet_identity.types.Data + pgp_fingerprint: Uint8Array | undefined + image: t.types.pallet_identity.types.Data + twitter: t.types.pallet_identity.types.Data +} + +export function IdentityInfo(value: t.types.pallet_identity.types.IdentityInfo) { + return value +} + +export type Judgement = + | t.types.pallet_identity.types.Judgement.Unknown + | t.types.pallet_identity.types.Judgement.FeePaid + | t.types.pallet_identity.types.Judgement.Reasonable + | t.types.pallet_identity.types.Judgement.KnownGood + | t.types.pallet_identity.types.Judgement.OutOfDate + | t.types.pallet_identity.types.Judgement.LowQuality + | t.types.pallet_identity.types.Judgement.Erroneous +export namespace Judgement { + export interface Unknown { + type: "Unknown" + } + export interface FeePaid { + type: "FeePaid" + value: t.types.u128 + } + export interface Reasonable { + type: "Reasonable" + } + export interface KnownGood { + type: "KnownGood" + } + export interface OutOfDate { + type: "OutOfDate" + } + export interface LowQuality { + type: "LowQuality" + } + export interface Erroneous { + type: "Erroneous" + } + export function Unknown(): t.types.pallet_identity.types.Judgement.Unknown { + return { type: "Unknown" } + } + export function FeePaid( + value: t.types.pallet_identity.types.Judgement.FeePaid["value"], + ): t.types.pallet_identity.types.Judgement.FeePaid { + return { type: "FeePaid", value } + } + export function Reasonable(): t.types.pallet_identity.types.Judgement.Reasonable { + return { type: "Reasonable" } + } + export function KnownGood(): t.types.pallet_identity.types.Judgement.KnownGood { + return { type: "KnownGood" } + } + export function OutOfDate(): t.types.pallet_identity.types.Judgement.OutOfDate { + return { type: "OutOfDate" } + } + export function LowQuality(): t.types.pallet_identity.types.Judgement.LowQuality { + return { type: "LowQuality" } + } + export function Erroneous(): t.types.pallet_identity.types.Judgement.Erroneous { + return { type: "Erroneous" } + } +} + +export interface RegistrarInfo { + account: t.types.sp_core.crypto.AccountId32 + fee: t.types.u128 + fields: t.types.u64 +} + +export function RegistrarInfo(value: t.types.pallet_identity.types.RegistrarInfo) { + return value +} + +export interface Registration { + judgements: Array<[t.types.u32, t.types.pallet_identity.types.Judgement]> + deposit: t.types.u128 + info: t.types.pallet_identity.types.IdentityInfo +} + +export function Registration(value: t.types.pallet_identity.types.Registration) { + return value +} diff --git a/codegen/_output/kusama/types/pallet_im_online/mod.ts b/codegen/_output/kusama/types/pallet_im_online/mod.ts new file mode 100644 index 000000000..55795bb60 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_im_online/mod.ts @@ -0,0 +1,35 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as sr25519 from "./sr25519/mod.ts" + +export const $boundedOpaqueNetworkState: $.Codec< + t.types.pallet_im_online.BoundedOpaqueNetworkState +> = _codec.$523 + +export const $heartbeat: $.Codec = _codec.$228 + +export interface BoundedOpaqueNetworkState { + peer_id: Uint8Array + external_addresses: Array +} + +export function BoundedOpaqueNetworkState( + value: t.types.pallet_im_online.BoundedOpaqueNetworkState, +) { + return value +} + +export interface Heartbeat { + block_number: t.types.u32 + network_state: t.types.sp_core.offchain.OpaqueNetworkState + session_index: t.types.u32 + authority_index: t.types.u32 + validators_len: t.types.u32 +} + +export function Heartbeat(value: t.types.pallet_im_online.Heartbeat) { + return value +} diff --git a/codegen/_output/rococo/pallet_im_online/pallet.ts b/codegen/_output/kusama/types/pallet_im_online/pallet.ts similarity index 62% rename from codegen/_output/rococo/pallet_im_online/pallet.ts rename to codegen/_output/kusama/types/pallet_im_online/pallet.ts index 14625fcff..c0e2242de 100644 --- a/codegen/_output/rococo/pallet_im_online/pallet.ts +++ b/codegen/_output/kusama/types/pallet_im_online/pallet.ts @@ -1,15 +1,15 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$227 +export const $call: $.Codec = _codec.$227 -export const $error: $.Codec = _codec.$527 +export const $error: $.Codec = _codec.$527 -export const $event: $.Codec = _codec.$52 +export const $event: $.Codec = _codec.$52 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_im_online.pallet.Call.heartbeat +export type Call = t.types.pallet_im_online.pallet.Call.heartbeat export namespace Call { /** * # @@ -24,8 +24,8 @@ export namespace Call { */ export interface heartbeat { type: "heartbeat" - heartbeat: t.pallet_im_online.Heartbeat - signature: t.pallet_im_online.sr25519.app_sr25519.Signature + heartbeat: t.types.pallet_im_online.Heartbeat + signature: t.types.pallet_im_online.sr25519.app_sr25519.Signature } /** * # @@ -39,8 +39,8 @@ export namespace Call { * # */ export function heartbeat( - value: Omit, - ): t.pallet_im_online.pallet.Call.heartbeat { + value: Omit, + ): t.types.pallet_im_online.pallet.Call.heartbeat { return { type: "heartbeat", ...value } } } @@ -50,14 +50,14 @@ export type Error = "InvalidKey" | "DuplicatedHeartbeat" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_im_online.pallet.Event.HeartbeatReceived - | t.pallet_im_online.pallet.Event.AllGood - | t.pallet_im_online.pallet.Event.SomeOffline + | t.types.pallet_im_online.pallet.Event.HeartbeatReceived + | t.types.pallet_im_online.pallet.Event.AllGood + | t.types.pallet_im_online.pallet.Event.SomeOffline export namespace Event { /** A new heartbeat was received from `AuthorityId`. */ export interface HeartbeatReceived { type: "HeartbeatReceived" - authority_id: t.pallet_im_online.sr25519.app_sr25519.Public + authority_id: t.types.pallet_im_online.sr25519.app_sr25519.Public } /** At the end of the session, no offence was committed. */ export interface AllGood { @@ -66,22 +66,22 @@ export namespace Event { /** At the end of the session, at least one validator was found to be offline. */ export interface SomeOffline { type: "SomeOffline" - offline: Array<[t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure]> + offline: Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> } /** A new heartbeat was received from `AuthorityId`. */ export function HeartbeatReceived( - value: Omit, - ): t.pallet_im_online.pallet.Event.HeartbeatReceived { + value: Omit, + ): t.types.pallet_im_online.pallet.Event.HeartbeatReceived { return { type: "HeartbeatReceived", ...value } } /** At the end of the session, no offence was committed. */ - export function AllGood(): t.pallet_im_online.pallet.Event.AllGood { + export function AllGood(): t.types.pallet_im_online.pallet.Event.AllGood { return { type: "AllGood" } } /** At the end of the session, at least one validator was found to be offline. */ export function SomeOffline( - value: Omit, - ): t.pallet_im_online.pallet.Event.SomeOffline { + value: Omit, + ): t.types.pallet_im_online.pallet.Event.SomeOffline { return { type: "SomeOffline", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_im_online/sr25519/app_sr25519.ts b/codegen/_output/kusama/types/pallet_im_online/sr25519/app_sr25519.ts new file mode 100644 index 000000000..4bfb0f9b6 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_im_online/sr25519/app_sr25519.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$53 + +export const $signature: $.Codec = + _codec.$233 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.pallet_im_online.sr25519.app_sr25519.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.pallet_im_online.sr25519.app_sr25519.Signature) { + return value +} diff --git a/codegen/_output/kusama/pallet_im_online/sr25519/mod.ts b/codegen/_output/kusama/types/pallet_im_online/sr25519/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_im_online/sr25519/mod.ts rename to codegen/_output/kusama/types/pallet_im_online/sr25519/mod.ts diff --git a/codegen/_output/kusama/pallet_indices/mod.ts b/codegen/_output/kusama/types/pallet_indices/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_indices/mod.ts rename to codegen/_output/kusama/types/pallet_indices/mod.ts diff --git a/codegen/_output/kusama/pallet_indices/pallet.ts b/codegen/_output/kusama/types/pallet_indices/pallet.ts similarity index 79% rename from codegen/_output/kusama/pallet_indices/pallet.ts rename to codegen/_output/kusama/types/pallet_indices/pallet.ts index 3cd9b537a..8957b3ebb 100644 --- a/codegen/_output/kusama/pallet_indices/pallet.ts +++ b/codegen/_output/kusama/types/pallet_indices/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$196 +export const $call: $.Codec = _codec.$196 -export const $error: $.Codec = _codec.$469 +export const $error: $.Codec = _codec.$469 -export const $event: $.Codec = _codec.$35 +export const $event: $.Codec = _codec.$35 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_indices.pallet.Call.claim - | t.pallet_indices.pallet.Call.transfer - | t.pallet_indices.pallet.Call.free - | t.pallet_indices.pallet.Call.force_transfer - | t.pallet_indices.pallet.Call.freeze + | t.types.pallet_indices.pallet.Call.claim + | t.types.pallet_indices.pallet.Call.transfer + | t.types.pallet_indices.pallet.Call.free + | t.types.pallet_indices.pallet.Call.force_transfer + | t.types.pallet_indices.pallet.Call.freeze export namespace Call { /** * Assign an previously unassigned index. @@ -38,7 +38,7 @@ export namespace Call { */ export interface claim { type: "claim" - index: t.u32 + index: t.types.u32 } /** * Assign an index already owned by the sender to another account. The balance reservation @@ -64,8 +64,8 @@ export namespace Call { */ export interface transfer { type: "transfer" - new: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + new: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 } /** * Free up an index owned by the sender. @@ -89,7 +89,7 @@ export namespace Call { */ export interface free { type: "free" - index: t.u32 + index: t.types.u32 } /** * Force an index to an account. This doesn't require a deposit. If the index is already @@ -116,8 +116,8 @@ export namespace Call { */ export interface force_transfer { type: "force_transfer" - new: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + new: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 freeze: boolean } /** @@ -142,7 +142,7 @@ export namespace Call { */ export interface freeze { type: "freeze" - index: t.u32 + index: t.types.u32 } /** * Assign an previously unassigned index. @@ -165,8 +165,8 @@ export namespace Call { * # */ export function claim( - value: Omit, - ): t.pallet_indices.pallet.Call.claim { + value: Omit, + ): t.types.pallet_indices.pallet.Call.claim { return { type: "claim", ...value } } /** @@ -192,8 +192,8 @@ export namespace Call { * # */ export function transfer( - value: Omit, - ): t.pallet_indices.pallet.Call.transfer { + value: Omit, + ): t.types.pallet_indices.pallet.Call.transfer { return { type: "transfer", ...value } } /** @@ -217,8 +217,8 @@ export namespace Call { * # */ export function free( - value: Omit, - ): t.pallet_indices.pallet.Call.free { + value: Omit, + ): t.types.pallet_indices.pallet.Call.free { return { type: "free", ...value } } /** @@ -245,8 +245,8 @@ export namespace Call { * # */ export function force_transfer( - value: Omit, - ): t.pallet_indices.pallet.Call.force_transfer { + value: Omit, + ): t.types.pallet_indices.pallet.Call.force_transfer { return { type: "force_transfer", ...value } } /** @@ -270,8 +270,8 @@ export namespace Call { * # */ export function freeze( - value: Omit, - ): t.pallet_indices.pallet.Call.freeze { + value: Omit, + ): t.types.pallet_indices.pallet.Call.freeze { return { type: "freeze", ...value } } } @@ -281,43 +281,43 @@ export type Error = "NotAssigned" | "NotOwner" | "InUse" | "NotTransfer" | "Perm /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_indices.pallet.Event.IndexAssigned - | t.pallet_indices.pallet.Event.IndexFreed - | t.pallet_indices.pallet.Event.IndexFrozen + | t.types.pallet_indices.pallet.Event.IndexAssigned + | t.types.pallet_indices.pallet.Event.IndexFreed + | t.types.pallet_indices.pallet.Event.IndexFrozen export namespace Event { /** A account index was assigned. */ export interface IndexAssigned { type: "IndexAssigned" - who: t.sp_core.crypto.AccountId32 - index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + index: t.types.u32 } /** A account index has been freed up (unassigned). */ export interface IndexFreed { type: "IndexFreed" - index: t.u32 + index: t.types.u32 } /** A account index has been frozen to its current account ID. */ export interface IndexFrozen { type: "IndexFrozen" - index: t.u32 - who: t.sp_core.crypto.AccountId32 + index: t.types.u32 + who: t.types.sp_core.crypto.AccountId32 } /** A account index was assigned. */ export function IndexAssigned( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexAssigned { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexAssigned { return { type: "IndexAssigned", ...value } } /** A account index has been freed up (unassigned). */ export function IndexFreed( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexFreed { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexFreed { return { type: "IndexFreed", ...value } } /** A account index has been frozen to its current account ID. */ export function IndexFrozen( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexFrozen { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexFrozen { return { type: "IndexFrozen", ...value } } } diff --git a/codegen/_output/kusama/pallet_membership/mod.ts b/codegen/_output/kusama/types/pallet_membership/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_membership/mod.ts rename to codegen/_output/kusama/types/pallet_membership/mod.ts diff --git a/codegen/_output/rococo/pallet_membership/pallet.ts b/codegen/_output/kusama/types/pallet_membership/pallet.ts similarity index 63% rename from codegen/_output/rococo/pallet_membership/pallet.ts rename to codegen/_output/kusama/types/pallet_membership/pallet.ts index 36a442d33..c55baa921 100644 --- a/codegen/_output/rococo/pallet_membership/pallet.ts +++ b/codegen/_output/kusama/types/pallet_membership/pallet.ts @@ -1,22 +1,22 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$243 +export const $call: $.Codec = _codec.$243 -export const $error: $.Codec = _codec.$555 +export const $error: $.Codec = _codec.$555 -export const $event: $.Codec = _codec.$70 +export const $event: $.Codec = _codec.$70 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_membership.pallet.Call.add_member - | t.pallet_membership.pallet.Call.remove_member - | t.pallet_membership.pallet.Call.swap_member - | t.pallet_membership.pallet.Call.reset_members - | t.pallet_membership.pallet.Call.change_key - | t.pallet_membership.pallet.Call.set_prime - | t.pallet_membership.pallet.Call.clear_prime + | t.types.pallet_membership.pallet.Call.add_member + | t.types.pallet_membership.pallet.Call.remove_member + | t.types.pallet_membership.pallet.Call.swap_member + | t.types.pallet_membership.pallet.Call.reset_members + | t.types.pallet_membership.pallet.Call.change_key + | t.types.pallet_membership.pallet.Call.set_prime + | t.types.pallet_membership.pallet.Call.clear_prime export namespace Call { /** * Add a member `who` to the set. @@ -25,7 +25,7 @@ export namespace Call { */ export interface add_member { type: "add_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove a member `who` from the set. @@ -34,7 +34,7 @@ export namespace Call { */ export interface remove_member { type: "remove_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Swap out one member `remove` for another `add`. @@ -45,8 +45,8 @@ export namespace Call { */ export interface swap_member { type: "swap_member" - remove: t.sp_runtime.multiaddress.MultiAddress - add: t.sp_runtime.multiaddress.MultiAddress + remove: t.types.sp_runtime.multiaddress.MultiAddress + add: t.types.sp_runtime.multiaddress.MultiAddress } /** * Change the membership to a new set, disregarding the existing membership. Be nice and @@ -56,7 +56,7 @@ export namespace Call { */ export interface reset_members { type: "reset_members" - members: Array + members: Array } /** * Swap out the sending member for some other key `new`. @@ -67,7 +67,7 @@ export namespace Call { */ export interface change_key { type: "change_key" - new: t.sp_runtime.multiaddress.MultiAddress + new: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set the prime member. Must be a current member. @@ -76,7 +76,7 @@ export namespace Call { */ export interface set_prime { type: "set_prime" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove the prime member if it exists. @@ -92,8 +92,8 @@ export namespace Call { * May only be called from `T::AddOrigin`. */ export function add_member( - value: Omit, - ): t.pallet_membership.pallet.Call.add_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.add_member { return { type: "add_member", ...value } } /** @@ -102,8 +102,8 @@ export namespace Call { * May only be called from `T::RemoveOrigin`. */ export function remove_member( - value: Omit, - ): t.pallet_membership.pallet.Call.remove_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.remove_member { return { type: "remove_member", ...value } } /** @@ -114,8 +114,8 @@ export namespace Call { * Prime membership is *not* passed from `remove` to `add`, if extant. */ export function swap_member( - value: Omit, - ): t.pallet_membership.pallet.Call.swap_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.swap_member { return { type: "swap_member", ...value } } /** @@ -125,8 +125,8 @@ export namespace Call { * May only be called from `T::ResetOrigin`. */ export function reset_members( - value: Omit, - ): t.pallet_membership.pallet.Call.reset_members { + value: Omit, + ): t.types.pallet_membership.pallet.Call.reset_members { return { type: "reset_members", ...value } } /** @@ -137,8 +137,8 @@ export namespace Call { * Prime membership is passed from the origin account to `new`, if extant. */ export function change_key( - value: Omit, - ): t.pallet_membership.pallet.Call.change_key { + value: Omit, + ): t.types.pallet_membership.pallet.Call.change_key { return { type: "change_key", ...value } } /** @@ -147,8 +147,8 @@ export namespace Call { * May only be called from `T::PrimeOrigin`. */ export function set_prime( - value: Omit, - ): t.pallet_membership.pallet.Call.set_prime { + value: Omit, + ): t.types.pallet_membership.pallet.Call.set_prime { return { type: "set_prime", ...value } } /** @@ -156,7 +156,7 @@ export namespace Call { * * May only be called from `T::PrimeOrigin`. */ - export function clear_prime(): t.pallet_membership.pallet.Call.clear_prime { + export function clear_prime(): t.types.pallet_membership.pallet.Call.clear_prime { return { type: "clear_prime" } } } diff --git a/codegen/_output/kusama/types/pallet_multisig/mod.ts b/codegen/_output/kusama/types/pallet_multisig/mod.ts new file mode 100644 index 000000000..98c0d71ef --- /dev/null +++ b/codegen/_output/kusama/types/pallet_multisig/mod.ts @@ -0,0 +1,29 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $multisig: $.Codec = _codec.$589 + +export const $timepoint: $.Codec = _codec.$82 + +export interface Multisig { + when: t.types.pallet_multisig.Timepoint + deposit: t.types.u128 + depositor: t.types.sp_core.crypto.AccountId32 + approvals: Array +} + +export function Multisig(value: t.types.pallet_multisig.Multisig) { + return value +} + +export interface Timepoint { + height: t.types.u32 + index: t.types.u32 +} + +export function Timepoint(value: t.types.pallet_multisig.Timepoint) { + return value +} diff --git a/codegen/_output/kusama/pallet_multisig/pallet.ts b/codegen/_output/kusama/types/pallet_multisig/pallet.ts similarity index 81% rename from codegen/_output/kusama/pallet_multisig/pallet.ts rename to codegen/_output/kusama/types/pallet_multisig/pallet.ts index ec9e5b0e0..708e406ff 100644 --- a/codegen/_output/kusama/pallet_multisig/pallet.ts +++ b/codegen/_output/kusama/types/pallet_multisig/pallet.ts @@ -1,19 +1,19 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$305 +export const $call: $.Codec = _codec.$305 -export const $error: $.Codec = _codec.$590 +export const $error: $.Codec = _codec.$590 -export const $event: $.Codec = _codec.$81 +export const $event: $.Codec = _codec.$81 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_multisig.pallet.Call.as_multi_threshold_1 - | t.pallet_multisig.pallet.Call.as_multi - | t.pallet_multisig.pallet.Call.approve_as_multi - | t.pallet_multisig.pallet.Call.cancel_as_multi + | t.types.pallet_multisig.pallet.Call.as_multi_threshold_1 + | t.types.pallet_multisig.pallet.Call.as_multi + | t.types.pallet_multisig.pallet.Call.approve_as_multi + | t.types.pallet_multisig.pallet.Call.cancel_as_multi export namespace Call { /** * Immediately dispatch a multi-signature call using a single approval from the caller. @@ -35,8 +35,8 @@ export namespace Call { */ export interface as_multi_threshold_1 { type: "as_multi_threshold_1" - other_signatories: Array - call: t.polkadot_runtime.RuntimeCall + other_signatories: Array + call: t.types.polkadot_runtime.RuntimeCall } /** * Register approval for a dispatch to be made from a deterministic composite account if @@ -87,11 +87,11 @@ export namespace Call { */ export interface as_multi { type: "as_multi" - threshold: t.u16 - other_signatories: Array - maybe_timepoint: t.pallet_multisig.Timepoint | undefined - call: t.polkadot_runtime.RuntimeCall - max_weight: t.sp_weights.weight_v2.Weight + threshold: t.types.u16 + other_signatories: Array + maybe_timepoint: t.types.pallet_multisig.Timepoint | undefined + call: t.types.polkadot_runtime.RuntimeCall + max_weight: t.types.sp_weights.weight_v2.Weight } /** * Register approval for a dispatch to be made from a deterministic composite account if @@ -132,11 +132,11 @@ export namespace Call { */ export interface approve_as_multi { type: "approve_as_multi" - threshold: t.u16 - other_signatories: Array - maybe_timepoint: t.pallet_multisig.Timepoint | undefined + threshold: t.types.u16 + other_signatories: Array + maybe_timepoint: t.types.pallet_multisig.Timepoint | undefined call_hash: Uint8Array - max_weight: t.sp_weights.weight_v2.Weight + max_weight: t.types.sp_weights.weight_v2.Weight } /** * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously @@ -168,9 +168,9 @@ export namespace Call { */ export interface cancel_as_multi { type: "cancel_as_multi" - threshold: t.u16 - other_signatories: Array - timepoint: t.pallet_multisig.Timepoint + threshold: t.types.u16 + other_signatories: Array + timepoint: t.types.pallet_multisig.Timepoint call_hash: Uint8Array } /** @@ -192,8 +192,8 @@ export namespace Call { * # */ export function as_multi_threshold_1( - value: Omit, - ): t.pallet_multisig.pallet.Call.as_multi_threshold_1 { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.as_multi_threshold_1 { return { type: "as_multi_threshold_1", ...value } } /** @@ -244,8 +244,8 @@ export namespace Call { * # */ export function as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.as_multi { return { type: "as_multi", ...value } } /** @@ -286,8 +286,8 @@ export namespace Call { * # */ export function approve_as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.approve_as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.approve_as_multi { return { type: "approve_as_multi", ...value } } /** @@ -319,8 +319,8 @@ export namespace Call { * # */ export function cancel_as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.cancel_as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.cancel_as_multi { return { type: "cancel_as_multi", ...value } } } @@ -344,65 +344,65 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_multisig.pallet.Event.NewMultisig - | t.pallet_multisig.pallet.Event.MultisigApproval - | t.pallet_multisig.pallet.Event.MultisigExecuted - | t.pallet_multisig.pallet.Event.MultisigCancelled + | t.types.pallet_multisig.pallet.Event.NewMultisig + | t.types.pallet_multisig.pallet.Event.MultisigApproval + | t.types.pallet_multisig.pallet.Event.MultisigExecuted + | t.types.pallet_multisig.pallet.Event.MultisigCancelled export namespace Event { /** A new multisig operation has begun. */ export interface NewMultisig { type: "NewMultisig" - approving: t.sp_core.crypto.AccountId32 - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A multisig operation has been approved by someone. */ export interface MultisigApproval { type: "MultisigApproval" - approving: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A multisig operation has been executed. */ export interface MultisigExecuted { type: "MultisigExecuted" - approving: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array - result: null | C.ChainError + result: null | C.ChainError } /** A multisig operation has been cancelled. */ export interface MultisigCancelled { type: "MultisigCancelled" - cancelling: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + cancelling: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A new multisig operation has begun. */ export function NewMultisig( - value: Omit, - ): t.pallet_multisig.pallet.Event.NewMultisig { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.NewMultisig { return { type: "NewMultisig", ...value } } /** A multisig operation has been approved by someone. */ export function MultisigApproval( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigApproval { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigApproval { return { type: "MultisigApproval", ...value } } /** A multisig operation has been executed. */ export function MultisigExecuted( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigExecuted { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigExecuted { return { type: "MultisigExecuted", ...value } } /** A multisig operation has been cancelled. */ export function MultisigCancelled( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigCancelled { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigCancelled { return { type: "MultisigCancelled", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts b/codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts new file mode 100644 index 000000000..ae906cd2b --- /dev/null +++ b/codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts @@ -0,0 +1,35 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export const $accountId32: $.Codec< + t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 +> = _codec.$373 + +export type AccountId32 = + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove +export namespace AccountId32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_core.crypto.AccountId32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/kusama/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts b/codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts rename to codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts diff --git a/codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/mod.ts b/codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/mod.ts new file mode 100644 index 000000000..49285a4a4 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_nomination_pools/ConfigOp/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as $$sp_core from "./$$sp_core/mod.ts" + +export const $$$u128: $.Codec = _codec.$371 + +export const $$$u32: $.Codec = _codec.$372 + +export type $$u128 = + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Set + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Remove +export namespace $$u128 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u128 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$u128.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$u128.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$u128.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$u128.Remove { + return { type: "Remove" } + } +} + +export type $$u32 = + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Set + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Remove +export namespace $$u32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$u32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$u32.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$u32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$u32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/kusama/types/pallet_nomination_pools/mod.ts b/codegen/_output/kusama/types/pallet_nomination_pools/mod.ts new file mode 100644 index 000000000..c5c85112b --- /dev/null +++ b/codegen/_output/kusama/types/pallet_nomination_pools/mod.ts @@ -0,0 +1,107 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as ConfigOp from "./ConfigOp/mod.ts" +export * as pallet from "./pallet.ts" + +export const $bondExtra: $.Codec = _codec.$370 + +export const $bondedPoolInner: $.Codec = + _codec.$622 + +export const $poolMember: $.Codec = _codec.$617 + +export const $poolRoles: $.Codec = _codec.$623 + +export const $poolState: $.Codec = _codec.$91 + +export const $rewardPool: $.Codec = _codec.$624 + +export const $subPools: $.Codec = _codec.$625 + +export const $unbondPool: $.Codec = _codec.$626 + +export type BondExtra = + | t.types.pallet_nomination_pools.BondExtra.FreeBalance + | t.types.pallet_nomination_pools.BondExtra.Rewards +export namespace BondExtra { + export interface FreeBalance { + type: "FreeBalance" + value: t.types.u128 + } + export interface Rewards { + type: "Rewards" + } + export function FreeBalance( + value: t.types.pallet_nomination_pools.BondExtra.FreeBalance["value"], + ): t.types.pallet_nomination_pools.BondExtra.FreeBalance { + return { type: "FreeBalance", value } + } + export function Rewards(): t.types.pallet_nomination_pools.BondExtra.Rewards { + return { type: "Rewards" } + } +} + +export interface BondedPoolInner { + points: t.types.u128 + state: t.types.pallet_nomination_pools.PoolState + member_counter: t.types.u32 + roles: t.types.pallet_nomination_pools.PoolRoles +} + +export function BondedPoolInner(value: t.types.pallet_nomination_pools.BondedPoolInner) { + return value +} + +export interface PoolMember { + pool_id: t.types.u32 + points: t.types.u128 + last_recorded_reward_counter: t.types.sp_arithmetic.fixed_point.FixedU128 + unbonding_eras: Map +} + +export function PoolMember(value: t.types.pallet_nomination_pools.PoolMember) { + return value +} + +export interface PoolRoles { + depositor: t.types.sp_core.crypto.AccountId32 + root: t.types.sp_core.crypto.AccountId32 | undefined + nominator: t.types.sp_core.crypto.AccountId32 | undefined + state_toggler: t.types.sp_core.crypto.AccountId32 | undefined +} + +export function PoolRoles(value: t.types.pallet_nomination_pools.PoolRoles) { + return value +} + +export type PoolState = "Open" | "Blocked" | "Destroying" + +export interface RewardPool { + last_recorded_reward_counter: t.types.sp_arithmetic.fixed_point.FixedU128 + last_recorded_total_payouts: t.types.u128 + total_rewards_claimed: t.types.u128 +} + +export function RewardPool(value: t.types.pallet_nomination_pools.RewardPool) { + return value +} + +export interface SubPools { + no_era: t.types.pallet_nomination_pools.UnbondPool + with_era: Map +} + +export function SubPools(value: t.types.pallet_nomination_pools.SubPools) { + return value +} + +export interface UnbondPool { + points: t.types.u128 + balance: t.types.u128 +} + +export function UnbondPool(value: t.types.pallet_nomination_pools.UnbondPool) { + return value +} diff --git a/codegen/_output/rococo/pallet_nomination_pools/pallet.ts b/codegen/_output/kusama/types/pallet_nomination_pools/pallet.ts similarity index 69% rename from codegen/_output/rococo/pallet_nomination_pools/pallet.ts rename to codegen/_output/kusama/types/pallet_nomination_pools/pallet.ts index acbefdc55..68dbe5fbf 100644 --- a/codegen/_output/rococo/pallet_nomination_pools/pallet.ts +++ b/codegen/_output/kusama/types/pallet_nomination_pools/pallet.ts @@ -1,30 +1,31 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$369 +export const $call: $.Codec = _codec.$369 -export const $defensiveError: $.Codec = _codec.$633 +export const $defensiveError: $.Codec = + _codec.$633 -export const $error: $.Codec = _codec.$632 +export const $error: $.Codec = _codec.$632 -export const $event: $.Codec = _codec.$90 +export const $event: $.Codec = _codec.$90 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_nomination_pools.pallet.Call.join - | t.pallet_nomination_pools.pallet.Call.bond_extra - | t.pallet_nomination_pools.pallet.Call.claim_payout - | t.pallet_nomination_pools.pallet.Call.unbond - | t.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded - | t.pallet_nomination_pools.pallet.Call.withdraw_unbonded - | t.pallet_nomination_pools.pallet.Call.create - | t.pallet_nomination_pools.pallet.Call.nominate - | t.pallet_nomination_pools.pallet.Call.set_state - | t.pallet_nomination_pools.pallet.Call.set_metadata - | t.pallet_nomination_pools.pallet.Call.set_configs - | t.pallet_nomination_pools.pallet.Call.update_roles - | t.pallet_nomination_pools.pallet.Call.chill + | t.types.pallet_nomination_pools.pallet.Call.join + | t.types.pallet_nomination_pools.pallet.Call.bond_extra + | t.types.pallet_nomination_pools.pallet.Call.claim_payout + | t.types.pallet_nomination_pools.pallet.Call.unbond + | t.types.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded + | t.types.pallet_nomination_pools.pallet.Call.withdraw_unbonded + | t.types.pallet_nomination_pools.pallet.Call.create + | t.types.pallet_nomination_pools.pallet.Call.nominate + | t.types.pallet_nomination_pools.pallet.Call.set_state + | t.types.pallet_nomination_pools.pallet.Call.set_metadata + | t.types.pallet_nomination_pools.pallet.Call.set_configs + | t.types.pallet_nomination_pools.pallet.Call.update_roles + | t.types.pallet_nomination_pools.pallet.Call.chill export namespace Call { /** * Stake funds with a pool. The amount to bond is transferred from the member to the @@ -40,8 +41,8 @@ export namespace Call { */ export interface join { type: "join" - amount: t.Compact - pool_id: t.u32 + amount: t.Compact + pool_id: t.types.u32 } /** * Bond `extra` more funds from `origin` into the pool to which they already belong. @@ -53,7 +54,7 @@ export namespace Call { */ export interface bond_extra { type: "bond_extra" - extra: t.pallet_nomination_pools.BondExtra + extra: t.types.pallet_nomination_pools.BondExtra } /** * A bonded member can use this to claim their payout based on the rewards that the pool @@ -98,8 +99,8 @@ export namespace Call { */ export interface unbond { type: "unbond" - member_account: t.sp_runtime.multiaddress.MultiAddress - unbonding_points: t.Compact + member_account: t.types.sp_runtime.multiaddress.MultiAddress + unbonding_points: t.Compact } /** * Call `withdraw_unbonded` for the pools account. This call can be made by any account. @@ -111,8 +112,8 @@ export namespace Call { */ export interface pool_withdraw_unbonded { type: "pool_withdraw_unbonded" - pool_id: t.u32 - num_slashing_spans: t.u32 + pool_id: t.types.u32 + num_slashing_spans: t.types.u32 } /** * Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an @@ -137,8 +138,8 @@ export namespace Call { */ export interface withdraw_unbonded { type: "withdraw_unbonded" - member_account: t.sp_runtime.multiaddress.MultiAddress - num_slashing_spans: t.u32 + member_account: t.types.sp_runtime.multiaddress.MultiAddress + num_slashing_spans: t.types.u32 } /** * Create a new delegation pool. @@ -161,10 +162,10 @@ export namespace Call { */ export interface create { type: "create" - amount: t.Compact - root: t.sp_runtime.multiaddress.MultiAddress - nominator: t.sp_runtime.multiaddress.MultiAddress - state_toggler: t.sp_runtime.multiaddress.MultiAddress + amount: t.Compact + root: t.types.sp_runtime.multiaddress.MultiAddress + nominator: t.types.sp_runtime.multiaddress.MultiAddress + state_toggler: t.types.sp_runtime.multiaddress.MultiAddress } /** * Nominate on behalf of the pool. @@ -177,8 +178,8 @@ export namespace Call { */ export interface nominate { type: "nominate" - pool_id: t.u32 - validators: Array + pool_id: t.types.u32 + validators: Array } /** * Set a new state for the pool. @@ -194,8 +195,8 @@ export namespace Call { */ export interface set_state { type: "set_state" - pool_id: t.u32 - state: t.pallet_nomination_pools.PoolState + pool_id: t.types.u32 + state: t.types.pallet_nomination_pools.PoolState } /** * Set a new metadata for the pool. @@ -205,7 +206,7 @@ export namespace Call { */ export interface set_metadata { type: "set_metadata" - pool_id: t.u32 + pool_id: t.types.u32 metadata: Uint8Array } /** @@ -222,11 +223,11 @@ export namespace Call { */ export interface set_configs { type: "set_configs" - min_join_bond: t.pallet_nomination_pools.ConfigOp.$$u128 - min_create_bond: t.pallet_nomination_pools.ConfigOp.$$u128 - max_pools: t.pallet_nomination_pools.ConfigOp.$$u32 - max_members: t.pallet_nomination_pools.ConfigOp.$$u32 - max_members_per_pool: t.pallet_nomination_pools.ConfigOp.$$u32 + min_join_bond: t.types.pallet_nomination_pools.ConfigOp.$$u128 + min_create_bond: t.types.pallet_nomination_pools.ConfigOp.$$u128 + max_pools: t.types.pallet_nomination_pools.ConfigOp.$$u32 + max_members: t.types.pallet_nomination_pools.ConfigOp.$$u32 + max_members_per_pool: t.types.pallet_nomination_pools.ConfigOp.$$u32 } /** * Update the roles of the pool. @@ -239,10 +240,10 @@ export namespace Call { */ export interface update_roles { type: "update_roles" - pool_id: t.u32 - new_root: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 - new_nominator: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 - new_state_toggler: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + pool_id: t.types.u32 + new_root: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + new_nominator: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + new_state_toggler: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 } /** * Chill on behalf of the pool. @@ -255,7 +256,7 @@ export namespace Call { */ export interface chill { type: "chill" - pool_id: t.u32 + pool_id: t.types.u32 } /** * Stake funds with a pool. The amount to bond is transferred from the member to the @@ -270,8 +271,8 @@ export namespace Call { * * Only a pool with [`PoolState::Open`] can be joined */ export function join( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.join { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.join { return { type: "join", ...value } } /** @@ -283,8 +284,8 @@ export namespace Call { * Bonding extra funds implies an automatic payout of all pending rewards as well. */ export function bond_extra( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.bond_extra { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.bond_extra { return { type: "bond_extra", ...value } } /** @@ -295,7 +296,7 @@ export namespace Call { * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". */ - export function claim_payout(): t.pallet_nomination_pools.pallet.Call.claim_payout { + export function claim_payout(): t.types.pallet_nomination_pools.pallet.Call.claim_payout { return { type: "claim_payout" } } /** @@ -329,8 +330,8 @@ export namespace Call { * `NoMoreChunks` error from the staking system. */ export function unbond( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.unbond { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.unbond { return { type: "unbond", ...value } } /** @@ -342,8 +343,8 @@ export namespace Call { * they attempt to unbond. */ export function pool_withdraw_unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded { return { type: "pool_withdraw_unbonded", ...value } } /** @@ -368,8 +369,8 @@ export namespace Call { * If the target is the depositor, the pool will be destroyed. */ export function withdraw_unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.withdraw_unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.withdraw_unbonded { return { type: "withdraw_unbonded", ...value } } /** @@ -392,8 +393,8 @@ export namespace Call { * needs at have at least `amount + existential_deposit` transferrable. */ export function create( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.create { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.create { return { type: "create", ...value } } /** @@ -406,8 +407,8 @@ export namespace Call { * account. */ export function nominate( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.nominate { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.nominate { return { type: "nominate", ...value } } /** @@ -423,8 +424,8 @@ export namespace Call { * then the state of the pool can be permissionlessly changed to `Destroying`. */ export function set_state( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_state { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_state { return { type: "set_state", ...value } } /** @@ -434,8 +435,8 @@ export namespace Call { * of the pool. */ export function set_metadata( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_metadata { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_metadata { return { type: "set_metadata", ...value } } /** @@ -451,8 +452,8 @@ export namespace Call { * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. */ export function set_configs( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_configs { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_configs { return { type: "set_configs", ...value } } /** @@ -465,8 +466,8 @@ export namespace Call { * most pool members and they should be informed of changes to pool roles. */ export function update_roles( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.update_roles { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.update_roles { return { type: "update_roles", ...value } } /** @@ -479,8 +480,8 @@ export namespace Call { * account. */ export function chill( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.chill { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.chill { return { type: "chill", ...value } } } @@ -494,27 +495,27 @@ export type DefensiveError = /** Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) of this pallet. */ export type Error = - | t.pallet_nomination_pools.pallet.Error.PoolNotFound - | t.pallet_nomination_pools.pallet.Error.PoolMemberNotFound - | t.pallet_nomination_pools.pallet.Error.RewardPoolNotFound - | t.pallet_nomination_pools.pallet.Error.SubPoolsNotFound - | t.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool - | t.pallet_nomination_pools.pallet.Error.FullyUnbonding - | t.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit - | t.pallet_nomination_pools.pallet.Error.CannotWithdrawAny - | t.pallet_nomination_pools.pallet.Error.MinimumBondNotMet - | t.pallet_nomination_pools.pallet.Error.OverflowRisk - | t.pallet_nomination_pools.pallet.Error.NotDestroying - | t.pallet_nomination_pools.pallet.Error.NotNominator - | t.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying - | t.pallet_nomination_pools.pallet.Error.NotOpen - | t.pallet_nomination_pools.pallet.Error.MaxPools - | t.pallet_nomination_pools.pallet.Error.MaxPoolMembers - | t.pallet_nomination_pools.pallet.Error.CanNotChangeState - | t.pallet_nomination_pools.pallet.Error.DoesNotHavePermission - | t.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen - | t.pallet_nomination_pools.pallet.Error.Defensive - | t.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly + | t.types.pallet_nomination_pools.pallet.Error.PoolNotFound + | t.types.pallet_nomination_pools.pallet.Error.PoolMemberNotFound + | t.types.pallet_nomination_pools.pallet.Error.RewardPoolNotFound + | t.types.pallet_nomination_pools.pallet.Error.SubPoolsNotFound + | t.types.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool + | t.types.pallet_nomination_pools.pallet.Error.FullyUnbonding + | t.types.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit + | t.types.pallet_nomination_pools.pallet.Error.CannotWithdrawAny + | t.types.pallet_nomination_pools.pallet.Error.MinimumBondNotMet + | t.types.pallet_nomination_pools.pallet.Error.OverflowRisk + | t.types.pallet_nomination_pools.pallet.Error.NotDestroying + | t.types.pallet_nomination_pools.pallet.Error.NotNominator + | t.types.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying + | t.types.pallet_nomination_pools.pallet.Error.NotOpen + | t.types.pallet_nomination_pools.pallet.Error.MaxPools + | t.types.pallet_nomination_pools.pallet.Error.MaxPoolMembers + | t.types.pallet_nomination_pools.pallet.Error.CanNotChangeState + | t.types.pallet_nomination_pools.pallet.Error.DoesNotHavePermission + | t.types.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen + | t.types.pallet_nomination_pools.pallet.Error.Defensive + | t.types.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly export namespace Error { /** A (bonded) pool id does not exist. */ export interface PoolNotFound { @@ -613,48 +614,48 @@ export namespace Error { */ export interface Defensive { type: "Defensive" - value: t.pallet_nomination_pools.pallet.DefensiveError + value: t.types.pallet_nomination_pools.pallet.DefensiveError } /** Partial unbonding now allowed permissionlessly. */ export interface PartialUnbondNotAllowedPermissionlessly { type: "PartialUnbondNotAllowedPermissionlessly" } /** A (bonded) pool id does not exist. */ - export function PoolNotFound(): t.pallet_nomination_pools.pallet.Error.PoolNotFound { + export function PoolNotFound(): t.types.pallet_nomination_pools.pallet.Error.PoolNotFound { return { type: "PoolNotFound" } } /** An account is not a member. */ - export function PoolMemberNotFound(): t.pallet_nomination_pools.pallet.Error.PoolMemberNotFound { + export function PoolMemberNotFound(): t.types.pallet_nomination_pools.pallet.Error.PoolMemberNotFound { return { type: "PoolMemberNotFound" } } /** A reward pool does not exist. In all cases this is a system logic error. */ - export function RewardPoolNotFound(): t.pallet_nomination_pools.pallet.Error.RewardPoolNotFound { + export function RewardPoolNotFound(): t.types.pallet_nomination_pools.pallet.Error.RewardPoolNotFound { return { type: "RewardPoolNotFound" } } /** A sub pool does not exist. */ - export function SubPoolsNotFound(): t.pallet_nomination_pools.pallet.Error.SubPoolsNotFound { + export function SubPoolsNotFound(): t.types.pallet_nomination_pools.pallet.Error.SubPoolsNotFound { return { type: "SubPoolsNotFound" } } /** * An account is already delegating in another pool. An account may only belong to one * pool at a time. */ - export function AccountBelongsToOtherPool(): t.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool { + export function AccountBelongsToOtherPool(): t.types.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool { return { type: "AccountBelongsToOtherPool" } } /** * The member is fully unbonded (and thus cannot access the bonded and reward pool * anymore to, for example, collect rewards). */ - export function FullyUnbonding(): t.pallet_nomination_pools.pallet.Error.FullyUnbonding { + export function FullyUnbonding(): t.types.pallet_nomination_pools.pallet.Error.FullyUnbonding { return { type: "FullyUnbonding" } } /** The member cannot unbond further chunks due to reaching the limit. */ - export function MaxUnbondingLimit(): t.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit { + export function MaxUnbondingLimit(): t.types.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit { return { type: "MaxUnbondingLimit" } } /** None of the funds can be withdrawn yet because the bonding duration has not passed. */ - export function CannotWithdrawAny(): t.pallet_nomination_pools.pallet.Error.CannotWithdrawAny { + export function CannotWithdrawAny(): t.types.pallet_nomination_pools.pallet.Error.CannotWithdrawAny { return { type: "CannotWithdrawAny" } } /** @@ -664,50 +665,50 @@ export namespace Error { * `Pallet::depositor_min_bond`. The caller does not have nominating * permissions for the pool. Members can never unbond to a value below `MinJoinBond`. */ - export function MinimumBondNotMet(): t.pallet_nomination_pools.pallet.Error.MinimumBondNotMet { + export function MinimumBondNotMet(): t.types.pallet_nomination_pools.pallet.Error.MinimumBondNotMet { return { type: "MinimumBondNotMet" } } /** The transaction could not be executed due to overflow risk for the pool. */ - export function OverflowRisk(): t.pallet_nomination_pools.pallet.Error.OverflowRisk { + export function OverflowRisk(): t.types.pallet_nomination_pools.pallet.Error.OverflowRisk { return { type: "OverflowRisk" } } /** * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for * other members to be permissionlessly unbonded. */ - export function NotDestroying(): t.pallet_nomination_pools.pallet.Error.NotDestroying { + export function NotDestroying(): t.types.pallet_nomination_pools.pallet.Error.NotDestroying { return { type: "NotDestroying" } } /** The caller does not have nominating permissions for the pool. */ - export function NotNominator(): t.pallet_nomination_pools.pallet.Error.NotNominator { + export function NotNominator(): t.types.pallet_nomination_pools.pallet.Error.NotNominator { return { type: "NotNominator" } } /** Either a) the caller cannot make a valid kick or b) the pool is not destroying. */ - export function NotKickerOrDestroying(): t.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying { + export function NotKickerOrDestroying(): t.types.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying { return { type: "NotKickerOrDestroying" } } /** The pool is not open to join */ - export function NotOpen(): t.pallet_nomination_pools.pallet.Error.NotOpen { + export function NotOpen(): t.types.pallet_nomination_pools.pallet.Error.NotOpen { return { type: "NotOpen" } } /** The system is maxed out on pools. */ - export function MaxPools(): t.pallet_nomination_pools.pallet.Error.MaxPools { + export function MaxPools(): t.types.pallet_nomination_pools.pallet.Error.MaxPools { return { type: "MaxPools" } } /** Too many members in the pool or system. */ - export function MaxPoolMembers(): t.pallet_nomination_pools.pallet.Error.MaxPoolMembers { + export function MaxPoolMembers(): t.types.pallet_nomination_pools.pallet.Error.MaxPoolMembers { return { type: "MaxPoolMembers" } } /** The pools state cannot be changed. */ - export function CanNotChangeState(): t.pallet_nomination_pools.pallet.Error.CanNotChangeState { + export function CanNotChangeState(): t.types.pallet_nomination_pools.pallet.Error.CanNotChangeState { return { type: "CanNotChangeState" } } /** The caller does not have adequate permissions. */ - export function DoesNotHavePermission(): t.pallet_nomination_pools.pallet.Error.DoesNotHavePermission { + export function DoesNotHavePermission(): t.types.pallet_nomination_pools.pallet.Error.DoesNotHavePermission { return { type: "DoesNotHavePermission" } } /** Metadata exceeds [`Config::MaxMetadataLen`] */ - export function MetadataExceedsMaxLen(): t.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen { + export function MetadataExceedsMaxLen(): t.types.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen { return { type: "MetadataExceedsMaxLen" } } /** @@ -715,50 +716,50 @@ export namespace Error { * maintainers. */ export function Defensive( - value: t.pallet_nomination_pools.pallet.Error.Defensive["value"], - ): t.pallet_nomination_pools.pallet.Error.Defensive { + value: t.types.pallet_nomination_pools.pallet.Error.Defensive["value"], + ): t.types.pallet_nomination_pools.pallet.Error.Defensive { return { type: "Defensive", value } } /** Partial unbonding now allowed permissionlessly. */ - export function PartialUnbondNotAllowedPermissionlessly(): t.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly { + export function PartialUnbondNotAllowedPermissionlessly(): t.types.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly { return { type: "PartialUnbondNotAllowedPermissionlessly" } } } /** Events of this pallet. */ export type Event = - | t.pallet_nomination_pools.pallet.Event.Created - | t.pallet_nomination_pools.pallet.Event.Bonded - | t.pallet_nomination_pools.pallet.Event.PaidOut - | t.pallet_nomination_pools.pallet.Event.Unbonded - | t.pallet_nomination_pools.pallet.Event.Withdrawn - | t.pallet_nomination_pools.pallet.Event.Destroyed - | t.pallet_nomination_pools.pallet.Event.StateChanged - | t.pallet_nomination_pools.pallet.Event.MemberRemoved - | t.pallet_nomination_pools.pallet.Event.RolesUpdated - | t.pallet_nomination_pools.pallet.Event.PoolSlashed - | t.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed + | t.types.pallet_nomination_pools.pallet.Event.Created + | t.types.pallet_nomination_pools.pallet.Event.Bonded + | t.types.pallet_nomination_pools.pallet.Event.PaidOut + | t.types.pallet_nomination_pools.pallet.Event.Unbonded + | t.types.pallet_nomination_pools.pallet.Event.Withdrawn + | t.types.pallet_nomination_pools.pallet.Event.Destroyed + | t.types.pallet_nomination_pools.pallet.Event.StateChanged + | t.types.pallet_nomination_pools.pallet.Event.MemberRemoved + | t.types.pallet_nomination_pools.pallet.Event.RolesUpdated + | t.types.pallet_nomination_pools.pallet.Event.PoolSlashed + | t.types.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed export namespace Event { /** A pool has been created. */ export interface Created { type: "Created" - depositor: t.sp_core.crypto.AccountId32 - pool_id: t.u32 + depositor: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 } /** A member has became bonded in a pool. */ export interface Bonded { type: "Bonded" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - bonded: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + bonded: t.types.u128 joined: boolean } /** A payout has been made to a member. */ export interface PaidOut { type: "PaidOut" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - payout: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + payout: t.types.u128 } /** * A member has unbonded from their pool. @@ -775,11 +776,11 @@ export namespace Event { */ export interface Unbonded { type: "Unbonded" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - balance: t.u128 - points: t.u128 - era: t.u32 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + balance: t.types.u128 + points: t.types.u128 + era: t.types.u32 } /** * A member has withdrawn from their pool. @@ -791,21 +792,21 @@ export namespace Event { */ export interface Withdrawn { type: "Withdrawn" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - balance: t.u128 - points: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + balance: t.types.u128 + points: t.types.u128 } /** A pool has been destroyed. */ export interface Destroyed { type: "Destroyed" - pool_id: t.u32 + pool_id: t.types.u32 } /** The state of a pool has changed */ export interface StateChanged { type: "StateChanged" - pool_id: t.u32 - new_state: t.pallet_nomination_pools.PoolState + pool_id: t.types.u32 + new_state: t.types.pallet_nomination_pools.PoolState } /** * A member has been removed from a pool. @@ -814,8 +815,8 @@ export namespace Event { */ export interface MemberRemoved { type: "MemberRemoved" - pool_id: t.u32 - member: t.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + member: t.types.sp_core.crypto.AccountId32 } /** * The roles of a pool have been updated to the given new roles. Note that the depositor @@ -823,39 +824,39 @@ export namespace Event { */ export interface RolesUpdated { type: "RolesUpdated" - root: t.sp_core.crypto.AccountId32 | undefined - state_toggler: t.sp_core.crypto.AccountId32 | undefined - nominator: t.sp_core.crypto.AccountId32 | undefined + root: t.types.sp_core.crypto.AccountId32 | undefined + state_toggler: t.types.sp_core.crypto.AccountId32 | undefined + nominator: t.types.sp_core.crypto.AccountId32 | undefined } /** The active balance of pool `pool_id` has been slashed to `balance`. */ export interface PoolSlashed { type: "PoolSlashed" - pool_id: t.u32 - balance: t.u128 + pool_id: t.types.u32 + balance: t.types.u128 } /** The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ export interface UnbondingPoolSlashed { type: "UnbondingPoolSlashed" - pool_id: t.u32 - era: t.u32 - balance: t.u128 + pool_id: t.types.u32 + era: t.types.u32 + balance: t.types.u128 } /** A pool has been created. */ export function Created( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Created { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Created { return { type: "Created", ...value } } /** A member has became bonded in a pool. */ export function Bonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Bonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Bonded { return { type: "Bonded", ...value } } /** A payout has been made to a member. */ export function PaidOut( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.PaidOut { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.PaidOut { return { type: "PaidOut", ...value } } /** @@ -872,8 +873,8 @@ export namespace Event { * requested to be unbonded. */ export function Unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Unbonded { return { type: "Unbonded", ...value } } /** @@ -885,20 +886,20 @@ export namespace Event { * will be 1. */ export function Withdrawn( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Withdrawn { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Withdrawn { return { type: "Withdrawn", ...value } } /** A pool has been destroyed. */ export function Destroyed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Destroyed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Destroyed { return { type: "Destroyed", ...value } } /** The state of a pool has changed */ export function StateChanged( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.StateChanged { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.StateChanged { return { type: "StateChanged", ...value } } /** @@ -907,8 +908,8 @@ export namespace Event { * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). */ export function MemberRemoved( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.MemberRemoved { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.MemberRemoved { return { type: "MemberRemoved", ...value } } /** @@ -916,20 +917,20 @@ export namespace Event { * can never change. */ export function RolesUpdated( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.RolesUpdated { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.RolesUpdated { return { type: "RolesUpdated", ...value } } /** The active balance of pool `pool_id` has been slashed to `balance`. */ export function PoolSlashed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.PoolSlashed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.PoolSlashed { return { type: "PoolSlashed", ...value } } /** The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ export function UnbondingPoolSlashed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed { return { type: "UnbondingPoolSlashed", ...value } } } diff --git a/codegen/_output/kusama/pallet_offences/mod.ts b/codegen/_output/kusama/types/pallet_offences/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_offences/mod.ts rename to codegen/_output/kusama/types/pallet_offences/mod.ts diff --git a/codegen/_output/kusama/pallet_offences/pallet.ts b/codegen/_output/kusama/types/pallet_offences/pallet.ts similarity index 62% rename from codegen/_output/kusama/pallet_offences/pallet.ts rename to codegen/_output/kusama/types/pallet_offences/pallet.ts index 6475526f3..649196c9b 100644 --- a/codegen/_output/kusama/pallet_offences/pallet.ts +++ b/codegen/_output/kusama/types/pallet_offences/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $event: $.Codec = _codec.$44 +export const $event: $.Codec = _codec.$44 /** Events type. */ -export type Event = t.pallet_offences.pallet.Event.Offence +export type Event = t.types.pallet_offences.pallet.Event.Offence export namespace Event { /** * There is an offence reported of the given `kind` happened at the `session_index` and @@ -23,8 +23,8 @@ export namespace Event { * \[kind, timeslot\]. */ export function Offence( - value: Omit, - ): t.pallet_offences.pallet.Event.Offence { + value: Omit, + ): t.types.pallet_offences.pallet.Event.Offence { return { type: "Offence", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_preimage/mod.ts b/codegen/_output/kusama/types/pallet_preimage/mod.ts new file mode 100644 index 000000000..324126816 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_preimage/mod.ts @@ -0,0 +1,34 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $requestStatus: $.Codec = _codec.$451 + +export type RequestStatus = + | t.types.pallet_preimage.RequestStatus.Unrequested + | t.types.pallet_preimage.RequestStatus.Requested +export namespace RequestStatus { + export interface Unrequested { + type: "Unrequested" + deposit: [t.types.sp_core.crypto.AccountId32, t.types.u128] + len: t.types.u32 + } + export interface Requested { + type: "Requested" + deposit: [t.types.sp_core.crypto.AccountId32, t.types.u128] | undefined + count: t.types.u32 + len: t.types.u32 | undefined + } + export function Unrequested( + value: Omit, + ): t.types.pallet_preimage.RequestStatus.Unrequested { + return { type: "Unrequested", ...value } + } + export function Requested( + value: Omit, + ): t.types.pallet_preimage.RequestStatus.Requested { + return { type: "Requested", ...value } + } +} diff --git a/codegen/_output/rococo/pallet_preimage/pallet.ts b/codegen/_output/kusama/types/pallet_preimage/pallet.ts similarity index 66% rename from codegen/_output/rococo/pallet_preimage/pallet.ts rename to codegen/_output/kusama/types/pallet_preimage/pallet.ts index fdef5e58f..b642211ec 100644 --- a/codegen/_output/rococo/pallet_preimage/pallet.ts +++ b/codegen/_output/kusama/types/pallet_preimage/pallet.ts @@ -1,19 +1,19 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$184 +export const $call: $.Codec = _codec.$184 -export const $error: $.Codec = _codec.$455 +export const $error: $.Codec = _codec.$455 -export const $event: $.Codec = _codec.$34 +export const $event: $.Codec = _codec.$34 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_preimage.pallet.Call.note_preimage - | t.pallet_preimage.pallet.Call.unnote_preimage - | t.pallet_preimage.pallet.Call.request_preimage - | t.pallet_preimage.pallet.Call.unrequest_preimage + | t.types.pallet_preimage.pallet.Call.note_preimage + | t.types.pallet_preimage.pallet.Call.unnote_preimage + | t.types.pallet_preimage.pallet.Call.request_preimage + | t.types.pallet_preimage.pallet.Call.unrequest_preimage export namespace Call { /** * Register a preimage on-chain. @@ -35,7 +35,7 @@ export namespace Call { */ export interface unnote_preimage { type: "unnote_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Request a preimage be uploaded to the chain without paying any fees or deposits. @@ -45,7 +45,7 @@ export namespace Call { */ export interface request_preimage { type: "request_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Clear a previously made request for a preimage. @@ -54,7 +54,7 @@ export namespace Call { */ export interface unrequest_preimage { type: "unrequest_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Register a preimage on-chain. @@ -63,8 +63,8 @@ export namespace Call { * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ export function note_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.note_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.note_preimage { return { type: "note_preimage", ...value } } /** @@ -76,8 +76,8 @@ export namespace Call { * - `len`: The length of the preimage of `hash`. */ export function unnote_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.unnote_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.unnote_preimage { return { type: "unnote_preimage", ...value } } /** @@ -87,8 +87,8 @@ export namespace Call { * a user may have paid, and take the control of the preimage out of their hands. */ export function request_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.request_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.request_preimage { return { type: "request_preimage", ...value } } /** @@ -97,8 +97,8 @@ export namespace Call { * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ export function unrequest_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.unrequest_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.unrequest_preimage { return { type: "unrequest_preimage", ...value } } } @@ -114,41 +114,41 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_preimage.pallet.Event.Noted - | t.pallet_preimage.pallet.Event.Requested - | t.pallet_preimage.pallet.Event.Cleared + | t.types.pallet_preimage.pallet.Event.Noted + | t.types.pallet_preimage.pallet.Event.Requested + | t.types.pallet_preimage.pallet.Event.Cleared export namespace Event { /** A preimage has been noted. */ export interface Noted { type: "Noted" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has been requested. */ export interface Requested { type: "Requested" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has ben cleared. */ export interface Cleared { type: "Cleared" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has been noted. */ export function Noted( - value: Omit, - ): t.pallet_preimage.pallet.Event.Noted { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Noted { return { type: "Noted", ...value } } /** A preimage has been requested. */ export function Requested( - value: Omit, - ): t.pallet_preimage.pallet.Event.Requested { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Requested { return { type: "Requested", ...value } } /** A preimage has ben cleared. */ export function Cleared( - value: Omit, - ): t.pallet_preimage.pallet.Event.Cleared { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Cleared { return { type: "Cleared", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_proxy/mod.ts b/codegen/_output/kusama/types/pallet_proxy/mod.ts new file mode 100644 index 000000000..db212b5e5 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_proxy/mod.ts @@ -0,0 +1,29 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $announcement: $.Codec = _codec.$585 + +export const $proxyDefinition: $.Codec = _codec.$581 + +export interface Announcement { + real: t.types.sp_core.crypto.AccountId32 + call_hash: t.types.primitive_types.H256 + height: t.types.u32 +} + +export function Announcement(value: t.types.pallet_proxy.Announcement) { + return value +} + +export interface ProxyDefinition { + delegate: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 +} + +export function ProxyDefinition(value: t.types.pallet_proxy.ProxyDefinition) { + return value +} diff --git a/codegen/_output/kusama/pallet_proxy/pallet.ts b/codegen/_output/kusama/types/pallet_proxy/pallet.ts similarity index 74% rename from codegen/_output/kusama/pallet_proxy/pallet.ts rename to codegen/_output/kusama/types/pallet_proxy/pallet.ts index e98acf198..8833ea7d3 100644 --- a/codegen/_output/kusama/pallet_proxy/pallet.ts +++ b/codegen/_output/kusama/types/pallet_proxy/pallet.ts @@ -1,25 +1,25 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$303 +export const $call: $.Codec = _codec.$303 -export const $error: $.Codec = _codec.$587 +export const $error: $.Codec = _codec.$587 -export const $event: $.Codec = _codec.$78 +export const $event: $.Codec = _codec.$78 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_proxy.pallet.Call.proxy - | t.pallet_proxy.pallet.Call.add_proxy - | t.pallet_proxy.pallet.Call.remove_proxy - | t.pallet_proxy.pallet.Call.remove_proxies - | t.pallet_proxy.pallet.Call.create_pure - | t.pallet_proxy.pallet.Call.kill_pure - | t.pallet_proxy.pallet.Call.announce - | t.pallet_proxy.pallet.Call.remove_announcement - | t.pallet_proxy.pallet.Call.reject_announcement - | t.pallet_proxy.pallet.Call.proxy_announced + | t.types.pallet_proxy.pallet.Call.proxy + | t.types.pallet_proxy.pallet.Call.add_proxy + | t.types.pallet_proxy.pallet.Call.remove_proxy + | t.types.pallet_proxy.pallet.Call.remove_proxies + | t.types.pallet_proxy.pallet.Call.create_pure + | t.types.pallet_proxy.pallet.Call.kill_pure + | t.types.pallet_proxy.pallet.Call.announce + | t.types.pallet_proxy.pallet.Call.remove_announcement + | t.types.pallet_proxy.pallet.Call.reject_announcement + | t.types.pallet_proxy.pallet.Call.proxy_announced export namespace Call { /** * Dispatch the given `call` from an account that the sender is authorised for through @@ -36,9 +36,9 @@ export namespace Call { */ export interface proxy { type: "proxy" - real: t.sp_runtime.multiaddress.MultiAddress - force_proxy_type: t.polkadot_runtime.ProxyType | undefined - call: t.polkadot_runtime.RuntimeCall + real: t.types.sp_runtime.multiaddress.MultiAddress + force_proxy_type: t.types.polkadot_runtime.ProxyType | undefined + call: t.types.polkadot_runtime.RuntimeCall } /** * Register a proxy account for the sender that is able to make calls on its behalf. @@ -53,9 +53,9 @@ export namespace Call { */ export interface add_proxy { type: "add_proxy" - delegate: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** * Unregister a proxy account for the sender. @@ -68,9 +68,9 @@ export namespace Call { */ export interface remove_proxy { type: "remove_proxy" - delegate: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** * Unregister all proxy accounts for the sender. @@ -105,9 +105,9 @@ export namespace Call { */ export interface create_pure { type: "create_pure" - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 - index: t.u16 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 + index: t.types.u16 } /** * Removes a previously spawned pure proxy. @@ -129,11 +129,11 @@ export namespace Call { */ export interface kill_pure { type: "kill_pure" - spawner: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - index: t.u16 - height: t.Compact - ext_index: t.Compact + spawner: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + index: t.types.u16 + height: t.Compact + ext_index: t.Compact } /** * Publish the hash of a proxy-call that will be made in the future. @@ -154,8 +154,8 @@ export namespace Call { */ export interface announce { type: "announce" - real: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + real: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Remove a given announcement. @@ -171,8 +171,8 @@ export namespace Call { */ export interface remove_announcement { type: "remove_announcement" - real: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + real: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Remove the given announcement of a delegate. @@ -188,8 +188,8 @@ export namespace Call { */ export interface reject_announcement { type: "reject_announcement" - delegate: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Dispatch the given `call` from an account that the sender is authorized for through @@ -206,10 +206,10 @@ export namespace Call { */ export interface proxy_announced { type: "proxy_announced" - delegate: t.sp_runtime.multiaddress.MultiAddress - real: t.sp_runtime.multiaddress.MultiAddress - force_proxy_type: t.polkadot_runtime.ProxyType | undefined - call: t.polkadot_runtime.RuntimeCall + delegate: t.types.sp_runtime.multiaddress.MultiAddress + real: t.types.sp_runtime.multiaddress.MultiAddress + force_proxy_type: t.types.polkadot_runtime.ProxyType | undefined + call: t.types.polkadot_runtime.RuntimeCall } /** * Dispatch the given `call` from an account that the sender is authorised for through @@ -225,8 +225,8 @@ export namespace Call { * - `call`: The call to be made by the `real` account. */ export function proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.proxy { return { type: "proxy", ...value } } /** @@ -241,8 +241,8 @@ export namespace Call { * zero. */ export function add_proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.add_proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.add_proxy { return { type: "add_proxy", ...value } } /** @@ -255,8 +255,8 @@ export namespace Call { * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ export function remove_proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.remove_proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.remove_proxy { return { type: "remove_proxy", ...value } } /** @@ -267,7 +267,7 @@ export namespace Call { * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ - export function remove_proxies(): t.pallet_proxy.pallet.Call.remove_proxies { + export function remove_proxies(): t.types.pallet_proxy.pallet.Call.remove_proxies { return { type: "remove_proxies" } } /** @@ -291,8 +291,8 @@ export namespace Call { * Fails if there are insufficient funds to pay for deposit. */ export function create_pure( - value: Omit, - ): t.pallet_proxy.pallet.Call.create_pure { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.create_pure { return { type: "create_pure", ...value } } /** @@ -314,8 +314,8 @@ export namespace Call { * account whose `pure` call has corresponding parameters. */ export function kill_pure( - value: Omit, - ): t.pallet_proxy.pallet.Call.kill_pure { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.kill_pure { return { type: "kill_pure", ...value } } /** @@ -336,8 +336,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made by the `real` account. */ export function announce( - value: Omit, - ): t.pallet_proxy.pallet.Call.announce { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.announce { return { type: "announce", ...value } } /** @@ -353,8 +353,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made by the `real` account. */ export function remove_announcement( - value: Omit, - ): t.pallet_proxy.pallet.Call.remove_announcement { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.remove_announcement { return { type: "remove_announcement", ...value } } /** @@ -370,8 +370,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made. */ export function reject_announcement( - value: Omit, - ): t.pallet_proxy.pallet.Call.reject_announcement { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.reject_announcement { return { type: "reject_announcement", ...value } } /** @@ -388,8 +388,8 @@ export namespace Call { * - `call`: The call to be made by the `real` account. */ export function proxy_announced( - value: Omit, - ): t.pallet_proxy.pallet.Call.proxy_announced { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.proxy_announced { return { type: "proxy_announced", ...value } } } @@ -407,16 +407,16 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_proxy.pallet.Event.ProxyExecuted - | t.pallet_proxy.pallet.Event.PureCreated - | t.pallet_proxy.pallet.Event.Announced - | t.pallet_proxy.pallet.Event.ProxyAdded - | t.pallet_proxy.pallet.Event.ProxyRemoved + | t.types.pallet_proxy.pallet.Event.ProxyExecuted + | t.types.pallet_proxy.pallet.Event.PureCreated + | t.types.pallet_proxy.pallet.Event.Announced + | t.types.pallet_proxy.pallet.Event.ProxyAdded + | t.types.pallet_proxy.pallet.Event.ProxyRemoved export namespace Event { /** A proxy was executed correctly, with the given. */ export interface ProxyExecuted { type: "ProxyExecuted" - result: null | C.ChainError + result: null | C.ChainError } /** * A pure account has been created by new proxy with given @@ -424,38 +424,38 @@ export namespace Event { */ export interface PureCreated { type: "PureCreated" - pure: t.sp_core.crypto.AccountId32 - who: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - disambiguation_index: t.u16 + pure: t.types.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + disambiguation_index: t.types.u16 } /** An announcement was placed to make a call in the future. */ export interface Announced { type: "Announced" - real: t.sp_core.crypto.AccountId32 - proxy: t.sp_core.crypto.AccountId32 - call_hash: t.primitive_types.H256 + real: t.types.sp_core.crypto.AccountId32 + proxy: t.types.sp_core.crypto.AccountId32 + call_hash: t.types.primitive_types.H256 } /** A proxy was added. */ export interface ProxyAdded { type: "ProxyAdded" - delegator: t.sp_core.crypto.AccountId32 - delegatee: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegator: t.types.sp_core.crypto.AccountId32 + delegatee: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** A proxy was removed. */ export interface ProxyRemoved { type: "ProxyRemoved" - delegator: t.sp_core.crypto.AccountId32 - delegatee: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegator: t.types.sp_core.crypto.AccountId32 + delegatee: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** A proxy was executed correctly, with the given. */ export function ProxyExecuted( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyExecuted { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyExecuted { return { type: "ProxyExecuted", ...value } } /** @@ -463,26 +463,26 @@ export namespace Event { * disambiguation index and proxy type. */ export function PureCreated( - value: Omit, - ): t.pallet_proxy.pallet.Event.PureCreated { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.PureCreated { return { type: "PureCreated", ...value } } /** An announcement was placed to make a call in the future. */ export function Announced( - value: Omit, - ): t.pallet_proxy.pallet.Event.Announced { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.Announced { return { type: "Announced", ...value } } /** A proxy was added. */ export function ProxyAdded( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyAdded { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyAdded { return { type: "ProxyAdded", ...value } } /** A proxy was removed. */ export function ProxyRemoved( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyRemoved { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyRemoved { return { type: "ProxyRemoved", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_scheduler/mod.ts b/codegen/_output/kusama/types/pallet_scheduler/mod.ts new file mode 100644 index 000000000..6aa7c8d49 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_scheduler/mod.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $scheduled: $.Codec = _codec.$179 + +export interface Scheduled { + maybe_id: Uint8Array | undefined + priority: t.types.u8 + call: t.types.frame_support.traits.preimages.Bounded + maybe_periodic: [t.types.u32, t.types.u32] | undefined + origin: t.types.polkadot_runtime.OriginCaller +} + +export function Scheduled(value: t.types.pallet_scheduler.Scheduled) { + return value +} diff --git a/codegen/_output/kusama/pallet_scheduler/pallet.ts b/codegen/_output/kusama/types/pallet_scheduler/pallet.ts similarity index 52% rename from codegen/_output/kusama/pallet_scheduler/pallet.ts rename to codegen/_output/kusama/types/pallet_scheduler/pallet.ts index f960ab872..407f45522 100644 --- a/codegen/_output/kusama/pallet_scheduler/pallet.ts +++ b/codegen/_output/kusama/types/pallet_scheduler/pallet.ts @@ -1,44 +1,44 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$182 +export const $call: $.Codec = _codec.$182 -export const $error: $.Codec = _codec.$450 +export const $error: $.Codec = _codec.$450 -export const $event: $.Codec = _codec.$29 +export const $event: $.Codec = _codec.$29 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_scheduler.pallet.Call.schedule - | t.pallet_scheduler.pallet.Call.cancel - | t.pallet_scheduler.pallet.Call.schedule_named - | t.pallet_scheduler.pallet.Call.cancel_named - | t.pallet_scheduler.pallet.Call.schedule_after - | t.pallet_scheduler.pallet.Call.schedule_named_after + | t.types.pallet_scheduler.pallet.Call.schedule + | t.types.pallet_scheduler.pallet.Call.cancel + | t.types.pallet_scheduler.pallet.Call.schedule_named + | t.types.pallet_scheduler.pallet.Call.cancel_named + | t.types.pallet_scheduler.pallet.Call.schedule_after + | t.types.pallet_scheduler.pallet.Call.schedule_named_after export namespace Call { /** Anonymously schedule a task. */ export interface schedule { type: "schedule" - when: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + when: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Cancel an anonymously scheduled task. */ export interface cancel { type: "cancel" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Schedule a named task. */ export interface schedule_named { type: "schedule_named" id: Uint8Array - when: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + when: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Cancel a named scheduled task. */ export interface cancel_named { @@ -54,10 +54,10 @@ export namespace Call { */ export interface schedule_after { type: "schedule_after" - after: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + after: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** * Schedule a named task after a delay. @@ -69,33 +69,33 @@ export namespace Call { export interface schedule_named_after { type: "schedule_named_after" id: Uint8Array - after: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + after: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Anonymously schedule a task. */ export function schedule( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule { return { type: "schedule", ...value } } /** Cancel an anonymously scheduled task. */ export function cancel( - value: Omit, - ): t.pallet_scheduler.pallet.Call.cancel { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.cancel { return { type: "cancel", ...value } } /** Schedule a named task. */ export function schedule_named( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_named { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_named { return { type: "schedule_named", ...value } } /** Cancel a named scheduled task. */ export function cancel_named( - value: Omit, - ): t.pallet_scheduler.pallet.Call.cancel_named { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.cancel_named { return { type: "cancel_named", ...value } } /** @@ -106,8 +106,8 @@ export namespace Call { * # */ export function schedule_after( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_after { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_after { return { type: "schedule_after", ...value } } /** @@ -118,8 +118,8 @@ export namespace Call { * # */ export function schedule_named_after( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_named_after { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_named_after { return { type: "schedule_named_after", ...value } } } @@ -134,84 +134,84 @@ export type Error = /** Events type. */ export type Event = - | t.pallet_scheduler.pallet.Event.Scheduled - | t.pallet_scheduler.pallet.Event.Canceled - | t.pallet_scheduler.pallet.Event.Dispatched - | t.pallet_scheduler.pallet.Event.CallUnavailable - | t.pallet_scheduler.pallet.Event.PeriodicFailed - | t.pallet_scheduler.pallet.Event.PermanentlyOverweight + | t.types.pallet_scheduler.pallet.Event.Scheduled + | t.types.pallet_scheduler.pallet.Event.Canceled + | t.types.pallet_scheduler.pallet.Event.Dispatched + | t.types.pallet_scheduler.pallet.Event.CallUnavailable + | t.types.pallet_scheduler.pallet.Event.PeriodicFailed + | t.types.pallet_scheduler.pallet.Event.PermanentlyOverweight export namespace Event { /** Scheduled some task. */ export interface Scheduled { type: "Scheduled" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Canceled some task. */ export interface Canceled { type: "Canceled" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Dispatched some task. */ export interface Dispatched { type: "Dispatched" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined - result: null | C.ChainError + result: null | C.ChainError } /** The call for the provided hash was not found so the task has been aborted. */ export interface CallUnavailable { type: "CallUnavailable" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** The given task was unable to be renewed since the agenda is full at that block. */ export interface PeriodicFailed { type: "PeriodicFailed" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** The given task can never be executed since it is overweight. */ export interface PermanentlyOverweight { type: "PermanentlyOverweight" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** Scheduled some task. */ export function Scheduled( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Scheduled { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Scheduled { return { type: "Scheduled", ...value } } /** Canceled some task. */ export function Canceled( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Canceled { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Canceled { return { type: "Canceled", ...value } } /** Dispatched some task. */ export function Dispatched( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Dispatched { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Dispatched { return { type: "Dispatched", ...value } } /** The call for the provided hash was not found so the task has been aborted. */ export function CallUnavailable( - value: Omit, - ): t.pallet_scheduler.pallet.Event.CallUnavailable { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.CallUnavailable { return { type: "CallUnavailable", ...value } } /** The given task was unable to be renewed since the agenda is full at that block. */ export function PeriodicFailed( - value: Omit, - ): t.pallet_scheduler.pallet.Event.PeriodicFailed { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.PeriodicFailed { return { type: "PeriodicFailed", ...value } } /** The given task can never be executed since it is overweight. */ export function PermanentlyOverweight( - value: Omit, - ): t.pallet_scheduler.pallet.Event.PermanentlyOverweight { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.PermanentlyOverweight { return { type: "PermanentlyOverweight", ...value } } } diff --git a/codegen/_output/kusama/pallet_session/mod.ts b/codegen/_output/kusama/types/pallet_session/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_session/mod.ts rename to codegen/_output/kusama/types/pallet_session/mod.ts diff --git a/codegen/_output/rococo/pallet_session/pallet.ts b/codegen/_output/kusama/types/pallet_session/pallet.ts similarity index 80% rename from codegen/_output/rococo/pallet_session/pallet.ts rename to codegen/_output/kusama/types/pallet_session/pallet.ts index ef7524106..f8f962a9f 100644 --- a/codegen/_output/rococo/pallet_session/pallet.ts +++ b/codegen/_output/kusama/types/pallet_session/pallet.ts @@ -1,15 +1,17 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$211 +export const $call: $.Codec = _codec.$211 -export const $error: $.Codec = _codec.$515 +export const $error: $.Codec = _codec.$515 -export const $event: $.Codec = _codec.$46 +export const $event: $.Codec = _codec.$46 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_session.pallet.Call.set_keys | t.pallet_session.pallet.Call.purge_keys +export type Call = + | t.types.pallet_session.pallet.Call.set_keys + | t.types.pallet_session.pallet.Call.purge_keys export namespace Call { /** * Sets the session key(s) of the function caller to `keys`. @@ -29,7 +31,7 @@ export namespace Call { */ export interface set_keys { type: "set_keys" - keys: t.polkadot_runtime.SessionKeys + keys: t.types.polkadot_runtime.SessionKeys proof: Uint8Array } /** @@ -70,8 +72,8 @@ export namespace Call { * # */ export function set_keys( - value: Omit, - ): t.pallet_session.pallet.Call.set_keys { + value: Omit, + ): t.types.pallet_session.pallet.Call.set_keys { return { type: "set_keys", ...value } } /** @@ -92,7 +94,7 @@ export namespace Call { * - DbWrites per key id: `KeyOwner` * # */ - export function purge_keys(): t.pallet_session.pallet.Call.purge_keys { + export function purge_keys(): t.types.pallet_session.pallet.Call.purge_keys { return { type: "purge_keys" } } } @@ -106,7 +108,7 @@ export type Error = | "NoAccount" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.pallet_session.pallet.Event.NewSession +export type Event = t.types.pallet_session.pallet.Event.NewSession export namespace Event { /** * New session has happened. Note that the argument is the session index, not the @@ -114,15 +116,15 @@ export namespace Event { */ export interface NewSession { type: "NewSession" - session_index: t.u32 + session_index: t.types.u32 } /** * New session has happened. Note that the argument is the session index, not the * block number as the type might suggest. */ export function NewSession( - value: Omit, - ): t.pallet_session.pallet.Event.NewSession { + value: Omit, + ): t.types.pallet_session.pallet.Event.NewSession { return { type: "NewSession", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_staking/mod.ts b/codegen/_output/kusama/types/pallet_staking/mod.ts new file mode 100644 index 000000000..8f1e68cf8 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_staking/mod.ts @@ -0,0 +1,177 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet/mod.ts" +export * as slashing from "./slashing.ts" + +export const $activeEraInfo: $.Codec = _codec.$492 + +export const $eraRewardPoints: $.Codec = _codec.$495 + +export const $exposure: $.Codec = _codec.$57 + +export const $forcing: $.Codec = _codec.$499 + +export const $individualExposure: $.Codec = _codec.$60 + +export const $nominations: $.Codec = _codec.$490 + +export const $releases: $.Codec = _codec.$507 + +export const $rewardDestination: $.Codec = _codec.$203 + +export const $stakingLedger: $.Codec = _codec.$485 + +export const $unappliedSlash: $.Codec = _codec.$501 + +export const $unlockChunk: $.Codec = _codec.$487 + +export const $validatorPrefs: $.Codec = _codec.$40 + +export interface ActiveEraInfo { + index: t.types.u32 + start: t.types.u64 | undefined +} + +export function ActiveEraInfo(value: t.types.pallet_staking.ActiveEraInfo) { + return value +} + +export interface EraRewardPoints { + total: t.types.u32 + individual: Map +} + +export function EraRewardPoints(value: t.types.pallet_staking.EraRewardPoints) { + return value +} + +export interface Exposure { + total: t.Compact + own: t.Compact + others: Array +} + +export function Exposure(value: t.types.pallet_staking.Exposure) { + return value +} + +export type Forcing = "NotForcing" | "ForceNew" | "ForceNone" | "ForceAlways" + +export interface IndividualExposure { + who: t.types.sp_core.crypto.AccountId32 + value: t.Compact +} + +export function IndividualExposure(value: t.types.pallet_staking.IndividualExposure) { + return value +} + +export interface Nominations { + targets: Array + submitted_in: t.types.u32 + suppressed: boolean +} + +export function Nominations(value: t.types.pallet_staking.Nominations) { + return value +} + +export type Releases = + | "V1_0_0Ancient" + | "V2_0_0" + | "V3_0_0" + | "V4_0_0" + | "V5_0_0" + | "V6_0_0" + | "V7_0_0" + | "V8_0_0" + | "V9_0_0" + | "V10_0_0" + | "V11_0_0" + | "V12_0_0" + +export type RewardDestination = + | t.types.pallet_staking.RewardDestination.Staked + | t.types.pallet_staking.RewardDestination.Stash + | t.types.pallet_staking.RewardDestination.Controller + | t.types.pallet_staking.RewardDestination.Account + | t.types.pallet_staking.RewardDestination.None +export namespace RewardDestination { + export interface Staked { + type: "Staked" + } + export interface Stash { + type: "Stash" + } + export interface Controller { + type: "Controller" + } + export interface Account { + type: "Account" + value: t.types.sp_core.crypto.AccountId32 + } + export interface None { + type: "None" + } + export function Staked(): t.types.pallet_staking.RewardDestination.Staked { + return { type: "Staked" } + } + export function Stash(): t.types.pallet_staking.RewardDestination.Stash { + return { type: "Stash" } + } + export function Controller(): t.types.pallet_staking.RewardDestination.Controller { + return { type: "Controller" } + } + export function Account( + value: t.types.pallet_staking.RewardDestination.Account["value"], + ): t.types.pallet_staking.RewardDestination.Account { + return { type: "Account", value } + } + export function None(): t.types.pallet_staking.RewardDestination.None { + return { type: "None" } + } +} + +export interface StakingLedger { + stash: t.types.sp_core.crypto.AccountId32 + total: t.Compact + active: t.Compact + unlocking: Array + claimed_rewards: Array +} + +export function StakingLedger(value: t.types.pallet_staking.StakingLedger) { + return value +} + +export interface UnappliedSlash { + validator: t.types.sp_core.crypto.AccountId32 + own: t.types.u128 + others: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> + reporters: Array + payout: t.types.u128 +} + +export function UnappliedSlash(value: t.types.pallet_staking.UnappliedSlash) { + return value +} + +export interface UnlockChunk { + value: t.Compact + era: t.Compact +} + +export function UnlockChunk(value: t.types.pallet_staking.UnlockChunk) { + return value +} + +export interface ValidatorPrefs { + commission: t.Compact + blocked: boolean +} + +export function ValidatorPrefs(value: t.types.pallet_staking.ValidatorPrefs) { + return value +} diff --git a/codegen/_output/kusama/pallet_staking/pallet/mod.ts b/codegen/_output/kusama/types/pallet_staking/pallet/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_staking/pallet/mod.ts rename to codegen/_output/kusama/types/pallet_staking/pallet/mod.ts diff --git a/codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts b/codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts rename to codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts diff --git a/codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts b/codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts new file mode 100644 index 000000000..724ded6e5 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts @@ -0,0 +1,69 @@ +import { $ } from "../../../../../../capi.ts" +import * as _codec from "../../../../../../codecs.ts" +import type * as t from "../../../../../../mod.ts" + +export const $perbill: $.Codec< + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill +> = _codec.$210 + +export const $percent: $.Codec< + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent +> = _codec.$209 + +export type Perbill = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove +export namespace Perbill { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_arithmetic.per_things.Perbill + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop { + return { type: "Noop" } + } + export function Set( + value: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove { + return { type: "Remove" } + } +} + +export type Percent = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove +export namespace Percent { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_arithmetic.per_things.Percent + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop { + return { type: "Noop" } + } + export function Set( + value: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts b/codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts new file mode 100644 index 000000000..bfc666f9b --- /dev/null +++ b/codegen/_output/kusama/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export * as $$sp_arithmetic from "./$$sp_arithmetic/mod.ts" + +export const $$$u128: $.Codec = _codec.$207 + +export const $$$u32: $.Codec = _codec.$208 + +export type $$u128 = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove +export namespace $$u128 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u128 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove { + return { type: "Remove" } + } +} + +export type $$u32 = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove +export namespace $$u32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/kusama/pallet_staking/pallet/pallet/mod.ts b/codegen/_output/kusama/types/pallet_staking/pallet/pallet/mod.ts similarity index 76% rename from codegen/_output/kusama/pallet_staking/pallet/pallet/mod.ts rename to codegen/_output/kusama/types/pallet_staking/pallet/pallet/mod.ts index 0e0dd4bc3..14378b453 100644 --- a/codegen/_output/kusama/pallet_staking/pallet/pallet/mod.ts +++ b/codegen/_output/kusama/types/pallet_staking/pallet/pallet/mod.ts @@ -1,42 +1,42 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" export * as ConfigOp from "./ConfigOp/mod.ts" -export const $call: $.Codec = _codec.$202 +export const $call: $.Codec = _codec.$202 -export const $error: $.Codec = _codec.$508 +export const $error: $.Codec = _codec.$508 -export const $event: $.Codec = _codec.$39 +export const $event: $.Codec = _codec.$39 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_staking.pallet.pallet.Call.bond - | t.pallet_staking.pallet.pallet.Call.bond_extra - | t.pallet_staking.pallet.pallet.Call.unbond - | t.pallet_staking.pallet.pallet.Call.withdraw_unbonded - | t.pallet_staking.pallet.pallet.Call.validate - | t.pallet_staking.pallet.pallet.Call.nominate - | t.pallet_staking.pallet.pallet.Call.chill - | t.pallet_staking.pallet.pallet.Call.set_payee - | t.pallet_staking.pallet.pallet.Call.set_controller - | t.pallet_staking.pallet.pallet.Call.set_validator_count - | t.pallet_staking.pallet.pallet.Call.increase_validator_count - | t.pallet_staking.pallet.pallet.Call.scale_validator_count - | t.pallet_staking.pallet.pallet.Call.force_no_eras - | t.pallet_staking.pallet.pallet.Call.force_new_era - | t.pallet_staking.pallet.pallet.Call.set_invulnerables - | t.pallet_staking.pallet.pallet.Call.force_unstake - | t.pallet_staking.pallet.pallet.Call.force_new_era_always - | t.pallet_staking.pallet.pallet.Call.cancel_deferred_slash - | t.pallet_staking.pallet.pallet.Call.payout_stakers - | t.pallet_staking.pallet.pallet.Call.rebond - | t.pallet_staking.pallet.pallet.Call.reap_stash - | t.pallet_staking.pallet.pallet.Call.kick - | t.pallet_staking.pallet.pallet.Call.set_staking_configs - | t.pallet_staking.pallet.pallet.Call.chill_other - | t.pallet_staking.pallet.pallet.Call.force_apply_min_commission + | t.types.pallet_staking.pallet.pallet.Call.bond + | t.types.pallet_staking.pallet.pallet.Call.bond_extra + | t.types.pallet_staking.pallet.pallet.Call.unbond + | t.types.pallet_staking.pallet.pallet.Call.withdraw_unbonded + | t.types.pallet_staking.pallet.pallet.Call.validate + | t.types.pallet_staking.pallet.pallet.Call.nominate + | t.types.pallet_staking.pallet.pallet.Call.chill + | t.types.pallet_staking.pallet.pallet.Call.set_payee + | t.types.pallet_staking.pallet.pallet.Call.set_controller + | t.types.pallet_staking.pallet.pallet.Call.set_validator_count + | t.types.pallet_staking.pallet.pallet.Call.increase_validator_count + | t.types.pallet_staking.pallet.pallet.Call.scale_validator_count + | t.types.pallet_staking.pallet.pallet.Call.force_no_eras + | t.types.pallet_staking.pallet.pallet.Call.force_new_era + | t.types.pallet_staking.pallet.pallet.Call.set_invulnerables + | t.types.pallet_staking.pallet.pallet.Call.force_unstake + | t.types.pallet_staking.pallet.pallet.Call.force_new_era_always + | t.types.pallet_staking.pallet.pallet.Call.cancel_deferred_slash + | t.types.pallet_staking.pallet.pallet.Call.payout_stakers + | t.types.pallet_staking.pallet.pallet.Call.rebond + | t.types.pallet_staking.pallet.pallet.Call.reap_stash + | t.types.pallet_staking.pallet.pallet.Call.kick + | t.types.pallet_staking.pallet.pallet.Call.set_staking_configs + | t.types.pallet_staking.pallet.pallet.Call.chill_other + | t.types.pallet_staking.pallet.pallet.Call.force_apply_min_commission export namespace Call { /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will @@ -59,9 +59,9 @@ export namespace Call { */ export interface bond { type: "bond" - controller: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact - payee: t.pallet_staking.RewardDestination + controller: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact + payee: t.types.pallet_staking.RewardDestination } /** * Add some extra amount that have appeared in the stash `free_balance` into the balance up @@ -82,7 +82,7 @@ export namespace Call { */ export interface bond_extra { type: "bond_extra" - max_additional: t.Compact + max_additional: t.Compact } /** * Schedule a portion of the stash to be unlocked ready for transfer out after the bond @@ -107,7 +107,7 @@ export namespace Call { */ export interface unbond { type: "unbond" - value: t.Compact + value: t.Compact } /** * Remove any unlocked chunks from the `unlocking` queue from our management. @@ -128,7 +128,7 @@ export namespace Call { */ export interface withdraw_unbonded { type: "withdraw_unbonded" - num_slashing_spans: t.u32 + num_slashing_spans: t.types.u32 } /** * Declare the desire to validate for the origin controller. @@ -139,7 +139,7 @@ export namespace Call { */ export interface validate { type: "validate" - prefs: t.pallet_staking.ValidatorPrefs + prefs: t.types.pallet_staking.ValidatorPrefs } /** * Declare the desire to nominate `targets` for the origin controller. @@ -156,7 +156,7 @@ export namespace Call { */ export interface nominate { type: "nominate" - targets: Array + targets: Array } /** * Declare no desire to either validate or nominate. @@ -194,7 +194,7 @@ export namespace Call { */ export interface set_payee { type: "set_payee" - payee: t.pallet_staking.RewardDestination + payee: t.types.pallet_staking.RewardDestination } /** * (Re-)set the controller of a stash. @@ -216,7 +216,7 @@ export namespace Call { */ export interface set_controller { type: "set_controller" - controller: t.sp_runtime.multiaddress.MultiAddress + controller: t.types.sp_runtime.multiaddress.MultiAddress } /** * Sets the ideal number of validators. @@ -230,7 +230,7 @@ export namespace Call { */ export interface set_validator_count { type: "set_validator_count" - new: t.Compact + new: t.Compact } /** * Increments the ideal number of validators. @@ -243,7 +243,7 @@ export namespace Call { */ export interface increase_validator_count { type: "increase_validator_count" - additional: t.Compact + additional: t.Compact } /** * Scale up the ideal number of validators by a factor. @@ -256,7 +256,7 @@ export namespace Call { */ export interface scale_validator_count { type: "scale_validator_count" - factor: t.sp_arithmetic.per_things.Percent + factor: t.types.sp_arithmetic.per_things.Percent } /** * Force there to be no new eras indefinitely. @@ -306,7 +306,7 @@ export namespace Call { */ export interface set_invulnerables { type: "set_invulnerables" - invulnerables: Array + invulnerables: Array } /** * Force a current staker to become completely unstaked, immediately. @@ -315,8 +315,8 @@ export namespace Call { */ export interface force_unstake { type: "force_unstake" - stash: t.sp_core.crypto.AccountId32 - num_slashing_spans: t.u32 + stash: t.types.sp_core.crypto.AccountId32 + num_slashing_spans: t.types.u32 } /** * Force there to be a new era at the end of sessions indefinitely. @@ -341,8 +341,8 @@ export namespace Call { */ export interface cancel_deferred_slash { type: "cancel_deferred_slash" - era: t.u32 - slash_indices: Array + era: t.types.u32 + slash_indices: Array } /** * Pay out all the stakers behind a single validator for a single era. @@ -369,8 +369,8 @@ export namespace Call { */ export interface payout_stakers { type: "payout_stakers" - validator_stash: t.sp_core.crypto.AccountId32 - era: t.u32 + validator_stash: t.types.sp_core.crypto.AccountId32 + era: t.types.u32 } /** * Rebond a portion of the stash scheduled to be unlocked. @@ -385,7 +385,7 @@ export namespace Call { */ export interface rebond { type: "rebond" - value: t.Compact + value: t.Compact } /** * Remove all data structures concerning a staker/stash once it is at a state where it can @@ -403,8 +403,8 @@ export namespace Call { */ export interface reap_stash { type: "reap_stash" - stash: t.sp_core.crypto.AccountId32 - num_slashing_spans: t.u32 + stash: t.types.sp_core.crypto.AccountId32 + num_slashing_spans: t.types.u32 } /** * Remove the given nominations from the calling validator. @@ -421,7 +421,7 @@ export namespace Call { */ export interface kick { type: "kick" - who: Array + who: Array } /** * Update the various staking configurations . @@ -444,12 +444,13 @@ export namespace Call { */ export interface set_staking_configs { type: "set_staking_configs" - min_nominator_bond: t.pallet_staking.pallet.pallet.ConfigOp.$$u128 - min_validator_bond: t.pallet_staking.pallet.pallet.ConfigOp.$$u128 - max_nominator_count: t.pallet_staking.pallet.pallet.ConfigOp.$$u32 - max_validator_count: t.pallet_staking.pallet.pallet.ConfigOp.$$u32 - chill_threshold: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent - min_commission: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill + min_nominator_bond: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128 + min_validator_bond: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128 + max_nominator_count: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32 + max_validator_count: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32 + chill_threshold: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent + min_commission: t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill } /** * Declare a `controller` to stop participating as either a validator or nominator. @@ -481,7 +482,7 @@ export namespace Call { */ export interface chill_other { type: "chill_other" - controller: t.sp_core.crypto.AccountId32 + controller: t.types.sp_core.crypto.AccountId32 } /** * Force a validator to have at least the minimum commission. This will not affect a @@ -490,7 +491,7 @@ export namespace Call { */ export interface force_apply_min_commission { type: "force_apply_min_commission" - validator_stash: t.sp_core.crypto.AccountId32 + validator_stash: t.types.sp_core.crypto.AccountId32 } /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will @@ -512,8 +513,8 @@ export namespace Call { * # */ export function bond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.bond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.bond { return { type: "bond", ...value } } /** @@ -534,8 +535,8 @@ export namespace Call { * # */ export function bond_extra( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.bond_extra { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.bond_extra { return { type: "bond_extra", ...value } } /** @@ -560,8 +561,8 @@ export namespace Call { * See also [`Call::withdraw_unbonded`]. */ export function unbond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.unbond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.unbond { return { type: "unbond", ...value } } /** @@ -582,8 +583,8 @@ export namespace Call { * # */ export function withdraw_unbonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.withdraw_unbonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.withdraw_unbonded { return { type: "withdraw_unbonded", ...value } } /** @@ -594,8 +595,8 @@ export namespace Call { * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ export function validate( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.validate { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.validate { return { type: "validate", ...value } } /** @@ -612,8 +613,8 @@ export namespace Call { * # */ export function nominate( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.nominate { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.nominate { return { type: "nominate", ...value } } /** @@ -629,7 +630,7 @@ export namespace Call { * - Writes are limited to the `origin` account key. * # */ - export function chill(): t.pallet_staking.pallet.pallet.Call.chill { + export function chill(): t.types.pallet_staking.pallet.pallet.Call.chill { return { type: "chill" } } /** @@ -651,8 +652,8 @@ export namespace Call { * # */ export function set_payee( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_payee { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_payee { return { type: "set_payee", ...value } } /** @@ -674,8 +675,8 @@ export namespace Call { * # */ export function set_controller( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_controller { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_controller { return { type: "set_controller", ...value } } /** @@ -689,8 +690,8 @@ export namespace Call { * # */ export function set_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_validator_count { return { type: "set_validator_count", ...value } } /** @@ -703,8 +704,8 @@ export namespace Call { * # */ export function increase_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.increase_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.increase_validator_count { return { type: "increase_validator_count", ...value } } /** @@ -717,8 +718,8 @@ export namespace Call { * # */ export function scale_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.scale_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.scale_validator_count { return { type: "scale_validator_count", ...value } } /** @@ -738,7 +739,7 @@ export namespace Call { * - Write: ForceEra * # */ - export function force_no_eras(): t.pallet_staking.pallet.pallet.Call.force_no_eras { + export function force_no_eras(): t.types.pallet_staking.pallet.pallet.Call.force_no_eras { return { type: "force_no_eras" } } /** @@ -759,7 +760,7 @@ export namespace Call { * - Write ForceEra * # */ - export function force_new_era(): t.pallet_staking.pallet.pallet.Call.force_new_era { + export function force_new_era(): t.types.pallet_staking.pallet.pallet.Call.force_new_era { return { type: "force_new_era" } } /** @@ -768,8 +769,8 @@ export namespace Call { * The dispatch origin must be Root. */ export function set_invulnerables( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_invulnerables { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_invulnerables { return { type: "set_invulnerables", ...value } } /** @@ -778,8 +779,8 @@ export namespace Call { * The dispatch origin must be Root. */ export function force_unstake( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.force_unstake { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.force_unstake { return { type: "force_unstake", ...value } } /** @@ -793,7 +794,7 @@ export namespace Call { * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ - export function force_new_era_always(): t.pallet_staking.pallet.pallet.Call.force_new_era_always { + export function force_new_era_always(): t.types.pallet_staking.pallet.pallet.Call.force_new_era_always { return { type: "force_new_era_always" } } /** @@ -804,8 +805,8 @@ export namespace Call { * Parameters: era and indices of the slashes for that era to kill. */ export function cancel_deferred_slash( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.cancel_deferred_slash { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.cancel_deferred_slash { return { type: "cancel_deferred_slash", ...value } } /** @@ -832,8 +833,8 @@ export namespace Call { * # */ export function payout_stakers( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.payout_stakers { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.payout_stakers { return { type: "payout_stakers", ...value } } /** @@ -848,8 +849,8 @@ export namespace Call { * # */ export function rebond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.rebond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.rebond { return { type: "rebond", ...value } } /** @@ -867,8 +868,8 @@ export namespace Call { * Refunds the transaction fees upon successful execution. */ export function reap_stash( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.reap_stash { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.reap_stash { return { type: "reap_stash", ...value } } /** @@ -885,8 +886,8 @@ export namespace Call { * block any further nominations. */ export function kick( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.kick { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.kick { return { type: "kick", ...value } } /** @@ -909,8 +910,8 @@ export namespace Call { * to kick people under the new limits, `chill_other` should be called. */ export function set_staking_configs( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_staking_configs { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_staking_configs { return { type: "set_staking_configs", ...value } } /** @@ -942,8 +943,8 @@ export namespace Call { * who do not satisfy these requirements. */ export function chill_other( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.chill_other { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.chill_other { return { type: "chill_other", ...value } } /** @@ -952,8 +953,8 @@ export namespace Call { * can call this. */ export function force_apply_min_commission( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.force_apply_min_commission { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.force_apply_min_commission { return { type: "force_apply_min_commission", ...value } } } @@ -988,19 +989,19 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_staking.pallet.pallet.Event.EraPaid - | t.pallet_staking.pallet.pallet.Event.Rewarded - | t.pallet_staking.pallet.pallet.Event.Slashed - | t.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded - | t.pallet_staking.pallet.pallet.Event.StakersElected - | t.pallet_staking.pallet.pallet.Event.Bonded - | t.pallet_staking.pallet.pallet.Event.Unbonded - | t.pallet_staking.pallet.pallet.Event.Withdrawn - | t.pallet_staking.pallet.pallet.Event.Kicked - | t.pallet_staking.pallet.pallet.Event.StakingElectionFailed - | t.pallet_staking.pallet.pallet.Event.Chilled - | t.pallet_staking.pallet.pallet.Event.PayoutStarted - | t.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet + | t.types.pallet_staking.pallet.pallet.Event.EraPaid + | t.types.pallet_staking.pallet.pallet.Event.Rewarded + | t.types.pallet_staking.pallet.pallet.Event.Slashed + | t.types.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded + | t.types.pallet_staking.pallet.pallet.Event.StakersElected + | t.types.pallet_staking.pallet.pallet.Event.Bonded + | t.types.pallet_staking.pallet.pallet.Event.Unbonded + | t.types.pallet_staking.pallet.pallet.Event.Withdrawn + | t.types.pallet_staking.pallet.pallet.Event.Kicked + | t.types.pallet_staking.pallet.pallet.Event.StakingElectionFailed + | t.types.pallet_staking.pallet.pallet.Event.Chilled + | t.types.pallet_staking.pallet.pallet.Event.PayoutStarted + | t.types.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet export namespace Event { /** * The era payout has been set; the first balance is the validator-payout; the second is @@ -1008,21 +1009,21 @@ export namespace Event { */ export interface EraPaid { type: "EraPaid" - era_index: t.u32 - validator_payout: t.u128 - remainder: t.u128 + era_index: t.types.u32 + validator_payout: t.types.u128 + remainder: t.types.u128 } /** The nominator has been rewarded by this amount. */ export interface Rewarded { type: "Rewarded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** One staker (and potentially its nominators) has been slashed by the given amount. */ export interface Slashed { type: "Slashed" - staker: t.sp_core.crypto.AccountId32 - amount: t.u128 + staker: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * An old slashing report from a prior era was discarded because it could @@ -1030,7 +1031,7 @@ export namespace Event { */ export interface OldSlashingReportDiscarded { type: "OldSlashingReportDiscarded" - session_index: t.u32 + session_index: t.types.u32 } /** A new set of stakers was elected. */ export interface StakersElected { @@ -1044,14 +1045,14 @@ export namespace Event { */ export interface Bonded { type: "Bonded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** An account has unbonded this amount. */ export interface Unbonded { type: "Unbonded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` @@ -1059,14 +1060,14 @@ export namespace Event { */ export interface Withdrawn { type: "Withdrawn" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A nominator has been kicked from a validator. */ export interface Kicked { type: "Kicked" - nominator: t.sp_core.crypto.AccountId32 - stash: t.sp_core.crypto.AccountId32 + nominator: t.types.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** The election failed. No new era is planned. */ export interface StakingElectionFailed { @@ -1075,39 +1076,39 @@ export namespace Event { /** An account has stopped participating as either a validator or nominator. */ export interface Chilled { type: "Chilled" - stash: t.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** The stakers' rewards are getting paid. */ export interface PayoutStarted { type: "PayoutStarted" - era_index: t.u32 - validator_stash: t.sp_core.crypto.AccountId32 + era_index: t.types.u32 + validator_stash: t.types.sp_core.crypto.AccountId32 } /** A validator has set their preferences. */ export interface ValidatorPrefsSet { type: "ValidatorPrefsSet" - stash: t.sp_core.crypto.AccountId32 - prefs: t.pallet_staking.ValidatorPrefs + stash: t.types.sp_core.crypto.AccountId32 + prefs: t.types.pallet_staking.ValidatorPrefs } /** * The era payout has been set; the first balance is the validator-payout; the second is * the remainder from the maximum amount of reward. */ export function EraPaid( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.EraPaid { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.EraPaid { return { type: "EraPaid", ...value } } /** The nominator has been rewarded by this amount. */ export function Rewarded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Rewarded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Rewarded { return { type: "Rewarded", ...value } } /** One staker (and potentially its nominators) has been slashed by the given amount. */ export function Slashed( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** @@ -1115,12 +1116,12 @@ export namespace Event { * not be processed. */ export function OldSlashingReportDiscarded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded { return { type: "OldSlashingReportDiscarded", ...value } } /** A new set of stakers was elected. */ - export function StakersElected(): t.pallet_staking.pallet.pallet.Event.StakersElected { + export function StakersElected(): t.types.pallet_staking.pallet.pallet.Event.StakersElected { return { type: "StakersElected" } } /** @@ -1130,14 +1131,14 @@ export namespace Event { * it will not be emitted for staking rewards when they are added to stake. */ export function Bonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Bonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Bonded { return { type: "Bonded", ...value } } /** An account has unbonded this amount. */ export function Unbonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Unbonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Unbonded { return { type: "Unbonded", ...value } } /** @@ -1145,36 +1146,36 @@ export namespace Event { * from the unlocking queue. */ export function Withdrawn( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Withdrawn { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Withdrawn { return { type: "Withdrawn", ...value } } /** A nominator has been kicked from a validator. */ export function Kicked( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Kicked { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Kicked { return { type: "Kicked", ...value } } /** The election failed. No new era is planned. */ - export function StakingElectionFailed(): t.pallet_staking.pallet.pallet.Event.StakingElectionFailed { + export function StakingElectionFailed(): t.types.pallet_staking.pallet.pallet.Event.StakingElectionFailed { return { type: "StakingElectionFailed" } } /** An account has stopped participating as either a validator or nominator. */ export function Chilled( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Chilled { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Chilled { return { type: "Chilled", ...value } } /** The stakers' rewards are getting paid. */ export function PayoutStarted( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.PayoutStarted { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.PayoutStarted { return { type: "PayoutStarted", ...value } } /** A validator has set their preferences. */ export function ValidatorPrefsSet( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet { return { type: "ValidatorPrefsSet", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_staking/slashing.ts b/codegen/_output/kusama/types/pallet_staking/slashing.ts new file mode 100644 index 000000000..a7b31d855 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_staking/slashing.ts @@ -0,0 +1,27 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $slashingSpans: $.Codec = _codec.$503 + +export const $spanRecord: $.Codec = _codec.$504 + +export interface SlashingSpans { + span_index: t.types.u32 + last_start: t.types.u32 + last_nonzero_slash: t.types.u32 + prior: Array +} + +export function SlashingSpans(value: t.types.pallet_staking.slashing.SlashingSpans) { + return value +} + +export interface SpanRecord { + slashed: t.types.u128 + paid_out: t.types.u128 +} + +export function SpanRecord(value: t.types.pallet_staking.slashing.SpanRecord) { + return value +} diff --git a/codegen/_output/kusama/pallet_timestamp/mod.ts b/codegen/_output/kusama/types/pallet_timestamp/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_timestamp/mod.ts rename to codegen/_output/kusama/types/pallet_timestamp/mod.ts diff --git a/codegen/_output/rococo/pallet_timestamp/pallet.ts b/codegen/_output/kusama/types/pallet_timestamp/pallet.ts similarity index 79% rename from codegen/_output/rococo/pallet_timestamp/pallet.ts rename to codegen/_output/kusama/types/pallet_timestamp/pallet.ts index 0130fc41e..ab76a88c7 100644 --- a/codegen/_output/rococo/pallet_timestamp/pallet.ts +++ b/codegen/_output/kusama/types/pallet_timestamp/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$195 +export const $call: $.Codec = _codec.$195 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_timestamp.pallet.Call.set +export type Call = t.types.pallet_timestamp.pallet.Call.set export namespace Call { /** * Set the current time. @@ -27,7 +27,7 @@ export namespace Call { */ export interface set { type: "set" - now: t.Compact + now: t.Compact } /** * Set the current time. @@ -48,8 +48,8 @@ export namespace Call { * # */ export function set( - value: Omit, - ): t.pallet_timestamp.pallet.Call.set { + value: Omit, + ): t.types.pallet_timestamp.pallet.Call.set { return { type: "set", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_tips/mod.ts b/codegen/_output/kusama/types/pallet_tips/mod.ts new file mode 100644 index 000000000..dd1c4a6fd --- /dev/null +++ b/codegen/_output/kusama/types/pallet_tips/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $openTip: $.Codec = _codec.$598 + +export interface OpenTip { + reason: t.types.primitive_types.H256 + who: t.types.sp_core.crypto.AccountId32 + finder: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + closes: t.types.u32 | undefined + tips: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> + finders_fee: boolean +} + +export function OpenTip(value: t.types.pallet_tips.OpenTip) { + return value +} diff --git a/codegen/_output/rococo/pallet_tips/pallet.ts b/codegen/_output/kusama/types/pallet_tips/pallet.ts similarity index 81% rename from codegen/_output/rococo/pallet_tips/pallet.ts rename to codegen/_output/kusama/types/pallet_tips/pallet.ts index 355e46651..5d9de5b29 100644 --- a/codegen/_output/rococo/pallet_tips/pallet.ts +++ b/codegen/_output/kusama/types/pallet_tips/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$309 +export const $call: $.Codec = _codec.$309 -export const $error: $.Codec = _codec.$599 +export const $error: $.Codec = _codec.$599 -export const $event: $.Codec = _codec.$85 +export const $event: $.Codec = _codec.$85 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_tips.pallet.Call.report_awesome - | t.pallet_tips.pallet.Call.retract_tip - | t.pallet_tips.pallet.Call.tip_new - | t.pallet_tips.pallet.Call.tip - | t.pallet_tips.pallet.Call.close_tip - | t.pallet_tips.pallet.Call.slash_tip + | t.types.pallet_tips.pallet.Call.report_awesome + | t.types.pallet_tips.pallet.Call.retract_tip + | t.types.pallet_tips.pallet.Call.tip_new + | t.types.pallet_tips.pallet.Call.tip + | t.types.pallet_tips.pallet.Call.close_tip + | t.types.pallet_tips.pallet.Call.slash_tip export namespace Call { /** * Report something `reason` that deserves a tip and claim any eventual the finder's fee. @@ -41,7 +41,7 @@ export namespace Call { export interface report_awesome { type: "report_awesome" reason: Uint8Array - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Retract a prior tip-report from `report_awesome`, and cancel the process of tipping. @@ -66,7 +66,7 @@ export namespace Call { */ export interface retract_tip { type: "retract_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Give a tip for something new; no finder's fee will be taken. @@ -95,8 +95,8 @@ export namespace Call { export interface tip_new { type: "tip_new" reason: Uint8Array - who: t.sp_runtime.multiaddress.MultiAddress - tip_value: t.Compact + who: t.types.sp_runtime.multiaddress.MultiAddress + tip_value: t.Compact } /** * Declare a tip value for an already-open tip. @@ -126,8 +126,8 @@ export namespace Call { */ export interface tip { type: "tip" - hash: t.primitive_types.H256 - tip_value: t.Compact + hash: t.types.primitive_types.H256 + tip_value: t.Compact } /** * Close and payout a tip. @@ -149,7 +149,7 @@ export namespace Call { */ export interface close_tip { type: "close_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Remove and slash an already-open tip. @@ -167,7 +167,7 @@ export namespace Call { */ export interface slash_tip { type: "slash_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Report something `reason` that deserves a tip and claim any eventual the finder's fee. @@ -191,8 +191,8 @@ export namespace Call { * # */ export function report_awesome( - value: Omit, - ): t.pallet_tips.pallet.Call.report_awesome { + value: Omit, + ): t.types.pallet_tips.pallet.Call.report_awesome { return { type: "report_awesome", ...value } } /** @@ -217,8 +217,8 @@ export namespace Call { * # */ export function retract_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.retract_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.retract_tip { return { type: "retract_tip", ...value } } /** @@ -246,8 +246,8 @@ export namespace Call { * # */ export function tip_new( - value: Omit, - ): t.pallet_tips.pallet.Call.tip_new { + value: Omit, + ): t.types.pallet_tips.pallet.Call.tip_new { return { type: "tip_new", ...value } } /** @@ -277,8 +277,8 @@ export namespace Call { * # */ export function tip( - value: Omit, - ): t.pallet_tips.pallet.Call.tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.tip { return { type: "tip", ...value } } /** @@ -300,8 +300,8 @@ export namespace Call { * # */ export function close_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.close_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.close_tip { return { type: "close_tip", ...value } } /** @@ -319,8 +319,8 @@ export namespace Call { * # */ export function slash_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.slash_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.slash_tip { return { type: "slash_tip", ...value } } } @@ -336,69 +336,69 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_tips.pallet.Event.NewTip - | t.pallet_tips.pallet.Event.TipClosing - | t.pallet_tips.pallet.Event.TipClosed - | t.pallet_tips.pallet.Event.TipRetracted - | t.pallet_tips.pallet.Event.TipSlashed + | t.types.pallet_tips.pallet.Event.NewTip + | t.types.pallet_tips.pallet.Event.TipClosing + | t.types.pallet_tips.pallet.Event.TipClosed + | t.types.pallet_tips.pallet.Event.TipRetracted + | t.types.pallet_tips.pallet.Event.TipSlashed export namespace Event { /** A new tip suggestion has been opened. */ export interface NewTip { type: "NewTip" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has reached threshold and is closing. */ export interface TipClosing { type: "TipClosing" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has been closed. */ export interface TipClosed { type: "TipClosed" - tip_hash: t.primitive_types.H256 - who: t.sp_core.crypto.AccountId32 - payout: t.u128 + tip_hash: t.types.primitive_types.H256 + who: t.types.sp_core.crypto.AccountId32 + payout: t.types.u128 } /** A tip suggestion has been retracted. */ export interface TipRetracted { type: "TipRetracted" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has been slashed. */ export interface TipSlashed { type: "TipSlashed" - tip_hash: t.primitive_types.H256 - finder: t.sp_core.crypto.AccountId32 - deposit: t.u128 + tip_hash: t.types.primitive_types.H256 + finder: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A new tip suggestion has been opened. */ export function NewTip( - value: Omit, - ): t.pallet_tips.pallet.Event.NewTip { + value: Omit, + ): t.types.pallet_tips.pallet.Event.NewTip { return { type: "NewTip", ...value } } /** A tip suggestion has reached threshold and is closing. */ export function TipClosing( - value: Omit, - ): t.pallet_tips.pallet.Event.TipClosing { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipClosing { return { type: "TipClosing", ...value } } /** A tip suggestion has been closed. */ export function TipClosed( - value: Omit, - ): t.pallet_tips.pallet.Event.TipClosed { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipClosed { return { type: "TipClosed", ...value } } /** A tip suggestion has been retracted. */ export function TipRetracted( - value: Omit, - ): t.pallet_tips.pallet.Event.TipRetracted { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipRetracted { return { type: "TipRetracted", ...value } } /** A tip suggestion has been slashed. */ export function TipSlashed( - value: Omit, - ): t.pallet_tips.pallet.Event.TipSlashed { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipSlashed { return { type: "TipSlashed", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_transaction_payment/mod.ts b/codegen/_output/kusama/types/pallet_transaction_payment/mod.ts new file mode 100644 index 000000000..53822ce2a --- /dev/null +++ b/codegen/_output/kusama/types/pallet_transaction_payment/mod.ts @@ -0,0 +1,9 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $releases: $.Codec = _codec.$480 + +export type Releases = "V1Ancient" | "V2" diff --git a/codegen/_output/kusama/pallet_transaction_payment/pallet.ts b/codegen/_output/kusama/types/pallet_transaction_payment/pallet.ts similarity index 50% rename from codegen/_output/kusama/pallet_transaction_payment/pallet.ts rename to codegen/_output/kusama/types/pallet_transaction_payment/pallet.ts index 12c5c03e1..f912e47f5 100644 --- a/codegen/_output/kusama/pallet_transaction_payment/pallet.ts +++ b/codegen/_output/kusama/types/pallet_transaction_payment/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $event: $.Codec = _codec.$38 +export const $event: $.Codec = _codec.$38 /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.pallet_transaction_payment.pallet.Event.TransactionFeePaid +export type Event = t.types.pallet_transaction_payment.pallet.Event.TransactionFeePaid export namespace Event { /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, @@ -13,17 +13,17 @@ export namespace Event { */ export interface TransactionFeePaid { type: "TransactionFeePaid" - who: t.sp_core.crypto.AccountId32 - actual_fee: t.u128 - tip: t.u128 + who: t.types.sp_core.crypto.AccountId32 + actual_fee: t.types.u128 + tip: t.types.u128 } /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, * has been paid by `who`. */ export function TransactionFeePaid( - value: Omit, - ): t.pallet_transaction_payment.pallet.Event.TransactionFeePaid { + value: Omit, + ): t.types.pallet_transaction_payment.pallet.Event.TransactionFeePaid { return { type: "TransactionFeePaid", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_treasury/mod.ts b/codegen/_output/kusama/types/pallet_treasury/mod.ts new file mode 100644 index 000000000..bada52441 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_treasury/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $proposal: $.Codec = _codec.$556 + +export interface Proposal { + proposer: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 + bond: t.types.u128 +} + +export function Proposal(value: t.types.pallet_treasury.Proposal) { + return value +} diff --git a/codegen/_output/rococo/pallet_treasury/pallet.ts b/codegen/_output/kusama/types/pallet_treasury/pallet.ts similarity index 68% rename from codegen/_output/rococo/pallet_treasury/pallet.ts rename to codegen/_output/kusama/types/pallet_treasury/pallet.ts index f5458cc71..e1999734e 100644 --- a/codegen/_output/rococo/pallet_treasury/pallet.ts +++ b/codegen/_output/kusama/types/pallet_treasury/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$244 +export const $call: $.Codec = _codec.$244 -export const $error: $.Codec = _codec.$561 +export const $error: $.Codec = _codec.$561 -export const $event: $.Codec = _codec.$71 +export const $event: $.Codec = _codec.$71 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_treasury.pallet.Call.propose_spend - | t.pallet_treasury.pallet.Call.reject_proposal - | t.pallet_treasury.pallet.Call.approve_proposal - | t.pallet_treasury.pallet.Call.spend - | t.pallet_treasury.pallet.Call.remove_approval + | t.types.pallet_treasury.pallet.Call.propose_spend + | t.types.pallet_treasury.pallet.Call.reject_proposal + | t.types.pallet_treasury.pallet.Call.approve_proposal + | t.types.pallet_treasury.pallet.Call.spend + | t.types.pallet_treasury.pallet.Call.remove_approval export namespace Call { /** * Put forward a suggestion for spending. A deposit proportional to the value @@ -29,8 +29,8 @@ export namespace Call { */ export interface propose_spend { type: "propose_spend" - value: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + value: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Reject a proposed spend. The original deposit will be slashed. @@ -45,7 +45,7 @@ export namespace Call { */ export interface reject_proposal { type: "reject_proposal" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary @@ -61,7 +61,7 @@ export namespace Call { */ export interface approve_proposal { type: "approve_proposal" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Propose and approve a spend of treasury funds. @@ -75,8 +75,8 @@ export namespace Call { */ export interface spend { type: "spend" - amount: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + amount: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Force a previously approved proposal to be removed from the approval queue. @@ -97,7 +97,7 @@ export namespace Call { */ export interface remove_approval { type: "remove_approval" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Put forward a suggestion for spending. A deposit proportional to the value @@ -111,8 +111,8 @@ export namespace Call { * # */ export function propose_spend( - value: Omit, - ): t.pallet_treasury.pallet.Call.propose_spend { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.propose_spend { return { type: "propose_spend", ...value } } /** @@ -127,8 +127,8 @@ export namespace Call { * # */ export function reject_proposal( - value: Omit, - ): t.pallet_treasury.pallet.Call.reject_proposal { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.reject_proposal { return { type: "reject_proposal", ...value } } /** @@ -144,8 +144,8 @@ export namespace Call { * # */ export function approve_proposal( - value: Omit, - ): t.pallet_treasury.pallet.Call.approve_proposal { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.approve_proposal { return { type: "approve_proposal", ...value } } /** @@ -159,8 +159,8 @@ export namespace Call { * beneficiary. */ export function spend( - value: Omit, - ): t.pallet_treasury.pallet.Call.spend { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.spend { return { type: "spend", ...value } } /** @@ -181,8 +181,8 @@ export namespace Call { * exist altogether, thus there is no way it would have been approved in the first place. */ export function remove_approval( - value: Omit, - ): t.pallet_treasury.pallet.Call.remove_approval { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.remove_approval { return { type: "remove_approval", ...value } } } @@ -197,106 +197,106 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_treasury.pallet.Event.Proposed - | t.pallet_treasury.pallet.Event.Spending - | t.pallet_treasury.pallet.Event.Awarded - | t.pallet_treasury.pallet.Event.Rejected - | t.pallet_treasury.pallet.Event.Burnt - | t.pallet_treasury.pallet.Event.Rollover - | t.pallet_treasury.pallet.Event.Deposit - | t.pallet_treasury.pallet.Event.SpendApproved + | t.types.pallet_treasury.pallet.Event.Proposed + | t.types.pallet_treasury.pallet.Event.Spending + | t.types.pallet_treasury.pallet.Event.Awarded + | t.types.pallet_treasury.pallet.Event.Rejected + | t.types.pallet_treasury.pallet.Event.Burnt + | t.types.pallet_treasury.pallet.Event.Rollover + | t.types.pallet_treasury.pallet.Event.Deposit + | t.types.pallet_treasury.pallet.Event.SpendApproved export namespace Event { /** New proposal. */ export interface Proposed { type: "Proposed" - proposal_index: t.u32 + proposal_index: t.types.u32 } /** We have ended a spend period and will now allocate funds. */ export interface Spending { type: "Spending" - budget_remaining: t.u128 + budget_remaining: t.types.u128 } /** Some funds have been allocated. */ export interface Awarded { type: "Awarded" - proposal_index: t.u32 - award: t.u128 - account: t.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + award: t.types.u128 + account: t.types.sp_core.crypto.AccountId32 } /** A proposal was rejected; funds were slashed. */ export interface Rejected { type: "Rejected" - proposal_index: t.u32 - slashed: t.u128 + proposal_index: t.types.u32 + slashed: t.types.u128 } /** Some of our funds have been burnt. */ export interface Burnt { type: "Burnt" - burnt_funds: t.u128 + burnt_funds: t.types.u128 } /** Spending has finished; this is the amount that rolls over until next spend. */ export interface Rollover { type: "Rollover" - rollover_balance: t.u128 + rollover_balance: t.types.u128 } /** Some funds have been deposited. */ export interface Deposit { type: "Deposit" - value: t.u128 + value: t.types.u128 } /** A new spend proposal has been approved. */ export interface SpendApproved { type: "SpendApproved" - proposal_index: t.u32 - amount: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + amount: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** New proposal. */ export function Proposed( - value: Omit, - ): t.pallet_treasury.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** We have ended a spend period and will now allocate funds. */ export function Spending( - value: Omit, - ): t.pallet_treasury.pallet.Event.Spending { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Spending { return { type: "Spending", ...value } } /** Some funds have been allocated. */ export function Awarded( - value: Omit, - ): t.pallet_treasury.pallet.Event.Awarded { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Awarded { return { type: "Awarded", ...value } } /** A proposal was rejected; funds were slashed. */ export function Rejected( - value: Omit, - ): t.pallet_treasury.pallet.Event.Rejected { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Rejected { return { type: "Rejected", ...value } } /** Some of our funds have been burnt. */ export function Burnt( - value: Omit, - ): t.pallet_treasury.pallet.Event.Burnt { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Burnt { return { type: "Burnt", ...value } } /** Spending has finished; this is the amount that rolls over until next spend. */ export function Rollover( - value: Omit, - ): t.pallet_treasury.pallet.Event.Rollover { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Rollover { return { type: "Rollover", ...value } } /** Some funds have been deposited. */ export function Deposit( - value: Omit, - ): t.pallet_treasury.pallet.Event.Deposit { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Deposit { return { type: "Deposit", ...value } } /** A new spend proposal has been approved. */ export function SpendApproved( - value: Omit, - ): t.pallet_treasury.pallet.Event.SpendApproved { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.SpendApproved { return { type: "SpendApproved", ...value } } } diff --git a/codegen/_output/kusama/pallet_utility/mod.ts b/codegen/_output/kusama/types/pallet_utility/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_utility/mod.ts rename to codegen/_output/kusama/types/pallet_utility/mod.ts diff --git a/codegen/_output/kusama/pallet_utility/pallet.ts b/codegen/_output/kusama/types/pallet_utility/pallet.ts similarity index 76% rename from codegen/_output/kusama/pallet_utility/pallet.ts rename to codegen/_output/kusama/types/pallet_utility/pallet.ts index 50befdeac..2d5f19068 100644 --- a/codegen/_output/kusama/pallet_utility/pallet.ts +++ b/codegen/_output/kusama/types/pallet_utility/pallet.ts @@ -1,20 +1,20 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$254 +export const $call: $.Codec = _codec.$254 -export const $error: $.Codec = _codec.$567 +export const $error: $.Codec = _codec.$567 -export const $event: $.Codec = _codec.$76 +export const $event: $.Codec = _codec.$76 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_utility.pallet.Call.batch - | t.pallet_utility.pallet.Call.as_derivative - | t.pallet_utility.pallet.Call.batch_all - | t.pallet_utility.pallet.Call.dispatch_as - | t.pallet_utility.pallet.Call.force_batch + | t.types.pallet_utility.pallet.Call.batch + | t.types.pallet_utility.pallet.Call.as_derivative + | t.types.pallet_utility.pallet.Call.batch_all + | t.types.pallet_utility.pallet.Call.dispatch_as + | t.types.pallet_utility.pallet.Call.force_batch export namespace Call { /** * Send a batch of dispatch calls. @@ -39,7 +39,7 @@ export namespace Call { */ export interface batch { type: "batch" - calls: Array + calls: Array } /** * Send a call through an indexed pseudonym of the sender. @@ -58,8 +58,8 @@ export namespace Call { */ export interface as_derivative { type: "as_derivative" - index: t.u16 - call: t.polkadot_runtime.RuntimeCall + index: t.types.u16 + call: t.types.polkadot_runtime.RuntimeCall } /** * Send a batch of dispatch calls and atomically execute them. @@ -79,7 +79,7 @@ export namespace Call { */ export interface batch_all { type: "batch_all" - calls: Array + calls: Array } /** * Dispatches a function call with a provided origin. @@ -95,8 +95,8 @@ export namespace Call { */ export interface dispatch_as { type: "dispatch_as" - as_origin: t.polkadot_runtime.OriginCaller - call: t.polkadot_runtime.RuntimeCall + as_origin: t.types.polkadot_runtime.OriginCaller + call: t.types.polkadot_runtime.RuntimeCall } /** * Send a batch of dispatch calls. @@ -116,7 +116,7 @@ export namespace Call { */ export interface force_batch { type: "force_batch" - calls: Array + calls: Array } /** * Send a batch of dispatch calls. @@ -140,8 +140,8 @@ export namespace Call { * event is deposited. */ export function batch( - value: Omit, - ): t.pallet_utility.pallet.Call.batch { + value: Omit, + ): t.types.pallet_utility.pallet.Call.batch { return { type: "batch", ...value } } /** @@ -160,8 +160,8 @@ export namespace Call { * The dispatch origin for this call must be _Signed_. */ export function as_derivative( - value: Omit, - ): t.pallet_utility.pallet.Call.as_derivative { + value: Omit, + ): t.types.pallet_utility.pallet.Call.as_derivative { return { type: "as_derivative", ...value } } /** @@ -181,8 +181,8 @@ export namespace Call { * # */ export function batch_all( - value: Omit, - ): t.pallet_utility.pallet.Call.batch_all { + value: Omit, + ): t.types.pallet_utility.pallet.Call.batch_all { return { type: "batch_all", ...value } } /** @@ -198,8 +198,8 @@ export namespace Call { * # */ export function dispatch_as( - value: Omit, - ): t.pallet_utility.pallet.Call.dispatch_as { + value: Omit, + ): t.types.pallet_utility.pallet.Call.dispatch_as { return { type: "dispatch_as", ...value } } /** @@ -219,8 +219,8 @@ export namespace Call { * # */ export function force_batch( - value: Omit, - ): t.pallet_utility.pallet.Call.force_batch { + value: Omit, + ): t.types.pallet_utility.pallet.Call.force_batch { return { type: "force_batch", ...value } } } @@ -230,12 +230,12 @@ export type Error = "TooManyCalls" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_utility.pallet.Event.BatchInterrupted - | t.pallet_utility.pallet.Event.BatchCompleted - | t.pallet_utility.pallet.Event.BatchCompletedWithErrors - | t.pallet_utility.pallet.Event.ItemCompleted - | t.pallet_utility.pallet.Event.ItemFailed - | t.pallet_utility.pallet.Event.DispatchedAs + | t.types.pallet_utility.pallet.Event.BatchInterrupted + | t.types.pallet_utility.pallet.Event.BatchCompleted + | t.types.pallet_utility.pallet.Event.BatchCompletedWithErrors + | t.types.pallet_utility.pallet.Event.ItemCompleted + | t.types.pallet_utility.pallet.Event.ItemFailed + | t.types.pallet_utility.pallet.Event.DispatchedAs export namespace Event { /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as @@ -243,8 +243,8 @@ export namespace Event { */ export interface BatchInterrupted { type: "BatchInterrupted" - index: t.u32 - error: t.sp_runtime.DispatchError + index: t.types.u32 + error: t.types.sp_runtime.DispatchError } /** Batch of dispatches completed fully with no error. */ export interface BatchCompleted { @@ -261,44 +261,44 @@ export namespace Event { /** A single item within a Batch of dispatches has completed with error. */ export interface ItemFailed { type: "ItemFailed" - error: t.sp_runtime.DispatchError + error: t.types.sp_runtime.DispatchError } /** A call was dispatched. */ export interface DispatchedAs { type: "DispatchedAs" - result: null | C.ChainError + result: null | C.ChainError } /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. */ export function BatchInterrupted( - value: Omit, - ): t.pallet_utility.pallet.Event.BatchInterrupted { + value: Omit, + ): t.types.pallet_utility.pallet.Event.BatchInterrupted { return { type: "BatchInterrupted", ...value } } /** Batch of dispatches completed fully with no error. */ - export function BatchCompleted(): t.pallet_utility.pallet.Event.BatchCompleted { + export function BatchCompleted(): t.types.pallet_utility.pallet.Event.BatchCompleted { return { type: "BatchCompleted" } } /** Batch of dispatches completed but has errors. */ - export function BatchCompletedWithErrors(): t.pallet_utility.pallet.Event.BatchCompletedWithErrors { + export function BatchCompletedWithErrors(): t.types.pallet_utility.pallet.Event.BatchCompletedWithErrors { return { type: "BatchCompletedWithErrors" } } /** A single item within a Batch of dispatches has completed with no error. */ - export function ItemCompleted(): t.pallet_utility.pallet.Event.ItemCompleted { + export function ItemCompleted(): t.types.pallet_utility.pallet.Event.ItemCompleted { return { type: "ItemCompleted" } } /** A single item within a Batch of dispatches has completed with error. */ export function ItemFailed( - value: Omit, - ): t.pallet_utility.pallet.Event.ItemFailed { + value: Omit, + ): t.types.pallet_utility.pallet.Event.ItemFailed { return { type: "ItemFailed", ...value } } /** A call was dispatched. */ export function DispatchedAs( - value: Omit, - ): t.pallet_utility.pallet.Event.DispatchedAs { + value: Omit, + ): t.types.pallet_utility.pallet.Event.DispatchedAs { return { type: "DispatchedAs", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_vesting/mod.ts b/codegen/_output/kusama/types/pallet_vesting/mod.ts new file mode 100644 index 000000000..96ae61e7f --- /dev/null +++ b/codegen/_output/kusama/types/pallet_vesting/mod.ts @@ -0,0 +1,10 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as vesting_info from "./vesting_info.ts" + +export const $releases: $.Codec = _codec.$565 + +export type Releases = "V0" | "V1" diff --git a/codegen/_output/rococo/pallet_vesting/pallet.ts b/codegen/_output/kusama/types/pallet_vesting/pallet.ts similarity index 80% rename from codegen/_output/rococo/pallet_vesting/pallet.ts rename to codegen/_output/kusama/types/pallet_vesting/pallet.ts index 46b136022..fb66f1292 100644 --- a/codegen/_output/rococo/pallet_vesting/pallet.ts +++ b/codegen/_output/kusama/types/pallet_vesting/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$252 +export const $call: $.Codec = _codec.$252 -export const $error: $.Codec = _codec.$566 +export const $error: $.Codec = _codec.$566 -export const $event: $.Codec = _codec.$75 +export const $event: $.Codec = _codec.$75 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_vesting.pallet.Call.vest - | t.pallet_vesting.pallet.Call.vest_other - | t.pallet_vesting.pallet.Call.vested_transfer - | t.pallet_vesting.pallet.Call.force_vested_transfer - | t.pallet_vesting.pallet.Call.merge_schedules + | t.types.pallet_vesting.pallet.Call.vest + | t.types.pallet_vesting.pallet.Call.vest_other + | t.types.pallet_vesting.pallet.Call.vested_transfer + | t.types.pallet_vesting.pallet.Call.force_vested_transfer + | t.types.pallet_vesting.pallet.Call.merge_schedules export namespace Call { /** * Unlock any vested funds of the sender account. @@ -53,7 +53,7 @@ export namespace Call { */ export interface vest_other { type: "vest_other" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Create a vested transfer. @@ -76,8 +76,8 @@ export namespace Call { */ export interface vested_transfer { type: "vested_transfer" - target: t.sp_runtime.multiaddress.MultiAddress - schedule: t.pallet_vesting.vesting_info.VestingInfo + target: t.types.sp_runtime.multiaddress.MultiAddress + schedule: t.types.pallet_vesting.vesting_info.VestingInfo } /** * Force a vested transfer. @@ -101,9 +101,9 @@ export namespace Call { */ export interface force_vested_transfer { type: "force_vested_transfer" - source: t.sp_runtime.multiaddress.MultiAddress - target: t.sp_runtime.multiaddress.MultiAddress - schedule: t.pallet_vesting.vesting_info.VestingInfo + source: t.types.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress + schedule: t.types.pallet_vesting.vesting_info.VestingInfo } /** * Merge two vesting schedules together, creating a new vesting schedule that unlocks over @@ -130,8 +130,8 @@ export namespace Call { */ export interface merge_schedules { type: "merge_schedules" - schedule1_index: t.u32 - schedule2_index: t.u32 + schedule1_index: t.types.u32 + schedule2_index: t.types.u32 } /** * Unlock any vested funds of the sender account. @@ -148,7 +148,7 @@ export namespace Call { * - Writes: Vesting Storage, Balances Locks, [Sender Account] * # */ - export function vest(): t.pallet_vesting.pallet.Call.vest { + export function vest(): t.types.pallet_vesting.pallet.Call.vest { return { type: "vest" } } /** @@ -169,8 +169,8 @@ export namespace Call { * # */ export function vest_other( - value: Omit, - ): t.pallet_vesting.pallet.Call.vest_other { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.vest_other { return { type: "vest_other", ...value } } /** @@ -193,8 +193,8 @@ export namespace Call { * # */ export function vested_transfer( - value: Omit, - ): t.pallet_vesting.pallet.Call.vested_transfer { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.vested_transfer { return { type: "vested_transfer", ...value } } /** @@ -218,8 +218,8 @@ export namespace Call { * # */ export function force_vested_transfer( - value: Omit, - ): t.pallet_vesting.pallet.Call.force_vested_transfer { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.force_vested_transfer { return { type: "force_vested_transfer", ...value } } /** @@ -246,8 +246,8 @@ export namespace Call { * - `schedule2_index`: index of the second schedule to merge. */ export function merge_schedules( - value: Omit, - ): t.pallet_vesting.pallet.Call.merge_schedules { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.merge_schedules { return { type: "merge_schedules", ...value } } } @@ -262,8 +262,8 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_vesting.pallet.Event.VestingUpdated - | t.pallet_vesting.pallet.Event.VestingCompleted + | t.types.pallet_vesting.pallet.Event.VestingUpdated + | t.types.pallet_vesting.pallet.Event.VestingCompleted export namespace Event { /** * The amount vested has been updated. This could indicate a change in funds available. @@ -271,27 +271,27 @@ export namespace Event { */ export interface VestingUpdated { type: "VestingUpdated" - account: t.sp_core.crypto.AccountId32 - unvested: t.u128 + account: t.types.sp_core.crypto.AccountId32 + unvested: t.types.u128 } /** An \[account\] has become fully vested. */ export interface VestingCompleted { type: "VestingCompleted" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** * The amount vested has been updated. This could indicate a change in funds available. * The balance given is the amount which is left unvested (and thus locked). */ export function VestingUpdated( - value: Omit, - ): t.pallet_vesting.pallet.Event.VestingUpdated { + value: Omit, + ): t.types.pallet_vesting.pallet.Event.VestingUpdated { return { type: "VestingUpdated", ...value } } /** An \[account\] has become fully vested. */ export function VestingCompleted( - value: Omit, - ): t.pallet_vesting.pallet.Event.VestingCompleted { + value: Omit, + ): t.types.pallet_vesting.pallet.Event.VestingCompleted { return { type: "VestingCompleted", ...value } } } diff --git a/codegen/_output/kusama/types/pallet_vesting/vesting_info.ts b/codegen/_output/kusama/types/pallet_vesting/vesting_info.ts new file mode 100644 index 000000000..ab4a9cfe5 --- /dev/null +++ b/codegen/_output/kusama/types/pallet_vesting/vesting_info.ts @@ -0,0 +1,15 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $vestingInfo: $.Codec = _codec.$253 + +export interface VestingInfo { + locked: t.types.u128 + per_block: t.types.u128 + starting_block: t.types.u32 +} + +export function VestingInfo(value: t.types.pallet_vesting.vesting_info.VestingInfo) { + return value +} diff --git a/codegen/_output/kusama/pallet_xcm/mod.ts b/codegen/_output/kusama/types/pallet_xcm/mod.ts similarity index 100% rename from codegen/_output/kusama/pallet_xcm/mod.ts rename to codegen/_output/kusama/types/pallet_xcm/mod.ts diff --git a/codegen/_output/rococo/pallet_xcm/pallet.ts b/codegen/_output/kusama/types/pallet_xcm/pallet.ts similarity index 71% rename from codegen/_output/rococo/pallet_xcm/pallet.ts rename to codegen/_output/kusama/types/pallet_xcm/pallet.ts index 170fd1d2f..98a7c2a00 100644 --- a/codegen/_output/rococo/pallet_xcm/pallet.ts +++ b/codegen/_output/kusama/types/pallet_xcm/pallet.ts @@ -1,37 +1,37 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$423 +export const $call: $.Codec = _codec.$423 -export const $error: $.Codec = _codec.$724 +export const $error: $.Codec = _codec.$724 -export const $event: $.Codec = _codec.$121 +export const $event: $.Codec = _codec.$121 -export const $origin: $.Codec = _codec.$261 +export const $origin: $.Codec = _codec.$261 -export const $queryStatus: $.Codec = _codec.$713 +export const $queryStatus: $.Codec = _codec.$713 -export const $versionMigrationStage: $.Codec = +export const $versionMigrationStage: $.Codec = _codec.$722 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_xcm.pallet.Call.send - | t.pallet_xcm.pallet.Call.teleport_assets - | t.pallet_xcm.pallet.Call.reserve_transfer_assets - | t.pallet_xcm.pallet.Call.execute - | t.pallet_xcm.pallet.Call.force_xcm_version - | t.pallet_xcm.pallet.Call.force_default_xcm_version - | t.pallet_xcm.pallet.Call.force_subscribe_version_notify - | t.pallet_xcm.pallet.Call.force_unsubscribe_version_notify - | t.pallet_xcm.pallet.Call.limited_reserve_transfer_assets - | t.pallet_xcm.pallet.Call.limited_teleport_assets + | t.types.pallet_xcm.pallet.Call.send + | t.types.pallet_xcm.pallet.Call.teleport_assets + | t.types.pallet_xcm.pallet.Call.reserve_transfer_assets + | t.types.pallet_xcm.pallet.Call.execute + | t.types.pallet_xcm.pallet.Call.force_xcm_version + | t.types.pallet_xcm.pallet.Call.force_default_xcm_version + | t.types.pallet_xcm.pallet.Call.force_subscribe_version_notify + | t.types.pallet_xcm.pallet.Call.force_unsubscribe_version_notify + | t.types.pallet_xcm.pallet.Call.limited_reserve_transfer_assets + | t.types.pallet_xcm.pallet.Call.limited_teleport_assets export namespace Call { export interface send { type: "send" - dest: t.xcm.VersionedMultiLocation - message: t.xcm.VersionedXcm + dest: t.types.xcm.VersionedMultiLocation + message: t.types.xcm.VersionedXcm } /** * Teleport some assets from the local chain to some destination chain. @@ -52,10 +52,10 @@ export namespace Call { */ export interface teleport_assets { type: "teleport_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 } /** * Transfer some assets from the local chain to the sovereign account of a destination @@ -77,10 +77,10 @@ export namespace Call { */ export interface reserve_transfer_assets { type: "reserve_transfer_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 } /** * Execute an XCM message from a local, signed, origin. @@ -97,8 +97,8 @@ export namespace Call { */ export interface execute { type: "execute" - message: t.xcm.VersionedXcm - max_weight: t.u64 + message: t.types.xcm.VersionedXcm + max_weight: t.types.u64 } /** * Extoll that a particular destination can be communicated with through a particular @@ -110,8 +110,8 @@ export namespace Call { */ export interface force_xcm_version { type: "force_xcm_version" - location: t.xcm.v1.multilocation.MultiLocation - xcm_version: t.u32 + location: t.types.xcm.v1.multilocation.MultiLocation + xcm_version: t.types.u32 } /** * Set a safe XCM version (the version that XCM should be encoded with if the most recent @@ -122,7 +122,7 @@ export namespace Call { */ export interface force_default_xcm_version { type: "force_default_xcm_version" - maybe_xcm_version: t.u32 | undefined + maybe_xcm_version: t.types.u32 | undefined } /** * Ask a location to notify us regarding their XCM version and any changes to it. @@ -132,7 +132,7 @@ export namespace Call { */ export interface force_subscribe_version_notify { type: "force_subscribe_version_notify" - location: t.xcm.VersionedMultiLocation + location: t.types.xcm.VersionedMultiLocation } /** * Require that a particular destination should no longer notify us regarding any XCM @@ -144,7 +144,7 @@ export namespace Call { */ export interface force_unsubscribe_version_notify { type: "force_unsubscribe_version_notify" - location: t.xcm.VersionedMultiLocation + location: t.types.xcm.VersionedMultiLocation } /** * Transfer some assets from the local chain to the sovereign account of a destination @@ -168,11 +168,11 @@ export namespace Call { */ export interface limited_reserve_transfer_assets { type: "limited_reserve_transfer_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 - weight_limit: t.xcm.v2.WeightLimit + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 + weight_limit: t.types.xcm.v2.WeightLimit } /** * Teleport some assets from the local chain to some destination chain. @@ -195,15 +195,15 @@ export namespace Call { */ export interface limited_teleport_assets { type: "limited_teleport_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 - weight_limit: t.xcm.v2.WeightLimit + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 + weight_limit: t.types.xcm.v2.WeightLimit } export function send( - value: Omit, - ): t.pallet_xcm.pallet.Call.send { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.send { return { type: "send", ...value } } /** @@ -224,8 +224,8 @@ export namespace Call { * fees. */ export function teleport_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.teleport_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.teleport_assets { return { type: "teleport_assets", ...value } } /** @@ -247,8 +247,8 @@ export namespace Call { * fees. */ export function reserve_transfer_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.reserve_transfer_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.reserve_transfer_assets { return { type: "reserve_transfer_assets", ...value } } /** @@ -265,8 +265,8 @@ export namespace Call { * to completion; only that *some* of it was executed. */ export function execute( - value: Omit, - ): t.pallet_xcm.pallet.Call.execute { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.execute { return { type: "execute", ...value } } /** @@ -278,8 +278,8 @@ export namespace Call { * - `xcm_version`: The latest version of XCM that `location` supports. */ export function force_xcm_version( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_xcm_version { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_xcm_version { return { type: "force_xcm_version", ...value } } /** @@ -290,8 +290,8 @@ export namespace Call { * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. */ export function force_default_xcm_version( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_default_xcm_version { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_default_xcm_version { return { type: "force_default_xcm_version", ...value } } /** @@ -301,8 +301,8 @@ export namespace Call { * - `location`: The location to which we should subscribe for XCM version notifications. */ export function force_subscribe_version_notify( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_subscribe_version_notify { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_subscribe_version_notify { return { type: "force_subscribe_version_notify", ...value } } /** @@ -314,8 +314,8 @@ export namespace Call { * notifications which we no longer desire. */ export function force_unsubscribe_version_notify( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_unsubscribe_version_notify { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_unsubscribe_version_notify { return { type: "force_unsubscribe_version_notify", ...value } } /** @@ -339,8 +339,8 @@ export namespace Call { * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_reserve_transfer_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.limited_reserve_transfer_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.limited_reserve_transfer_assets { return { type: "limited_reserve_transfer_assets", ...value } } /** @@ -363,8 +363,8 @@ export namespace Call { * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_teleport_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.limited_teleport_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.limited_teleport_assets { return { type: "limited_teleport_assets", ...value } } } @@ -387,23 +387,23 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_xcm.pallet.Event.Attempted - | t.pallet_xcm.pallet.Event.Sent - | t.pallet_xcm.pallet.Event.UnexpectedResponse - | t.pallet_xcm.pallet.Event.ResponseReady - | t.pallet_xcm.pallet.Event.Notified - | t.pallet_xcm.pallet.Event.NotifyOverweight - | t.pallet_xcm.pallet.Event.NotifyDispatchError - | t.pallet_xcm.pallet.Event.NotifyDecodeFailed - | t.pallet_xcm.pallet.Event.InvalidResponder - | t.pallet_xcm.pallet.Event.InvalidResponderVersion - | t.pallet_xcm.pallet.Event.ResponseTaken - | t.pallet_xcm.pallet.Event.AssetsTrapped - | t.pallet_xcm.pallet.Event.VersionChangeNotified - | t.pallet_xcm.pallet.Event.SupportedVersionChanged - | t.pallet_xcm.pallet.Event.NotifyTargetSendFail - | t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail - | t.pallet_xcm.pallet.Event.AssetsClaimed + | t.types.pallet_xcm.pallet.Event.Attempted + | t.types.pallet_xcm.pallet.Event.Sent + | t.types.pallet_xcm.pallet.Event.UnexpectedResponse + | t.types.pallet_xcm.pallet.Event.ResponseReady + | t.types.pallet_xcm.pallet.Event.Notified + | t.types.pallet_xcm.pallet.Event.NotifyOverweight + | t.types.pallet_xcm.pallet.Event.NotifyDispatchError + | t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed + | t.types.pallet_xcm.pallet.Event.InvalidResponder + | t.types.pallet_xcm.pallet.Event.InvalidResponderVersion + | t.types.pallet_xcm.pallet.Event.ResponseTaken + | t.types.pallet_xcm.pallet.Event.AssetsTrapped + | t.types.pallet_xcm.pallet.Event.VersionChangeNotified + | t.types.pallet_xcm.pallet.Event.SupportedVersionChanged + | t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail + | t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail + | t.types.pallet_xcm.pallet.Event.AssetsClaimed export namespace Event { /** * Execution of an XCM message was attempted. @@ -412,7 +412,7 @@ export namespace Event { */ export interface Attempted { type: "Attempted" - value: t.xcm.v2.traits.Outcome + value: t.types.xcm.v2.traits.Outcome } /** * A XCM message was sent. @@ -422,9 +422,9 @@ export namespace Event { export interface Sent { type: "Sent" value: [ - t.xcm.v1.multilocation.MultiLocation, - t.xcm.v1.multilocation.MultiLocation, - Array, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.v1.multilocation.MultiLocation, + Array, ] } /** @@ -436,7 +436,7 @@ export namespace Event { */ export interface UnexpectedResponse { type: "UnexpectedResponse" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64] } /** * Query response has been received and is ready for taking with `take_response`. There is @@ -446,7 +446,7 @@ export namespace Event { */ export interface ResponseReady { type: "ResponseReady" - value: [t.u64, t.xcm.v2.Response] + value: [t.types.u64, t.types.xcm.v2.Response] } /** * Query response has been received and query is removed. The registered notification has @@ -456,7 +456,7 @@ export namespace Event { */ export interface Notified { type: "Notified" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Query response has been received and query is removed. The registered notification could @@ -467,7 +467,13 @@ export namespace Event { */ export interface NotifyOverweight { type: "NotifyOverweight" - value: [t.u64, t.u8, t.u8, t.sp_weights.weight_v2.Weight, t.sp_weights.weight_v2.Weight] + value: [ + t.types.u64, + t.types.u8, + t.types.u8, + t.types.sp_weights.weight_v2.Weight, + t.types.sp_weights.weight_v2.Weight, + ] } /** * Query response has been received and query is removed. There was a general error with @@ -477,7 +483,7 @@ export namespace Event { */ export interface NotifyDispatchError { type: "NotifyDispatchError" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Query response has been received and query is removed. The dispatch was unable to be @@ -488,7 +494,7 @@ export namespace Event { */ export interface NotifyDecodeFailed { type: "NotifyDecodeFailed" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Expected query response has been received but the origin location of the response does @@ -500,9 +506,9 @@ export namespace Event { export interface InvalidResponder { type: "InvalidResponder" value: [ - t.xcm.v1.multilocation.MultiLocation, - t.u64, - t.xcm.v1.multilocation.MultiLocation | undefined, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.u64, + t.types.xcm.v1.multilocation.MultiLocation | undefined, ] } /** @@ -518,7 +524,7 @@ export namespace Event { */ export interface InvalidResponderVersion { type: "InvalidResponderVersion" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64] } /** * Received query response has been read and removed. @@ -527,7 +533,7 @@ export namespace Event { */ export interface ResponseTaken { type: "ResponseTaken" - value: t.u64 + value: t.types.u64 } /** * Some assets have been placed in an asset trap. @@ -537,9 +543,9 @@ export namespace Event { export interface AssetsTrapped { type: "AssetsTrapped" value: [ - t.primitive_types.H256, - t.xcm.v1.multilocation.MultiLocation, - t.xcm.VersionedMultiAssets, + t.types.primitive_types.H256, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.VersionedMultiAssets, ] } /** @@ -549,7 +555,7 @@ export namespace Event { */ export interface VersionChangeNotified { type: "VersionChangeNotified" - value: [t.xcm.v1.multilocation.MultiLocation, t.u32] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u32] } /** * The supported version of a location has been changed. This might be through an @@ -559,7 +565,7 @@ export namespace Event { */ export interface SupportedVersionChanged { type: "SupportedVersionChanged" - value: [t.xcm.v1.multilocation.MultiLocation, t.u32] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u32] } /** * A given location which had a version change subscription was dropped owing to an error @@ -569,7 +575,7 @@ export namespace Event { */ export interface NotifyTargetSendFail { type: "NotifyTargetSendFail" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64, t.xcm.v2.traits.Error] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64, t.types.xcm.v2.traits.Error] } /** * A given location which had a version change subscription was dropped owing to an error @@ -579,7 +585,7 @@ export namespace Event { */ export interface NotifyTargetMigrationFail { type: "NotifyTargetMigrationFail" - value: [t.xcm.VersionedMultiLocation, t.u64] + value: [t.types.xcm.VersionedMultiLocation, t.types.u64] } /** * Some assets have been claimed from an asset trap @@ -589,9 +595,9 @@ export namespace Event { export interface AssetsClaimed { type: "AssetsClaimed" value: [ - t.primitive_types.H256, - t.xcm.v1.multilocation.MultiLocation, - t.xcm.VersionedMultiAssets, + t.types.primitive_types.H256, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.VersionedMultiAssets, ] } /** @@ -600,8 +606,8 @@ export namespace Event { * \[ outcome \] */ export function Attempted( - value: t.pallet_xcm.pallet.Event.Attempted["value"], - ): t.pallet_xcm.pallet.Event.Attempted { + value: t.types.pallet_xcm.pallet.Event.Attempted["value"], + ): t.types.pallet_xcm.pallet.Event.Attempted { return { type: "Attempted", value } } /** @@ -610,8 +616,8 @@ export namespace Event { * \[ origin, destination, message \] */ export function Sent( - ...value: t.pallet_xcm.pallet.Event.Sent["value"] - ): t.pallet_xcm.pallet.Event.Sent { + ...value: t.types.pallet_xcm.pallet.Event.Sent["value"] + ): t.types.pallet_xcm.pallet.Event.Sent { return { type: "Sent", value } } /** @@ -622,8 +628,8 @@ export namespace Event { * \[ origin location, id \] */ export function UnexpectedResponse( - ...value: t.pallet_xcm.pallet.Event.UnexpectedResponse["value"] - ): t.pallet_xcm.pallet.Event.UnexpectedResponse { + ...value: t.types.pallet_xcm.pallet.Event.UnexpectedResponse["value"] + ): t.types.pallet_xcm.pallet.Event.UnexpectedResponse { return { type: "UnexpectedResponse", value } } /** @@ -633,8 +639,8 @@ export namespace Event { * \[ id, response \] */ export function ResponseReady( - ...value: t.pallet_xcm.pallet.Event.ResponseReady["value"] - ): t.pallet_xcm.pallet.Event.ResponseReady { + ...value: t.types.pallet_xcm.pallet.Event.ResponseReady["value"] + ): t.types.pallet_xcm.pallet.Event.ResponseReady { return { type: "ResponseReady", value } } /** @@ -644,8 +650,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function Notified( - ...value: t.pallet_xcm.pallet.Event.Notified["value"] - ): t.pallet_xcm.pallet.Event.Notified { + ...value: t.types.pallet_xcm.pallet.Event.Notified["value"] + ): t.types.pallet_xcm.pallet.Event.Notified { return { type: "Notified", value } } /** @@ -656,8 +662,8 @@ export namespace Event { * \[ id, pallet index, call index, actual weight, max budgeted weight \] */ export function NotifyOverweight( - ...value: t.pallet_xcm.pallet.Event.NotifyOverweight["value"] - ): t.pallet_xcm.pallet.Event.NotifyOverweight { + ...value: t.types.pallet_xcm.pallet.Event.NotifyOverweight["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyOverweight { return { type: "NotifyOverweight", value } } /** @@ -667,8 +673,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function NotifyDispatchError( - ...value: t.pallet_xcm.pallet.Event.NotifyDispatchError["value"] - ): t.pallet_xcm.pallet.Event.NotifyDispatchError { + ...value: t.types.pallet_xcm.pallet.Event.NotifyDispatchError["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyDispatchError { return { type: "NotifyDispatchError", value } } /** @@ -679,8 +685,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function NotifyDecodeFailed( - ...value: t.pallet_xcm.pallet.Event.NotifyDecodeFailed["value"] - ): t.pallet_xcm.pallet.Event.NotifyDecodeFailed { + ...value: t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed { return { type: "NotifyDecodeFailed", value } } /** @@ -691,8 +697,8 @@ export namespace Event { * \[ origin location, id, expected location \] */ export function InvalidResponder( - ...value: t.pallet_xcm.pallet.Event.InvalidResponder["value"] - ): t.pallet_xcm.pallet.Event.InvalidResponder { + ...value: t.types.pallet_xcm.pallet.Event.InvalidResponder["value"] + ): t.types.pallet_xcm.pallet.Event.InvalidResponder { return { type: "InvalidResponder", value } } /** @@ -707,8 +713,8 @@ export namespace Event { * \[ origin location, id \] */ export function InvalidResponderVersion( - ...value: t.pallet_xcm.pallet.Event.InvalidResponderVersion["value"] - ): t.pallet_xcm.pallet.Event.InvalidResponderVersion { + ...value: t.types.pallet_xcm.pallet.Event.InvalidResponderVersion["value"] + ): t.types.pallet_xcm.pallet.Event.InvalidResponderVersion { return { type: "InvalidResponderVersion", value } } /** @@ -717,8 +723,8 @@ export namespace Event { * \[ id \] */ export function ResponseTaken( - value: t.pallet_xcm.pallet.Event.ResponseTaken["value"], - ): t.pallet_xcm.pallet.Event.ResponseTaken { + value: t.types.pallet_xcm.pallet.Event.ResponseTaken["value"], + ): t.types.pallet_xcm.pallet.Event.ResponseTaken { return { type: "ResponseTaken", value } } /** @@ -727,8 +733,8 @@ export namespace Event { * \[ hash, origin, assets \] */ export function AssetsTrapped( - ...value: t.pallet_xcm.pallet.Event.AssetsTrapped["value"] - ): t.pallet_xcm.pallet.Event.AssetsTrapped { + ...value: t.types.pallet_xcm.pallet.Event.AssetsTrapped["value"] + ): t.types.pallet_xcm.pallet.Event.AssetsTrapped { return { type: "AssetsTrapped", value } } /** @@ -737,8 +743,8 @@ export namespace Event { * \[ destination, result \] */ export function VersionChangeNotified( - ...value: t.pallet_xcm.pallet.Event.VersionChangeNotified["value"] - ): t.pallet_xcm.pallet.Event.VersionChangeNotified { + ...value: t.types.pallet_xcm.pallet.Event.VersionChangeNotified["value"] + ): t.types.pallet_xcm.pallet.Event.VersionChangeNotified { return { type: "VersionChangeNotified", value } } /** @@ -748,8 +754,8 @@ export namespace Event { * \[ location, XCM version \] */ export function SupportedVersionChanged( - ...value: t.pallet_xcm.pallet.Event.SupportedVersionChanged["value"] - ): t.pallet_xcm.pallet.Event.SupportedVersionChanged { + ...value: t.types.pallet_xcm.pallet.Event.SupportedVersionChanged["value"] + ): t.types.pallet_xcm.pallet.Event.SupportedVersionChanged { return { type: "SupportedVersionChanged", value } } /** @@ -759,8 +765,8 @@ export namespace Event { * \[ location, query ID, error \] */ export function NotifyTargetSendFail( - ...value: t.pallet_xcm.pallet.Event.NotifyTargetSendFail["value"] - ): t.pallet_xcm.pallet.Event.NotifyTargetSendFail { + ...value: t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail { return { type: "NotifyTargetSendFail", value } } /** @@ -770,8 +776,8 @@ export namespace Event { * \[ location, query ID \] */ export function NotifyTargetMigrationFail( - ...value: t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail["value"] - ): t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail { + ...value: t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail { return { type: "NotifyTargetMigrationFail", value } } /** @@ -780,77 +786,79 @@ export namespace Event { * \[ hash, origin, assets \] */ export function AssetsClaimed( - ...value: t.pallet_xcm.pallet.Event.AssetsClaimed["value"] - ): t.pallet_xcm.pallet.Event.AssetsClaimed { + ...value: t.types.pallet_xcm.pallet.Event.AssetsClaimed["value"] + ): t.types.pallet_xcm.pallet.Event.AssetsClaimed { return { type: "AssetsClaimed", value } } } -export type Origin = t.pallet_xcm.pallet.Origin.Xcm | t.pallet_xcm.pallet.Origin.Response +export type Origin = + | t.types.pallet_xcm.pallet.Origin.Xcm + | t.types.pallet_xcm.pallet.Origin.Response export namespace Origin { export interface Xcm { type: "Xcm" - value: t.xcm.v1.multilocation.MultiLocation + value: t.types.xcm.v1.multilocation.MultiLocation } export interface Response { type: "Response" - value: t.xcm.v1.multilocation.MultiLocation + value: t.types.xcm.v1.multilocation.MultiLocation } export function Xcm( - value: t.pallet_xcm.pallet.Origin.Xcm["value"], - ): t.pallet_xcm.pallet.Origin.Xcm { + value: t.types.pallet_xcm.pallet.Origin.Xcm["value"], + ): t.types.pallet_xcm.pallet.Origin.Xcm { return { type: "Xcm", value } } export function Response( - value: t.pallet_xcm.pallet.Origin.Response["value"], - ): t.pallet_xcm.pallet.Origin.Response { + value: t.types.pallet_xcm.pallet.Origin.Response["value"], + ): t.types.pallet_xcm.pallet.Origin.Response { return { type: "Response", value } } } export type QueryStatus = - | t.pallet_xcm.pallet.QueryStatus.Pending - | t.pallet_xcm.pallet.QueryStatus.VersionNotifier - | t.pallet_xcm.pallet.QueryStatus.Ready + | t.types.pallet_xcm.pallet.QueryStatus.Pending + | t.types.pallet_xcm.pallet.QueryStatus.VersionNotifier + | t.types.pallet_xcm.pallet.QueryStatus.Ready export namespace QueryStatus { export interface Pending { type: "Pending" - responder: t.xcm.VersionedMultiLocation - maybe_notify: [t.u8, t.u8] | undefined - timeout: t.u32 + responder: t.types.xcm.VersionedMultiLocation + maybe_notify: [t.types.u8, t.types.u8] | undefined + timeout: t.types.u32 } export interface VersionNotifier { type: "VersionNotifier" - origin: t.xcm.VersionedMultiLocation + origin: t.types.xcm.VersionedMultiLocation is_active: boolean } export interface Ready { type: "Ready" - response: t.xcm.VersionedResponse - at: t.u32 + response: t.types.xcm.VersionedResponse + at: t.types.u32 } export function Pending( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.Pending { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.Pending { return { type: "Pending", ...value } } export function VersionNotifier( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.VersionNotifier { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.VersionNotifier { return { type: "VersionNotifier", ...value } } export function Ready( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.Ready { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.Ready { return { type: "Ready", ...value } } } export type VersionMigrationStage = - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers - | t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers + | t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets export namespace VersionMigrationStage { export interface MigrateSupportedVersion { type: "MigrateSupportedVersion" @@ -865,18 +873,18 @@ export namespace VersionMigrationStage { export interface MigrateAndNotifyOldTargets { type: "MigrateAndNotifyOldTargets" } - export function MigrateSupportedVersion(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion { + export function MigrateSupportedVersion(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion { return { type: "MigrateSupportedVersion" } } - export function MigrateVersionNotifiers(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers { + export function MigrateVersionNotifiers(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers { return { type: "MigrateVersionNotifiers" } } export function NotifyCurrentTargets( - value: t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets["value"], - ): t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets { + value: t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets["value"], + ): t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets { return { type: "NotifyCurrentTargets", value } } - export function MigrateAndNotifyOldTargets(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets { + export function MigrateAndNotifyOldTargets(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets { return { type: "MigrateAndNotifyOldTargets" } } } diff --git a/codegen/_output/kusama/types/polkadot_core_primitives.ts b/codegen/_output/kusama/types/polkadot_core_primitives.ts new file mode 100644 index 000000000..535b94e7a --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_core_primitives.ts @@ -0,0 +1,50 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $candidateHash: $.Codec = _codec.$114 + +export const $inboundDownwardMessage: $.Codec< + t.types.polkadot_core_primitives.InboundDownwardMessage +> = _codec.$683 + +export const $inboundHrmpMessage: $.Codec = + _codec.$691 + +export const $outboundHrmpMessage: $.Codec = + _codec.$392 + +export type CandidateHash = t.types.primitive_types.H256 + +export function CandidateHash(value: t.types.polkadot_core_primitives.CandidateHash) { + return value +} + +export interface InboundDownwardMessage { + sent_at: t.types.u32 + msg: Uint8Array +} + +export function InboundDownwardMessage( + value: t.types.polkadot_core_primitives.InboundDownwardMessage, +) { + return value +} + +export interface InboundHrmpMessage { + sent_at: t.types.u32 + data: Uint8Array +} + +export function InboundHrmpMessage(value: t.types.polkadot_core_primitives.InboundHrmpMessage) { + return value +} + +export interface OutboundHrmpMessage { + recipient: t.types.polkadot_parachain.primitives.Id + data: Uint8Array +} + +export function OutboundHrmpMessage(value: t.types.polkadot_core_primitives.OutboundHrmpMessage) { + return value +} diff --git a/codegen/_output/kusama/polkadot_parachain/mod.ts b/codegen/_output/kusama/types/polkadot_parachain/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_parachain/mod.ts rename to codegen/_output/kusama/types/polkadot_parachain/mod.ts diff --git a/codegen/_output/kusama/types/polkadot_parachain/primitives.ts b/codegen/_output/kusama/types/polkadot_parachain/primitives.ts new file mode 100644 index 000000000..b1e2f7973 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_parachain/primitives.ts @@ -0,0 +1,52 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $headData: $.Codec = _codec.$104 + +export const $hrmpChannelId: $.Codec = + _codec.$112 + +export const $id: $.Codec = _codec.$98 + +export const $validationCode: $.Codec = + _codec.$394 + +export const $validationCodeHash: $.Codec< + t.types.polkadot_parachain.primitives.ValidationCodeHash +> = _codec.$103 + +export type HeadData = Uint8Array + +export function HeadData(value: t.types.polkadot_parachain.primitives.HeadData) { + return value +} + +export interface HrmpChannelId { + sender: t.types.polkadot_parachain.primitives.Id + recipient: t.types.polkadot_parachain.primitives.Id +} + +export function HrmpChannelId(value: t.types.polkadot_parachain.primitives.HrmpChannelId) { + return value +} + +export type Id = t.types.u32 + +export function Id(value: t.types.polkadot_parachain.primitives.Id) { + return value +} + +export type ValidationCode = Uint8Array + +export function ValidationCode(value: t.types.polkadot_parachain.primitives.ValidationCode) { + return value +} + +export type ValidationCodeHash = t.types.primitive_types.H256 + +export function ValidationCodeHash( + value: t.types.polkadot_parachain.primitives.ValidationCodeHash, +) { + return value +} diff --git a/codegen/_output/kusama/polkadot_primitives/mod.ts b/codegen/_output/kusama/types/polkadot_primitives/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_primitives/mod.ts rename to codegen/_output/kusama/types/polkadot_primitives/mod.ts diff --git a/codegen/_output/kusama/types/polkadot_primitives/v2/assignment_app.ts b/codegen/_output/kusama/types/polkadot_primitives/v2/assignment_app.ts new file mode 100644 index 000000000..0f57693fe --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_primitives/v2/assignment_app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$214 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.assignment_app.Public) { + return value +} diff --git a/codegen/_output/kusama/types/polkadot_primitives/v2/collator_app.ts b/codegen/_output/kusama/types/polkadot_primitives/v2/collator_app.ts new file mode 100644 index 000000000..380e89642 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_primitives/v2/collator_app.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$99 + +export const $signature: $.Codec = + _codec.$100 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.collator_app.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.polkadot_primitives.v2.collator_app.Signature) { + return value +} diff --git a/codegen/_output/kusama/types/polkadot_primitives/v2/mod.ts b/codegen/_output/kusama/types/polkadot_primitives/v2/mod.ts new file mode 100644 index 000000000..4a6f7229c --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_primitives/v2/mod.ts @@ -0,0 +1,375 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as assignment_app from "./assignment_app.ts" +export * as collator_app from "./collator_app.ts" +export * as signed from "./signed.ts" +export * as validator_app from "./validator_app.ts" + +export const $availabilityBitfield: $.Codec = + _codec.$382 + +export const $backedCandidate: $.Codec = _codec.$388 + +export const $candidateCommitments: $.Codec = + _codec.$390 + +export const $candidateDescriptor: $.Codec = + _codec.$97 + +export const $candidateReceipt: $.Codec = + _codec.$96 + +export const $committedCandidateReceipt: $.Codec< + t.types.polkadot_primitives.v2.CommittedCandidateReceipt +> = _codec.$389 + +export const $coreIndex: $.Codec = _codec.$105 + +export const $coreOccupied: $.Codec = _codec.$661 + +export const $disputeState: $.Codec = _codec.$699 + +export const $disputeStatement: $.Codec = + _codec.$401 + +export const $disputeStatementSet: $.Codec = + _codec.$398 + +export const $groupIndex: $.Codec = _codec.$106 + +export const $inherentData: $.Codec = _codec.$379 + +export const $invalidDisputeStatementKind: $.Codec< + t.types.polkadot_primitives.v2.InvalidDisputeStatementKind +> = _codec.$403 + +export const $parathreadClaim: $.Codec = _codec.$658 + +export const $parathreadEntry: $.Codec = _codec.$657 + +export const $pvfCheckStatement: $.Codec = + _codec.$405 + +export const $scrapedOnChainVotes: $.Codec = + _codec.$647 + +export const $sessionInfo: $.Codec = _codec.$696 + +export const $upgradeGoAhead: $.Codec = _codec.$676 + +export const $upgradeRestriction: $.Codec = + _codec.$677 + +export const $validDisputeStatementKind: $.Codec< + t.types.polkadot_primitives.v2.ValidDisputeStatementKind +> = _codec.$402 + +export const $validatorIndex: $.Codec = _codec.$385 + +export const $validityAttestation: $.Codec = + _codec.$396 + +export type AvailabilityBitfield = $.BitSequence + +export function AvailabilityBitfield(value: t.types.polkadot_primitives.v2.AvailabilityBitfield) { + return value +} + +export interface BackedCandidate { + candidate: t.types.polkadot_primitives.v2.CommittedCandidateReceipt + validity_votes: Array + validator_indices: $.BitSequence +} + +export function BackedCandidate(value: t.types.polkadot_primitives.v2.BackedCandidate) { + return value +} + +export interface CandidateCommitments { + upward_messages: Array + horizontal_messages: Array + new_validation_code: t.types.polkadot_parachain.primitives.ValidationCode | undefined + head_data: t.types.polkadot_parachain.primitives.HeadData + processed_downward_messages: t.types.u32 + hrmp_watermark: t.types.u32 +} + +export function CandidateCommitments(value: t.types.polkadot_primitives.v2.CandidateCommitments) { + return value +} + +export interface CandidateDescriptor { + para_id: t.types.polkadot_parachain.primitives.Id + relay_parent: t.types.primitive_types.H256 + collator: t.types.polkadot_primitives.v2.collator_app.Public + persisted_validation_data_hash: t.types.primitive_types.H256 + pov_hash: t.types.primitive_types.H256 + erasure_root: t.types.primitive_types.H256 + signature: t.types.polkadot_primitives.v2.collator_app.Signature + para_head: t.types.primitive_types.H256 + validation_code_hash: t.types.polkadot_parachain.primitives.ValidationCodeHash +} + +export function CandidateDescriptor(value: t.types.polkadot_primitives.v2.CandidateDescriptor) { + return value +} + +export interface CandidateReceipt { + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + commitments_hash: t.types.primitive_types.H256 +} + +export function CandidateReceipt(value: t.types.polkadot_primitives.v2.CandidateReceipt) { + return value +} + +export interface CommittedCandidateReceipt { + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + commitments: t.types.polkadot_primitives.v2.CandidateCommitments +} + +export function CommittedCandidateReceipt( + value: t.types.polkadot_primitives.v2.CommittedCandidateReceipt, +) { + return value +} + +export type CoreIndex = t.types.u32 + +export function CoreIndex(value: t.types.polkadot_primitives.v2.CoreIndex) { + return value +} + +export type CoreOccupied = + | t.types.polkadot_primitives.v2.CoreOccupied.Parathread + | t.types.polkadot_primitives.v2.CoreOccupied.Parachain +export namespace CoreOccupied { + export interface Parathread { + type: "Parathread" + value: t.types.polkadot_primitives.v2.ParathreadEntry + } + export interface Parachain { + type: "Parachain" + } + export function Parathread( + value: t.types.polkadot_primitives.v2.CoreOccupied.Parathread["value"], + ): t.types.polkadot_primitives.v2.CoreOccupied.Parathread { + return { type: "Parathread", value } + } + export function Parachain(): t.types.polkadot_primitives.v2.CoreOccupied.Parachain { + return { type: "Parachain" } + } +} + +export interface DisputeState { + validators_for: $.BitSequence + validators_against: $.BitSequence + start: t.types.u32 + concluded_at: t.types.u32 | undefined +} + +export function DisputeState(value: t.types.polkadot_primitives.v2.DisputeState) { + return value +} + +export type DisputeStatement = + | t.types.polkadot_primitives.v2.DisputeStatement.Valid + | t.types.polkadot_primitives.v2.DisputeStatement.Invalid +export namespace DisputeStatement { + export interface Valid { + type: "Valid" + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind + } + export interface Invalid { + type: "Invalid" + value: t.types.polkadot_primitives.v2.InvalidDisputeStatementKind + } + export function Valid( + value: t.types.polkadot_primitives.v2.DisputeStatement.Valid["value"], + ): t.types.polkadot_primitives.v2.DisputeStatement.Valid { + return { type: "Valid", value } + } + export function Invalid( + value: t.types.polkadot_primitives.v2.DisputeStatement.Invalid["value"], + ): t.types.polkadot_primitives.v2.DisputeStatement.Invalid { + return { type: "Invalid", value } + } +} + +export interface DisputeStatementSet { + candidate_hash: t.types.polkadot_core_primitives.CandidateHash + session: t.types.u32 + statements: Array< + [ + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, + ] + > +} + +export function DisputeStatementSet(value: t.types.polkadot_primitives.v2.DisputeStatementSet) { + return value +} + +export type GroupIndex = t.types.u32 + +export function GroupIndex(value: t.types.polkadot_primitives.v2.GroupIndex) { + return value +} + +export interface InherentData { + bitfields: Array + backed_candidates: Array + disputes: Array + parent_header: t.types.sp_runtime.generic.header.Header +} + +export function InherentData(value: t.types.polkadot_primitives.v2.InherentData) { + return value +} + +export type InvalidDisputeStatementKind = "Explicit" + +export type ParathreadClaim = [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_primitives.v2.collator_app.Public, +] + +export function ParathreadClaim(...value: t.types.polkadot_primitives.v2.ParathreadClaim) { + return value +} + +export interface ParathreadEntry { + claim: t.types.polkadot_primitives.v2.ParathreadClaim + retries: t.types.u32 +} + +export function ParathreadEntry(value: t.types.polkadot_primitives.v2.ParathreadEntry) { + return value +} + +export interface PvfCheckStatement { + accept: boolean + subject: t.types.polkadot_parachain.primitives.ValidationCodeHash + session_index: t.types.u32 + validator_index: t.types.polkadot_primitives.v2.ValidatorIndex +} + +export function PvfCheckStatement(value: t.types.polkadot_primitives.v2.PvfCheckStatement) { + return value +} + +export interface ScrapedOnChainVotes { + session: t.types.u32 + backing_validators_per_candidate: Array< + [ + t.types.polkadot_primitives.v2.CandidateReceipt, + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + >, + ] + > + disputes: Array +} + +export function ScrapedOnChainVotes(value: t.types.polkadot_primitives.v2.ScrapedOnChainVotes) { + return value +} + +export interface SessionInfo { + active_validator_indices: Array + random_seed: Uint8Array + dispute_period: t.types.u32 + validators: Array + discovery_keys: Array + assignment_keys: Array + validator_groups: Array> + n_cores: t.types.u32 + zeroth_delay_tranche_width: t.types.u32 + relay_vrf_modulo_samples: t.types.u32 + n_delay_tranches: t.types.u32 + no_show_slots: t.types.u32 + needed_approvals: t.types.u32 +} + +export function SessionInfo(value: t.types.polkadot_primitives.v2.SessionInfo) { + return value +} + +export type UpgradeGoAhead = "Abort" | "GoAhead" + +export type UpgradeRestriction = "Present" + +export type ValidDisputeStatementKind = + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking +export namespace ValidDisputeStatementKind { + export interface Explicit { + type: "Explicit" + } + export interface BackingSeconded { + type: "BackingSeconded" + value: t.types.primitive_types.H256 + } + export interface BackingValid { + type: "BackingValid" + value: t.types.primitive_types.H256 + } + export interface ApprovalChecking { + type: "ApprovalChecking" + } + export function Explicit(): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit { + return { type: "Explicit" } + } + export function BackingSeconded( + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded["value"], + ): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded { + return { type: "BackingSeconded", value } + } + export function BackingValid( + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid["value"], + ): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid { + return { type: "BackingValid", value } + } + export function ApprovalChecking(): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking { + return { type: "ApprovalChecking" } + } +} + +export type ValidatorIndex = t.types.u32 + +export function ValidatorIndex(value: t.types.polkadot_primitives.v2.ValidatorIndex) { + return value +} + +export type ValidityAttestation = + | t.types.polkadot_primitives.v2.ValidityAttestation.Implicit + | t.types.polkadot_primitives.v2.ValidityAttestation.Explicit +export namespace ValidityAttestation { + export interface Implicit { + type: "Implicit" + value: t.types.polkadot_primitives.v2.validator_app.Signature + } + export interface Explicit { + type: "Explicit" + value: t.types.polkadot_primitives.v2.validator_app.Signature + } + export function Implicit( + value: t.types.polkadot_primitives.v2.ValidityAttestation.Implicit["value"], + ): t.types.polkadot_primitives.v2.ValidityAttestation.Implicit { + return { type: "Implicit", value } + } + export function Explicit( + value: t.types.polkadot_primitives.v2.ValidityAttestation.Explicit["value"], + ): t.types.polkadot_primitives.v2.ValidityAttestation.Explicit { + return { type: "Explicit", value } + } +} diff --git a/codegen/_output/kusama/types/polkadot_primitives/v2/signed.ts b/codegen/_output/kusama/types/polkadot_primitives/v2/signed.ts new file mode 100644 index 000000000..20d05131a --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_primitives/v2/signed.ts @@ -0,0 +1,16 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $uncheckedSigned: $.Codec = + _codec.$381 + +export interface UncheckedSigned { + payload: t.types.polkadot_primitives.v2.AvailabilityBitfield + validator_index: t.types.polkadot_primitives.v2.ValidatorIndex + signature: t.types.polkadot_primitives.v2.validator_app.Signature +} + +export function UncheckedSigned(value: t.types.polkadot_primitives.v2.signed.UncheckedSigned) { + return value +} diff --git a/codegen/_output/kusama/types/polkadot_primitives/v2/validator_app.ts b/codegen/_output/kusama/types/polkadot_primitives/v2/validator_app.ts new file mode 100644 index 000000000..fc40bffc1 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_primitives/v2/validator_app.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$213 + +export const $signature: $.Codec = + _codec.$386 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.validator_app.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.polkadot_primitives.v2.validator_app.Signature) { + return value +} diff --git a/codegen/_output/kusama/types/polkadot_runtime.ts b/codegen/_output/kusama/types/polkadot_runtime.ts new file mode 100644 index 000000000..ad598446e --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime.ts @@ -0,0 +1,1224 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $nposCompactSolution16: $.Codec = + _codec.$312 + +export const $originCaller: $.Codec = _codec.$256 + +export const $proxyType: $.Codec = _codec.$79 + +export const $runtime: $.Codec = _codec.$737 + +export const $runtimeCall: $.Codec = _codec.$181 + +export const $runtimeEvent: $.Codec = _codec.$19 + +export const $sessionKeys: $.Codec = _codec.$212 + +export interface NposCompactSolution16 { + votes1: Array<[t.Compact, t.Compact]> + votes2: Array< + [ + t.Compact, + [t.Compact, t.Compact], + t.Compact, + ] + > + votes3: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes4: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes5: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes6: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes7: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes8: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes9: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes10: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes11: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes12: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes13: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes14: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes15: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes16: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > +} + +export function NposCompactSolution16(value: t.types.polkadot_runtime.NposCompactSolution16) { + return value +} + +export type OriginCaller = + | t.types.polkadot_runtime.OriginCaller.system + | t.types.polkadot_runtime.OriginCaller.Council + | t.types.polkadot_runtime.OriginCaller.TechnicalCommittee + | t.types.polkadot_runtime.OriginCaller.ParachainsOrigin + | t.types.polkadot_runtime.OriginCaller.XcmPallet + | t.types.polkadot_runtime.OriginCaller.Void +export namespace OriginCaller { + export interface system { + type: "system" + value: t.types.frame_support.dispatch.RawOrigin + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.RawOrigin + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.RawOrigin + } + export interface ParachainsOrigin { + type: "ParachainsOrigin" + value: t.types.polkadot_runtime_parachains.origin.pallet.Origin + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Origin + } + export interface Void { + type: "Void" + value: t.types.sp_core.Void + } + export function system( + value: t.types.polkadot_runtime.OriginCaller.system["value"], + ): t.types.polkadot_runtime.OriginCaller.system { + return { type: "system", value } + } + export function Council( + value: t.types.polkadot_runtime.OriginCaller.Council["value"], + ): t.types.polkadot_runtime.OriginCaller.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.OriginCaller.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.OriginCaller.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function ParachainsOrigin( + value: t.types.polkadot_runtime.OriginCaller.ParachainsOrigin["value"], + ): t.types.polkadot_runtime.OriginCaller.ParachainsOrigin { + return { type: "ParachainsOrigin", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.OriginCaller.XcmPallet["value"], + ): t.types.polkadot_runtime.OriginCaller.XcmPallet { + return { type: "XcmPallet", value } + } + export function Void( + value: t.types.polkadot_runtime.OriginCaller.Void["value"], + ): t.types.polkadot_runtime.OriginCaller.Void { + return { type: "Void", value } + } +} + +export type ProxyType = + | "Any" + | "NonTransfer" + | "Governance" + | "Staking" + | "IdentityJudgement" + | "CancelProxy" + | "Auction" + +export function Runtime() { + return null +} + +export type Runtime = null + +export type RuntimeCall = + | t.types.polkadot_runtime.RuntimeCall.System + | t.types.polkadot_runtime.RuntimeCall.Scheduler + | t.types.polkadot_runtime.RuntimeCall.Preimage + | t.types.polkadot_runtime.RuntimeCall.Babe + | t.types.polkadot_runtime.RuntimeCall.Timestamp + | t.types.polkadot_runtime.RuntimeCall.Indices + | t.types.polkadot_runtime.RuntimeCall.Balances + | t.types.polkadot_runtime.RuntimeCall.Authorship + | t.types.polkadot_runtime.RuntimeCall.Staking + | t.types.polkadot_runtime.RuntimeCall.Session + | t.types.polkadot_runtime.RuntimeCall.Grandpa + | t.types.polkadot_runtime.RuntimeCall.ImOnline + | t.types.polkadot_runtime.RuntimeCall.Democracy + | t.types.polkadot_runtime.RuntimeCall.Council + | t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee + | t.types.polkadot_runtime.RuntimeCall.PhragmenElection + | t.types.polkadot_runtime.RuntimeCall.TechnicalMembership + | t.types.polkadot_runtime.RuntimeCall.Treasury + | t.types.polkadot_runtime.RuntimeCall.Claims + | t.types.polkadot_runtime.RuntimeCall.Vesting + | t.types.polkadot_runtime.RuntimeCall.Utility + | t.types.polkadot_runtime.RuntimeCall.Identity + | t.types.polkadot_runtime.RuntimeCall.Proxy + | t.types.polkadot_runtime.RuntimeCall.Multisig + | t.types.polkadot_runtime.RuntimeCall.Bounties + | t.types.polkadot_runtime.RuntimeCall.ChildBounties + | t.types.polkadot_runtime.RuntimeCall.Tips + | t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase + | t.types.polkadot_runtime.RuntimeCall.VoterList + | t.types.polkadot_runtime.RuntimeCall.NominationPools + | t.types.polkadot_runtime.RuntimeCall.FastUnstake + | t.types.polkadot_runtime.RuntimeCall.Configuration + | t.types.polkadot_runtime.RuntimeCall.ParasShared + | t.types.polkadot_runtime.RuntimeCall.ParaInclusion + | t.types.polkadot_runtime.RuntimeCall.ParaInherent + | t.types.polkadot_runtime.RuntimeCall.Paras + | t.types.polkadot_runtime.RuntimeCall.Initializer + | t.types.polkadot_runtime.RuntimeCall.Dmp + | t.types.polkadot_runtime.RuntimeCall.Ump + | t.types.polkadot_runtime.RuntimeCall.Hrmp + | t.types.polkadot_runtime.RuntimeCall.ParasDisputes + | t.types.polkadot_runtime.RuntimeCall.Registrar + | t.types.polkadot_runtime.RuntimeCall.Slots + | t.types.polkadot_runtime.RuntimeCall.Auctions + | t.types.polkadot_runtime.RuntimeCall.Crowdloan + | t.types.polkadot_runtime.RuntimeCall.XcmPallet +export namespace RuntimeCall { + export interface System { + type: "System" + value: t.types.frame_system.pallet.Call + } + export interface Scheduler { + type: "Scheduler" + value: t.types.pallet_scheduler.pallet.Call + } + export interface Preimage { + type: "Preimage" + value: t.types.pallet_preimage.pallet.Call + } + export interface Babe { + type: "Babe" + value: t.types.pallet_babe.pallet.Call + } + export interface Timestamp { + type: "Timestamp" + value: t.types.pallet_timestamp.pallet.Call + } + export interface Indices { + type: "Indices" + value: t.types.pallet_indices.pallet.Call + } + export interface Balances { + type: "Balances" + value: t.types.pallet_balances.pallet.Call + } + export interface Authorship { + type: "Authorship" + value: t.types.pallet_authorship.pallet.Call + } + export interface Staking { + type: "Staking" + value: t.types.pallet_staking.pallet.pallet.Call + } + export interface Session { + type: "Session" + value: t.types.pallet_session.pallet.Call + } + export interface Grandpa { + type: "Grandpa" + value: t.types.pallet_grandpa.pallet.Call + } + export interface ImOnline { + type: "ImOnline" + value: t.types.pallet_im_online.pallet.Call + } + export interface Democracy { + type: "Democracy" + value: t.types.pallet_democracy.pallet.Call + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.pallet.Call + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.pallet.Call + } + export interface PhragmenElection { + type: "PhragmenElection" + value: t.types.pallet_elections_phragmen.pallet.Call + } + export interface TechnicalMembership { + type: "TechnicalMembership" + value: t.types.pallet_membership.pallet.Call + } + export interface Treasury { + type: "Treasury" + value: t.types.pallet_treasury.pallet.Call + } + export interface Claims { + type: "Claims" + value: t.types.polkadot_runtime_common.claims.pallet.Call + } + export interface Vesting { + type: "Vesting" + value: t.types.pallet_vesting.pallet.Call + } + export interface Utility { + type: "Utility" + value: t.types.pallet_utility.pallet.Call + } + export interface Identity { + type: "Identity" + value: t.types.pallet_identity.pallet.Call + } + export interface Proxy { + type: "Proxy" + value: t.types.pallet_proxy.pallet.Call + } + export interface Multisig { + type: "Multisig" + value: t.types.pallet_multisig.pallet.Call + } + export interface Bounties { + type: "Bounties" + value: t.types.pallet_bounties.pallet.Call + } + export interface ChildBounties { + type: "ChildBounties" + value: t.types.pallet_child_bounties.pallet.Call + } + export interface Tips { + type: "Tips" + value: t.types.pallet_tips.pallet.Call + } + export interface ElectionProviderMultiPhase { + type: "ElectionProviderMultiPhase" + value: t.types.pallet_election_provider_multi_phase.pallet.Call + } + export interface VoterList { + type: "VoterList" + value: t.types.pallet_bags_list.pallet.Call + } + export interface NominationPools { + type: "NominationPools" + value: t.types.pallet_nomination_pools.pallet.Call + } + export interface FastUnstake { + type: "FastUnstake" + value: t.types.pallet_fast_unstake.pallet.Call + } + export interface Configuration { + type: "Configuration" + value: t.types.polkadot_runtime_parachains.configuration.pallet.Call + } + export interface ParasShared { + type: "ParasShared" + value: t.types.polkadot_runtime_parachains.shared.pallet.Call + } + export interface ParaInclusion { + type: "ParaInclusion" + value: t.types.polkadot_runtime_parachains.inclusion.pallet.Call + } + export interface ParaInherent { + type: "ParaInherent" + value: t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call + } + export interface Paras { + type: "Paras" + value: t.types.polkadot_runtime_parachains.paras.pallet.Call + } + export interface Initializer { + type: "Initializer" + value: t.types.polkadot_runtime_parachains.initializer.pallet.Call + } + export interface Dmp { + type: "Dmp" + value: t.types.polkadot_runtime_parachains.dmp.pallet.Call + } + export interface Ump { + type: "Ump" + value: t.types.polkadot_runtime_parachains.ump.pallet.Call + } + export interface Hrmp { + type: "Hrmp" + value: t.types.polkadot_runtime_parachains.hrmp.pallet.Call + } + export interface ParasDisputes { + type: "ParasDisputes" + value: t.types.polkadot_runtime_parachains.disputes.pallet.Call + } + export interface Registrar { + type: "Registrar" + value: t.types.polkadot_runtime_common.paras_registrar.pallet.Call + } + export interface Slots { + type: "Slots" + value: t.types.polkadot_runtime_common.slots.pallet.Call + } + export interface Auctions { + type: "Auctions" + value: t.types.polkadot_runtime_common.auctions.pallet.Call + } + export interface Crowdloan { + type: "Crowdloan" + value: t.types.polkadot_runtime_common.crowdloan.pallet.Call + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Call + } + export function System( + value: t.types.polkadot_runtime.RuntimeCall.System["value"], + ): t.types.polkadot_runtime.RuntimeCall.System { + return { type: "System", value } + } + export function Scheduler( + value: t.types.polkadot_runtime.RuntimeCall.Scheduler["value"], + ): t.types.polkadot_runtime.RuntimeCall.Scheduler { + return { type: "Scheduler", value } + } + export function Preimage( + value: t.types.polkadot_runtime.RuntimeCall.Preimage["value"], + ): t.types.polkadot_runtime.RuntimeCall.Preimage { + return { type: "Preimage", value } + } + export function Babe( + value: t.types.polkadot_runtime.RuntimeCall.Babe["value"], + ): t.types.polkadot_runtime.RuntimeCall.Babe { + return { type: "Babe", value } + } + export function Timestamp( + value: t.types.polkadot_runtime.RuntimeCall.Timestamp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Timestamp { + return { type: "Timestamp", value } + } + export function Indices( + value: t.types.polkadot_runtime.RuntimeCall.Indices["value"], + ): t.types.polkadot_runtime.RuntimeCall.Indices { + return { type: "Indices", value } + } + export function Balances( + value: t.types.polkadot_runtime.RuntimeCall.Balances["value"], + ): t.types.polkadot_runtime.RuntimeCall.Balances { + return { type: "Balances", value } + } + export function Authorship( + value: t.types.polkadot_runtime.RuntimeCall.Authorship["value"], + ): t.types.polkadot_runtime.RuntimeCall.Authorship { + return { type: "Authorship", value } + } + export function Staking( + value: t.types.polkadot_runtime.RuntimeCall.Staking["value"], + ): t.types.polkadot_runtime.RuntimeCall.Staking { + return { type: "Staking", value } + } + export function Session( + value: t.types.polkadot_runtime.RuntimeCall.Session["value"], + ): t.types.polkadot_runtime.RuntimeCall.Session { + return { type: "Session", value } + } + export function Grandpa( + value: t.types.polkadot_runtime.RuntimeCall.Grandpa["value"], + ): t.types.polkadot_runtime.RuntimeCall.Grandpa { + return { type: "Grandpa", value } + } + export function ImOnline( + value: t.types.polkadot_runtime.RuntimeCall.ImOnline["value"], + ): t.types.polkadot_runtime.RuntimeCall.ImOnline { + return { type: "ImOnline", value } + } + export function Democracy( + value: t.types.polkadot_runtime.RuntimeCall.Democracy["value"], + ): t.types.polkadot_runtime.RuntimeCall.Democracy { + return { type: "Democracy", value } + } + export function Council( + value: t.types.polkadot_runtime.RuntimeCall.Council["value"], + ): t.types.polkadot_runtime.RuntimeCall.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function PhragmenElection( + value: t.types.polkadot_runtime.RuntimeCall.PhragmenElection["value"], + ): t.types.polkadot_runtime.RuntimeCall.PhragmenElection { + return { type: "PhragmenElection", value } + } + export function TechnicalMembership( + value: t.types.polkadot_runtime.RuntimeCall.TechnicalMembership["value"], + ): t.types.polkadot_runtime.RuntimeCall.TechnicalMembership { + return { type: "TechnicalMembership", value } + } + export function Treasury( + value: t.types.polkadot_runtime.RuntimeCall.Treasury["value"], + ): t.types.polkadot_runtime.RuntimeCall.Treasury { + return { type: "Treasury", value } + } + export function Claims( + value: t.types.polkadot_runtime.RuntimeCall.Claims["value"], + ): t.types.polkadot_runtime.RuntimeCall.Claims { + return { type: "Claims", value } + } + export function Vesting( + value: t.types.polkadot_runtime.RuntimeCall.Vesting["value"], + ): t.types.polkadot_runtime.RuntimeCall.Vesting { + return { type: "Vesting", value } + } + export function Utility( + value: t.types.polkadot_runtime.RuntimeCall.Utility["value"], + ): t.types.polkadot_runtime.RuntimeCall.Utility { + return { type: "Utility", value } + } + export function Identity( + value: t.types.polkadot_runtime.RuntimeCall.Identity["value"], + ): t.types.polkadot_runtime.RuntimeCall.Identity { + return { type: "Identity", value } + } + export function Proxy( + value: t.types.polkadot_runtime.RuntimeCall.Proxy["value"], + ): t.types.polkadot_runtime.RuntimeCall.Proxy { + return { type: "Proxy", value } + } + export function Multisig( + value: t.types.polkadot_runtime.RuntimeCall.Multisig["value"], + ): t.types.polkadot_runtime.RuntimeCall.Multisig { + return { type: "Multisig", value } + } + export function Bounties( + value: t.types.polkadot_runtime.RuntimeCall.Bounties["value"], + ): t.types.polkadot_runtime.RuntimeCall.Bounties { + return { type: "Bounties", value } + } + export function ChildBounties( + value: t.types.polkadot_runtime.RuntimeCall.ChildBounties["value"], + ): t.types.polkadot_runtime.RuntimeCall.ChildBounties { + return { type: "ChildBounties", value } + } + export function Tips( + value: t.types.polkadot_runtime.RuntimeCall.Tips["value"], + ): t.types.polkadot_runtime.RuntimeCall.Tips { + return { type: "Tips", value } + } + export function ElectionProviderMultiPhase( + value: t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase["value"], + ): t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase { + return { type: "ElectionProviderMultiPhase", value } + } + export function VoterList( + value: t.types.polkadot_runtime.RuntimeCall.VoterList["value"], + ): t.types.polkadot_runtime.RuntimeCall.VoterList { + return { type: "VoterList", value } + } + export function NominationPools( + value: t.types.polkadot_runtime.RuntimeCall.NominationPools["value"], + ): t.types.polkadot_runtime.RuntimeCall.NominationPools { + return { type: "NominationPools", value } + } + export function FastUnstake( + value: t.types.polkadot_runtime.RuntimeCall.FastUnstake["value"], + ): t.types.polkadot_runtime.RuntimeCall.FastUnstake { + return { type: "FastUnstake", value } + } + export function Configuration( + value: t.types.polkadot_runtime.RuntimeCall.Configuration["value"], + ): t.types.polkadot_runtime.RuntimeCall.Configuration { + return { type: "Configuration", value } + } + export function ParasShared( + value: t.types.polkadot_runtime.RuntimeCall.ParasShared["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParasShared { + return { type: "ParasShared", value } + } + export function ParaInclusion( + value: t.types.polkadot_runtime.RuntimeCall.ParaInclusion["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParaInclusion { + return { type: "ParaInclusion", value } + } + export function ParaInherent( + value: t.types.polkadot_runtime.RuntimeCall.ParaInherent["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParaInherent { + return { type: "ParaInherent", value } + } + export function Paras( + value: t.types.polkadot_runtime.RuntimeCall.Paras["value"], + ): t.types.polkadot_runtime.RuntimeCall.Paras { + return { type: "Paras", value } + } + export function Initializer( + value: t.types.polkadot_runtime.RuntimeCall.Initializer["value"], + ): t.types.polkadot_runtime.RuntimeCall.Initializer { + return { type: "Initializer", value } + } + export function Dmp( + value: t.types.polkadot_runtime.RuntimeCall.Dmp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Dmp { + return { type: "Dmp", value } + } + export function Ump( + value: t.types.polkadot_runtime.RuntimeCall.Ump["value"], + ): t.types.polkadot_runtime.RuntimeCall.Ump { + return { type: "Ump", value } + } + export function Hrmp( + value: t.types.polkadot_runtime.RuntimeCall.Hrmp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Hrmp { + return { type: "Hrmp", value } + } + export function ParasDisputes( + value: t.types.polkadot_runtime.RuntimeCall.ParasDisputes["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParasDisputes { + return { type: "ParasDisputes", value } + } + export function Registrar( + value: t.types.polkadot_runtime.RuntimeCall.Registrar["value"], + ): t.types.polkadot_runtime.RuntimeCall.Registrar { + return { type: "Registrar", value } + } + export function Slots( + value: t.types.polkadot_runtime.RuntimeCall.Slots["value"], + ): t.types.polkadot_runtime.RuntimeCall.Slots { + return { type: "Slots", value } + } + export function Auctions( + value: t.types.polkadot_runtime.RuntimeCall.Auctions["value"], + ): t.types.polkadot_runtime.RuntimeCall.Auctions { + return { type: "Auctions", value } + } + export function Crowdloan( + value: t.types.polkadot_runtime.RuntimeCall.Crowdloan["value"], + ): t.types.polkadot_runtime.RuntimeCall.Crowdloan { + return { type: "Crowdloan", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.RuntimeCall.XcmPallet["value"], + ): t.types.polkadot_runtime.RuntimeCall.XcmPallet { + return { type: "XcmPallet", value } + } +} + +export type RuntimeEvent = + | t.types.polkadot_runtime.RuntimeEvent.System + | t.types.polkadot_runtime.RuntimeEvent.Scheduler + | t.types.polkadot_runtime.RuntimeEvent.Preimage + | t.types.polkadot_runtime.RuntimeEvent.Indices + | t.types.polkadot_runtime.RuntimeEvent.Balances + | t.types.polkadot_runtime.RuntimeEvent.TransactionPayment + | t.types.polkadot_runtime.RuntimeEvent.Staking + | t.types.polkadot_runtime.RuntimeEvent.Offences + | t.types.polkadot_runtime.RuntimeEvent.Session + | t.types.polkadot_runtime.RuntimeEvent.Grandpa + | t.types.polkadot_runtime.RuntimeEvent.ImOnline + | t.types.polkadot_runtime.RuntimeEvent.Democracy + | t.types.polkadot_runtime.RuntimeEvent.Council + | t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee + | t.types.polkadot_runtime.RuntimeEvent.PhragmenElection + | t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership + | t.types.polkadot_runtime.RuntimeEvent.Treasury + | t.types.polkadot_runtime.RuntimeEvent.Claims + | t.types.polkadot_runtime.RuntimeEvent.Vesting + | t.types.polkadot_runtime.RuntimeEvent.Utility + | t.types.polkadot_runtime.RuntimeEvent.Identity + | t.types.polkadot_runtime.RuntimeEvent.Proxy + | t.types.polkadot_runtime.RuntimeEvent.Multisig + | t.types.polkadot_runtime.RuntimeEvent.Bounties + | t.types.polkadot_runtime.RuntimeEvent.ChildBounties + | t.types.polkadot_runtime.RuntimeEvent.Tips + | t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase + | t.types.polkadot_runtime.RuntimeEvent.VoterList + | t.types.polkadot_runtime.RuntimeEvent.NominationPools + | t.types.polkadot_runtime.RuntimeEvent.FastUnstake + | t.types.polkadot_runtime.RuntimeEvent.ParaInclusion + | t.types.polkadot_runtime.RuntimeEvent.Paras + | t.types.polkadot_runtime.RuntimeEvent.Ump + | t.types.polkadot_runtime.RuntimeEvent.Hrmp + | t.types.polkadot_runtime.RuntimeEvent.ParasDisputes + | t.types.polkadot_runtime.RuntimeEvent.Registrar + | t.types.polkadot_runtime.RuntimeEvent.Slots + | t.types.polkadot_runtime.RuntimeEvent.Auctions + | t.types.polkadot_runtime.RuntimeEvent.Crowdloan + | t.types.polkadot_runtime.RuntimeEvent.XcmPallet +export namespace RuntimeEvent { + export interface System { + type: "System" + value: t.types.frame_system.pallet.Event + } + export interface Scheduler { + type: "Scheduler" + value: t.types.pallet_scheduler.pallet.Event + } + export interface Preimage { + type: "Preimage" + value: t.types.pallet_preimage.pallet.Event + } + export interface Indices { + type: "Indices" + value: t.types.pallet_indices.pallet.Event + } + export interface Balances { + type: "Balances" + value: t.types.pallet_balances.pallet.Event + } + export interface TransactionPayment { + type: "TransactionPayment" + value: t.types.pallet_transaction_payment.pallet.Event + } + export interface Staking { + type: "Staking" + value: t.types.pallet_staking.pallet.pallet.Event + } + export interface Offences { + type: "Offences" + value: t.types.pallet_offences.pallet.Event + } + export interface Session { + type: "Session" + value: t.types.pallet_session.pallet.Event + } + export interface Grandpa { + type: "Grandpa" + value: t.types.pallet_grandpa.pallet.Event + } + export interface ImOnline { + type: "ImOnline" + value: t.types.pallet_im_online.pallet.Event + } + export interface Democracy { + type: "Democracy" + value: t.types.pallet_democracy.pallet.Event + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.pallet.Event + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.pallet.Event + } + export interface PhragmenElection { + type: "PhragmenElection" + value: t.types.pallet_elections_phragmen.pallet.Event + } + export interface TechnicalMembership { + type: "TechnicalMembership" + value: t.types.pallet_membership.pallet.Event + } + export interface Treasury { + type: "Treasury" + value: t.types.pallet_treasury.pallet.Event + } + export interface Claims { + type: "Claims" + value: t.types.polkadot_runtime_common.claims.pallet.Event + } + export interface Vesting { + type: "Vesting" + value: t.types.pallet_vesting.pallet.Event + } + export interface Utility { + type: "Utility" + value: t.types.pallet_utility.pallet.Event + } + export interface Identity { + type: "Identity" + value: t.types.pallet_identity.pallet.Event + } + export interface Proxy { + type: "Proxy" + value: t.types.pallet_proxy.pallet.Event + } + export interface Multisig { + type: "Multisig" + value: t.types.pallet_multisig.pallet.Event + } + export interface Bounties { + type: "Bounties" + value: t.types.pallet_bounties.pallet.Event + } + export interface ChildBounties { + type: "ChildBounties" + value: t.types.pallet_child_bounties.pallet.Event + } + export interface Tips { + type: "Tips" + value: t.types.pallet_tips.pallet.Event + } + export interface ElectionProviderMultiPhase { + type: "ElectionProviderMultiPhase" + value: t.types.pallet_election_provider_multi_phase.pallet.Event + } + export interface VoterList { + type: "VoterList" + value: t.types.pallet_bags_list.pallet.Event + } + export interface NominationPools { + type: "NominationPools" + value: t.types.pallet_nomination_pools.pallet.Event + } + export interface FastUnstake { + type: "FastUnstake" + value: t.types.pallet_fast_unstake.pallet.Event + } + export interface ParaInclusion { + type: "ParaInclusion" + value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event + } + export interface Paras { + type: "Paras" + value: t.types.polkadot_runtime_parachains.paras.pallet.Event + } + export interface Ump { + type: "Ump" + value: t.types.polkadot_runtime_parachains.ump.pallet.Event + } + export interface Hrmp { + type: "Hrmp" + value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event + } + export interface ParasDisputes { + type: "ParasDisputes" + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event + } + export interface Registrar { + type: "Registrar" + value: t.types.polkadot_runtime_common.paras_registrar.pallet.Event + } + export interface Slots { + type: "Slots" + value: t.types.polkadot_runtime_common.slots.pallet.Event + } + export interface Auctions { + type: "Auctions" + value: t.types.polkadot_runtime_common.auctions.pallet.Event + } + export interface Crowdloan { + type: "Crowdloan" + value: t.types.polkadot_runtime_common.crowdloan.pallet.Event + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Event + } + export function System( + value: t.types.polkadot_runtime.RuntimeEvent.System["value"], + ): t.types.polkadot_runtime.RuntimeEvent.System { + return { type: "System", value } + } + export function Scheduler( + value: t.types.polkadot_runtime.RuntimeEvent.Scheduler["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Scheduler { + return { type: "Scheduler", value } + } + export function Preimage( + value: t.types.polkadot_runtime.RuntimeEvent.Preimage["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Preimage { + return { type: "Preimage", value } + } + export function Indices( + value: t.types.polkadot_runtime.RuntimeEvent.Indices["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Indices { + return { type: "Indices", value } + } + export function Balances( + value: t.types.polkadot_runtime.RuntimeEvent.Balances["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Balances { + return { type: "Balances", value } + } + export function TransactionPayment( + value: t.types.polkadot_runtime.RuntimeEvent.TransactionPayment["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TransactionPayment { + return { type: "TransactionPayment", value } + } + export function Staking( + value: t.types.polkadot_runtime.RuntimeEvent.Staking["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Staking { + return { type: "Staking", value } + } + export function Offences( + value: t.types.polkadot_runtime.RuntimeEvent.Offences["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Offences { + return { type: "Offences", value } + } + export function Session( + value: t.types.polkadot_runtime.RuntimeEvent.Session["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Session { + return { type: "Session", value } + } + export function Grandpa( + value: t.types.polkadot_runtime.RuntimeEvent.Grandpa["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Grandpa { + return { type: "Grandpa", value } + } + export function ImOnline( + value: t.types.polkadot_runtime.RuntimeEvent.ImOnline["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ImOnline { + return { type: "ImOnline", value } + } + export function Democracy( + value: t.types.polkadot_runtime.RuntimeEvent.Democracy["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Democracy { + return { type: "Democracy", value } + } + export function Council( + value: t.types.polkadot_runtime.RuntimeEvent.Council["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function PhragmenElection( + value: t.types.polkadot_runtime.RuntimeEvent.PhragmenElection["value"], + ): t.types.polkadot_runtime.RuntimeEvent.PhragmenElection { + return { type: "PhragmenElection", value } + } + export function TechnicalMembership( + value: t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership { + return { type: "TechnicalMembership", value } + } + export function Treasury( + value: t.types.polkadot_runtime.RuntimeEvent.Treasury["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Treasury { + return { type: "Treasury", value } + } + export function Claims( + value: t.types.polkadot_runtime.RuntimeEvent.Claims["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Claims { + return { type: "Claims", value } + } + export function Vesting( + value: t.types.polkadot_runtime.RuntimeEvent.Vesting["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Vesting { + return { type: "Vesting", value } + } + export function Utility( + value: t.types.polkadot_runtime.RuntimeEvent.Utility["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Utility { + return { type: "Utility", value } + } + export function Identity( + value: t.types.polkadot_runtime.RuntimeEvent.Identity["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Identity { + return { type: "Identity", value } + } + export function Proxy( + value: t.types.polkadot_runtime.RuntimeEvent.Proxy["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Proxy { + return { type: "Proxy", value } + } + export function Multisig( + value: t.types.polkadot_runtime.RuntimeEvent.Multisig["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Multisig { + return { type: "Multisig", value } + } + export function Bounties( + value: t.types.polkadot_runtime.RuntimeEvent.Bounties["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Bounties { + return { type: "Bounties", value } + } + export function ChildBounties( + value: t.types.polkadot_runtime.RuntimeEvent.ChildBounties["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ChildBounties { + return { type: "ChildBounties", value } + } + export function Tips( + value: t.types.polkadot_runtime.RuntimeEvent.Tips["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Tips { + return { type: "Tips", value } + } + export function ElectionProviderMultiPhase( + value: t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase { + return { type: "ElectionProviderMultiPhase", value } + } + export function VoterList( + value: t.types.polkadot_runtime.RuntimeEvent.VoterList["value"], + ): t.types.polkadot_runtime.RuntimeEvent.VoterList { + return { type: "VoterList", value } + } + export function NominationPools( + value: t.types.polkadot_runtime.RuntimeEvent.NominationPools["value"], + ): t.types.polkadot_runtime.RuntimeEvent.NominationPools { + return { type: "NominationPools", value } + } + export function FastUnstake( + value: t.types.polkadot_runtime.RuntimeEvent.FastUnstake["value"], + ): t.types.polkadot_runtime.RuntimeEvent.FastUnstake { + return { type: "FastUnstake", value } + } + export function ParaInclusion( + value: t.types.polkadot_runtime.RuntimeEvent.ParaInclusion["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ParaInclusion { + return { type: "ParaInclusion", value } + } + export function Paras( + value: t.types.polkadot_runtime.RuntimeEvent.Paras["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Paras { + return { type: "Paras", value } + } + export function Ump( + value: t.types.polkadot_runtime.RuntimeEvent.Ump["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Ump { + return { type: "Ump", value } + } + export function Hrmp( + value: t.types.polkadot_runtime.RuntimeEvent.Hrmp["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Hrmp { + return { type: "Hrmp", value } + } + export function ParasDisputes( + value: t.types.polkadot_runtime.RuntimeEvent.ParasDisputes["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ParasDisputes { + return { type: "ParasDisputes", value } + } + export function Registrar( + value: t.types.polkadot_runtime.RuntimeEvent.Registrar["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Registrar { + return { type: "Registrar", value } + } + export function Slots( + value: t.types.polkadot_runtime.RuntimeEvent.Slots["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Slots { + return { type: "Slots", value } + } + export function Auctions( + value: t.types.polkadot_runtime.RuntimeEvent.Auctions["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Auctions { + return { type: "Auctions", value } + } + export function Crowdloan( + value: t.types.polkadot_runtime.RuntimeEvent.Crowdloan["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Crowdloan { + return { type: "Crowdloan", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.RuntimeEvent.XcmPallet["value"], + ): t.types.polkadot_runtime.RuntimeEvent.XcmPallet { + return { type: "XcmPallet", value } + } +} + +export interface SessionKeys { + grandpa: t.types.sp_finality_grandpa.app.Public + babe: t.types.sp_consensus_babe.app.Public + im_online: t.types.pallet_im_online.sr25519.app_sr25519.Public + para_validator: t.types.polkadot_primitives.v2.validator_app.Public + para_assignment: t.types.polkadot_primitives.v2.assignment_app.Public + authority_discovery: t.types.sp_authority_discovery.app.Public +} + +export function SessionKeys(value: t.types.polkadot_runtime.SessionKeys) { + return value +} diff --git a/codegen/_output/kusama/polkadot_runtime_common/auctions/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_common/auctions/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_common/auctions/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_common/auctions/mod.ts diff --git a/codegen/_output/rococo/polkadot_runtime_common/auctions/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_common/auctions/pallet.ts similarity index 63% rename from codegen/_output/rococo/polkadot_runtime_common/auctions/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_common/auctions/pallet.ts index 4a353fb96..5e8049d64 100644 --- a/codegen/_output/rococo/polkadot_runtime_common/auctions/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_common/auctions/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$413 +export const $call: $.Codec = _codec.$413 -export const $error: $.Codec = _codec.$709 +export const $error: $.Codec = _codec.$709 -export const $event: $.Codec = _codec.$119 +export const $event: $.Codec = _codec.$119 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.auctions.pallet.Call.new_auction - | t.polkadot_runtime_common.auctions.pallet.Call.bid - | t.polkadot_runtime_common.auctions.pallet.Call.cancel_auction + | t.types.polkadot_runtime_common.auctions.pallet.Call.new_auction + | t.types.polkadot_runtime_common.auctions.pallet.Call.bid + | t.types.polkadot_runtime_common.auctions.pallet.Call.cancel_auction export namespace Call { /** * Create a new auction. @@ -23,8 +23,8 @@ export namespace Call { */ export interface new_auction { type: "new_auction" - duration: t.Compact - lease_period_index: t.Compact + duration: t.Compact + lease_period_index: t.Compact } /** * Make a new bid from an account (including a parachain account) for deploying a new @@ -46,11 +46,11 @@ export namespace Call { */ export interface bid { type: "bid" - para: t.Compact - auction_index: t.Compact - first_slot: t.Compact - last_slot: t.Compact - amount: t.Compact + para: t.Compact + auction_index: t.Compact + first_slot: t.Compact + last_slot: t.Compact + amount: t.Compact } /** * Cancel an in-progress auction. @@ -68,8 +68,8 @@ export namespace Call { * `lease_period_index` of the initial lease period of the four that are to be auctioned. */ export function new_auction( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Call.new_auction { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Call.new_auction { return { type: "new_auction", ...value } } /** @@ -91,8 +91,8 @@ export namespace Call { * bid win. This amount is held throughout the range. */ export function bid( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Call.bid { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Call.bid { return { type: "bid", ...value } } /** @@ -100,7 +100,7 @@ export namespace Call { * * Can only be called by Root origin. */ - export function cancel_auction(): t.polkadot_runtime_common.auctions.pallet.Call.cancel_auction { + export function cancel_auction(): t.types.polkadot_runtime_common.auctions.pallet.Call.cancel_auction { return { type: "cancel_auction" } } } @@ -117,13 +117,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted - | t.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed - | t.polkadot_runtime_common.auctions.pallet.Event.Reserved - | t.polkadot_runtime_common.auctions.pallet.Event.Unreserved - | t.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated - | t.polkadot_runtime_common.auctions.pallet.Event.BidAccepted - | t.polkadot_runtime_common.auctions.pallet.Event.WinningOffset + | t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted + | t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed + | t.types.polkadot_runtime_common.auctions.pallet.Event.Reserved + | t.types.polkadot_runtime_common.auctions.pallet.Event.Unreserved + | t.types.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated + | t.types.polkadot_runtime_common.auctions.pallet.Event.BidAccepted + | t.types.polkadot_runtime_common.auctions.pallet.Event.WinningOffset export namespace Event { /** * An auction started. Provides its index and the block number where it will begin to @@ -131,14 +131,14 @@ export namespace Event { */ export interface AuctionStarted { type: "AuctionStarted" - auction_index: t.u32 - lease_period: t.u32 - ending: t.u32 + auction_index: t.types.u32 + lease_period: t.types.u32 + ending: t.types.u32 } /** An auction ended. All funds become unreserved. */ export interface AuctionClosed { type: "AuctionClosed" - auction_index: t.u32 + auction_index: t.types.u32 } /** * Funds were reserved for a winning bid. First balance is the extra amount reserved. @@ -146,15 +146,15 @@ export namespace Event { */ export interface Reserved { type: "Reserved" - bidder: t.sp_core.crypto.AccountId32 - extra_reserved: t.u128 - total_amount: t.u128 + bidder: t.types.sp_core.crypto.AccountId32 + extra_reserved: t.types.u128 + total_amount: t.types.u128 } /** Funds were unreserved since bidder is no longer active. `[bidder, amount]` */ export interface Unreserved { type: "Unreserved" - bidder: t.sp_core.crypto.AccountId32 - amount: t.u128 + bidder: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve @@ -162,38 +162,38 @@ export namespace Event { */ export interface ReserveConfiscated { type: "ReserveConfiscated" - para_id: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - amount: t.u128 + para_id: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A new bid has been accepted as the current winner. */ export interface BidAccepted { type: "BidAccepted" - bidder: t.sp_core.crypto.AccountId32 - para_id: t.polkadot_parachain.primitives.Id - amount: t.u128 - first_slot: t.u32 - last_slot: t.u32 + bidder: t.types.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 + first_slot: t.types.u32 + last_slot: t.types.u32 } /** The winning offset was chosen for an auction. This will map into the `Winning` storage map. */ export interface WinningOffset { type: "WinningOffset" - auction_index: t.u32 - block_number: t.u32 + auction_index: t.types.u32 + block_number: t.types.u32 } /** * An auction started. Provides its index and the block number where it will begin to * close and the first lease period of the quadruplet that is auctioned. */ export function AuctionStarted( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted { return { type: "AuctionStarted", ...value } } /** An auction ended. All funds become unreserved. */ export function AuctionClosed( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed { return { type: "AuctionClosed", ...value } } /** @@ -201,14 +201,14 @@ export namespace Event { * Second is the total. */ export function Reserved( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.Reserved { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.Reserved { return { type: "Reserved", ...value } } /** Funds were unreserved since bidder is no longer active. `[bidder, amount]` */ export function Unreserved( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.Unreserved { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.Unreserved { return { type: "Unreserved", ...value } } /** @@ -216,20 +216,20 @@ export namespace Event { * but no parachain slot has been leased. */ export function ReserveConfiscated( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated { return { type: "ReserveConfiscated", ...value } } /** A new bid has been accepted as the current winner. */ export function BidAccepted( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.BidAccepted { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.BidAccepted { return { type: "BidAccepted", ...value } } /** The winning offset was chosen for an auction. This will map into the `Winning` storage map. */ export function WinningOffset( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.WinningOffset { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.WinningOffset { return { type: "WinningOffset", ...value } } } diff --git a/codegen/_output/kusama/types/polkadot_runtime_common/claims/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_common/claims/mod.ts new file mode 100644 index 000000000..f49778009 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_common/claims/mod.ts @@ -0,0 +1,38 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $ecdsaSignature: $.Codec = + _codec.$246 + +export const $ethereumAddress: $.Codec = + _codec.$73 + +export const $prevalidateAttests: $.Codec< + t.types.polkadot_runtime_common.claims.PrevalidateAttests +> = _codec.$736 + +export const $statementKind: $.Codec = + _codec.$251 + +export type EcdsaSignature = Uint8Array + +export function EcdsaSignature(value: t.types.polkadot_runtime_common.claims.EcdsaSignature) { + return value +} + +export type EthereumAddress = Uint8Array + +export function EthereumAddress(value: t.types.polkadot_runtime_common.claims.EthereumAddress) { + return value +} + +export function PrevalidateAttests() { + return null +} + +export type PrevalidateAttests = null + +export type StatementKind = "Regular" | "Saft" diff --git a/codegen/_output/polkadot/polkadot_runtime_common/claims/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_common/claims/pallet.ts similarity index 74% rename from codegen/_output/polkadot/polkadot_runtime_common/claims/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_common/claims/pallet.ts index 74fb89717..ccd1ddbab 100644 --- a/codegen/_output/polkadot/polkadot_runtime_common/claims/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_common/claims/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$245 +export const $call: $.Codec = _codec.$245 -export const $error: $.Codec = _codec.$562 +export const $error: $.Codec = _codec.$562 -export const $event: $.Codec = _codec.$72 +export const $event: $.Codec = _codec.$72 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.claims.pallet.Call.claim - | t.polkadot_runtime_common.claims.pallet.Call.mint_claim - | t.polkadot_runtime_common.claims.pallet.Call.claim_attest - | t.polkadot_runtime_common.claims.pallet.Call.attest - | t.polkadot_runtime_common.claims.pallet.Call.move_claim + | t.types.polkadot_runtime_common.claims.pallet.Call.claim + | t.types.polkadot_runtime_common.claims.pallet.Call.mint_claim + | t.types.polkadot_runtime_common.claims.pallet.Call.claim_attest + | t.types.polkadot_runtime_common.claims.pallet.Call.attest + | t.types.polkadot_runtime_common.claims.pallet.Call.move_claim export namespace Call { /** * Make a claim to collect your DOTs. @@ -44,8 +44,8 @@ export namespace Call { */ export interface claim { type: "claim" - dest: t.sp_core.crypto.AccountId32 - ethereum_signature: t.polkadot_runtime_common.claims.EcdsaSignature + dest: t.types.sp_core.crypto.AccountId32 + ethereum_signature: t.types.polkadot_runtime_common.claims.EcdsaSignature } /** * Mint a new claim to collect DOTs. @@ -66,10 +66,10 @@ export namespace Call { */ export interface mint_claim { type: "mint_claim" - who: t.polkadot_runtime_common.claims.EthereumAddress - value: t.u128 - vesting_schedule: [t.u128, t.u128, t.u32] | undefined - statement: t.polkadot_runtime_common.claims.StatementKind | undefined + who: t.types.polkadot_runtime_common.claims.EthereumAddress + value: t.types.u128 + vesting_schedule: [t.types.u128, t.types.u128, t.types.u32] | undefined + statement: t.types.polkadot_runtime_common.claims.StatementKind | undefined } /** * Make a claim to collect your DOTs by signing a statement. @@ -101,8 +101,8 @@ export namespace Call { */ export interface claim_attest { type: "claim_attest" - dest: t.sp_core.crypto.AccountId32 - ethereum_signature: t.polkadot_runtime_common.claims.EcdsaSignature + dest: t.types.sp_core.crypto.AccountId32 + ethereum_signature: t.types.polkadot_runtime_common.claims.EcdsaSignature statement: Uint8Array } /** @@ -130,9 +130,9 @@ export namespace Call { } export interface move_claim { type: "move_claim" - old: t.polkadot_runtime_common.claims.EthereumAddress - new: t.polkadot_runtime_common.claims.EthereumAddress - maybe_preclaim: t.sp_core.crypto.AccountId32 | undefined + old: t.types.polkadot_runtime_common.claims.EthereumAddress + new: t.types.polkadot_runtime_common.claims.EthereumAddress + maybe_preclaim: t.types.sp_core.crypto.AccountId32 | undefined } /** * Make a claim to collect your DOTs. @@ -161,8 +161,8 @@ export namespace Call { * */ export function claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.claim { return { type: "claim", ...value } } /** @@ -183,8 +183,8 @@ export namespace Call { * */ export function mint_claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.mint_claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.mint_claim { return { type: "mint_claim", ...value } } /** @@ -216,8 +216,8 @@ export namespace Call { * */ export function claim_attest( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.claim_attest { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.claim_attest { return { type: "claim_attest", ...value } } /** @@ -240,13 +240,13 @@ export namespace Call { * */ export function attest( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.attest { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.attest { return { type: "attest", ...value } } export function move_claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.move_claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.move_claim { return { type: "move_claim", ...value } } } @@ -261,19 +261,19 @@ export type Error = | "VestedBalanceExists" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.polkadot_runtime_common.claims.pallet.Event.Claimed +export type Event = t.types.polkadot_runtime_common.claims.pallet.Event.Claimed export namespace Event { /** Someone claimed some DOTs. */ export interface Claimed { type: "Claimed" - who: t.sp_core.crypto.AccountId32 - ethereum_address: t.polkadot_runtime_common.claims.EthereumAddress - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + ethereum_address: t.types.polkadot_runtime_common.claims.EthereumAddress + amount: t.types.u128 } /** Someone claimed some DOTs. */ export function Claimed( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Event.Claimed { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Event.Claimed { return { type: "Claimed", ...value } } } diff --git a/codegen/_output/kusama/types/polkadot_runtime_common/crowdloan/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_common/crowdloan/mod.ts new file mode 100644 index 000000000..9879ba1f4 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_common/crowdloan/mod.ts @@ -0,0 +1,59 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $fundInfo: $.Codec = _codec.$710 + +export const $lastContribution: $.Codec< + t.types.polkadot_runtime_common.crowdloan.LastContribution +> = _codec.$711 + +export interface FundInfo { + depositor: t.types.sp_core.crypto.AccountId32 + verifier: t.types.sp_runtime.MultiSigner | undefined + deposit: t.types.u128 + raised: t.types.u128 + end: t.types.u32 + cap: t.types.u128 + last_contribution: t.types.polkadot_runtime_common.crowdloan.LastContribution + first_period: t.types.u32 + last_period: t.types.u32 + fund_index: t.types.u32 +} + +export function FundInfo(value: t.types.polkadot_runtime_common.crowdloan.FundInfo) { + return value +} + +export type LastContribution = + | t.types.polkadot_runtime_common.crowdloan.LastContribution.Never + | t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding + | t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending +export namespace LastContribution { + export interface Never { + type: "Never" + } + export interface PreEnding { + type: "PreEnding" + value: t.types.u32 + } + export interface Ending { + type: "Ending" + value: t.types.u32 + } + export function Never(): t.types.polkadot_runtime_common.crowdloan.LastContribution.Never { + return { type: "Never" } + } + export function PreEnding( + value: t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding["value"], + ): t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding { + return { type: "PreEnding", value } + } + export function Ending( + value: t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending["value"], + ): t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending { + return { type: "Ending", value } + } +} diff --git a/codegen/_output/rococo/polkadot_runtime_common/crowdloan/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_common/crowdloan/pallet.ts similarity index 57% rename from codegen/_output/rococo/polkadot_runtime_common/crowdloan/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_common/crowdloan/pallet.ts index 1cdbdc4bb..194d2991e 100644 --- a/codegen/_output/rococo/polkadot_runtime_common/crowdloan/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_common/crowdloan/pallet.ts @@ -1,24 +1,24 @@ -import { $, C } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $, C } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$415 +export const $call: $.Codec = _codec.$415 -export const $error: $.Codec = _codec.$712 +export const $error: $.Codec = _codec.$712 -export const $event: $.Codec = _codec.$120 +export const $event: $.Codec = _codec.$120 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.crowdloan.pallet.Call.create - | t.polkadot_runtime_common.crowdloan.pallet.Call.contribute - | t.polkadot_runtime_common.crowdloan.pallet.Call.withdraw - | t.polkadot_runtime_common.crowdloan.pallet.Call.refund - | t.polkadot_runtime_common.crowdloan.pallet.Call.dissolve - | t.polkadot_runtime_common.crowdloan.pallet.Call.edit - | t.polkadot_runtime_common.crowdloan.pallet.Call.add_memo - | t.polkadot_runtime_common.crowdloan.pallet.Call.poke - | t.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.create + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.withdraw + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.refund + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.dissolve + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.edit + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.add_memo + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.poke + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all export namespace Call { /** * Create a new crowdloaning campaign for a parachain slot with the given lease period range. @@ -28,12 +28,12 @@ export namespace Call { */ export interface create { type: "create" - index: t.Compact - cap: t.Compact - first_period: t.Compact - last_period: t.Compact - end: t.Compact - verifier: t.sp_runtime.MultiSigner | undefined + index: t.Compact + cap: t.Compact + first_period: t.Compact + last_period: t.Compact + end: t.Compact + verifier: t.types.sp_runtime.MultiSigner | undefined } /** * Contribute to a crowd sale. This will transfer some balance over to fund a parachain @@ -41,9 +41,9 @@ export namespace Call { */ export interface contribute { type: "contribute" - index: t.Compact - value: t.Compact - signature: t.sp_runtime.MultiSignature | undefined + index: t.Compact + value: t.Compact + signature: t.types.sp_runtime.MultiSignature | undefined } /** * Withdraw full balance of a specific contributor. @@ -66,8 +66,8 @@ export namespace Call { */ export interface withdraw { type: "withdraw" - who: t.sp_core.crypto.AccountId32 - index: t.Compact + who: t.types.sp_core.crypto.AccountId32 + index: t.Compact } /** * Automatically refund contributors of an ended crowdloan. @@ -78,12 +78,12 @@ export namespace Call { */ export interface refund { type: "refund" - index: t.Compact + index: t.Compact } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export interface dissolve { type: "dissolve" - index: t.Compact + index: t.Compact } /** * Edit the configuration for an in-progress crowdloan. @@ -92,12 +92,12 @@ export namespace Call { */ export interface edit { type: "edit" - index: t.Compact - cap: t.Compact - first_period: t.Compact - last_period: t.Compact - end: t.Compact - verifier: t.sp_runtime.MultiSigner | undefined + index: t.Compact + cap: t.Compact + first_period: t.Compact + last_period: t.Compact + end: t.Compact + verifier: t.types.sp_runtime.MultiSigner | undefined } /** * Add an optional memo to an existing crowdloan contribution. @@ -106,7 +106,7 @@ export namespace Call { */ export interface add_memo { type: "add_memo" - index: t.polkadot_parachain.primitives.Id + index: t.types.polkadot_parachain.primitives.Id memo: Uint8Array } /** @@ -116,7 +116,7 @@ export namespace Call { */ export interface poke { type: "poke" - index: t.polkadot_parachain.primitives.Id + index: t.types.polkadot_parachain.primitives.Id } /** * Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain @@ -124,8 +124,8 @@ export namespace Call { */ export interface contribute_all { type: "contribute_all" - index: t.Compact - signature: t.sp_runtime.MultiSignature | undefined + index: t.Compact + signature: t.types.sp_runtime.MultiSignature | undefined } /** * Create a new crowdloaning campaign for a parachain slot with the given lease period range. @@ -134,8 +134,8 @@ export namespace Call { * by the parachain manager. */ export function create( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.create { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.create { return { type: "create", ...value } } /** @@ -143,8 +143,8 @@ export namespace Call { * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.contribute { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute { return { type: "contribute", ...value } } /** @@ -167,8 +167,8 @@ export namespace Call { * - `index`: The parachain to whose crowdloan the contribution was made. */ export function withdraw( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.withdraw { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.withdraw { return { type: "withdraw", ...value } } /** @@ -179,14 +179,14 @@ export namespace Call { * Origin must be signed, but can come from anyone. */ export function refund( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.refund { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.refund { return { type: "refund", ...value } } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export function dissolve( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.dissolve { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.dissolve { return { type: "dissolve", ...value } } /** @@ -195,8 +195,8 @@ export namespace Call { * Can only be called by Root origin. */ export function edit( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.edit { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.edit { return { type: "edit", ...value } } /** @@ -205,8 +205,8 @@ export namespace Call { * Origin must be Signed, and the user must have contributed to the crowdloan. */ export function add_memo( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.add_memo { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.add_memo { return { type: "add_memo", ...value } } /** @@ -215,8 +215,8 @@ export namespace Call { * Origin must be Signed, and the fund has non-zero raise. */ export function poke( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.poke { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.poke { return { type: "poke", ...value } } /** @@ -224,8 +224,8 @@ export namespace Call { * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute_all( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all { return { type: "contribute_all", ...value } } } @@ -258,35 +258,35 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.crowdloan.pallet.Event.Created - | t.polkadot_runtime_common.crowdloan.pallet.Event.Contributed - | t.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew - | t.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded - | t.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded - | t.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved - | t.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult - | t.polkadot_runtime_common.crowdloan.pallet.Event.Edited - | t.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated - | t.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Created + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Contributed + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Edited + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise export namespace Event { /** Create a new crowdloaning campaign. */ export interface Created { type: "Created" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Contributed to a crowd sale. */ export interface Contributed { type: "Contributed" - who: t.sp_core.crypto.AccountId32 - fund_index: t.polkadot_parachain.primitives.Id - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + fund_index: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 } /** Withdrew full balance of a contributor. */ export interface Withdrew { type: "Withdrew" - who: t.sp_core.crypto.AccountId32 - fund_index: t.polkadot_parachain.primitives.Id - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + fund_index: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 } /** * The loans in a fund have been partially dissolved, i.e. there are some left @@ -294,57 +294,57 @@ export namespace Event { */ export interface PartiallyRefunded { type: "PartiallyRefunded" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** All loans in a fund have been refunded. */ export interface AllRefunded { type: "AllRefunded" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Fund is dissolved. */ export interface Dissolved { type: "Dissolved" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** The result of trying to submit a new bid to the Slots pallet. */ export interface HandleBidResult { type: "HandleBidResult" - para_id: t.polkadot_parachain.primitives.Id - result: null | C.ChainError + para_id: t.types.polkadot_parachain.primitives.Id + result: null | C.ChainError } /** The configuration to a crowdloan has been edited. */ export interface Edited { type: "Edited" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** A memo has been updated. */ export interface MemoUpdated { type: "MemoUpdated" - who: t.sp_core.crypto.AccountId32 - para_id: t.polkadot_parachain.primitives.Id + who: t.types.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id memo: Uint8Array } /** A parachain has been moved to `NewRaise` */ export interface AddedToNewRaise { type: "AddedToNewRaise" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Create a new crowdloaning campaign. */ export function Created( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Created { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Created { return { type: "Created", ...value } } /** Contributed to a crowd sale. */ export function Contributed( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Contributed { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Contributed { return { type: "Contributed", ...value } } /** Withdrew full balance of a contributor. */ export function Withdrew( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew { return { type: "Withdrew", ...value } } /** @@ -352,44 +352,44 @@ export namespace Event { * over child keys that still need to be killed. */ export function PartiallyRefunded( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded { return { type: "PartiallyRefunded", ...value } } /** All loans in a fund have been refunded. */ export function AllRefunded( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded { return { type: "AllRefunded", ...value } } /** Fund is dissolved. */ export function Dissolved( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved { return { type: "Dissolved", ...value } } /** The result of trying to submit a new bid to the Slots pallet. */ export function HandleBidResult( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult { return { type: "HandleBidResult", ...value } } /** The configuration to a crowdloan has been edited. */ export function Edited( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Edited { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Edited { return { type: "Edited", ...value } } /** A memo has been updated. */ export function MemoUpdated( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated { return { type: "MemoUpdated", ...value } } /** A parachain has been moved to `NewRaise` */ export function AddedToNewRaise( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise { return { type: "AddedToNewRaise", ...value } } } diff --git a/codegen/_output/kusama/polkadot_runtime_common/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_common/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_common/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_common/mod.ts diff --git a/codegen/_output/kusama/types/polkadot_runtime_common/paras_registrar/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_common/paras_registrar/mod.ts new file mode 100644 index 000000000..f6bde2e47 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_common/paras_registrar/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $paraInfo: $.Codec = + _codec.$701 + +export interface ParaInfo { + manager: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + locked: boolean +} + +export function ParaInfo(value: t.types.polkadot_runtime_common.paras_registrar.ParaInfo) { + return value +} diff --git a/codegen/_output/rococo/polkadot_runtime_common/paras_registrar/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_common/paras_registrar/pallet.ts similarity index 65% rename from codegen/_output/rococo/polkadot_runtime_common/paras_registrar/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_common/paras_registrar/pallet.ts index 8dcb503a8..0eee601ee 100644 --- a/codegen/_output/rococo/polkadot_runtime_common/paras_registrar/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_common/paras_registrar/pallet.ts @@ -1,24 +1,27 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$411 +export const $call: $.Codec = + _codec.$411 -export const $error: $.Codec = _codec.$702 +export const $error: $.Codec = + _codec.$702 -export const $event: $.Codec = _codec.$117 +export const $event: $.Codec = + _codec.$117 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.paras_registrar.pallet.Call.register - | t.polkadot_runtime_common.paras_registrar.pallet.Call.force_register - | t.polkadot_runtime_common.paras_registrar.pallet.Call.deregister - | t.polkadot_runtime_common.paras_registrar.pallet.Call.swap - | t.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock - | t.polkadot_runtime_common.paras_registrar.pallet.Call.reserve - | t.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock - | t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade - | t.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.register + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.force_register + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.deregister + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.swap + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.reserve + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head export namespace Call { /** * Register head data and validation code for a reserved Para Id. @@ -38,9 +41,9 @@ export namespace Call { */ export interface register { type: "register" - id: t.polkadot_parachain.primitives.Id - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode + id: t.types.polkadot_parachain.primitives.Id + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Force the registration of a Para Id on the relay chain. @@ -52,11 +55,11 @@ export namespace Call { */ export interface force_register { type: "force_register" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 - id: t.polkadot_parachain.primitives.Id - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + id: t.types.polkadot_parachain.primitives.Id + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Deregister a Para Id, freeing all data and returning any deposit. @@ -65,7 +68,7 @@ export namespace Call { */ export interface deregister { type: "deregister" - id: t.polkadot_parachain.primitives.Id + id: t.types.polkadot_parachain.primitives.Id } /** * Swap a parachain with another parachain or parathread. @@ -82,8 +85,8 @@ export namespace Call { */ export interface swap { type: "swap" - id: t.polkadot_parachain.primitives.Id - other: t.polkadot_parachain.primitives.Id + id: t.types.polkadot_parachain.primitives.Id + other: t.types.polkadot_parachain.primitives.Id } /** * Remove a manager lock from a para. This will allow the manager of a @@ -93,7 +96,7 @@ export namespace Call { */ export interface remove_lock { type: "remove_lock" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Reserve a Para Id on the relay chain. @@ -122,7 +125,7 @@ export namespace Call { */ export interface add_lock { type: "add_lock" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Schedule a parachain upgrade. @@ -131,8 +134,8 @@ export namespace Call { */ export interface schedule_code_upgrade { type: "schedule_code_upgrade" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Set the parachain's current head. @@ -141,8 +144,8 @@ export namespace Call { */ export interface set_current_head { type: "set_current_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** * Register head data and validation code for a reserved Para Id. @@ -161,8 +164,8 @@ export namespace Call { * The `Registered` event is emitted in case of success. */ export function register( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.register { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.register { return { type: "register", ...value } } /** @@ -174,8 +177,8 @@ export namespace Call { * can be registered, including sub-1000 IDs which are System Parachains. */ export function force_register( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.force_register { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.force_register { return { type: "force_register", ...value } } /** @@ -184,8 +187,8 @@ export namespace Call { * The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread. */ export function deregister( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.deregister { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.deregister { return { type: "deregister", ...value } } /** @@ -202,8 +205,8 @@ export namespace Call { * and the auction deposit are switched. */ export function swap( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.swap { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.swap { return { type: "swap", ...value } } /** @@ -213,8 +216,8 @@ export namespace Call { * Can only be called by the Root origin or the parachain. */ export function remove_lock( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock { return { type: "remove_lock", ...value } } /** @@ -233,7 +236,7 @@ export namespace Call { * ## Events * The `Reserved` event is emitted in case of success, which provides the ID reserved for use. */ - export function reserve(): t.polkadot_runtime_common.paras_registrar.pallet.Call.reserve { + export function reserve(): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.reserve { return { type: "reserve" } } /** @@ -243,8 +246,8 @@ export namespace Call { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function add_lock( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock { return { type: "add_lock", ...value } } /** @@ -254,10 +257,10 @@ export namespace Call { */ export function schedule_code_upgrade( value: Omit< - t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, "type" >, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade { + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade { return { type: "schedule_code_upgrade", ...value } } /** @@ -266,8 +269,11 @@ export namespace Call { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function set_current_head( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head { + value: Omit< + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head, + "type" + >, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head { return { type: "set_current_head", ...value } } } @@ -291,37 +297,37 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Registered - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Registered + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved export namespace Event { export interface Registered { type: "Registered" - para_id: t.polkadot_parachain.primitives.Id - manager: t.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + manager: t.types.sp_core.crypto.AccountId32 } export interface Deregistered { type: "Deregistered" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } export interface Reserved { type: "Reserved" - para_id: t.polkadot_parachain.primitives.Id - who: t.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + who: t.types.sp_core.crypto.AccountId32 } export function Registered( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Registered { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Registered { return { type: "Registered", ...value } } export function Deregistered( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered { return { type: "Deregistered", ...value } } export function Reserved( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved { return { type: "Reserved", ...value } } } diff --git a/codegen/_output/kusama/polkadot_runtime_common/slots/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_common/slots/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_common/slots/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_common/slots/mod.ts diff --git a/codegen/_output/kusama/polkadot_runtime_common/slots/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_common/slots/pallet.ts similarity index 61% rename from codegen/_output/kusama/polkadot_runtime_common/slots/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_common/slots/pallet.ts index 9abcf29d1..1887e3651 100644 --- a/codegen/_output/kusama/polkadot_runtime_common/slots/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_common/slots/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$412 +export const $call: $.Codec = _codec.$412 -export const $error: $.Codec = _codec.$704 +export const $error: $.Codec = _codec.$704 -export const $event: $.Codec = _codec.$118 +export const $event: $.Codec = _codec.$118 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.slots.pallet.Call.force_lease - | t.polkadot_runtime_common.slots.pallet.Call.clear_all_leases - | t.polkadot_runtime_common.slots.pallet.Call.trigger_onboard + | t.types.polkadot_runtime_common.slots.pallet.Call.force_lease + | t.types.polkadot_runtime_common.slots.pallet.Call.clear_all_leases + | t.types.polkadot_runtime_common.slots.pallet.Call.trigger_onboard export namespace Call { /** * Just a connect into the `lease_out` call, in case Root wants to force some lease to happen @@ -22,11 +22,11 @@ export namespace Call { */ export interface force_lease { type: "force_lease" - para: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - amount: t.u128 - period_begin: t.u32 - period_count: t.u32 + para: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 + period_begin: t.types.u32 + period_count: t.types.u32 } /** * Clear all leases for a Para Id, refunding any deposits back to the original owners. @@ -35,7 +35,7 @@ export namespace Call { */ export interface clear_all_leases { type: "clear_all_leases" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Try to onboard a parachain that has a lease for the current lease period. @@ -48,7 +48,7 @@ export namespace Call { */ export interface trigger_onboard { type: "trigger_onboard" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Just a connect into the `lease_out` call, in case Root wants to force some lease to happen @@ -57,8 +57,8 @@ export namespace Call { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function force_lease( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.force_lease { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.force_lease { return { type: "force_lease", ...value } } /** @@ -67,8 +67,8 @@ export namespace Call { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function clear_all_leases( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.clear_all_leases { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.clear_all_leases { return { type: "clear_all_leases", ...value } } /** @@ -81,8 +81,8 @@ export namespace Call { * Origin must be signed, but can be called by anyone. */ export function trigger_onboard( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.trigger_onboard { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.trigger_onboard { return { type: "trigger_onboard", ...value } } } @@ -92,13 +92,13 @@ export type Error = "ParaNotOnboarding" | "LeaseError" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod - | t.polkadot_runtime_common.slots.pallet.Event.Leased + | t.types.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod + | t.types.polkadot_runtime_common.slots.pallet.Event.Leased export namespace Event { /** A new `[lease_period]` is beginning. */ export interface NewLeasePeriod { type: "NewLeasePeriod" - lease_period: t.u32 + lease_period: t.types.u32 } /** * A para has won the right to a continuous set of lease periods as a parachain. @@ -107,17 +107,17 @@ export namespace Event { */ export interface Leased { type: "Leased" - para_id: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - period_begin: t.u32 - period_count: t.u32 - extra_reserved: t.u128 - total_amount: t.u128 + para_id: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + period_begin: t.types.u32 + period_count: t.types.u32 + extra_reserved: t.types.u128 + total_amount: t.types.u128 } /** A new `[lease_period]` is beginning. */ export function NewLeasePeriod( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod { return { type: "NewLeasePeriod", ...value } } /** @@ -126,8 +126,8 @@ export namespace Event { * Second balance is the total amount reserved. */ export function Leased( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Event.Leased { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Event.Leased { return { type: "Leased", ...value } } } diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/configuration/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/configuration/mod.ts new file mode 100644 index 000000000..d8267fcbd --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/configuration/mod.ts @@ -0,0 +1,61 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $hostConfiguration: $.Codec< + t.types.polkadot_runtime_parachains.configuration.HostConfiguration +> = _codec.$638 + +export interface HostConfiguration { + max_code_size: t.types.u32 + max_head_data_size: t.types.u32 + max_upward_queue_count: t.types.u32 + max_upward_queue_size: t.types.u32 + max_upward_message_size: t.types.u32 + max_upward_message_num_per_candidate: t.types.u32 + hrmp_max_message_num_per_candidate: t.types.u32 + validation_upgrade_cooldown: t.types.u32 + validation_upgrade_delay: t.types.u32 + max_pov_size: t.types.u32 + max_downward_message_size: t.types.u32 + ump_service_total_weight: t.types.sp_weights.weight_v2.Weight + hrmp_max_parachain_outbound_channels: t.types.u32 + hrmp_max_parathread_outbound_channels: t.types.u32 + hrmp_sender_deposit: t.types.u128 + hrmp_recipient_deposit: t.types.u128 + hrmp_channel_max_capacity: t.types.u32 + hrmp_channel_max_total_size: t.types.u32 + hrmp_max_parachain_inbound_channels: t.types.u32 + hrmp_max_parathread_inbound_channels: t.types.u32 + hrmp_channel_max_message_size: t.types.u32 + code_retention_period: t.types.u32 + parathread_cores: t.types.u32 + parathread_retries: t.types.u32 + group_rotation_frequency: t.types.u32 + chain_availability_period: t.types.u32 + thread_availability_period: t.types.u32 + scheduling_lookahead: t.types.u32 + max_validators_per_core: t.types.u32 | undefined + max_validators: t.types.u32 | undefined + dispute_period: t.types.u32 + dispute_post_conclusion_acceptance_period: t.types.u32 + dispute_max_spam_slots: t.types.u32 + dispute_conclusion_by_time_out_period: t.types.u32 + no_show_slots: t.types.u32 + n_delay_tranches: t.types.u32 + zeroth_delay_tranche_width: t.types.u32 + needed_approvals: t.types.u32 + relay_vrf_modulo_samples: t.types.u32 + ump_max_individual_weight: t.types.sp_weights.weight_v2.Weight + pvf_checking_enabled: boolean + pvf_voting_ttl: t.types.u32 + minimum_validation_upgrade_delay: t.types.u32 +} + +export function HostConfiguration( + value: t.types.polkadot_runtime_parachains.configuration.HostConfiguration, +) { + return value +} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/configuration/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/configuration/pallet.ts similarity index 55% rename from codegen/_output/rococo/polkadot_runtime_parachains/configuration/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/configuration/pallet.ts index bdc792cc2..ff0b4bbd4 100644 --- a/codegen/_output/rococo/polkadot_runtime_parachains/configuration/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/configuration/pallet.ts @@ -1,148 +1,150 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$375 +export const $call: $.Codec = + _codec.$375 -export const $error: $.Codec = _codec.$641 +export const $error: $.Codec = + _codec.$641 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check export namespace Call { /** Set the validation upgrade cooldown. */ export interface set_validation_upgrade_cooldown { type: "set_validation_upgrade_cooldown" - new: t.u32 + new: t.types.u32 } /** Set the validation upgrade delay. */ export interface set_validation_upgrade_delay { type: "set_validation_upgrade_delay" - new: t.u32 + new: t.types.u32 } /** Set the acceptance period for an included candidate. */ export interface set_code_retention_period { type: "set_code_retention_period" - new: t.u32 + new: t.types.u32 } /** Set the max validation code size for incoming upgrades. */ export interface set_max_code_size { type: "set_max_code_size" - new: t.u32 + new: t.types.u32 } /** Set the max POV block size for incoming upgrades. */ export interface set_max_pov_size { type: "set_max_pov_size" - new: t.u32 + new: t.types.u32 } /** Set the max head data size for paras. */ export interface set_max_head_data_size { type: "set_max_head_data_size" - new: t.u32 + new: t.types.u32 } /** Set the number of parathread execution cores. */ export interface set_parathread_cores { type: "set_parathread_cores" - new: t.u32 + new: t.types.u32 } /** Set the number of retries for a particular parathread. */ export interface set_parathread_retries { type: "set_parathread_retries" - new: t.u32 + new: t.types.u32 } /** Set the parachain validator-group rotation frequency */ export interface set_group_rotation_frequency { type: "set_group_rotation_frequency" - new: t.u32 + new: t.types.u32 } /** Set the availability period for parachains. */ export interface set_chain_availability_period { type: "set_chain_availability_period" - new: t.u32 + new: t.types.u32 } /** Set the availability period for parathreads. */ export interface set_thread_availability_period { type: "set_thread_availability_period" - new: t.u32 + new: t.types.u32 } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export interface set_scheduling_lookahead { type: "set_scheduling_lookahead" - new: t.u32 + new: t.types.u32 } /** Set the maximum number of validators to assign to any core. */ export interface set_max_validators_per_core { type: "set_max_validators_per_core" - new: t.u32 | undefined + new: t.types.u32 | undefined } /** Set the maximum number of validators to use in parachain consensus. */ export interface set_max_validators { type: "set_max_validators" - new: t.u32 | undefined + new: t.types.u32 | undefined } /** Set the dispute period, in number of sessions to keep for disputes. */ export interface set_dispute_period { type: "set_dispute_period" - new: t.u32 + new: t.types.u32 } /** Set the dispute post conclusion acceptance period. */ export interface set_dispute_post_conclusion_acceptance_period { type: "set_dispute_post_conclusion_acceptance_period" - new: t.u32 + new: t.types.u32 } /** Set the maximum number of dispute spam slots. */ export interface set_dispute_max_spam_slots { type: "set_dispute_max_spam_slots" - new: t.u32 + new: t.types.u32 } /** Set the dispute conclusion by time out period. */ export interface set_dispute_conclusion_by_time_out_period { type: "set_dispute_conclusion_by_time_out_period" - new: t.u32 + new: t.types.u32 } /** * Set the no show slots, in number of number of consensus slots. @@ -150,67 +152,67 @@ export namespace Call { */ export interface set_no_show_slots { type: "set_no_show_slots" - new: t.u32 + new: t.types.u32 } /** Set the total number of delay tranches. */ export interface set_n_delay_tranches { type: "set_n_delay_tranches" - new: t.u32 + new: t.types.u32 } /** Set the zeroth delay tranche width. */ export interface set_zeroth_delay_tranche_width { type: "set_zeroth_delay_tranche_width" - new: t.u32 + new: t.types.u32 } /** Set the number of validators needed to approve a block. */ export interface set_needed_approvals { type: "set_needed_approvals" - new: t.u32 + new: t.types.u32 } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export interface set_relay_vrf_modulo_samples { type: "set_relay_vrf_modulo_samples" - new: t.u32 + new: t.types.u32 } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export interface set_max_upward_queue_count { type: "set_max_upward_queue_count" - new: t.u32 + new: t.types.u32 } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export interface set_max_upward_queue_size { type: "set_max_upward_queue_size" - new: t.u32 + new: t.types.u32 } /** Set the critical downward message size. */ export interface set_max_downward_message_size { type: "set_max_downward_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export interface set_ump_service_total_weight { type: "set_ump_service_total_weight" - new: t.sp_weights.weight_v2.Weight + new: t.types.sp_weights.weight_v2.Weight } /** Sets the maximum size of an upward message that can be sent by a candidate. */ export interface set_max_upward_message_size { type: "set_max_upward_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of messages that a candidate can contain. */ export interface set_max_upward_message_num_per_candidate { type: "set_max_upward_message_num_per_candidate" - new: t.u32 + new: t.types.u32 } /** Sets the number of sessions after which an HRMP open channel request expires. */ export interface set_hrmp_open_request_ttl { type: "set_hrmp_open_request_ttl" - new: t.u32 + new: t.types.u32 } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export interface set_hrmp_sender_deposit { type: "set_hrmp_sender_deposit" - new: t.u128 + new: t.types.u128 } /** * Sets the amount of funds that the recipient should provide for accepting opening an HRMP @@ -218,52 +220,52 @@ export namespace Call { */ export interface set_hrmp_recipient_deposit { type: "set_hrmp_recipient_deposit" - new: t.u128 + new: t.types.u128 } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export interface set_hrmp_channel_max_capacity { type: "set_hrmp_channel_max_capacity" - new: t.u32 + new: t.types.u32 } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export interface set_hrmp_channel_max_total_size { type: "set_hrmp_channel_max_total_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export interface set_hrmp_max_parachain_inbound_channels { type: "set_hrmp_max_parachain_inbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export interface set_hrmp_max_parathread_inbound_channels { type: "set_hrmp_max_parathread_inbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export interface set_hrmp_channel_max_message_size { type: "set_hrmp_channel_max_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export interface set_hrmp_max_parachain_outbound_channels { type: "set_hrmp_max_parachain_outbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export interface set_hrmp_max_parathread_outbound_channels { type: "set_hrmp_max_parathread_outbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export interface set_hrmp_max_message_num_per_candidate { type: "set_hrmp_max_message_num_per_candidate" - new: t.u32 + new: t.types.u32 } /** Sets the maximum amount of weight any individual upward message may consume. */ export interface set_ump_max_individual_weight { type: "set_ump_max_individual_weight" - new: t.sp_weights.weight_v2.Weight + new: t.types.sp_weights.weight_v2.Weight } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export interface set_pvf_checking_enabled { @@ -273,7 +275,7 @@ export namespace Call { /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export interface set_pvf_voting_ttl { type: "set_pvf_voting_ttl" - new: t.u32 + new: t.types.u32 } /** * Sets the minimum delay between announcing the upgrade block for a parachain until the @@ -283,7 +285,7 @@ export namespace Call { */ export interface set_minimum_validation_upgrade_delay { type: "set_minimum_validation_upgrade_delay" - new: t.u32 + new: t.types.u32 } /** * Setting this to true will disable consistency checks for the configuration setters. @@ -296,151 +298,163 @@ export namespace Call { /** Set the validation upgrade cooldown. */ export function set_validation_upgrade_cooldown( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown { return { type: "set_validation_upgrade_cooldown", ...value } } /** Set the validation upgrade delay. */ export function set_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay { return { type: "set_validation_upgrade_delay", ...value } } /** Set the acceptance period for an included candidate. */ export function set_code_retention_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period { return { type: "set_code_retention_period", ...value } } /** Set the max validation code size for incoming upgrades. */ export function set_max_code_size( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size { return { type: "set_max_code_size", ...value } } /** Set the max POV block size for incoming upgrades. */ export function set_max_pov_size( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size { return { type: "set_max_pov_size", ...value } } /** Set the max head data size for paras. */ export function set_max_head_data_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size { return { type: "set_max_head_data_size", ...value } } /** Set the number of parathread execution cores. */ export function set_parathread_cores( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores { return { type: "set_parathread_cores", ...value } } /** Set the number of retries for a particular parathread. */ export function set_parathread_retries( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries { return { type: "set_parathread_retries", ...value } } /** Set the parachain validator-group rotation frequency */ export function set_group_rotation_frequency( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency { return { type: "set_group_rotation_frequency", ...value } } /** Set the availability period for parachains. */ export function set_chain_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period { return { type: "set_chain_availability_period", ...value } } /** Set the availability period for parathreads. */ export function set_thread_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period { return { type: "set_thread_availability_period", ...value } } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export function set_scheduling_lookahead( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead { return { type: "set_scheduling_lookahead", ...value } } /** Set the maximum number of validators to assign to any core. */ export function set_max_validators_per_core( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core { return { type: "set_max_validators_per_core", ...value } } /** Set the maximum number of validators to use in parachain consensus. */ export function set_max_validators( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators { return { type: "set_max_validators", ...value } } /** Set the dispute period, in number of sessions to keep for disputes. */ export function set_dispute_period( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period { return { type: "set_dispute_period", ...value } } /** Set the dispute post conclusion acceptance period. */ export function set_dispute_post_conclusion_acceptance_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period { return { type: "set_dispute_post_conclusion_acceptance_period", ...value } } /** Set the maximum number of dispute spam slots. */ export function set_dispute_max_spam_slots( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots { return { type: "set_dispute_max_spam_slots", ...value } } /** Set the dispute conclusion by time out period. */ export function set_dispute_conclusion_by_time_out_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period { return { type: "set_dispute_conclusion_by_time_out_period", ...value } } /** @@ -448,116 +462,119 @@ export namespace Call { * Must be at least 1. */ export function set_no_show_slots( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots { return { type: "set_no_show_slots", ...value } } /** Set the total number of delay tranches. */ export function set_n_delay_tranches( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches { return { type: "set_n_delay_tranches", ...value } } /** Set the zeroth delay tranche width. */ export function set_zeroth_delay_tranche_width( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width { return { type: "set_zeroth_delay_tranche_width", ...value } } /** Set the number of validators needed to approve a block. */ export function set_needed_approvals( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals { return { type: "set_needed_approvals", ...value } } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export function set_relay_vrf_modulo_samples( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples { return { type: "set_relay_vrf_modulo_samples", ...value } } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_count( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count { return { type: "set_max_upward_queue_count", ...value } } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size { return { type: "set_max_upward_queue_size", ...value } } /** Set the critical downward message size. */ export function set_max_downward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size { return { type: "set_max_downward_message_size", ...value } } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export function set_ump_service_total_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight { return { type: "set_ump_service_total_weight", ...value } } /** Sets the maximum size of an upward message that can be sent by a candidate. */ export function set_max_upward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size { return { type: "set_max_upward_message_size", ...value } } /** Sets the maximum number of messages that a candidate can contain. */ export function set_max_upward_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate { return { type: "set_max_upward_message_num_per_candidate", ...value } } /** Sets the number of sessions after which an HRMP open channel request expires. */ export function set_hrmp_open_request_ttl( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl { return { type: "set_hrmp_open_request_ttl", ...value } } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export function set_hrmp_sender_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit { return { type: "set_hrmp_sender_deposit", ...value } } /** @@ -566,106 +583,109 @@ export namespace Call { */ export function set_hrmp_recipient_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit { return { type: "set_hrmp_recipient_deposit", ...value } } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_capacity( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity { return { type: "set_hrmp_channel_max_capacity", ...value } } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_total_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size { return { type: "set_hrmp_channel_max_total_size", ...value } } /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export function set_hrmp_max_parachain_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels { return { type: "set_hrmp_max_parachain_inbound_channels", ...value } } /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export function set_hrmp_max_parathread_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels { return { type: "set_hrmp_max_parathread_inbound_channels", ...value } } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export function set_hrmp_channel_max_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size { return { type: "set_hrmp_channel_max_message_size", ...value } } /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export function set_hrmp_max_parachain_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels { return { type: "set_hrmp_max_parachain_outbound_channels", ...value } } /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export function set_hrmp_max_parathread_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels { return { type: "set_hrmp_max_parathread_outbound_channels", ...value } } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export function set_hrmp_max_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate { return { type: "set_hrmp_max_message_num_per_candidate", ...value } } /** Sets the maximum amount of weight any individual upward message may consume. */ export function set_ump_max_individual_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight { return { type: "set_ump_max_individual_weight", ...value } } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export function set_pvf_checking_enabled( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled { return { type: "set_pvf_checking_enabled", ...value } } /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export function set_pvf_voting_ttl( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl { return { type: "set_pvf_voting_ttl", ...value } } /** @@ -676,10 +696,10 @@ export namespace Call { */ export function set_minimum_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay { return { type: "set_minimum_validation_upgrade_delay", ...value } } /** @@ -688,10 +708,10 @@ export namespace Call { */ export function set_bypass_consistency_check( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check { return { type: "set_bypass_consistency_check", ...value } } } diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/disputes/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/disputes/mod.ts new file mode 100644 index 000000000..78ba141ad --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/disputes/mod.ts @@ -0,0 +1,16 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $disputeLocation: $.Codec< + t.types.polkadot_runtime_parachains.disputes.DisputeLocation +> = _codec.$115 + +export const $disputeResult: $.Codec = + _codec.$116 + +export type DisputeLocation = "Local" | "Remote" + +export type DisputeResult = "Valid" | "Invalid" diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/disputes/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/disputes/pallet.ts similarity index 57% rename from codegen/_output/polkadot/polkadot_runtime_parachains/disputes/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/disputes/pallet.ts index 5c35c65c3..7a45998ea 100644 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/disputes/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/disputes/pallet.ts @@ -1,12 +1,14 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$410 +export const $call: $.Codec = _codec.$410 -export const $error: $.Codec = _codec.$700 +export const $error: $.Codec = + _codec.$700 -export const $event: $.Codec = _codec.$113 +export const $event: $.Codec = + _codec.$113 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = "force_unfreeze" @@ -23,17 +25,17 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut - | t.polkadot_runtime_parachains.disputes.pallet.Event.Revert + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert export namespace Event { /** A dispute has been initiated. \[candidate hash, dispute location\] */ export interface DisputeInitiated { type: "DisputeInitiated" value: [ - t.polkadot_core_primitives.CandidateHash, - t.polkadot_runtime_parachains.disputes.DisputeLocation, + t.types.polkadot_core_primitives.CandidateHash, + t.types.polkadot_runtime_parachains.disputes.DisputeLocation, ] } /** @@ -43,8 +45,8 @@ export namespace Event { export interface DisputeConcluded { type: "DisputeConcluded" value: [ - t.polkadot_core_primitives.CandidateHash, - t.polkadot_runtime_parachains.disputes.DisputeResult, + t.types.polkadot_core_primitives.CandidateHash, + t.types.polkadot_runtime_parachains.disputes.DisputeResult, ] } /** @@ -53,7 +55,7 @@ export namespace Event { */ export interface DisputeTimedOut { type: "DisputeTimedOut" - value: t.polkadot_core_primitives.CandidateHash + value: t.types.polkadot_core_primitives.CandidateHash } /** * A dispute has concluded with supermajority against a candidate. @@ -63,12 +65,12 @@ export namespace Event { */ export interface Revert { type: "Revert" - value: t.u32 + value: t.types.u32 } /** A dispute has been initiated. \[candidate hash, dispute location\] */ export function DisputeInitiated( - ...value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated["value"] - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated { + ...value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated["value"] + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated { return { type: "DisputeInitiated", value } } /** @@ -76,8 +78,8 @@ export namespace Event { * `\[para id, candidate hash, dispute result\]` */ export function DisputeConcluded( - ...value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded["value"] - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded { + ...value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded["value"] + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded { return { type: "DisputeConcluded", value } } /** @@ -85,8 +87,8 @@ export namespace Event { * `\[para id, candidate hash\]` */ export function DisputeTimedOut( - value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut["value"], - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut { + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut["value"], + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut { return { type: "DisputeTimedOut", value } } /** @@ -96,8 +98,8 @@ export namespace Event { * number of the child of the last known valid block in the chain. */ export function Revert( - value: t.polkadot_runtime_parachains.disputes.pallet.Event.Revert["value"], - ): t.polkadot_runtime_parachains.disputes.pallet.Event.Revert { + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert["value"], + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert { return { type: "Revert", value } } } diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/dmp/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/dmp/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_parachains/dmp/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/dmp/mod.ts diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/dmp/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/dmp/pallet.ts new file mode 100644 index 000000000..05133e66d --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/dmp/pallet.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $call: $.Codec = _codec.$407 + +/** Contains one variant per dispatchable that can be called by an extrinsic. */ +export type Call = never diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/hrmp/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/hrmp/mod.ts new file mode 100644 index 000000000..b63b5391f --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/hrmp/mod.ts @@ -0,0 +1,42 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $hrmpChannel: $.Codec = + _codec.$688 + +export const $hrmpOpenChannelRequest: $.Codec< + t.types.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest +> = _codec.$686 + +export interface HrmpChannel { + max_capacity: t.types.u32 + max_total_size: t.types.u32 + max_message_size: t.types.u32 + msg_count: t.types.u32 + total_size: t.types.u32 + mqc_head: t.types.primitive_types.H256 | undefined + sender_deposit: t.types.u128 + recipient_deposit: t.types.u128 +} + +export function HrmpChannel(value: t.types.polkadot_runtime_parachains.hrmp.HrmpChannel) { + return value +} + +export interface HrmpOpenChannelRequest { + confirmed: boolean + _age: t.types.u32 + sender_deposit: t.types.u128 + max_message_size: t.types.u32 + max_capacity: t.types.u32 + max_total_size: t.types.u32 +} + +export function HrmpOpenChannelRequest( + value: t.types.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest, +) { + return value +} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/hrmp/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/hrmp/pallet.ts similarity index 64% rename from codegen/_output/rococo/polkadot_runtime_parachains/hrmp/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/hrmp/pallet.ts index e9e897ba8..0c15ec391 100644 --- a/codegen/_output/rococo/polkadot_runtime_parachains/hrmp/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/hrmp/pallet.ts @@ -1,23 +1,23 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$409 +export const $call: $.Codec = _codec.$409 -export const $error: $.Codec = _codec.$694 +export const $error: $.Codec = _codec.$694 -export const $event: $.Codec = _codec.$111 +export const $event: $.Codec = _codec.$111 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel export namespace Call { /** * Initiate opening a channel from a parachain to a given recipient with given channel @@ -33,9 +33,9 @@ export namespace Call { */ export interface hrmp_init_open_channel { type: "hrmp_init_open_channel" - recipient: t.polkadot_parachain.primitives.Id - proposed_max_capacity: t.u32 - proposed_max_message_size: t.u32 + recipient: t.types.polkadot_parachain.primitives.Id + proposed_max_capacity: t.types.u32 + proposed_max_message_size: t.types.u32 } /** * Accept a pending open channel request from the given sender. @@ -44,7 +44,7 @@ export namespace Call { */ export interface hrmp_accept_open_channel { type: "hrmp_accept_open_channel" - sender: t.polkadot_parachain.primitives.Id + sender: t.types.polkadot_parachain.primitives.Id } /** * Initiate unilateral closing of a channel. The origin must be either the sender or the @@ -54,7 +54,7 @@ export namespace Call { */ export interface hrmp_close_channel { type: "hrmp_close_channel" - channel_id: t.polkadot_parachain.primitives.HrmpChannelId + channel_id: t.types.polkadot_parachain.primitives.HrmpChannelId } /** * This extrinsic triggers the cleanup of all the HRMP storage items that @@ -67,9 +67,9 @@ export namespace Call { */ export interface force_clean_hrmp { type: "force_clean_hrmp" - para: t.polkadot_parachain.primitives.Id - inbound: t.u32 - outbound: t.u32 + para: t.types.polkadot_parachain.primitives.Id + inbound: t.types.u32 + outbound: t.types.u32 } /** * Force process HRMP open channel requests. @@ -81,7 +81,7 @@ export namespace Call { */ export interface force_process_hrmp_open { type: "force_process_hrmp_open" - channels: t.u32 + channels: t.types.u32 } /** * Force process HRMP close channel requests. @@ -93,7 +93,7 @@ export namespace Call { */ export interface force_process_hrmp_close { type: "force_process_hrmp_close" - channels: t.u32 + channels: t.types.u32 } /** * This cancels a pending open channel request. It can be canceled by either of the sender @@ -107,8 +107,8 @@ export namespace Call { */ export interface hrmp_cancel_open_request { type: "hrmp_cancel_open_request" - channel_id: t.polkadot_parachain.primitives.HrmpChannelId - open_requests: t.u32 + channel_id: t.types.polkadot_parachain.primitives.HrmpChannelId + open_requests: t.types.u32 } /** * Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although @@ -120,10 +120,10 @@ export namespace Call { */ export interface force_open_hrmp_channel { type: "force_open_hrmp_channel" - sender: t.polkadot_parachain.primitives.Id - recipient: t.polkadot_parachain.primitives.Id - max_capacity: t.u32 - max_message_size: t.u32 + sender: t.types.polkadot_parachain.primitives.Id + recipient: t.types.polkadot_parachain.primitives.Id + max_capacity: t.types.u32 + max_message_size: t.types.u32 } /** * Initiate opening a channel from a parachain to a given recipient with given channel @@ -138,8 +138,11 @@ export namespace Call { * change. */ export function hrmp_init_open_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel { return { type: "hrmp_init_open_channel", ...value } } /** @@ -148,8 +151,11 @@ export namespace Call { * The channel will be opened only on the next session boundary. */ export function hrmp_accept_open_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel { return { type: "hrmp_accept_open_channel", ...value } } /** @@ -159,8 +165,8 @@ export namespace Call { * The closure can only happen on a session change. */ export function hrmp_close_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel { + value: Omit, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel { return { type: "hrmp_close_channel", ...value } } /** @@ -173,8 +179,8 @@ export namespace Call { * Number of inbound and outbound channels for `para` must be provided as witness data of weighing. */ export function force_clean_hrmp( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp { + value: Omit, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp { return { type: "force_clean_hrmp", ...value } } /** @@ -186,8 +192,11 @@ export namespace Call { * Total number of opening channels must be provided as witness data of weighing. */ export function force_process_hrmp_open( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open { return { type: "force_process_hrmp_open", ...value } } /** @@ -199,8 +208,11 @@ export namespace Call { * Total number of closing channels must be provided as witness data of weighing. */ export function force_process_hrmp_close( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close { return { type: "force_process_hrmp_close", ...value } } /** @@ -214,8 +226,11 @@ export namespace Call { * witness data. */ export function hrmp_cancel_open_request( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request { return { type: "hrmp_cancel_open_request", ...value } } /** @@ -227,8 +242,11 @@ export namespace Call { * Relay Chain, e.g. a common good parachain. */ export function force_open_hrmp_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel { return { type: "force_open_hrmp_channel", ...value } } } @@ -257,11 +275,11 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted - | t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed - | t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened export namespace Event { /** * Open HRMP channel requested. @@ -269,7 +287,12 @@ export namespace Event { */ export interface OpenChannelRequested { type: "OpenChannelRequested" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.Id, + t.types.u32, + t.types.u32, + ] } /** * An HRMP channel request sent by the receiver was canceled by either party. @@ -277,17 +300,23 @@ export namespace Event { */ export interface OpenChannelCanceled { type: "OpenChannelCanceled" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.HrmpChannelId] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.HrmpChannelId, + ] } /** Open HRMP channel accepted. `[sender, recipient]` */ export interface OpenChannelAccepted { type: "OpenChannelAccepted" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id] + value: [t.types.polkadot_parachain.primitives.Id, t.types.polkadot_parachain.primitives.Id] } /** HRMP channel closed. `[by_parachain, channel_id]` */ export interface ChannelClosed { type: "ChannelClosed" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.HrmpChannelId] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.HrmpChannelId, + ] } /** * An HRMP channel was opened via Root origin. @@ -295,15 +324,20 @@ export namespace Event { */ export interface HrmpChannelForceOpened { type: "HrmpChannelForceOpened" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.Id, + t.types.u32, + t.types.u32, + ] } /** * Open HRMP channel requested. * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` */ export function OpenChannelRequested( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested { return { type: "OpenChannelRequested", value } } /** @@ -311,20 +345,20 @@ export namespace Event { * `[by_parachain, channel_id]` */ export function OpenChannelCanceled( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled { return { type: "OpenChannelCanceled", value } } /** Open HRMP channel accepted. `[sender, recipient]` */ export function OpenChannelAccepted( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted { return { type: "OpenChannelAccepted", value } } /** HRMP channel closed. `[by_parachain, channel_id]` */ export function ChannelClosed( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed { return { type: "ChannelClosed", value } } /** @@ -332,8 +366,8 @@ export namespace Event { * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` */ export function HrmpChannelForceOpened( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened { return { type: "HrmpChannelForceOpened", value } } } diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/inclusion/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/inclusion/mod.ts new file mode 100644 index 000000000..1045f887b --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/inclusion/mod.ts @@ -0,0 +1,41 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $availabilityBitfieldRecord: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord +> = _codec.$644 + +export const $candidatePendingAvailability: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability +> = _codec.$645 + +export interface AvailabilityBitfieldRecord { + bitfield: t.types.polkadot_primitives.v2.AvailabilityBitfield + submitted_at: t.types.u32 +} + +export function AvailabilityBitfieldRecord( + value: t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord, +) { + return value +} + +export interface CandidatePendingAvailability { + core: t.types.polkadot_primitives.v2.CoreIndex + hash: t.types.polkadot_core_primitives.CandidateHash + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + availability_votes: $.BitSequence + backers: $.BitSequence + relay_parent_number: t.types.u32 + backed_in_number: t.types.u32 + backing_group: t.types.polkadot_primitives.v2.GroupIndex +} + +export function CandidatePendingAvailability( + value: t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability, +) { + return value +} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/inclusion/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/inclusion/pallet.ts similarity index 54% rename from codegen/_output/rococo/polkadot_runtime_parachains/inclusion/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/inclusion/pallet.ts index fe8870e7c..23c9b26fd 100644 --- a/codegen/_output/rococo/polkadot_runtime_parachains/inclusion/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/inclusion/pallet.ts @@ -1,12 +1,14 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$377 +export const $call: $.Codec = _codec.$377 -export const $error: $.Codec = _codec.$646 +export const $error: $.Codec = + _codec.$646 -export const $event: $.Codec = _codec.$95 +export const $event: $.Codec = + _codec.$95 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = never @@ -45,55 +47,55 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut export namespace Event { /** A candidate was backed. `[candidate, head_data]` */ export interface CandidateBacked { type: "CandidateBacked" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, - t.polkadot_primitives.v2.GroupIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.GroupIndex, ] } /** A candidate was included. `[candidate, head_data]` */ export interface CandidateIncluded { type: "CandidateIncluded" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, - t.polkadot_primitives.v2.GroupIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.GroupIndex, ] } /** A candidate timed out. `[candidate, head_data]` */ export interface CandidateTimedOut { type: "CandidateTimedOut" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, ] } /** A candidate was backed. `[candidate, head_data]` */ export function CandidateBacked( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked { return { type: "CandidateBacked", value } } /** A candidate was included. `[candidate, head_data]` */ export function CandidateIncluded( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded { return { type: "CandidateIncluded", value } } /** A candidate timed out. `[candidate, head_data]` */ export function CandidateTimedOut( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut { return { type: "CandidateTimedOut", value } } } diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/initializer/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/initializer/mod.ts new file mode 100644 index 000000000..27d90b3d3 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/initializer/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $bufferedSessionChange: $.Codec< + t.types.polkadot_runtime_parachains.initializer.BufferedSessionChange +> = _codec.$681 + +export interface BufferedSessionChange { + validators: Array + queued: Array + session_index: t.types.u32 +} + +export function BufferedSessionChange( + value: t.types.polkadot_runtime_parachains.initializer.BufferedSessionChange, +) { + return value +} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/initializer/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/initializer/pallet.ts similarity index 57% rename from codegen/_output/rococo/polkadot_runtime_parachains/initializer/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/initializer/pallet.ts index 339c024f4..03632cb0a 100644 --- a/codegen/_output/rococo/polkadot_runtime_parachains/initializer/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/initializer/pallet.ts @@ -1,11 +1,12 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$406 +export const $call: $.Codec = + _codec.$406 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.initializer.pallet.Call.force_approve +export type Call = t.types.polkadot_runtime_parachains.initializer.pallet.Call.force_approve export namespace Call { /** * Issue a signal to the consensus engine to forcibly act as though all parachain @@ -14,7 +15,7 @@ export namespace Call { */ export interface force_approve { type: "force_approve" - up_to: t.u32 + up_to: t.types.u32 } /** * Issue a signal to the consensus engine to forcibly act as though all parachain @@ -22,8 +23,8 @@ export namespace Call { * chain are valid and should be finalized. */ export function force_approve( - value: Omit, - ): t.polkadot_runtime_parachains.initializer.pallet.Call.force_approve { + value: Omit, + ): t.types.polkadot_runtime_parachains.initializer.pallet.Call.force_approve { return { type: "force_approve", ...value } } } diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_parachains/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/mod.ts diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/origin/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/origin/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_parachains/origin/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/origin/mod.ts diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/origin/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/origin/pallet.ts new file mode 100644 index 000000000..6b80987cd --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/origin/pallet.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $origin: $.Codec = + _codec.$260 + +export type Origin = t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain +export namespace Origin { + export interface Parachain { + type: "Parachain" + value: t.types.polkadot_parachain.primitives.Id + } + export function Parachain( + value: t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain["value"], + ): t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain { + return { type: "Parachain", value } + } +} diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/paras/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/paras/mod.ts new file mode 100644 index 000000000..0e4bab946 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/paras/mod.ts @@ -0,0 +1,106 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $paraGenesisArgs: $.Codec = + _codec.$678 + +export const $paraLifecycle: $.Codec = + _codec.$670 + +export const $paraPastCodeMeta: $.Codec< + t.types.polkadot_runtime_parachains.paras.ParaPastCodeMeta +> = _codec.$672 + +export const $pvfCheckActiveVoteState: $.Codec< + t.types.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState +> = _codec.$666 + +export const $pvfCheckCause: $.Codec = + _codec.$668 + +export const $replacementTimes: $.Codec< + t.types.polkadot_runtime_parachains.paras.ReplacementTimes +> = _codec.$674 + +export interface ParaGenesisArgs { + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode + parachain: boolean +} + +export function ParaGenesisArgs(value: t.types.polkadot_runtime_parachains.paras.ParaGenesisArgs) { + return value +} + +export type ParaLifecycle = + | "Onboarding" + | "Parathread" + | "Parachain" + | "UpgradingParathread" + | "DowngradingParachain" + | "OffboardingParathread" + | "OffboardingParachain" + +export interface ParaPastCodeMeta { + upgrade_times: Array + last_pruned: t.types.u32 | undefined +} + +export function ParaPastCodeMeta( + value: t.types.polkadot_runtime_parachains.paras.ParaPastCodeMeta, +) { + return value +} + +export interface PvfCheckActiveVoteState { + votes_accept: $.BitSequence + votes_reject: $.BitSequence + age: t.types.u32 + created_at: t.types.u32 + causes: Array +} + +export function PvfCheckActiveVoteState( + value: t.types.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState, +) { + return value +} + +export type PvfCheckCause = + | t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding + | t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade +export namespace PvfCheckCause { + export interface Onboarding { + type: "Onboarding" + value: t.types.polkadot_parachain.primitives.Id + } + export interface Upgrade { + type: "Upgrade" + id: t.types.polkadot_parachain.primitives.Id + relay_parent_number: t.types.u32 + } + export function Onboarding( + value: t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding["value"], + ): t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding { + return { type: "Onboarding", value } + } + export function Upgrade( + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade { + return { type: "Upgrade", ...value } + } +} + +export interface ReplacementTimes { + expected_at: t.types.u32 + activated_at: t.types.u32 +} + +export function ReplacementTimes( + value: t.types.polkadot_runtime_parachains.paras.ReplacementTimes, +) { + return value +} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/paras/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/paras/pallet.ts similarity index 58% rename from codegen/_output/rococo/polkadot_runtime_parachains/paras/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/paras/pallet.ts index fc656fe9e..9bb96a5de 100644 --- a/codegen/_output/rococo/polkadot_runtime_parachains/paras/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/paras/pallet.ts @@ -1,48 +1,48 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$404 +export const $call: $.Codec = _codec.$404 -export const $error: $.Codec = _codec.$679 +export const $error: $.Codec = _codec.$679 -export const $event: $.Codec = _codec.$107 +export const $event: $.Codec = _codec.$107 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code - | t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head - | t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade - | t.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head - | t.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action - | t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code - | t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code - | t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action + | t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement export namespace Call { /** Set the storage for the parachain validation code immediately. */ export interface force_set_current_code { type: "force_set_current_code" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode } /** Set the storage for the current parachain head data immediately. */ export interface force_set_current_head { type: "force_set_current_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export interface force_schedule_code_upgrade { type: "force_schedule_code_upgrade" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode - relay_parent_number: t.u32 + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode + relay_parent_number: t.types.u32 } /** Note a new block head for para within the context of the current block. */ export interface force_note_new_head { type: "force_note_new_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** * Put a parachain directly into the next session's action queue. @@ -51,7 +51,7 @@ export namespace Call { */ export interface force_queue_action { type: "force_queue_action" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Adds the validation code to the storage. @@ -70,7 +70,7 @@ export namespace Call { */ export interface add_trusted_validation_code { type: "add_trusted_validation_code" - validation_code: t.polkadot_parachain.primitives.ValidationCode + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Remove the validation code from the storage iff the reference count is 0. @@ -81,7 +81,7 @@ export namespace Call { */ export interface poke_unused_validation_code { type: "poke_unused_validation_code" - validation_code_hash: t.polkadot_parachain.primitives.ValidationCodeHash + validation_code_hash: t.types.polkadot_parachain.primitives.ValidationCodeHash } /** * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and @@ -89,34 +89,40 @@ export namespace Call { */ export interface include_pvf_check_statement { type: "include_pvf_check_statement" - stmt: t.polkadot_primitives.v2.PvfCheckStatement - signature: t.polkadot_primitives.v2.validator_app.Signature + stmt: t.types.polkadot_primitives.v2.PvfCheckStatement + signature: t.types.polkadot_primitives.v2.validator_app.Signature } /** Set the storage for the parachain validation code immediately. */ export function force_set_current_code( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code, + "type" + >, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code { return { type: "force_set_current_code", ...value } } /** Set the storage for the current parachain head data immediately. */ export function force_set_current_head( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head, + "type" + >, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head { return { type: "force_set_current_head", ...value } } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export function force_schedule_code_upgrade( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade { return { type: "force_schedule_code_upgrade", ...value } } /** Note a new block head for para within the context of the current block. */ export function force_note_new_head( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head { return { type: "force_note_new_head", ...value } } /** @@ -125,8 +131,8 @@ export namespace Call { * initializer... */ export function force_queue_action( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action { return { type: "force_queue_action", ...value } } /** @@ -146,10 +152,10 @@ export namespace Call { */ export function add_trusted_validation_code( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, + t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code { return { type: "add_trusted_validation_code", ...value } } /** @@ -161,10 +167,10 @@ export namespace Call { */ export function poke_unused_validation_code( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, + t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code { return { type: "poke_unused_validation_code", ...value } } /** @@ -173,10 +179,10 @@ export namespace Call { */ export function include_pvf_check_statement( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, + t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement { return { type: "include_pvf_check_statement", ...value } } } @@ -199,39 +205,39 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated - | t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated - | t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled - | t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted - | t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled + | t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected export namespace Event { /** Current code has been updated for a Para. `para_id` */ export interface CurrentCodeUpdated { type: "CurrentCodeUpdated" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** Current head has been updated for a Para. `para_id` */ export interface CurrentHeadUpdated { type: "CurrentHeadUpdated" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A code upgrade has been scheduled for a Para. `para_id` */ export interface CodeUpgradeScheduled { type: "CodeUpgradeScheduled" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A new head has been noted for a Para. `para_id` */ export interface NewHeadNoted { type: "NewHeadNoted" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A para has been queued to execute pending actions. `para_id` */ export interface ActionQueued { type: "ActionQueued" - value: [t.polkadot_parachain.primitives.Id, t.u32] + value: [t.types.polkadot_parachain.primitives.Id, t.types.u32] } /** * The given para either initiated or subscribed to a PVF check for the given validation @@ -239,7 +245,10 @@ export namespace Event { */ export interface PvfCheckStarted { type: "PvfCheckStarted" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** * The given validation code was accepted by the PVF pre-checking vote. @@ -247,7 +256,10 @@ export namespace Event { */ export interface PvfCheckAccepted { type: "PvfCheckAccepted" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** * The given validation code was rejected by the PVF pre-checking vote. @@ -255,36 +267,39 @@ export namespace Event { */ export interface PvfCheckRejected { type: "PvfCheckRejected" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** Current code has been updated for a Para. `para_id` */ export function CurrentCodeUpdated( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated { return { type: "CurrentCodeUpdated", value } } /** Current head has been updated for a Para. `para_id` */ export function CurrentHeadUpdated( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated { return { type: "CurrentHeadUpdated", value } } /** A code upgrade has been scheduled for a Para. `para_id` */ export function CodeUpgradeScheduled( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled { return { type: "CodeUpgradeScheduled", value } } /** A new head has been noted for a Para. `para_id` */ export function NewHeadNoted( - value: t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted { return { type: "NewHeadNoted", value } } /** A para has been queued to execute pending actions. `para_id` */ export function ActionQueued( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued { return { type: "ActionQueued", value } } /** @@ -292,8 +307,8 @@ export namespace Event { * code. `code_hash` `para_id` */ export function PvfCheckStarted( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted { return { type: "PvfCheckStarted", value } } /** @@ -301,8 +316,8 @@ export namespace Event { * `code_hash` `para_id` */ export function PvfCheckAccepted( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted { return { type: "PvfCheckAccepted", value } } /** @@ -310,8 +325,8 @@ export namespace Event { * `code_hash` `para_id` */ export function PvfCheckRejected( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected { return { type: "PvfCheckRejected", value } } } diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/paras_inherent/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/paras_inherent/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_parachains/paras_inherent/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/paras_inherent/mod.ts diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/paras_inherent/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/paras_inherent/pallet.ts similarity index 52% rename from codegen/_output/rococo/polkadot_runtime_parachains/paras_inherent/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/paras_inherent/pallet.ts index 4570ac2fc..b806978aa 100644 --- a/codegen/_output/rococo/polkadot_runtime_parachains/paras_inherent/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/paras_inherent/pallet.ts @@ -1,24 +1,25 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$378 +export const $call: $.Codec = + _codec.$378 -export const $error: $.Codec = +export const $error: $.Codec = _codec.$652 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter +export type Call = t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter export namespace Call { /** Enter the paras inherent. This will process bitfields and backed candidates. */ export interface enter { type: "enter" - data: t.polkadot_primitives.v2.InherentData + data: t.types.polkadot_primitives.v2.InherentData } /** Enter the paras inherent. This will process bitfields and backed candidates. */ export function enter( - value: Omit, - ): t.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter { return { type: "enter", ...value } } } diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/scheduler.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/scheduler.ts new file mode 100644 index 000000000..a4b6ffb37 --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/scheduler.ts @@ -0,0 +1,75 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $assignmentKind: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.AssignmentKind +> = _codec.$665 + +export const $coreAssignment: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.CoreAssignment +> = _codec.$664 + +export const $parathreadClaimQueue: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue +> = _codec.$654 + +export const $queuedParathread: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.QueuedParathread +> = _codec.$656 + +export type AssignmentKind = + | t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain + | t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread +export namespace AssignmentKind { + export interface Parachain { + type: "Parachain" + } + export interface Parathread { + type: "Parathread" + value: [t.types.polkadot_primitives.v2.collator_app.Public, t.types.u32] + } + export function Parachain(): t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain { + return { type: "Parachain" } + } + export function Parathread( + ...value: t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread["value"] + ): t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread { + return { type: "Parathread", value } + } +} + +export interface CoreAssignment { + core: t.types.polkadot_primitives.v2.CoreIndex + para_id: t.types.polkadot_parachain.primitives.Id + kind: t.types.polkadot_runtime_parachains.scheduler.AssignmentKind + group_idx: t.types.polkadot_primitives.v2.GroupIndex +} + +export function CoreAssignment( + value: t.types.polkadot_runtime_parachains.scheduler.CoreAssignment, +) { + return value +} + +export interface ParathreadClaimQueue { + queue: Array + next_core_offset: t.types.u32 +} + +export function ParathreadClaimQueue( + value: t.types.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue, +) { + return value +} + +export interface QueuedParathread { + claim: t.types.polkadot_primitives.v2.ParathreadEntry + core_offset: t.types.u32 +} + +export function QueuedParathread( + value: t.types.polkadot_runtime_parachains.scheduler.QueuedParathread, +) { + return value +} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/shared/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/shared/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_parachains/shared/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/shared/mod.ts diff --git a/codegen/_output/kusama/types/polkadot_runtime_parachains/shared/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/shared/pallet.ts new file mode 100644 index 000000000..64ac9630f --- /dev/null +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/shared/pallet.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $call: $.Codec = _codec.$376 + +/** Contains one variant per dispatchable that can be called by an extrinsic. */ +export type Call = never diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/ump/mod.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/ump/mod.ts similarity index 100% rename from codegen/_output/kusama/polkadot_runtime_parachains/ump/mod.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/ump/mod.ts diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/ump/pallet.ts b/codegen/_output/kusama/types/polkadot_runtime_parachains/ump/pallet.ts similarity index 60% rename from codegen/_output/kusama/polkadot_runtime_parachains/ump/pallet.ts rename to codegen/_output/kusama/types/polkadot_runtime_parachains/ump/pallet.ts index 61ae89bb9..c26129599 100644 --- a/codegen/_output/kusama/polkadot_runtime_parachains/ump/pallet.ts +++ b/codegen/_output/kusama/types/polkadot_runtime_parachains/ump/pallet.ts @@ -1,15 +1,15 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$408 +export const $call: $.Codec = _codec.$408 -export const $error: $.Codec = _codec.$685 +export const $error: $.Codec = _codec.$685 -export const $event: $.Codec = _codec.$108 +export const $event: $.Codec = _codec.$108 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.ump.pallet.Call.service_overweight +export type Call = t.types.polkadot_runtime_parachains.ump.pallet.Call.service_overweight export namespace Call { /** * Service a single overweight upward message. @@ -27,8 +27,8 @@ export namespace Call { */ export interface service_overweight { type: "service_overweight" - index: t.u64 - weight_limit: t.sp_weights.weight_v2.Weight + index: t.types.u64 + weight_limit: t.types.sp_weights.weight_v2.Weight } /** * Service a single overweight upward message. @@ -45,8 +45,8 @@ export namespace Call { * - `OverweightServiced`: On success. */ export function service_overweight( - value: Omit, - ): t.polkadot_runtime_parachains.ump.pallet.Call.service_overweight { + value: Omit, + ): t.types.polkadot_runtime_parachains.ump.pallet.Call.service_overweight { return { type: "service_overweight", ...value } } } @@ -56,13 +56,13 @@ export type Error = "UnknownMessageIndex" | "WeightOverLimit" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat - | t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion - | t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward - | t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted - | t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived - | t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued - | t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced + | t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat + | t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion + | t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward + | t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted + | t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived + | t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued + | t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced export namespace Event { /** * Upward message is invalid XCM. @@ -86,7 +86,7 @@ export namespace Event { */ export interface ExecutedUpward { type: "ExecutedUpward" - value: [Uint8Array, t.xcm.v2.traits.Outcome] + value: [Uint8Array, t.types.xcm.v2.traits.Outcome] } /** * The weight limit for handling upward messages was reached. @@ -94,7 +94,7 @@ export namespace Event { */ export interface WeightExhausted { type: "WeightExhausted" - value: [Uint8Array, t.sp_weights.weight_v2.Weight, t.sp_weights.weight_v2.Weight] + value: [Uint8Array, t.types.sp_weights.weight_v2.Weight, t.types.sp_weights.weight_v2.Weight] } /** * Some upward messages have been received and will be processed. @@ -102,7 +102,7 @@ export namespace Event { */ export interface UpwardMessagesReceived { type: "UpwardMessagesReceived" - value: [t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [t.types.polkadot_parachain.primitives.Id, t.types.u32, t.types.u32] } /** * The weight budget was exceeded for an individual upward message. @@ -114,7 +114,12 @@ export namespace Event { */ export interface OverweightEnqueued { type: "OverweightEnqueued" - value: [t.polkadot_parachain.primitives.Id, Uint8Array, t.u64, t.sp_weights.weight_v2.Weight] + value: [ + t.types.polkadot_parachain.primitives.Id, + Uint8Array, + t.types.u64, + t.types.sp_weights.weight_v2.Weight, + ] } /** * Upward message from the overweight queue was executed with the given actual weight @@ -124,15 +129,15 @@ export namespace Event { */ export interface OverweightServiced { type: "OverweightServiced" - value: [t.u64, t.sp_weights.weight_v2.Weight] + value: [t.types.u64, t.types.sp_weights.weight_v2.Weight] } /** * Upward message is invalid XCM. * \[ id \] */ export function InvalidFormat( - value: t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat["value"], - ): t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat { + value: t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat["value"], + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat { return { type: "InvalidFormat", value } } /** @@ -140,8 +145,8 @@ export namespace Event { * \[ id \] */ export function UnsupportedVersion( - value: t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion["value"], - ): t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion { + value: t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion["value"], + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion { return { type: "UnsupportedVersion", value } } /** @@ -149,8 +154,8 @@ export namespace Event { * \[ id, outcome \] */ export function ExecutedUpward( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward { return { type: "ExecutedUpward", value } } /** @@ -158,8 +163,8 @@ export namespace Event { * \[ id, remaining, required \] */ export function WeightExhausted( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted { return { type: "WeightExhausted", value } } /** @@ -167,8 +172,8 @@ export namespace Event { * \[ para, count, size \] */ export function UpwardMessagesReceived( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived { return { type: "UpwardMessagesReceived", value } } /** @@ -180,8 +185,8 @@ export namespace Event { * \[ para, id, overweight_index, required \] */ export function OverweightEnqueued( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued { return { type: "OverweightEnqueued", value } } /** @@ -191,8 +196,8 @@ export namespace Event { * \[ overweight_index, used \] */ export function OverweightServiced( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced { return { type: "OverweightServiced", value } } } diff --git a/codegen/_output/kusama/types/primitive_types.ts b/codegen/_output/kusama/types/primitive_types.ts new file mode 100644 index 000000000..b7e7a5943 --- /dev/null +++ b/codegen/_output/kusama/types/primitive_types.ts @@ -0,0 +1,11 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $h256: $.Codec = _codec.$11 + +export type H256 = Uint8Array + +export function H256(value: t.types.primitive_types.H256) { + return value +} diff --git a/codegen/_output/kusama/types/sp_arithmetic/fixed_point.ts b/codegen/_output/kusama/types/sp_arithmetic/fixed_point.ts new file mode 100644 index 000000000..232b82ea4 --- /dev/null +++ b/codegen/_output/kusama/types/sp_arithmetic/fixed_point.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $fixedU128: $.Codec = _codec.$479 + +export type FixedU128 = t.types.u128 + +export function FixedU128(value: t.types.sp_arithmetic.fixed_point.FixedU128) { + return value +} diff --git a/codegen/_output/kusama/sp_arithmetic/mod.ts b/codegen/_output/kusama/types/sp_arithmetic/mod.ts similarity index 100% rename from codegen/_output/kusama/sp_arithmetic/mod.ts rename to codegen/_output/kusama/types/sp_arithmetic/mod.ts diff --git a/codegen/_output/kusama/types/sp_arithmetic/per_things.ts b/codegen/_output/kusama/types/sp_arithmetic/per_things.ts new file mode 100644 index 000000000..f0df80b65 --- /dev/null +++ b/codegen/_output/kusama/types/sp_arithmetic/per_things.ts @@ -0,0 +1,35 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $perU16: $.Codec = _codec.$320 + +export const $perbill: $.Codec = _codec.$42 + +export const $percent: $.Codec = _codec.$205 + +export const $permill: $.Codec = _codec.$558 + +export type PerU16 = t.types.u16 + +export function PerU16(value: t.types.sp_arithmetic.per_things.PerU16) { + return value +} + +export type Perbill = t.types.u32 + +export function Perbill(value: t.types.sp_arithmetic.per_things.Perbill) { + return value +} + +export type Percent = t.types.u8 + +export function Percent(value: t.types.sp_arithmetic.per_things.Percent) { + return value +} + +export type Permill = t.types.u32 + +export function Permill(value: t.types.sp_arithmetic.per_things.Permill) { + return value +} diff --git a/codegen/_output/kusama/types/sp_authority_discovery/app.ts b/codegen/_output/kusama/types/sp_authority_discovery/app.ts new file mode 100644 index 000000000..96cf824f4 --- /dev/null +++ b/codegen/_output/kusama/types/sp_authority_discovery/app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$215 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.sp_authority_discovery.app.Public) { + return value +} diff --git a/codegen/_output/kusama/sp_authority_discovery/mod.ts b/codegen/_output/kusama/types/sp_authority_discovery/mod.ts similarity index 100% rename from codegen/_output/kusama/sp_authority_discovery/mod.ts rename to codegen/_output/kusama/types/sp_authority_discovery/mod.ts diff --git a/codegen/_output/kusama/types/sp_consensus_babe/app.ts b/codegen/_output/kusama/types/sp_consensus_babe/app.ts new file mode 100644 index 000000000..d3f29bc2c --- /dev/null +++ b/codegen/_output/kusama/types/sp_consensus_babe/app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$189 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.sp_consensus_babe.app.Public) { + return value +} diff --git a/codegen/_output/kusama/types/sp_consensus_babe/digests.ts b/codegen/_output/kusama/types/sp_consensus_babe/digests.ts new file mode 100644 index 000000000..4c4f4cd04 --- /dev/null +++ b/codegen/_output/kusama/types/sp_consensus_babe/digests.ts @@ -0,0 +1,103 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $nextConfigDescriptor: $.Codec< + t.types.sp_consensus_babe.digests.NextConfigDescriptor +> = _codec.$192 + +export const $preDigest: $.Codec = _codec.$462 + +export const $primaryPreDigest: $.Codec = + _codec.$463 + +export const $secondaryPlainPreDigest: $.Codec< + t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest +> = _codec.$464 + +export const $secondaryVRFPreDigest: $.Codec< + t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest +> = _codec.$465 + +export type NextConfigDescriptor = t.types.sp_consensus_babe.digests.NextConfigDescriptor.V1 +export namespace NextConfigDescriptor { + export interface V1 { + type: "V1" + c: [t.types.u64, t.types.u64] + allowed_slots: t.types.sp_consensus_babe.AllowedSlots + } + export function V1( + value: Omit, + ): t.types.sp_consensus_babe.digests.NextConfigDescriptor.V1 { + return { type: "V1", ...value } + } +} + +export type PreDigest = + | t.types.sp_consensus_babe.digests.PreDigest.Primary + | t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain + | t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF +export namespace PreDigest { + export interface Primary { + type: "Primary" + value: t.types.sp_consensus_babe.digests.PrimaryPreDigest + } + export interface SecondaryPlain { + type: "SecondaryPlain" + value: t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest + } + export interface SecondaryVRF { + type: "SecondaryVRF" + value: t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest + } + export function Primary( + value: t.types.sp_consensus_babe.digests.PreDigest.Primary["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.Primary { + return { type: "Primary", value } + } + export function SecondaryPlain( + value: t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain { + return { type: "SecondaryPlain", value } + } + export function SecondaryVRF( + value: t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF { + return { type: "SecondaryVRF", value } + } +} + +export interface PrimaryPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot + vrf_output: Uint8Array + vrf_proof: Uint8Array +} + +export function PrimaryPreDigest(value: t.types.sp_consensus_babe.digests.PrimaryPreDigest) { + return value +} + +export interface SecondaryPlainPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot +} + +export function SecondaryPlainPreDigest( + value: t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest, +) { + return value +} + +export interface SecondaryVRFPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot + vrf_output: Uint8Array + vrf_proof: Uint8Array +} + +export function SecondaryVRFPreDigest( + value: t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest, +) { + return value +} diff --git a/codegen/_output/kusama/types/sp_consensus_babe/mod.ts b/codegen/_output/kusama/types/sp_consensus_babe/mod.ts new file mode 100644 index 000000000..73ea2dcea --- /dev/null +++ b/codegen/_output/kusama/types/sp_consensus_babe/mod.ts @@ -0,0 +1,25 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as app from "./app.ts" +export * as digests from "./digests.ts" + +export const $allowedSlots: $.Codec = _codec.$194 + +export const $babeEpochConfiguration: $.Codec = + _codec.$466 + +export type AllowedSlots = + | "PrimarySlots" + | "PrimaryAndSecondaryPlainSlots" + | "PrimaryAndSecondaryVRFSlots" + +export interface BabeEpochConfiguration { + c: [t.types.u64, t.types.u64] + allowed_slots: t.types.sp_consensus_babe.AllowedSlots +} + +export function BabeEpochConfiguration(value: t.types.sp_consensus_babe.BabeEpochConfiguration) { + return value +} diff --git a/codegen/_output/kusama/types/sp_consensus_slots.ts b/codegen/_output/kusama/types/sp_consensus_slots.ts new file mode 100644 index 000000000..5aae2750c --- /dev/null +++ b/codegen/_output/kusama/types/sp_consensus_slots.ts @@ -0,0 +1,24 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $equivocationProof: $.Codec = _codec.$186 + +export const $slot: $.Codec = _codec.$190 + +export interface EquivocationProof { + offender: t.types.sp_consensus_babe.app.Public + slot: t.types.sp_consensus_slots.Slot + first_header: t.types.sp_runtime.generic.header.Header + second_header: t.types.sp_runtime.generic.header.Header +} + +export function EquivocationProof(value: t.types.sp_consensus_slots.EquivocationProof) { + return value +} + +export type Slot = t.types.u64 + +export function Slot(value: t.types.sp_consensus_slots.Slot) { + return value +} diff --git a/codegen/_output/kusama/types/sp_core/crypto.ts b/codegen/_output/kusama/types/sp_core/crypto.ts new file mode 100644 index 000000000..3fb7caefa --- /dev/null +++ b/codegen/_output/kusama/types/sp_core/crypto.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $accountId32: $.Codec = _codec.$0 + +export const $keyTypeId: $.Codec = _codec.$514 + +export type AccountId32 = Uint8Array + +export function AccountId32(value: t.types.sp_core.crypto.AccountId32) { + return value +} + +export type KeyTypeId = Uint8Array + +export function KeyTypeId(value: t.types.sp_core.crypto.KeyTypeId) { + return value +} diff --git a/codegen/_output/kusama/types/sp_core/ecdsa.ts b/codegen/_output/kusama/types/sp_core/ecdsa.ts new file mode 100644 index 000000000..46fe6ef05 --- /dev/null +++ b/codegen/_output/kusama/types/sp_core/ecdsa.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$418 + +export const $signature: $.Codec = _codec.$422 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.ecdsa.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.ecdsa.Signature) { + return value +} diff --git a/codegen/_output/kusama/types/sp_core/ed25519.ts b/codegen/_output/kusama/types/sp_core/ed25519.ts new file mode 100644 index 000000000..a23064e9b --- /dev/null +++ b/codegen/_output/kusama/types/sp_core/ed25519.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$51 + +export const $signature: $.Codec = _codec.$222 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.ed25519.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.ed25519.Signature) { + return value +} diff --git a/codegen/_output/kusama/types/sp_core/mod.ts b/codegen/_output/kusama/types/sp_core/mod.ts new file mode 100644 index 000000000..76b7c54c9 --- /dev/null +++ b/codegen/_output/kusama/types/sp_core/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as crypto from "./crypto.ts" +export * as ecdsa from "./ecdsa.ts" +export * as ed25519 from "./ed25519.ts" +export * as offchain from "./offchain.ts" +export * as sr25519 from "./sr25519.ts" + +export const $opaquePeerId: $.Codec = _codec.$230 + +export const $void: $.Codec = _codec.$262 + +export type OpaquePeerId = Uint8Array + +export function OpaquePeerId(value: t.types.sp_core.OpaquePeerId) { + return value +} + +export type Void = never diff --git a/codegen/_output/kusama/types/sp_core/offchain.ts b/codegen/_output/kusama/types/sp_core/offchain.ts new file mode 100644 index 000000000..dd675887f --- /dev/null +++ b/codegen/_output/kusama/types/sp_core/offchain.ts @@ -0,0 +1,22 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $opaqueMultiaddr: $.Codec = _codec.$232 + +export const $opaqueNetworkState: $.Codec = _codec.$229 + +export type OpaqueMultiaddr = Uint8Array + +export function OpaqueMultiaddr(value: t.types.sp_core.offchain.OpaqueMultiaddr) { + return value +} + +export interface OpaqueNetworkState { + peer_id: t.types.sp_core.OpaquePeerId + external_addresses: Array +} + +export function OpaqueNetworkState(value: t.types.sp_core.offchain.OpaqueNetworkState) { + return value +} diff --git a/codegen/_output/kusama/types/sp_core/sr25519.ts b/codegen/_output/kusama/types/sp_core/sr25519.ts new file mode 100644 index 000000000..a4e068793 --- /dev/null +++ b/codegen/_output/kusama/types/sp_core/sr25519.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$54 + +export const $signature: $.Codec = _codec.$101 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.sr25519.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.sr25519.Signature) { + return value +} diff --git a/codegen/_output/kusama/types/sp_finality_grandpa/app.ts b/codegen/_output/kusama/types/sp_finality_grandpa/app.ts new file mode 100644 index 000000000..1113934c6 --- /dev/null +++ b/codegen/_output/kusama/types/sp_finality_grandpa/app.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$50 + +export const $signature: $.Codec = _codec.$221 + +export type Public = t.types.sp_core.ed25519.Public + +export function Public(value: t.types.sp_finality_grandpa.app.Public) { + return value +} + +export type Signature = t.types.sp_core.ed25519.Signature + +export function Signature(value: t.types.sp_finality_grandpa.app.Signature) { + return value +} diff --git a/codegen/_output/kusama/types/sp_finality_grandpa/mod.ts b/codegen/_output/kusama/types/sp_finality_grandpa/mod.ts new file mode 100644 index 000000000..f120dbf22 --- /dev/null +++ b/codegen/_output/kusama/types/sp_finality_grandpa/mod.ts @@ -0,0 +1,43 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as app from "./app.ts" + +export const $equivocation: $.Codec = _codec.$218 + +export const $equivocationProof: $.Codec = + _codec.$217 + +export type Equivocation = + | t.types.sp_finality_grandpa.Equivocation.Prevote + | t.types.sp_finality_grandpa.Equivocation.Precommit +export namespace Equivocation { + export interface Prevote { + type: "Prevote" + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Prevote + } + export interface Precommit { + type: "Precommit" + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit + } + export function Prevote( + value: t.types.sp_finality_grandpa.Equivocation.Prevote["value"], + ): t.types.sp_finality_grandpa.Equivocation.Prevote { + return { type: "Prevote", value } + } + export function Precommit( + value: t.types.sp_finality_grandpa.Equivocation.Precommit["value"], + ): t.types.sp_finality_grandpa.Equivocation.Precommit { + return { type: "Precommit", value } + } +} + +export interface EquivocationProof { + set_id: t.types.u64 + equivocation: t.types.sp_finality_grandpa.Equivocation +} + +export function EquivocationProof(value: t.types.sp_finality_grandpa.EquivocationProof) { + return value +} diff --git a/codegen/_output/kusama/types/sp_npos_elections.ts b/codegen/_output/kusama/types/sp_npos_elections.ts new file mode 100644 index 000000000..de5eb30ab --- /dev/null +++ b/codegen/_output/kusama/types/sp_npos_elections.ts @@ -0,0 +1,26 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $electionScore: $.Codec = _codec.$88 + +export const $support: $.Codec = _codec.$367 + +export interface ElectionScore { + minimal_stake: t.types.u128 + sum_stake: t.types.u128 + sum_stake_squared: t.types.u128 +} + +export function ElectionScore(value: t.types.sp_npos_elections.ElectionScore) { + return value +} + +export interface Support { + total: t.types.u128 + voters: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> +} + +export function Support(value: t.types.sp_npos_elections.Support) { + return value +} diff --git a/codegen/_output/kusama/types/sp_runtime/generic/digest.ts b/codegen/_output/kusama/types/sp_runtime/generic/digest.ts new file mode 100644 index 000000000..82a236b97 --- /dev/null +++ b/codegen/_output/kusama/types/sp_runtime/generic/digest.ts @@ -0,0 +1,66 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $digest: $.Codec = _codec.$13 + +export const $digestItem: $.Codec = _codec.$15 + +export interface Digest { + logs: Array +} + +export function Digest(value: t.types.sp_runtime.generic.digest.Digest) { + return value +} + +export type DigestItem = + | t.types.sp_runtime.generic.digest.DigestItem.PreRuntime + | t.types.sp_runtime.generic.digest.DigestItem.Consensus + | t.types.sp_runtime.generic.digest.DigestItem.Seal + | t.types.sp_runtime.generic.digest.DigestItem.Other + | t.types.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated +export namespace DigestItem { + export interface PreRuntime { + type: "PreRuntime" + value: [Uint8Array, Uint8Array] + } + export interface Consensus { + type: "Consensus" + value: [Uint8Array, Uint8Array] + } + export interface Seal { + type: "Seal" + value: [Uint8Array, Uint8Array] + } + export interface Other { + type: "Other" + value: Uint8Array + } + export interface RuntimeEnvironmentUpdated { + type: "RuntimeEnvironmentUpdated" + } + export function PreRuntime( + ...value: t.types.sp_runtime.generic.digest.DigestItem.PreRuntime["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.PreRuntime { + return { type: "PreRuntime", value } + } + export function Consensus( + ...value: t.types.sp_runtime.generic.digest.DigestItem.Consensus["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.Consensus { + return { type: "Consensus", value } + } + export function Seal( + ...value: t.types.sp_runtime.generic.digest.DigestItem.Seal["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.Seal { + return { type: "Seal", value } + } + export function Other( + value: t.types.sp_runtime.generic.digest.DigestItem.Other["value"], + ): t.types.sp_runtime.generic.digest.DigestItem.Other { + return { type: "Other", value } + } + export function RuntimeEnvironmentUpdated(): t.types.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated { + return { type: "RuntimeEnvironmentUpdated" } + } +} diff --git a/codegen/_output/kusama/types/sp_runtime/generic/header.ts b/codegen/_output/kusama/types/sp_runtime/generic/header.ts new file mode 100644 index 000000000..1d9deba5b --- /dev/null +++ b/codegen/_output/kusama/types/sp_runtime/generic/header.ts @@ -0,0 +1,17 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $header: $.Codec = _codec.$187 + +export interface Header { + parent_hash: t.types.primitive_types.H256 + number: t.Compact + state_root: t.types.primitive_types.H256 + extrinsics_root: t.types.primitive_types.H256 + digest: t.types.sp_runtime.generic.digest.Digest +} + +export function Header(value: t.types.sp_runtime.generic.header.Header) { + return value +} diff --git a/codegen/_output/kusama/sp_runtime/generic/mod.ts b/codegen/_output/kusama/types/sp_runtime/generic/mod.ts similarity index 100% rename from codegen/_output/kusama/sp_runtime/generic/mod.ts rename to codegen/_output/kusama/types/sp_runtime/generic/mod.ts diff --git a/codegen/_output/kusama/types/sp_runtime/mod.ts b/codegen/_output/kusama/types/sp_runtime/mod.ts new file mode 100644 index 000000000..d17725156 --- /dev/null +++ b/codegen/_output/kusama/types/sp_runtime/mod.ts @@ -0,0 +1,218 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as generic from "./generic/mod.ts" +export * as multiaddress from "./multiaddress.ts" +export * as traits from "./traits.ts" + +export const $arithmeticError: $.Codec = _codec.$27 + +export const $dispatchError: $.Codec = _codec.$24 + +export const $moduleError: $.Codec = _codec.$25 + +export const $multiSignature: $.Codec = _codec.$421 + +export const $multiSigner: $.Codec = _codec.$417 + +export const $tokenError: $.Codec = _codec.$26 + +export const $transactionalError: $.Codec = _codec.$28 + +export type ArithmeticError = "Underflow" | "Overflow" | "DivisionByZero" + +export type DispatchError = + | t.types.sp_runtime.DispatchError.Other + | t.types.sp_runtime.DispatchError.CannotLookup + | t.types.sp_runtime.DispatchError.BadOrigin + | t.types.sp_runtime.DispatchError.Module + | t.types.sp_runtime.DispatchError.ConsumerRemaining + | t.types.sp_runtime.DispatchError.NoProviders + | t.types.sp_runtime.DispatchError.TooManyConsumers + | t.types.sp_runtime.DispatchError.Token + | t.types.sp_runtime.DispatchError.Arithmetic + | t.types.sp_runtime.DispatchError.Transactional + | t.types.sp_runtime.DispatchError.Exhausted + | t.types.sp_runtime.DispatchError.Corruption + | t.types.sp_runtime.DispatchError.Unavailable +export namespace DispatchError { + export interface Other { + type: "Other" + } + export interface CannotLookup { + type: "CannotLookup" + } + export interface BadOrigin { + type: "BadOrigin" + } + export interface Module { + type: "Module" + value: t.types.sp_runtime.ModuleError + } + export interface ConsumerRemaining { + type: "ConsumerRemaining" + } + export interface NoProviders { + type: "NoProviders" + } + export interface TooManyConsumers { + type: "TooManyConsumers" + } + export interface Token { + type: "Token" + value: t.types.sp_runtime.TokenError + } + export interface Arithmetic { + type: "Arithmetic" + value: t.types.sp_runtime.ArithmeticError + } + export interface Transactional { + type: "Transactional" + value: t.types.sp_runtime.TransactionalError + } + export interface Exhausted { + type: "Exhausted" + } + export interface Corruption { + type: "Corruption" + } + export interface Unavailable { + type: "Unavailable" + } + export function Other(): t.types.sp_runtime.DispatchError.Other { + return { type: "Other" } + } + export function CannotLookup(): t.types.sp_runtime.DispatchError.CannotLookup { + return { type: "CannotLookup" } + } + export function BadOrigin(): t.types.sp_runtime.DispatchError.BadOrigin { + return { type: "BadOrigin" } + } + export function Module( + value: t.types.sp_runtime.DispatchError.Module["value"], + ): t.types.sp_runtime.DispatchError.Module { + return { type: "Module", value } + } + export function ConsumerRemaining(): t.types.sp_runtime.DispatchError.ConsumerRemaining { + return { type: "ConsumerRemaining" } + } + export function NoProviders(): t.types.sp_runtime.DispatchError.NoProviders { + return { type: "NoProviders" } + } + export function TooManyConsumers(): t.types.sp_runtime.DispatchError.TooManyConsumers { + return { type: "TooManyConsumers" } + } + export function Token( + value: t.types.sp_runtime.DispatchError.Token["value"], + ): t.types.sp_runtime.DispatchError.Token { + return { type: "Token", value } + } + export function Arithmetic( + value: t.types.sp_runtime.DispatchError.Arithmetic["value"], + ): t.types.sp_runtime.DispatchError.Arithmetic { + return { type: "Arithmetic", value } + } + export function Transactional( + value: t.types.sp_runtime.DispatchError.Transactional["value"], + ): t.types.sp_runtime.DispatchError.Transactional { + return { type: "Transactional", value } + } + export function Exhausted(): t.types.sp_runtime.DispatchError.Exhausted { + return { type: "Exhausted" } + } + export function Corruption(): t.types.sp_runtime.DispatchError.Corruption { + return { type: "Corruption" } + } + export function Unavailable(): t.types.sp_runtime.DispatchError.Unavailable { + return { type: "Unavailable" } + } +} + +export interface ModuleError { + index: t.types.u8 + error: Uint8Array +} + +export function ModuleError(value: t.types.sp_runtime.ModuleError) { + return value +} + +export type MultiSignature = + | t.types.sp_runtime.MultiSignature.Ed25519 + | t.types.sp_runtime.MultiSignature.Sr25519 + | t.types.sp_runtime.MultiSignature.Ecdsa +export namespace MultiSignature { + export interface Ed25519 { + type: "Ed25519" + value: t.types.sp_core.ed25519.Signature + } + export interface Sr25519 { + type: "Sr25519" + value: t.types.sp_core.sr25519.Signature + } + export interface Ecdsa { + type: "Ecdsa" + value: t.types.sp_core.ecdsa.Signature + } + export function Ed25519( + value: t.types.sp_runtime.MultiSignature.Ed25519["value"], + ): t.types.sp_runtime.MultiSignature.Ed25519 { + return { type: "Ed25519", value } + } + export function Sr25519( + value: t.types.sp_runtime.MultiSignature.Sr25519["value"], + ): t.types.sp_runtime.MultiSignature.Sr25519 { + return { type: "Sr25519", value } + } + export function Ecdsa( + value: t.types.sp_runtime.MultiSignature.Ecdsa["value"], + ): t.types.sp_runtime.MultiSignature.Ecdsa { + return { type: "Ecdsa", value } + } +} + +export type MultiSigner = + | t.types.sp_runtime.MultiSigner.Ed25519 + | t.types.sp_runtime.MultiSigner.Sr25519 + | t.types.sp_runtime.MultiSigner.Ecdsa +export namespace MultiSigner { + export interface Ed25519 { + type: "Ed25519" + value: t.types.sp_core.ed25519.Public + } + export interface Sr25519 { + type: "Sr25519" + value: t.types.sp_core.sr25519.Public + } + export interface Ecdsa { + type: "Ecdsa" + value: t.types.sp_core.ecdsa.Public + } + export function Ed25519( + value: t.types.sp_runtime.MultiSigner.Ed25519["value"], + ): t.types.sp_runtime.MultiSigner.Ed25519 { + return { type: "Ed25519", value } + } + export function Sr25519( + value: t.types.sp_runtime.MultiSigner.Sr25519["value"], + ): t.types.sp_runtime.MultiSigner.Sr25519 { + return { type: "Sr25519", value } + } + export function Ecdsa( + value: t.types.sp_runtime.MultiSigner.Ecdsa["value"], + ): t.types.sp_runtime.MultiSigner.Ecdsa { + return { type: "Ecdsa", value } + } +} + +export type TokenError = + | "NoFunds" + | "WouldDie" + | "BelowMinimum" + | "CannotCreate" + | "UnknownAsset" + | "Frozen" + | "Unsupported" + +export type TransactionalError = "LimitReached" | "NoLayer" diff --git a/codegen/_output/kusama/types/sp_runtime/multiaddress.ts b/codegen/_output/kusama/types/sp_runtime/multiaddress.ts new file mode 100644 index 000000000..cef3e56ce --- /dev/null +++ b/codegen/_output/kusama/types/sp_runtime/multiaddress.ts @@ -0,0 +1,59 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $multiAddress: $.Codec = _codec.$197 + +export type MultiAddress = + | t.types.sp_runtime.multiaddress.MultiAddress.Id + | t.types.sp_runtime.multiaddress.MultiAddress.Index + | t.types.sp_runtime.multiaddress.MultiAddress.Raw + | t.types.sp_runtime.multiaddress.MultiAddress.Address32 + | t.types.sp_runtime.multiaddress.MultiAddress.Address20 +export namespace MultiAddress { + export interface Id { + type: "Id" + value: t.types.sp_core.crypto.AccountId32 + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Raw { + type: "Raw" + value: Uint8Array + } + export interface Address32 { + type: "Address32" + value: Uint8Array + } + export interface Address20 { + type: "Address20" + value: Uint8Array + } + export function Id( + value: t.types.sp_runtime.multiaddress.MultiAddress.Id["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Id { + return { type: "Id", value } + } + export function Index( + value: t.types.sp_runtime.multiaddress.MultiAddress.Index["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Index { + return { type: "Index", value } + } + export function Raw( + value: t.types.sp_runtime.multiaddress.MultiAddress.Raw["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Raw { + return { type: "Raw", value } + } + export function Address32( + value: t.types.sp_runtime.multiaddress.MultiAddress.Address32["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Address32 { + return { type: "Address32", value } + } + export function Address20( + value: t.types.sp_runtime.multiaddress.MultiAddress.Address20["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Address20 { + return { type: "Address20", value } + } +} diff --git a/codegen/_output/kusama/types/sp_runtime/traits.ts b/codegen/_output/kusama/types/sp_runtime/traits.ts new file mode 100644 index 000000000..71293ed25 --- /dev/null +++ b/codegen/_output/kusama/types/sp_runtime/traits.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $blakeTwo256: $.Codec = _codec.$188 + +export function BlakeTwo256() { + return null +} + +export type BlakeTwo256 = null diff --git a/codegen/_output/kusama/types/sp_session.ts b/codegen/_output/kusama/types/sp_session.ts new file mode 100644 index 000000000..0d1cce46f --- /dev/null +++ b/codegen/_output/kusama/types/sp_session.ts @@ -0,0 +1,15 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $membershipProof: $.Codec = _codec.$191 + +export interface MembershipProof { + session: t.types.u32 + trie_nodes: Array + validator_count: t.types.u32 +} + +export function MembershipProof(value: t.types.sp_session.MembershipProof) { + return value +} diff --git a/codegen/_output/kusama/sp_staking/mod.ts b/codegen/_output/kusama/types/sp_staking/mod.ts similarity index 100% rename from codegen/_output/kusama/sp_staking/mod.ts rename to codegen/_output/kusama/types/sp_staking/mod.ts diff --git a/codegen/_output/kusama/types/sp_staking/offence.ts b/codegen/_output/kusama/types/sp_staking/offence.ts new file mode 100644 index 000000000..b040fad84 --- /dev/null +++ b/codegen/_output/kusama/types/sp_staking/offence.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $offenceDetails: $.Codec = _codec.$509 + +export interface OffenceDetails { + offender: [t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure] + reporters: Array +} + +export function OffenceDetails(value: t.types.sp_staking.offence.OffenceDetails) { + return value +} diff --git a/codegen/_output/kusama/types/sp_version.ts b/codegen/_output/kusama/types/sp_version.ts new file mode 100644 index 000000000..6d5fd37d2 --- /dev/null +++ b/codegen/_output/kusama/types/sp_version.ts @@ -0,0 +1,20 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $runtimeVersion: $.Codec = _codec.$172 + +export interface RuntimeVersion { + spec_name: string + impl_name: string + authoring_version: t.types.u32 + spec_version: t.types.u32 + impl_version: t.types.u32 + apis: Array<[Uint8Array, t.types.u32]> + transaction_version: t.types.u32 + state_version: t.types.u8 +} + +export function RuntimeVersion(value: t.types.sp_version.RuntimeVersion) { + return value +} diff --git a/codegen/_output/kusama/types/sp_weights/mod.ts b/codegen/_output/kusama/types/sp_weights/mod.ts new file mode 100644 index 000000000..6c71df30c --- /dev/null +++ b/codegen/_output/kusama/types/sp_weights/mod.ts @@ -0,0 +1,24 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as weight_v2 from "./weight_v2.ts" + +export const $oldWeight: $.Codec = _codec.$239 + +export const $runtimeDbWeight: $.Codec = _codec.$171 + +export type OldWeight = t.types.u64 + +export function OldWeight(value: t.types.sp_weights.OldWeight) { + return value +} + +export interface RuntimeDbWeight { + read: t.types.u64 + write: t.types.u64 +} + +export function RuntimeDbWeight(value: t.types.sp_weights.RuntimeDbWeight) { + return value +} diff --git a/codegen/_output/kusama/types/sp_weights/weight_v2.ts b/codegen/_output/kusama/types/sp_weights/weight_v2.ts new file mode 100644 index 000000000..16e7987be --- /dev/null +++ b/codegen/_output/kusama/types/sp_weights/weight_v2.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $weight: $.Codec = _codec.$8 + +export interface Weight { + ref_time: t.Compact + proof_size: t.Compact +} + +export function Weight(value: t.types.sp_weights.weight_v2.Weight) { + return value +} diff --git a/codegen/_output/kusama/types/xcm/mod.ts b/codegen/_output/kusama/types/xcm/mod.ts new file mode 100644 index 000000000..2b0075cda --- /dev/null +++ b/codegen/_output/kusama/types/xcm/mod.ts @@ -0,0 +1,125 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as v0 from "./v0/mod.ts" +export * as v1 from "./v1/mod.ts" +export * as v2 from "./v2/mod.ts" + +export const $versionedMultiAssets: $.Codec = _codec.$150 + +export const $versionedMultiLocation: $.Codec = _codec.$155 + +export const $versionedResponse: $.Codec = _codec.$716 + +export const $versionedXcm: $.Codec = _codec.$424 + +export type VersionedMultiAssets = + | t.types.xcm.VersionedMultiAssets.V0 + | t.types.xcm.VersionedMultiAssets.V1 +export namespace VersionedMultiAssets { + export interface V0 { + type: "V0" + value: Array + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export function V0( + value: t.types.xcm.VersionedMultiAssets.V0["value"], + ): t.types.xcm.VersionedMultiAssets.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedMultiAssets.V1["value"], + ): t.types.xcm.VersionedMultiAssets.V1 { + return { type: "V1", value } + } +} + +export type VersionedMultiLocation = + | t.types.xcm.VersionedMultiLocation.V0 + | t.types.xcm.VersionedMultiLocation.V1 +export namespace VersionedMultiLocation { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.multi_location.MultiLocation + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.multilocation.MultiLocation + } + export function V0( + value: t.types.xcm.VersionedMultiLocation.V0["value"], + ): t.types.xcm.VersionedMultiLocation.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedMultiLocation.V1["value"], + ): t.types.xcm.VersionedMultiLocation.V1 { + return { type: "V1", value } + } +} + +export type VersionedResponse = + | t.types.xcm.VersionedResponse.V0 + | t.types.xcm.VersionedResponse.V1 + | t.types.xcm.VersionedResponse.V2 +export namespace VersionedResponse { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.Response + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.Response + } + export interface V2 { + type: "V2" + value: t.types.xcm.v2.Response + } + export function V0( + value: t.types.xcm.VersionedResponse.V0["value"], + ): t.types.xcm.VersionedResponse.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedResponse.V1["value"], + ): t.types.xcm.VersionedResponse.V1 { + return { type: "V1", value } + } + export function V2( + value: t.types.xcm.VersionedResponse.V2["value"], + ): t.types.xcm.VersionedResponse.V2 { + return { type: "V2", value } + } +} + +export type VersionedXcm = + | t.types.xcm.VersionedXcm.V0 + | t.types.xcm.VersionedXcm.V1 + | t.types.xcm.VersionedXcm.V2 +export namespace VersionedXcm { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.Xcm + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.Xcm + } + export interface V2 { + type: "V2" + value: Array + } + export function V0(value: t.types.xcm.VersionedXcm.V0["value"]): t.types.xcm.VersionedXcm.V0 { + return { type: "V0", value } + } + export function V1(value: t.types.xcm.VersionedXcm.V1["value"]): t.types.xcm.VersionedXcm.V1 { + return { type: "V1", value } + } + export function V2(value: t.types.xcm.VersionedXcm.V2["value"]): t.types.xcm.VersionedXcm.V2 { + return { type: "V2", value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v0/junction.ts b/codegen/_output/kusama/types/xcm/v0/junction.ts new file mode 100644 index 000000000..8d6d89a84 --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v0/junction.ts @@ -0,0 +1,261 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $bodyId: $.Codec = _codec.$128 + +export const $bodyPart: $.Codec = _codec.$129 + +export const $junction: $.Codec = _codec.$154 + +export const $networkId: $.Codec = _codec.$126 + +export type BodyId = + | t.types.xcm.v0.junction.BodyId.Unit + | t.types.xcm.v0.junction.BodyId.Named + | t.types.xcm.v0.junction.BodyId.Index + | t.types.xcm.v0.junction.BodyId.Executive + | t.types.xcm.v0.junction.BodyId.Technical + | t.types.xcm.v0.junction.BodyId.Legislative + | t.types.xcm.v0.junction.BodyId.Judicial +export namespace BodyId { + export interface Unit { + type: "Unit" + } + export interface Named { + type: "Named" + value: Uint8Array + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Executive { + type: "Executive" + } + export interface Technical { + type: "Technical" + } + export interface Legislative { + type: "Legislative" + } + export interface Judicial { + type: "Judicial" + } + export function Unit(): t.types.xcm.v0.junction.BodyId.Unit { + return { type: "Unit" } + } + export function Named( + value: t.types.xcm.v0.junction.BodyId.Named["value"], + ): t.types.xcm.v0.junction.BodyId.Named { + return { type: "Named", value } + } + export function Index( + value: t.types.xcm.v0.junction.BodyId.Index["value"], + ): t.types.xcm.v0.junction.BodyId.Index { + return { type: "Index", value } + } + export function Executive(): t.types.xcm.v0.junction.BodyId.Executive { + return { type: "Executive" } + } + export function Technical(): t.types.xcm.v0.junction.BodyId.Technical { + return { type: "Technical" } + } + export function Legislative(): t.types.xcm.v0.junction.BodyId.Legislative { + return { type: "Legislative" } + } + export function Judicial(): t.types.xcm.v0.junction.BodyId.Judicial { + return { type: "Judicial" } + } +} + +export type BodyPart = + | t.types.xcm.v0.junction.BodyPart.Voice + | t.types.xcm.v0.junction.BodyPart.Members + | t.types.xcm.v0.junction.BodyPart.Fraction + | t.types.xcm.v0.junction.BodyPart.AtLeastProportion + | t.types.xcm.v0.junction.BodyPart.MoreThanProportion +export namespace BodyPart { + export interface Voice { + type: "Voice" + } + export interface Members { + type: "Members" + count: t.Compact + } + export interface Fraction { + type: "Fraction" + nom: t.Compact + denom: t.Compact + } + export interface AtLeastProportion { + type: "AtLeastProportion" + nom: t.Compact + denom: t.Compact + } + export interface MoreThanProportion { + type: "MoreThanProportion" + nom: t.Compact + denom: t.Compact + } + export function Voice(): t.types.xcm.v0.junction.BodyPart.Voice { + return { type: "Voice" } + } + export function Members( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.Members { + return { type: "Members", ...value } + } + export function Fraction( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.Fraction { + return { type: "Fraction", ...value } + } + export function AtLeastProportion( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.AtLeastProportion { + return { type: "AtLeastProportion", ...value } + } + export function MoreThanProportion( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.MoreThanProportion { + return { type: "MoreThanProportion", ...value } + } +} + +export type Junction = + | t.types.xcm.v0.junction.Junction.Parent + | t.types.xcm.v0.junction.Junction.Parachain + | t.types.xcm.v0.junction.Junction.AccountId32 + | t.types.xcm.v0.junction.Junction.AccountIndex64 + | t.types.xcm.v0.junction.Junction.AccountKey20 + | t.types.xcm.v0.junction.Junction.PalletInstance + | t.types.xcm.v0.junction.Junction.GeneralIndex + | t.types.xcm.v0.junction.Junction.GeneralKey + | t.types.xcm.v0.junction.Junction.OnlyChild + | t.types.xcm.v0.junction.Junction.Plurality +export namespace Junction { + export interface Parent { + type: "Parent" + } + export interface Parachain { + type: "Parachain" + value: t.Compact + } + export interface AccountId32 { + type: "AccountId32" + network: t.types.xcm.v0.junction.NetworkId + id: Uint8Array + } + export interface AccountIndex64 { + type: "AccountIndex64" + network: t.types.xcm.v0.junction.NetworkId + index: t.Compact + } + export interface AccountKey20 { + type: "AccountKey20" + network: t.types.xcm.v0.junction.NetworkId + key: Uint8Array + } + export interface PalletInstance { + type: "PalletInstance" + value: t.types.u8 + } + export interface GeneralIndex { + type: "GeneralIndex" + value: t.Compact + } + export interface GeneralKey { + type: "GeneralKey" + value: Uint8Array + } + export interface OnlyChild { + type: "OnlyChild" + } + export interface Plurality { + type: "Plurality" + id: t.types.xcm.v0.junction.BodyId + part: t.types.xcm.v0.junction.BodyPart + } + export function Parent(): t.types.xcm.v0.junction.Junction.Parent { + return { type: "Parent" } + } + export function Parachain( + value: t.types.xcm.v0.junction.Junction.Parachain["value"], + ): t.types.xcm.v0.junction.Junction.Parachain { + return { type: "Parachain", value } + } + export function AccountId32( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountId32 { + return { type: "AccountId32", ...value } + } + export function AccountIndex64( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountIndex64 { + return { type: "AccountIndex64", ...value } + } + export function AccountKey20( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountKey20 { + return { type: "AccountKey20", ...value } + } + export function PalletInstance( + value: t.types.xcm.v0.junction.Junction.PalletInstance["value"], + ): t.types.xcm.v0.junction.Junction.PalletInstance { + return { type: "PalletInstance", value } + } + export function GeneralIndex( + value: t.types.xcm.v0.junction.Junction.GeneralIndex["value"], + ): t.types.xcm.v0.junction.Junction.GeneralIndex { + return { type: "GeneralIndex", value } + } + export function GeneralKey( + value: t.types.xcm.v0.junction.Junction.GeneralKey["value"], + ): t.types.xcm.v0.junction.Junction.GeneralKey { + return { type: "GeneralKey", value } + } + export function OnlyChild(): t.types.xcm.v0.junction.Junction.OnlyChild { + return { type: "OnlyChild" } + } + export function Plurality( + value: Omit, + ): t.types.xcm.v0.junction.Junction.Plurality { + return { type: "Plurality", ...value } + } +} + +export type NetworkId = + | t.types.xcm.v0.junction.NetworkId.Any + | t.types.xcm.v0.junction.NetworkId.Named + | t.types.xcm.v0.junction.NetworkId.Polkadot + | t.types.xcm.v0.junction.NetworkId.Kusama +export namespace NetworkId { + export interface Any { + type: "Any" + } + export interface Named { + type: "Named" + value: Uint8Array + } + export interface Polkadot { + type: "Polkadot" + } + export interface Kusama { + type: "Kusama" + } + export function Any(): t.types.xcm.v0.junction.NetworkId.Any { + return { type: "Any" } + } + export function Named( + value: t.types.xcm.v0.junction.NetworkId.Named["value"], + ): t.types.xcm.v0.junction.NetworkId.Named { + return { type: "Named", value } + } + export function Polkadot(): t.types.xcm.v0.junction.NetworkId.Polkadot { + return { type: "Polkadot" } + } + export function Kusama(): t.types.xcm.v0.junction.NetworkId.Kusama { + return { type: "Kusama" } + } +} diff --git a/codegen/_output/kusama/types/xcm/v0/mod.ts b/codegen/_output/kusama/types/xcm/v0/mod.ts new file mode 100644 index 000000000..44faf4b53 --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v0/mod.ts @@ -0,0 +1,157 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as junction from "./junction.ts" +export * as multi_asset from "./multi_asset.ts" +export * as multi_location from "./multi_location.ts" +export * as order from "./order.ts" + +export const $originKind: $.Codec = _codec.$143 + +export const $response: $.Codec = _codec.$429 + +export const $xcm: $.Codec = _codec.$425 + +export type OriginKind = "Native" | "SovereignAccount" | "Superuser" | "Xcm" + +export type Response = t.types.xcm.v0.Response.Assets +export namespace Response { + export interface Assets { + type: "Assets" + value: Array + } + export function Assets( + value: t.types.xcm.v0.Response.Assets["value"], + ): t.types.xcm.v0.Response.Assets { + return { type: "Assets", value } + } +} + +export type Xcm = + | t.types.xcm.v0.Xcm.WithdrawAsset + | t.types.xcm.v0.Xcm.ReserveAssetDeposit + | t.types.xcm.v0.Xcm.TeleportAsset + | t.types.xcm.v0.Xcm.QueryResponse + | t.types.xcm.v0.Xcm.TransferAsset + | t.types.xcm.v0.Xcm.TransferReserveAsset + | t.types.xcm.v0.Xcm.Transact + | t.types.xcm.v0.Xcm.HrmpNewChannelOpenRequest + | t.types.xcm.v0.Xcm.HrmpChannelAccepted + | t.types.xcm.v0.Xcm.HrmpChannelClosing + | t.types.xcm.v0.Xcm.RelayedFrom +export namespace Xcm { + export interface WithdrawAsset { + type: "WithdrawAsset" + assets: Array + effects: Array + } + export interface ReserveAssetDeposit { + type: "ReserveAssetDeposit" + assets: Array + effects: Array + } + export interface TeleportAsset { + type: "TeleportAsset" + assets: Array + effects: Array + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v0.Response + } + export interface TransferAsset { + type: "TransferAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.types.u64 + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface RelayedFrom { + type: "RelayedFrom" + who: t.types.xcm.v0.multi_location.MultiLocation + message: t.types.xcm.v0.Xcm + } + export function WithdrawAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.WithdrawAsset { + return { type: "WithdrawAsset", ...value } + } + export function ReserveAssetDeposit( + value: Omit, + ): t.types.xcm.v0.Xcm.ReserveAssetDeposit { + return { type: "ReserveAssetDeposit", ...value } + } + export function TeleportAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TeleportAsset { + return { type: "TeleportAsset", ...value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v0.Xcm.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v0.Xcm.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function RelayedFrom( + value: Omit, + ): t.types.xcm.v0.Xcm.RelayedFrom { + return { type: "RelayedFrom", ...value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v0/multi_asset.ts b/codegen/_output/kusama/types/xcm/v0/multi_asset.ts new file mode 100644 index 000000000..d5cc676ee --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v0/multi_asset.ts @@ -0,0 +1,121 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $multiAsset: $.Codec = _codec.$152 + +export type MultiAsset = + | t.types.xcm.v0.multi_asset.MultiAsset.None + | t.types.xcm.v0.multi_asset.MultiAsset.All + | t.types.xcm.v0.multi_asset.MultiAsset.AllFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AbstractFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.ConcreteFungible + | t.types.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible +export namespace MultiAsset { + export interface None { + type: "None" + } + export interface All { + type: "All" + } + export interface AllFungible { + type: "AllFungible" + } + export interface AllNonFungible { + type: "AllNonFungible" + } + export interface AllAbstractFungible { + type: "AllAbstractFungible" + id: Uint8Array + } + export interface AllAbstractNonFungible { + type: "AllAbstractNonFungible" + class: Uint8Array + } + export interface AllConcreteFungible { + type: "AllConcreteFungible" + id: t.types.xcm.v0.multi_location.MultiLocation + } + export interface AllConcreteNonFungible { + type: "AllConcreteNonFungible" + class: t.types.xcm.v0.multi_location.MultiLocation + } + export interface AbstractFungible { + type: "AbstractFungible" + id: Uint8Array + amount: t.Compact + } + export interface AbstractNonFungible { + type: "AbstractNonFungible" + class: Uint8Array + instance: t.types.xcm.v1.multiasset.AssetInstance + } + export interface ConcreteFungible { + type: "ConcreteFungible" + id: t.types.xcm.v0.multi_location.MultiLocation + amount: t.Compact + } + export interface ConcreteNonFungible { + type: "ConcreteNonFungible" + class: t.types.xcm.v0.multi_location.MultiLocation + instance: t.types.xcm.v1.multiasset.AssetInstance + } + export function None(): t.types.xcm.v0.multi_asset.MultiAsset.None { + return { type: "None" } + } + export function All(): t.types.xcm.v0.multi_asset.MultiAsset.All { + return { type: "All" } + } + export function AllFungible(): t.types.xcm.v0.multi_asset.MultiAsset.AllFungible { + return { type: "AllFungible" } + } + export function AllNonFungible(): t.types.xcm.v0.multi_asset.MultiAsset.AllNonFungible { + return { type: "AllNonFungible" } + } + export function AllAbstractFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible { + return { type: "AllAbstractFungible", ...value } + } + export function AllAbstractNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible { + return { type: "AllAbstractNonFungible", ...value } + } + export function AllConcreteFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible { + return { type: "AllConcreteFungible", ...value } + } + export function AllConcreteNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible { + return { type: "AllConcreteNonFungible", ...value } + } + export function AbstractFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AbstractFungible { + return { type: "AbstractFungible", ...value } + } + export function AbstractNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible { + return { type: "AbstractNonFungible", ...value } + } + export function ConcreteFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.ConcreteFungible { + return { type: "ConcreteFungible", ...value } + } + export function ConcreteNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible { + return { type: "ConcreteNonFungible", ...value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v0/multi_location.ts b/codegen/_output/kusama/types/xcm/v0/multi_location.ts new file mode 100644 index 000000000..3a52363c6 --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v0/multi_location.ts @@ -0,0 +1,135 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $multiLocation: $.Codec = _codec.$153 + +export type MultiLocation = + | t.types.xcm.v0.multi_location.MultiLocation.Null + | t.types.xcm.v0.multi_location.MultiLocation.X1 + | t.types.xcm.v0.multi_location.MultiLocation.X2 + | t.types.xcm.v0.multi_location.MultiLocation.X3 + | t.types.xcm.v0.multi_location.MultiLocation.X4 + | t.types.xcm.v0.multi_location.MultiLocation.X5 + | t.types.xcm.v0.multi_location.MultiLocation.X6 + | t.types.xcm.v0.multi_location.MultiLocation.X7 + | t.types.xcm.v0.multi_location.MultiLocation.X8 +export namespace MultiLocation { + export interface Null { + type: "Null" + } + export interface X1 { + type: "X1" + value: t.types.xcm.v0.junction.Junction + } + export interface X2 { + type: "X2" + value: [t.types.xcm.v0.junction.Junction, t.types.xcm.v0.junction.Junction] + } + export interface X3 { + type: "X3" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X4 { + type: "X4" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X5 { + type: "X5" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X6 { + type: "X6" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X7 { + type: "X7" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X8 { + type: "X8" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export function Null(): t.types.xcm.v0.multi_location.MultiLocation.Null { + return { type: "Null" } + } + export function X1( + value: t.types.xcm.v0.multi_location.MultiLocation.X1["value"], + ): t.types.xcm.v0.multi_location.MultiLocation.X1 { + return { type: "X1", value } + } + export function X2( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X2["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X2 { + return { type: "X2", value } + } + export function X3( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X3["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X3 { + return { type: "X3", value } + } + export function X4( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X4["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X4 { + return { type: "X4", value } + } + export function X5( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X5["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X5 { + return { type: "X5", value } + } + export function X6( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X6["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X6 { + return { type: "X6", value } + } + export function X7( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X7["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X7 { + return { type: "X7", value } + } + export function X8( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X8["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X8 { + return { type: "X8", value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v0/order.ts b/codegen/_output/kusama/types/xcm/v0/order.ts new file mode 100644 index 000000000..e5f60587d --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v0/order.ts @@ -0,0 +1,100 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $order: $.Codec = _codec.$427 + +export type Order = + | t.types.xcm.v0.order.Order.Null + | t.types.xcm.v0.order.Order.DepositAsset + | t.types.xcm.v0.order.Order.DepositReserveAsset + | t.types.xcm.v0.order.Order.ExchangeAsset + | t.types.xcm.v0.order.Order.InitiateReserveWithdraw + | t.types.xcm.v0.order.Order.InitiateTeleport + | t.types.xcm.v0.order.Order.QueryHolding + | t.types.xcm.v0.order.Order.BuyExecution +export namespace Order { + export interface Null { + type: "Null" + } + export interface DepositAsset { + type: "DepositAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: Array + receive: Array + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: Array + reserve: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v0.multi_location.MultiLocation + assets: Array + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v0.multi_asset.MultiAsset + weight: t.types.u64 + debt: t.types.u64 + halt_on_error: boolean + xcm: Array + } + export function Null(): t.types.xcm.v0.order.Order.Null { + return { type: "Null" } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v0.order.Order.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v0.order.Order.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v0.order.Order.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v0.order.Order.BuyExecution { + return { type: "BuyExecution", ...value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v1/junction.ts b/codegen/_output/kusama/types/xcm/v1/junction.ts new file mode 100644 index 000000000..f1b0cb62f --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v1/junction.ts @@ -0,0 +1,100 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $junction: $.Codec = _codec.$124 + +export type Junction = + | t.types.xcm.v1.junction.Junction.Parachain + | t.types.xcm.v1.junction.Junction.AccountId32 + | t.types.xcm.v1.junction.Junction.AccountIndex64 + | t.types.xcm.v1.junction.Junction.AccountKey20 + | t.types.xcm.v1.junction.Junction.PalletInstance + | t.types.xcm.v1.junction.Junction.GeneralIndex + | t.types.xcm.v1.junction.Junction.GeneralKey + | t.types.xcm.v1.junction.Junction.OnlyChild + | t.types.xcm.v1.junction.Junction.Plurality +export namespace Junction { + export interface Parachain { + type: "Parachain" + value: t.Compact + } + export interface AccountId32 { + type: "AccountId32" + network: t.types.xcm.v0.junction.NetworkId + id: Uint8Array + } + export interface AccountIndex64 { + type: "AccountIndex64" + network: t.types.xcm.v0.junction.NetworkId + index: t.Compact + } + export interface AccountKey20 { + type: "AccountKey20" + network: t.types.xcm.v0.junction.NetworkId + key: Uint8Array + } + export interface PalletInstance { + type: "PalletInstance" + value: t.types.u8 + } + export interface GeneralIndex { + type: "GeneralIndex" + value: t.Compact + } + export interface GeneralKey { + type: "GeneralKey" + value: Uint8Array + } + export interface OnlyChild { + type: "OnlyChild" + } + export interface Plurality { + type: "Plurality" + id: t.types.xcm.v0.junction.BodyId + part: t.types.xcm.v0.junction.BodyPart + } + export function Parachain( + value: t.types.xcm.v1.junction.Junction.Parachain["value"], + ): t.types.xcm.v1.junction.Junction.Parachain { + return { type: "Parachain", value } + } + export function AccountId32( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountId32 { + return { type: "AccountId32", ...value } + } + export function AccountIndex64( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountIndex64 { + return { type: "AccountIndex64", ...value } + } + export function AccountKey20( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountKey20 { + return { type: "AccountKey20", ...value } + } + export function PalletInstance( + value: t.types.xcm.v1.junction.Junction.PalletInstance["value"], + ): t.types.xcm.v1.junction.Junction.PalletInstance { + return { type: "PalletInstance", value } + } + export function GeneralIndex( + value: t.types.xcm.v1.junction.Junction.GeneralIndex["value"], + ): t.types.xcm.v1.junction.Junction.GeneralIndex { + return { type: "GeneralIndex", value } + } + export function GeneralKey( + value: t.types.xcm.v1.junction.Junction.GeneralKey["value"], + ): t.types.xcm.v1.junction.Junction.GeneralKey { + return { type: "GeneralKey", value } + } + export function OnlyChild(): t.types.xcm.v1.junction.Junction.OnlyChild { + return { type: "OnlyChild" } + } + export function Plurality( + value: Omit, + ): t.types.xcm.v1.junction.Junction.Plurality { + return { type: "Plurality", ...value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v1/mod.ts b/codegen/_output/kusama/types/xcm/v1/mod.ts new file mode 100644 index 000000000..22e161792 --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v1/mod.ts @@ -0,0 +1,180 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as junction from "./junction.ts" +export * as multiasset from "./multiasset.ts" +export * as multilocation from "./multilocation.ts" +export * as order from "./order.ts" + +export const $response: $.Codec = _codec.$434 + +export const $xcm: $.Codec = _codec.$430 + +export type Response = t.types.xcm.v1.Response.Assets | t.types.xcm.v1.Response.Version +export namespace Response { + export interface Assets { + type: "Assets" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface Version { + type: "Version" + value: t.types.u32 + } + export function Assets( + value: t.types.xcm.v1.Response.Assets["value"], + ): t.types.xcm.v1.Response.Assets { + return { type: "Assets", value } + } + export function Version( + value: t.types.xcm.v1.Response.Version["value"], + ): t.types.xcm.v1.Response.Version { + return { type: "Version", value } + } +} + +export type Xcm = + | t.types.xcm.v1.Xcm.WithdrawAsset + | t.types.xcm.v1.Xcm.ReserveAssetDeposited + | t.types.xcm.v1.Xcm.ReceiveTeleportedAsset + | t.types.xcm.v1.Xcm.QueryResponse + | t.types.xcm.v1.Xcm.TransferAsset + | t.types.xcm.v1.Xcm.TransferReserveAsset + | t.types.xcm.v1.Xcm.Transact + | t.types.xcm.v1.Xcm.HrmpNewChannelOpenRequest + | t.types.xcm.v1.Xcm.HrmpChannelAccepted + | t.types.xcm.v1.Xcm.HrmpChannelClosing + | t.types.xcm.v1.Xcm.RelayedFrom + | t.types.xcm.v1.Xcm.SubscribeVersion + | t.types.xcm.v1.Xcm.UnsubscribeVersion +export namespace Xcm { + export interface WithdrawAsset { + type: "WithdrawAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface ReserveAssetDeposited { + type: "ReserveAssetDeposited" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface ReceiveTeleportedAsset { + type: "ReceiveTeleportedAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v1.Response + } + export interface TransferAsset { + type: "TransferAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.types.u64 + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface RelayedFrom { + type: "RelayedFrom" + who: t.types.xcm.v1.multilocation.Junctions + message: t.types.xcm.v1.Xcm + } + export interface SubscribeVersion { + type: "SubscribeVersion" + query_id: t.Compact + max_response_weight: t.Compact + } + export interface UnsubscribeVersion { + type: "UnsubscribeVersion" + } + export function WithdrawAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.WithdrawAsset { + return { type: "WithdrawAsset", ...value } + } + export function ReserveAssetDeposited( + value: Omit, + ): t.types.xcm.v1.Xcm.ReserveAssetDeposited { + return { type: "ReserveAssetDeposited", ...value } + } + export function ReceiveTeleportedAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.ReceiveTeleportedAsset { + return { type: "ReceiveTeleportedAsset", ...value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v1.Xcm.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v1.Xcm.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function RelayedFrom( + value: Omit, + ): t.types.xcm.v1.Xcm.RelayedFrom { + return { type: "RelayedFrom", ...value } + } + export function SubscribeVersion( + value: Omit, + ): t.types.xcm.v1.Xcm.SubscribeVersion { + return { type: "SubscribeVersion", ...value } + } + export function UnsubscribeVersion(): t.types.xcm.v1.Xcm.UnsubscribeVersion { + return { type: "UnsubscribeVersion" } + } +} diff --git a/codegen/_output/kusama/types/xcm/v1/multiasset.ts b/codegen/_output/kusama/types/xcm/v1/multiasset.ts new file mode 100644 index 000000000..a11443466 --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v1/multiasset.ts @@ -0,0 +1,201 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $assetId: $.Codec = _codec.$136 + +export const $assetInstance: $.Codec = _codec.$138 + +export const $fungibility: $.Codec = _codec.$137 + +export const $multiAsset: $.Codec = _codec.$135 + +export const $multiAssetFilter: $.Codec = _codec.$145 + +export const $multiAssets: $.Codec = _codec.$133 + +export const $wildFungibility: $.Codec = _codec.$147 + +export const $wildMultiAsset: $.Codec = _codec.$146 + +export type AssetId = + | t.types.xcm.v1.multiasset.AssetId.Concrete + | t.types.xcm.v1.multiasset.AssetId.Abstract +export namespace AssetId { + export interface Concrete { + type: "Concrete" + value: t.types.xcm.v1.multilocation.MultiLocation + } + export interface Abstract { + type: "Abstract" + value: Uint8Array + } + export function Concrete( + value: t.types.xcm.v1.multiasset.AssetId.Concrete["value"], + ): t.types.xcm.v1.multiasset.AssetId.Concrete { + return { type: "Concrete", value } + } + export function Abstract( + value: t.types.xcm.v1.multiasset.AssetId.Abstract["value"], + ): t.types.xcm.v1.multiasset.AssetId.Abstract { + return { type: "Abstract", value } + } +} + +export type AssetInstance = + | t.types.xcm.v1.multiasset.AssetInstance.Undefined + | t.types.xcm.v1.multiasset.AssetInstance.Index + | t.types.xcm.v1.multiasset.AssetInstance.Array4 + | t.types.xcm.v1.multiasset.AssetInstance.Array8 + | t.types.xcm.v1.multiasset.AssetInstance.Array16 + | t.types.xcm.v1.multiasset.AssetInstance.Array32 + | t.types.xcm.v1.multiasset.AssetInstance.Blob +export namespace AssetInstance { + export interface Undefined { + type: "Undefined" + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Array4 { + type: "Array4" + value: Uint8Array + } + export interface Array8 { + type: "Array8" + value: Uint8Array + } + export interface Array16 { + type: "Array16" + value: Uint8Array + } + export interface Array32 { + type: "Array32" + value: Uint8Array + } + export interface Blob { + type: "Blob" + value: Uint8Array + } + export function Undefined(): t.types.xcm.v1.multiasset.AssetInstance.Undefined { + return { type: "Undefined" } + } + export function Index( + value: t.types.xcm.v1.multiasset.AssetInstance.Index["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Index { + return { type: "Index", value } + } + export function Array4( + value: t.types.xcm.v1.multiasset.AssetInstance.Array4["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array4 { + return { type: "Array4", value } + } + export function Array8( + value: t.types.xcm.v1.multiasset.AssetInstance.Array8["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array8 { + return { type: "Array8", value } + } + export function Array16( + value: t.types.xcm.v1.multiasset.AssetInstance.Array16["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array16 { + return { type: "Array16", value } + } + export function Array32( + value: t.types.xcm.v1.multiasset.AssetInstance.Array32["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array32 { + return { type: "Array32", value } + } + export function Blob( + value: t.types.xcm.v1.multiasset.AssetInstance.Blob["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Blob { + return { type: "Blob", value } + } +} + +export type Fungibility = + | t.types.xcm.v1.multiasset.Fungibility.Fungible + | t.types.xcm.v1.multiasset.Fungibility.NonFungible +export namespace Fungibility { + export interface Fungible { + type: "Fungible" + value: t.Compact + } + export interface NonFungible { + type: "NonFungible" + value: t.types.xcm.v1.multiasset.AssetInstance + } + export function Fungible( + value: t.types.xcm.v1.multiasset.Fungibility.Fungible["value"], + ): t.types.xcm.v1.multiasset.Fungibility.Fungible { + return { type: "Fungible", value } + } + export function NonFungible( + value: t.types.xcm.v1.multiasset.Fungibility.NonFungible["value"], + ): t.types.xcm.v1.multiasset.Fungibility.NonFungible { + return { type: "NonFungible", value } + } +} + +export interface MultiAsset { + id: t.types.xcm.v1.multiasset.AssetId + fun: t.types.xcm.v1.multiasset.Fungibility +} + +export function MultiAsset(value: t.types.xcm.v1.multiasset.MultiAsset) { + return value +} + +export type MultiAssetFilter = + | t.types.xcm.v1.multiasset.MultiAssetFilter.Definite + | t.types.xcm.v1.multiasset.MultiAssetFilter.Wild +export namespace MultiAssetFilter { + export interface Definite { + type: "Definite" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface Wild { + type: "Wild" + value: t.types.xcm.v1.multiasset.WildMultiAsset + } + export function Definite( + value: t.types.xcm.v1.multiasset.MultiAssetFilter.Definite["value"], + ): t.types.xcm.v1.multiasset.MultiAssetFilter.Definite { + return { type: "Definite", value } + } + export function Wild( + value: t.types.xcm.v1.multiasset.MultiAssetFilter.Wild["value"], + ): t.types.xcm.v1.multiasset.MultiAssetFilter.Wild { + return { type: "Wild", value } + } +} + +export type MultiAssets = Array + +export function MultiAssets(value: t.types.xcm.v1.multiasset.MultiAssets) { + return value +} + +export type WildFungibility = "Fungible" | "NonFungible" + +export type WildMultiAsset = + | t.types.xcm.v1.multiasset.WildMultiAsset.All + | t.types.xcm.v1.multiasset.WildMultiAsset.AllOf +export namespace WildMultiAsset { + export interface All { + type: "All" + } + export interface AllOf { + type: "AllOf" + id: t.types.xcm.v1.multiasset.AssetId + fun: t.types.xcm.v1.multiasset.WildFungibility + } + export function All(): t.types.xcm.v1.multiasset.WildMultiAsset.All { + return { type: "All" } + } + export function AllOf( + value: Omit, + ): t.types.xcm.v1.multiasset.WildMultiAsset.AllOf { + return { type: "AllOf", ...value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v1/multilocation.ts b/codegen/_output/kusama/types/xcm/v1/multilocation.ts new file mode 100644 index 000000000..1764b59af --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v1/multilocation.ts @@ -0,0 +1,146 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $junctions: $.Codec = _codec.$123 + +export const $multiLocation: $.Codec = _codec.$122 + +export type Junctions = + | t.types.xcm.v1.multilocation.Junctions.Here + | t.types.xcm.v1.multilocation.Junctions.X1 + | t.types.xcm.v1.multilocation.Junctions.X2 + | t.types.xcm.v1.multilocation.Junctions.X3 + | t.types.xcm.v1.multilocation.Junctions.X4 + | t.types.xcm.v1.multilocation.Junctions.X5 + | t.types.xcm.v1.multilocation.Junctions.X6 + | t.types.xcm.v1.multilocation.Junctions.X7 + | t.types.xcm.v1.multilocation.Junctions.X8 +export namespace Junctions { + export interface Here { + type: "Here" + } + export interface X1 { + type: "X1" + value: t.types.xcm.v1.junction.Junction + } + export interface X2 { + type: "X2" + value: [t.types.xcm.v1.junction.Junction, t.types.xcm.v1.junction.Junction] + } + export interface X3 { + type: "X3" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X4 { + type: "X4" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X5 { + type: "X5" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X6 { + type: "X6" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X7 { + type: "X7" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X8 { + type: "X8" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export function Here(): t.types.xcm.v1.multilocation.Junctions.Here { + return { type: "Here" } + } + export function X1( + value: t.types.xcm.v1.multilocation.Junctions.X1["value"], + ): t.types.xcm.v1.multilocation.Junctions.X1 { + return { type: "X1", value } + } + export function X2( + ...value: t.types.xcm.v1.multilocation.Junctions.X2["value"] + ): t.types.xcm.v1.multilocation.Junctions.X2 { + return { type: "X2", value } + } + export function X3( + ...value: t.types.xcm.v1.multilocation.Junctions.X3["value"] + ): t.types.xcm.v1.multilocation.Junctions.X3 { + return { type: "X3", value } + } + export function X4( + ...value: t.types.xcm.v1.multilocation.Junctions.X4["value"] + ): t.types.xcm.v1.multilocation.Junctions.X4 { + return { type: "X4", value } + } + export function X5( + ...value: t.types.xcm.v1.multilocation.Junctions.X5["value"] + ): t.types.xcm.v1.multilocation.Junctions.X5 { + return { type: "X5", value } + } + export function X6( + ...value: t.types.xcm.v1.multilocation.Junctions.X6["value"] + ): t.types.xcm.v1.multilocation.Junctions.X6 { + return { type: "X6", value } + } + export function X7( + ...value: t.types.xcm.v1.multilocation.Junctions.X7["value"] + ): t.types.xcm.v1.multilocation.Junctions.X7 { + return { type: "X7", value } + } + export function X8( + ...value: t.types.xcm.v1.multilocation.Junctions.X8["value"] + ): t.types.xcm.v1.multilocation.Junctions.X8 { + return { type: "X8", value } + } +} + +export interface MultiLocation { + parents: t.types.u8 + interior: t.types.xcm.v1.multilocation.Junctions +} + +export function MultiLocation(value: t.types.xcm.v1.multilocation.MultiLocation) { + return value +} diff --git a/codegen/_output/kusama/types/xcm/v1/order.ts b/codegen/_output/kusama/types/xcm/v1/order.ts new file mode 100644 index 000000000..9337ba623 --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v1/order.ts @@ -0,0 +1,102 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $order: $.Codec = _codec.$432 + +export type Order = + | t.types.xcm.v1.order.Order.Noop + | t.types.xcm.v1.order.Order.DepositAsset + | t.types.xcm.v1.order.Order.DepositReserveAsset + | t.types.xcm.v1.order.Order.ExchangeAsset + | t.types.xcm.v1.order.Order.InitiateReserveWithdraw + | t.types.xcm.v1.order.Order.InitiateTeleport + | t.types.xcm.v1.order.Order.QueryHolding + | t.types.xcm.v1.order.Order.BuyExecution +export namespace Order { + export interface Noop { + type: "Noop" + } + export interface DepositAsset { + type: "DepositAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.types.u32 + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.types.u32 + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: t.types.xcm.v1.multiasset.MultiAssetFilter + receive: t.types.xcm.v1.multiasset.MultiAssets + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + reserve: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v1.multiasset.MultiAsset + weight: t.types.u64 + debt: t.types.u64 + halt_on_error: boolean + instructions: Array + } + export function Noop(): t.types.xcm.v1.order.Order.Noop { + return { type: "Noop" } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v1.order.Order.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v1.order.Order.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v1.order.Order.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v1.order.Order.BuyExecution { + return { type: "BuyExecution", ...value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v2/mod.ts b/codegen/_output/kusama/types/xcm/v2/mod.ts new file mode 100644 index 000000000..c91c6d027 --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v2/mod.ts @@ -0,0 +1,372 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as traits from "./traits.ts" + +export const $instruction: $.Codec = _codec.$132 + +export const $response: $.Codec = _codec.$140 + +export const $weightLimit: $.Codec = _codec.$148 + +export type Instruction = + | t.types.xcm.v2.Instruction.WithdrawAsset + | t.types.xcm.v2.Instruction.ReserveAssetDeposited + | t.types.xcm.v2.Instruction.ReceiveTeleportedAsset + | t.types.xcm.v2.Instruction.QueryResponse + | t.types.xcm.v2.Instruction.TransferAsset + | t.types.xcm.v2.Instruction.TransferReserveAsset + | t.types.xcm.v2.Instruction.Transact + | t.types.xcm.v2.Instruction.HrmpNewChannelOpenRequest + | t.types.xcm.v2.Instruction.HrmpChannelAccepted + | t.types.xcm.v2.Instruction.HrmpChannelClosing + | t.types.xcm.v2.Instruction.ClearOrigin + | t.types.xcm.v2.Instruction.DescendOrigin + | t.types.xcm.v2.Instruction.ReportError + | t.types.xcm.v2.Instruction.DepositAsset + | t.types.xcm.v2.Instruction.DepositReserveAsset + | t.types.xcm.v2.Instruction.ExchangeAsset + | t.types.xcm.v2.Instruction.InitiateReserveWithdraw + | t.types.xcm.v2.Instruction.InitiateTeleport + | t.types.xcm.v2.Instruction.QueryHolding + | t.types.xcm.v2.Instruction.BuyExecution + | t.types.xcm.v2.Instruction.RefundSurplus + | t.types.xcm.v2.Instruction.SetErrorHandler + | t.types.xcm.v2.Instruction.SetAppendix + | t.types.xcm.v2.Instruction.ClearError + | t.types.xcm.v2.Instruction.ClaimAsset + | t.types.xcm.v2.Instruction.Trap + | t.types.xcm.v2.Instruction.SubscribeVersion + | t.types.xcm.v2.Instruction.UnsubscribeVersion +export namespace Instruction { + export interface WithdrawAsset { + type: "WithdrawAsset" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ReserveAssetDeposited { + type: "ReserveAssetDeposited" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ReceiveTeleportedAsset { + type: "ReceiveTeleportedAsset" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v2.Response + max_weight: t.Compact + } + export interface TransferAsset { + type: "TransferAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.Compact + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface ClearOrigin { + type: "ClearOrigin" + } + export interface DescendOrigin { + type: "DescendOrigin" + value: t.types.xcm.v1.multilocation.Junctions + } + export interface ReportError { + type: "ReportError" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + max_response_weight: t.Compact + } + export interface DepositAsset { + type: "DepositAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.Compact + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: t.types.xcm.v1.multiasset.MultiAssetFilter + receive: t.types.xcm.v1.multiasset.MultiAssets + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + reserve: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_response_weight: t.Compact + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v1.multiasset.MultiAsset + weight_limit: t.types.xcm.v2.WeightLimit + } + export interface RefundSurplus { + type: "RefundSurplus" + } + export interface SetErrorHandler { + type: "SetErrorHandler" + value: Array + } + export interface SetAppendix { + type: "SetAppendix" + value: Array + } + export interface ClearError { + type: "ClearError" + } + export interface ClaimAsset { + type: "ClaimAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + ticket: t.types.xcm.v1.multilocation.MultiLocation + } + export interface Trap { + type: "Trap" + value: t.Compact + } + export interface SubscribeVersion { + type: "SubscribeVersion" + query_id: t.Compact + max_response_weight: t.Compact + } + export interface UnsubscribeVersion { + type: "UnsubscribeVersion" + } + export function WithdrawAsset( + value: t.types.xcm.v2.Instruction.WithdrawAsset["value"], + ): t.types.xcm.v2.Instruction.WithdrawAsset { + return { type: "WithdrawAsset", value } + } + export function ReserveAssetDeposited( + value: t.types.xcm.v2.Instruction.ReserveAssetDeposited["value"], + ): t.types.xcm.v2.Instruction.ReserveAssetDeposited { + return { type: "ReserveAssetDeposited", value } + } + export function ReceiveTeleportedAsset( + value: t.types.xcm.v2.Instruction.ReceiveTeleportedAsset["value"], + ): t.types.xcm.v2.Instruction.ReceiveTeleportedAsset { + return { type: "ReceiveTeleportedAsset", value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v2.Instruction.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v2.Instruction.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function ClearOrigin(): t.types.xcm.v2.Instruction.ClearOrigin { + return { type: "ClearOrigin" } + } + export function DescendOrigin( + value: t.types.xcm.v2.Instruction.DescendOrigin["value"], + ): t.types.xcm.v2.Instruction.DescendOrigin { + return { type: "DescendOrigin", value } + } + export function ReportError( + value: Omit, + ): t.types.xcm.v2.Instruction.ReportError { + return { type: "ReportError", ...value } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v2.Instruction.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v2.Instruction.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v2.Instruction.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v2.Instruction.BuyExecution { + return { type: "BuyExecution", ...value } + } + export function RefundSurplus(): t.types.xcm.v2.Instruction.RefundSurplus { + return { type: "RefundSurplus" } + } + export function SetErrorHandler( + value: t.types.xcm.v2.Instruction.SetErrorHandler["value"], + ): t.types.xcm.v2.Instruction.SetErrorHandler { + return { type: "SetErrorHandler", value } + } + export function SetAppendix( + value: t.types.xcm.v2.Instruction.SetAppendix["value"], + ): t.types.xcm.v2.Instruction.SetAppendix { + return { type: "SetAppendix", value } + } + export function ClearError(): t.types.xcm.v2.Instruction.ClearError { + return { type: "ClearError" } + } + export function ClaimAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.ClaimAsset { + return { type: "ClaimAsset", ...value } + } + export function Trap( + value: t.types.xcm.v2.Instruction.Trap["value"], + ): t.types.xcm.v2.Instruction.Trap { + return { type: "Trap", value } + } + export function SubscribeVersion( + value: Omit, + ): t.types.xcm.v2.Instruction.SubscribeVersion { + return { type: "SubscribeVersion", ...value } + } + export function UnsubscribeVersion(): t.types.xcm.v2.Instruction.UnsubscribeVersion { + return { type: "UnsubscribeVersion" } + } +} + +export type Response = + | t.types.xcm.v2.Response.Null + | t.types.xcm.v2.Response.Assets + | t.types.xcm.v2.Response.ExecutionResult + | t.types.xcm.v2.Response.Version +export namespace Response { + export interface Null { + type: "Null" + } + export interface Assets { + type: "Assets" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ExecutionResult { + type: "ExecutionResult" + value: [t.types.u32, t.types.xcm.v2.traits.Error] | undefined + } + export interface Version { + type: "Version" + value: t.types.u32 + } + export function Null(): t.types.xcm.v2.Response.Null { + return { type: "Null" } + } + export function Assets( + value: t.types.xcm.v2.Response.Assets["value"], + ): t.types.xcm.v2.Response.Assets { + return { type: "Assets", value } + } + export function ExecutionResult( + value: t.types.xcm.v2.Response.ExecutionResult["value"], + ): t.types.xcm.v2.Response.ExecutionResult { + return { type: "ExecutionResult", value } + } + export function Version( + value: t.types.xcm.v2.Response.Version["value"], + ): t.types.xcm.v2.Response.Version { + return { type: "Version", value } + } +} + +export type WeightLimit = t.types.xcm.v2.WeightLimit.Unlimited | t.types.xcm.v2.WeightLimit.Limited +export namespace WeightLimit { + export interface Unlimited { + type: "Unlimited" + } + export interface Limited { + type: "Limited" + value: t.Compact + } + export function Unlimited(): t.types.xcm.v2.WeightLimit.Unlimited { + return { type: "Unlimited" } + } + export function Limited( + value: t.types.xcm.v2.WeightLimit.Limited["value"], + ): t.types.xcm.v2.WeightLimit.Limited { + return { type: "Limited", value } + } +} diff --git a/codegen/_output/kusama/types/xcm/v2/traits.ts b/codegen/_output/kusama/types/xcm/v2/traits.ts new file mode 100644 index 000000000..2b2bc95e6 --- /dev/null +++ b/codegen/_output/kusama/types/xcm/v2/traits.ts @@ -0,0 +1,233 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $error: $.Codec = _codec.$110 + +export const $outcome: $.Codec = _codec.$109 + +export type Error = + | t.types.xcm.v2.traits.Error.Overflow + | t.types.xcm.v2.traits.Error.Unimplemented + | t.types.xcm.v2.traits.Error.UntrustedReserveLocation + | t.types.xcm.v2.traits.Error.UntrustedTeleportLocation + | t.types.xcm.v2.traits.Error.MultiLocationFull + | t.types.xcm.v2.traits.Error.MultiLocationNotInvertible + | t.types.xcm.v2.traits.Error.BadOrigin + | t.types.xcm.v2.traits.Error.InvalidLocation + | t.types.xcm.v2.traits.Error.AssetNotFound + | t.types.xcm.v2.traits.Error.FailedToTransactAsset + | t.types.xcm.v2.traits.Error.NotWithdrawable + | t.types.xcm.v2.traits.Error.LocationCannotHold + | t.types.xcm.v2.traits.Error.ExceedsMaxMessageSize + | t.types.xcm.v2.traits.Error.DestinationUnsupported + | t.types.xcm.v2.traits.Error.Transport + | t.types.xcm.v2.traits.Error.Unroutable + | t.types.xcm.v2.traits.Error.UnknownClaim + | t.types.xcm.v2.traits.Error.FailedToDecode + | t.types.xcm.v2.traits.Error.MaxWeightInvalid + | t.types.xcm.v2.traits.Error.NotHoldingFees + | t.types.xcm.v2.traits.Error.TooExpensive + | t.types.xcm.v2.traits.Error.Trap + | t.types.xcm.v2.traits.Error.UnhandledXcmVersion + | t.types.xcm.v2.traits.Error.WeightLimitReached + | t.types.xcm.v2.traits.Error.Barrier + | t.types.xcm.v2.traits.Error.WeightNotComputable +export namespace Error { + export interface Overflow { + type: "Overflow" + } + export interface Unimplemented { + type: "Unimplemented" + } + export interface UntrustedReserveLocation { + type: "UntrustedReserveLocation" + } + export interface UntrustedTeleportLocation { + type: "UntrustedTeleportLocation" + } + export interface MultiLocationFull { + type: "MultiLocationFull" + } + export interface MultiLocationNotInvertible { + type: "MultiLocationNotInvertible" + } + export interface BadOrigin { + type: "BadOrigin" + } + export interface InvalidLocation { + type: "InvalidLocation" + } + export interface AssetNotFound { + type: "AssetNotFound" + } + export interface FailedToTransactAsset { + type: "FailedToTransactAsset" + } + export interface NotWithdrawable { + type: "NotWithdrawable" + } + export interface LocationCannotHold { + type: "LocationCannotHold" + } + export interface ExceedsMaxMessageSize { + type: "ExceedsMaxMessageSize" + } + export interface DestinationUnsupported { + type: "DestinationUnsupported" + } + export interface Transport { + type: "Transport" + } + export interface Unroutable { + type: "Unroutable" + } + export interface UnknownClaim { + type: "UnknownClaim" + } + export interface FailedToDecode { + type: "FailedToDecode" + } + export interface MaxWeightInvalid { + type: "MaxWeightInvalid" + } + export interface NotHoldingFees { + type: "NotHoldingFees" + } + export interface TooExpensive { + type: "TooExpensive" + } + export interface Trap { + type: "Trap" + value: t.types.u64 + } + export interface UnhandledXcmVersion { + type: "UnhandledXcmVersion" + } + export interface WeightLimitReached { + type: "WeightLimitReached" + value: t.types.u64 + } + export interface Barrier { + type: "Barrier" + } + export interface WeightNotComputable { + type: "WeightNotComputable" + } + export function Overflow(): t.types.xcm.v2.traits.Error.Overflow { + return { type: "Overflow" } + } + export function Unimplemented(): t.types.xcm.v2.traits.Error.Unimplemented { + return { type: "Unimplemented" } + } + export function UntrustedReserveLocation(): t.types.xcm.v2.traits.Error.UntrustedReserveLocation { + return { type: "UntrustedReserveLocation" } + } + export function UntrustedTeleportLocation(): t.types.xcm.v2.traits.Error.UntrustedTeleportLocation { + return { type: "UntrustedTeleportLocation" } + } + export function MultiLocationFull(): t.types.xcm.v2.traits.Error.MultiLocationFull { + return { type: "MultiLocationFull" } + } + export function MultiLocationNotInvertible(): t.types.xcm.v2.traits.Error.MultiLocationNotInvertible { + return { type: "MultiLocationNotInvertible" } + } + export function BadOrigin(): t.types.xcm.v2.traits.Error.BadOrigin { + return { type: "BadOrigin" } + } + export function InvalidLocation(): t.types.xcm.v2.traits.Error.InvalidLocation { + return { type: "InvalidLocation" } + } + export function AssetNotFound(): t.types.xcm.v2.traits.Error.AssetNotFound { + return { type: "AssetNotFound" } + } + export function FailedToTransactAsset(): t.types.xcm.v2.traits.Error.FailedToTransactAsset { + return { type: "FailedToTransactAsset" } + } + export function NotWithdrawable(): t.types.xcm.v2.traits.Error.NotWithdrawable { + return { type: "NotWithdrawable" } + } + export function LocationCannotHold(): t.types.xcm.v2.traits.Error.LocationCannotHold { + return { type: "LocationCannotHold" } + } + export function ExceedsMaxMessageSize(): t.types.xcm.v2.traits.Error.ExceedsMaxMessageSize { + return { type: "ExceedsMaxMessageSize" } + } + export function DestinationUnsupported(): t.types.xcm.v2.traits.Error.DestinationUnsupported { + return { type: "DestinationUnsupported" } + } + export function Transport(): t.types.xcm.v2.traits.Error.Transport { + return { type: "Transport" } + } + export function Unroutable(): t.types.xcm.v2.traits.Error.Unroutable { + return { type: "Unroutable" } + } + export function UnknownClaim(): t.types.xcm.v2.traits.Error.UnknownClaim { + return { type: "UnknownClaim" } + } + export function FailedToDecode(): t.types.xcm.v2.traits.Error.FailedToDecode { + return { type: "FailedToDecode" } + } + export function MaxWeightInvalid(): t.types.xcm.v2.traits.Error.MaxWeightInvalid { + return { type: "MaxWeightInvalid" } + } + export function NotHoldingFees(): t.types.xcm.v2.traits.Error.NotHoldingFees { + return { type: "NotHoldingFees" } + } + export function TooExpensive(): t.types.xcm.v2.traits.Error.TooExpensive { + return { type: "TooExpensive" } + } + export function Trap( + value: t.types.xcm.v2.traits.Error.Trap["value"], + ): t.types.xcm.v2.traits.Error.Trap { + return { type: "Trap", value } + } + export function UnhandledXcmVersion(): t.types.xcm.v2.traits.Error.UnhandledXcmVersion { + return { type: "UnhandledXcmVersion" } + } + export function WeightLimitReached( + value: t.types.xcm.v2.traits.Error.WeightLimitReached["value"], + ): t.types.xcm.v2.traits.Error.WeightLimitReached { + return { type: "WeightLimitReached", value } + } + export function Barrier(): t.types.xcm.v2.traits.Error.Barrier { + return { type: "Barrier" } + } + export function WeightNotComputable(): t.types.xcm.v2.traits.Error.WeightNotComputable { + return { type: "WeightNotComputable" } + } +} + +export type Outcome = + | t.types.xcm.v2.traits.Outcome.Complete + | t.types.xcm.v2.traits.Outcome.Incomplete + | t.types.xcm.v2.traits.Outcome.Error +export namespace Outcome { + export interface Complete { + type: "Complete" + value: t.types.u64 + } + export interface Incomplete { + type: "Incomplete" + value: [t.types.u64, t.types.xcm.v2.traits.Error] + } + export interface Error { + type: "Error" + value: t.types.xcm.v2.traits.Error + } + export function Complete( + value: t.types.xcm.v2.traits.Outcome.Complete["value"], + ): t.types.xcm.v2.traits.Outcome.Complete { + return { type: "Complete", value } + } + export function Incomplete( + ...value: t.types.xcm.v2.traits.Outcome.Incomplete["value"] + ): t.types.xcm.v2.traits.Outcome.Incomplete { + return { type: "Incomplete", value } + } + export function Error( + value: t.types.xcm.v2.traits.Outcome.Error["value"], + ): t.types.xcm.v2.traits.Outcome.Error { + return { type: "Error", value } + } +} diff --git a/codegen/_output/kusama/xcm/mod.ts b/codegen/_output/kusama/xcm/mod.ts deleted file mode 100644 index 1752da8bf..000000000 --- a/codegen/_output/kusama/xcm/mod.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as v0 from "./v0/mod.ts" -export * as v1 from "./v1/mod.ts" -export * as v2 from "./v2/mod.ts" - -export const $versionedMultiAssets: $.Codec = _codec.$150 - -export const $versionedMultiLocation: $.Codec = _codec.$155 - -export const $versionedResponse: $.Codec = _codec.$716 - -export const $versionedXcm: $.Codec = _codec.$424 - -export type VersionedMultiAssets = t.xcm.VersionedMultiAssets.V0 | t.xcm.VersionedMultiAssets.V1 -export namespace VersionedMultiAssets { - export interface V0 { - type: "V0" - value: Array - } - export interface V1 { - type: "V1" - value: t.xcm.v1.multiasset.MultiAssets - } - export function V0(value: t.xcm.VersionedMultiAssets.V0["value"]): t.xcm.VersionedMultiAssets.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedMultiAssets.V1["value"]): t.xcm.VersionedMultiAssets.V1 { - return { type: "V1", value } - } -} - -export type VersionedMultiLocation = - | t.xcm.VersionedMultiLocation.V0 - | t.xcm.VersionedMultiLocation.V1 -export namespace VersionedMultiLocation { - export interface V0 { - type: "V0" - value: t.xcm.v0.multi_location.MultiLocation - } - export interface V1 { - type: "V1" - value: t.xcm.v1.multilocation.MultiLocation - } - export function V0( - value: t.xcm.VersionedMultiLocation.V0["value"], - ): t.xcm.VersionedMultiLocation.V0 { - return { type: "V0", value } - } - export function V1( - value: t.xcm.VersionedMultiLocation.V1["value"], - ): t.xcm.VersionedMultiLocation.V1 { - return { type: "V1", value } - } -} - -export type VersionedResponse = - | t.xcm.VersionedResponse.V0 - | t.xcm.VersionedResponse.V1 - | t.xcm.VersionedResponse.V2 -export namespace VersionedResponse { - export interface V0 { - type: "V0" - value: t.xcm.v0.Response - } - export interface V1 { - type: "V1" - value: t.xcm.v1.Response - } - export interface V2 { - type: "V2" - value: t.xcm.v2.Response - } - export function V0(value: t.xcm.VersionedResponse.V0["value"]): t.xcm.VersionedResponse.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedResponse.V1["value"]): t.xcm.VersionedResponse.V1 { - return { type: "V1", value } - } - export function V2(value: t.xcm.VersionedResponse.V2["value"]): t.xcm.VersionedResponse.V2 { - return { type: "V2", value } - } -} - -export type VersionedXcm = t.xcm.VersionedXcm.V0 | t.xcm.VersionedXcm.V1 | t.xcm.VersionedXcm.V2 -export namespace VersionedXcm { - export interface V0 { - type: "V0" - value: t.xcm.v0.Xcm - } - export interface V1 { - type: "V1" - value: t.xcm.v1.Xcm - } - export interface V2 { - type: "V2" - value: Array - } - export function V0(value: t.xcm.VersionedXcm.V0["value"]): t.xcm.VersionedXcm.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedXcm.V1["value"]): t.xcm.VersionedXcm.V1 { - return { type: "V1", value } - } - export function V2(value: t.xcm.VersionedXcm.V2["value"]): t.xcm.VersionedXcm.V2 { - return { type: "V2", value } - } -} diff --git a/codegen/_output/kusama/xcm/v0/junction.ts b/codegen/_output/kusama/xcm/v0/junction.ts deleted file mode 100644 index 12f14f979..000000000 --- a/codegen/_output/kusama/xcm/v0/junction.ts +++ /dev/null @@ -1,261 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $bodyId: $.Codec = _codec.$128 - -export const $bodyPart: $.Codec = _codec.$129 - -export const $junction: $.Codec = _codec.$154 - -export const $networkId: $.Codec = _codec.$126 - -export type BodyId = - | t.xcm.v0.junction.BodyId.Unit - | t.xcm.v0.junction.BodyId.Named - | t.xcm.v0.junction.BodyId.Index - | t.xcm.v0.junction.BodyId.Executive - | t.xcm.v0.junction.BodyId.Technical - | t.xcm.v0.junction.BodyId.Legislative - | t.xcm.v0.junction.BodyId.Judicial -export namespace BodyId { - export interface Unit { - type: "Unit" - } - export interface Named { - type: "Named" - value: Uint8Array - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Executive { - type: "Executive" - } - export interface Technical { - type: "Technical" - } - export interface Legislative { - type: "Legislative" - } - export interface Judicial { - type: "Judicial" - } - export function Unit(): t.xcm.v0.junction.BodyId.Unit { - return { type: "Unit" } - } - export function Named( - value: t.xcm.v0.junction.BodyId.Named["value"], - ): t.xcm.v0.junction.BodyId.Named { - return { type: "Named", value } - } - export function Index( - value: t.xcm.v0.junction.BodyId.Index["value"], - ): t.xcm.v0.junction.BodyId.Index { - return { type: "Index", value } - } - export function Executive(): t.xcm.v0.junction.BodyId.Executive { - return { type: "Executive" } - } - export function Technical(): t.xcm.v0.junction.BodyId.Technical { - return { type: "Technical" } - } - export function Legislative(): t.xcm.v0.junction.BodyId.Legislative { - return { type: "Legislative" } - } - export function Judicial(): t.xcm.v0.junction.BodyId.Judicial { - return { type: "Judicial" } - } -} - -export type BodyPart = - | t.xcm.v0.junction.BodyPart.Voice - | t.xcm.v0.junction.BodyPart.Members - | t.xcm.v0.junction.BodyPart.Fraction - | t.xcm.v0.junction.BodyPart.AtLeastProportion - | t.xcm.v0.junction.BodyPart.MoreThanProportion -export namespace BodyPart { - export interface Voice { - type: "Voice" - } - export interface Members { - type: "Members" - count: t.Compact - } - export interface Fraction { - type: "Fraction" - nom: t.Compact - denom: t.Compact - } - export interface AtLeastProportion { - type: "AtLeastProportion" - nom: t.Compact - denom: t.Compact - } - export interface MoreThanProportion { - type: "MoreThanProportion" - nom: t.Compact - denom: t.Compact - } - export function Voice(): t.xcm.v0.junction.BodyPart.Voice { - return { type: "Voice" } - } - export function Members( - value: Omit, - ): t.xcm.v0.junction.BodyPart.Members { - return { type: "Members", ...value } - } - export function Fraction( - value: Omit, - ): t.xcm.v0.junction.BodyPart.Fraction { - return { type: "Fraction", ...value } - } - export function AtLeastProportion( - value: Omit, - ): t.xcm.v0.junction.BodyPart.AtLeastProportion { - return { type: "AtLeastProportion", ...value } - } - export function MoreThanProportion( - value: Omit, - ): t.xcm.v0.junction.BodyPart.MoreThanProportion { - return { type: "MoreThanProportion", ...value } - } -} - -export type Junction = - | t.xcm.v0.junction.Junction.Parent - | t.xcm.v0.junction.Junction.Parachain - | t.xcm.v0.junction.Junction.AccountId32 - | t.xcm.v0.junction.Junction.AccountIndex64 - | t.xcm.v0.junction.Junction.AccountKey20 - | t.xcm.v0.junction.Junction.PalletInstance - | t.xcm.v0.junction.Junction.GeneralIndex - | t.xcm.v0.junction.Junction.GeneralKey - | t.xcm.v0.junction.Junction.OnlyChild - | t.xcm.v0.junction.Junction.Plurality -export namespace Junction { - export interface Parent { - type: "Parent" - } - export interface Parachain { - type: "Parachain" - value: t.Compact - } - export interface AccountId32 { - type: "AccountId32" - network: t.xcm.v0.junction.NetworkId - id: Uint8Array - } - export interface AccountIndex64 { - type: "AccountIndex64" - network: t.xcm.v0.junction.NetworkId - index: t.Compact - } - export interface AccountKey20 { - type: "AccountKey20" - network: t.xcm.v0.junction.NetworkId - key: Uint8Array - } - export interface PalletInstance { - type: "PalletInstance" - value: t.u8 - } - export interface GeneralIndex { - type: "GeneralIndex" - value: t.Compact - } - export interface GeneralKey { - type: "GeneralKey" - value: Uint8Array - } - export interface OnlyChild { - type: "OnlyChild" - } - export interface Plurality { - type: "Plurality" - id: t.xcm.v0.junction.BodyId - part: t.xcm.v0.junction.BodyPart - } - export function Parent(): t.xcm.v0.junction.Junction.Parent { - return { type: "Parent" } - } - export function Parachain( - value: t.xcm.v0.junction.Junction.Parachain["value"], - ): t.xcm.v0.junction.Junction.Parachain { - return { type: "Parachain", value } - } - export function AccountId32( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountId32 { - return { type: "AccountId32", ...value } - } - export function AccountIndex64( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountIndex64 { - return { type: "AccountIndex64", ...value } - } - export function AccountKey20( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountKey20 { - return { type: "AccountKey20", ...value } - } - export function PalletInstance( - value: t.xcm.v0.junction.Junction.PalletInstance["value"], - ): t.xcm.v0.junction.Junction.PalletInstance { - return { type: "PalletInstance", value } - } - export function GeneralIndex( - value: t.xcm.v0.junction.Junction.GeneralIndex["value"], - ): t.xcm.v0.junction.Junction.GeneralIndex { - return { type: "GeneralIndex", value } - } - export function GeneralKey( - value: t.xcm.v0.junction.Junction.GeneralKey["value"], - ): t.xcm.v0.junction.Junction.GeneralKey { - return { type: "GeneralKey", value } - } - export function OnlyChild(): t.xcm.v0.junction.Junction.OnlyChild { - return { type: "OnlyChild" } - } - export function Plurality( - value: Omit, - ): t.xcm.v0.junction.Junction.Plurality { - return { type: "Plurality", ...value } - } -} - -export type NetworkId = - | t.xcm.v0.junction.NetworkId.Any - | t.xcm.v0.junction.NetworkId.Named - | t.xcm.v0.junction.NetworkId.Polkadot - | t.xcm.v0.junction.NetworkId.Kusama -export namespace NetworkId { - export interface Any { - type: "Any" - } - export interface Named { - type: "Named" - value: Uint8Array - } - export interface Polkadot { - type: "Polkadot" - } - export interface Kusama { - type: "Kusama" - } - export function Any(): t.xcm.v0.junction.NetworkId.Any { - return { type: "Any" } - } - export function Named( - value: t.xcm.v0.junction.NetworkId.Named["value"], - ): t.xcm.v0.junction.NetworkId.Named { - return { type: "Named", value } - } - export function Polkadot(): t.xcm.v0.junction.NetworkId.Polkadot { - return { type: "Polkadot" } - } - export function Kusama(): t.xcm.v0.junction.NetworkId.Kusama { - return { type: "Kusama" } - } -} diff --git a/codegen/_output/kusama/xcm/v0/mod.ts b/codegen/_output/kusama/xcm/v0/mod.ts deleted file mode 100644 index b0db8212b..000000000 --- a/codegen/_output/kusama/xcm/v0/mod.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as junction from "./junction.ts" -export * as multi_asset from "./multi_asset.ts" -export * as multi_location from "./multi_location.ts" -export * as order from "./order.ts" - -export const $originKind: $.Codec = _codec.$143 - -export const $response: $.Codec = _codec.$429 - -export const $xcm: $.Codec = _codec.$425 - -export type OriginKind = "Native" | "SovereignAccount" | "Superuser" | "Xcm" - -export type Response = t.xcm.v0.Response.Assets -export namespace Response { - export interface Assets { - type: "Assets" - value: Array - } - export function Assets(value: t.xcm.v0.Response.Assets["value"]): t.xcm.v0.Response.Assets { - return { type: "Assets", value } - } -} - -export type Xcm = - | t.xcm.v0.Xcm.WithdrawAsset - | t.xcm.v0.Xcm.ReserveAssetDeposit - | t.xcm.v0.Xcm.TeleportAsset - | t.xcm.v0.Xcm.QueryResponse - | t.xcm.v0.Xcm.TransferAsset - | t.xcm.v0.Xcm.TransferReserveAsset - | t.xcm.v0.Xcm.Transact - | t.xcm.v0.Xcm.HrmpNewChannelOpenRequest - | t.xcm.v0.Xcm.HrmpChannelAccepted - | t.xcm.v0.Xcm.HrmpChannelClosing - | t.xcm.v0.Xcm.RelayedFrom -export namespace Xcm { - export interface WithdrawAsset { - type: "WithdrawAsset" - assets: Array - effects: Array - } - export interface ReserveAssetDeposit { - type: "ReserveAssetDeposit" - assets: Array - effects: Array - } - export interface TeleportAsset { - type: "TeleportAsset" - assets: Array - effects: Array - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v0.Response - } - export interface TransferAsset { - type: "TransferAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.u64 - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface RelayedFrom { - type: "RelayedFrom" - who: t.xcm.v0.multi_location.MultiLocation - message: t.xcm.v0.Xcm - } - export function WithdrawAsset( - value: Omit, - ): t.xcm.v0.Xcm.WithdrawAsset { - return { type: "WithdrawAsset", ...value } - } - export function ReserveAssetDeposit( - value: Omit, - ): t.xcm.v0.Xcm.ReserveAssetDeposit { - return { type: "ReserveAssetDeposit", ...value } - } - export function TeleportAsset( - value: Omit, - ): t.xcm.v0.Xcm.TeleportAsset { - return { type: "TeleportAsset", ...value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v0.Xcm.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v0.Xcm.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v0.Xcm.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact(value: Omit): t.xcm.v0.Xcm.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v0.Xcm.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v0.Xcm.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v0.Xcm.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function RelayedFrom( - value: Omit, - ): t.xcm.v0.Xcm.RelayedFrom { - return { type: "RelayedFrom", ...value } - } -} diff --git a/codegen/_output/kusama/xcm/v0/multi_asset.ts b/codegen/_output/kusama/xcm/v0/multi_asset.ts deleted file mode 100644 index a101adce2..000000000 --- a/codegen/_output/kusama/xcm/v0/multi_asset.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $multiAsset: $.Codec = _codec.$152 - -export type MultiAsset = - | t.xcm.v0.multi_asset.MultiAsset.None - | t.xcm.v0.multi_asset.MultiAsset.All - | t.xcm.v0.multi_asset.MultiAsset.AllFungible - | t.xcm.v0.multi_asset.MultiAsset.AllNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible - | t.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible - | t.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AbstractFungible - | t.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible - | t.xcm.v0.multi_asset.MultiAsset.ConcreteFungible - | t.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible -export namespace MultiAsset { - export interface None { - type: "None" - } - export interface All { - type: "All" - } - export interface AllFungible { - type: "AllFungible" - } - export interface AllNonFungible { - type: "AllNonFungible" - } - export interface AllAbstractFungible { - type: "AllAbstractFungible" - id: Uint8Array - } - export interface AllAbstractNonFungible { - type: "AllAbstractNonFungible" - class: Uint8Array - } - export interface AllConcreteFungible { - type: "AllConcreteFungible" - id: t.xcm.v0.multi_location.MultiLocation - } - export interface AllConcreteNonFungible { - type: "AllConcreteNonFungible" - class: t.xcm.v0.multi_location.MultiLocation - } - export interface AbstractFungible { - type: "AbstractFungible" - id: Uint8Array - amount: t.Compact - } - export interface AbstractNonFungible { - type: "AbstractNonFungible" - class: Uint8Array - instance: t.xcm.v1.multiasset.AssetInstance - } - export interface ConcreteFungible { - type: "ConcreteFungible" - id: t.xcm.v0.multi_location.MultiLocation - amount: t.Compact - } - export interface ConcreteNonFungible { - type: "ConcreteNonFungible" - class: t.xcm.v0.multi_location.MultiLocation - instance: t.xcm.v1.multiasset.AssetInstance - } - export function None(): t.xcm.v0.multi_asset.MultiAsset.None { - return { type: "None" } - } - export function All(): t.xcm.v0.multi_asset.MultiAsset.All { - return { type: "All" } - } - export function AllFungible(): t.xcm.v0.multi_asset.MultiAsset.AllFungible { - return { type: "AllFungible" } - } - export function AllNonFungible(): t.xcm.v0.multi_asset.MultiAsset.AllNonFungible { - return { type: "AllNonFungible" } - } - export function AllAbstractFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible { - return { type: "AllAbstractFungible", ...value } - } - export function AllAbstractNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible { - return { type: "AllAbstractNonFungible", ...value } - } - export function AllConcreteFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible { - return { type: "AllConcreteFungible", ...value } - } - export function AllConcreteNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible { - return { type: "AllConcreteNonFungible", ...value } - } - export function AbstractFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AbstractFungible { - return { type: "AbstractFungible", ...value } - } - export function AbstractNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible { - return { type: "AbstractNonFungible", ...value } - } - export function ConcreteFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.ConcreteFungible { - return { type: "ConcreteFungible", ...value } - } - export function ConcreteNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible { - return { type: "ConcreteNonFungible", ...value } - } -} diff --git a/codegen/_output/kusama/xcm/v0/multi_location.ts b/codegen/_output/kusama/xcm/v0/multi_location.ts deleted file mode 100644 index 327600e00..000000000 --- a/codegen/_output/kusama/xcm/v0/multi_location.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $multiLocation: $.Codec = _codec.$153 - -export type MultiLocation = - | t.xcm.v0.multi_location.MultiLocation.Null - | t.xcm.v0.multi_location.MultiLocation.X1 - | t.xcm.v0.multi_location.MultiLocation.X2 - | t.xcm.v0.multi_location.MultiLocation.X3 - | t.xcm.v0.multi_location.MultiLocation.X4 - | t.xcm.v0.multi_location.MultiLocation.X5 - | t.xcm.v0.multi_location.MultiLocation.X6 - | t.xcm.v0.multi_location.MultiLocation.X7 - | t.xcm.v0.multi_location.MultiLocation.X8 -export namespace MultiLocation { - export interface Null { - type: "Null" - } - export interface X1 { - type: "X1" - value: t.xcm.v0.junction.Junction - } - export interface X2 { - type: "X2" - value: [t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction] - } - export interface X3 { - type: "X3" - value: [t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction] - } - export interface X4 { - type: "X4" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X5 { - type: "X5" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X6 { - type: "X6" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X7 { - type: "X7" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X8 { - type: "X8" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export function Null(): t.xcm.v0.multi_location.MultiLocation.Null { - return { type: "Null" } - } - export function X1( - value: t.xcm.v0.multi_location.MultiLocation.X1["value"], - ): t.xcm.v0.multi_location.MultiLocation.X1 { - return { type: "X1", value } - } - export function X2( - ...value: t.xcm.v0.multi_location.MultiLocation.X2["value"] - ): t.xcm.v0.multi_location.MultiLocation.X2 { - return { type: "X2", value } - } - export function X3( - ...value: t.xcm.v0.multi_location.MultiLocation.X3["value"] - ): t.xcm.v0.multi_location.MultiLocation.X3 { - return { type: "X3", value } - } - export function X4( - ...value: t.xcm.v0.multi_location.MultiLocation.X4["value"] - ): t.xcm.v0.multi_location.MultiLocation.X4 { - return { type: "X4", value } - } - export function X5( - ...value: t.xcm.v0.multi_location.MultiLocation.X5["value"] - ): t.xcm.v0.multi_location.MultiLocation.X5 { - return { type: "X5", value } - } - export function X6( - ...value: t.xcm.v0.multi_location.MultiLocation.X6["value"] - ): t.xcm.v0.multi_location.MultiLocation.X6 { - return { type: "X6", value } - } - export function X7( - ...value: t.xcm.v0.multi_location.MultiLocation.X7["value"] - ): t.xcm.v0.multi_location.MultiLocation.X7 { - return { type: "X7", value } - } - export function X8( - ...value: t.xcm.v0.multi_location.MultiLocation.X8["value"] - ): t.xcm.v0.multi_location.MultiLocation.X8 { - return { type: "X8", value } - } -} diff --git a/codegen/_output/kusama/xcm/v0/order.ts b/codegen/_output/kusama/xcm/v0/order.ts deleted file mode 100644 index 137060d46..000000000 --- a/codegen/_output/kusama/xcm/v0/order.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $order: $.Codec = _codec.$427 - -export type Order = - | t.xcm.v0.order.Order.Null - | t.xcm.v0.order.Order.DepositAsset - | t.xcm.v0.order.Order.DepositReserveAsset - | t.xcm.v0.order.Order.ExchangeAsset - | t.xcm.v0.order.Order.InitiateReserveWithdraw - | t.xcm.v0.order.Order.InitiateTeleport - | t.xcm.v0.order.Order.QueryHolding - | t.xcm.v0.order.Order.BuyExecution -export namespace Order { - export interface Null { - type: "Null" - } - export interface DepositAsset { - type: "DepositAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: Array - receive: Array - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: Array - reserve: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v0.multi_location.MultiLocation - assets: Array - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v0.multi_asset.MultiAsset - weight: t.u64 - debt: t.u64 - halt_on_error: boolean - xcm: Array - } - export function Null(): t.xcm.v0.order.Order.Null { - return { type: "Null" } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v0.order.Order.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v0.order.Order.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v0.order.Order.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v0.order.Order.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v0.order.Order.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v0.order.Order.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v0.order.Order.BuyExecution { - return { type: "BuyExecution", ...value } - } -} diff --git a/codegen/_output/kusama/xcm/v1/junction.ts b/codegen/_output/kusama/xcm/v1/junction.ts deleted file mode 100644 index 7bbbad54c..000000000 --- a/codegen/_output/kusama/xcm/v1/junction.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $junction: $.Codec = _codec.$124 - -export type Junction = - | t.xcm.v1.junction.Junction.Parachain - | t.xcm.v1.junction.Junction.AccountId32 - | t.xcm.v1.junction.Junction.AccountIndex64 - | t.xcm.v1.junction.Junction.AccountKey20 - | t.xcm.v1.junction.Junction.PalletInstance - | t.xcm.v1.junction.Junction.GeneralIndex - | t.xcm.v1.junction.Junction.GeneralKey - | t.xcm.v1.junction.Junction.OnlyChild - | t.xcm.v1.junction.Junction.Plurality -export namespace Junction { - export interface Parachain { - type: "Parachain" - value: t.Compact - } - export interface AccountId32 { - type: "AccountId32" - network: t.xcm.v0.junction.NetworkId - id: Uint8Array - } - export interface AccountIndex64 { - type: "AccountIndex64" - network: t.xcm.v0.junction.NetworkId - index: t.Compact - } - export interface AccountKey20 { - type: "AccountKey20" - network: t.xcm.v0.junction.NetworkId - key: Uint8Array - } - export interface PalletInstance { - type: "PalletInstance" - value: t.u8 - } - export interface GeneralIndex { - type: "GeneralIndex" - value: t.Compact - } - export interface GeneralKey { - type: "GeneralKey" - value: Uint8Array - } - export interface OnlyChild { - type: "OnlyChild" - } - export interface Plurality { - type: "Plurality" - id: t.xcm.v0.junction.BodyId - part: t.xcm.v0.junction.BodyPart - } - export function Parachain( - value: t.xcm.v1.junction.Junction.Parachain["value"], - ): t.xcm.v1.junction.Junction.Parachain { - return { type: "Parachain", value } - } - export function AccountId32( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountId32 { - return { type: "AccountId32", ...value } - } - export function AccountIndex64( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountIndex64 { - return { type: "AccountIndex64", ...value } - } - export function AccountKey20( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountKey20 { - return { type: "AccountKey20", ...value } - } - export function PalletInstance( - value: t.xcm.v1.junction.Junction.PalletInstance["value"], - ): t.xcm.v1.junction.Junction.PalletInstance { - return { type: "PalletInstance", value } - } - export function GeneralIndex( - value: t.xcm.v1.junction.Junction.GeneralIndex["value"], - ): t.xcm.v1.junction.Junction.GeneralIndex { - return { type: "GeneralIndex", value } - } - export function GeneralKey( - value: t.xcm.v1.junction.Junction.GeneralKey["value"], - ): t.xcm.v1.junction.Junction.GeneralKey { - return { type: "GeneralKey", value } - } - export function OnlyChild(): t.xcm.v1.junction.Junction.OnlyChild { - return { type: "OnlyChild" } - } - export function Plurality( - value: Omit, - ): t.xcm.v1.junction.Junction.Plurality { - return { type: "Plurality", ...value } - } -} diff --git a/codegen/_output/kusama/xcm/v1/mod.ts b/codegen/_output/kusama/xcm/v1/mod.ts deleted file mode 100644 index 6630501ad..000000000 --- a/codegen/_output/kusama/xcm/v1/mod.ts +++ /dev/null @@ -1,174 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as junction from "./junction.ts" -export * as multiasset from "./multiasset.ts" -export * as multilocation from "./multilocation.ts" -export * as order from "./order.ts" - -export const $response: $.Codec = _codec.$434 - -export const $xcm: $.Codec = _codec.$430 - -export type Response = t.xcm.v1.Response.Assets | t.xcm.v1.Response.Version -export namespace Response { - export interface Assets { - type: "Assets" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface Version { - type: "Version" - value: t.u32 - } - export function Assets(value: t.xcm.v1.Response.Assets["value"]): t.xcm.v1.Response.Assets { - return { type: "Assets", value } - } - export function Version(value: t.xcm.v1.Response.Version["value"]): t.xcm.v1.Response.Version { - return { type: "Version", value } - } -} - -export type Xcm = - | t.xcm.v1.Xcm.WithdrawAsset - | t.xcm.v1.Xcm.ReserveAssetDeposited - | t.xcm.v1.Xcm.ReceiveTeleportedAsset - | t.xcm.v1.Xcm.QueryResponse - | t.xcm.v1.Xcm.TransferAsset - | t.xcm.v1.Xcm.TransferReserveAsset - | t.xcm.v1.Xcm.Transact - | t.xcm.v1.Xcm.HrmpNewChannelOpenRequest - | t.xcm.v1.Xcm.HrmpChannelAccepted - | t.xcm.v1.Xcm.HrmpChannelClosing - | t.xcm.v1.Xcm.RelayedFrom - | t.xcm.v1.Xcm.SubscribeVersion - | t.xcm.v1.Xcm.UnsubscribeVersion -export namespace Xcm { - export interface WithdrawAsset { - type: "WithdrawAsset" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface ReserveAssetDeposited { - type: "ReserveAssetDeposited" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface ReceiveTeleportedAsset { - type: "ReceiveTeleportedAsset" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v1.Response - } - export interface TransferAsset { - type: "TransferAsset" - assets: t.xcm.v1.multiasset.MultiAssets - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssets - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.u64 - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface RelayedFrom { - type: "RelayedFrom" - who: t.xcm.v1.multilocation.Junctions - message: t.xcm.v1.Xcm - } - export interface SubscribeVersion { - type: "SubscribeVersion" - query_id: t.Compact - max_response_weight: t.Compact - } - export interface UnsubscribeVersion { - type: "UnsubscribeVersion" - } - export function WithdrawAsset( - value: Omit, - ): t.xcm.v1.Xcm.WithdrawAsset { - return { type: "WithdrawAsset", ...value } - } - export function ReserveAssetDeposited( - value: Omit, - ): t.xcm.v1.Xcm.ReserveAssetDeposited { - return { type: "ReserveAssetDeposited", ...value } - } - export function ReceiveTeleportedAsset( - value: Omit, - ): t.xcm.v1.Xcm.ReceiveTeleportedAsset { - return { type: "ReceiveTeleportedAsset", ...value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v1.Xcm.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v1.Xcm.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v1.Xcm.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact(value: Omit): t.xcm.v1.Xcm.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v1.Xcm.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v1.Xcm.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v1.Xcm.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function RelayedFrom( - value: Omit, - ): t.xcm.v1.Xcm.RelayedFrom { - return { type: "RelayedFrom", ...value } - } - export function SubscribeVersion( - value: Omit, - ): t.xcm.v1.Xcm.SubscribeVersion { - return { type: "SubscribeVersion", ...value } - } - export function UnsubscribeVersion(): t.xcm.v1.Xcm.UnsubscribeVersion { - return { type: "UnsubscribeVersion" } - } -} diff --git a/codegen/_output/kusama/xcm/v1/multiasset.ts b/codegen/_output/kusama/xcm/v1/multiasset.ts deleted file mode 100644 index f73749dc2..000000000 --- a/codegen/_output/kusama/xcm/v1/multiasset.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $assetId: $.Codec = _codec.$136 - -export const $assetInstance: $.Codec = _codec.$138 - -export const $fungibility: $.Codec = _codec.$137 - -export const $multiAsset: $.Codec = _codec.$135 - -export const $multiAssetFilter: $.Codec = _codec.$145 - -export const $multiAssets: $.Codec = _codec.$133 - -export const $wildFungibility: $.Codec = _codec.$147 - -export const $wildMultiAsset: $.Codec = _codec.$146 - -export type AssetId = t.xcm.v1.multiasset.AssetId.Concrete | t.xcm.v1.multiasset.AssetId.Abstract -export namespace AssetId { - export interface Concrete { - type: "Concrete" - value: t.xcm.v1.multilocation.MultiLocation - } - export interface Abstract { - type: "Abstract" - value: Uint8Array - } - export function Concrete( - value: t.xcm.v1.multiasset.AssetId.Concrete["value"], - ): t.xcm.v1.multiasset.AssetId.Concrete { - return { type: "Concrete", value } - } - export function Abstract( - value: t.xcm.v1.multiasset.AssetId.Abstract["value"], - ): t.xcm.v1.multiasset.AssetId.Abstract { - return { type: "Abstract", value } - } -} - -export type AssetInstance = - | t.xcm.v1.multiasset.AssetInstance.Undefined - | t.xcm.v1.multiasset.AssetInstance.Index - | t.xcm.v1.multiasset.AssetInstance.Array4 - | t.xcm.v1.multiasset.AssetInstance.Array8 - | t.xcm.v1.multiasset.AssetInstance.Array16 - | t.xcm.v1.multiasset.AssetInstance.Array32 - | t.xcm.v1.multiasset.AssetInstance.Blob -export namespace AssetInstance { - export interface Undefined { - type: "Undefined" - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Array4 { - type: "Array4" - value: Uint8Array - } - export interface Array8 { - type: "Array8" - value: Uint8Array - } - export interface Array16 { - type: "Array16" - value: Uint8Array - } - export interface Array32 { - type: "Array32" - value: Uint8Array - } - export interface Blob { - type: "Blob" - value: Uint8Array - } - export function Undefined(): t.xcm.v1.multiasset.AssetInstance.Undefined { - return { type: "Undefined" } - } - export function Index( - value: t.xcm.v1.multiasset.AssetInstance.Index["value"], - ): t.xcm.v1.multiasset.AssetInstance.Index { - return { type: "Index", value } - } - export function Array4( - value: t.xcm.v1.multiasset.AssetInstance.Array4["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array4 { - return { type: "Array4", value } - } - export function Array8( - value: t.xcm.v1.multiasset.AssetInstance.Array8["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array8 { - return { type: "Array8", value } - } - export function Array16( - value: t.xcm.v1.multiasset.AssetInstance.Array16["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array16 { - return { type: "Array16", value } - } - export function Array32( - value: t.xcm.v1.multiasset.AssetInstance.Array32["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array32 { - return { type: "Array32", value } - } - export function Blob( - value: t.xcm.v1.multiasset.AssetInstance.Blob["value"], - ): t.xcm.v1.multiasset.AssetInstance.Blob { - return { type: "Blob", value } - } -} - -export type Fungibility = - | t.xcm.v1.multiasset.Fungibility.Fungible - | t.xcm.v1.multiasset.Fungibility.NonFungible -export namespace Fungibility { - export interface Fungible { - type: "Fungible" - value: t.Compact - } - export interface NonFungible { - type: "NonFungible" - value: t.xcm.v1.multiasset.AssetInstance - } - export function Fungible( - value: t.xcm.v1.multiasset.Fungibility.Fungible["value"], - ): t.xcm.v1.multiasset.Fungibility.Fungible { - return { type: "Fungible", value } - } - export function NonFungible( - value: t.xcm.v1.multiasset.Fungibility.NonFungible["value"], - ): t.xcm.v1.multiasset.Fungibility.NonFungible { - return { type: "NonFungible", value } - } -} - -export interface MultiAsset { - id: t.xcm.v1.multiasset.AssetId - fun: t.xcm.v1.multiasset.Fungibility -} - -export function MultiAsset(value: t.xcm.v1.multiasset.MultiAsset) { - return value -} - -export type MultiAssetFilter = - | t.xcm.v1.multiasset.MultiAssetFilter.Definite - | t.xcm.v1.multiasset.MultiAssetFilter.Wild -export namespace MultiAssetFilter { - export interface Definite { - type: "Definite" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface Wild { - type: "Wild" - value: t.xcm.v1.multiasset.WildMultiAsset - } - export function Definite( - value: t.xcm.v1.multiasset.MultiAssetFilter.Definite["value"], - ): t.xcm.v1.multiasset.MultiAssetFilter.Definite { - return { type: "Definite", value } - } - export function Wild( - value: t.xcm.v1.multiasset.MultiAssetFilter.Wild["value"], - ): t.xcm.v1.multiasset.MultiAssetFilter.Wild { - return { type: "Wild", value } - } -} - -export type MultiAssets = Array - -export function MultiAssets(value: t.xcm.v1.multiasset.MultiAssets) { - return value -} - -export type WildFungibility = "Fungible" | "NonFungible" - -export type WildMultiAsset = - | t.xcm.v1.multiasset.WildMultiAsset.All - | t.xcm.v1.multiasset.WildMultiAsset.AllOf -export namespace WildMultiAsset { - export interface All { - type: "All" - } - export interface AllOf { - type: "AllOf" - id: t.xcm.v1.multiasset.AssetId - fun: t.xcm.v1.multiasset.WildFungibility - } - export function All(): t.xcm.v1.multiasset.WildMultiAsset.All { - return { type: "All" } - } - export function AllOf( - value: Omit, - ): t.xcm.v1.multiasset.WildMultiAsset.AllOf { - return { type: "AllOf", ...value } - } -} diff --git a/codegen/_output/kusama/xcm/v1/multilocation.ts b/codegen/_output/kusama/xcm/v1/multilocation.ts deleted file mode 100644 index 59749c32f..000000000 --- a/codegen/_output/kusama/xcm/v1/multilocation.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $junctions: $.Codec = _codec.$123 - -export const $multiLocation: $.Codec = _codec.$122 - -export type Junctions = - | t.xcm.v1.multilocation.Junctions.Here - | t.xcm.v1.multilocation.Junctions.X1 - | t.xcm.v1.multilocation.Junctions.X2 - | t.xcm.v1.multilocation.Junctions.X3 - | t.xcm.v1.multilocation.Junctions.X4 - | t.xcm.v1.multilocation.Junctions.X5 - | t.xcm.v1.multilocation.Junctions.X6 - | t.xcm.v1.multilocation.Junctions.X7 - | t.xcm.v1.multilocation.Junctions.X8 -export namespace Junctions { - export interface Here { - type: "Here" - } - export interface X1 { - type: "X1" - value: t.xcm.v1.junction.Junction - } - export interface X2 { - type: "X2" - value: [t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction] - } - export interface X3 { - type: "X3" - value: [t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction] - } - export interface X4 { - type: "X4" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X5 { - type: "X5" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X6 { - type: "X6" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X7 { - type: "X7" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X8 { - type: "X8" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export function Here(): t.xcm.v1.multilocation.Junctions.Here { - return { type: "Here" } - } - export function X1( - value: t.xcm.v1.multilocation.Junctions.X1["value"], - ): t.xcm.v1.multilocation.Junctions.X1 { - return { type: "X1", value } - } - export function X2( - ...value: t.xcm.v1.multilocation.Junctions.X2["value"] - ): t.xcm.v1.multilocation.Junctions.X2 { - return { type: "X2", value } - } - export function X3( - ...value: t.xcm.v1.multilocation.Junctions.X3["value"] - ): t.xcm.v1.multilocation.Junctions.X3 { - return { type: "X3", value } - } - export function X4( - ...value: t.xcm.v1.multilocation.Junctions.X4["value"] - ): t.xcm.v1.multilocation.Junctions.X4 { - return { type: "X4", value } - } - export function X5( - ...value: t.xcm.v1.multilocation.Junctions.X5["value"] - ): t.xcm.v1.multilocation.Junctions.X5 { - return { type: "X5", value } - } - export function X6( - ...value: t.xcm.v1.multilocation.Junctions.X6["value"] - ): t.xcm.v1.multilocation.Junctions.X6 { - return { type: "X6", value } - } - export function X7( - ...value: t.xcm.v1.multilocation.Junctions.X7["value"] - ): t.xcm.v1.multilocation.Junctions.X7 { - return { type: "X7", value } - } - export function X8( - ...value: t.xcm.v1.multilocation.Junctions.X8["value"] - ): t.xcm.v1.multilocation.Junctions.X8 { - return { type: "X8", value } - } -} - -export interface MultiLocation { - parents: t.u8 - interior: t.xcm.v1.multilocation.Junctions -} - -export function MultiLocation(value: t.xcm.v1.multilocation.MultiLocation) { - return value -} diff --git a/codegen/_output/kusama/xcm/v1/order.ts b/codegen/_output/kusama/xcm/v1/order.ts deleted file mode 100644 index 84d718dd5..000000000 --- a/codegen/_output/kusama/xcm/v1/order.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $order: $.Codec = _codec.$432 - -export type Order = - | t.xcm.v1.order.Order.Noop - | t.xcm.v1.order.Order.DepositAsset - | t.xcm.v1.order.Order.DepositReserveAsset - | t.xcm.v1.order.Order.ExchangeAsset - | t.xcm.v1.order.Order.InitiateReserveWithdraw - | t.xcm.v1.order.Order.InitiateTeleport - | t.xcm.v1.order.Order.QueryHolding - | t.xcm.v1.order.Order.BuyExecution -export namespace Order { - export interface Noop { - type: "Noop" - } - export interface DepositAsset { - type: "DepositAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.u32 - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.u32 - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: t.xcm.v1.multiasset.MultiAssetFilter - receive: t.xcm.v1.multiasset.MultiAssets - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: t.xcm.v1.multiasset.MultiAssetFilter - reserve: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: t.xcm.v1.multiasset.MultiAssetFilter - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - assets: t.xcm.v1.multiasset.MultiAssetFilter - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v1.multiasset.MultiAsset - weight: t.u64 - debt: t.u64 - halt_on_error: boolean - instructions: Array - } - export function Noop(): t.xcm.v1.order.Order.Noop { - return { type: "Noop" } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v1.order.Order.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v1.order.Order.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v1.order.Order.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v1.order.Order.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v1.order.Order.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v1.order.Order.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v1.order.Order.BuyExecution { - return { type: "BuyExecution", ...value } - } -} diff --git a/codegen/_output/kusama/xcm/v2/mod.ts b/codegen/_output/kusama/xcm/v2/mod.ts deleted file mode 100644 index d0e939e3e..000000000 --- a/codegen/_output/kusama/xcm/v2/mod.ts +++ /dev/null @@ -1,366 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as traits from "./traits.ts" - -export const $instruction: $.Codec = _codec.$132 - -export const $response: $.Codec = _codec.$140 - -export const $weightLimit: $.Codec = _codec.$148 - -export type Instruction = - | t.xcm.v2.Instruction.WithdrawAsset - | t.xcm.v2.Instruction.ReserveAssetDeposited - | t.xcm.v2.Instruction.ReceiveTeleportedAsset - | t.xcm.v2.Instruction.QueryResponse - | t.xcm.v2.Instruction.TransferAsset - | t.xcm.v2.Instruction.TransferReserveAsset - | t.xcm.v2.Instruction.Transact - | t.xcm.v2.Instruction.HrmpNewChannelOpenRequest - | t.xcm.v2.Instruction.HrmpChannelAccepted - | t.xcm.v2.Instruction.HrmpChannelClosing - | t.xcm.v2.Instruction.ClearOrigin - | t.xcm.v2.Instruction.DescendOrigin - | t.xcm.v2.Instruction.ReportError - | t.xcm.v2.Instruction.DepositAsset - | t.xcm.v2.Instruction.DepositReserveAsset - | t.xcm.v2.Instruction.ExchangeAsset - | t.xcm.v2.Instruction.InitiateReserveWithdraw - | t.xcm.v2.Instruction.InitiateTeleport - | t.xcm.v2.Instruction.QueryHolding - | t.xcm.v2.Instruction.BuyExecution - | t.xcm.v2.Instruction.RefundSurplus - | t.xcm.v2.Instruction.SetErrorHandler - | t.xcm.v2.Instruction.SetAppendix - | t.xcm.v2.Instruction.ClearError - | t.xcm.v2.Instruction.ClaimAsset - | t.xcm.v2.Instruction.Trap - | t.xcm.v2.Instruction.SubscribeVersion - | t.xcm.v2.Instruction.UnsubscribeVersion -export namespace Instruction { - export interface WithdrawAsset { - type: "WithdrawAsset" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ReserveAssetDeposited { - type: "ReserveAssetDeposited" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ReceiveTeleportedAsset { - type: "ReceiveTeleportedAsset" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v2.Response - max_weight: t.Compact - } - export interface TransferAsset { - type: "TransferAsset" - assets: t.xcm.v1.multiasset.MultiAssets - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssets - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.Compact - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface ClearOrigin { - type: "ClearOrigin" - } - export interface DescendOrigin { - type: "DescendOrigin" - value: t.xcm.v1.multilocation.Junctions - } - export interface ReportError { - type: "ReportError" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - max_response_weight: t.Compact - } - export interface DepositAsset { - type: "DepositAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.Compact - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: t.xcm.v1.multiasset.MultiAssetFilter - receive: t.xcm.v1.multiasset.MultiAssets - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: t.xcm.v1.multiasset.MultiAssetFilter - reserve: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: t.xcm.v1.multiasset.MultiAssetFilter - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_response_weight: t.Compact - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v1.multiasset.MultiAsset - weight_limit: t.xcm.v2.WeightLimit - } - export interface RefundSurplus { - type: "RefundSurplus" - } - export interface SetErrorHandler { - type: "SetErrorHandler" - value: Array - } - export interface SetAppendix { - type: "SetAppendix" - value: Array - } - export interface ClearError { - type: "ClearError" - } - export interface ClaimAsset { - type: "ClaimAsset" - assets: t.xcm.v1.multiasset.MultiAssets - ticket: t.xcm.v1.multilocation.MultiLocation - } - export interface Trap { - type: "Trap" - value: t.Compact - } - export interface SubscribeVersion { - type: "SubscribeVersion" - query_id: t.Compact - max_response_weight: t.Compact - } - export interface UnsubscribeVersion { - type: "UnsubscribeVersion" - } - export function WithdrawAsset( - value: t.xcm.v2.Instruction.WithdrawAsset["value"], - ): t.xcm.v2.Instruction.WithdrawAsset { - return { type: "WithdrawAsset", value } - } - export function ReserveAssetDeposited( - value: t.xcm.v2.Instruction.ReserveAssetDeposited["value"], - ): t.xcm.v2.Instruction.ReserveAssetDeposited { - return { type: "ReserveAssetDeposited", value } - } - export function ReceiveTeleportedAsset( - value: t.xcm.v2.Instruction.ReceiveTeleportedAsset["value"], - ): t.xcm.v2.Instruction.ReceiveTeleportedAsset { - return { type: "ReceiveTeleportedAsset", value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v2.Instruction.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v2.Instruction.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v2.Instruction.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact( - value: Omit, - ): t.xcm.v2.Instruction.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v2.Instruction.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v2.Instruction.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v2.Instruction.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function ClearOrigin(): t.xcm.v2.Instruction.ClearOrigin { - return { type: "ClearOrigin" } - } - export function DescendOrigin( - value: t.xcm.v2.Instruction.DescendOrigin["value"], - ): t.xcm.v2.Instruction.DescendOrigin { - return { type: "DescendOrigin", value } - } - export function ReportError( - value: Omit, - ): t.xcm.v2.Instruction.ReportError { - return { type: "ReportError", ...value } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v2.Instruction.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v2.Instruction.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v2.Instruction.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v2.Instruction.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v2.Instruction.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v2.Instruction.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v2.Instruction.BuyExecution { - return { type: "BuyExecution", ...value } - } - export function RefundSurplus(): t.xcm.v2.Instruction.RefundSurplus { - return { type: "RefundSurplus" } - } - export function SetErrorHandler( - value: t.xcm.v2.Instruction.SetErrorHandler["value"], - ): t.xcm.v2.Instruction.SetErrorHandler { - return { type: "SetErrorHandler", value } - } - export function SetAppendix( - value: t.xcm.v2.Instruction.SetAppendix["value"], - ): t.xcm.v2.Instruction.SetAppendix { - return { type: "SetAppendix", value } - } - export function ClearError(): t.xcm.v2.Instruction.ClearError { - return { type: "ClearError" } - } - export function ClaimAsset( - value: Omit, - ): t.xcm.v2.Instruction.ClaimAsset { - return { type: "ClaimAsset", ...value } - } - export function Trap(value: t.xcm.v2.Instruction.Trap["value"]): t.xcm.v2.Instruction.Trap { - return { type: "Trap", value } - } - export function SubscribeVersion( - value: Omit, - ): t.xcm.v2.Instruction.SubscribeVersion { - return { type: "SubscribeVersion", ...value } - } - export function UnsubscribeVersion(): t.xcm.v2.Instruction.UnsubscribeVersion { - return { type: "UnsubscribeVersion" } - } -} - -export type Response = - | t.xcm.v2.Response.Null - | t.xcm.v2.Response.Assets - | t.xcm.v2.Response.ExecutionResult - | t.xcm.v2.Response.Version -export namespace Response { - export interface Null { - type: "Null" - } - export interface Assets { - type: "Assets" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ExecutionResult { - type: "ExecutionResult" - value: [t.u32, t.xcm.v2.traits.Error] | undefined - } - export interface Version { - type: "Version" - value: t.u32 - } - export function Null(): t.xcm.v2.Response.Null { - return { type: "Null" } - } - export function Assets(value: t.xcm.v2.Response.Assets["value"]): t.xcm.v2.Response.Assets { - return { type: "Assets", value } - } - export function ExecutionResult( - value: t.xcm.v2.Response.ExecutionResult["value"], - ): t.xcm.v2.Response.ExecutionResult { - return { type: "ExecutionResult", value } - } - export function Version(value: t.xcm.v2.Response.Version["value"]): t.xcm.v2.Response.Version { - return { type: "Version", value } - } -} - -export type WeightLimit = t.xcm.v2.WeightLimit.Unlimited | t.xcm.v2.WeightLimit.Limited -export namespace WeightLimit { - export interface Unlimited { - type: "Unlimited" - } - export interface Limited { - type: "Limited" - value: t.Compact - } - export function Unlimited(): t.xcm.v2.WeightLimit.Unlimited { - return { type: "Unlimited" } - } - export function Limited( - value: t.xcm.v2.WeightLimit.Limited["value"], - ): t.xcm.v2.WeightLimit.Limited { - return { type: "Limited", value } - } -} diff --git a/codegen/_output/kusama/xcm/v2/traits.ts b/codegen/_output/kusama/xcm/v2/traits.ts deleted file mode 100644 index a2a5901e8..000000000 --- a/codegen/_output/kusama/xcm/v2/traits.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $error: $.Codec = _codec.$110 - -export const $outcome: $.Codec = _codec.$109 - -export type Error = - | t.xcm.v2.traits.Error.Overflow - | t.xcm.v2.traits.Error.Unimplemented - | t.xcm.v2.traits.Error.UntrustedReserveLocation - | t.xcm.v2.traits.Error.UntrustedTeleportLocation - | t.xcm.v2.traits.Error.MultiLocationFull - | t.xcm.v2.traits.Error.MultiLocationNotInvertible - | t.xcm.v2.traits.Error.BadOrigin - | t.xcm.v2.traits.Error.InvalidLocation - | t.xcm.v2.traits.Error.AssetNotFound - | t.xcm.v2.traits.Error.FailedToTransactAsset - | t.xcm.v2.traits.Error.NotWithdrawable - | t.xcm.v2.traits.Error.LocationCannotHold - | t.xcm.v2.traits.Error.ExceedsMaxMessageSize - | t.xcm.v2.traits.Error.DestinationUnsupported - | t.xcm.v2.traits.Error.Transport - | t.xcm.v2.traits.Error.Unroutable - | t.xcm.v2.traits.Error.UnknownClaim - | t.xcm.v2.traits.Error.FailedToDecode - | t.xcm.v2.traits.Error.MaxWeightInvalid - | t.xcm.v2.traits.Error.NotHoldingFees - | t.xcm.v2.traits.Error.TooExpensive - | t.xcm.v2.traits.Error.Trap - | t.xcm.v2.traits.Error.UnhandledXcmVersion - | t.xcm.v2.traits.Error.WeightLimitReached - | t.xcm.v2.traits.Error.Barrier - | t.xcm.v2.traits.Error.WeightNotComputable -export namespace Error { - export interface Overflow { - type: "Overflow" - } - export interface Unimplemented { - type: "Unimplemented" - } - export interface UntrustedReserveLocation { - type: "UntrustedReserveLocation" - } - export interface UntrustedTeleportLocation { - type: "UntrustedTeleportLocation" - } - export interface MultiLocationFull { - type: "MultiLocationFull" - } - export interface MultiLocationNotInvertible { - type: "MultiLocationNotInvertible" - } - export interface BadOrigin { - type: "BadOrigin" - } - export interface InvalidLocation { - type: "InvalidLocation" - } - export interface AssetNotFound { - type: "AssetNotFound" - } - export interface FailedToTransactAsset { - type: "FailedToTransactAsset" - } - export interface NotWithdrawable { - type: "NotWithdrawable" - } - export interface LocationCannotHold { - type: "LocationCannotHold" - } - export interface ExceedsMaxMessageSize { - type: "ExceedsMaxMessageSize" - } - export interface DestinationUnsupported { - type: "DestinationUnsupported" - } - export interface Transport { - type: "Transport" - } - export interface Unroutable { - type: "Unroutable" - } - export interface UnknownClaim { - type: "UnknownClaim" - } - export interface FailedToDecode { - type: "FailedToDecode" - } - export interface MaxWeightInvalid { - type: "MaxWeightInvalid" - } - export interface NotHoldingFees { - type: "NotHoldingFees" - } - export interface TooExpensive { - type: "TooExpensive" - } - export interface Trap { - type: "Trap" - value: t.u64 - } - export interface UnhandledXcmVersion { - type: "UnhandledXcmVersion" - } - export interface WeightLimitReached { - type: "WeightLimitReached" - value: t.u64 - } - export interface Barrier { - type: "Barrier" - } - export interface WeightNotComputable { - type: "WeightNotComputable" - } - export function Overflow(): t.xcm.v2.traits.Error.Overflow { - return { type: "Overflow" } - } - export function Unimplemented(): t.xcm.v2.traits.Error.Unimplemented { - return { type: "Unimplemented" } - } - export function UntrustedReserveLocation(): t.xcm.v2.traits.Error.UntrustedReserveLocation { - return { type: "UntrustedReserveLocation" } - } - export function UntrustedTeleportLocation(): t.xcm.v2.traits.Error.UntrustedTeleportLocation { - return { type: "UntrustedTeleportLocation" } - } - export function MultiLocationFull(): t.xcm.v2.traits.Error.MultiLocationFull { - return { type: "MultiLocationFull" } - } - export function MultiLocationNotInvertible(): t.xcm.v2.traits.Error.MultiLocationNotInvertible { - return { type: "MultiLocationNotInvertible" } - } - export function BadOrigin(): t.xcm.v2.traits.Error.BadOrigin { - return { type: "BadOrigin" } - } - export function InvalidLocation(): t.xcm.v2.traits.Error.InvalidLocation { - return { type: "InvalidLocation" } - } - export function AssetNotFound(): t.xcm.v2.traits.Error.AssetNotFound { - return { type: "AssetNotFound" } - } - export function FailedToTransactAsset(): t.xcm.v2.traits.Error.FailedToTransactAsset { - return { type: "FailedToTransactAsset" } - } - export function NotWithdrawable(): t.xcm.v2.traits.Error.NotWithdrawable { - return { type: "NotWithdrawable" } - } - export function LocationCannotHold(): t.xcm.v2.traits.Error.LocationCannotHold { - return { type: "LocationCannotHold" } - } - export function ExceedsMaxMessageSize(): t.xcm.v2.traits.Error.ExceedsMaxMessageSize { - return { type: "ExceedsMaxMessageSize" } - } - export function DestinationUnsupported(): t.xcm.v2.traits.Error.DestinationUnsupported { - return { type: "DestinationUnsupported" } - } - export function Transport(): t.xcm.v2.traits.Error.Transport { - return { type: "Transport" } - } - export function Unroutable(): t.xcm.v2.traits.Error.Unroutable { - return { type: "Unroutable" } - } - export function UnknownClaim(): t.xcm.v2.traits.Error.UnknownClaim { - return { type: "UnknownClaim" } - } - export function FailedToDecode(): t.xcm.v2.traits.Error.FailedToDecode { - return { type: "FailedToDecode" } - } - export function MaxWeightInvalid(): t.xcm.v2.traits.Error.MaxWeightInvalid { - return { type: "MaxWeightInvalid" } - } - export function NotHoldingFees(): t.xcm.v2.traits.Error.NotHoldingFees { - return { type: "NotHoldingFees" } - } - export function TooExpensive(): t.xcm.v2.traits.Error.TooExpensive { - return { type: "TooExpensive" } - } - export function Trap(value: t.xcm.v2.traits.Error.Trap["value"]): t.xcm.v2.traits.Error.Trap { - return { type: "Trap", value } - } - export function UnhandledXcmVersion(): t.xcm.v2.traits.Error.UnhandledXcmVersion { - return { type: "UnhandledXcmVersion" } - } - export function WeightLimitReached( - value: t.xcm.v2.traits.Error.WeightLimitReached["value"], - ): t.xcm.v2.traits.Error.WeightLimitReached { - return { type: "WeightLimitReached", value } - } - export function Barrier(): t.xcm.v2.traits.Error.Barrier { - return { type: "Barrier" } - } - export function WeightNotComputable(): t.xcm.v2.traits.Error.WeightNotComputable { - return { type: "WeightNotComputable" } - } -} - -export type Outcome = - | t.xcm.v2.traits.Outcome.Complete - | t.xcm.v2.traits.Outcome.Incomplete - | t.xcm.v2.traits.Outcome.Error -export namespace Outcome { - export interface Complete { - type: "Complete" - value: t.u64 - } - export interface Incomplete { - type: "Incomplete" - value: [t.u64, t.xcm.v2.traits.Error] - } - export interface Error { - type: "Error" - value: t.xcm.v2.traits.Error - } - export function Complete( - value: t.xcm.v2.traits.Outcome.Complete["value"], - ): t.xcm.v2.traits.Outcome.Complete { - return { type: "Complete", value } - } - export function Incomplete( - ...value: t.xcm.v2.traits.Outcome.Incomplete["value"] - ): t.xcm.v2.traits.Outcome.Incomplete { - return { type: "Incomplete", value } - } - export function Error( - value: t.xcm.v2.traits.Outcome.Error["value"], - ): t.xcm.v2.traits.Outcome.Error { - return { type: "Error", value } - } -} diff --git a/codegen/_output/polkadot/bitvec/order.ts b/codegen/_output/polkadot/bitvec/order.ts deleted file mode 100644 index d11f4895b..000000000 --- a/codegen/_output/polkadot/bitvec/order.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $lsb0: $.Codec = _codec.$384 - -export function Lsb0() { - return null -} - -export type Lsb0 = null diff --git a/codegen/_output/polkadot/codecs.ts b/codegen/_output/polkadot/codecs.ts index ec0089ee3..0d6bf21bf 100644 --- a/codegen/_output/polkadot/codecs.ts +++ b/codegen/_output/polkadot/codecs.ts @@ -3,20 +3,22 @@ import type * as t from "./mod.ts" export const $1: $.Codec = $.sizedUint8Array(32) -export const $0: $.Codec = $1 +export const $0: $.Codec = $1 -export const $2: $.Codec = $.u8 +export const $2: $.Codec = $.u8 -export const $4: $.Codec = $.u32 +export const $4: $.Codec = $.u32 -export const $6: $.Codec = $.u128 +export const $6: $.Codec = $.u128 -export const $5: $.Codec = $.object(["free", $6], ["reserved", $6], [ - "misc_frozen", - $6, -], ["fee_frozen", $6]) +export const $5: $.Codec = $.object( + ["free", $6], + ["reserved", $6], + ["misc_frozen", $6], + ["fee_frozen", $6], +) -export const $3: $.Codec = $.object( +export const $3: $.Codec = $.object( ["nonce", $4], ["consumers", $4], ["providers", $4], @@ -24,25 +26,26 @@ export const $3: $.Codec = $.object( ["data", $5], ) -export const $10: $.Codec = $.u64 +export const $10: $.Codec = $.u64 -export const $9: $.Codec> = $.compact($10) +export const $9: $.Codec> = $.compact($10) -export const $8: $.Codec = $.object(["ref_time", $9], [ +export const $8: $.Codec = $.object(["ref_time", $9], [ "proof_size", $9, ]) -export const $7: $.Codec = - $.object(["normal", $8], ["operational", $8], ["mandatory", $8]) +export const $7: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight +> = $.object(["normal", $8], ["operational", $8], ["mandatory", $8]) -export const $11: $.Codec = $1 +export const $11: $.Codec = $1 export const $12: $.Codec = $.uint8Array export const $16: $.Codec = $.sizedUint8Array(4) -export const $15: $.Codec = $.taggedUnion("type", { +export const $15: $.Codec = $.taggedUnion("type", { 6: ["PreRuntime", ["value", $.tuple($16, $12)]], 4: ["Consensus", ["value", $.tuple($16, $12)]], 5: ["Seal", ["value", $.tuple($16, $12)]], @@ -50,32 +53,35 @@ export const $15: $.Codec = $.taggedUnio 8: ["RuntimeEnvironmentUpdated"], }) -export const $14: $.Codec> = $.array($15) +export const $14: $.Codec> = $.array($15) -export const $13: $.Codec = $.object(["logs", $14]) +export const $13: $.Codec = $.object(["logs", $14]) -export const $156: $.Codec = $.taggedUnion("type", { +export const $156: $.Codec = $.taggedUnion("type", { 0: ["ApplyExtrinsic", ["value", $4]], 1: ["Finalization"], 2: ["Initialization"], }) -export const $22: $.Codec = $.stringUnion({ +export const $22: $.Codec = $.stringUnion({ 0: "Normal", 1: "Operational", 2: "Mandatory", }) -export const $23: $.Codec = $.stringUnion({ 0: "Yes", 1: "No" }) +export const $23: $.Codec = $.stringUnion({ + 0: "Yes", + 1: "No", +}) -export const $21: $.Codec = $.object(["weight", $8], [ +export const $21: $.Codec = $.object(["weight", $8], [ "class", $22, ], ["pays_fee", $23]) -export const $25: $.Codec = $.object(["index", $2], ["error", $16]) +export const $25: $.Codec = $.object(["index", $2], ["error", $16]) -export const $26: $.Codec = $.stringUnion({ +export const $26: $.Codec = $.stringUnion({ 0: "NoFunds", 1: "WouldDie", 2: "BelowMinimum", @@ -85,18 +91,18 @@ export const $26: $.Codec = $.stringUnion({ 6: "Unsupported", }) -export const $27: $.Codec = $.stringUnion({ +export const $27: $.Codec = $.stringUnion({ 0: "Underflow", 1: "Overflow", 2: "DivisionByZero", }) -export const $28: $.Codec = $.stringUnion({ +export const $28: $.Codec = $.stringUnion({ 0: "LimitReached", 1: "NoLayer", }) -export const $24: $.Codec = $.taggedUnion("type", { +export const $24: $.Codec = $.taggedUnion("type", { 0: ["Other"], 1: ["CannotLookup"], 2: ["BadOrigin"], @@ -112,7 +118,7 @@ export const $24: $.Codec = $.taggedUnion("type", { 12: ["Unavailable"], }) -export const $20: $.Codec = $.taggedUnion("type", { +export const $20: $.Codec = $.taggedUnion("type", { 0: ["ExtrinsicSuccess", ["dispatch_info", $21]], 1: ["ExtrinsicFailed", ["dispatch_error", $24], ["dispatch_info", $21]], 2: ["CodeUpdated"], @@ -121,18 +127,18 @@ export const $20: $.Codec = $.taggedUnion("type", { 5: ["Remarked", ["sender", $0], ["hash", $11]], }) -export const $30: $.Codec<[t.u32, t.u32]> = $.tuple($4, $4) +export const $30: $.Codec<[t.types.u32, t.types.u32]> = $.tuple($4, $4) export const $31: $.Codec = $.option($1) export const $33: $.Codec = C.$null -export const $32: $.Codec> = $.result( +export const $32: $.Codec> = $.result( $33, - $.instance(C.ChainError, ["value", $24]), + $.instance(C.ChainError, ["value", $24]), ) -export const $29: $.Codec = $.taggedUnion("type", { +export const $29: $.Codec = $.taggedUnion("type", { 0: ["Scheduled", ["when", $4], ["index", $4]], 1: ["Canceled", ["when", $4], ["index", $4]], 2: ["Dispatched", ["task", $30], ["id", $31], ["result", $32]], @@ -141,24 +147,24 @@ export const $29: $.Codec = $.taggedUnion("type 5: ["PermanentlyOverweight", ["task", $30], ["id", $31]], }) -export const $34: $.Codec = $.taggedUnion("type", { +export const $34: $.Codec = $.taggedUnion("type", { 0: ["Noted", ["hash", $11]], 1: ["Requested", ["hash", $11]], 2: ["Cleared", ["hash", $11]], }) -export const $35: $.Codec = $.taggedUnion("type", { +export const $35: $.Codec = $.taggedUnion("type", { 0: ["IndexAssigned", ["who", $0], ["index", $4]], 1: ["IndexFreed", ["index", $4]], 2: ["IndexFrozen", ["index", $4], ["who", $0]], }) -export const $37: $.Codec = $.stringUnion({ +export const $37: $.Codec = $.stringUnion({ 0: "Free", 1: "Reserved", }) -export const $36: $.Codec = $.taggedUnion("type", { +export const $36: $.Codec = $.taggedUnion("type", { 0: ["Endowed", ["account", $0], ["free_balance", $6]], 1: ["DustLost", ["account", $0], ["amount", $6]], 2: ["Transfer", ["from", $0], ["to", $0], ["amount", $6]], @@ -171,22 +177,22 @@ export const $36: $.Codec = $.taggedUnion("type" 9: ["Slashed", ["who", $0], ["amount", $6]], }) -export const $38: $.Codec = $.taggedUnion("type", { +export const $38: $.Codec = $.taggedUnion("type", { 0: ["TransactionFeePaid", ["who", $0], ["actual_fee", $6], ["tip", $6]], }) -export const $42: $.Codec = $4 +export const $42: $.Codec = $4 -export const $41: $.Codec> = $.compact($42) +export const $41: $.Codec> = $.compact($42) export const $43: $.Codec = $.bool -export const $40: $.Codec = $.object(["commission", $41], [ +export const $40: $.Codec = $.object(["commission", $41], [ "blocked", $43, ]) -export const $39: $.Codec = $.taggedUnion("type", { +export const $39: $.Codec = $.taggedUnion("type", { 0: ["EraPaid", ["era_index", $4], ["validator_payout", $6], ["remainder", $6]], 1: ["Rewarded", ["stash", $0], ["amount", $6]], 2: ["Slashed", ["staker", $0], ["amount", $6]], @@ -204,74 +210,79 @@ export const $39: $.Codec = $.taggedUnion( export const $45: $.Codec = $.sizedUint8Array(16) -export const $44: $.Codec = $.taggedUnion("type", { +export const $44: $.Codec = $.taggedUnion("type", { 0: ["Offence", ["kind", $45], ["timeslot", $12]], }) -export const $46: $.Codec = $.taggedUnion("type", { +export const $46: $.Codec = $.taggedUnion("type", { 0: ["NewSession", ["session_index", $4]], }) -export const $51: $.Codec = $1 +export const $51: $.Codec = $1 -export const $50: $.Codec = $51 +export const $50: $.Codec = $51 -export const $49: $.Codec<[t.sp_finality_grandpa.app.Public, t.u64]> = $.tuple($50, $10) +export const $49: $.Codec<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> = $.tuple( + $50, + $10, +) -export const $48: $.Codec> = $.array($49) +export const $48: $.Codec> = $.array( + $49, +) -export const $47: $.Codec = $.taggedUnion("type", { +export const $47: $.Codec = $.taggedUnion("type", { 0: ["NewAuthorities", ["authority_set", $48]], 1: ["Paused"], 2: ["Resumed"], }) -export const $54: $.Codec = $1 +export const $54: $.Codec = $1 -export const $53: $.Codec = $54 +export const $53: $.Codec = $54 -export const $58: $.Codec> = $.compact($6) +export const $58: $.Codec> = $.compact($6) -export const $60: $.Codec = $.object(["who", $0], [ +export const $60: $.Codec = $.object(["who", $0], [ "value", $58, ]) -export const $59: $.Codec> = $.array($60) - -export const $57: $.Codec = $.object(["total", $58], ["own", $58], [ - "others", - $59, -]) +export const $59: $.Codec> = $.array($60) -export const $56: $.Codec<[t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure]> = $.tuple( - $0, - $57, +export const $57: $.Codec = $.object( + ["total", $58], + ["own", $58], + ["others", $59], ) -export const $55: $.Codec> = $ - .array($56) +export const $56: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> = $ + .tuple($0, $57) + +export const $55: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> +> = $.array($56) -export const $52: $.Codec = $.taggedUnion("type", { +export const $52: $.Codec = $.taggedUnion("type", { 0: ["HeartbeatReceived", ["authority_id", $53]], 1: ["AllGood"], 2: ["SomeOffline", ["offline", $55]], }) -export const $62: $.Codec = $.stringUnion({ +export const $62: $.Codec = $.stringUnion({ 0: "SuperMajorityApprove", 1: "SuperMajorityAgainst", 2: "SimpleMajority", }) -export const $64: $.Codec = $2 +export const $64: $.Codec = $2 -export const $63: $.Codec = $.taggedUnion("type", { +export const $63: $.Codec = $.taggedUnion("type", { 0: ["Standard", ["vote", $64], ["balance", $6]], 1: ["Split", ["aye", $6], ["nay", $6]], }) -export const $61: $.Codec = $.taggedUnion("type", { +export const $61: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["proposal_index", $4], ["deposit", $6]], 1: ["Tabled", ["proposal_index", $4], ["deposit", $6]], 2: ["ExternalTabled"], @@ -288,7 +299,7 @@ export const $61: $.Codec = $.taggedUnion("type 13: ["ProposalCanceled", ["prop_index", $4]], }) -export const $65: $.Codec = $.taggedUnion("type", { +export const $65: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["account", $0], ["proposal_index", $4], ["proposal_hash", $11], [ "threshold", $4, @@ -301,7 +312,7 @@ export const $65: $.Codec = $.taggedUnion("typ 6: ["Closed", ["proposal_hash", $11], ["yes", $4], ["no", $4]], }) -export const $66: $.Codec = $.taggedUnion("type", { +export const $66: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["account", $0], ["proposal_index", $4], ["proposal_hash", $11], [ "threshold", $4, @@ -314,11 +325,11 @@ export const $66: $.Codec = $.taggedUnion("typ 6: ["Closed", ["proposal_hash", $11], ["yes", $4], ["no", $4]], }) -export const $69: $.Codec<[t.sp_core.crypto.AccountId32, t.u128]> = $.tuple($0, $6) +export const $69: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128]> = $.tuple($0, $6) -export const $68: $.Codec> = $.array($69) +export const $68: $.Codec> = $.array($69) -export const $67: $.Codec = $.taggedUnion("type", { +export const $67: $.Codec = $.taggedUnion("type", { 0: ["NewTerm", ["new_members", $68]], 1: ["EmptyTerm"], 2: ["ElectionError"], @@ -328,7 +339,7 @@ export const $67: $.Codec = $.taggedUn 6: ["SeatHolderSlashed", ["seat_holder", $0], ["amount", $6]], }) -export const $70: $.Codec = $.stringUnion({ +export const $70: $.Codec = $.stringUnion({ 0: "MemberAdded", 1: "MemberRemoved", 2: "MembersSwapped", @@ -337,7 +348,7 @@ export const $70: $.Codec = $.stringUnion({ 5: "Dummy", }) -export const $71: $.Codec = $.taggedUnion("type", { +export const $71: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["proposal_index", $4]], 1: ["Spending", ["budget_remaining", $6]], 2: ["Awarded", ["proposal_index", $4], ["award", $6], ["account", $0]], @@ -350,18 +361,19 @@ export const $71: $.Codec = $.taggedUnion("type" export const $74: $.Codec = $.sizedUint8Array(20) -export const $73: $.Codec = $74 +export const $73: $.Codec = $74 -export const $72: $.Codec = $.taggedUnion("type", { - 0: ["Claimed", ["who", $0], ["ethereum_address", $73], ["amount", $6]], -}) +export const $72: $.Codec = $.taggedUnion( + "type", + { 0: ["Claimed", ["who", $0], ["ethereum_address", $73], ["amount", $6]] }, +) -export const $75: $.Codec = $.taggedUnion("type", { +export const $75: $.Codec = $.taggedUnion("type", { 0: ["VestingUpdated", ["account", $0], ["unvested", $6]], 1: ["VestingCompleted", ["account", $0]], }) -export const $76: $.Codec = $.taggedUnion("type", { +export const $76: $.Codec = $.taggedUnion("type", { 0: ["BatchInterrupted", ["index", $4], ["error", $24]], 1: ["BatchCompleted"], 2: ["BatchCompletedWithErrors"], @@ -370,7 +382,7 @@ export const $76: $.Codec = $.taggedUnion("type", 5: ["DispatchedAs", ["result", $32]], }) -export const $77: $.Codec = $.taggedUnion("type", { +export const $77: $.Codec = $.taggedUnion("type", { 0: ["IdentitySet", ["who", $0]], 1: ["IdentityCleared", ["who", $0], ["deposit", $6]], 2: ["IdentityKilled", ["who", $0], ["deposit", $6]], @@ -383,7 +395,7 @@ export const $77: $.Codec = $.taggedUnion("type" 9: ["SubIdentityRevoked", ["sub", $0], ["main", $0], ["deposit", $6]], }) -export const $79: $.Codec = $.stringUnion({ +export const $79: $.Codec = $.stringUnion({ 0: "Any", 1: "NonTransfer", 2: "Governance", @@ -393,9 +405,9 @@ export const $79: $.Codec = $.stringUnion({ 7: "Auction", }) -export const $80: $.Codec = $.u16 +export const $80: $.Codec = $.u16 -export const $78: $.Codec = $.taggedUnion("type", { +export const $78: $.Codec = $.taggedUnion("type", { 0: ["ProxyExecuted", ["result", $32]], 1: ["PureCreated", ["pure", $0], ["who", $0], ["proxy_type", $79], ["disambiguation_index", $80]], 2: ["Announced", ["real", $0], ["proxy", $0], ["call_hash", $11]], @@ -403,9 +415,12 @@ export const $78: $.Codec = $.taggedUnion("type", { 4: ["ProxyRemoved", ["delegator", $0], ["delegatee", $0], ["proxy_type", $79], ["delay", $4]], }) -export const $82: $.Codec = $.object(["height", $4], ["index", $4]) +export const $82: $.Codec = $.object(["height", $4], [ + "index", + $4, +]) -export const $81: $.Codec = $.taggedUnion("type", { +export const $81: $.Codec = $.taggedUnion("type", { 0: ["NewMultisig", ["approving", $0], ["multisig", $0], ["call_hash", $1]], 1: ["MultisigApproval", ["approving", $0], ["timepoint", $82], ["multisig", $0], [ "call_hash", @@ -421,7 +436,7 @@ export const $81: $.Codec = $.taggedUnion("type" ]], }) -export const $83: $.Codec = $.taggedUnion("type", { +export const $83: $.Codec = $.taggedUnion("type", { 0: ["BountyProposed", ["index", $4]], 1: ["BountyRejected", ["index", $4], ["bond", $6]], 2: ["BountyBecameActive", ["index", $4]], @@ -431,14 +446,14 @@ export const $83: $.Codec = $.taggedUnion("type" 6: ["BountyExtended", ["index", $4]], }) -export const $84: $.Codec = $.taggedUnion("type", { +export const $84: $.Codec = $.taggedUnion("type", { 0: ["Added", ["index", $4], ["child_index", $4]], 1: ["Awarded", ["index", $4], ["child_index", $4], ["beneficiary", $0]], 2: ["Claimed", ["index", $4], ["child_index", $4], ["payout", $6], ["beneficiary", $0]], 3: ["Canceled", ["index", $4], ["child_index", $4]], }) -export const $85: $.Codec = $.taggedUnion("type", { +export const $85: $.Codec = $.taggedUnion("type", { 0: ["NewTip", ["tip_hash", $11]], 1: ["TipClosing", ["tip_hash", $11]], 2: ["TipClosed", ["tip_hash", $11], ["who", $0], ["payout", $6]], @@ -446,22 +461,17 @@ export const $85: $.Codec = $.taggedUnion("type", { 4: ["TipSlashed", ["tip_hash", $11], ["finder", $0], ["deposit", $6]], }) -export const $87: $.Codec = $.stringUnion({ - 0: "OnChain", - 1: "Signed", - 2: "Unsigned", - 3: "Fallback", - 4: "Emergency", -}) +export const $87: $.Codec = $ + .stringUnion({ 0: "OnChain", 1: "Signed", 2: "Unsigned", 3: "Fallback", 4: "Emergency" }) -export const $88: $.Codec = $.object(["minimal_stake", $6], [ - "sum_stake", - $6, -], ["sum_stake_squared", $6]) +export const $88: $.Codec = $.object( + ["minimal_stake", $6], + ["sum_stake", $6], + ["sum_stake_squared", $6], +) -export const $86: $.Codec = $.taggedUnion( - "type", - { +export const $86: $.Codec = $ + .taggedUnion("type", { 0: ["SolutionStored", ["compute", $87], ["prev_ejected", $43]], 1: ["ElectionFinalized", ["compute", $87], ["score", $88]], 2: ["ElectionFailed"], @@ -469,23 +479,22 @@ export const $86: $.Codec = 4: ["Slashed", ["account", $0], ["value", $6]], 5: ["SignedPhaseStarted", ["round", $4]], 6: ["UnsignedPhaseStarted", ["round", $4]], - }, -) + }) -export const $89: $.Codec = $.taggedUnion("type", { +export const $89: $.Codec = $.taggedUnion("type", { 0: ["Rebagged", ["who", $0], ["from", $10], ["to", $10]], 1: ["ScoreUpdated", ["who", $0], ["new_score", $10]], }) -export const $91: $.Codec = $.stringUnion({ +export const $91: $.Codec = $.stringUnion({ 0: "Open", 1: "Blocked", 2: "Destroying", }) -export const $92: $.Codec = $.option($0) +export const $92: $.Codec = $.option($0) -export const $90: $.Codec = $.taggedUnion("type", { +export const $90: $.Codec = $.taggedUnion("type", { 0: ["Created", ["depositor", $0], ["pool_id", $4]], 1: ["Bonded", ["member", $0], ["pool_id", $4], ["bonded", $6], ["joined", $43]], 2: ["PaidOut", ["member", $0], ["pool_id", $4], ["payout", $6]], @@ -499,9 +508,9 @@ export const $90: $.Codec = $.taggedUnio 10: ["UnbondingPoolSlashed", ["pool_id", $4], ["era", $4], ["balance", $6]], }) -export const $94: $.Codec> = $.array($4) +export const $94: $.Codec> = $.array($4) -export const $93: $.Codec = $.taggedUnion("type", { +export const $93: $.Codec = $.taggedUnion("type", { 0: ["Unstaked", ["stash", $0], ["result", $32]], 1: ["Slashed", ["stash", $0], ["amount", $6]], 2: ["Checking", ["stash", $0], ["eras", $94]], @@ -509,19 +518,19 @@ export const $93: $.Codec = $.taggedUnion("t 4: ["InternalError"], }) -export const $98: $.Codec = $4 +export const $98: $.Codec = $4 -export const $99: $.Codec = $54 +export const $99: $.Codec = $54 export const $102: $.Codec = $.sizedUint8Array(64) -export const $101: $.Codec = $102 +export const $101: $.Codec = $102 -export const $100: $.Codec = $101 +export const $100: $.Codec = $101 -export const $103: $.Codec = $11 +export const $103: $.Codec = $11 -export const $97: $.Codec = $.object( +export const $97: $.Codec = $.object( ["para_id", $98], ["relay_parent", $11], ["collator", $99], @@ -533,27 +542,25 @@ export const $97: $.Codec = $.obje ["validation_code_hash", $103], ) -export const $96: $.Codec = $.object( - ["descriptor", $97], - ["commitments_hash", $11], -) +export const $96: $.Codec = $.object([ + "descriptor", + $97, +], ["commitments_hash", $11]) -export const $104: $.Codec = $12 +export const $104: $.Codec = $12 -export const $105: $.Codec = $4 +export const $105: $.Codec = $4 -export const $106: $.Codec = $4 +export const $106: $.Codec = $4 -export const $95: $.Codec = $.taggedUnion( - "type", - { +export const $95: $.Codec = $ + .taggedUnion("type", { 0: ["CandidateBacked", ["value", $.tuple($96, $104, $105, $106)]], 1: ["CandidateIncluded", ["value", $.tuple($96, $104, $105, $106)]], 2: ["CandidateTimedOut", ["value", $.tuple($96, $104, $105)]], - }, -) + }) -export const $107: $.Codec = $.taggedUnion( +export const $107: $.Codec = $.taggedUnion( "type", { 0: ["CurrentCodeUpdated", ["value", $98]], @@ -567,7 +574,7 @@ export const $107: $.Codec = $ }, ) -export const $110: $.Codec = $.taggedUnion("type", { +export const $110: $.Codec = $.taggedUnion("type", { 0: ["Overflow"], 1: ["Unimplemented"], 2: ["UntrustedReserveLocation"], @@ -596,28 +603,31 @@ export const $110: $.Codec = $.taggedUnion("type", { 25: ["WeightNotComputable"], }) -export const $109: $.Codec = $.taggedUnion("type", { +export const $109: $.Codec = $.taggedUnion("type", { 0: ["Complete", ["value", $10]], 1: ["Incomplete", ["value", $.tuple($10, $110)]], 2: ["Error", ["value", $110]], }) -export const $108: $.Codec = $.taggedUnion("type", { - 0: ["InvalidFormat", ["value", $1]], - 1: ["UnsupportedVersion", ["value", $1]], - 2: ["ExecutedUpward", ["value", $.tuple($1, $109)]], - 3: ["WeightExhausted", ["value", $.tuple($1, $8, $8)]], - 4: ["UpwardMessagesReceived", ["value", $.tuple($98, $4, $4)]], - 5: ["OverweightEnqueued", ["value", $.tuple($98, $1, $10, $8)]], - 6: ["OverweightServiced", ["value", $.tuple($10, $8)]], -}) +export const $108: $.Codec = $.taggedUnion( + "type", + { + 0: ["InvalidFormat", ["value", $1]], + 1: ["UnsupportedVersion", ["value", $1]], + 2: ["ExecutedUpward", ["value", $.tuple($1, $109)]], + 3: ["WeightExhausted", ["value", $.tuple($1, $8, $8)]], + 4: ["UpwardMessagesReceived", ["value", $.tuple($98, $4, $4)]], + 5: ["OverweightEnqueued", ["value", $.tuple($98, $1, $10, $8)]], + 6: ["OverweightServiced", ["value", $.tuple($10, $8)]], + }, +) -export const $112: $.Codec = $.object([ +export const $112: $.Codec = $.object([ "sender", $98, ], ["recipient", $98]) -export const $111: $.Codec = $.taggedUnion( +export const $111: $.Codec = $.taggedUnion( "type", { 0: ["OpenChannelRequested", ["value", $.tuple($98, $98, $4, $4)]], @@ -628,46 +638,41 @@ export const $111: $.Codec = $. }, ) -export const $114: $.Codec = $11 +export const $114: $.Codec = $11 -export const $115: $.Codec = $.stringUnion({ - 0: "Local", - 1: "Remote", -}) +export const $115: $.Codec = $ + .stringUnion({ 0: "Local", 1: "Remote" }) -export const $116: $.Codec = $.stringUnion({ - 0: "Valid", - 1: "Invalid", -}) +export const $116: $.Codec = $ + .stringUnion({ 0: "Valid", 1: "Invalid" }) -export const $113: $.Codec = $.taggedUnion( - "type", - { +export const $113: $.Codec = $ + .taggedUnion("type", { 0: ["DisputeInitiated", ["value", $.tuple($114, $115)]], 1: ["DisputeConcluded", ["value", $.tuple($114, $116)]], 2: ["DisputeTimedOut", ["value", $114]], 3: ["Revert", ["value", $4]], - }, -) + }) -export const $117: $.Codec = $.taggedUnion( - "type", - { +export const $117: $.Codec = $ + .taggedUnion("type", { 0: ["Registered", ["para_id", $98], ["manager", $0]], 1: ["Deregistered", ["para_id", $98]], 2: ["Reserved", ["para_id", $98], ["who", $0]], + }) + +export const $118: $.Codec = $.taggedUnion( + "type", + { + 0: ["NewLeasePeriod", ["lease_period", $4]], + 1: ["Leased", ["para_id", $98], ["leaser", $0], ["period_begin", $4], ["period_count", $4], [ + "extra_reserved", + $6, + ], ["total_amount", $6]], }, ) -export const $118: $.Codec = $.taggedUnion("type", { - 0: ["NewLeasePeriod", ["lease_period", $4]], - 1: ["Leased", ["para_id", $98], ["leaser", $0], ["period_begin", $4], ["period_count", $4], [ - "extra_reserved", - $6, - ], ["total_amount", $6]], -}) - -export const $119: $.Codec = $.taggedUnion( +export const $119: $.Codec = $.taggedUnion( "type", { 0: ["AuctionStarted", ["auction_index", $4], ["lease_period", $4], ["ending", $4]], @@ -683,7 +688,7 @@ export const $119: $.Codec = $. }, ) -export const $120: $.Codec = $.taggedUnion( +export const $120: $.Codec = $.taggedUnion( "type", { 0: ["Created", ["para_id", $98]], @@ -699,18 +704,18 @@ export const $120: $.Codec = $ }, ) -export const $125: $.Codec> = $.compact($4) +export const $125: $.Codec> = $.compact($4) export const $127: $.Codec = $12 -export const $126: $.Codec = $.taggedUnion("type", { +export const $126: $.Codec = $.taggedUnion("type", { 0: ["Any"], 1: ["Named", ["value", $127]], 2: ["Polkadot"], 3: ["Kusama"], }) -export const $128: $.Codec = $.taggedUnion("type", { +export const $128: $.Codec = $.taggedUnion("type", { 0: ["Unit"], 1: ["Named", ["value", $127]], 2: ["Index", ["value", $125]], @@ -720,7 +725,7 @@ export const $128: $.Codec = $.taggedUnion("type", { 6: ["Judicial"], }) -export const $129: $.Codec = $.taggedUnion("type", { +export const $129: $.Codec = $.taggedUnion("type", { 0: ["Voice"], 1: ["Members", ["count", $125]], 2: ["Fraction", ["nom", $125], ["denom", $125]], @@ -728,7 +733,7 @@ export const $129: $.Codec = $.taggedUnion("type", { 4: ["MoreThanProportion", ["nom", $125], ["denom", $125]], }) -export const $124: $.Codec = $.taggedUnion("type", { +export const $124: $.Codec = $.taggedUnion("type", { 0: ["Parachain", ["value", $125]], 1: ["AccountId32", ["network", $126], ["id", $1]], 2: ["AccountIndex64", ["network", $126], ["index", $9]], @@ -740,7 +745,7 @@ export const $124: $.Codec = $.taggedUnion("type", { 8: ["Plurality", ["id", $128], ["part", $129]], }) -export const $123: $.Codec = $.taggedUnion("type", { +export const $123: $.Codec = $.taggedUnion("type", { 0: ["Here"], 1: ["X1", ["value", $124]], 2: ["X2", ["value", $.tuple($124, $124)]], @@ -752,19 +757,19 @@ export const $123: $.Codec = $.taggedUnion("ty 8: ["X8", ["value", $.tuple($124, $124, $124, $124, $124, $124, $124, $124)]], }) -export const $122: $.Codec = $.object(["parents", $2], [ +export const $122: $.Codec = $.object(["parents", $2], [ "interior", $123, ]) -export const $136: $.Codec = $.taggedUnion("type", { +export const $136: $.Codec = $.taggedUnion("type", { 0: ["Concrete", ["value", $122]], 1: ["Abstract", ["value", $12]], }) export const $139: $.Codec = $.sizedUint8Array(8) -export const $138: $.Codec = $.taggedUnion("type", { +export const $138: $.Codec = $.taggedUnion("type", { 0: ["Undefined"], 1: ["Index", ["value", $58]], 2: ["Array4", ["value", $16]], @@ -774,29 +779,32 @@ export const $138: $.Codec = $.taggedUnion("t 6: ["Blob", ["value", $12]], }) -export const $137: $.Codec = $.taggedUnion("type", { +export const $137: $.Codec = $.taggedUnion("type", { 0: ["Fungible", ["value", $58]], 1: ["NonFungible", ["value", $138]], }) -export const $135: $.Codec = $.object(["id", $136], ["fun", $137]) +export const $135: $.Codec = $.object(["id", $136], [ + "fun", + $137, +]) -export const $134: $.Codec> = $.array($135) +export const $134: $.Codec> = $.array($135) -export const $133: $.Codec = $134 +export const $133: $.Codec = $134 -export const $142: $.Codec<[t.u32, t.xcm.v2.traits.Error]> = $.tuple($4, $110) +export const $142: $.Codec<[t.types.u32, t.types.xcm.v2.traits.Error]> = $.tuple($4, $110) -export const $141: $.Codec<[t.u32, t.xcm.v2.traits.Error] | undefined> = $.option($142) +export const $141: $.Codec<[t.types.u32, t.types.xcm.v2.traits.Error] | undefined> = $.option($142) -export const $140: $.Codec = $.taggedUnion("type", { +export const $140: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["Assets", ["value", $133]], 2: ["ExecutionResult", ["value", $141]], 3: ["Version", ["value", $4]], }) -export const $143: $.Codec = $.stringUnion({ +export const $143: $.Codec = $.stringUnion({ 0: "Native", 1: "SovereignAccount", 2: "Superuser", @@ -805,27 +813,27 @@ export const $143: $.Codec = $.stringUnion({ export const $144: $.Codec<{ encoded: Uint8Array }> = $.object(["encoded", $12]) -export const $147: $.Codec = $.stringUnion({ +export const $147: $.Codec = $.stringUnion({ 0: "Fungible", 1: "NonFungible", }) -export const $146: $.Codec = $.taggedUnion("type", { +export const $146: $.Codec = $.taggedUnion("type", { 0: ["All"], 1: ["AllOf", ["id", $136], ["fun", $147]], }) -export const $145: $.Codec = $.taggedUnion("type", { +export const $145: $.Codec = $.taggedUnion("type", { 0: ["Definite", ["value", $133]], 1: ["Wild", ["value", $146]], }) -export const $148: $.Codec = $.taggedUnion("type", { +export const $148: $.Codec = $.taggedUnion("type", { 0: ["Unlimited"], 1: ["Limited", ["value", $9]], }) -export const $132: $.Codec = $.taggedUnion("type", { +export const $132: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["value", $133]], 1: ["ReserveAssetDeposited", ["value", $133]], 2: ["ReceiveTeleportedAsset", ["value", $133]], @@ -868,13 +876,13 @@ export const $132: $.Codec = $.taggedUnion("type", { 27: ["UnsubscribeVersion"], }) -export const $131: $.Codec> = $.array($132) +export const $131: $.Codec> = $.array($132) -export const $130: $.Codec> = $131 +export const $130: $.Codec> = $131 -export const $149: $.Codec = $.option($122) +export const $149: $.Codec = $.option($122) -export const $154: $.Codec = $.taggedUnion("type", { +export const $154: $.Codec = $.taggedUnion("type", { 0: ["Parent"], 1: ["Parachain", ["value", $125]], 2: ["AccountId32", ["network", $126], ["id", $1]], @@ -887,7 +895,7 @@ export const $154: $.Codec = $.taggedUnion("type", { 9: ["Plurality", ["id", $128], ["part", $129]], }) -export const $153: $.Codec = $.taggedUnion("type", { +export const $153: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["X1", ["value", $154]], 2: ["X2", ["value", $.tuple($154, $154)]], @@ -899,7 +907,7 @@ export const $153: $.Codec = $.taggedUnio 8: ["X8", ["value", $.tuple($154, $154, $154, $154, $154, $154, $154, $154)]], }) -export const $152: $.Codec = $.taggedUnion("type", { +export const $152: $.Codec = $.taggedUnion("type", { 0: ["None"], 1: ["All"], 2: ["AllFungible"], @@ -914,19 +922,19 @@ export const $152: $.Codec = $.taggedUnion("typ 11: ["ConcreteNonFungible", ["class", $153], ["instance", $138]], }) -export const $151: $.Codec> = $.array($152) +export const $151: $.Codec> = $.array($152) -export const $150: $.Codec = $.taggedUnion("type", { +export const $150: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $151]], 1: ["V1", ["value", $133]], }) -export const $155: $.Codec = $.taggedUnion("type", { +export const $155: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $153]], 1: ["V1", ["value", $122]], }) -export const $121: $.Codec = $.taggedUnion("type", { +export const $121: $.Codec = $.taggedUnion("type", { 0: ["Attempted", ["value", $109]], 1: ["Sent", ["value", $.tuple($122, $122, $130)]], 2: ["UnexpectedResponse", ["value", $.tuple($122, $10)]], @@ -946,7 +954,7 @@ export const $121: $.Codec = $.taggedUnion("type", { 16: ["AssetsClaimed", ["value", $.tuple($11, $122, $150)]], }) -export const $19: $.Codec = $.taggedUnion("type", { +export const $19: $.Codec = $.taggedUnion("type", { 0: ["System", ["value", $20]], 1: ["Scheduler", ["value", $29]], 10: ["Preimage", ["value", $34]], @@ -989,23 +997,23 @@ export const $19: $.Codec = $.taggedUnion("type 99: ["XcmPallet", ["value", $121]], }) -export const $157: $.Codec> = $.array($11) +export const $157: $.Codec> = $.array($11) -export const $18: $.Codec = $.object(["phase", $156], ["event", $19], [ - "topics", - $157, -]) +export const $18: $.Codec = $.object(["phase", $156], [ + "event", + $19, +], ["topics", $157]) -export const $17: $.Codec> = $.array($18) +export const $17: $.Codec> = $.array($18) -export const $158: $.Codec> = $.array($30) +export const $158: $.Codec> = $.array($30) export const $160: $.Codec = $.str -export const $159: $.Codec = $.object( - ["spec_version", $125], - ["spec_name", $160], -) +export const $159: $.Codec = $.object([ + "spec_version", + $125, +], ["spec_name", $160]) export const $163: $.Codec<[Uint8Array, Uint8Array]> = $.tuple($12, $12) @@ -1013,7 +1021,7 @@ export const $162: $.Codec> = $.array($163) export const $164: $.Codec> = $.array($12) -export const $161: $.Codec = $.taggedUnion("type", { +export const $161: $.Codec = $.taggedUnion("type", { 0: ["fill_block", ["ratio", $42]], 1: ["remark", ["remark", $12]], 2: ["set_heap_pages", ["pages", $10]], @@ -1025,9 +1033,9 @@ export const $161: $.Codec = $.taggedUnion("type", { 8: ["remark_with_event", ["remark", $12]], }) -export const $168: $.Codec = $.option($8) +export const $168: $.Codec = $.option($8) -export const $167: $.Codec = $.object( +export const $167: $.Codec = $.object( ["base_extrinsic", $8], ["max_extrinsic", $168], ["max_total", $168], @@ -1035,31 +1043,35 @@ export const $167: $.Codec = $.object( ) export const $166: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass + t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass > = $.object(["normal", $167], ["operational", $167], ["mandatory", $167]) -export const $165: $.Codec = $.object(["base_block", $8], [ - "max_block", - $8, -], ["per_class", $166]) +export const $165: $.Codec = $.object( + ["base_block", $8], + ["max_block", $8], + ["per_class", $166], +) -export const $170: $.Codec = $.object( +export const $170: $.Codec = $.object( ["normal", $4], ["operational", $4], ["mandatory", $4], ) -export const $169: $.Codec = $.object(["max", $170]) +export const $169: $.Codec = $.object(["max", $170]) -export const $171: $.Codec = $.object(["read", $10], ["write", $10]) +export const $171: $.Codec = $.object(["read", $10], [ + "write", + $10, +]) -export const $175: $.Codec<[Uint8Array, t.u32]> = $.tuple($139, $4) +export const $175: $.Codec<[Uint8Array, t.types.u32]> = $.tuple($139, $4) -export const $174: $.Codec> = $.array($175) +export const $174: $.Codec> = $.array($175) -export const $173: $.Codec> = $174 +export const $173: $.Codec> = $174 -export const $172: $.Codec = $.object( +export const $172: $.Codec = $.object( ["spec_name", $160], ["impl_name", $160], ["authoring_version", $4], @@ -1070,7 +1082,7 @@ export const $172: $.Codec = $.object( ["state_version", $2], ) -export const $176: $.Codec = $.stringUnion({ +export const $176: $.Codec = $.stringUnion({ 0: "InvalidSpecName", 1: "SpecVersionNeedsToIncrease", 2: "FailedToExtractRuntimeVersion", @@ -1081,45 +1093,43 @@ export const $176: $.Codec = $.stringUnion({ export const $448: $.Codec = $12 -export const $180: $.Codec = $.taggedUnion("type", { +export const $180: $.Codec = $.taggedUnion("type", { 0: ["Legacy", ["hash", $11]], 1: ["Inline", ["value", $448]], 2: ["Lookup", ["hash", $11], ["len", $4]], }) -export const $183: $.Codec<[t.u32, t.u32] | undefined> = $.option($30) +export const $183: $.Codec<[t.types.u32, t.types.u32] | undefined> = $.option($30) -export const $257: $.Codec = $.taggedUnion("type", { +export const $257: $.Codec = $.taggedUnion("type", { 0: ["Root"], 1: ["Signed", ["value", $0]], 2: ["None"], }) -export const $258: $.Codec = $.taggedUnion("type", { +export const $258: $.Codec = $.taggedUnion("type", { 0: ["Members", ["value", $.tuple($4, $4)]], 1: ["Member", ["value", $0]], 2: ["_Phantom"], }) -export const $259: $.Codec = $.taggedUnion("type", { +export const $259: $.Codec = $.taggedUnion("type", { 0: ["Members", ["value", $.tuple($4, $4)]], 1: ["Member", ["value", $0]], 2: ["_Phantom"], }) -export const $260: $.Codec = $.taggedUnion( - "type", - { 0: ["Parachain", ["value", $98]] }, -) +export const $260: $.Codec = $ + .taggedUnion("type", { 0: ["Parachain", ["value", $98]] }) -export const $261: $.Codec = $.taggedUnion("type", { +export const $261: $.Codec = $.taggedUnion("type", { 0: ["Xcm", ["value", $122]], 1: ["Response", ["value", $122]], }) -export const $262: $.Codec = $.never +export const $262: $.Codec = $.never -export const $256: $.Codec = $.taggedUnion("type", { +export const $256: $.Codec = $.taggedUnion("type", { 0: ["system", ["value", $257]], 15: ["Council", ["value", $258]], 16: ["TechnicalCommittee", ["value", $259]], @@ -1128,7 +1138,7 @@ export const $256: $.Codec = $.taggedUnion("typ 5: ["Void", ["value", $262]], }) -export const $179: $.Codec = $.object( +export const $179: $.Codec = $.object( ["maybe_id", $31], ["priority", $2], ["call", $180], @@ -1136,13 +1146,13 @@ export const $179: $.Codec = $.object( ["origin", $256], ) -export const $178: $.Codec = $.option($179) +export const $178: $.Codec = $.option($179) -export const $449: $.Codec> = $.array($178) +export const $449: $.Codec> = $.array($178) -export const $177: $.Codec> = $449 +export const $177: $.Codec> = $449 -export const $182: $.Codec = $.taggedUnion("type", { +export const $182: $.Codec = $.taggedUnion("type", { 0: ["schedule", ["when", $4], ["maybe_periodic", $183], ["priority", $2], [ "call", $.deferred(() => $181), @@ -1167,18 +1177,18 @@ export const $182: $.Codec = $.taggedUnion("type ], }) -export const $184: $.Codec = $.taggedUnion("type", { +export const $184: $.Codec = $.taggedUnion("type", { 0: ["note_preimage", ["bytes", $12]], 1: ["unnote_preimage", ["hash", $11]], 2: ["request_preimage", ["hash", $11]], 3: ["unrequest_preimage", ["hash", $11]], }) -export const $189: $.Codec = $54 +export const $189: $.Codec = $54 -export const $190: $.Codec = $10 +export const $190: $.Codec = $10 -export const $187: $.Codec = $.object( +export const $187: $.Codec = $.object( ["parent_hash", $11], ["number", $125], ["state_root", $11], @@ -1186,44 +1196,44 @@ export const $187: $.Codec = $.object( ["digest", $13], ) -export const $186: $.Codec = $.object( +export const $186: $.Codec = $.object( ["offender", $189], ["slot", $190], ["first_header", $187], ["second_header", $187], ) -export const $191: $.Codec = $.object(["session", $4], [ +export const $191: $.Codec = $.object(["session", $4], [ "trie_nodes", $164, ], ["validator_count", $4]) -export const $193: $.Codec<[t.u64, t.u64]> = $.tuple($10, $10) +export const $193: $.Codec<[t.types.u64, t.types.u64]> = $.tuple($10, $10) -export const $194: $.Codec = $.stringUnion({ +export const $194: $.Codec = $.stringUnion({ 0: "PrimarySlots", 1: "PrimaryAndSecondaryPlainSlots", 2: "PrimaryAndSecondaryVRFSlots", }) -export const $192: $.Codec = $.taggedUnion( +export const $192: $.Codec = $.taggedUnion( "type", { 1: ["V1", ["c", $193], ["allowed_slots", $194]] }, ) -export const $185: $.Codec = $.taggedUnion("type", { +export const $185: $.Codec = $.taggedUnion("type", { 0: ["report_equivocation", ["equivocation_proof", $186], ["key_owner_proof", $191]], 1: ["report_equivocation_unsigned", ["equivocation_proof", $186], ["key_owner_proof", $191]], 2: ["plan_config_change", ["config", $192]], }) -export const $195: $.Codec = $.taggedUnion("type", { +export const $195: $.Codec = $.taggedUnion("type", { 0: ["set", ["now", $9]], }) export const $198: $.Codec> = $.compact($33) -export const $197: $.Codec = $.taggedUnion("type", { +export const $197: $.Codec = $.taggedUnion("type", { 0: ["Id", ["value", $0]], 1: ["Index", ["value", $198]], 2: ["Raw", ["value", $12]], @@ -1231,7 +1241,7 @@ export const $197: $.Codec = $.taggedUni 4: ["Address20", ["value", $74]], }) -export const $196: $.Codec = $.taggedUnion("type", { +export const $196: $.Codec = $.taggedUnion("type", { 0: ["claim", ["index", $4]], 1: ["transfer", ["new", $197], ["index", $4]], 2: ["free", ["index", $4]], @@ -1239,7 +1249,7 @@ export const $196: $.Codec = $.taggedUnion("type", 4: ["freeze", ["index", $4]], }) -export const $199: $.Codec = $.taggedUnion("type", { +export const $199: $.Codec = $.taggedUnion("type", { 0: ["transfer", ["dest", $197], ["value", $58]], 1: ["set_balance", ["who", $197], ["new_free", $58], ["new_reserved", $58]], 2: ["force_transfer", ["source", $197], ["dest", $197], ["value", $58]], @@ -1248,13 +1258,13 @@ export const $199: $.Codec = $.taggedUnion("type" 5: ["force_unreserve", ["who", $197], ["amount", $6]], }) -export const $201: $.Codec> = $.array($187) +export const $201: $.Codec> = $.array($187) -export const $200: $.Codec = $.taggedUnion("type", { +export const $200: $.Codec = $.taggedUnion("type", { 0: ["set_uncles", ["new_uncles", $201]], }) -export const $203: $.Codec = $.taggedUnion("type", { +export const $203: $.Codec = $.taggedUnion("type", { 0: ["Staked"], 1: ["Stash"], 2: ["Controller"], @@ -1262,33 +1272,31 @@ export const $203: $.Codec = $.taggedUnion(" 4: ["None"], }) -export const $204: $.Codec> = $.array($197) +export const $204: $.Codec> = $.array($197) -export const $205: $.Codec = $2 +export const $205: $.Codec = $2 -export const $206: $.Codec> = $.array($0) +export const $206: $.Codec> = $.array($0) -export const $207: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $6]], - 2: ["Remove"], -}) +export const $207: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $6]], 2: ["Remove"] }, +) -export const $208: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $4]], - 2: ["Remove"], -}) +export const $208: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $4]], 2: ["Remove"] }, +) export const $209: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent > = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $205]], 2: ["Remove"] }) export const $210: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill > = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $42]], 2: ["Remove"] }) -export const $202: $.Codec = $.taggedUnion("type", { +export const $202: $.Codec = $.taggedUnion("type", { 0: ["bond", ["controller", $197], ["value", $58], ["payee", $203]], 1: ["bond_extra", ["max_additional", $58]], 2: ["unbond", ["value", $58]], @@ -1324,13 +1332,13 @@ export const $202: $.Codec = $.taggedUnion( 24: ["force_apply_min_commission", ["validator_stash", $0]], }) -export const $213: $.Codec = $54 +export const $213: $.Codec = $54 -export const $214: $.Codec = $54 +export const $214: $.Codec = $54 -export const $215: $.Codec = $54 +export const $215: $.Codec = $54 -export const $212: $.Codec = $.object( +export const $212: $.Codec = $.object( ["grandpa", $50], ["babe", $189], ["im_online", $53], @@ -1339,73 +1347,67 @@ export const $212: $.Codec = $.object( ["authority_discovery", $215], ) -export const $211: $.Codec = $.taggedUnion("type", { +export const $211: $.Codec = $.taggedUnion("type", { 0: ["set_keys", ["keys", $212], ["proof", $12]], 1: ["purge_keys"], }) -export const $220: $.Codec = $.object(["target_hash", $11], [ +export const $220: $.Codec = $.object(["target_hash", $11], [ "target_number", $4, ]) -export const $222: $.Codec = $102 +export const $222: $.Codec = $102 -export const $221: $.Codec = $222 +export const $221: $.Codec = $222 -export const $223: $.Codec<[t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature]> = $ - .tuple($220, $221) +export const $223: $.Codec< + [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] +> = $.tuple($220, $221) -export const $219: $.Codec = $.object( - ["round_number", $10], - ["identity", $50], - ["first", $223], - ["second", $223], -) +export const $219: $.Codec = $ + .object(["round_number", $10], ["identity", $50], ["first", $223], ["second", $223]) -export const $225: $.Codec = $.object(["target_hash", $11], [ +export const $225: $.Codec = $.object(["target_hash", $11], [ "target_number", $4, ]) -export const $226: $.Codec<[t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature]> = $ - .tuple($225, $221) +export const $226: $.Codec< + [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] +> = $.tuple($225, $221) -export const $224: $.Codec = $.object( - ["round_number", $10], - ["identity", $50], - ["first", $226], - ["second", $226], -) +export const $224: $.Codec = $ + .object(["round_number", $10], ["identity", $50], ["first", $226], ["second", $226]) -export const $218: $.Codec = $.taggedUnion("type", { +export const $218: $.Codec = $.taggedUnion("type", { 0: ["Prevote", ["value", $219]], 1: ["Precommit", ["value", $224]], }) -export const $217: $.Codec = $.object(["set_id", $10], [ - "equivocation", - $218, -]) +export const $217: $.Codec = $.object([ + "set_id", + $10, +], ["equivocation", $218]) -export const $216: $.Codec = $.taggedUnion("type", { +export const $216: $.Codec = $.taggedUnion("type", { 0: ["report_equivocation", ["equivocation_proof", $217], ["key_owner_proof", $191]], 1: ["report_equivocation_unsigned", ["equivocation_proof", $217], ["key_owner_proof", $191]], 2: ["note_stalled", ["delay", $4], ["best_finalized_block_number", $4]], }) -export const $230: $.Codec = $12 +export const $230: $.Codec = $12 -export const $232: $.Codec = $12 +export const $232: $.Codec = $12 -export const $231: $.Codec> = $.array($232) +export const $231: $.Codec> = $.array($232) -export const $229: $.Codec = $.object(["peer_id", $230], [ - "external_addresses", - $231, -]) +export const $229: $.Codec = $.object([ + "peer_id", + $230, +], ["external_addresses", $231]) -export const $228: $.Codec = $.object( +export const $228: $.Codec = $.object( ["block_number", $4], ["network_state", $229], ["session_index", $4], @@ -1413,13 +1415,13 @@ export const $228: $.Codec = $.object( ["validators_len", $4], ) -export const $233: $.Codec = $101 +export const $233: $.Codec = $101 -export const $227: $.Codec = $.taggedUnion("type", { +export const $227: $.Codec = $.taggedUnion("type", { 0: ["heartbeat", ["heartbeat", $228], ["signature", $233]], }) -export const $235: $.Codec = $.stringUnion({ +export const $235: $.Codec = $.stringUnion({ 0: "None", 1: "Locked1x", 2: "Locked2x", @@ -1429,9 +1431,9 @@ export const $235: $.Codec = $.stringU 6: "Locked6x", }) -export const $236: $.Codec = $.option($4) +export const $236: $.Codec = $.option($4) -export const $234: $.Codec = $.taggedUnion("type", { +export const $234: $.Codec = $.taggedUnion("type", { 0: ["propose", ["proposal", $180], ["value", $58]], 1: ["second", ["proposal", $125]], 2: ["vote", ["ref_index", $125], ["vote", $63]], @@ -1452,11 +1454,11 @@ export const $234: $.Codec = $.taggedUnion("type 17: ["cancel_proposal", ["prop_index", $125]], }) -export const $239: $.Codec = $10 +export const $239: $.Codec = $10 -export const $238: $.Codec> = $.compact($239) +export const $238: $.Codec> = $.compact($239) -export const $237: $.Codec = $.taggedUnion("type", { +export const $237: $.Codec = $.taggedUnion("type", { 0: ["set_members", ["new_members", $206], ["prime", $92], ["old_count", $4]], 1: ["execute", ["proposal", $.deferred(() => $181)], ["length_bound", $125]], 2: ["propose", ["threshold", $125], ["proposal", $.deferred(() => $181)], ["length_bound", $125]], @@ -1475,7 +1477,7 @@ export const $237: $.Codec = $.taggedUnion("typ ]], }) -export const $240: $.Codec = $.taggedUnion("type", { +export const $240: $.Codec = $.taggedUnion("type", { 0: ["set_members", ["new_members", $206], ["prime", $92], ["old_count", $4]], 1: ["execute", ["proposal", $.deferred(() => $181)], ["length_bound", $125]], 2: ["propose", ["threshold", $125], ["proposal", $.deferred(() => $181)], ["length_bound", $125]], @@ -1494,13 +1496,13 @@ export const $240: $.Codec = $.taggedUnion("typ ]], }) -export const $242: $.Codec = $.taggedUnion("type", { +export const $242: $.Codec = $.taggedUnion("type", { 0: ["Member"], 1: ["RunnerUp"], 2: ["Candidate", ["value", $125]], }) -export const $241: $.Codec = $.taggedUnion("type", { +export const $241: $.Codec = $.taggedUnion("type", { 0: ["vote", ["votes", $206], ["value", $58]], 1: ["remove_voter"], 2: ["submit_candidacy", ["candidate_count", $125]], @@ -1509,7 +1511,7 @@ export const $241: $.Codec = $.taggedUn 5: ["clean_defunct_voters", ["num_voters", $4], ["num_defunct", $4]], }) -export const $243: $.Codec = $.taggedUnion("type", { +export const $243: $.Codec = $.taggedUnion("type", { 0: ["add_member", ["who", $197]], 1: ["remove_member", ["who", $197]], 2: ["swap_member", ["remove", $197], ["add", $197]], @@ -1519,7 +1521,7 @@ export const $243: $.Codec = $.taggedUnion("typ 6: ["clear_prime"], }) -export const $244: $.Codec = $.taggedUnion("type", { +export const $244: $.Codec = $.taggedUnion("type", { 0: ["propose_spend", ["value", $58], ["beneficiary", $197]], 1: ["reject_proposal", ["proposal_id", $125]], 2: ["approve_proposal", ["proposal_id", $125]], @@ -1529,35 +1531,38 @@ export const $244: $.Codec = $.taggedUnion("type" export const $247: $.Codec = $.sizedUint8Array(65) -export const $246: $.Codec = $247 +export const $246: $.Codec = $247 -export const $249: $.Codec<[t.u128, t.u128, t.u32]> = $.tuple($6, $6, $4) +export const $249: $.Codec<[t.types.u128, t.types.u128, t.types.u32]> = $.tuple($6, $6, $4) -export const $248: $.Codec<[t.u128, t.u128, t.u32] | undefined> = $.option($249) +export const $248: $.Codec<[t.types.u128, t.types.u128, t.types.u32] | undefined> = $.option($249) -export const $251: $.Codec = $.stringUnion({ +export const $251: $.Codec = $.stringUnion({ 0: "Regular", 1: "Saft", }) -export const $250: $.Codec = $.option( - $251, -) +export const $250: $.Codec = $ + .option($251) -export const $245: $.Codec = $.taggedUnion("type", { - 0: ["claim", ["dest", $0], ["ethereum_signature", $246]], - 1: ["mint_claim", ["who", $73], ["value", $6], ["vesting_schedule", $248], ["statement", $250]], - 2: ["claim_attest", ["dest", $0], ["ethereum_signature", $246], ["statement", $12]], - 3: ["attest", ["statement", $12]], - 4: ["move_claim", ["old", $73], ["new", $73], ["maybe_preclaim", $92]], -}) +export const $245: $.Codec = $.taggedUnion( + "type", + { + 0: ["claim", ["dest", $0], ["ethereum_signature", $246]], + 1: ["mint_claim", ["who", $73], ["value", $6], ["vesting_schedule", $248], ["statement", $250]], + 2: ["claim_attest", ["dest", $0], ["ethereum_signature", $246], ["statement", $12]], + 3: ["attest", ["statement", $12]], + 4: ["move_claim", ["old", $73], ["new", $73], ["maybe_preclaim", $92]], + }, +) -export const $253: $.Codec = $.object(["locked", $6], [ - "per_block", - $6, -], ["starting_block", $4]) +export const $253: $.Codec = $.object( + ["locked", $6], + ["per_block", $6], + ["starting_block", $4], +) -export const $252: $.Codec = $.taggedUnion("type", { +export const $252: $.Codec = $.taggedUnion("type", { 0: ["vest"], 1: ["vest_other", ["target", $197]], 2: ["vested_transfer", ["target", $197], ["schedule", $253]], @@ -1565,9 +1570,11 @@ export const $252: $.Codec = $.taggedUnion("type", 4: ["merge_schedules", ["schedule1_index", $4], ["schedule2_index", $4]], }) -export const $255: $.Codec> = $.array($.deferred(() => $181)) +export const $255: $.Codec> = $.array( + $.deferred(() => $181), +) -export const $254: $.Codec = $.taggedUnion("type", { +export const $254: $.Codec = $.taggedUnion("type", { 0: ["batch", ["calls", $255]], 1: ["as_derivative", ["index", $80], ["call", $.deferred(() => $181)]], 2: ["batch_all", ["calls", $255]], @@ -1631,7 +1638,7 @@ export const $294: $.Codec = $.sizedUint8Array(30) export const $295: $.Codec = $.sizedUint8Array(31) -export const $267: $.Codec = $.taggedUnion("type", { +export const $267: $.Codec = $.taggedUnion("type", { 0: ["None"], 1: ["Raw0", ["value", $268]], 2: ["Raw1", ["value", $269]], @@ -1672,20 +1679,21 @@ export const $267: $.Codec = $.taggedUnion("type", 37: ["ShaThree256", ["value", $1]], }) -export const $266: $.Codec<[t.pallet_identity.types.Data, t.pallet_identity.types.Data]> = $.tuple( - $267, - $267, -) +export const $266: $.Codec< + [t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data] +> = $.tuple($267, $267) -export const $296: $.Codec> = $ - .array($266) +export const $296: $.Codec< + Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> +> = $.array($266) -export const $265: $.Codec> = - $296 +export const $265: $.Codec< + Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> +> = $296 export const $297: $.Codec = $.option($74) -export const $264: $.Codec = $.object( +export const $264: $.Codec = $.object( ["additional", $265], ["display", $267], ["legal", $267], @@ -1697,17 +1705,17 @@ export const $264: $.Codec = $.object( ["twitter", $267], ) -export const $299: $.Codec<[t.sp_core.crypto.AccountId32, t.pallet_identity.types.Data]> = $.tuple( - $0, - $267, -) +export const $299: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data] +> = $.tuple($0, $267) -export const $298: $.Codec> = $ - .array($299) +export const $298: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data]> +> = $.array($299) -export const $300: $.Codec = $10 +export const $300: $.Codec = $10 -export const $302: $.Codec = $.taggedUnion("type", { +export const $302: $.Codec = $.taggedUnion("type", { 0: ["Unknown"], 1: ["FeePaid", ["value", $6]], 2: ["Reasonable"], @@ -1717,7 +1725,7 @@ export const $302: $.Codec = $.taggedUnion("t 6: ["Erroneous"], }) -export const $263: $.Codec = $.taggedUnion("type", { +export const $263: $.Codec = $.taggedUnion("type", { 0: ["add_registrar", ["account", $197]], 1: ["set_identity", ["info", $264]], 2: ["set_subs", ["subs", $298]], @@ -1738,9 +1746,9 @@ export const $263: $.Codec = $.taggedUnion("type" 14: ["quit_sub"], }) -export const $304: $.Codec = $.option($79) +export const $304: $.Codec = $.option($79) -export const $303: $.Codec = $.taggedUnion("type", { +export const $303: $.Codec = $.taggedUnion("type", { 0: ["proxy", ["real", $197], ["force_proxy_type", $304], ["call", $.deferred(() => $181)]], 1: ["add_proxy", ["delegate", $197], ["proxy_type", $79], ["delay", $4]], 2: ["remove_proxy", ["delegate", $197], ["proxy_type", $79], ["delay", $4]], @@ -1759,9 +1767,9 @@ export const $303: $.Codec = $.taggedUnion("type", { ]], }) -export const $306: $.Codec = $.option($82) +export const $306: $.Codec = $.option($82) -export const $305: $.Codec = $.taggedUnion("type", { +export const $305: $.Codec = $.taggedUnion("type", { 0: ["as_multi_threshold_1", ["other_signatories", $206], ["call", $.deferred(() => $181)]], 1: ["as_multi", ["threshold", $80], ["other_signatories", $206], ["maybe_timepoint", $306], [ "call", @@ -1781,7 +1789,7 @@ export const $305: $.Codec = $.taggedUnion("type" ]], }) -export const $307: $.Codec = $.taggedUnion("type", { +export const $307: $.Codec = $.taggedUnion("type", { 0: ["propose_bounty", ["value", $58], ["description", $12]], 1: ["approve_bounty", ["bounty_id", $125]], 2: ["propose_curator", ["bounty_id", $125], ["curator", $197], ["fee", $58]], @@ -1793,7 +1801,7 @@ export const $307: $.Codec = $.taggedUnion("type" 8: ["extend_bounty_expiry", ["bounty_id", $125], ["remark", $12]], }) -export const $308: $.Codec = $.taggedUnion("type", { +export const $308: $.Codec = $.taggedUnion("type", { 0: ["add_child_bounty", ["parent_bounty_id", $125], ["value", $58], ["description", $12]], 1: ["propose_curator", ["parent_bounty_id", $125], ["child_bounty_id", $125], ["curator", $197], [ "fee", @@ -1809,7 +1817,7 @@ export const $308: $.Codec = $.taggedUnion( 6: ["close_child_bounty", ["parent_bounty_id", $125], ["child_bounty_id", $125]], }) -export const $309: $.Codec = $.taggedUnion("type", { +export const $309: $.Codec = $.taggedUnion("type", { 0: ["report_awesome", ["reason", $12], ["who", $197]], 1: ["retract_tip", ["hash", $11]], 2: ["tip_new", ["reason", $12], ["who", $197], ["tip_value", $58]], @@ -1818,745 +1826,746 @@ export const $309: $.Codec = $.taggedUnion("type", { 5: ["slash_tip", ["hash", $11]], }) -export const $315: $.Codec> = $.compact($80) +export const $315: $.Codec> = $.compact($80) -export const $314: $.Codec<[t.Compact, t.Compact]> = $.tuple($125, $315) +export const $314: $.Codec<[t.Compact, t.Compact]> = $.tuple($125, $315) -export const $313: $.Codec, t.Compact]>> = $.array($314) +export const $313: $.Codec, t.Compact]>> = $.array($314) -export const $320: $.Codec = $80 +export const $320: $.Codec = $80 -export const $319: $.Codec> = $.compact($320) +export const $319: $.Codec> = $.compact($320) -export const $318: $.Codec<[t.Compact, t.Compact]> = $ - .tuple($315, $319) +export const $318: $.Codec< + [t.Compact, t.Compact] +> = $.tuple($315, $319) export const $317: $.Codec< [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, + t.Compact, + [t.Compact, t.Compact], + t.Compact, ] > = $.tuple($125, $318, $315) export const $316: $.Codec< Array< [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, + t.Compact, + [t.Compact, t.Compact], + t.Compact, ] > > = $.array($317) export const $323: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 2) export const $322: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $323, $315) export const $321: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($322) export const $326: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 3) export const $325: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $326, $315) export const $324: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($325) export const $329: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 4) export const $328: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $329, $315) export const $327: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($328) export const $332: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 5) export const $331: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $332, $315) export const $330: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($331) export const $335: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 6) export const $334: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $335, $315) export const $333: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($334) export const $338: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 7) export const $337: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $338, $315) export const $336: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($337) export const $341: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 8) export const $340: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $341, $315) export const $339: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($340) export const $344: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 9) export const $343: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $344, $315) export const $342: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($343) export const $347: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 10) export const $346: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $347, $315) export const $345: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($346) export const $350: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 11) export const $349: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $350, $315) export const $348: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($349) export const $353: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 12) export const $352: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $353, $315) export const $351: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($352) export const $356: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 13) export const $355: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $356, $315) export const $354: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($355) export const $359: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 14) export const $358: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $359, $315) export const $357: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($358) export const $362: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 15) export const $361: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $362, $315) export const $360: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($361) -export const $312: $.Codec = $.object( +export const $312: $.Codec = $.object( ["votes1", $313], ["votes2", $316], ["votes3", $321], @@ -2575,64 +2584,64 @@ export const $312: $.Codec = $.object( ["votes16", $360], ) -export const $311: $.Codec = $.object( +export const $311: $.Codec = $.object( ["solution", $312], ["score", $88], ["round", $4], ) -export const $363: $.Codec = $ +export const $363: $.Codec = $ .object(["voters", $125], ["targets", $125]) -export const $364: $.Codec = $.option($88) +export const $364: $.Codec = $.option($88) -export const $367: $.Codec = $.object(["total", $6], ["voters", $68]) +export const $367: $.Codec = $.object(["total", $6], [ + "voters", + $68, +]) -export const $366: $.Codec<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> = $.tuple( - $0, - $367, -) +export const $366: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support] +> = $.tuple($0, $367) -export const $365: $.Codec> = $ - .array($366) +export const $365: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> +> = $.array($366) -export const $310: $.Codec = $.taggedUnion( - "type", - { +export const $310: $.Codec = $ + .taggedUnion("type", { 0: ["submit_unsigned", ["raw_solution", $311], ["witness", $363]], 1: ["set_minimum_untrusted_score", ["maybe_next_score", $364]], 2: ["set_emergency_election_result", ["supports", $365]], 3: ["submit", ["raw_solution", $311]], 4: ["governance_fallback", ["maybe_max_voters", $236], ["maybe_max_targets", $236]], - }, -) + }) -export const $368: $.Codec = $.taggedUnion("type", { +export const $368: $.Codec = $.taggedUnion("type", { 0: ["rebag", ["dislocated", $197]], 1: ["put_in_front_of", ["lighter", $197]], }) -export const $370: $.Codec = $.taggedUnion("type", { +export const $370: $.Codec = $.taggedUnion("type", { 0: ["FreeBalance", ["value", $6]], 1: ["Rewards"], }) -export const $371: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $6]], - 2: ["Remove"], -}) +export const $371: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $6]], 2: ["Remove"] }, +) -export const $372: $.Codec = $.taggedUnion("type", { +export const $372: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $4]], 2: ["Remove"], }) -export const $373: $.Codec = $ - .taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $0]], 2: ["Remove"] }) +export const $373: $.Codec = + $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $0]], 2: ["Remove"] }) -export const $369: $.Codec = $.taggedUnion("type", { +export const $369: $.Codec = $.taggedUnion("type", { 0: ["join", ["amount", $58], ["pool_id", $4]], 1: ["bond_extra", ["extra", $370]], 2: ["claim_payout"], @@ -2654,15 +2663,14 @@ export const $369: $.Codec = $.taggedUnio 12: ["chill", ["pool_id", $4]], }) -export const $374: $.Codec = $.taggedUnion("type", { +export const $374: $.Codec = $.taggedUnion("type", { 0: ["register_fast_unstake"], 1: ["deregister"], 2: ["control", ["unchecked_eras_to_check", $4]], }) -export const $375: $.Codec = $.taggedUnion( - "type", - { +export const $375: $.Codec = $ + .taggedUnion("type", { 0: ["set_validation_upgrade_cooldown", ["new", $4]], 1: ["set_validation_upgrade_delay", ["new", $4]], 2: ["set_code_retention_period", ["new", $4]], @@ -2708,43 +2716,45 @@ export const $375: $.Codec = $.never +export const $376: $.Codec = $.never -export const $377: $.Codec = $.never +export const $377: $.Codec = $.never export const $383: $.Codec<$.BitSequence> = $.bitSequence -export const $382: $.Codec = $383 +export const $382: $.Codec = $383 -export const $385: $.Codec = $4 +export const $385: $.Codec = $4 -export const $386: $.Codec = $101 +export const $386: $.Codec = $101 -export const $381: $.Codec = $.object( +export const $381: $.Codec = $.object( ["payload", $382], ["validator_index", $385], ["signature", $386], ) -export const $380: $.Codec> = $.array($381) +export const $380: $.Codec> = $.array( + $381, +) -export const $392: $.Codec = $.object([ +export const $392: $.Codec = $.object([ "recipient", $98, ], ["data", $12]) -export const $391: $.Codec> = $.array($392) +export const $391: $.Codec> = $.array( + $392, +) -export const $394: $.Codec = $12 +export const $394: $.Codec = $12 -export const $393: $.Codec = $.option( - $394, -) +export const $393: $.Codec = $ + .option($394) -export const $390: $.Codec = $.object( +export const $390: $.Codec = $.object( ["upward_messages", $164], ["horizontal_messages", $391], ["new_validation_code", $393], @@ -2753,89 +2763,90 @@ export const $390: $.Codec = $.ob ["hrmp_watermark", $4], ) -export const $389: $.Codec = $.object([ +export const $389: $.Codec = $.object([ "descriptor", $97, ], ["commitments", $390]) -export const $396: $.Codec = $.taggedUnion("type", { - 1: ["Implicit", ["value", $386]], - 2: ["Explicit", ["value", $386]], -}) +export const $396: $.Codec = $.taggedUnion( + "type", + { 1: ["Implicit", ["value", $386]], 2: ["Explicit", ["value", $386]] }, +) -export const $395: $.Codec> = $.array($396) +export const $395: $.Codec> = $.array( + $396, +) -export const $388: $.Codec = $.object( +export const $388: $.Codec = $.object( ["candidate", $389], ["validity_votes", $395], ["validator_indices", $383], ) -export const $387: $.Codec> = $.array($388) +export const $387: $.Codec> = $.array($388) -export const $402: $.Codec = $.taggedUnion( - "type", - { +export const $402: $.Codec = $ + .taggedUnion("type", { 0: ["Explicit"], 1: ["BackingSeconded", ["value", $11]], 2: ["BackingValid", ["value", $11]], 3: ["ApprovalChecking"], - }, -) + }) -export const $403: $.Codec = $.stringUnion({ - 0: "Explicit", -}) +export const $403: $.Codec = $ + .stringUnion({ 0: "Explicit" }) -export const $401: $.Codec = $.taggedUnion("type", { - 0: ["Valid", ["value", $402]], - 1: ["Invalid", ["value", $403]], -}) +export const $401: $.Codec = $.taggedUnion( + "type", + { 0: ["Valid", ["value", $402]], 1: ["Invalid", ["value", $403]] }, +) export const $400: $.Codec< [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, ] > = $.tuple($401, $385, $386) export const $399: $.Codec< Array< [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, ] > > = $.array($400) -export const $398: $.Codec = $.object( +export const $398: $.Codec = $.object( ["candidate_hash", $114], ["session", $4], ["statements", $399], ) -export const $397: $.Codec> = $.array($398) +export const $397: $.Codec> = $.array( + $398, +) -export const $379: $.Codec = $.object( +export const $379: $.Codec = $.object( ["bitfields", $380], ["backed_candidates", $387], ["disputes", $397], ["parent_header", $187], ) -export const $378: $.Codec = $ +export const $378: $.Codec = $ .taggedUnion("type", { 0: ["enter", ["data", $379]] }) -export const $405: $.Codec = $.object( +export const $405: $.Codec = $.object( ["accept", $43], ["subject", $103], ["session_index", $4], ["validator_index", $385], ) -export const $404: $.Codec = $.taggedUnion( +export const $404: $.Codec = $.taggedUnion( "type", { 0: ["force_set_current_code", ["para", $98], ["new_code", $394]], @@ -2852,41 +2863,41 @@ export const $404: $.Codec = $. }, ) -export const $406: $.Codec = $.taggedUnion( - "type", - { 0: ["force_approve", ["up_to", $4]] }, -) +export const $406: $.Codec = $ + .taggedUnion("type", { 0: ["force_approve", ["up_to", $4]] }) -export const $407: $.Codec = $.never +export const $407: $.Codec = $.never -export const $408: $.Codec = $.taggedUnion("type", { - 0: ["service_overweight", ["index", $10], ["weight_limit", $8]], -}) - -export const $409: $.Codec = $.taggedUnion("type", { - 0: ["hrmp_init_open_channel", ["recipient", $98], ["proposed_max_capacity", $4], [ - "proposed_max_message_size", - $4, - ]], - 1: ["hrmp_accept_open_channel", ["sender", $98]], - 2: ["hrmp_close_channel", ["channel_id", $112]], - 3: ["force_clean_hrmp", ["para", $98], ["inbound", $4], ["outbound", $4]], - 4: ["force_process_hrmp_open", ["channels", $4]], - 5: ["force_process_hrmp_close", ["channels", $4]], - 6: ["hrmp_cancel_open_request", ["channel_id", $112], ["open_requests", $4]], - 7: ["force_open_hrmp_channel", ["sender", $98], ["recipient", $98], ["max_capacity", $4], [ - "max_message_size", - $4, - ]], -}) - -export const $410: $.Codec = $.stringUnion({ - 0: "force_unfreeze", -}) +export const $408: $.Codec = $.taggedUnion( + "type", + { 0: ["service_overweight", ["index", $10], ["weight_limit", $8]] }, +) -export const $411: $.Codec = $.taggedUnion( +export const $409: $.Codec = $.taggedUnion( "type", { + 0: ["hrmp_init_open_channel", ["recipient", $98], ["proposed_max_capacity", $4], [ + "proposed_max_message_size", + $4, + ]], + 1: ["hrmp_accept_open_channel", ["sender", $98]], + 2: ["hrmp_close_channel", ["channel_id", $112]], + 3: ["force_clean_hrmp", ["para", $98], ["inbound", $4], ["outbound", $4]], + 4: ["force_process_hrmp_open", ["channels", $4]], + 5: ["force_process_hrmp_close", ["channels", $4]], + 6: ["hrmp_cancel_open_request", ["channel_id", $112], ["open_requests", $4]], + 7: ["force_open_hrmp_channel", ["sender", $98], ["recipient", $98], ["max_capacity", $4], [ + "max_message_size", + $4, + ]], + }, +) + +export const $410: $.Codec = $ + .stringUnion({ 0: "force_unfreeze" }) + +export const $411: $.Codec = $ + .taggedUnion("type", { 0: ["register", ["id", $98], ["genesis_head", $104], ["validation_code", $394]], 1: ["force_register", ["who", $0], ["deposit", $6], ["id", $98], ["genesis_head", $104], [ "validation_code", @@ -2899,52 +2910,57 @@ export const $411: $.Codec = $.taggedUnion( + "type", + { + 0: ["force_lease", ["para", $98], ["leaser", $0], ["amount", $6], ["period_begin", $4], [ + "period_count", + $4, + ]], + 1: ["clear_all_leases", ["para", $98]], + 2: ["trigger_onboard", ["para", $98]], }, ) -export const $412: $.Codec = $.taggedUnion("type", { - 0: ["force_lease", ["para", $98], ["leaser", $0], ["amount", $6], ["period_begin", $4], [ - "period_count", - $4, - ]], - 1: ["clear_all_leases", ["para", $98]], - 2: ["trigger_onboard", ["para", $98]], -}) - -export const $414: $.Codec> = $.compact($98) +export const $414: $.Codec> = $.compact($98) -export const $413: $.Codec = $.taggedUnion("type", { - 0: ["new_auction", ["duration", $125], ["lease_period_index", $125]], - 1: ["bid", ["para", $414], ["auction_index", $125], ["first_slot", $125], ["last_slot", $125], [ - "amount", - $58, - ]], - 2: ["cancel_auction"], -}) +export const $413: $.Codec = $.taggedUnion( + "type", + { + 0: ["new_auction", ["duration", $125], ["lease_period_index", $125]], + 1: ["bid", ["para", $414], ["auction_index", $125], ["first_slot", $125], ["last_slot", $125], [ + "amount", + $58, + ]], + 2: ["cancel_auction"], + }, +) export const $419: $.Codec = $.sizedUint8Array(33) -export const $418: $.Codec = $419 +export const $418: $.Codec = $419 -export const $417: $.Codec = $.taggedUnion("type", { +export const $417: $.Codec = $.taggedUnion("type", { 0: ["Ed25519", ["value", $51]], 1: ["Sr25519", ["value", $54]], 2: ["Ecdsa", ["value", $418]], }) -export const $416: $.Codec = $.option($417) +export const $416: $.Codec = $.option($417) -export const $422: $.Codec = $247 +export const $422: $.Codec = $247 -export const $421: $.Codec = $.taggedUnion("type", { +export const $421: $.Codec = $.taggedUnion("type", { 0: ["Ed25519", ["value", $222]], 1: ["Sr25519", ["value", $101]], 2: ["Ecdsa", ["value", $422]], }) -export const $420: $.Codec = $.option($421) +export const $420: $.Codec = $.option($421) -export const $415: $.Codec = $.taggedUnion( +export const $415: $.Codec = $.taggedUnion( "type", { 0: ["create", ["index", $414], ["cap", $58], ["first_period", $125], ["last_period", $125], [ @@ -2965,9 +2981,9 @@ export const $415: $.Codec = $. }, ) -export const $428: $.Codec> = $.array($.deferred(() => $425)) +export const $428: $.Codec> = $.array($.deferred(() => $425)) -export const $427: $.Codec = $.taggedUnion("type", { +export const $427: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["DepositAsset", ["assets", $151], ["dest", $153]], 2: ["DepositReserveAsset", ["assets", $151], ["dest", $153], ["effects", $.deferred(() => $426)]], @@ -2984,13 +3000,13 @@ export const $427: $.Codec = $.taggedUnion("type", { ]], }) -export const $426: $.Codec> = $.array($427) +export const $426: $.Codec> = $.array($427) -export const $429: $.Codec = $.taggedUnion("type", { +export const $429: $.Codec = $.taggedUnion("type", { 0: ["Assets", ["value", $151]], }) -export const $425: $.Codec = $.taggedUnion("type", { +export const $425: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $151], ["effects", $426]], 1: ["ReserveAssetDeposit", ["assets", $151], ["effects", $426]], 2: ["TeleportAsset", ["assets", $151], ["effects", $426]], @@ -3007,9 +3023,9 @@ export const $425: $.Codec = $.taggedUnion("type", { 10: ["RelayedFrom", ["who", $153], ["message", $.deferred(() => $425)]], }) -export const $433: $.Codec> = $.array($.deferred(() => $430)) +export const $433: $.Codec> = $.array($.deferred(() => $430)) -export const $432: $.Codec = $.taggedUnion("type", { +export const $432: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["DepositAsset", ["assets", $145], ["max_assets", $4], ["beneficiary", $122]], 2: ["DepositReserveAsset", ["assets", $145], ["max_assets", $4], ["dest", $122], [ @@ -3029,14 +3045,14 @@ export const $432: $.Codec = $.taggedUnion("type", { ]], }) -export const $431: $.Codec> = $.array($432) +export const $431: $.Codec> = $.array($432) -export const $434: $.Codec = $.taggedUnion("type", { +export const $434: $.Codec = $.taggedUnion("type", { 0: ["Assets", ["value", $133]], 1: ["Version", ["value", $4]], }) -export const $430: $.Codec = $.taggedUnion("type", { +export const $430: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $133], ["effects", $431]], 1: ["ReserveAssetDeposited", ["assets", $133], ["effects", $431]], 2: ["ReceiveTeleportedAsset", ["assets", $133], ["effects", $431]], @@ -3055,15 +3071,15 @@ export const $430: $.Codec = $.taggedUnion("type", { 12: ["UnsubscribeVersion"], }) -export const $424: $.Codec = $.taggedUnion("type", { +export const $424: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $425]], 1: ["V1", ["value", $430]], 2: ["V2", ["value", $130]], }) -export const $439: $.Codec> = $.array($.deferred(() => $436)) +export const $439: $.Codec> = $.array($.deferred(() => $436)) -export const $438: $.Codec = $.taggedUnion("type", { +export const $438: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["DepositAsset", ["assets", $151], ["dest", $153]], 2: ["DepositReserveAsset", ["assets", $151], ["dest", $153], ["effects", $426]], @@ -3077,11 +3093,11 @@ export const $438: $.Codec = $.taggedUnion("type", { ]], }) -export const $437: $.Codec> = $.array($438) +export const $437: $.Codec> = $.array($438) export const $440: $.Codec<{ encoded: Uint8Array }> = $.object(["encoded", $12]) -export const $436: $.Codec = $.taggedUnion("type", { +export const $436: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $151], ["effects", $437]], 1: ["ReserveAssetDeposit", ["assets", $151], ["effects", $437]], 2: ["TeleportAsset", ["assets", $151], ["effects", $437]], @@ -3098,9 +3114,9 @@ export const $436: $.Codec = $.taggedUnion("type", { 10: ["RelayedFrom", ["who", $153], ["message", $.deferred(() => $436)]], }) -export const $444: $.Codec> = $.array($.deferred(() => $441)) +export const $444: $.Codec> = $.array($.deferred(() => $441)) -export const $443: $.Codec = $.taggedUnion("type", { +export const $443: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["DepositAsset", ["assets", $145], ["max_assets", $4], ["beneficiary", $122]], 2: ["DepositReserveAsset", ["assets", $145], ["max_assets", $4], ["dest", $122], [ @@ -3117,9 +3133,9 @@ export const $443: $.Codec = $.taggedUnion("type", { ]], }) -export const $442: $.Codec> = $.array($443) +export const $442: $.Codec> = $.array($443) -export const $441: $.Codec = $.taggedUnion("type", { +export const $441: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $133], ["effects", $442]], 1: ["ReserveAssetDeposited", ["assets", $133], ["effects", $442]], 2: ["ReceiveTeleportedAsset", ["assets", $133], ["effects", $442]], @@ -3138,7 +3154,7 @@ export const $441: $.Codec = $.taggedUnion("type", { 12: ["UnsubscribeVersion"], }) -export const $447: $.Codec = $.taggedUnion("type", { +export const $447: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["value", $133]], 1: ["ReserveAssetDeposited", ["value", $133]], 2: ["ReceiveTeleportedAsset", ["value", $133]], @@ -3178,17 +3194,17 @@ export const $447: $.Codec = $.taggedUnion("type", { 27: ["UnsubscribeVersion"], }) -export const $446: $.Codec> = $.array($447) +export const $446: $.Codec> = $.array($447) -export const $445: $.Codec> = $446 +export const $445: $.Codec> = $446 -export const $435: $.Codec = $.taggedUnion("type", { +export const $435: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $436]], 1: ["V1", ["value", $441]], 2: ["V2", ["value", $445]], }) -export const $423: $.Codec = $.taggedUnion("type", { +export const $423: $.Codec = $.taggedUnion("type", { 0: ["send", ["dest", $155], ["message", $424]], 1: ["teleport_assets", ["dest", $155], ["beneficiary", $155], ["assets", $150], [ "fee_asset_item", @@ -3213,7 +3229,7 @@ export const $423: $.Codec = $.taggedUnion("type", { ], ["weight_limit", $148]], }) -export const $181: $.Codec = $.taggedUnion("type", { +export const $181: $.Codec = $.taggedUnion("type", { 0: ["System", ["value", $161]], 1: ["Scheduler", ["value", $182]], 10: ["Preimage", ["value", $184]], @@ -3262,9 +3278,9 @@ export const $181: $.Codec = $.taggedUnion("type 99: ["XcmPallet", ["value", $423]], }) -export const $188: $.Codec = C.$null +export const $188: $.Codec = C.$null -export const $301: $.Codec = $.stringUnion({ +export const $301: $.Codec = $.stringUnion({ 1: "Display", 2: "Legal", 4: "Web", @@ -3275,9 +3291,9 @@ export const $301: $.Codec = $.stringUnio 128: "Twitter", }) -export const $384: $.Codec = C.$null +export const $384: $.Codec = C.$null -export const $450: $.Codec = $.stringUnion({ +export const $450: $.Codec = $.stringUnion({ 0: "FailedToSchedule", 1: "NotFound", 2: "TargetBlockNumberInPast", @@ -3285,18 +3301,19 @@ export const $450: $.Codec = $.stringUnion({ 4: "Named", }) -export const $452: $.Codec<[t.sp_core.crypto.AccountId32, t.u128] | undefined> = $.option($69) +export const $452: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128] | undefined> = $ + .option($69) -export const $451: $.Codec = $.taggedUnion("type", { +export const $451: $.Codec = $.taggedUnion("type", { 0: ["Unrequested", ["deposit", $69], ["len", $4]], 1: ["Requested", ["deposit", $452], ["count", $4], ["len", $236]], }) -export const $453: $.Codec<[t.primitive_types.H256, t.u32]> = $.tuple($11, $4) +export const $453: $.Codec<[t.types.primitive_types.H256, t.types.u32]> = $.tuple($11, $4) export const $454: $.Codec = $12 -export const $455: $.Codec = $.stringUnion({ +export const $455: $.Codec = $.stringUnion({ 0: "TooBig", 1: "AlreadyNoted", 2: "NotAuthorized", @@ -3305,58 +3322,69 @@ export const $455: $.Codec = $.stringUnion({ 5: "NotRequested", }) -export const $457: $.Codec<[t.sp_consensus_babe.app.Public, t.u64]> = $.tuple($189, $10) +export const $457: $.Codec<[t.types.sp_consensus_babe.app.Public, t.types.u64]> = $.tuple( + $189, + $10, +) -export const $458: $.Codec> = $.array($457) +export const $458: $.Codec> = $.array( + $457, +) -export const $456: $.Codec> = $458 +export const $456: $.Codec> = $458 export const $460: $.Codec> = $.array($1) export const $459: $.Codec> = $460 -export const $463: $.Codec = $.object( +export const $463: $.Codec = $.object( ["authority_index", $4], ["slot", $190], ["vrf_output", $1], ["vrf_proof", $102], ) -export const $464: $.Codec = $.object([ +export const $464: $.Codec = $.object([ "authority_index", $4, ], ["slot", $190]) -export const $465: $.Codec = $.object( +export const $465: $.Codec = $.object( ["authority_index", $4], ["slot", $190], ["vrf_output", $1], ["vrf_proof", $102], ) -export const $462: $.Codec = $.taggedUnion("type", { +export const $462: $.Codec = $.taggedUnion("type", { 1: ["Primary", ["value", $463]], 2: ["SecondaryPlain", ["value", $464]], 3: ["SecondaryVRF", ["value", $465]], }) -export const $461: $.Codec = $.option($462) +export const $461: $.Codec = $.option( + $462, +) -export const $466: $.Codec = $.object(["c", $193], [ - "allowed_slots", - $194, -]) +export const $466: $.Codec = $.object( + ["c", $193], + ["allowed_slots", $194], +) -export const $467: $.Codec = $.stringUnion({ +export const $467: $.Codec = $.stringUnion({ 0: "InvalidEquivocationProof", 1: "InvalidKeyOwnershipProof", 2: "DuplicateOffenceReport", 3: "InvalidConfiguration", }) -export const $468: $.Codec<[t.sp_core.crypto.AccountId32, t.u128, boolean]> = $.tuple($0, $6, $43) +export const $468: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128, boolean]> = $.tuple( + $0, + $6, + $43, +) -export const $469: $.Codec = $.stringUnion({ +export const $469: $.Codec = $.stringUnion({ 0: "NotAssigned", 1: "NotOwner", 2: "InUse", @@ -3364,33 +3392,36 @@ export const $469: $.Codec = $.stringUnion({ 4: "Permanent", }) -export const $472: $.Codec = $.stringUnion({ +export const $472: $.Codec = $.stringUnion({ 0: "Fee", 1: "Misc", 2: "All", }) -export const $471: $.Codec = $.object(["id", $139], ["amount", $6], [ - "reasons", - $472, -]) +export const $471: $.Codec = $.object(["id", $139], [ + "amount", + $6, +], ["reasons", $472]) -export const $473: $.Codec> = $.array($471) +export const $473: $.Codec> = $.array($471) -export const $470: $.Codec> = $473 +export const $470: $.Codec> = $473 -export const $475: $.Codec = $.object(["id", $139], ["amount", $6]) +export const $475: $.Codec = $.object(["id", $139], [ + "amount", + $6, +]) -export const $476: $.Codec> = $.array($475) +export const $476: $.Codec> = $.array($475) -export const $474: $.Codec> = $476 +export const $474: $.Codec> = $476 -export const $477: $.Codec = $.stringUnion({ +export const $477: $.Codec = $.stringUnion({ 0: "V1_0_0", 1: "V2_0_0", }) -export const $478: $.Codec = $.stringUnion({ +export const $478: $.Codec = $.stringUnion({ 0: "VestingBalance", 1: "LiquidityRestrictions", 2: "InsufficientBalance", @@ -3401,23 +3432,23 @@ export const $478: $.Codec = $.stringUnion({ 7: "TooManyReserves", }) -export const $479: $.Codec = $6 +export const $479: $.Codec = $6 -export const $480: $.Codec = $.stringUnion({ +export const $480: $.Codec = $.stringUnion({ 0: "V1Ancient", 1: "V2", }) -export const $482: $.Codec = $.taggedUnion("type", { +export const $482: $.Codec = $.taggedUnion("type", { 0: ["InclusionHeight", ["value", $4]], 1: ["Uncle", ["value", $.tuple($11, $92)]], }) -export const $483: $.Codec> = $.array($482) +export const $483: $.Codec> = $.array($482) -export const $481: $.Codec> = $483 +export const $481: $.Codec> = $483 -export const $484: $.Codec = $.stringUnion({ +export const $484: $.Codec = $.stringUnion({ 0: "InvalidUncleParent", 1: "UnclesAlreadySet", 2: "TooManyUncles", @@ -3427,15 +3458,18 @@ export const $484: $.Codec = $.stringUnion({ 6: "OldUncle", }) -export const $487: $.Codec = $.object(["value", $58], ["era", $125]) +export const $487: $.Codec = $.object(["value", $58], [ + "era", + $125, +]) -export const $488: $.Codec> = $.array($487) +export const $488: $.Codec> = $.array($487) -export const $486: $.Codec> = $488 +export const $486: $.Codec> = $488 -export const $489: $.Codec> = $94 +export const $489: $.Codec> = $94 -export const $485: $.Codec = $.object( +export const $485: $.Codec = $.object( ["stash", $0], ["total", $58], ["active", $58], @@ -3443,41 +3477,43 @@ export const $485: $.Codec = $.object( ["claimed_rewards", $489], ) -export const $491: $.Codec> = $206 +export const $491: $.Codec> = $206 -export const $490: $.Codec = $.object(["targets", $491], [ +export const $490: $.Codec = $.object(["targets", $491], [ "submitted_in", $4, ], ["suppressed", $43]) -export const $493: $.Codec = $.option($10) +export const $493: $.Codec = $.option($10) -export const $492: $.Codec = $.object(["index", $4], [ +export const $492: $.Codec = $.object(["index", $4], [ "start", $493, ]) -export const $494: $.Codec<[t.u32, t.sp_core.crypto.AccountId32]> = $.tuple($4, $0) +export const $494: $.Codec<[t.types.u32, t.types.sp_core.crypto.AccountId32]> = $.tuple($4, $0) -export const $496: $.Codec> = $.map($0, $4) +export const $496: $.Codec> = $.map($0, $4) -export const $495: $.Codec = $.object(["total", $4], [ +export const $495: $.Codec = $.object(["total", $4], [ "individual", $496, ]) -export const $498: $.Codec<[t.sp_core.crypto.AccountId32, t.u32]> = $.tuple($0, $4) +export const $498: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u32]> = $.tuple($0, $4) -export const $497: $.Codec> = $.array($498) +export const $497: $.Codec> = $.array( + $498, +) -export const $499: $.Codec = $.stringUnion({ +export const $499: $.Codec = $.stringUnion({ 0: "NotForcing", 1: "ForceNew", 2: "ForceNone", 3: "ForceAlways", }) -export const $501: $.Codec = $.object( +export const $501: $.Codec = $.object( ["validator", $0], ["own", $6], ["others", $68], @@ -3485,27 +3521,30 @@ export const $501: $.Codec = $.object( ["payout", $6], ) -export const $500: $.Codec> = $.array($501) +export const $500: $.Codec> = $.array($501) -export const $502: $.Codec<[t.sp_arithmetic.per_things.Perbill, t.u128]> = $.tuple($42, $6) +export const $502: $.Codec<[t.types.sp_arithmetic.per_things.Perbill, t.types.u128]> = $.tuple( + $42, + $6, +) -export const $503: $.Codec = $.object( +export const $503: $.Codec = $.object( ["span_index", $4], ["last_start", $4], ["last_nonzero_slash", $4], ["prior", $94], ) -export const $504: $.Codec = $.object(["slashed", $6], [ +export const $504: $.Codec = $.object(["slashed", $6], [ "paid_out", $6, ]) -export const $506: $.Codec<[t.u32, boolean]> = $.tuple($4, $43) +export const $506: $.Codec<[t.types.u32, boolean]> = $.tuple($4, $43) -export const $505: $.Codec> = $.array($506) +export const $505: $.Codec> = $.array($506) -export const $507: $.Codec = $.stringUnion({ +export const $507: $.Codec = $.stringUnion({ 0: "V1_0_0Ancient", 1: "V2_0_0", 2: "V3_0_0", @@ -3520,7 +3559,7 @@ export const $507: $.Codec = $.stringUnion({ 11: "V12_0_0", }) -export const $508: $.Codec = $.stringUnion({ +export const $508: $.Codec = $.stringUnion({ 0: "NotController", 1: "NotStash", 2: "AlreadyBonded", @@ -3548,24 +3587,26 @@ export const $508: $.Codec = $.stringUnion 24: "BoundNotMet", }) -export const $509: $.Codec = $.object(["offender", $56], [ - "reporters", - $206, -]) +export const $509: $.Codec = $.object( + ["offender", $56], + ["reporters", $206], +) export const $510: $.Codec<[Uint8Array, Uint8Array]> = $.tuple($45, $12) -export const $512: $.Codec<[t.sp_core.crypto.AccountId32, t.polkadot_runtime.SessionKeys]> = $ - .tuple($0, $212) +export const $512: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_runtime.SessionKeys] +> = $.tuple($0, $212) -export const $511: $.Codec> = - $.array($512) +export const $511: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.polkadot_runtime.SessionKeys]> +> = $.array($512) -export const $514: $.Codec = $16 +export const $514: $.Codec = $16 -export const $513: $.Codec<[t.sp_core.crypto.KeyTypeId, Uint8Array]> = $.tuple($514, $12) +export const $513: $.Codec<[t.types.sp_core.crypto.KeyTypeId, Uint8Array]> = $.tuple($514, $12) -export const $515: $.Codec = $.stringUnion({ +export const $515: $.Codec = $.stringUnion({ 0: "InvalidProof", 1: "NoAssociatedValidatorId", 2: "DuplicatedKey", @@ -3573,23 +3614,23 @@ export const $515: $.Codec = $.stringUnion({ 4: "NoAccount", }) -export const $516: $.Codec = $.taggedUnion("type", { +export const $516: $.Codec = $.taggedUnion("type", { 0: ["Live"], 1: ["PendingPause", ["scheduled_at", $4], ["delay", $4]], 2: ["Paused"], 3: ["PendingResume", ["scheduled_at", $4], ["delay", $4]], }) -export const $518: $.Codec> = $48 +export const $518: $.Codec> = $48 -export const $517: $.Codec = $.object( +export const $517: $.Codec = $.object( ["scheduled_at", $4], ["delay", $4], ["next_authorities", $518], ["forced", $236], ) -export const $519: $.Codec = $.stringUnion({ +export const $519: $.Codec = $.stringUnion({ 0: "PauseFailed", 1: "ResumeFailed", 2: "ChangePending", @@ -3599,9 +3640,11 @@ export const $519: $.Codec = $.stringUnion({ 6: "DuplicateOffenceReport", }) -export const $521: $.Codec> = $.array($53) +export const $521: $.Codec> = $.array( + $53, +) -export const $520: $.Codec> = $521 +export const $520: $.Codec> = $521 export const $524: $.Codec = $12 @@ -3609,40 +3652,57 @@ export const $526: $.Codec> = $.array($524) export const $525: $.Codec> = $526 -export const $523: $.Codec = $.object([ +export const $523: $.Codec = $.object([ "peer_id", $524, ], ["external_addresses", $525]) -export const $522: $.Codec = $.lenPrefixed($523) +export const $522: $.Codec = $.lenPrefixed( + $523, +) -export const $527: $.Codec = $.stringUnion({ +export const $527: $.Codec = $.stringUnion({ 0: "InvalidKey", 1: "DuplicatedHeartbeat", }) export const $529: $.Codec< - [t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32] + [t.types.u32, t.types.frame_support.traits.preimages.Bounded, t.types.sp_core.crypto.AccountId32] > = $.tuple($4, $180, $0) export const $530: $.Codec< - Array<[t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32]> + Array< + [ + t.types.u32, + t.types.frame_support.traits.preimages.Bounded, + t.types.sp_core.crypto.AccountId32, + ] + > > = $.array($529) export const $528: $.Codec< - Array<[t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32]> + Array< + [ + t.types.u32, + t.types.frame_support.traits.preimages.Bounded, + t.types.sp_core.crypto.AccountId32, + ] + > > = $530 -export const $532: $.Codec> = $206 +export const $532: $.Codec> = $206 -export const $531: $.Codec<[Array, t.u128]> = $.tuple($532, $6) +export const $531: $.Codec<[Array, t.types.u128]> = $.tuple( + $532, + $6, +) -export const $535: $.Codec = $.object(["ayes", $6], ["nays", $6], [ - "turnout", +export const $535: $.Codec = $.object(["ayes", $6], [ + "nays", $6, -]) +], ["turnout", $6]) -export const $534: $.Codec = $.object( +export const $534: $.Codec = $.object( ["end", $4], ["proposal", $180], ["threshold", $62], @@ -3650,25 +3710,29 @@ export const $534: $.Codec = $.object ["tally", $535], ) -export const $533: $.Codec = $.taggedUnion("type", { +export const $533: $.Codec = $.taggedUnion("type", { 0: ["Ongoing", ["value", $534]], 1: ["Finished", ["approved", $43], ["end", $4]], }) -export const $538: $.Codec<[t.u32, t.pallet_democracy.vote.AccountVote]> = $.tuple($4, $63) +export const $538: $.Codec<[t.types.u32, t.types.pallet_democracy.vote.AccountVote]> = $.tuple( + $4, + $63, +) -export const $539: $.Codec> = $.array($538) +export const $539: $.Codec> = $ + .array($538) -export const $537: $.Codec> = $539 +export const $537: $.Codec> = $539 -export const $540: $.Codec = $.object(["votes", $6], [ +export const $540: $.Codec = $.object(["votes", $6], [ "capital", $6, ]) -export const $541: $.Codec = $.tuple($4, $6) +export const $541: $.Codec = $.tuple($4, $6) -export const $536: $.Codec = $.taggedUnion("type", { +export const $536: $.Codec = $.taggedUnion("type", { 0: ["Direct", ["votes", $537], ["delegations", $540], ["prior", $541]], 1: ["Delegating", ["balance", $6], ["target", $0], ["conviction", $235], ["delegations", $540], [ "prior", @@ -3677,12 +3741,18 @@ export const $536: $.Codec = $.taggedUnion("type }) export const $542: $.Codec< - [t.frame_support.traits.preimages.Bounded, t.pallet_democracy.vote_threshold.VoteThreshold] + [ + t.types.frame_support.traits.preimages.Bounded, + t.types.pallet_democracy.vote_threshold.VoteThreshold, + ] > = $.tuple($180, $62) -export const $543: $.Codec<[t.u32, Array]> = $.tuple($4, $532) +export const $543: $.Codec<[t.types.u32, Array]> = $.tuple( + $4, + $532, +) -export const $544: $.Codec = $.stringUnion({ +export const $544: $.Codec = $.stringUnion({ 0: "ValueLow", 1: "ProposalMissing", 2: "AlreadyCanceled", @@ -3708,9 +3778,9 @@ export const $544: $.Codec = $.stringUnion({ 22: "VotingPeriodLow", }) -export const $545: $.Codec> = $157 +export const $545: $.Codec> = $157 -export const $546: $.Codec = $.object( +export const $546: $.Codec = $.object( ["index", $4], ["threshold", $4], ["ayes", $206], @@ -3718,7 +3788,7 @@ export const $546: $.Codec = $.object( ["end", $4], ) -export const $547: $.Codec = $.stringUnion({ +export const $547: $.Codec = $.stringUnion({ 0: "NotMember", 1: "DuplicateProposal", 2: "ProposalMissing", @@ -3731,9 +3801,9 @@ export const $547: $.Codec = $.stringUnion({ 9: "WrongProposalLength", }) -export const $548: $.Codec> = $157 +export const $548: $.Codec> = $157 -export const $549: $.Codec = $.stringUnion({ +export const $549: $.Codec = $.stringUnion({ 0: "NotMember", 1: "DuplicateProposal", 2: "ProposalMissing", @@ -3746,19 +3816,19 @@ export const $549: $.Codec = $.stringUnion({ 9: "WrongProposalLength", }) -export const $551: $.Codec = $.object(["who", $0], [ +export const $551: $.Codec = $.object(["who", $0], [ "stake", $6, ], ["deposit", $6]) -export const $550: $.Codec> = $.array($551) +export const $550: $.Codec> = $.array($551) -export const $552: $.Codec = $.object(["votes", $206], [ +export const $552: $.Codec = $.object(["votes", $206], [ "stake", $6, ], ["deposit", $6]) -export const $553: $.Codec = $.stringUnion({ +export const $553: $.Codec = $.stringUnion({ 0: "UnableToVote", 1: "NoVotes", 2: "TooManyVotes", @@ -3778,28 +3848,30 @@ export const $553: $.Codec = $.stringU 16: "InvalidReplacement", }) -export const $554: $.Codec> = $206 +export const $554: $.Codec> = $206 -export const $555: $.Codec = $.stringUnion({ +export const $555: $.Codec = $.stringUnion({ 0: "AlreadyMember", 1: "NotMember", 2: "TooManyMembers", }) -export const $556: $.Codec = $.object(["proposer", $0], ["value", $6], [ - "beneficiary", - $0, -], ["bond", $6]) +export const $556: $.Codec = $.object( + ["proposer", $0], + ["value", $6], + ["beneficiary", $0], + ["bond", $6], +) -export const $557: $.Codec> = $94 +export const $557: $.Codec> = $94 -export const $558: $.Codec = $4 +export const $558: $.Codec = $4 -export const $559: $.Codec = $.option($6) +export const $559: $.Codec = $.option($6) -export const $560: $.Codec = $139 +export const $560: $.Codec = $139 -export const $561: $.Codec = $.stringUnion({ +export const $561: $.Codec = $.stringUnion({ 0: "InsufficientProposersBalance", 1: "InvalidIndex", 2: "TooManyApprovals", @@ -3807,7 +3879,7 @@ export const $561: $.Codec = $.stringUnion({ 4: "ProposalNotApproved", }) -export const $562: $.Codec = $.stringUnion({ +export const $562: $.Codec = $.stringUnion({ 0: "InvalidEthereumSignature", 1: "SignerHasNoClaim", 2: "SenderHasNoClaim", @@ -3816,13 +3888,13 @@ export const $562: $.Codec = $.st 5: "VestedBalanceExists", }) -export const $564: $.Codec> = $.array($253) +export const $564: $.Codec> = $.array($253) -export const $563: $.Codec> = $564 +export const $563: $.Codec> = $564 -export const $565: $.Codec = $.stringUnion({ 0: "V0", 1: "V1" }) +export const $565: $.Codec = $.stringUnion({ 0: "V0", 1: "V1" }) -export const $566: $.Codec = $.stringUnion({ +export const $566: $.Codec = $.stringUnion({ 0: "NotVesting", 1: "AtMaxVestingSchedules", 2: "AmountLow", @@ -3830,37 +3902,50 @@ export const $566: $.Codec = $.stringUnion({ 4: "InvalidScheduleParams", }) -export const $567: $.Codec = $.stringUnion({ 0: "TooManyCalls" }) - -export const $570: $.Codec<[t.u32, t.pallet_identity.types.Judgement]> = $.tuple($4, $302) +export const $567: $.Codec = $.stringUnion({ + 0: "TooManyCalls", +}) -export const $571: $.Codec> = $.array($570) +export const $570: $.Codec<[t.types.u32, t.types.pallet_identity.types.Judgement]> = $.tuple( + $4, + $302, +) -export const $569: $.Codec> = $571 +export const $571: $.Codec> = $.array( + $570, +) -export const $568: $.Codec = $.object(["judgements", $569], [ - "deposit", - $6, -], ["info", $264]) +export const $569: $.Codec> = $571 -export const $573: $.Codec> = $206 +export const $568: $.Codec = $.object( + ["judgements", $569], + ["deposit", $6], + ["info", $264], +) -export const $572: $.Codec<[t.u128, Array]> = $.tuple($6, $573) +export const $573: $.Codec> = $206 -export const $576: $.Codec = $.object(["account", $0], [ - "fee", +export const $572: $.Codec<[t.types.u128, Array]> = $.tuple( $6, -], ["fields", $300]) + $573, +) -export const $575: $.Codec = $.option($576) +export const $576: $.Codec = $.object( + ["account", $0], + ["fee", $6], + ["fields", $300], +) -export const $577: $.Codec> = $.array( - $575, +export const $575: $.Codec = $.option( + $576, ) -export const $574: $.Codec> = $577 +export const $577: $.Codec> = $ + .array($575) + +export const $574: $.Codec> = $577 -export const $578: $.Codec = $.stringUnion({ +export const $578: $.Codec = $.stringUnion({ 0: "TooManySubAccounts", 1: "NotFound", 2: "NotNamed", @@ -3880,30 +3965,35 @@ export const $578: $.Codec = $.stringUnion({ 16: "JudgementForDifferentIdentity", }) -export const $581: $.Codec = $.object(["delegate", $0], [ +export const $581: $.Codec = $.object(["delegate", $0], [ "proxy_type", $79, ], ["delay", $4]) -export const $582: $.Codec> = $.array($581) - -export const $580: $.Codec> = $582 +export const $582: $.Codec> = $.array($581) -export const $579: $.Codec<[Array, t.u128]> = $.tuple($580, $6) +export const $580: $.Codec> = $582 -export const $585: $.Codec = $.object( - ["real", $0], - ["call_hash", $11], - ["height", $4], +export const $579: $.Codec<[Array, t.types.u128]> = $.tuple( + $580, + $6, ) -export const $586: $.Codec> = $.array($585) +export const $585: $.Codec = $.object(["real", $0], [ + "call_hash", + $11, +], ["height", $4]) + +export const $586: $.Codec> = $.array($585) -export const $584: $.Codec> = $586 +export const $584: $.Codec> = $586 -export const $583: $.Codec<[Array, t.u128]> = $.tuple($584, $6) +export const $583: $.Codec<[Array, t.types.u128]> = $.tuple( + $584, + $6, +) -export const $587: $.Codec = $.stringUnion({ +export const $587: $.Codec = $.stringUnion({ 0: "TooMany", 1: "NotFound", 2: "NotProxy", @@ -3914,14 +4004,16 @@ export const $587: $.Codec = $.stringUnion({ 7: "NoSelfProxy", }) -export const $588: $.Codec<[t.sp_core.crypto.AccountId32, Uint8Array]> = $.tuple($0, $1) +export const $588: $.Codec<[t.types.sp_core.crypto.AccountId32, Uint8Array]> = $.tuple($0, $1) -export const $589: $.Codec = $.object(["when", $82], ["deposit", $6], [ - "depositor", - $0, -], ["approvals", $206]) +export const $589: $.Codec = $.object( + ["when", $82], + ["deposit", $6], + ["depositor", $0], + ["approvals", $206], +) -export const $590: $.Codec = $.stringUnion({ +export const $590: $.Codec = $.stringUnion({ 0: "MinimumThreshold", 1: "AlreadyApproved", 2: "NoApprovalsNeeded", @@ -3938,7 +4030,7 @@ export const $590: $.Codec = $.stringUnion({ 13: "AlreadyStored", }) -export const $592: $.Codec = $.taggedUnion("type", { +export const $592: $.Codec = $.taggedUnion("type", { 0: ["Proposed"], 1: ["Approved"], 2: ["Funded"], @@ -3947,7 +4039,7 @@ export const $592: $.Codec = $.taggedUnion("type 5: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], }) -export const $591: $.Codec = $.object( +export const $591: $.Codec = $.object( ["proposer", $0], ["value", $6], ["fee", $6], @@ -3958,7 +4050,7 @@ export const $591: $.Codec = $.object( export const $593: $.Codec = $12 -export const $594: $.Codec = $.stringUnion({ +export const $594: $.Codec = $.stringUnion({ 0: "InsufficientProposersBalance", 1: "InvalidIndex", 2: "ReasonTooBig", @@ -3972,14 +4064,17 @@ export const $594: $.Codec = $.stringUnion({ 10: "TooManyQueued", }) -export const $596: $.Codec = $.taggedUnion("type", { - 0: ["Added"], - 1: ["CuratorProposed", ["curator", $0]], - 2: ["Active", ["curator", $0]], - 3: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], -}) +export const $596: $.Codec = $.taggedUnion( + "type", + { + 0: ["Added"], + 1: ["CuratorProposed", ["curator", $0]], + 2: ["Active", ["curator", $0]], + 3: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], + }, +) -export const $595: $.Codec = $.object( +export const $595: $.Codec = $.object( ["parent_bounty", $4], ["value", $6], ["fee", $6], @@ -3987,13 +4082,13 @@ export const $595: $.Codec = $.object( ["status", $596], ) -export const $597: $.Codec = $.stringUnion({ +export const $597: $.Codec = $.stringUnion({ 0: "ParentBountyNotActive", 1: "InsufficientBountyBalance", 2: "TooManyChildBounties", }) -export const $598: $.Codec = $.object( +export const $598: $.Codec = $.object( ["reason", $11], ["who", $0], ["finder", $0], @@ -4003,7 +4098,7 @@ export const $598: $.Codec = $.object( ["finders_fee", $43], ) -export const $599: $.Codec = $.stringUnion({ +export const $599: $.Codec = $.stringUnion({ 0: "ReasonTooBig", 1: "AlreadyKnown", 2: "UnknownTip", @@ -4012,61 +4107,70 @@ export const $599: $.Codec = $.stringUnion({ 5: "Premature", }) -export const $601: $.Codec<[boolean, t.u32]> = $.tuple($43, $4) +export const $601: $.Codec<[boolean, t.types.u32]> = $.tuple($43, $4) -export const $600: $.Codec = $.taggedUnion("type", { - 0: ["Off"], - 1: ["Signed"], - 2: ["Unsigned", ["value", $601]], - 3: ["Emergency"], -}) +export const $600: $.Codec = $.taggedUnion( + "type", + { 0: ["Off"], 1: ["Signed"], 2: ["Unsigned", ["value", $601]], 3: ["Emergency"] }, +) -export const $602: $.Codec = $.object( +export const $602: $.Codec = $.object( ["supports", $365], ["score", $88], ["compute", $87], ) export const $605: $.Codec< - [t.sp_core.crypto.AccountId32, t.u64, Array] + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] > = $.tuple($0, $10, $491) export const $604: $.Codec< - Array<[t.sp_core.crypto.AccountId32, t.u64, Array]> + Array< + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] + > > = $.array($605) -export const $603: $.Codec = $.object([ +export const $603: $.Codec = $.object([ "voters", $604, ], ["targets", $206]) -export const $607: $.Codec> = $.map($88, $4) +export const $607: $.Codec> = $.map( + $88, + $4, +) -export const $606: $.Codec> = $607 +export const $606: $.Codec> = $607 -export const $609: $.Codec<[t.sp_npos_elections.ElectionScore, t.u32]> = $.tuple($88, $4) +export const $609: $.Codec<[t.types.sp_npos_elections.ElectionScore, t.types.u32]> = $.tuple( + $88, + $4, +) -export const $608: $.Codec> = $.array($609) +export const $608: $.Codec> = $.array( + $609, +) -export const $610: $.Codec = $ +export const $610: $.Codec = $ .object(["who", $0], ["deposit", $6], ["raw_solution", $311], ["call_fee", $6]) -export const $611: $.Codec = $.stringUnion({ - 0: "PreDispatchEarlySubmission", - 1: "PreDispatchWrongWinnerCount", - 2: "PreDispatchWeakSubmission", - 3: "SignedQueueFull", - 4: "SignedCannotPayDeposit", - 5: "SignedInvalidWitness", - 6: "SignedTooMuchWeight", - 7: "OcwCallWrongEra", - 8: "MissingSnapshotMetadata", - 9: "InvalidSubmissionIndex", - 10: "CallNotAllowed", - 11: "FallbackFailed", -}) - -export const $612: $.Codec = $.object( +export const $611: $.Codec = $ + .stringUnion({ + 0: "PreDispatchEarlySubmission", + 1: "PreDispatchWrongWinnerCount", + 2: "PreDispatchWeakSubmission", + 3: "SignedQueueFull", + 4: "SignedCannotPayDeposit", + 5: "SignedInvalidWitness", + 6: "SignedTooMuchWeight", + 7: "OcwCallWrongEra", + 8: "MissingSnapshotMetadata", + 9: "InvalidSubmissionIndex", + 10: "CallNotAllowed", + 11: "FallbackFailed", + }) + +export const $612: $.Codec = $.object( ["id", $0], ["prev", $92], ["next", $92], @@ -4074,77 +4178,87 @@ export const $612: $.Codec = $.object( ["score", $10], ) -export const $613: $.Codec = $.object(["head", $92], ["tail", $92]) +export const $613: $.Codec = $.object(["head", $92], [ + "tail", + $92, +]) -export const $614: $.Codec> = $.array($10) +export const $614: $.Codec> = $.array($10) -export const $616: $.Codec = $.stringUnion({ +export const $616: $.Codec = $.stringUnion({ 0: "Duplicate", 1: "NotHeavier", 2: "NotInSameBag", 3: "NodeNotFound", }) -export const $615: $.Codec = $.taggedUnion("type", { +export const $615: $.Codec = $.taggedUnion("type", { 0: ["List", ["value", $616]], }) -export const $619: $.Codec> = $.map($4, $6) +export const $619: $.Codec> = $.map($4, $6) -export const $618: $.Codec> = $619 +export const $618: $.Codec> = $619 -export const $617: $.Codec = $.object( +export const $617: $.Codec = $.object( ["pool_id", $4], ["points", $6], ["last_recorded_reward_counter", $479], ["unbonding_eras", $618], ) -export const $621: $.Codec<[t.u32, t.u128]> = $.tuple($4, $6) +export const $621: $.Codec<[t.types.u32, t.types.u128]> = $.tuple($4, $6) -export const $620: $.Codec> = $.array($621) +export const $620: $.Codec> = $.array($621) -export const $623: $.Codec = $.object( +export const $623: $.Codec = $.object( ["depositor", $0], ["root", $92], ["nominator", $92], ["state_toggler", $92], ) -export const $622: $.Codec = $.object( +export const $622: $.Codec = $.object( ["points", $6], ["state", $91], ["member_counter", $4], ["roles", $623], ) -export const $624: $.Codec = $.object( +export const $624: $.Codec = $.object( ["last_recorded_reward_counter", $479], ["last_recorded_total_payouts", $6], ["total_rewards_claimed", $6], ) -export const $626: $.Codec = $.object(["points", $6], [ +export const $626: $.Codec = $.object(["points", $6], [ "balance", $6, ]) -export const $628: $.Codec> = $.map($4, $626) +export const $628: $.Codec> = $.map( + $4, + $626, +) -export const $627: $.Codec> = $628 +export const $627: $.Codec> = $628 -export const $625: $.Codec = $.object(["no_era", $626], [ +export const $625: $.Codec = $.object(["no_era", $626], [ "with_era", $627, ]) -export const $630: $.Codec<[t.u32, t.pallet_nomination_pools.UnbondPool]> = $.tuple($4, $626) +export const $630: $.Codec<[t.types.u32, t.types.pallet_nomination_pools.UnbondPool]> = $.tuple( + $4, + $626, +) -export const $629: $.Codec> = $.array($630) +export const $629: $.Codec> = $ + .array($630) export const $631: $.Codec = $12 -export const $633: $.Codec = $.stringUnion({ +export const $633: $.Codec = $.stringUnion({ 0: "NotEnoughSpaceInUnbondPool", 1: "PoolNotFound", 2: "RewardPoolNotFound", @@ -4152,7 +4266,7 @@ export const $633: $.Codec = $. 4: "BondedStashKilledPrematurely", }) -export const $632: $.Codec = $.taggedUnion("type", { +export const $632: $.Codec = $.taggedUnion("type", { 0: ["PoolNotFound"], 1: ["PoolMemberNotFound"], 2: ["RewardPoolNotFound"], @@ -4176,16 +4290,17 @@ export const $632: $.Codec = $.taggedUni 20: ["PartialUnbondNotAllowedPermissionlessly"], }) -export const $636: $.Codec> = $94 +export const $636: $.Codec> = $94 -export const $634: $.Codec = $.object(["stash", $0], [ - "checked", - $636, -], ["deposit", $6]) +export const $634: $.Codec = $.object( + ["stash", $0], + ["checked", $636], + ["deposit", $6], +) -export const $635: $.Codec = C.$null +export const $635: $.Codec = C.$null -export const $637: $.Codec = $.stringUnion({ +export const $637: $.Codec = $.stringUnion({ 0: "NotController", 1: "AlreadyQueued", 2: "NotFullyBonded", @@ -4194,7 +4309,7 @@ export const $637: $.Codec = $.stringUnion({ 5: "CallNotAllowed", }) -export const $638: $.Codec = $ +export const $638: $.Codec = $ .object( ["max_code_size", $4], ["max_head_data_size", $4], @@ -4241,100 +4356,122 @@ export const $638: $.Codec = - $.tuple($4, $638) +export const $640: $.Codec< + [t.types.u32, t.types.polkadot_runtime_parachains.configuration.HostConfiguration] +> = $.tuple($4, $638) export const $639: $.Codec< - Array<[t.u32, t.polkadot_runtime_parachains.configuration.HostConfiguration]> + Array<[t.types.u32, t.types.polkadot_runtime_parachains.configuration.HostConfiguration]> > = $.array($640) -export const $641: $.Codec = $ +export const $641: $.Codec = $ .stringUnion({ 0: "InvalidNewValue" }) -export const $642: $.Codec> = $.array($385) +export const $642: $.Codec> = $.array($385) -export const $643: $.Codec> = $.array($213) +export const $643: $.Codec> = $.array( + $213, +) -export const $644: $.Codec = $ - .object(["bitfield", $382], ["submitted_at", $4]) +export const $644: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord +> = $.object(["bitfield", $382], ["submitted_at", $4]) -export const $645: $.Codec = $ - .object( - ["core", $105], - ["hash", $114], - ["descriptor", $97], - ["availability_votes", $383], - ["backers", $383], - ["relay_parent_number", $4], - ["backed_in_number", $4], - ["backing_group", $106], - ) +export const $645: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability +> = $.object( + ["core", $105], + ["hash", $114], + ["descriptor", $97], + ["availability_votes", $383], + ["backers", $383], + ["relay_parent_number", $4], + ["backed_in_number", $4], + ["backing_group", $106], +) -export const $646: $.Codec = $.stringUnion({ - 0: "UnsortedOrDuplicateValidatorIndices", - 1: "UnsortedOrDuplicateDisputeStatementSet", - 2: "UnsortedOrDuplicateBackedCandidates", - 3: "UnexpectedRelayParent", - 4: "WrongBitfieldSize", - 5: "BitfieldAllZeros", - 6: "BitfieldDuplicateOrUnordered", - 7: "ValidatorIndexOutOfBounds", - 8: "InvalidBitfieldSignature", - 9: "UnscheduledCandidate", - 10: "CandidateScheduledBeforeParaFree", - 11: "WrongCollator", - 12: "ScheduledOutOfOrder", - 13: "HeadDataTooLarge", - 14: "PrematureCodeUpgrade", - 15: "NewCodeTooLarge", - 16: "CandidateNotInParentContext", - 17: "InvalidGroupIndex", - 18: "InsufficientBacking", - 19: "InvalidBacking", - 20: "NotCollatorSigned", - 21: "ValidationDataHashMismatch", - 22: "IncorrectDownwardMessageHandling", - 23: "InvalidUpwardMessages", - 24: "HrmpWatermarkMishandling", - 25: "InvalidOutboundHrmp", - 26: "InvalidValidationCodeHash", - 27: "ParaHeadMismatch", - 28: "BitfieldReferencesFreedCore", -}) +export const $646: $.Codec = $ + .stringUnion({ + 0: "UnsortedOrDuplicateValidatorIndices", + 1: "UnsortedOrDuplicateDisputeStatementSet", + 2: "UnsortedOrDuplicateBackedCandidates", + 3: "UnexpectedRelayParent", + 4: "WrongBitfieldSize", + 5: "BitfieldAllZeros", + 6: "BitfieldDuplicateOrUnordered", + 7: "ValidatorIndexOutOfBounds", + 8: "InvalidBitfieldSignature", + 9: "UnscheduledCandidate", + 10: "CandidateScheduledBeforeParaFree", + 11: "WrongCollator", + 12: "ScheduledOutOfOrder", + 13: "HeadDataTooLarge", + 14: "PrematureCodeUpgrade", + 15: "NewCodeTooLarge", + 16: "CandidateNotInParentContext", + 17: "InvalidGroupIndex", + 18: "InsufficientBacking", + 19: "InvalidBacking", + 20: "NotCollatorSigned", + 21: "ValidationDataHashMismatch", + 22: "IncorrectDownwardMessageHandling", + 23: "InvalidUpwardMessages", + 24: "HrmpWatermarkMishandling", + 25: "InvalidOutboundHrmp", + 26: "InvalidValidationCodeHash", + 27: "ParaHeadMismatch", + 28: "BitfieldReferencesFreedCore", + }) export const $651: $.Codec< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] > = $.tuple($385, $396) export const $650: $.Codec< - Array<[t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation]> + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + > > = $.array($651) export const $649: $.Codec< [ - t.polkadot_primitives.v2.CandidateReceipt, - Array<[t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation]>, + t.types.polkadot_primitives.v2.CandidateReceipt, + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + >, ] > = $.tuple($96, $650) export const $648: $.Codec< Array< [ - t.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_primitives.v2.CandidateReceipt, Array< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] >, ] > > = $.array($649) -export const $647: $.Codec = $.object( +export const $647: $.Codec = $.object( ["session", $4], ["backing_validators_per_candidate", $648], ["disputes", $397], ) -export const $652: $.Codec = $ +export const $652: $.Codec = $ .stringUnion({ 0: "TooManyInclusionInherents", 1: "InvalidParentHeader", @@ -4344,122 +4481,119 @@ export const $652: $.Codec>> = $.array($642) - -export const $658: $.Codec = $.tuple($98, $99) +export const $653: $.Codec>> = $.array( + $642, +) -export const $657: $.Codec = $.object(["claim", $658], [ - "retries", - $4, -]) +export const $658: $.Codec = $.tuple($98, $99) -export const $656: $.Codec = $.object([ +export const $657: $.Codec = $.object([ "claim", - $657, -], ["core_offset", $4]) + $658, +], ["retries", $4]) -export const $655: $.Codec> = $ - .array($656) +export const $656: $.Codec = $ + .object(["claim", $657], ["core_offset", $4]) -export const $654: $.Codec = $.object( - ["queue", $655], - ["next_core_offset", $4], -) +export const $655: $.Codec> = + $.array($656) -export const $661: $.Codec = $.taggedUnion("type", { +export const $654: $.Codec = $ + .object(["queue", $655], ["next_core_offset", $4]) + +export const $661: $.Codec = $.taggedUnion("type", { 0: ["Parathread", ["value", $657]], 1: ["Parachain"], }) -export const $660: $.Codec = $.option($661) - -export const $659: $.Codec> = $.array( - $660, +export const $660: $.Codec = $.option( + $661, ) -export const $662: $.Codec> = $.array($98) +export const $659: $.Codec> = $ + .array($660) -export const $665: $.Codec = $.taggedUnion( - "type", - { 0: ["Parachain"], 1: ["Parathread", ["value", $.tuple($99, $4)]] }, -) +export const $662: $.Codec> = $.array($98) -export const $664: $.Codec = $.object( +export const $665: $.Codec = $ + .taggedUnion("type", { 0: ["Parachain"], 1: ["Parathread", ["value", $.tuple($99, $4)]] }) + +export const $664: $.Codec = $.object( ["core", $105], ["para_id", $98], ["kind", $665], ["group_idx", $106], ) -export const $663: $.Codec> = $.array( - $664, -) +export const $663: $.Codec> = $ + .array($664) -export const $668: $.Codec = $.taggedUnion( +export const $668: $.Codec = $.taggedUnion( "type", { 0: ["Onboarding", ["value", $98]], 1: ["Upgrade", ["id", $98], ["relay_parent_number", $4]] }, ) -export const $667: $.Codec> = $.array( - $668, -) +export const $667: $.Codec> = $ + .array($668) -export const $666: $.Codec = $.object( - ["votes_accept", $383], - ["votes_reject", $383], - ["age", $4], - ["created_at", $4], - ["causes", $667], -) +export const $666: $.Codec = $ + .object(["votes_accept", $383], ["votes_reject", $383], ["age", $4], ["created_at", $4], [ + "causes", + $667, + ]) -export const $669: $.Codec> = $.array( - $103, -) +export const $669: $.Codec> = $ + .array($103) -export const $670: $.Codec = $.stringUnion({ - 0: "Onboarding", - 1: "Parathread", - 2: "Parachain", - 3: "UpgradingParathread", - 4: "DowngradingParachain", - 5: "OffboardingParathread", - 6: "OffboardingParachain", -}) +export const $670: $.Codec = $.stringUnion( + { + 0: "Onboarding", + 1: "Parathread", + 2: "Parachain", + 3: "UpgradingParathread", + 4: "DowngradingParachain", + 5: "OffboardingParathread", + 6: "OffboardingParachain", + }, +) -export const $671: $.Codec<[t.polkadot_parachain.primitives.Id, t.u32]> = $.tuple($98, $4) +export const $671: $.Codec<[t.types.polkadot_parachain.primitives.Id, t.types.u32]> = $.tuple( + $98, + $4, +) -export const $674: $.Codec = $.object([ +export const $674: $.Codec = $.object([ "expected_at", $4, ], ["activated_at", $4]) -export const $673: $.Codec> = $.array( - $674, -) +export const $673: $.Codec> = $ + .array($674) -export const $672: $.Codec = $.object([ +export const $672: $.Codec = $.object([ "upgrade_times", $673, ], ["last_pruned", $236]) -export const $675: $.Codec> = $.array($671) +export const $675: $.Codec> = $ + .array($671) -export const $676: $.Codec = $.stringUnion({ +export const $676: $.Codec = $.stringUnion({ 0: "Abort", 1: "GoAhead", }) -export const $677: $.Codec = $.stringUnion({ +export const $677: $.Codec = $.stringUnion({ 0: "Present", }) -export const $678: $.Codec = $.object( +export const $678: $.Codec = $.object( ["genesis_head", $104], ["validation_code", $394], ["parachain", $43], ) -export const $679: $.Codec = $.stringUnion({ +export const $679: $.Codec = $.stringUnion({ 0: "NotRegistered", 1: "CannotOnboard", 2: "CannotOffboard", @@ -4475,42 +4609,44 @@ export const $679: $.Codec = $ 12: "CannotUpgradeCode", }) -export const $681: $.Codec = $ - .object(["validators", $643], ["queued", $643], ["session_index", $4]) +export const $681: $.Codec = + $.object(["validators", $643], ["queued", $643], ["session_index", $4]) -export const $680: $.Codec> = - $.array($681) +export const $680: $.Codec< + Array +> = $.array($681) -export const $683: $.Codec = $.object([ +export const $683: $.Codec = $.object([ "sent_at", $4, ], ["msg", $12]) -export const $682: $.Codec> = $.array( - $683, -) +export const $682: $.Codec> = $ + .array($683) -export const $684: $.Codec<[t.polkadot_parachain.primitives.Id, Uint8Array]> = $.tuple($98, $12) +export const $684: $.Codec<[t.types.polkadot_parachain.primitives.Id, Uint8Array]> = $.tuple( + $98, + $12, +) -export const $685: $.Codec = $.stringUnion({ +export const $685: $.Codec = $.stringUnion({ 0: "UnknownMessageIndex", 1: "WeightOverLimit", }) -export const $686: $.Codec = $.object( - ["confirmed", $43], - ["_age", $4], - ["sender_deposit", $6], - ["max_message_size", $4], - ["max_capacity", $4], - ["max_total_size", $4], -) +export const $686: $.Codec = $ + .object(["confirmed", $43], ["_age", $4], ["sender_deposit", $6], ["max_message_size", $4], [ + "max_capacity", + $4, + ], ["max_total_size", $4]) -export const $687: $.Codec> = $.array($112) +export const $687: $.Codec> = $.array( + $112, +) -export const $689: $.Codec = $.option($11) +export const $689: $.Codec = $.option($11) -export const $688: $.Codec = $.object( +export const $688: $.Codec = $.object( ["max_capacity", $4], ["max_total_size", $4], ["max_message_size", $4], @@ -4521,20 +4657,22 @@ export const $688: $.Codec = $.o ["recipient_deposit", $6], ) -export const $691: $.Codec = $.object([ +export const $691: $.Codec = $.object([ "sent_at", $4, ], ["data", $12]) -export const $690: $.Codec> = $.array($691) +export const $690: $.Codec> = $.array( + $691, +) -export const $693: $.Codec<[t.u32, Array]> = $.tuple($4, $662) +export const $693: $.Codec<[t.types.u32, Array]> = $ + .tuple($4, $662) -export const $692: $.Codec]>> = $.array( - $693, -) +export const $692: $.Codec]>> = + $.array($693) -export const $694: $.Codec = $.stringUnion({ +export const $694: $.Codec = $.stringUnion({ 0: "OpenHrmpChannelToSelf", 1: "OpenHrmpChannelInvalidRecipient", 2: "OpenHrmpChannelZeroCapacity", @@ -4556,11 +4694,13 @@ export const $694: $.Codec = $. 18: "WrongWitness", }) -export const $695: $.Codec> = $.array($214) +export const $695: $.Codec> = $.array( + $214, +) -export const $697: $.Codec> = $.array($215) +export const $697: $.Codec> = $.array($215) -export const $696: $.Codec = $.object( +export const $696: $.Codec = $.object( ["active_validator_indices", $642], ["random_seed", $1], ["dispute_period", $4], @@ -4576,110 +4716,152 @@ export const $696: $.Codec = $.object( ["needed_approvals", $4], ) -export const $698: $.Codec<[t.u32, t.polkadot_core_primitives.CandidateHash]> = $.tuple($4, $114) +export const $698: $.Codec<[t.types.u32, t.types.polkadot_core_primitives.CandidateHash]> = $.tuple( + $4, + $114, +) -export const $699: $.Codec = $.object( +export const $699: $.Codec = $.object( ["validators_for", $383], ["validators_against", $383], ["start", $4], ["concluded_at", $236], ) -export const $700: $.Codec = $.stringUnion({ - 0: "DuplicateDisputeStatementSets", - 1: "AncientDisputeStatement", - 2: "ValidatorIndexOutOfBounds", - 3: "InvalidSignature", - 4: "DuplicateStatement", - 5: "PotentialSpam", - 6: "SingleSidedDispute", -}) +export const $700: $.Codec = $ + .stringUnion({ + 0: "DuplicateDisputeStatementSets", + 1: "AncientDisputeStatement", + 2: "ValidatorIndexOutOfBounds", + 3: "InvalidSignature", + 4: "DuplicateStatement", + 5: "PotentialSpam", + 6: "SingleSidedDispute", + }) -export const $701: $.Codec = $.object( +export const $701: $.Codec = $.object( ["manager", $0], ["deposit", $6], ["locked", $43], ) -export const $702: $.Codec = $.stringUnion({ - 0: "NotRegistered", - 1: "AlreadyRegistered", - 2: "NotOwner", - 3: "CodeTooLarge", - 4: "HeadDataTooLarge", - 5: "NotParachain", - 6: "NotParathread", - 7: "CannotDeregister", - 8: "CannotDowngrade", - 9: "CannotUpgrade", - 10: "ParaLocked", - 11: "NotReserved", - 12: "EmptyCode", - 13: "CannotSwap", -}) - -export const $703: $.Codec> = $.array( - $452, -) +export const $702: $.Codec = $ + .stringUnion({ + 0: "NotRegistered", + 1: "AlreadyRegistered", + 2: "NotOwner", + 3: "CodeTooLarge", + 4: "HeadDataTooLarge", + 5: "NotParachain", + 6: "NotParathread", + 7: "CannotDeregister", + 8: "CannotDowngrade", + 9: "CannotUpgrade", + 10: "ParaLocked", + 11: "NotReserved", + 12: "EmptyCode", + 13: "CannotSwap", + }) + +export const $703: $.Codec> = + $.array($452) -export const $704: $.Codec = $.stringUnion({ +export const $704: $.Codec = $.stringUnion({ 0: "ParaNotOnboarding", 1: "LeaseError", }) -export const $705: $.Codec<[t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id]> = $ - .tuple($0, $98) +export const $705: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id] +> = $.tuple($0, $98) export const $708: $.Codec< - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] > = $.tuple($0, $98, $6) export const $707: $.Codec< - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined > = $.option($708) export const $706: $.Codec< [ - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, ] > = $.sizedArray($707, 36) -export const $709: $.Codec = $.stringUnion({ +export const $709: $.Codec = $.stringUnion({ 0: "AuctionInProgress", 1: "LeasePeriodInPast", 2: "ParaNotRegistered", @@ -4689,12 +4871,14 @@ export const $709: $.Codec = $. 6: "AlreadyLeasedOut", }) -export const $711: $.Codec = $.taggedUnion( - "type", - { 0: ["Never"], 1: ["PreEnding", ["value", $4]], 2: ["Ending", ["value", $4]] }, -) +export const $711: $.Codec = $ + .taggedUnion("type", { + 0: ["Never"], + 1: ["PreEnding", ["value", $4]], + 2: ["Ending", ["value", $4]], + }) -export const $710: $.Codec = $.object( +export const $710: $.Codec = $.object( ["depositor", $0], ["verifier", $416], ["deposit", $6], @@ -4707,7 +4891,7 @@ export const $710: $.Codec = $.obj ["fund_index", $4], ) -export const $712: $.Codec = $.stringUnion({ +export const $712: $.Codec = $.stringUnion({ 0: "FirstPeriodInPast", 1: "FirstPeriodTooFarInFuture", 2: "LastPeriodBeforeFirstPeriod", @@ -4733,42 +4917,47 @@ export const $712: $.Codec = $ 22: "NoLeasePeriod", }) -export const $715: $.Codec<[t.u8, t.u8]> = $.tuple($2, $2) +export const $715: $.Codec<[t.types.u8, t.types.u8]> = $.tuple($2, $2) -export const $714: $.Codec<[t.u8, t.u8] | undefined> = $.option($715) +export const $714: $.Codec<[t.types.u8, t.types.u8] | undefined> = $.option($715) -export const $716: $.Codec = $.taggedUnion("type", { +export const $716: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $429]], 1: ["V1", ["value", $434]], 2: ["V2", ["value", $140]], }) -export const $713: $.Codec = $.taggedUnion("type", { +export const $713: $.Codec = $.taggedUnion("type", { 0: ["Pending", ["responder", $155], ["maybe_notify", $714], ["timeout", $4]], 1: ["VersionNotifier", ["origin", $155], ["is_active", $43]], 2: ["Ready", ["response", $716], ["at", $4]], }) -export const $717: $.Codec<[t.u32, t.xcm.VersionedMultiLocation]> = $.tuple($4, $155) +export const $717: $.Codec<[t.types.u32, t.types.xcm.VersionedMultiLocation]> = $.tuple($4, $155) -export const $718: $.Codec<[t.u64, t.u64, t.u32]> = $.tuple($10, $10, $4) +export const $718: $.Codec<[t.types.u64, t.types.u64, t.types.u32]> = $.tuple($10, $10, $4) -export const $720: $.Codec<[t.xcm.VersionedMultiLocation, t.u32]> = $.tuple($155, $4) +export const $720: $.Codec<[t.types.xcm.VersionedMultiLocation, t.types.u32]> = $.tuple($155, $4) -export const $721: $.Codec> = $.array($720) +export const $721: $.Codec> = $.array( + $720, +) -export const $719: $.Codec> = $721 +export const $719: $.Codec> = $721 export const $723: $.Codec = $.option($12) -export const $722: $.Codec = $.taggedUnion("type", { - 0: ["MigrateSupportedVersion"], - 1: ["MigrateVersionNotifiers"], - 2: ["NotifyCurrentTargets", ["value", $723]], - 3: ["MigrateAndNotifyOldTargets"], -}) +export const $722: $.Codec = $.taggedUnion( + "type", + { + 0: ["MigrateSupportedVersion"], + 1: ["MigrateVersionNotifiers"], + 2: ["NotifyCurrentTargets", ["value", $723]], + 3: ["MigrateAndNotifyOldTargets"], + }, +) -export const $724: $.Codec = $.stringUnion({ +export const $724: $.Codec = $.stringUnion({ 0: "Unreachable", 1: "SendFailure", 2: "Filtered", @@ -4786,42 +4975,45 @@ export const $724: $.Codec = $.stringUnion({ export const $725: $.Codec = $12 -export const $727: $.Codec = - C.$null +export const $727: $.Codec< + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender +> = C.$null -export const $728: $.Codec = C.$null +export const $728: $.Codec = + C.$null -export const $729: $.Codec = C.$null +export const $729: $.Codec = + C.$null -export const $730: $.Codec = C.$null +export const $730: $.Codec = C.$null export const $732: $.Codec = C.$era export const $731: $.Codec = $732 -export const $733: $.Codec> = $125 +export const $733: $.Codec> = $125 -export const $734: $.Codec = C.$null +export const $734: $.Codec = C.$null -export const $735: $.Codec> = $58 +export const $735: $.Codec> = $58 -export const $736: $.Codec = C.$null +export const $736: $.Codec = C.$null export const $726: $.Codec< [ - t.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender, - t.frame_system.extensions.check_spec_version.CheckSpecVersion, - t.frame_system.extensions.check_tx_version.CheckTxVersion, - t.frame_system.extensions.check_genesis.CheckGenesis, + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender, + t.types.frame_system.extensions.check_spec_version.CheckSpecVersion, + t.types.frame_system.extensions.check_tx_version.CheckTxVersion, + t.types.frame_system.extensions.check_genesis.CheckGenesis, C.Era, - t.Compact, - t.frame_system.extensions.check_weight.CheckWeight, - t.Compact, - t.polkadot_runtime_common.claims.PrevalidateAttests, + t.Compact, + t.types.frame_system.extensions.check_weight.CheckWeight, + t.Compact, + t.types.polkadot_runtime_common.claims.PrevalidateAttests, ] > = $.tuple($727, $728, $729, $730, $731, $733, $734, $735, $736) -export const $737: $.Codec = C.$null +export const $737: $.Codec = C.$null export const _all: $.AnyCodec[] = [ $0, diff --git a/codegen/_output/polkadot/finality_grandpa/Equivocation/$$finality_grandpa.ts b/codegen/_output/polkadot/finality_grandpa/Equivocation/$$finality_grandpa.ts deleted file mode 100644 index 45ab3cd8b..000000000 --- a/codegen/_output/polkadot/finality_grandpa/Equivocation/$$finality_grandpa.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $precommit: $.Codec = - _codec.$224 - -export const $prevote: $.Codec = - _codec.$219 - -export interface Precommit { - round_number: t.u64 - identity: t.sp_finality_grandpa.app.Public - first: [t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature] - second: [t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature] -} - -export function Precommit(value: t.finality_grandpa.Equivocation.$$finality_grandpa.Precommit) { - return value -} - -export interface Prevote { - round_number: t.u64 - identity: t.sp_finality_grandpa.app.Public - first: [t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature] - second: [t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature] -} - -export function Prevote(value: t.finality_grandpa.Equivocation.$$finality_grandpa.Prevote) { - return value -} diff --git a/codegen/_output/polkadot/finality_grandpa/mod.ts b/codegen/_output/polkadot/finality_grandpa/mod.ts deleted file mode 100644 index 42e157d96..000000000 --- a/codegen/_output/polkadot/finality_grandpa/mod.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as Equivocation from "./Equivocation/mod.ts" - -export const $precommit: $.Codec = _codec.$225 - -export const $prevote: $.Codec = _codec.$220 - -export interface Precommit { - target_hash: t.primitive_types.H256 - target_number: t.u32 -} - -export function Precommit(value: t.finality_grandpa.Precommit) { - return value -} - -export interface Prevote { - target_hash: t.primitive_types.H256 - target_number: t.u32 -} - -export function Prevote(value: t.finality_grandpa.Prevote) { - return value -} diff --git a/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts b/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts deleted file mode 100644 index 0b7ef13b1..000000000 --- a/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export const $weightsPerClass: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass -> = _codec.$166 - -export interface WeightsPerClass { - normal: t.frame_system.limits.WeightsPerClass - operational: t.frame_system.limits.WeightsPerClass - mandatory: t.frame_system.limits.WeightsPerClass -} - -export function WeightsPerClass( - value: t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass, -) { - return value -} diff --git a/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts b/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts deleted file mode 100644 index 70b4175fe..000000000 --- a/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export const $weight: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight -> = _codec.$7 - -export interface Weight { - normal: t.sp_weights.weight_v2.Weight - operational: t.sp_weights.weight_v2.Weight - mandatory: t.sp_weights.weight_v2.Weight -} - -export function Weight( - value: t.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight, -) { - return value -} diff --git a/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/mod.ts b/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/mod.ts deleted file mode 100644 index f17c65ea6..000000000 --- a/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/mod.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export * as $$frame_system from "./$$frame_system/mod.ts" -export * as $$sp_weights from "./$$sp_weights/mod.ts" - -export const $$$u32: $.Codec = _codec.$170 - -export interface $$u32 { - normal: t.u32 - operational: t.u32 - mandatory: t.u32 -} - -export function $$u32(value: t.frame_support.dispatch.PerDispatchClass.$$u32) { - return value -} diff --git a/codegen/_output/polkadot/frame_support/dispatch/mod.ts b/codegen/_output/polkadot/frame_support/dispatch/mod.ts deleted file mode 100644 index 41e096b5d..000000000 --- a/codegen/_output/polkadot/frame_support/dispatch/mod.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as PerDispatchClass from "./PerDispatchClass/mod.ts" - -export const $dispatchClass: $.Codec = _codec.$22 - -export const $dispatchInfo: $.Codec = _codec.$21 - -export const $pays: $.Codec = _codec.$23 - -export const $rawOrigin: $.Codec = _codec.$257 - -export type DispatchClass = "Normal" | "Operational" | "Mandatory" - -export interface DispatchInfo { - weight: t.sp_weights.weight_v2.Weight - class: t.frame_support.dispatch.DispatchClass - pays_fee: t.frame_support.dispatch.Pays -} - -export function DispatchInfo(value: t.frame_support.dispatch.DispatchInfo) { - return value -} - -export type Pays = "Yes" | "No" - -export type RawOrigin = - | t.frame_support.dispatch.RawOrigin.Root - | t.frame_support.dispatch.RawOrigin.Signed - | t.frame_support.dispatch.RawOrigin.None -export namespace RawOrigin { - export interface Root { - type: "Root" - } - export interface Signed { - type: "Signed" - value: t.sp_core.crypto.AccountId32 - } - export interface None { - type: "None" - } - export function Root(): t.frame_support.dispatch.RawOrigin.Root { - return { type: "Root" } - } - export function Signed( - value: t.frame_support.dispatch.RawOrigin.Signed["value"], - ): t.frame_support.dispatch.RawOrigin.Signed { - return { type: "Signed", value } - } - export function None(): t.frame_support.dispatch.RawOrigin.None { - return { type: "None" } - } -} diff --git a/codegen/_output/polkadot/frame_support/mod.ts b/codegen/_output/polkadot/frame_support/mod.ts deleted file mode 100644 index e3c066b58..000000000 --- a/codegen/_output/polkadot/frame_support/mod.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as dispatch from "./dispatch/mod.ts" -export * as traits from "./traits/mod.ts" - -export const $palletId: $.Codec = _codec.$560 - -export type PalletId = Uint8Array - -export function PalletId(value: t.frame_support.PalletId) { - return value -} diff --git a/codegen/_output/polkadot/frame_support/traits/misc.ts b/codegen/_output/polkadot/frame_support/traits/misc.ts deleted file mode 100644 index 9aeb1612a..000000000 --- a/codegen/_output/polkadot/frame_support/traits/misc.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $wrapperOpaque: $.Codec = _codec.$522 diff --git a/codegen/_output/polkadot/frame_support/traits/preimages.ts b/codegen/_output/polkadot/frame_support/traits/preimages.ts deleted file mode 100644 index f7b6cd24a..000000000 --- a/codegen/_output/polkadot/frame_support/traits/preimages.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $bounded: $.Codec = _codec.$180 - -export type Bounded = - | t.frame_support.traits.preimages.Bounded.Legacy - | t.frame_support.traits.preimages.Bounded.Inline - | t.frame_support.traits.preimages.Bounded.Lookup -export namespace Bounded { - export interface Legacy { - type: "Legacy" - hash: t.primitive_types.H256 - } - export interface Inline { - type: "Inline" - value: Uint8Array - } - export interface Lookup { - type: "Lookup" - hash: t.primitive_types.H256 - len: t.u32 - } - export function Legacy( - value: Omit, - ): t.frame_support.traits.preimages.Bounded.Legacy { - return { type: "Legacy", ...value } - } - export function Inline( - value: t.frame_support.traits.preimages.Bounded.Inline["value"], - ): t.frame_support.traits.preimages.Bounded.Inline { - return { type: "Inline", value } - } - export function Lookup( - value: Omit, - ): t.frame_support.traits.preimages.Bounded.Lookup { - return { type: "Lookup", ...value } - } -} diff --git a/codegen/_output/polkadot/frame_support/traits/tokens/misc.ts b/codegen/_output/polkadot/frame_support/traits/tokens/misc.ts deleted file mode 100644 index ee5be5d4b..000000000 --- a/codegen/_output/polkadot/frame_support/traits/tokens/misc.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export const $balanceStatus: $.Codec = _codec.$37 - -export type BalanceStatus = "Free" | "Reserved" diff --git a/codegen/_output/polkadot/frame_system/extensions/check_genesis.ts b/codegen/_output/polkadot/frame_system/extensions/check_genesis.ts deleted file mode 100644 index 558e0306a..000000000 --- a/codegen/_output/polkadot/frame_system/extensions/check_genesis.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkGenesis: $.Codec = - _codec.$730 - -export function CheckGenesis() { - return null -} - -export type CheckGenesis = null diff --git a/codegen/_output/polkadot/frame_system/extensions/check_non_zero_sender.ts b/codegen/_output/polkadot/frame_system/extensions/check_non_zero_sender.ts deleted file mode 100644 index 6400ed748..000000000 --- a/codegen/_output/polkadot/frame_system/extensions/check_non_zero_sender.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkNonZeroSender: $.Codec< - t.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender -> = _codec.$727 - -export function CheckNonZeroSender() { - return null -} - -export type CheckNonZeroSender = null diff --git a/codegen/_output/polkadot/frame_system/extensions/check_spec_version.ts b/codegen/_output/polkadot/frame_system/extensions/check_spec_version.ts deleted file mode 100644 index e692bdc9e..000000000 --- a/codegen/_output/polkadot/frame_system/extensions/check_spec_version.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkSpecVersion: $.Codec< - t.frame_system.extensions.check_spec_version.CheckSpecVersion -> = _codec.$728 - -export function CheckSpecVersion() { - return null -} - -export type CheckSpecVersion = null diff --git a/codegen/_output/polkadot/frame_system/extensions/check_tx_version.ts b/codegen/_output/polkadot/frame_system/extensions/check_tx_version.ts deleted file mode 100644 index d2ddd0d49..000000000 --- a/codegen/_output/polkadot/frame_system/extensions/check_tx_version.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkTxVersion: $.Codec = - _codec.$729 - -export function CheckTxVersion() { - return null -} - -export type CheckTxVersion = null diff --git a/codegen/_output/polkadot/frame_system/extensions/check_weight.ts b/codegen/_output/polkadot/frame_system/extensions/check_weight.ts deleted file mode 100644 index acb4a106e..000000000 --- a/codegen/_output/polkadot/frame_system/extensions/check_weight.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkWeight: $.Codec = _codec.$734 - -export function CheckWeight() { - return null -} - -export type CheckWeight = null diff --git a/codegen/_output/polkadot/frame_system/limits.ts b/codegen/_output/polkadot/frame_system/limits.ts deleted file mode 100644 index 1448f520d..000000000 --- a/codegen/_output/polkadot/frame_system/limits.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $blockLength: $.Codec = _codec.$169 - -export const $blockWeights: $.Codec = _codec.$165 - -export const $weightsPerClass: $.Codec = _codec.$167 - -export interface BlockLength { - max: t.frame_support.dispatch.PerDispatchClass.$$u32 -} - -export function BlockLength(value: t.frame_system.limits.BlockLength) { - return value -} - -export interface BlockWeights { - base_block: t.sp_weights.weight_v2.Weight - max_block: t.sp_weights.weight_v2.Weight - per_class: t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass -} - -export function BlockWeights(value: t.frame_system.limits.BlockWeights) { - return value -} - -export interface WeightsPerClass { - base_extrinsic: t.sp_weights.weight_v2.Weight - max_extrinsic: t.sp_weights.weight_v2.Weight | undefined - max_total: t.sp_weights.weight_v2.Weight | undefined - reserved: t.sp_weights.weight_v2.Weight | undefined -} - -export function WeightsPerClass(value: t.frame_system.limits.WeightsPerClass) { - return value -} diff --git a/codegen/_output/polkadot/frame_system/mod.ts b/codegen/_output/polkadot/frame_system/mod.ts deleted file mode 100644 index fad2eca0c..000000000 --- a/codegen/_output/polkadot/frame_system/mod.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as extensions from "./extensions/mod.ts" -export * as limits from "./limits.ts" -export * as pallet from "./pallet.ts" - -export const $accountInfo: $.Codec = _codec.$3 - -export const $eventRecord: $.Codec = _codec.$18 - -export const $lastRuntimeUpgradeInfo: $.Codec = _codec.$159 - -export const $phase: $.Codec = _codec.$156 - -export interface AccountInfo { - nonce: t.u32 - consumers: t.u32 - providers: t.u32 - sufficients: t.u32 - data: t.pallet_balances.AccountData -} - -export function AccountInfo(value: t.frame_system.AccountInfo) { - return value -} - -export interface EventRecord { - phase: t.frame_system.Phase - event: t.polkadot_runtime.RuntimeEvent - topics: Array -} - -export function EventRecord(value: t.frame_system.EventRecord) { - return value -} - -export interface LastRuntimeUpgradeInfo { - spec_version: t.Compact - spec_name: string -} - -export function LastRuntimeUpgradeInfo(value: t.frame_system.LastRuntimeUpgradeInfo) { - return value -} - -export type Phase = - | t.frame_system.Phase.ApplyExtrinsic - | t.frame_system.Phase.Finalization - | t.frame_system.Phase.Initialization -export namespace Phase { - export interface ApplyExtrinsic { - type: "ApplyExtrinsic" - value: t.u32 - } - export interface Finalization { - type: "Finalization" - } - export interface Initialization { - type: "Initialization" - } - export function ApplyExtrinsic( - value: t.frame_system.Phase.ApplyExtrinsic["value"], - ): t.frame_system.Phase.ApplyExtrinsic { - return { type: "ApplyExtrinsic", value } - } - export function Finalization(): t.frame_system.Phase.Finalization { - return { type: "Finalization" } - } - export function Initialization(): t.frame_system.Phase.Initialization { - return { type: "Initialization" } - } -} diff --git a/codegen/_output/polkadot/mod.ts b/codegen/_output/polkadot/mod.ts index badbc43c5..621c80dbf 100644 --- a/codegen/_output/polkadot/mod.ts +++ b/codegen/_output/polkadot/mod.ts @@ -1,74 +1,5 @@ -import { $, C } from "./capi.ts" -import * as _codec from "./codecs.ts" - export * as _metadata from "./_metadata.ts" -export * as bitvec from "./bitvec/mod.ts" -export * as finality_grandpa from "./finality_grandpa/mod.ts" -export * as frame_support from "./frame_support/mod.ts" -export * as frame_system from "./frame_system/mod.ts" -export * as pallet_authorship from "./pallet_authorship/mod.ts" -export * as pallet_babe from "./pallet_babe/mod.ts" -export * as pallet_bags_list from "./pallet_bags_list/mod.ts" -export * as pallet_balances from "./pallet_balances/mod.ts" -export * as pallet_bounties from "./pallet_bounties/mod.ts" -export * as pallet_child_bounties from "./pallet_child_bounties/mod.ts" -export * as pallet_collective from "./pallet_collective/mod.ts" -export * as pallet_democracy from "./pallet_democracy/mod.ts" -export * as pallet_election_provider_multi_phase from "./pallet_election_provider_multi_phase/mod.ts" -export * as pallet_elections_phragmen from "./pallet_elections_phragmen/mod.ts" -export * as pallet_fast_unstake from "./pallet_fast_unstake/mod.ts" -export * as pallet_grandpa from "./pallet_grandpa/mod.ts" -export * as pallet_identity from "./pallet_identity/mod.ts" -export * as pallet_im_online from "./pallet_im_online/mod.ts" -export * as pallet_indices from "./pallet_indices/mod.ts" -export * as pallet_membership from "./pallet_membership/mod.ts" -export * as pallet_multisig from "./pallet_multisig/mod.ts" -export * as pallet_nomination_pools from "./pallet_nomination_pools/mod.ts" -export * as pallet_offences from "./pallet_offences/mod.ts" -export * as pallet_preimage from "./pallet_preimage/mod.ts" -export * as pallet_proxy from "./pallet_proxy/mod.ts" -export * as pallet_scheduler from "./pallet_scheduler/mod.ts" -export * as pallet_session from "./pallet_session/mod.ts" -export * as pallet_staking from "./pallet_staking/mod.ts" -export * as pallet_timestamp from "./pallet_timestamp/mod.ts" -export * as pallet_tips from "./pallet_tips/mod.ts" -export * as pallet_transaction_payment from "./pallet_transaction_payment/mod.ts" -export * as pallet_treasury from "./pallet_treasury/mod.ts" -export * as pallet_utility from "./pallet_utility/mod.ts" -export * as pallet_vesting from "./pallet_vesting/mod.ts" -export * as pallet_xcm from "./pallet_xcm/mod.ts" export * as pallets from "./pallets/mod.ts" -export * as polkadot_core_primitives from "./polkadot_core_primitives.ts" -export * as polkadot_parachain from "./polkadot_parachain/mod.ts" -export * as polkadot_primitives from "./polkadot_primitives/mod.ts" -export * as polkadot_runtime from "./polkadot_runtime.ts" -export * as polkadot_runtime_common from "./polkadot_runtime_common/mod.ts" -export * as polkadot_runtime_parachains from "./polkadot_runtime_parachains/mod.ts" -export * as primitive_types from "./primitive_types.ts" -export * as sp_arithmetic from "./sp_arithmetic/mod.ts" -export * as sp_authority_discovery from "./sp_authority_discovery/mod.ts" -export * as sp_consensus_babe from "./sp_consensus_babe/mod.ts" -export * as sp_consensus_slots from "./sp_consensus_slots.ts" -export * as sp_core from "./sp_core/mod.ts" -export * as sp_finality_grandpa from "./sp_finality_grandpa/mod.ts" -export * as sp_npos_elections from "./sp_npos_elections.ts" -export * as sp_runtime from "./sp_runtime/mod.ts" -export * as sp_session from "./sp_session.ts" -export * as sp_staking from "./sp_staking/mod.ts" -export * as sp_version from "./sp_version.ts" -export * as sp_weights from "./sp_weights/mod.ts" -export * as xcm from "./xcm/mod.ts" - -export const $era: $.Codec = _codec.$732 +export * as types from "./types/mod.ts" export type Compact = T - -export type u128 = bigint - -export type u16 = number - -export type u32 = number - -export type u64 = bigint - -export type u8 = number diff --git a/codegen/_output/polkadot/pallet_authorship/mod.ts b/codegen/_output/polkadot/pallet_authorship/mod.ts deleted file mode 100644 index a2e6949b9..000000000 --- a/codegen/_output/polkadot/pallet_authorship/mod.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $uncleEntryItem: $.Codec = _codec.$482 - -export type UncleEntryItem = - | t.pallet_authorship.UncleEntryItem.InclusionHeight - | t.pallet_authorship.UncleEntryItem.Uncle -export namespace UncleEntryItem { - export interface InclusionHeight { - type: "InclusionHeight" - value: t.u32 - } - export interface Uncle { - type: "Uncle" - value: [t.primitive_types.H256, t.sp_core.crypto.AccountId32 | undefined] - } - export function InclusionHeight( - value: t.pallet_authorship.UncleEntryItem.InclusionHeight["value"], - ): t.pallet_authorship.UncleEntryItem.InclusionHeight { - return { type: "InclusionHeight", value } - } - export function Uncle( - ...value: t.pallet_authorship.UncleEntryItem.Uncle["value"] - ): t.pallet_authorship.UncleEntryItem.Uncle { - return { type: "Uncle", value } - } -} diff --git a/codegen/_output/polkadot/pallet_bags_list/list.ts b/codegen/_output/polkadot/pallet_bags_list/list.ts deleted file mode 100644 index 2c7ff3b65..000000000 --- a/codegen/_output/polkadot/pallet_bags_list/list.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $bag: $.Codec = _codec.$613 - -export const $listError: $.Codec = _codec.$616 - -export const $node: $.Codec = _codec.$612 - -export interface Bag { - head: t.sp_core.crypto.AccountId32 | undefined - tail: t.sp_core.crypto.AccountId32 | undefined -} - -export function Bag(value: t.pallet_bags_list.list.Bag) { - return value -} - -export type ListError = "Duplicate" | "NotHeavier" | "NotInSameBag" | "NodeNotFound" - -export interface Node { - id: t.sp_core.crypto.AccountId32 - prev: t.sp_core.crypto.AccountId32 | undefined - next: t.sp_core.crypto.AccountId32 | undefined - bag_upper: t.u64 - score: t.u64 -} - -export function Node(value: t.pallet_bags_list.list.Node) { - return value -} diff --git a/codegen/_output/polkadot/pallet_balances/mod.ts b/codegen/_output/polkadot/pallet_balances/mod.ts deleted file mode 100644 index 4f241fc40..000000000 --- a/codegen/_output/polkadot/pallet_balances/mod.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $accountData: $.Codec = _codec.$5 - -export const $balanceLock: $.Codec = _codec.$471 - -export const $reasons: $.Codec = _codec.$472 - -export const $releases: $.Codec = _codec.$477 - -export const $reserveData: $.Codec = _codec.$475 - -export interface AccountData { - free: t.u128 - reserved: t.u128 - misc_frozen: t.u128 - fee_frozen: t.u128 -} - -export function AccountData(value: t.pallet_balances.AccountData) { - return value -} - -export interface BalanceLock { - id: Uint8Array - amount: t.u128 - reasons: t.pallet_balances.Reasons -} - -export function BalanceLock(value: t.pallet_balances.BalanceLock) { - return value -} - -export type Reasons = "Fee" | "Misc" | "All" - -export type Releases = "V1_0_0" | "V2_0_0" - -export interface ReserveData { - id: Uint8Array - amount: t.u128 -} - -export function ReserveData(value: t.pallet_balances.ReserveData) { - return value -} diff --git a/codegen/_output/polkadot/pallet_bounties/mod.ts b/codegen/_output/polkadot/pallet_bounties/mod.ts deleted file mode 100644 index 69d0638db..000000000 --- a/codegen/_output/polkadot/pallet_bounties/mod.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $bounty: $.Codec = _codec.$591 - -export const $bountyStatus: $.Codec = _codec.$592 - -export interface Bounty { - proposer: t.sp_core.crypto.AccountId32 - value: t.u128 - fee: t.u128 - curator_deposit: t.u128 - bond: t.u128 - status: t.pallet_bounties.BountyStatus -} - -export function Bounty(value: t.pallet_bounties.Bounty) { - return value -} - -export type BountyStatus = - | t.pallet_bounties.BountyStatus.Proposed - | t.pallet_bounties.BountyStatus.Approved - | t.pallet_bounties.BountyStatus.Funded - | t.pallet_bounties.BountyStatus.CuratorProposed - | t.pallet_bounties.BountyStatus.Active - | t.pallet_bounties.BountyStatus.PendingPayout -export namespace BountyStatus { - export interface Proposed { - type: "Proposed" - } - export interface Approved { - type: "Approved" - } - export interface Funded { - type: "Funded" - } - export interface CuratorProposed { - type: "CuratorProposed" - curator: t.sp_core.crypto.AccountId32 - } - export interface Active { - type: "Active" - curator: t.sp_core.crypto.AccountId32 - update_due: t.u32 - } - export interface PendingPayout { - type: "PendingPayout" - curator: t.sp_core.crypto.AccountId32 - beneficiary: t.sp_core.crypto.AccountId32 - unlock_at: t.u32 - } - export function Proposed(): t.pallet_bounties.BountyStatus.Proposed { - return { type: "Proposed" } - } - export function Approved(): t.pallet_bounties.BountyStatus.Approved { - return { type: "Approved" } - } - export function Funded(): t.pallet_bounties.BountyStatus.Funded { - return { type: "Funded" } - } - export function CuratorProposed( - value: Omit, - ): t.pallet_bounties.BountyStatus.CuratorProposed { - return { type: "CuratorProposed", ...value } - } - export function Active( - value: Omit, - ): t.pallet_bounties.BountyStatus.Active { - return { type: "Active", ...value } - } - export function PendingPayout( - value: Omit, - ): t.pallet_bounties.BountyStatus.PendingPayout { - return { type: "PendingPayout", ...value } - } -} diff --git a/codegen/_output/polkadot/pallet_child_bounties/mod.ts b/codegen/_output/polkadot/pallet_child_bounties/mod.ts deleted file mode 100644 index 73ae5cafd..000000000 --- a/codegen/_output/polkadot/pallet_child_bounties/mod.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $childBounty: $.Codec = _codec.$595 - -export const $childBountyStatus: $.Codec = _codec.$596 - -export interface ChildBounty { - parent_bounty: t.u32 - value: t.u128 - fee: t.u128 - curator_deposit: t.u128 - status: t.pallet_child_bounties.ChildBountyStatus -} - -export function ChildBounty(value: t.pallet_child_bounties.ChildBounty) { - return value -} - -export type ChildBountyStatus = - | t.pallet_child_bounties.ChildBountyStatus.Added - | t.pallet_child_bounties.ChildBountyStatus.CuratorProposed - | t.pallet_child_bounties.ChildBountyStatus.Active - | t.pallet_child_bounties.ChildBountyStatus.PendingPayout -export namespace ChildBountyStatus { - export interface Added { - type: "Added" - } - export interface CuratorProposed { - type: "CuratorProposed" - curator: t.sp_core.crypto.AccountId32 - } - export interface Active { - type: "Active" - curator: t.sp_core.crypto.AccountId32 - } - export interface PendingPayout { - type: "PendingPayout" - curator: t.sp_core.crypto.AccountId32 - beneficiary: t.sp_core.crypto.AccountId32 - unlock_at: t.u32 - } - export function Added(): t.pallet_child_bounties.ChildBountyStatus.Added { - return { type: "Added" } - } - export function CuratorProposed( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.CuratorProposed { - return { type: "CuratorProposed", ...value } - } - export function Active( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.Active { - return { type: "Active", ...value } - } - export function PendingPayout( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.PendingPayout { - return { type: "PendingPayout", ...value } - } -} diff --git a/codegen/_output/polkadot/pallet_collective/mod.ts b/codegen/_output/polkadot/pallet_collective/mod.ts deleted file mode 100644 index d3ddd8c32..000000000 --- a/codegen/_output/polkadot/pallet_collective/mod.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $rawOrigin: $.Codec = _codec.$258 - -export const $votes: $.Codec = _codec.$546 - -export type RawOrigin = - | t.pallet_collective.RawOrigin.Members - | t.pallet_collective.RawOrigin.Member - | t.pallet_collective.RawOrigin._Phantom -export namespace RawOrigin { - export interface Members { - type: "Members" - value: [t.u32, t.u32] - } - export interface Member { - type: "Member" - value: t.sp_core.crypto.AccountId32 - } - export interface _Phantom { - type: "_Phantom" - } - export function Members( - ...value: t.pallet_collective.RawOrigin.Members["value"] - ): t.pallet_collective.RawOrigin.Members { - return { type: "Members", value } - } - export function Member( - value: t.pallet_collective.RawOrigin.Member["value"], - ): t.pallet_collective.RawOrigin.Member { - return { type: "Member", value } - } - export function _Phantom(): t.pallet_collective.RawOrigin._Phantom { - return { type: "_Phantom" } - } -} - -export interface Votes { - index: t.u32 - threshold: t.u32 - ayes: Array - nays: Array - end: t.u32 -} - -export function Votes(value: t.pallet_collective.Votes) { - return value -} diff --git a/codegen/_output/polkadot/pallet_democracy/conviction.ts b/codegen/_output/polkadot/pallet_democracy/conviction.ts deleted file mode 100644 index dd2c491bb..000000000 --- a/codegen/_output/polkadot/pallet_democracy/conviction.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $conviction: $.Codec = _codec.$235 - -export type Conviction = - | "None" - | "Locked1x" - | "Locked2x" - | "Locked3x" - | "Locked4x" - | "Locked5x" - | "Locked6x" diff --git a/codegen/_output/polkadot/pallet_democracy/types.ts b/codegen/_output/polkadot/pallet_democracy/types.ts deleted file mode 100644 index 3c2087e74..000000000 --- a/codegen/_output/polkadot/pallet_democracy/types.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $delegations: $.Codec = _codec.$540 - -export const $referendumInfo: $.Codec = _codec.$533 - -export const $referendumStatus: $.Codec = _codec.$534 - -export const $tally: $.Codec = _codec.$535 - -export interface Delegations { - votes: t.u128 - capital: t.u128 -} - -export function Delegations(value: t.pallet_democracy.types.Delegations) { - return value -} - -export type ReferendumInfo = - | t.pallet_democracy.types.ReferendumInfo.Ongoing - | t.pallet_democracy.types.ReferendumInfo.Finished -export namespace ReferendumInfo { - export interface Ongoing { - type: "Ongoing" - value: t.pallet_democracy.types.ReferendumStatus - } - export interface Finished { - type: "Finished" - approved: boolean - end: t.u32 - } - export function Ongoing( - value: t.pallet_democracy.types.ReferendumInfo.Ongoing["value"], - ): t.pallet_democracy.types.ReferendumInfo.Ongoing { - return { type: "Ongoing", value } - } - export function Finished( - value: Omit, - ): t.pallet_democracy.types.ReferendumInfo.Finished { - return { type: "Finished", ...value } - } -} - -export interface ReferendumStatus { - end: t.u32 - proposal: t.frame_support.traits.preimages.Bounded - threshold: t.pallet_democracy.vote_threshold.VoteThreshold - delay: t.u32 - tally: t.pallet_democracy.types.Tally -} - -export function ReferendumStatus(value: t.pallet_democracy.types.ReferendumStatus) { - return value -} - -export interface Tally { - ayes: t.u128 - nays: t.u128 - turnout: t.u128 -} - -export function Tally(value: t.pallet_democracy.types.Tally) { - return value -} diff --git a/codegen/_output/polkadot/pallet_democracy/vote.ts b/codegen/_output/polkadot/pallet_democracy/vote.ts deleted file mode 100644 index 1125141fe..000000000 --- a/codegen/_output/polkadot/pallet_democracy/vote.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $accountVote: $.Codec = _codec.$63 - -export const $priorLock: $.Codec = _codec.$541 - -export const $vote: $.Codec = _codec.$64 - -export const $voting: $.Codec = _codec.$536 - -export type AccountVote = - | t.pallet_democracy.vote.AccountVote.Standard - | t.pallet_democracy.vote.AccountVote.Split -export namespace AccountVote { - export interface Standard { - type: "Standard" - vote: t.pallet_democracy.vote.Vote - balance: t.u128 - } - export interface Split { - type: "Split" - aye: t.u128 - nay: t.u128 - } - export function Standard( - value: Omit, - ): t.pallet_democracy.vote.AccountVote.Standard { - return { type: "Standard", ...value } - } - export function Split( - value: Omit, - ): t.pallet_democracy.vote.AccountVote.Split { - return { type: "Split", ...value } - } -} - -export type PriorLock = [t.u32, t.u128] - -export function PriorLock(...value: t.pallet_democracy.vote.PriorLock) { - return value -} - -export type Vote = t.u8 - -export function Vote(value: t.pallet_democracy.vote.Vote) { - return value -} - -export type Voting = - | t.pallet_democracy.vote.Voting.Direct - | t.pallet_democracy.vote.Voting.Delegating -export namespace Voting { - export interface Direct { - type: "Direct" - votes: Array<[t.u32, t.pallet_democracy.vote.AccountVote]> - delegations: t.pallet_democracy.types.Delegations - prior: t.pallet_democracy.vote.PriorLock - } - export interface Delegating { - type: "Delegating" - balance: t.u128 - target: t.sp_core.crypto.AccountId32 - conviction: t.pallet_democracy.conviction.Conviction - delegations: t.pallet_democracy.types.Delegations - prior: t.pallet_democracy.vote.PriorLock - } - export function Direct( - value: Omit, - ): t.pallet_democracy.vote.Voting.Direct { - return { type: "Direct", ...value } - } - export function Delegating( - value: Omit, - ): t.pallet_democracy.vote.Voting.Delegating { - return { type: "Delegating", ...value } - } -} diff --git a/codegen/_output/polkadot/pallet_democracy/vote_threshold.ts b/codegen/_output/polkadot/pallet_democracy/vote_threshold.ts deleted file mode 100644 index 336aa57c0..000000000 --- a/codegen/_output/polkadot/pallet_democracy/vote_threshold.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $voteThreshold: $.Codec = _codec.$62 - -export type VoteThreshold = "SuperMajorityApprove" | "SuperMajorityAgainst" | "SimpleMajority" diff --git a/codegen/_output/polkadot/pallet_election_provider_multi_phase/mod.ts b/codegen/_output/polkadot/pallet_election_provider_multi_phase/mod.ts deleted file mode 100644 index ab4732a0f..000000000 --- a/codegen/_output/polkadot/pallet_election_provider_multi_phase/mod.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as signed from "./signed.ts" - -export const $electionCompute: $.Codec = - _codec.$87 - -export const $phase: $.Codec = _codec.$600 - -export const $rawSolution: $.Codec = _codec.$311 - -export const $readySolution: $.Codec = - _codec.$602 - -export const $roundSnapshot: $.Codec = - _codec.$603 - -export const $solutionOrSnapshotSize: $.Codec< - t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize -> = _codec.$363 - -export type ElectionCompute = "OnChain" | "Signed" | "Unsigned" | "Fallback" | "Emergency" - -export type Phase = - | t.pallet_election_provider_multi_phase.Phase.Off - | t.pallet_election_provider_multi_phase.Phase.Signed - | t.pallet_election_provider_multi_phase.Phase.Unsigned - | t.pallet_election_provider_multi_phase.Phase.Emergency -export namespace Phase { - export interface Off { - type: "Off" - } - export interface Signed { - type: "Signed" - } - export interface Unsigned { - type: "Unsigned" - value: [boolean, t.u32] - } - export interface Emergency { - type: "Emergency" - } - export function Off(): t.pallet_election_provider_multi_phase.Phase.Off { - return { type: "Off" } - } - export function Signed(): t.pallet_election_provider_multi_phase.Phase.Signed { - return { type: "Signed" } - } - export function Unsigned( - value: t.pallet_election_provider_multi_phase.Phase.Unsigned["value"], - ): t.pallet_election_provider_multi_phase.Phase.Unsigned { - return { type: "Unsigned", value } - } - export function Emergency(): t.pallet_election_provider_multi_phase.Phase.Emergency { - return { type: "Emergency" } - } -} - -export interface RawSolution { - solution: t.polkadot_runtime.NposCompactSolution16 - score: t.sp_npos_elections.ElectionScore - round: t.u32 -} - -export function RawSolution(value: t.pallet_election_provider_multi_phase.RawSolution) { - return value -} - -export interface ReadySolution { - supports: Array<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> - score: t.sp_npos_elections.ElectionScore - compute: t.pallet_election_provider_multi_phase.ElectionCompute -} - -export function ReadySolution(value: t.pallet_election_provider_multi_phase.ReadySolution) { - return value -} - -export interface RoundSnapshot { - voters: Array<[t.sp_core.crypto.AccountId32, t.u64, Array]> - targets: Array -} - -export function RoundSnapshot(value: t.pallet_election_provider_multi_phase.RoundSnapshot) { - return value -} - -export interface SolutionOrSnapshotSize { - voters: t.Compact - targets: t.Compact -} - -export function SolutionOrSnapshotSize( - value: t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize, -) { - return value -} diff --git a/codegen/_output/polkadot/pallet_election_provider_multi_phase/signed.ts b/codegen/_output/polkadot/pallet_election_provider_multi_phase/signed.ts deleted file mode 100644 index f4a92ea3f..000000000 --- a/codegen/_output/polkadot/pallet_election_provider_multi_phase/signed.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $signedSubmission: $.Codec< - t.pallet_election_provider_multi_phase.signed.SignedSubmission -> = _codec.$610 - -export interface SignedSubmission { - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 - raw_solution: t.pallet_election_provider_multi_phase.RawSolution - call_fee: t.u128 -} - -export function SignedSubmission( - value: t.pallet_election_provider_multi_phase.signed.SignedSubmission, -) { - return value -} diff --git a/codegen/_output/polkadot/pallet_elections_phragmen/mod.ts b/codegen/_output/polkadot/pallet_elections_phragmen/mod.ts deleted file mode 100644 index b45ea1046..000000000 --- a/codegen/_output/polkadot/pallet_elections_phragmen/mod.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $renouncing: $.Codec = _codec.$242 - -export const $seatHolder: $.Codec = _codec.$551 - -export const $voter: $.Codec = _codec.$552 - -export type Renouncing = - | t.pallet_elections_phragmen.Renouncing.Member - | t.pallet_elections_phragmen.Renouncing.RunnerUp - | t.pallet_elections_phragmen.Renouncing.Candidate -export namespace Renouncing { - export interface Member { - type: "Member" - } - export interface RunnerUp { - type: "RunnerUp" - } - export interface Candidate { - type: "Candidate" - value: t.Compact - } - export function Member(): t.pallet_elections_phragmen.Renouncing.Member { - return { type: "Member" } - } - export function RunnerUp(): t.pallet_elections_phragmen.Renouncing.RunnerUp { - return { type: "RunnerUp" } - } - export function Candidate( - value: t.pallet_elections_phragmen.Renouncing.Candidate["value"], - ): t.pallet_elections_phragmen.Renouncing.Candidate { - return { type: "Candidate", value } - } -} - -export interface SeatHolder { - who: t.sp_core.crypto.AccountId32 - stake: t.u128 - deposit: t.u128 -} - -export function SeatHolder(value: t.pallet_elections_phragmen.SeatHolder) { - return value -} - -export interface Voter { - votes: Array - stake: t.u128 - deposit: t.u128 -} - -export function Voter(value: t.pallet_elections_phragmen.Voter) { - return value -} diff --git a/codegen/_output/polkadot/pallet_fast_unstake/types.ts b/codegen/_output/polkadot/pallet_fast_unstake/types.ts deleted file mode 100644 index 9714fd8b5..000000000 --- a/codegen/_output/polkadot/pallet_fast_unstake/types.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $unstakeRequest: $.Codec = _codec.$634 - -export interface UnstakeRequest { - stash: t.sp_core.crypto.AccountId32 - checked: Array - deposit: t.u128 -} - -export function UnstakeRequest(value: t.pallet_fast_unstake.types.UnstakeRequest) { - return value -} diff --git a/codegen/_output/polkadot/pallet_grandpa/mod.ts b/codegen/_output/polkadot/pallet_grandpa/mod.ts deleted file mode 100644 index fc0234231..000000000 --- a/codegen/_output/polkadot/pallet_grandpa/mod.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $storedPendingChange: $.Codec = _codec.$517 - -export const $storedState: $.Codec = _codec.$516 - -export interface StoredPendingChange { - scheduled_at: t.u32 - delay: t.u32 - next_authorities: Array<[t.sp_finality_grandpa.app.Public, t.u64]> - forced: t.u32 | undefined -} - -export function StoredPendingChange(value: t.pallet_grandpa.StoredPendingChange) { - return value -} - -export type StoredState = - | t.pallet_grandpa.StoredState.Live - | t.pallet_grandpa.StoredState.PendingPause - | t.pallet_grandpa.StoredState.Paused - | t.pallet_grandpa.StoredState.PendingResume -export namespace StoredState { - export interface Live { - type: "Live" - } - export interface PendingPause { - type: "PendingPause" - scheduled_at: t.u32 - delay: t.u32 - } - export interface Paused { - type: "Paused" - } - export interface PendingResume { - type: "PendingResume" - scheduled_at: t.u32 - delay: t.u32 - } - export function Live(): t.pallet_grandpa.StoredState.Live { - return { type: "Live" } - } - export function PendingPause( - value: Omit, - ): t.pallet_grandpa.StoredState.PendingPause { - return { type: "PendingPause", ...value } - } - export function Paused(): t.pallet_grandpa.StoredState.Paused { - return { type: "Paused" } - } - export function PendingResume( - value: Omit, - ): t.pallet_grandpa.StoredState.PendingResume { - return { type: "PendingResume", ...value } - } -} diff --git a/codegen/_output/polkadot/pallet_identity/types.ts b/codegen/_output/polkadot/pallet_identity/types.ts deleted file mode 100644 index 61a8e7b01..000000000 --- a/codegen/_output/polkadot/pallet_identity/types.ts +++ /dev/null @@ -1,498 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $data: $.Codec = _codec.$267 - -export const $identityField: $.Codec = _codec.$301 - -export const $identityInfo: $.Codec = _codec.$264 - -export const $judgement: $.Codec = _codec.$302 - -export const $registrarInfo: $.Codec = _codec.$576 - -export const $registration: $.Codec = _codec.$568 - -export type Data = - | t.pallet_identity.types.Data.None - | t.pallet_identity.types.Data.Raw0 - | t.pallet_identity.types.Data.Raw1 - | t.pallet_identity.types.Data.Raw2 - | t.pallet_identity.types.Data.Raw3 - | t.pallet_identity.types.Data.Raw4 - | t.pallet_identity.types.Data.Raw5 - | t.pallet_identity.types.Data.Raw6 - | t.pallet_identity.types.Data.Raw7 - | t.pallet_identity.types.Data.Raw8 - | t.pallet_identity.types.Data.Raw9 - | t.pallet_identity.types.Data.Raw10 - | t.pallet_identity.types.Data.Raw11 - | t.pallet_identity.types.Data.Raw12 - | t.pallet_identity.types.Data.Raw13 - | t.pallet_identity.types.Data.Raw14 - | t.pallet_identity.types.Data.Raw15 - | t.pallet_identity.types.Data.Raw16 - | t.pallet_identity.types.Data.Raw17 - | t.pallet_identity.types.Data.Raw18 - | t.pallet_identity.types.Data.Raw19 - | t.pallet_identity.types.Data.Raw20 - | t.pallet_identity.types.Data.Raw21 - | t.pallet_identity.types.Data.Raw22 - | t.pallet_identity.types.Data.Raw23 - | t.pallet_identity.types.Data.Raw24 - | t.pallet_identity.types.Data.Raw25 - | t.pallet_identity.types.Data.Raw26 - | t.pallet_identity.types.Data.Raw27 - | t.pallet_identity.types.Data.Raw28 - | t.pallet_identity.types.Data.Raw29 - | t.pallet_identity.types.Data.Raw30 - | t.pallet_identity.types.Data.Raw31 - | t.pallet_identity.types.Data.Raw32 - | t.pallet_identity.types.Data.BlakeTwo256 - | t.pallet_identity.types.Data.Sha256 - | t.pallet_identity.types.Data.Keccak256 - | t.pallet_identity.types.Data.ShaThree256 -export namespace Data { - export interface None { - type: "None" - } - export interface Raw0 { - type: "Raw0" - value: Uint8Array - } - export interface Raw1 { - type: "Raw1" - value: Uint8Array - } - export interface Raw2 { - type: "Raw2" - value: Uint8Array - } - export interface Raw3 { - type: "Raw3" - value: Uint8Array - } - export interface Raw4 { - type: "Raw4" - value: Uint8Array - } - export interface Raw5 { - type: "Raw5" - value: Uint8Array - } - export interface Raw6 { - type: "Raw6" - value: Uint8Array - } - export interface Raw7 { - type: "Raw7" - value: Uint8Array - } - export interface Raw8 { - type: "Raw8" - value: Uint8Array - } - export interface Raw9 { - type: "Raw9" - value: Uint8Array - } - export interface Raw10 { - type: "Raw10" - value: Uint8Array - } - export interface Raw11 { - type: "Raw11" - value: Uint8Array - } - export interface Raw12 { - type: "Raw12" - value: Uint8Array - } - export interface Raw13 { - type: "Raw13" - value: Uint8Array - } - export interface Raw14 { - type: "Raw14" - value: Uint8Array - } - export interface Raw15 { - type: "Raw15" - value: Uint8Array - } - export interface Raw16 { - type: "Raw16" - value: Uint8Array - } - export interface Raw17 { - type: "Raw17" - value: Uint8Array - } - export interface Raw18 { - type: "Raw18" - value: Uint8Array - } - export interface Raw19 { - type: "Raw19" - value: Uint8Array - } - export interface Raw20 { - type: "Raw20" - value: Uint8Array - } - export interface Raw21 { - type: "Raw21" - value: Uint8Array - } - export interface Raw22 { - type: "Raw22" - value: Uint8Array - } - export interface Raw23 { - type: "Raw23" - value: Uint8Array - } - export interface Raw24 { - type: "Raw24" - value: Uint8Array - } - export interface Raw25 { - type: "Raw25" - value: Uint8Array - } - export interface Raw26 { - type: "Raw26" - value: Uint8Array - } - export interface Raw27 { - type: "Raw27" - value: Uint8Array - } - export interface Raw28 { - type: "Raw28" - value: Uint8Array - } - export interface Raw29 { - type: "Raw29" - value: Uint8Array - } - export interface Raw30 { - type: "Raw30" - value: Uint8Array - } - export interface Raw31 { - type: "Raw31" - value: Uint8Array - } - export interface Raw32 { - type: "Raw32" - value: Uint8Array - } - export interface BlakeTwo256 { - type: "BlakeTwo256" - value: Uint8Array - } - export interface Sha256 { - type: "Sha256" - value: Uint8Array - } - export interface Keccak256 { - type: "Keccak256" - value: Uint8Array - } - export interface ShaThree256 { - type: "ShaThree256" - value: Uint8Array - } - export function None(): t.pallet_identity.types.Data.None { - return { type: "None" } - } - export function Raw0( - value: t.pallet_identity.types.Data.Raw0["value"], - ): t.pallet_identity.types.Data.Raw0 { - return { type: "Raw0", value } - } - export function Raw1( - value: t.pallet_identity.types.Data.Raw1["value"], - ): t.pallet_identity.types.Data.Raw1 { - return { type: "Raw1", value } - } - export function Raw2( - value: t.pallet_identity.types.Data.Raw2["value"], - ): t.pallet_identity.types.Data.Raw2 { - return { type: "Raw2", value } - } - export function Raw3( - value: t.pallet_identity.types.Data.Raw3["value"], - ): t.pallet_identity.types.Data.Raw3 { - return { type: "Raw3", value } - } - export function Raw4( - value: t.pallet_identity.types.Data.Raw4["value"], - ): t.pallet_identity.types.Data.Raw4 { - return { type: "Raw4", value } - } - export function Raw5( - value: t.pallet_identity.types.Data.Raw5["value"], - ): t.pallet_identity.types.Data.Raw5 { - return { type: "Raw5", value } - } - export function Raw6( - value: t.pallet_identity.types.Data.Raw6["value"], - ): t.pallet_identity.types.Data.Raw6 { - return { type: "Raw6", value } - } - export function Raw7( - value: t.pallet_identity.types.Data.Raw7["value"], - ): t.pallet_identity.types.Data.Raw7 { - return { type: "Raw7", value } - } - export function Raw8( - value: t.pallet_identity.types.Data.Raw8["value"], - ): t.pallet_identity.types.Data.Raw8 { - return { type: "Raw8", value } - } - export function Raw9( - value: t.pallet_identity.types.Data.Raw9["value"], - ): t.pallet_identity.types.Data.Raw9 { - return { type: "Raw9", value } - } - export function Raw10( - value: t.pallet_identity.types.Data.Raw10["value"], - ): t.pallet_identity.types.Data.Raw10 { - return { type: "Raw10", value } - } - export function Raw11( - value: t.pallet_identity.types.Data.Raw11["value"], - ): t.pallet_identity.types.Data.Raw11 { - return { type: "Raw11", value } - } - export function Raw12( - value: t.pallet_identity.types.Data.Raw12["value"], - ): t.pallet_identity.types.Data.Raw12 { - return { type: "Raw12", value } - } - export function Raw13( - value: t.pallet_identity.types.Data.Raw13["value"], - ): t.pallet_identity.types.Data.Raw13 { - return { type: "Raw13", value } - } - export function Raw14( - value: t.pallet_identity.types.Data.Raw14["value"], - ): t.pallet_identity.types.Data.Raw14 { - return { type: "Raw14", value } - } - export function Raw15( - value: t.pallet_identity.types.Data.Raw15["value"], - ): t.pallet_identity.types.Data.Raw15 { - return { type: "Raw15", value } - } - export function Raw16( - value: t.pallet_identity.types.Data.Raw16["value"], - ): t.pallet_identity.types.Data.Raw16 { - return { type: "Raw16", value } - } - export function Raw17( - value: t.pallet_identity.types.Data.Raw17["value"], - ): t.pallet_identity.types.Data.Raw17 { - return { type: "Raw17", value } - } - export function Raw18( - value: t.pallet_identity.types.Data.Raw18["value"], - ): t.pallet_identity.types.Data.Raw18 { - return { type: "Raw18", value } - } - export function Raw19( - value: t.pallet_identity.types.Data.Raw19["value"], - ): t.pallet_identity.types.Data.Raw19 { - return { type: "Raw19", value } - } - export function Raw20( - value: t.pallet_identity.types.Data.Raw20["value"], - ): t.pallet_identity.types.Data.Raw20 { - return { type: "Raw20", value } - } - export function Raw21( - value: t.pallet_identity.types.Data.Raw21["value"], - ): t.pallet_identity.types.Data.Raw21 { - return { type: "Raw21", value } - } - export function Raw22( - value: t.pallet_identity.types.Data.Raw22["value"], - ): t.pallet_identity.types.Data.Raw22 { - return { type: "Raw22", value } - } - export function Raw23( - value: t.pallet_identity.types.Data.Raw23["value"], - ): t.pallet_identity.types.Data.Raw23 { - return { type: "Raw23", value } - } - export function Raw24( - value: t.pallet_identity.types.Data.Raw24["value"], - ): t.pallet_identity.types.Data.Raw24 { - return { type: "Raw24", value } - } - export function Raw25( - value: t.pallet_identity.types.Data.Raw25["value"], - ): t.pallet_identity.types.Data.Raw25 { - return { type: "Raw25", value } - } - export function Raw26( - value: t.pallet_identity.types.Data.Raw26["value"], - ): t.pallet_identity.types.Data.Raw26 { - return { type: "Raw26", value } - } - export function Raw27( - value: t.pallet_identity.types.Data.Raw27["value"], - ): t.pallet_identity.types.Data.Raw27 { - return { type: "Raw27", value } - } - export function Raw28( - value: t.pallet_identity.types.Data.Raw28["value"], - ): t.pallet_identity.types.Data.Raw28 { - return { type: "Raw28", value } - } - export function Raw29( - value: t.pallet_identity.types.Data.Raw29["value"], - ): t.pallet_identity.types.Data.Raw29 { - return { type: "Raw29", value } - } - export function Raw30( - value: t.pallet_identity.types.Data.Raw30["value"], - ): t.pallet_identity.types.Data.Raw30 { - return { type: "Raw30", value } - } - export function Raw31( - value: t.pallet_identity.types.Data.Raw31["value"], - ): t.pallet_identity.types.Data.Raw31 { - return { type: "Raw31", value } - } - export function Raw32( - value: t.pallet_identity.types.Data.Raw32["value"], - ): t.pallet_identity.types.Data.Raw32 { - return { type: "Raw32", value } - } - export function BlakeTwo256( - value: t.pallet_identity.types.Data.BlakeTwo256["value"], - ): t.pallet_identity.types.Data.BlakeTwo256 { - return { type: "BlakeTwo256", value } - } - export function Sha256( - value: t.pallet_identity.types.Data.Sha256["value"], - ): t.pallet_identity.types.Data.Sha256 { - return { type: "Sha256", value } - } - export function Keccak256( - value: t.pallet_identity.types.Data.Keccak256["value"], - ): t.pallet_identity.types.Data.Keccak256 { - return { type: "Keccak256", value } - } - export function ShaThree256( - value: t.pallet_identity.types.Data.ShaThree256["value"], - ): t.pallet_identity.types.Data.ShaThree256 { - return { type: "ShaThree256", value } - } -} - -export type IdentityField = - | "Display" - | "Legal" - | "Web" - | "Riot" - | "Email" - | "PgpFingerprint" - | "Image" - | "Twitter" - -export interface IdentityInfo { - additional: Array<[t.pallet_identity.types.Data, t.pallet_identity.types.Data]> - display: t.pallet_identity.types.Data - legal: t.pallet_identity.types.Data - web: t.pallet_identity.types.Data - riot: t.pallet_identity.types.Data - email: t.pallet_identity.types.Data - pgp_fingerprint: Uint8Array | undefined - image: t.pallet_identity.types.Data - twitter: t.pallet_identity.types.Data -} - -export function IdentityInfo(value: t.pallet_identity.types.IdentityInfo) { - return value -} - -export type Judgement = - | t.pallet_identity.types.Judgement.Unknown - | t.pallet_identity.types.Judgement.FeePaid - | t.pallet_identity.types.Judgement.Reasonable - | t.pallet_identity.types.Judgement.KnownGood - | t.pallet_identity.types.Judgement.OutOfDate - | t.pallet_identity.types.Judgement.LowQuality - | t.pallet_identity.types.Judgement.Erroneous -export namespace Judgement { - export interface Unknown { - type: "Unknown" - } - export interface FeePaid { - type: "FeePaid" - value: t.u128 - } - export interface Reasonable { - type: "Reasonable" - } - export interface KnownGood { - type: "KnownGood" - } - export interface OutOfDate { - type: "OutOfDate" - } - export interface LowQuality { - type: "LowQuality" - } - export interface Erroneous { - type: "Erroneous" - } - export function Unknown(): t.pallet_identity.types.Judgement.Unknown { - return { type: "Unknown" } - } - export function FeePaid( - value: t.pallet_identity.types.Judgement.FeePaid["value"], - ): t.pallet_identity.types.Judgement.FeePaid { - return { type: "FeePaid", value } - } - export function Reasonable(): t.pallet_identity.types.Judgement.Reasonable { - return { type: "Reasonable" } - } - export function KnownGood(): t.pallet_identity.types.Judgement.KnownGood { - return { type: "KnownGood" } - } - export function OutOfDate(): t.pallet_identity.types.Judgement.OutOfDate { - return { type: "OutOfDate" } - } - export function LowQuality(): t.pallet_identity.types.Judgement.LowQuality { - return { type: "LowQuality" } - } - export function Erroneous(): t.pallet_identity.types.Judgement.Erroneous { - return { type: "Erroneous" } - } -} - -export interface RegistrarInfo { - account: t.sp_core.crypto.AccountId32 - fee: t.u128 - fields: t.u64 -} - -export function RegistrarInfo(value: t.pallet_identity.types.RegistrarInfo) { - return value -} - -export interface Registration { - judgements: Array<[t.u32, t.pallet_identity.types.Judgement]> - deposit: t.u128 - info: t.pallet_identity.types.IdentityInfo -} - -export function Registration(value: t.pallet_identity.types.Registration) { - return value -} diff --git a/codegen/_output/polkadot/pallet_im_online/mod.ts b/codegen/_output/polkadot/pallet_im_online/mod.ts deleted file mode 100644 index ff5fa7fb4..000000000 --- a/codegen/_output/polkadot/pallet_im_online/mod.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as sr25519 from "./sr25519/mod.ts" - -export const $boundedOpaqueNetworkState: $.Codec = - _codec.$523 - -export const $heartbeat: $.Codec = _codec.$228 - -export interface BoundedOpaqueNetworkState { - peer_id: Uint8Array - external_addresses: Array -} - -export function BoundedOpaqueNetworkState(value: t.pallet_im_online.BoundedOpaqueNetworkState) { - return value -} - -export interface Heartbeat { - block_number: t.u32 - network_state: t.sp_core.offchain.OpaqueNetworkState - session_index: t.u32 - authority_index: t.u32 - validators_len: t.u32 -} - -export function Heartbeat(value: t.pallet_im_online.Heartbeat) { - return value -} diff --git a/codegen/_output/polkadot/pallet_im_online/sr25519/app_sr25519.ts b/codegen/_output/polkadot/pallet_im_online/sr25519/app_sr25519.ts deleted file mode 100644 index 61759e84e..000000000 --- a/codegen/_output/polkadot/pallet_im_online/sr25519/app_sr25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$53 - -export const $signature: $.Codec = _codec.$233 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.pallet_im_online.sr25519.app_sr25519.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.pallet_im_online.sr25519.app_sr25519.Signature) { - return value -} diff --git a/codegen/_output/polkadot/pallet_multisig/mod.ts b/codegen/_output/polkadot/pallet_multisig/mod.ts deleted file mode 100644 index 3e930b936..000000000 --- a/codegen/_output/polkadot/pallet_multisig/mod.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $multisig: $.Codec = _codec.$589 - -export const $timepoint: $.Codec = _codec.$82 - -export interface Multisig { - when: t.pallet_multisig.Timepoint - deposit: t.u128 - depositor: t.sp_core.crypto.AccountId32 - approvals: Array -} - -export function Multisig(value: t.pallet_multisig.Multisig) { - return value -} - -export interface Timepoint { - height: t.u32 - index: t.u32 -} - -export function Timepoint(value: t.pallet_multisig.Timepoint) { - return value -} diff --git a/codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts b/codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts deleted file mode 100644 index fb559f463..000000000 --- a/codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export const $accountId32: $.Codec< - t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 -> = _codec.$373 - -export type AccountId32 = - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove -export namespace AccountId32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_core.crypto.AccountId32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/mod.ts b/codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/mod.ts deleted file mode 100644 index d2e7ee56d..000000000 --- a/codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/mod.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as $$sp_core from "./$$sp_core/mod.ts" - -export const $$$u128: $.Codec = _codec.$371 - -export const $$$u32: $.Codec = _codec.$372 - -export type $$u128 = - | t.pallet_nomination_pools.ConfigOp.$$u128.Noop - | t.pallet_nomination_pools.ConfigOp.$$u128.Set - | t.pallet_nomination_pools.ConfigOp.$$u128.Remove -export namespace $$u128 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u128 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$u128.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$u128.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$u128.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$u128.Remove { - return { type: "Remove" } - } -} - -export type $$u32 = - | t.pallet_nomination_pools.ConfigOp.$$u32.Noop - | t.pallet_nomination_pools.ConfigOp.$$u32.Set - | t.pallet_nomination_pools.ConfigOp.$$u32.Remove -export namespace $$u32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$u32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$u32.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$u32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$u32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/polkadot/pallet_nomination_pools/mod.ts b/codegen/_output/polkadot/pallet_nomination_pools/mod.ts deleted file mode 100644 index e7343ef6b..000000000 --- a/codegen/_output/polkadot/pallet_nomination_pools/mod.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as ConfigOp from "./ConfigOp/mod.ts" -export * as pallet from "./pallet.ts" - -export const $bondExtra: $.Codec = _codec.$370 - -export const $bondedPoolInner: $.Codec = _codec.$622 - -export const $poolMember: $.Codec = _codec.$617 - -export const $poolRoles: $.Codec = _codec.$623 - -export const $poolState: $.Codec = _codec.$91 - -export const $rewardPool: $.Codec = _codec.$624 - -export const $subPools: $.Codec = _codec.$625 - -export const $unbondPool: $.Codec = _codec.$626 - -export type BondExtra = - | t.pallet_nomination_pools.BondExtra.FreeBalance - | t.pallet_nomination_pools.BondExtra.Rewards -export namespace BondExtra { - export interface FreeBalance { - type: "FreeBalance" - value: t.u128 - } - export interface Rewards { - type: "Rewards" - } - export function FreeBalance( - value: t.pallet_nomination_pools.BondExtra.FreeBalance["value"], - ): t.pallet_nomination_pools.BondExtra.FreeBalance { - return { type: "FreeBalance", value } - } - export function Rewards(): t.pallet_nomination_pools.BondExtra.Rewards { - return { type: "Rewards" } - } -} - -export interface BondedPoolInner { - points: t.u128 - state: t.pallet_nomination_pools.PoolState - member_counter: t.u32 - roles: t.pallet_nomination_pools.PoolRoles -} - -export function BondedPoolInner(value: t.pallet_nomination_pools.BondedPoolInner) { - return value -} - -export interface PoolMember { - pool_id: t.u32 - points: t.u128 - last_recorded_reward_counter: t.sp_arithmetic.fixed_point.FixedU128 - unbonding_eras: Map -} - -export function PoolMember(value: t.pallet_nomination_pools.PoolMember) { - return value -} - -export interface PoolRoles { - depositor: t.sp_core.crypto.AccountId32 - root: t.sp_core.crypto.AccountId32 | undefined - nominator: t.sp_core.crypto.AccountId32 | undefined - state_toggler: t.sp_core.crypto.AccountId32 | undefined -} - -export function PoolRoles(value: t.pallet_nomination_pools.PoolRoles) { - return value -} - -export type PoolState = "Open" | "Blocked" | "Destroying" - -export interface RewardPool { - last_recorded_reward_counter: t.sp_arithmetic.fixed_point.FixedU128 - last_recorded_total_payouts: t.u128 - total_rewards_claimed: t.u128 -} - -export function RewardPool(value: t.pallet_nomination_pools.RewardPool) { - return value -} - -export interface SubPools { - no_era: t.pallet_nomination_pools.UnbondPool - with_era: Map -} - -export function SubPools(value: t.pallet_nomination_pools.SubPools) { - return value -} - -export interface UnbondPool { - points: t.u128 - balance: t.u128 -} - -export function UnbondPool(value: t.pallet_nomination_pools.UnbondPool) { - return value -} diff --git a/codegen/_output/polkadot/pallet_preimage/mod.ts b/codegen/_output/polkadot/pallet_preimage/mod.ts deleted file mode 100644 index 23fdfaa18..000000000 --- a/codegen/_output/polkadot/pallet_preimage/mod.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $requestStatus: $.Codec = _codec.$451 - -export type RequestStatus = - | t.pallet_preimage.RequestStatus.Unrequested - | t.pallet_preimage.RequestStatus.Requested -export namespace RequestStatus { - export interface Unrequested { - type: "Unrequested" - deposit: [t.sp_core.crypto.AccountId32, t.u128] - len: t.u32 - } - export interface Requested { - type: "Requested" - deposit: [t.sp_core.crypto.AccountId32, t.u128] | undefined - count: t.u32 - len: t.u32 | undefined - } - export function Unrequested( - value: Omit, - ): t.pallet_preimage.RequestStatus.Unrequested { - return { type: "Unrequested", ...value } - } - export function Requested( - value: Omit, - ): t.pallet_preimage.RequestStatus.Requested { - return { type: "Requested", ...value } - } -} diff --git a/codegen/_output/polkadot/pallet_proxy/mod.ts b/codegen/_output/polkadot/pallet_proxy/mod.ts deleted file mode 100644 index 77dc9f480..000000000 --- a/codegen/_output/polkadot/pallet_proxy/mod.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $announcement: $.Codec = _codec.$585 - -export const $proxyDefinition: $.Codec = _codec.$581 - -export interface Announcement { - real: t.sp_core.crypto.AccountId32 - call_hash: t.primitive_types.H256 - height: t.u32 -} - -export function Announcement(value: t.pallet_proxy.Announcement) { - return value -} - -export interface ProxyDefinition { - delegate: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 -} - -export function ProxyDefinition(value: t.pallet_proxy.ProxyDefinition) { - return value -} diff --git a/codegen/_output/polkadot/pallet_scheduler/mod.ts b/codegen/_output/polkadot/pallet_scheduler/mod.ts deleted file mode 100644 index 797decaad..000000000 --- a/codegen/_output/polkadot/pallet_scheduler/mod.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $scheduled: $.Codec = _codec.$179 - -export interface Scheduled { - maybe_id: Uint8Array | undefined - priority: t.u8 - call: t.frame_support.traits.preimages.Bounded - maybe_periodic: [t.u32, t.u32] | undefined - origin: t.polkadot_runtime.OriginCaller -} - -export function Scheduled(value: t.pallet_scheduler.Scheduled) { - return value -} diff --git a/codegen/_output/polkadot/pallet_staking/mod.ts b/codegen/_output/polkadot/pallet_staking/mod.ts deleted file mode 100644 index 5843c06ba..000000000 --- a/codegen/_output/polkadot/pallet_staking/mod.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet/mod.ts" -export * as slashing from "./slashing.ts" - -export const $activeEraInfo: $.Codec = _codec.$492 - -export const $eraRewardPoints: $.Codec = _codec.$495 - -export const $exposure: $.Codec = _codec.$57 - -export const $forcing: $.Codec = _codec.$499 - -export const $individualExposure: $.Codec = _codec.$60 - -export const $nominations: $.Codec = _codec.$490 - -export const $releases: $.Codec = _codec.$507 - -export const $rewardDestination: $.Codec = _codec.$203 - -export const $stakingLedger: $.Codec = _codec.$485 - -export const $unappliedSlash: $.Codec = _codec.$501 - -export const $unlockChunk: $.Codec = _codec.$487 - -export const $validatorPrefs: $.Codec = _codec.$40 - -export interface ActiveEraInfo { - index: t.u32 - start: t.u64 | undefined -} - -export function ActiveEraInfo(value: t.pallet_staking.ActiveEraInfo) { - return value -} - -export interface EraRewardPoints { - total: t.u32 - individual: Map -} - -export function EraRewardPoints(value: t.pallet_staking.EraRewardPoints) { - return value -} - -export interface Exposure { - total: t.Compact - own: t.Compact - others: Array -} - -export function Exposure(value: t.pallet_staking.Exposure) { - return value -} - -export type Forcing = "NotForcing" | "ForceNew" | "ForceNone" | "ForceAlways" - -export interface IndividualExposure { - who: t.sp_core.crypto.AccountId32 - value: t.Compact -} - -export function IndividualExposure(value: t.pallet_staking.IndividualExposure) { - return value -} - -export interface Nominations { - targets: Array - submitted_in: t.u32 - suppressed: boolean -} - -export function Nominations(value: t.pallet_staking.Nominations) { - return value -} - -export type Releases = - | "V1_0_0Ancient" - | "V2_0_0" - | "V3_0_0" - | "V4_0_0" - | "V5_0_0" - | "V6_0_0" - | "V7_0_0" - | "V8_0_0" - | "V9_0_0" - | "V10_0_0" - | "V11_0_0" - | "V12_0_0" - -export type RewardDestination = - | t.pallet_staking.RewardDestination.Staked - | t.pallet_staking.RewardDestination.Stash - | t.pallet_staking.RewardDestination.Controller - | t.pallet_staking.RewardDestination.Account - | t.pallet_staking.RewardDestination.None -export namespace RewardDestination { - export interface Staked { - type: "Staked" - } - export interface Stash { - type: "Stash" - } - export interface Controller { - type: "Controller" - } - export interface Account { - type: "Account" - value: t.sp_core.crypto.AccountId32 - } - export interface None { - type: "None" - } - export function Staked(): t.pallet_staking.RewardDestination.Staked { - return { type: "Staked" } - } - export function Stash(): t.pallet_staking.RewardDestination.Stash { - return { type: "Stash" } - } - export function Controller(): t.pallet_staking.RewardDestination.Controller { - return { type: "Controller" } - } - export function Account( - value: t.pallet_staking.RewardDestination.Account["value"], - ): t.pallet_staking.RewardDestination.Account { - return { type: "Account", value } - } - export function None(): t.pallet_staking.RewardDestination.None { - return { type: "None" } - } -} - -export interface StakingLedger { - stash: t.sp_core.crypto.AccountId32 - total: t.Compact - active: t.Compact - unlocking: Array - claimed_rewards: Array -} - -export function StakingLedger(value: t.pallet_staking.StakingLedger) { - return value -} - -export interface UnappliedSlash { - validator: t.sp_core.crypto.AccountId32 - own: t.u128 - others: Array<[t.sp_core.crypto.AccountId32, t.u128]> - reporters: Array - payout: t.u128 -} - -export function UnappliedSlash(value: t.pallet_staking.UnappliedSlash) { - return value -} - -export interface UnlockChunk { - value: t.Compact - era: t.Compact -} - -export function UnlockChunk(value: t.pallet_staking.UnlockChunk) { - return value -} - -export interface ValidatorPrefs { - commission: t.Compact - blocked: boolean -} - -export function ValidatorPrefs(value: t.pallet_staking.ValidatorPrefs) { - return value -} diff --git a/codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts b/codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts deleted file mode 100644 index 34e3f793e..000000000 --- a/codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { $ } from "../../../../../capi.ts" -import * as _codec from "../../../../../codecs.ts" -import type * as t from "../../../../../mod.ts" - -export const $perbill: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill -> = _codec.$210 - -export const $percent: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent -> = _codec.$209 - -export type Perbill = - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove -export namespace Perbill { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_arithmetic.per_things.Perbill - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove { - return { type: "Remove" } - } -} - -export type Percent = - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove -export namespace Percent { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_arithmetic.per_things.Percent - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/mod.ts b/codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/mod.ts deleted file mode 100644 index c64836e7a..000000000 --- a/codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/mod.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export * as $$sp_arithmetic from "./$$sp_arithmetic/mod.ts" - -export const $$$u128: $.Codec = _codec.$207 - -export const $$$u32: $.Codec = _codec.$208 - -export type $$u128 = - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove -export namespace $$u128 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u128 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove { - return { type: "Remove" } - } -} - -export type $$u32 = - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove -export namespace $$u32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/polkadot/pallet_staking/slashing.ts b/codegen/_output/polkadot/pallet_staking/slashing.ts deleted file mode 100644 index cc2a18d2a..000000000 --- a/codegen/_output/polkadot/pallet_staking/slashing.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $slashingSpans: $.Codec = _codec.$503 - -export const $spanRecord: $.Codec = _codec.$504 - -export interface SlashingSpans { - span_index: t.u32 - last_start: t.u32 - last_nonzero_slash: t.u32 - prior: Array -} - -export function SlashingSpans(value: t.pallet_staking.slashing.SlashingSpans) { - return value -} - -export interface SpanRecord { - slashed: t.u128 - paid_out: t.u128 -} - -export function SpanRecord(value: t.pallet_staking.slashing.SpanRecord) { - return value -} diff --git a/codegen/_output/polkadot/pallet_tips/mod.ts b/codegen/_output/polkadot/pallet_tips/mod.ts deleted file mode 100644 index 522e3fef6..000000000 --- a/codegen/_output/polkadot/pallet_tips/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $openTip: $.Codec = _codec.$598 - -export interface OpenTip { - reason: t.primitive_types.H256 - who: t.sp_core.crypto.AccountId32 - finder: t.sp_core.crypto.AccountId32 - deposit: t.u128 - closes: t.u32 | undefined - tips: Array<[t.sp_core.crypto.AccountId32, t.u128]> - finders_fee: boolean -} - -export function OpenTip(value: t.pallet_tips.OpenTip) { - return value -} diff --git a/codegen/_output/polkadot/pallet_transaction_payment/mod.ts b/codegen/_output/polkadot/pallet_transaction_payment/mod.ts deleted file mode 100644 index 9d33267c4..000000000 --- a/codegen/_output/polkadot/pallet_transaction_payment/mod.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $releases: $.Codec = _codec.$480 - -export type Releases = "V1Ancient" | "V2" diff --git a/codegen/_output/polkadot/pallet_treasury/mod.ts b/codegen/_output/polkadot/pallet_treasury/mod.ts deleted file mode 100644 index 372f4c69e..000000000 --- a/codegen/_output/polkadot/pallet_treasury/mod.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $proposal: $.Codec = _codec.$556 - -export interface Proposal { - proposer: t.sp_core.crypto.AccountId32 - value: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 - bond: t.u128 -} - -export function Proposal(value: t.pallet_treasury.Proposal) { - return value -} diff --git a/codegen/_output/polkadot/pallet_vesting/mod.ts b/codegen/_output/polkadot/pallet_vesting/mod.ts deleted file mode 100644 index e4f930af2..000000000 --- a/codegen/_output/polkadot/pallet_vesting/mod.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as vesting_info from "./vesting_info.ts" - -export const $releases: $.Codec = _codec.$565 - -export type Releases = "V0" | "V1" diff --git a/codegen/_output/polkadot/pallet_vesting/vesting_info.ts b/codegen/_output/polkadot/pallet_vesting/vesting_info.ts deleted file mode 100644 index 493a479c6..000000000 --- a/codegen/_output/polkadot/pallet_vesting/vesting_info.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $vestingInfo: $.Codec = _codec.$253 - -export interface VestingInfo { - locked: t.u128 - per_block: t.u128 - starting_block: t.u32 -} - -export function VestingInfo(value: t.pallet_vesting.vesting_info.VestingInfo) { - return value -} diff --git a/codegen/_output/polkadot/pallets/Auctions.ts b/codegen/_output/polkadot/pallets/Auctions.ts index 2a684058d..11ac25fc7 100644 --- a/codegen/_output/polkadot/pallets/Auctions.ts +++ b/codegen/_output/polkadot/pallets/Auctions.ts @@ -70,8 +70,8 @@ export const Winning = { * bid win. This amount is held throughout the range. */ export function bid( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { ...value, type: "bid" } } } @@ -80,7 +80,7 @@ export function bid( * * Can only be called by Root origin. */ -export function cancel_auction(): t.polkadot_runtime.RuntimeCall { +export function cancel_auction(): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { type: "cancel_auction" } } } @@ -92,7 +92,7 @@ export function cancel_auction(): t.polkadot_runtime.RuntimeCall { * `lease_period_index` of the initial lease period of the four that are to be auctioned. */ export function new_auction( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { ...value, type: "new_auction" } } } diff --git a/codegen/_output/polkadot/pallets/Authorship.ts b/codegen/_output/polkadot/pallets/Authorship.ts index 83838aae1..a8a3ed241 100644 --- a/codegen/_output/polkadot/pallets/Authorship.ts +++ b/codegen/_output/polkadot/pallets/Authorship.ts @@ -30,7 +30,7 @@ export const Uncles = { /** Provide a set of uncles. */ export function set_uncles( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Authorship", value: { ...value, type: "set_uncles" } } } diff --git a/codegen/_output/polkadot/pallets/Babe.ts b/codegen/_output/polkadot/pallets/Babe.ts index 622165525..60c8ec3e0 100644 --- a/codegen/_output/polkadot/pallets/Babe.ts +++ b/codegen/_output/polkadot/pallets/Babe.ts @@ -203,8 +203,8 @@ export const UnderConstruction = { * not been enacted yet. */ export function plan_config_change( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "plan_config_change" } } } @@ -215,8 +215,8 @@ export function plan_config_change( * be reported. */ export function report_equivocation( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "report_equivocation" } } } @@ -231,7 +231,7 @@ export function report_equivocation( * reporter. */ export function report_equivocation_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "report_equivocation_unsigned" } } } diff --git a/codegen/_output/polkadot/pallets/Balances.ts b/codegen/_output/polkadot/pallets/Balances.ts index e0a24d0af..94013e84d 100644 --- a/codegen/_output/polkadot/pallets/Balances.ts +++ b/codegen/_output/polkadot/pallets/Balances.ts @@ -88,8 +88,8 @@ export const TotalIssuance = { * # */ export function force_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "force_transfer" } } } @@ -99,8 +99,8 @@ export function force_transfer( * Can only be called by ROOT. */ export function force_unreserve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "force_unreserve" } } } @@ -115,8 +115,8 @@ export function force_unreserve( * The dispatch origin for this call is `root`. */ export function set_balance( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "set_balance" } } } @@ -148,8 +148,8 @@ export function set_balance( * # */ export function transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer" } } } @@ -173,8 +173,8 @@ export function transfer( * # */ export function transfer_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer_all" } } } @@ -187,7 +187,7 @@ export function transfer_all( * [`transfer`]: struct.Pallet.html#method.transfer */ export function transfer_keep_alive( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer_keep_alive" } } } diff --git a/codegen/_output/polkadot/pallets/Bounties.ts b/codegen/_output/polkadot/pallets/Bounties.ts index e28487021..38eb59c51 100644 --- a/codegen/_output/polkadot/pallets/Bounties.ts +++ b/codegen/_output/polkadot/pallets/Bounties.ts @@ -49,8 +49,8 @@ export const BountyDescriptions = { * # */ export function accept_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "accept_curator" } } } @@ -65,8 +65,8 @@ export function accept_curator( * # */ export function approve_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "approve_bounty" } } } @@ -84,8 +84,8 @@ export function approve_bounty( * # */ export function award_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "award_bounty" } } } @@ -101,8 +101,8 @@ export function award_bounty( * # */ export function claim_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "claim_bounty" } } } @@ -119,8 +119,8 @@ export function claim_bounty( * # */ export function close_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "close_bounty" } } } @@ -137,8 +137,8 @@ export function close_bounty( * # */ export function extend_bounty_expiry( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "extend_bounty_expiry" } } } @@ -157,8 +157,8 @@ export function extend_bounty_expiry( * - `description`: The description of this bounty. */ export function propose_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "propose_bounty" } } } @@ -172,8 +172,8 @@ export function propose_bounty( * # */ export function propose_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "propose_curator" } } } @@ -198,7 +198,7 @@ export function propose_curator( * # */ export function unassign_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "unassign_curator" } } } diff --git a/codegen/_output/polkadot/pallets/ChildBounties.ts b/codegen/_output/polkadot/pallets/ChildBounties.ts index 90a6ec24d..9e28106f9 100644 --- a/codegen/_output/polkadot/pallets/ChildBounties.ts +++ b/codegen/_output/polkadot/pallets/ChildBounties.ts @@ -72,8 +72,8 @@ export const ParentChildBounties = { * - `child_bounty_id`: Index of child bounty. */ export function accept_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "accept_curator" } } } @@ -99,8 +99,8 @@ export function accept_curator( * - `description`: Text description for the child-bounty. */ export function add_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "add_child_bounty" } } } @@ -124,8 +124,8 @@ export function add_child_bounty( * - `beneficiary`: Beneficiary account. */ export function award_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "award_child_bounty" } } } @@ -148,8 +148,8 @@ export function award_child_bounty( * - `child_bounty_id`: Index of child bounty. */ export function claim_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "claim_child_bounty" } } } @@ -178,8 +178,8 @@ export function claim_child_bounty( * - `child_bounty_id`: Index of child bounty. */ export function close_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "close_child_bounty" } } } @@ -201,8 +201,8 @@ export function close_child_bounty( * - `fee`: payment fee to child-bounty curator for execution. */ export function propose_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "propose_curator" } } } @@ -243,7 +243,7 @@ export function propose_curator( * - `child_bounty_id`: Index of child bounty. */ export function unassign_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "unassign_curator" } } } diff --git a/codegen/_output/polkadot/pallets/Claims.ts b/codegen/_output/polkadot/pallets/Claims.ts index 0c28984e6..edf86e907 100644 --- a/codegen/_output/polkadot/pallets/Claims.ts +++ b/codegen/_output/polkadot/pallets/Claims.ts @@ -64,8 +64,8 @@ export const Vesting = { * */ export function attest( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "attest" } } } @@ -96,8 +96,8 @@ export function attest( * */ export function claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "claim" } } } @@ -130,8 +130,8 @@ export function claim( * */ export function claim_attest( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "claim_attest" } } } @@ -153,13 +153,13 @@ export function claim_attest( * */ export function mint_claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "mint_claim" } } } export function move_claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "move_claim" } } } diff --git a/codegen/_output/polkadot/pallets/Configuration.ts b/codegen/_output/polkadot/pallets/Configuration.ts index 30cf79ed3..1406bb479 100644 --- a/codegen/_output/polkadot/pallets/Configuration.ts +++ b/codegen/_output/polkadot/pallets/Configuration.ts @@ -45,40 +45,40 @@ export const PendingConfigs = { */ export function set_bypass_consistency_check( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_bypass_consistency_check" } } } /** Set the availability period for parachains. */ export function set_chain_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_chain_availability_period" } } } /** Set the acceptance period for an included candidate. */ export function set_code_retention_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_code_retention_period" } } } /** Set the dispute conclusion by time out period. */ export function set_dispute_conclusion_by_time_out_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_conclusion_by_time_out_period" }, @@ -88,27 +88,30 @@ export function set_dispute_conclusion_by_time_out_period( /** Set the maximum number of dispute spam slots. */ export function set_dispute_max_spam_slots( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_max_spam_slots" } } } /** Set the dispute period, in number of sessions to keep for disputes. */ export function set_dispute_period( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_period" } } } /** Set the dispute post conclusion acceptance period. */ export function set_dispute_post_conclusion_acceptance_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_post_conclusion_acceptance_period" }, @@ -118,50 +121,50 @@ export function set_dispute_post_conclusion_acceptance_period( /** Set the parachain validator-group rotation frequency */ export function set_group_rotation_frequency( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_group_rotation_frequency" } } } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_capacity( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_capacity" } } } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export function set_hrmp_channel_max_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_message_size" } } } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_total_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_total_size" } } } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export function set_hrmp_max_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_message_num_per_candidate" }, @@ -171,10 +174,10 @@ export function set_hrmp_max_message_num_per_candidate( /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export function set_hrmp_max_parachain_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parachain_inbound_channels" }, @@ -184,10 +187,10 @@ export function set_hrmp_max_parachain_inbound_channels( /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export function set_hrmp_max_parachain_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parachain_outbound_channels" }, @@ -197,10 +200,10 @@ export function set_hrmp_max_parachain_outbound_channels( /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export function set_hrmp_max_parathread_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parathread_inbound_channels" }, @@ -210,10 +213,10 @@ export function set_hrmp_max_parathread_inbound_channels( /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export function set_hrmp_max_parathread_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parathread_outbound_channels" }, @@ -223,10 +226,10 @@ export function set_hrmp_max_parathread_outbound_channels( /** Sets the number of sessions after which an HRMP open channel request expires. */ export function set_hrmp_open_request_ttl( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_open_request_ttl" } } } @@ -236,64 +239,70 @@ export function set_hrmp_open_request_ttl( */ export function set_hrmp_recipient_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_recipient_deposit" } } } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export function set_hrmp_sender_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_sender_deposit" } } } /** Set the max validation code size for incoming upgrades. */ export function set_max_code_size( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_code_size" } } } /** Set the critical downward message size. */ export function set_max_downward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_downward_message_size" } } } /** Set the max head data size for paras. */ export function set_max_head_data_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_head_data_size" } } } /** Set the max POV block size for incoming upgrades. */ export function set_max_pov_size( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_pov_size" } } } /** Sets the maximum number of messages that a candidate can contain. */ export function set_max_upward_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_message_num_per_candidate" }, @@ -303,47 +312,50 @@ export function set_max_upward_message_num_per_candidate( /** Sets the maximum size of an upward message that can be sent by a candidate. */ export function set_max_upward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_message_size" } } } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_count( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_queue_count" } } } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_queue_size" } } } /** Set the maximum number of validators to use in parachain consensus. */ export function set_max_validators( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_validators" } } } /** Set the maximum number of validators to assign to any core. */ export function set_max_validators_per_core( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_validators_per_core" } } } @@ -355,10 +367,10 @@ export function set_max_validators_per_core( */ export function set_minimum_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_minimum_validation_upgrade_delay" }, @@ -367,15 +379,21 @@ export function set_minimum_validation_upgrade_delay( /** Set the total number of delay tranches. */ export function set_n_delay_tranches( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_n_delay_tranches" } } } /** Set the number of validators needed to approve a block. */ export function set_needed_approvals( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_needed_approvals" } } } @@ -384,121 +402,130 @@ export function set_needed_approvals( * Must be at least 1. */ export function set_no_show_slots( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_no_show_slots" } } } /** Set the number of parathread execution cores. */ export function set_parathread_cores( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_parathread_cores" } } } /** Set the number of retries for a particular parathread. */ export function set_parathread_retries( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_parathread_retries" } } } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export function set_pvf_checking_enabled( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_pvf_checking_enabled" } } } /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export function set_pvf_voting_ttl( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_pvf_voting_ttl" } } } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export function set_relay_vrf_modulo_samples( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_relay_vrf_modulo_samples" } } } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export function set_scheduling_lookahead( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_scheduling_lookahead" } } } /** Set the availability period for parathreads. */ export function set_thread_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_thread_availability_period" } } } /** Sets the maximum amount of weight any individual upward message may consume. */ export function set_ump_max_individual_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_ump_max_individual_weight" } } } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export function set_ump_service_total_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_ump_service_total_weight" } } } /** Set the validation upgrade cooldown. */ export function set_validation_upgrade_cooldown( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_validation_upgrade_cooldown" } } } /** Set the validation upgrade delay. */ export function set_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_validation_upgrade_delay" } } } /** Set the zeroth delay tranche width. */ export function set_zeroth_delay_tranche_width( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_zeroth_delay_tranche_width" } } } diff --git a/codegen/_output/polkadot/pallets/Council.ts b/codegen/_output/polkadot/pallets/Council.ts index d39cb07f8..c29fe873b 100644 --- a/codegen/_output/polkadot/pallets/Council.ts +++ b/codegen/_output/polkadot/pallets/Council.ts @@ -91,8 +91,8 @@ export const Voting = { * # */ export function close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "close" } } } @@ -131,8 +131,8 @@ export function close( * # */ export function close_old_weight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "close_old_weight" } } } @@ -153,8 +153,8 @@ export function close_old_weight( * # */ export function disapprove_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "disapprove_proposal" } } } @@ -172,8 +172,8 @@ export function disapprove_proposal( * # */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "execute" } } } @@ -207,8 +207,8 @@ export function execute( * # */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "propose" } } } @@ -247,8 +247,8 @@ export function propose( * # */ export function set_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "set_members" } } } @@ -270,7 +270,7 @@ export function set_members( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/polkadot/pallets/Crowdloan.ts b/codegen/_output/polkadot/pallets/Crowdloan.ts index a8dbd2785..688c6953b 100644 --- a/codegen/_output/polkadot/pallets/Crowdloan.ts +++ b/codegen/_output/polkadot/pallets/Crowdloan.ts @@ -47,8 +47,8 @@ export const NextFundIndex = { * Origin must be Signed, and the user must have contributed to the crowdloan. */ export function add_memo( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "add_memo" } } } @@ -57,8 +57,8 @@ export function add_memo( * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "contribute" } } } @@ -67,8 +67,8 @@ export function contribute( * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "contribute_all" } } } @@ -79,15 +79,15 @@ export function contribute_all( * by the parachain manager. */ export function create( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "create" } } } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export function dissolve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "dissolve" } } } @@ -97,8 +97,8 @@ export function dissolve( * Can only be called by Root origin. */ export function edit( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "edit" } } } @@ -108,8 +108,8 @@ export function edit( * Origin must be Signed, and the fund has non-zero raise. */ export function poke( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "poke" } } } @@ -121,8 +121,8 @@ export function poke( * Origin must be signed, but can come from anyone. */ export function refund( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "refund" } } } @@ -146,7 +146,7 @@ export function refund( * - `index`: The parachain to whose crowdloan the contribution was made. */ export function withdraw( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "withdraw" } } } diff --git a/codegen/_output/polkadot/pallets/Democracy.ts b/codegen/_output/polkadot/pallets/Democracy.ts index d2b0b6df4..6efe7333f 100644 --- a/codegen/_output/polkadot/pallets/Democracy.ts +++ b/codegen/_output/polkadot/pallets/Democracy.ts @@ -146,8 +146,8 @@ export const VotingOf = { * reasonable value). */ export function blacklist( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "blacklist" } } } @@ -161,8 +161,8 @@ export function blacklist( * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ export function cancel_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "cancel_proposal" } } } @@ -176,8 +176,8 @@ export function cancel_proposal( * # Weight: `O(1)`. */ export function cancel_referendum( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "cancel_referendum" } } } @@ -188,7 +188,7 @@ export function cancel_referendum( * * Weight: `O(1)`. */ -export function clear_public_proposals(): t.polkadot_runtime.RuntimeCall { +export function clear_public_proposals(): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { type: "clear_public_proposals" } } } @@ -215,8 +215,8 @@ export function clear_public_proposals(): t.polkadot_runtime.RuntimeCall { * voted on. Weight is charged as if maximum votes. */ export function delegate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "delegate" } } } @@ -231,8 +231,8 @@ export function delegate( * Weight: `O(1)`. */ export function emergency_cancel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "emergency_cancel" } } } @@ -245,8 +245,8 @@ export function emergency_cancel( * - `proposal_hash`: The preimage hash of the proposal. */ export function external_propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose" } } } @@ -264,8 +264,8 @@ export function external_propose( * Weight: `O(1)` */ export function external_propose_default( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose_default" } } } @@ -283,8 +283,8 @@ export function external_propose_default( * Weight: `O(1)` */ export function external_propose_majority( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose_majority" } } } @@ -307,8 +307,8 @@ export function external_propose_majority( * Weight: `O(1)` */ export function fast_track( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "fast_track" } } } @@ -324,8 +324,8 @@ export function fast_track( * Emits `Proposed`. */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "propose" } } } @@ -347,8 +347,8 @@ export function propose( * Weight is calculated for the maximum number of vote. */ export function remove_other_vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "remove_other_vote" } } } @@ -382,8 +382,8 @@ export function remove_other_vote( * Weight is calculated for the maximum number of vote. */ export function remove_vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "remove_vote" } } } @@ -396,8 +396,8 @@ export function remove_vote( * - `proposal`: The index of the proposal to second. */ export function second( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "second" } } } @@ -415,7 +415,7 @@ export function second( * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ -export function undelegate(): t.polkadot_runtime.RuntimeCall { +export function undelegate(): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { type: "undelegate" } } } @@ -429,8 +429,8 @@ export function undelegate(): t.polkadot_runtime.RuntimeCall { * Weight: `O(R)` with R number of vote of target. */ export function unlock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "unlock" } } } @@ -446,8 +446,8 @@ export function unlock( * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ export function veto_external( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "veto_external" } } } @@ -461,7 +461,7 @@ export function veto_external( * - `vote`: The vote configuration. */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/polkadot/pallets/ElectionProviderMultiPhase.ts b/codegen/_output/polkadot/pallets/ElectionProviderMultiPhase.ts index b916efffe..3a438e083 100644 --- a/codegen/_output/polkadot/pallets/ElectionProviderMultiPhase.ts +++ b/codegen/_output/polkadot/pallets/ElectionProviderMultiPhase.ts @@ -142,8 +142,8 @@ export const SnapshotMetadata = { * calling [`Call::set_emergency_election_result`]. */ export function governance_fallback( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "governance_fallback" } } } @@ -159,10 +159,10 @@ export function governance_fallback( */ export function set_emergency_election_result( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "set_emergency_election_result" }, @@ -178,10 +178,10 @@ export function set_emergency_election_result( */ export function set_minimum_untrusted_score( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "set_minimum_untrusted_score" }, @@ -200,8 +200,8 @@ export function set_minimum_untrusted_score( * might be rewarded, slashed, or get all or a part of the deposit back. */ export function submit( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "submit" } } } @@ -222,7 +222,7 @@ export function submit( * No deposit or reward is associated with this submission. */ export function submit_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "submit_unsigned" } } } diff --git a/codegen/_output/polkadot/pallets/FastUnstake.ts b/codegen/_output/polkadot/pallets/FastUnstake.ts index 00d6afe84..b659ceb40 100644 --- a/codegen/_output/polkadot/pallets/FastUnstake.ts +++ b/codegen/_output/polkadot/pallets/FastUnstake.ts @@ -55,8 +55,8 @@ export const Queue = { * Dispatch origin must be signed by the [`Config::ControlOrigin`]. */ export function control( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { ...value, type: "control" } } } @@ -69,7 +69,7 @@ export function control( * calling `register_fast_unstake`. This should probably be followed by a call to * `Staking::rebond`. */ -export function deregister(): t.polkadot_runtime.RuntimeCall { +export function deregister(): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { type: "deregister" } } } @@ -93,6 +93,6 @@ export function deregister(): t.polkadot_runtime.RuntimeCall { * the normal staking system, but they lose part of their unbonding chunks due to consuming * the chain's resources. */ -export function register_fast_unstake(): t.polkadot_runtime.RuntimeCall { +export function register_fast_unstake(): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { type: "register_fast_unstake" } } } diff --git a/codegen/_output/polkadot/pallets/Grandpa.ts b/codegen/_output/polkadot/pallets/Grandpa.ts index cc48e77eb..1b9dc06cf 100644 --- a/codegen/_output/polkadot/pallets/Grandpa.ts +++ b/codegen/_output/polkadot/pallets/Grandpa.ts @@ -79,8 +79,8 @@ export const State = { * Only callable by root. */ export function note_stalled( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "note_stalled" } } } @@ -91,8 +91,8 @@ export function note_stalled( * will be reported. */ export function report_equivocation( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "report_equivocation" } } } @@ -108,7 +108,7 @@ export function report_equivocation( * reporter. */ export function report_equivocation_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "report_equivocation_unsigned" } } } diff --git a/codegen/_output/polkadot/pallets/Hrmp.ts b/codegen/_output/polkadot/pallets/Hrmp.ts index 379910e66..574868fe8 100644 --- a/codegen/_output/polkadot/pallets/Hrmp.ts +++ b/codegen/_output/polkadot/pallets/Hrmp.ts @@ -172,8 +172,8 @@ export const HrmpWatermarks = { * Number of inbound and outbound channels for `para` must be provided as witness data of weighing. */ export function force_clean_hrmp( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_clean_hrmp" } } } @@ -186,8 +186,8 @@ export function force_clean_hrmp( * Relay Chain, e.g. a common good parachain. */ export function force_open_hrmp_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_open_hrmp_channel" } } } @@ -200,8 +200,11 @@ export function force_open_hrmp_channel( * Total number of closing channels must be provided as witness data of weighing. */ export function force_process_hrmp_close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_process_hrmp_close" } } } @@ -214,8 +217,8 @@ export function force_process_hrmp_close( * Total number of opening channels must be provided as witness data of weighing. */ export function force_process_hrmp_open( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_process_hrmp_open" } } } @@ -225,8 +228,11 @@ export function force_process_hrmp_open( * The channel will be opened only on the next session boundary. */ export function hrmp_accept_open_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_accept_open_channel" } } } @@ -241,8 +247,11 @@ export function hrmp_accept_open_channel( * witness data. */ export function hrmp_cancel_open_request( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_cancel_open_request" } } } @@ -253,8 +262,8 @@ export function hrmp_cancel_open_request( * The closure can only happen on a session change. */ export function hrmp_close_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_close_channel" } } } @@ -271,7 +280,7 @@ export function hrmp_close_channel( * change. */ export function hrmp_init_open_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_init_open_channel" } } } diff --git a/codegen/_output/polkadot/pallets/Identity.ts b/codegen/_output/polkadot/pallets/Identity.ts index d0caa8037..c538e7b1e 100644 --- a/codegen/_output/polkadot/pallets/Identity.ts +++ b/codegen/_output/polkadot/pallets/Identity.ts @@ -72,8 +72,8 @@ export const SuperOf = { * # */ export function add_registrar( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "add_registrar" } } } @@ -87,8 +87,8 @@ export function add_registrar( * sub identity of `sub`. */ export function add_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "add_sub" } } } @@ -112,8 +112,8 @@ export function add_sub( * # */ export function cancel_request( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "cancel_request" } } } @@ -137,7 +137,7 @@ export function cancel_request( * - One event. * # */ -export function clear_identity(): t.polkadot_runtime.RuntimeCall { +export function clear_identity(): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { type: "clear_identity" } } } @@ -163,8 +163,8 @@ export function clear_identity(): t.polkadot_runtime.RuntimeCall { * # */ export function kill_identity( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "kill_identity" } } } @@ -191,8 +191,8 @@ export function kill_identity( * # */ export function provide_judgement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "provide_judgement" } } } @@ -208,7 +208,7 @@ export function provide_judgement( * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ -export function quit_sub(): t.polkadot_runtime.RuntimeCall { +export function quit_sub(): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { type: "quit_sub" } } } @@ -222,8 +222,8 @@ export function quit_sub(): t.polkadot_runtime.RuntimeCall { * sub identity of `sub`. */ export function remove_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "remove_sub" } } } @@ -234,8 +234,8 @@ export function remove_sub( * sub identity of `sub`. */ export function rename_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "rename_sub" } } } @@ -265,8 +265,8 @@ export function rename_sub( * # */ export function request_judgement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "request_judgement" } } } @@ -286,8 +286,8 @@ export function request_judgement( * # */ export function set_account_id( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_account_id" } } } @@ -307,8 +307,8 @@ export function set_account_id( * # */ export function set_fee( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_fee" } } } @@ -328,8 +328,8 @@ export function set_fee( * # */ export function set_fields( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_fields" } } } @@ -355,8 +355,8 @@ export function set_fields( * # */ export function set_identity( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_identity" } } } @@ -384,7 +384,7 @@ export function set_identity( * # */ export function set_subs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_subs" } } } diff --git a/codegen/_output/polkadot/pallets/ImOnline.ts b/codegen/_output/polkadot/pallets/ImOnline.ts index b74de1209..17433d668 100644 --- a/codegen/_output/polkadot/pallets/ImOnline.ts +++ b/codegen/_output/polkadot/pallets/ImOnline.ts @@ -67,7 +67,7 @@ export const ReceivedHeartbeats = { * # */ export function heartbeat( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ImOnline", value: { ...value, type: "heartbeat" } } } diff --git a/codegen/_output/polkadot/pallets/Indices.ts b/codegen/_output/polkadot/pallets/Indices.ts index ef5567b14..6c48c3a11 100644 --- a/codegen/_output/polkadot/pallets/Indices.ts +++ b/codegen/_output/polkadot/pallets/Indices.ts @@ -32,8 +32,8 @@ export const Accounts = { * # */ export function claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "claim" } } } @@ -61,8 +61,8 @@ export function claim( * # */ export function force_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "force_transfer" } } } @@ -87,8 +87,8 @@ export function force_transfer( * # */ export function free( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "free" } } } @@ -113,8 +113,8 @@ export function free( * # */ export function freeze( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "freeze" } } } @@ -141,7 +141,7 @@ export function freeze( * # */ export function transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "transfer" } } } diff --git a/codegen/_output/polkadot/pallets/Initializer.ts b/codegen/_output/polkadot/pallets/Initializer.ts index 5c4fc4498..6bc8b433b 100644 --- a/codegen/_output/polkadot/pallets/Initializer.ts +++ b/codegen/_output/polkadot/pallets/Initializer.ts @@ -42,7 +42,7 @@ export const HasInitialized = { * chain are valid and should be finalized. */ export function force_approve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Initializer", value: { ...value, type: "force_approve" } } } diff --git a/codegen/_output/polkadot/pallets/Multisig.ts b/codegen/_output/polkadot/pallets/Multisig.ts index 326dd142b..361443f31 100644 --- a/codegen/_output/polkadot/pallets/Multisig.ts +++ b/codegen/_output/polkadot/pallets/Multisig.ts @@ -48,8 +48,8 @@ export const Multisigs = { * # */ export function approve_as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "approve_as_multi" } } } @@ -101,8 +101,8 @@ export function approve_as_multi( * # */ export function as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "as_multi" } } } @@ -125,8 +125,8 @@ export function as_multi( * # */ export function as_multi_threshold_1( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "as_multi_threshold_1" } } } @@ -159,7 +159,7 @@ export function as_multi_threshold_1( * # */ export function cancel_as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "cancel_as_multi" } } } diff --git a/codegen/_output/polkadot/pallets/NominationPools.ts b/codegen/_output/polkadot/pallets/NominationPools.ts index c524076d6..b27120267 100644 --- a/codegen/_output/polkadot/pallets/NominationPools.ts +++ b/codegen/_output/polkadot/pallets/NominationPools.ts @@ -201,8 +201,8 @@ export const SubPoolsStorage = { * Bonding extra funds implies an automatic payout of all pending rewards as well. */ export function bond_extra( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "bond_extra" } } } @@ -216,8 +216,8 @@ export function bond_extra( * account. */ export function chill( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "chill" } } } @@ -229,7 +229,7 @@ export function chill( * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". */ -export function claim_payout(): t.polkadot_runtime.RuntimeCall { +export function claim_payout(): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { type: "claim_payout" } } } @@ -253,8 +253,8 @@ export function claim_payout(): t.polkadot_runtime.RuntimeCall { * needs at have at least `amount + existential_deposit` transferrable. */ export function create( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "create" } } } @@ -271,8 +271,8 @@ export function create( * * Only a pool with [`PoolState::Open`] can be joined */ export function join( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "join" } } } @@ -286,8 +286,8 @@ export function join( * account. */ export function nominate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "nominate" } } } @@ -300,8 +300,8 @@ export function nominate( * they attempt to unbond. */ export function pool_withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "pool_withdraw_unbonded" } } } @@ -318,8 +318,8 @@ export function pool_withdraw_unbonded( * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. */ export function set_configs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_configs" } } } @@ -330,8 +330,8 @@ export function set_configs( * of the pool. */ export function set_metadata( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_metadata" } } } @@ -348,8 +348,8 @@ export function set_metadata( * then the state of the pool can be permissionlessly changed to `Destroying`. */ export function set_state( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_state" } } } @@ -384,8 +384,8 @@ export function set_state( * `NoMoreChunks` error from the staking system. */ export function unbond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "unbond" } } } @@ -399,8 +399,8 @@ export function unbond( * most pool members and they should be informed of changes to pool roles. */ export function update_roles( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "update_roles" } } } @@ -426,7 +426,7 @@ export function update_roles( * If the target is the depositor, the pool will be destroyed. */ export function withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "withdraw_unbonded" } } } diff --git a/codegen/_output/polkadot/pallets/ParaInherent.ts b/codegen/_output/polkadot/pallets/ParaInherent.ts index 99714c021..587241087 100644 --- a/codegen/_output/polkadot/pallets/ParaInherent.ts +++ b/codegen/_output/polkadot/pallets/ParaInherent.ts @@ -28,7 +28,7 @@ export const OnChainVotes = { /** Enter the paras inherent. This will process bitfields and backed candidates. */ export function enter( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ParaInherent", value: { ...value, type: "enter" } } } diff --git a/codegen/_output/polkadot/pallets/Paras.ts b/codegen/_output/polkadot/pallets/Paras.ts index 09d9e3990..89d407f49 100644 --- a/codegen/_output/polkadot/pallets/Paras.ts +++ b/codegen/_output/polkadot/pallets/Paras.ts @@ -265,15 +265,18 @@ export const UpgradeRestrictionSignal = { * the go-ahead signal while the PVF pre-checking feature is enabled. */ export function add_trusted_validation_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "add_trusted_validation_code" } } } /** Note a new block head for para within the context of the current block. */ export function force_note_new_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_note_new_head" } } } @@ -283,29 +286,32 @@ export function force_note_new_head( * initializer... */ export function force_queue_action( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_queue_action" } } } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export function force_schedule_code_upgrade( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_schedule_code_upgrade" } } } /** Set the storage for the parachain validation code immediately. */ export function force_set_current_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_set_current_code" } } } /** Set the storage for the current parachain head data immediately. */ export function force_set_current_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_set_current_head" } } } @@ -314,8 +320,11 @@ export function force_set_current_head( * enacts the results if that was the last vote before achieving the supermajority. */ export function include_pvf_check_statement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "include_pvf_check_statement" } } } @@ -327,7 +336,10 @@ export function include_pvf_check_statement( * dispatching. */ export function poke_unused_validation_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "poke_unused_validation_code" } } } diff --git a/codegen/_output/polkadot/pallets/ParasDisputes.ts b/codegen/_output/polkadot/pallets/ParasDisputes.ts index 599086069..6bac6f10b 100644 --- a/codegen/_output/polkadot/pallets/ParasDisputes.ts +++ b/codegen/_output/polkadot/pallets/ParasDisputes.ts @@ -64,6 +64,6 @@ export const SpamSlots = { value: _codec.$94, } -export function force_unfreeze(): t.polkadot_runtime.RuntimeCall { +export function force_unfreeze(): t.types.polkadot_runtime.RuntimeCall { return { type: "ParasDisputes", value: "force_unfreeze" } } diff --git a/codegen/_output/polkadot/pallets/PhragmenElection.ts b/codegen/_output/polkadot/pallets/PhragmenElection.ts index 5c8d82e72..e68ca3af3 100644 --- a/codegen/_output/polkadot/pallets/PhragmenElection.ts +++ b/codegen/_output/polkadot/pallets/PhragmenElection.ts @@ -80,8 +80,8 @@ export const Voting = { * # */ export function clean_defunct_voters( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "clean_defunct_voters" } } } @@ -106,8 +106,8 @@ export function clean_defunct_voters( * # */ export function remove_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "remove_member" } } } @@ -118,7 +118,7 @@ export function remove_member( * * The dispatch origin of this call must be signed and be a voter. */ -export function remove_voter(): t.polkadot_runtime.RuntimeCall { +export function remove_voter(): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { type: "remove_voter" } } } @@ -143,8 +143,8 @@ export function remove_voter(): t.polkadot_runtime.RuntimeCall { * # */ export function renounce_candidacy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "renounce_candidacy" } } } @@ -166,8 +166,8 @@ export function renounce_candidacy( * # */ export function submit_candidacy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "submit_candidacy" } } } @@ -197,7 +197,7 @@ export function submit_candidacy( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/polkadot/pallets/Preimage.ts b/codegen/_output/polkadot/pallets/Preimage.ts index 9a21906ce..669848d8a 100644 --- a/codegen/_output/polkadot/pallets/Preimage.ts +++ b/codegen/_output/polkadot/pallets/Preimage.ts @@ -26,8 +26,8 @@ export const StatusFor = { * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ export function note_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "note_preimage" } } } @@ -38,8 +38,8 @@ export function note_preimage( * a user may have paid, and take the control of the preimage out of their hands. */ export function request_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "request_preimage" } } } @@ -52,8 +52,8 @@ export function request_preimage( * - `len`: The length of the preimage of `hash`. */ export function unnote_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "unnote_preimage" } } } @@ -63,7 +63,7 @@ export function unnote_preimage( * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ export function unrequest_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "unrequest_preimage" } } } diff --git a/codegen/_output/polkadot/pallets/Proxy.ts b/codegen/_output/polkadot/pallets/Proxy.ts index 4c78c42c1..667c8dcc9 100644 --- a/codegen/_output/polkadot/pallets/Proxy.ts +++ b/codegen/_output/polkadot/pallets/Proxy.ts @@ -35,8 +35,8 @@ export const Proxies = { * zero. */ export function add_proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "add_proxy" } } } @@ -58,8 +58,8 @@ export function add_proxy( * - `call_hash`: The hash of the call to be made by the `real` account. */ export function announce( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "announce" } } } @@ -84,8 +84,8 @@ export function announce( * Fails if there are insufficient funds to pay for deposit. */ export function create_pure( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "create_pure" } } } @@ -108,8 +108,8 @@ export function create_pure( * account whose `pure` call has corresponding parameters. */ export function kill_pure( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "kill_pure" } } } @@ -127,8 +127,8 @@ export function kill_pure( * - `call`: The call to be made by the `real` account. */ export function proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "proxy" } } } @@ -146,8 +146,8 @@ export function proxy( * - `call`: The call to be made by the `real` account. */ export function proxy_announced( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "proxy_announced" } } } @@ -164,8 +164,8 @@ export function proxy_announced( * - `call_hash`: The hash of the call to be made. */ export function reject_announcement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "reject_announcement" } } } @@ -182,8 +182,8 @@ export function reject_announcement( * - `call_hash`: The hash of the call to be made by the `real` account. */ export function remove_announcement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "remove_announcement" } } } @@ -195,7 +195,7 @@ export function remove_announcement( * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ -export function remove_proxies(): t.polkadot_runtime.RuntimeCall { +export function remove_proxies(): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { type: "remove_proxies" } } } @@ -209,7 +209,7 @@ export function remove_proxies(): t.polkadot_runtime.RuntimeCall { * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ export function remove_proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "remove_proxy" } } } diff --git a/codegen/_output/polkadot/pallets/Registrar.ts b/codegen/_output/polkadot/pallets/Registrar.ts index 23b3d3c87..4a50b1a52 100644 --- a/codegen/_output/polkadot/pallets/Registrar.ts +++ b/codegen/_output/polkadot/pallets/Registrar.ts @@ -41,8 +41,8 @@ export const PendingSwap = { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function add_lock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "add_lock" } } } @@ -52,8 +52,8 @@ export function add_lock( * The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread. */ export function deregister( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "deregister" } } } @@ -66,8 +66,8 @@ export function deregister( * can be registered, including sub-1000 IDs which are System Parachains. */ export function force_register( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "force_register" } } } @@ -88,8 +88,8 @@ export function force_register( * The `Registered` event is emitted in case of success. */ export function register( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "register" } } } @@ -100,8 +100,8 @@ export function register( * Can only be called by the Root origin or the parachain. */ export function remove_lock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "remove_lock" } } } @@ -121,7 +121,7 @@ export function remove_lock( * ## Events * The `Reserved` event is emitted in case of success, which provides the ID reserved for use. */ -export function reserve(): t.polkadot_runtime.RuntimeCall { +export function reserve(): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { type: "reserve" } } } @@ -131,8 +131,11 @@ export function reserve(): t.polkadot_runtime.RuntimeCall { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function schedule_code_upgrade( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "schedule_code_upgrade" } } } @@ -142,8 +145,8 @@ export function schedule_code_upgrade( * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function set_current_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "set_current_head" } } } @@ -161,7 +164,7 @@ export function set_current_head( * and the auction deposit are switched. */ export function swap( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "swap" } } } diff --git a/codegen/_output/polkadot/pallets/Scheduler.ts b/codegen/_output/polkadot/pallets/Scheduler.ts index e499f3a60..98ed2fb19 100644 --- a/codegen/_output/polkadot/pallets/Scheduler.ts +++ b/codegen/_output/polkadot/pallets/Scheduler.ts @@ -35,22 +35,22 @@ export const Lookup = { /** Cancel an anonymously scheduled task. */ export function cancel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "cancel" } } } /** Cancel a named scheduled task. */ export function cancel_named( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "cancel_named" } } } /** Anonymously schedule a task. */ export function schedule( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule" } } } @@ -62,15 +62,15 @@ export function schedule( * # */ export function schedule_after( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_after" } } } /** Schedule a named task. */ export function schedule_named( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_named" } } } @@ -82,7 +82,7 @@ export function schedule_named( * # */ export function schedule_named_after( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_named_after" } } } diff --git a/codegen/_output/polkadot/pallets/Session.ts b/codegen/_output/polkadot/pallets/Session.ts index aaef74b84..d55559324 100644 --- a/codegen/_output/polkadot/pallets/Session.ts +++ b/codegen/_output/polkadot/pallets/Session.ts @@ -95,7 +95,7 @@ export const Validators = { * - DbWrites per key id: `KeyOwner` * # */ -export function purge_keys(): t.polkadot_runtime.RuntimeCall { +export function purge_keys(): t.types.polkadot_runtime.RuntimeCall { return { type: "Session", value: { type: "purge_keys" } } } @@ -116,7 +116,7 @@ export function purge_keys(): t.polkadot_runtime.RuntimeCall { * # */ export function set_keys( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Session", value: { ...value, type: "set_keys" } } } diff --git a/codegen/_output/polkadot/pallets/Slots.ts b/codegen/_output/polkadot/pallets/Slots.ts index f4380df60..c45355a0e 100644 --- a/codegen/_output/polkadot/pallets/Slots.ts +++ b/codegen/_output/polkadot/pallets/Slots.ts @@ -34,8 +34,8 @@ export const Leases = { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function clear_all_leases( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "clear_all_leases" } } } @@ -46,8 +46,8 @@ export function clear_all_leases( * The dispatch origin for this call must match `T::ForceOrigin`. */ export function force_lease( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "force_lease" } } } @@ -61,7 +61,7 @@ export function force_lease( * Origin must be signed, but can be called by anyone. */ export function trigger_onboard( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "trigger_onboard" } } } diff --git a/codegen/_output/polkadot/pallets/Staking.ts b/codegen/_output/polkadot/pallets/Staking.ts index 0797b8b1d..2ab1664ce 100644 --- a/codegen/_output/polkadot/pallets/Staking.ts +++ b/codegen/_output/polkadot/pallets/Staking.ts @@ -479,8 +479,8 @@ export const Validators = { * # */ export function bond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "bond" } } } @@ -502,8 +502,8 @@ export function bond( * # */ export function bond_extra( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "bond_extra" } } } @@ -515,8 +515,8 @@ export function bond_extra( * Parameters: era and indices of the slashes for that era to kill. */ export function cancel_deferred_slash( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "cancel_deferred_slash" } } } @@ -533,7 +533,7 @@ export function cancel_deferred_slash( * - Writes are limited to the `origin` account key. * # */ -export function chill(): t.polkadot_runtime.RuntimeCall { +export function chill(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "chill" } } } @@ -566,8 +566,8 @@ export function chill(): t.polkadot_runtime.RuntimeCall { * who do not satisfy these requirements. */ export function chill_other( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "chill_other" } } } @@ -577,8 +577,8 @@ export function chill_other( * can call this. */ export function force_apply_min_commission( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "force_apply_min_commission" } } } @@ -600,7 +600,7 @@ export function force_apply_min_commission( * - Write ForceEra * # */ -export function force_new_era(): t.polkadot_runtime.RuntimeCall { +export function force_new_era(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_new_era" } } } @@ -615,7 +615,7 @@ export function force_new_era(): t.polkadot_runtime.RuntimeCall { * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ -export function force_new_era_always(): t.polkadot_runtime.RuntimeCall { +export function force_new_era_always(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_new_era_always" } } } @@ -636,7 +636,7 @@ export function force_new_era_always(): t.polkadot_runtime.RuntimeCall { * - Write: ForceEra * # */ -export function force_no_eras(): t.polkadot_runtime.RuntimeCall { +export function force_no_eras(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_no_eras" } } } @@ -646,8 +646,8 @@ export function force_no_eras(): t.polkadot_runtime.RuntimeCall { * The dispatch origin must be Root. */ export function force_unstake( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "force_unstake" } } } @@ -661,8 +661,8 @@ export function force_unstake( * # */ export function increase_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "increase_validator_count" } } } @@ -680,8 +680,8 @@ export function increase_validator_count( * block any further nominations. */ export function kick( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "kick" } } } @@ -699,8 +699,8 @@ export function kick( * # */ export function nominate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "nominate" } } } @@ -728,8 +728,8 @@ export function nominate( * # */ export function payout_stakers( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "payout_stakers" } } } @@ -748,8 +748,8 @@ export function payout_stakers( * Refunds the transaction fees upon successful execution. */ export function reap_stash( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "reap_stash" } } } @@ -765,8 +765,8 @@ export function reap_stash( * # */ export function rebond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "rebond" } } } @@ -780,8 +780,8 @@ export function rebond( * # */ export function scale_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "scale_validator_count" } } } @@ -804,8 +804,8 @@ export function scale_validator_count( * # */ export function set_controller( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_controller" } } } @@ -815,8 +815,8 @@ export function set_controller( * The dispatch origin must be Root. */ export function set_invulnerables( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_invulnerables" } } } @@ -839,8 +839,8 @@ export function set_invulnerables( * # */ export function set_payee( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_payee" } } } @@ -864,8 +864,8 @@ export function set_payee( * to kick people under the new limits, `chill_other` should be called. */ export function set_staking_configs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_staking_configs" } } } @@ -880,8 +880,8 @@ export function set_staking_configs( * # */ export function set_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_validator_count" } } } @@ -907,8 +907,8 @@ export function set_validator_count( * See also [`Call::withdraw_unbonded`]. */ export function unbond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "unbond" } } } @@ -920,8 +920,8 @@ export function unbond( * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ export function validate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "validate" } } } @@ -943,7 +943,7 @@ export function validate( * # */ export function withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "withdraw_unbonded" } } } diff --git a/codegen/_output/polkadot/pallets/System.ts b/codegen/_output/polkadot/pallets/System.ts index 16aee5b15..1cf99909c 100644 --- a/codegen/_output/polkadot/pallets/System.ts +++ b/codegen/_output/polkadot/pallets/System.ts @@ -170,8 +170,8 @@ export const UpgradedToU32RefCount = { /** A dispatch that will fill the block weight up to the given ratio. */ export function fill_block( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "fill_block" } } } @@ -182,15 +182,15 @@ export function fill_block( * the prefix we are removing to accurately calculate the weight of this function. */ export function kill_prefix( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "kill_prefix" } } } /** Kill some items from storage. */ export function kill_storage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "kill_storage" } } } @@ -202,15 +202,15 @@ export function kill_storage( * # */ export function remark( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "remark" } } } /** Make some on-chain remark and emit event. */ export function remark_with_event( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "remark_with_event" } } } @@ -229,8 +229,8 @@ export function remark_with_event( * # */ export function set_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_code" } } } @@ -246,21 +246,21 @@ export function set_code( * block. # */ export function set_code_without_checks( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_code_without_checks" } } } /** Set the number of pages in the WebAssembly environment's heap. */ export function set_heap_pages( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_heap_pages" } } } /** Set some items of storage. */ export function set_storage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_storage" } } } diff --git a/codegen/_output/polkadot/pallets/TechnicalCommittee.ts b/codegen/_output/polkadot/pallets/TechnicalCommittee.ts index ef8a8713e..6673173eb 100644 --- a/codegen/_output/polkadot/pallets/TechnicalCommittee.ts +++ b/codegen/_output/polkadot/pallets/TechnicalCommittee.ts @@ -91,8 +91,8 @@ export const Voting = { * # */ export function close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "close" } } } @@ -131,8 +131,8 @@ export function close( * # */ export function close_old_weight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "close_old_weight" } } } @@ -153,8 +153,8 @@ export function close_old_weight( * # */ export function disapprove_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "disapprove_proposal" } } } @@ -172,8 +172,8 @@ export function disapprove_proposal( * # */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "execute" } } } @@ -207,8 +207,8 @@ export function execute( * # */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "propose" } } } @@ -247,8 +247,8 @@ export function propose( * # */ export function set_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "set_members" } } } @@ -270,7 +270,7 @@ export function set_members( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/polkadot/pallets/TechnicalMembership.ts b/codegen/_output/polkadot/pallets/TechnicalMembership.ts index 6c7460838..b5a5331f1 100644 --- a/codegen/_output/polkadot/pallets/TechnicalMembership.ts +++ b/codegen/_output/polkadot/pallets/TechnicalMembership.ts @@ -25,8 +25,8 @@ export const Prime = { * May only be called from `T::AddOrigin`. */ export function add_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "add_member" } } } @@ -38,8 +38,8 @@ export function add_member( * Prime membership is passed from the origin account to `new`, if extant. */ export function change_key( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "change_key" } } } @@ -48,7 +48,7 @@ export function change_key( * * May only be called from `T::PrimeOrigin`. */ -export function clear_prime(): t.polkadot_runtime.RuntimeCall { +export function clear_prime(): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { type: "clear_prime" } } } @@ -58,8 +58,8 @@ export function clear_prime(): t.polkadot_runtime.RuntimeCall { * May only be called from `T::RemoveOrigin`. */ export function remove_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "remove_member" } } } @@ -70,8 +70,8 @@ export function remove_member( * May only be called from `T::ResetOrigin`. */ export function reset_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "reset_members" } } } @@ -81,8 +81,8 @@ export function reset_members( * May only be called from `T::PrimeOrigin`. */ export function set_prime( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "set_prime" } } } @@ -94,7 +94,7 @@ export function set_prime( * Prime membership is *not* passed from `remove` to `add`, if extant. */ export function swap_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "swap_member" } } } diff --git a/codegen/_output/polkadot/pallets/Timestamp.ts b/codegen/_output/polkadot/pallets/Timestamp.ts index 7d2fbc242..98f831d32 100644 --- a/codegen/_output/polkadot/pallets/Timestamp.ts +++ b/codegen/_output/polkadot/pallets/Timestamp.ts @@ -32,7 +32,7 @@ export const Now = { type: "Plain", modifier: "Default", hashers: [], key: [], v * # */ export function set( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Timestamp", value: { ...value, type: "set" } } } diff --git a/codegen/_output/polkadot/pallets/Tips.ts b/codegen/_output/polkadot/pallets/Tips.ts index b4eaa8e83..6e7639c2f 100644 --- a/codegen/_output/polkadot/pallets/Tips.ts +++ b/codegen/_output/polkadot/pallets/Tips.ts @@ -46,8 +46,8 @@ export const Tips = { * # */ export function close_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "close_tip" } } } @@ -73,8 +73,8 @@ export function close_tip( * # */ export function report_awesome( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "report_awesome" } } } @@ -100,8 +100,8 @@ export function report_awesome( * # */ export function retract_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "retract_tip" } } } @@ -120,8 +120,8 @@ export function retract_tip( * # */ export function slash_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "slash_tip" } } } @@ -152,8 +152,8 @@ export function slash_tip( * # */ export function tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "tip" } } } @@ -182,7 +182,7 @@ export function tip( * # */ export function tip_new( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "tip_new" } } } diff --git a/codegen/_output/polkadot/pallets/Treasury.ts b/codegen/_output/polkadot/pallets/Treasury.ts index a65f54575..1f93620f2 100644 --- a/codegen/_output/polkadot/pallets/Treasury.ts +++ b/codegen/_output/polkadot/pallets/Treasury.ts @@ -42,8 +42,8 @@ export const Proposals = { * # */ export function approve_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "approve_proposal" } } } @@ -59,8 +59,8 @@ export function approve_proposal( * # */ export function propose_spend( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "propose_spend" } } } @@ -76,8 +76,8 @@ export function propose_spend( * # */ export function reject_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "reject_proposal" } } } @@ -99,8 +99,8 @@ export function reject_proposal( * exist altogether, thus there is no way it would have been approved in the first place. */ export function remove_approval( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "remove_approval" } } } @@ -115,7 +115,7 @@ export function remove_approval( * beneficiary. */ export function spend( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "spend" } } } diff --git a/codegen/_output/polkadot/pallets/Ump.ts b/codegen/_output/polkadot/pallets/Ump.ts index d362ca1a4..817207c25 100644 --- a/codegen/_output/polkadot/pallets/Ump.ts +++ b/codegen/_output/polkadot/pallets/Ump.ts @@ -109,7 +109,7 @@ export const RelayDispatchQueues = { * - `OverweightServiced`: On success. */ export function service_overweight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Ump", value: { ...value, type: "service_overweight" } } } diff --git a/codegen/_output/polkadot/pallets/Utility.ts b/codegen/_output/polkadot/pallets/Utility.ts index 05b704bba..1483e7521 100644 --- a/codegen/_output/polkadot/pallets/Utility.ts +++ b/codegen/_output/polkadot/pallets/Utility.ts @@ -16,8 +16,8 @@ import type * as t from "../mod.ts" * The dispatch origin for this call must be _Signed_. */ export function as_derivative( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "as_derivative" } } } @@ -43,8 +43,8 @@ export function as_derivative( * event is deposited. */ export function batch( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "batch" } } } @@ -65,8 +65,8 @@ export function batch( * # */ export function batch_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "batch_all" } } } @@ -83,8 +83,8 @@ export function batch_all( * # */ export function dispatch_as( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "dispatch_as" } } } @@ -105,7 +105,7 @@ export function dispatch_as( * # */ export function force_batch( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "force_batch" } } } diff --git a/codegen/_output/polkadot/pallets/Vesting.ts b/codegen/_output/polkadot/pallets/Vesting.ts index 7f5b1a9c8..878fb6f4e 100644 --- a/codegen/_output/polkadot/pallets/Vesting.ts +++ b/codegen/_output/polkadot/pallets/Vesting.ts @@ -45,8 +45,8 @@ export const Vesting = { * # */ export function force_vested_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "force_vested_transfer" } } } @@ -74,8 +74,8 @@ export function force_vested_transfer( * - `schedule2_index`: index of the second schedule to merge. */ export function merge_schedules( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "merge_schedules" } } } @@ -94,7 +94,7 @@ export function merge_schedules( * - Writes: Vesting Storage, Balances Locks, [Sender Account] * # */ -export function vest(): t.polkadot_runtime.RuntimeCall { +export function vest(): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { type: "vest" } } } @@ -116,8 +116,8 @@ export function vest(): t.polkadot_runtime.RuntimeCall { * # */ export function vest_other( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "vest_other" } } } @@ -141,7 +141,7 @@ export function vest_other( * # */ export function vested_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "vested_transfer" } } } diff --git a/codegen/_output/polkadot/pallets/VoterList.ts b/codegen/_output/polkadot/pallets/VoterList.ts index 67113267d..b9d36aa53 100644 --- a/codegen/_output/polkadot/pallets/VoterList.ts +++ b/codegen/_output/polkadot/pallets/VoterList.ts @@ -48,8 +48,8 @@ export const ListNodes = { * - and `origin` has a greater `Score` than `lighter`. */ export function put_in_front_of( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "VoterList", value: { ...value, type: "put_in_front_of" } } } @@ -66,7 +66,7 @@ export function put_in_front_of( * If `dislocated` does not exists, it returns an error. */ export function rebag( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "VoterList", value: { ...value, type: "rebag" } } } diff --git a/codegen/_output/polkadot/pallets/XcmPallet.ts b/codegen/_output/polkadot/pallets/XcmPallet.ts index 6cbbd708e..c03154e71 100644 --- a/codegen/_output/polkadot/pallets/XcmPallet.ts +++ b/codegen/_output/polkadot/pallets/XcmPallet.ts @@ -112,8 +112,8 @@ export const VersionNotifyTargets = { * to completion; only that *some* of it was executed. */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "execute" } } } @@ -125,8 +125,8 @@ export function execute( * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. */ export function force_default_xcm_version( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_default_xcm_version" } } } @@ -137,8 +137,8 @@ export function force_default_xcm_version( * - `location`: The location to which we should subscribe for XCM version notifications. */ export function force_subscribe_version_notify( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_subscribe_version_notify" } } } @@ -151,8 +151,8 @@ export function force_subscribe_version_notify( * notifications which we no longer desire. */ export function force_unsubscribe_version_notify( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_unsubscribe_version_notify" } } } @@ -165,8 +165,8 @@ export function force_unsubscribe_version_notify( * - `xcm_version`: The latest version of XCM that `location` supports. */ export function force_xcm_version( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_xcm_version" } } } @@ -191,8 +191,8 @@ export function force_xcm_version( * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_reserve_transfer_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "limited_reserve_transfer_assets" } } } @@ -216,8 +216,8 @@ export function limited_reserve_transfer_assets( * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_teleport_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "limited_teleport_assets" } } } @@ -240,14 +240,14 @@ export function limited_teleport_assets( * fees. */ export function reserve_transfer_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "reserve_transfer_assets" } } } export function send( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "send" } } } @@ -269,7 +269,7 @@ export function send( * fees. */ export function teleport_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "teleport_assets" } } } diff --git a/codegen/_output/polkadot/polkadot_core_primitives.ts b/codegen/_output/polkadot/polkadot_core_primitives.ts deleted file mode 100644 index a8e55ae4f..000000000 --- a/codegen/_output/polkadot/polkadot_core_primitives.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $candidateHash: $.Codec = _codec.$114 - -export const $inboundDownwardMessage: $.Codec = - _codec.$683 - -export const $inboundHrmpMessage: $.Codec = - _codec.$691 - -export const $outboundHrmpMessage: $.Codec = - _codec.$392 - -export type CandidateHash = t.primitive_types.H256 - -export function CandidateHash(value: t.polkadot_core_primitives.CandidateHash) { - return value -} - -export interface InboundDownwardMessage { - sent_at: t.u32 - msg: Uint8Array -} - -export function InboundDownwardMessage(value: t.polkadot_core_primitives.InboundDownwardMessage) { - return value -} - -export interface InboundHrmpMessage { - sent_at: t.u32 - data: Uint8Array -} - -export function InboundHrmpMessage(value: t.polkadot_core_primitives.InboundHrmpMessage) { - return value -} - -export interface OutboundHrmpMessage { - recipient: t.polkadot_parachain.primitives.Id - data: Uint8Array -} - -export function OutboundHrmpMessage(value: t.polkadot_core_primitives.OutboundHrmpMessage) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_parachain/primitives.ts b/codegen/_output/polkadot/polkadot_parachain/primitives.ts deleted file mode 100644 index f9ab65262..000000000 --- a/codegen/_output/polkadot/polkadot_parachain/primitives.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $headData: $.Codec = _codec.$104 - -export const $hrmpChannelId: $.Codec = _codec.$112 - -export const $id: $.Codec = _codec.$98 - -export const $validationCode: $.Codec = _codec.$394 - -export const $validationCodeHash: $.Codec = - _codec.$103 - -export type HeadData = Uint8Array - -export function HeadData(value: t.polkadot_parachain.primitives.HeadData) { - return value -} - -export interface HrmpChannelId { - sender: t.polkadot_parachain.primitives.Id - recipient: t.polkadot_parachain.primitives.Id -} - -export function HrmpChannelId(value: t.polkadot_parachain.primitives.HrmpChannelId) { - return value -} - -export type Id = t.u32 - -export function Id(value: t.polkadot_parachain.primitives.Id) { - return value -} - -export type ValidationCode = Uint8Array - -export function ValidationCode(value: t.polkadot_parachain.primitives.ValidationCode) { - return value -} - -export type ValidationCodeHash = t.primitive_types.H256 - -export function ValidationCodeHash(value: t.polkadot_parachain.primitives.ValidationCodeHash) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_primitives/v2/assignment_app.ts b/codegen/_output/polkadot/polkadot_primitives/v2/assignment_app.ts deleted file mode 100644 index b9c1ce5c3..000000000 --- a/codegen/_output/polkadot/polkadot_primitives/v2/assignment_app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$214 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.assignment_app.Public) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_primitives/v2/collator_app.ts b/codegen/_output/polkadot/polkadot_primitives/v2/collator_app.ts deleted file mode 100644 index eb96a0a47..000000000 --- a/codegen/_output/polkadot/polkadot_primitives/v2/collator_app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$99 - -export const $signature: $.Codec = _codec.$100 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.collator_app.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.polkadot_primitives.v2.collator_app.Signature) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_primitives/v2/mod.ts b/codegen/_output/polkadot/polkadot_primitives/v2/mod.ts deleted file mode 100644 index 4ad2b58a2..000000000 --- a/codegen/_output/polkadot/polkadot_primitives/v2/mod.ts +++ /dev/null @@ -1,368 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as assignment_app from "./assignment_app.ts" -export * as collator_app from "./collator_app.ts" -export * as signed from "./signed.ts" -export * as validator_app from "./validator_app.ts" - -export const $availabilityBitfield: $.Codec = - _codec.$382 - -export const $backedCandidate: $.Codec = _codec.$388 - -export const $candidateCommitments: $.Codec = - _codec.$390 - -export const $candidateDescriptor: $.Codec = - _codec.$97 - -export const $candidateReceipt: $.Codec = _codec.$96 - -export const $committedCandidateReceipt: $.Codec< - t.polkadot_primitives.v2.CommittedCandidateReceipt -> = _codec.$389 - -export const $coreIndex: $.Codec = _codec.$105 - -export const $coreOccupied: $.Codec = _codec.$661 - -export const $disputeState: $.Codec = _codec.$699 - -export const $disputeStatement: $.Codec = _codec.$401 - -export const $disputeStatementSet: $.Codec = - _codec.$398 - -export const $groupIndex: $.Codec = _codec.$106 - -export const $inherentData: $.Codec = _codec.$379 - -export const $invalidDisputeStatementKind: $.Codec< - t.polkadot_primitives.v2.InvalidDisputeStatementKind -> = _codec.$403 - -export const $parathreadClaim: $.Codec = _codec.$658 - -export const $parathreadEntry: $.Codec = _codec.$657 - -export const $pvfCheckStatement: $.Codec = _codec.$405 - -export const $scrapedOnChainVotes: $.Codec = - _codec.$647 - -export const $sessionInfo: $.Codec = _codec.$696 - -export const $upgradeGoAhead: $.Codec = _codec.$676 - -export const $upgradeRestriction: $.Codec = _codec.$677 - -export const $validDisputeStatementKind: $.Codec< - t.polkadot_primitives.v2.ValidDisputeStatementKind -> = _codec.$402 - -export const $validatorIndex: $.Codec = _codec.$385 - -export const $validityAttestation: $.Codec = - _codec.$396 - -export type AvailabilityBitfield = $.BitSequence - -export function AvailabilityBitfield(value: t.polkadot_primitives.v2.AvailabilityBitfield) { - return value -} - -export interface BackedCandidate { - candidate: t.polkadot_primitives.v2.CommittedCandidateReceipt - validity_votes: Array - validator_indices: $.BitSequence -} - -export function BackedCandidate(value: t.polkadot_primitives.v2.BackedCandidate) { - return value -} - -export interface CandidateCommitments { - upward_messages: Array - horizontal_messages: Array - new_validation_code: t.polkadot_parachain.primitives.ValidationCode | undefined - head_data: t.polkadot_parachain.primitives.HeadData - processed_downward_messages: t.u32 - hrmp_watermark: t.u32 -} - -export function CandidateCommitments(value: t.polkadot_primitives.v2.CandidateCommitments) { - return value -} - -export interface CandidateDescriptor { - para_id: t.polkadot_parachain.primitives.Id - relay_parent: t.primitive_types.H256 - collator: t.polkadot_primitives.v2.collator_app.Public - persisted_validation_data_hash: t.primitive_types.H256 - pov_hash: t.primitive_types.H256 - erasure_root: t.primitive_types.H256 - signature: t.polkadot_primitives.v2.collator_app.Signature - para_head: t.primitive_types.H256 - validation_code_hash: t.polkadot_parachain.primitives.ValidationCodeHash -} - -export function CandidateDescriptor(value: t.polkadot_primitives.v2.CandidateDescriptor) { - return value -} - -export interface CandidateReceipt { - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - commitments_hash: t.primitive_types.H256 -} - -export function CandidateReceipt(value: t.polkadot_primitives.v2.CandidateReceipt) { - return value -} - -export interface CommittedCandidateReceipt { - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - commitments: t.polkadot_primitives.v2.CandidateCommitments -} - -export function CommittedCandidateReceipt( - value: t.polkadot_primitives.v2.CommittedCandidateReceipt, -) { - return value -} - -export type CoreIndex = t.u32 - -export function CoreIndex(value: t.polkadot_primitives.v2.CoreIndex) { - return value -} - -export type CoreOccupied = - | t.polkadot_primitives.v2.CoreOccupied.Parathread - | t.polkadot_primitives.v2.CoreOccupied.Parachain -export namespace CoreOccupied { - export interface Parathread { - type: "Parathread" - value: t.polkadot_primitives.v2.ParathreadEntry - } - export interface Parachain { - type: "Parachain" - } - export function Parathread( - value: t.polkadot_primitives.v2.CoreOccupied.Parathread["value"], - ): t.polkadot_primitives.v2.CoreOccupied.Parathread { - return { type: "Parathread", value } - } - export function Parachain(): t.polkadot_primitives.v2.CoreOccupied.Parachain { - return { type: "Parachain" } - } -} - -export interface DisputeState { - validators_for: $.BitSequence - validators_against: $.BitSequence - start: t.u32 - concluded_at: t.u32 | undefined -} - -export function DisputeState(value: t.polkadot_primitives.v2.DisputeState) { - return value -} - -export type DisputeStatement = - | t.polkadot_primitives.v2.DisputeStatement.Valid - | t.polkadot_primitives.v2.DisputeStatement.Invalid -export namespace DisputeStatement { - export interface Valid { - type: "Valid" - value: t.polkadot_primitives.v2.ValidDisputeStatementKind - } - export interface Invalid { - type: "Invalid" - value: t.polkadot_primitives.v2.InvalidDisputeStatementKind - } - export function Valid( - value: t.polkadot_primitives.v2.DisputeStatement.Valid["value"], - ): t.polkadot_primitives.v2.DisputeStatement.Valid { - return { type: "Valid", value } - } - export function Invalid( - value: t.polkadot_primitives.v2.DisputeStatement.Invalid["value"], - ): t.polkadot_primitives.v2.DisputeStatement.Invalid { - return { type: "Invalid", value } - } -} - -export interface DisputeStatementSet { - candidate_hash: t.polkadot_core_primitives.CandidateHash - session: t.u32 - statements: Array< - [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, - ] - > -} - -export function DisputeStatementSet(value: t.polkadot_primitives.v2.DisputeStatementSet) { - return value -} - -export type GroupIndex = t.u32 - -export function GroupIndex(value: t.polkadot_primitives.v2.GroupIndex) { - return value -} - -export interface InherentData { - bitfields: Array - backed_candidates: Array - disputes: Array - parent_header: t.sp_runtime.generic.header.Header -} - -export function InherentData(value: t.polkadot_primitives.v2.InherentData) { - return value -} - -export type InvalidDisputeStatementKind = "Explicit" - -export type ParathreadClaim = [ - t.polkadot_parachain.primitives.Id, - t.polkadot_primitives.v2.collator_app.Public, -] - -export function ParathreadClaim(...value: t.polkadot_primitives.v2.ParathreadClaim) { - return value -} - -export interface ParathreadEntry { - claim: t.polkadot_primitives.v2.ParathreadClaim - retries: t.u32 -} - -export function ParathreadEntry(value: t.polkadot_primitives.v2.ParathreadEntry) { - return value -} - -export interface PvfCheckStatement { - accept: boolean - subject: t.polkadot_parachain.primitives.ValidationCodeHash - session_index: t.u32 - validator_index: t.polkadot_primitives.v2.ValidatorIndex -} - -export function PvfCheckStatement(value: t.polkadot_primitives.v2.PvfCheckStatement) { - return value -} - -export interface ScrapedOnChainVotes { - session: t.u32 - backing_validators_per_candidate: Array< - [ - t.polkadot_primitives.v2.CandidateReceipt, - Array< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] - >, - ] - > - disputes: Array -} - -export function ScrapedOnChainVotes(value: t.polkadot_primitives.v2.ScrapedOnChainVotes) { - return value -} - -export interface SessionInfo { - active_validator_indices: Array - random_seed: Uint8Array - dispute_period: t.u32 - validators: Array - discovery_keys: Array - assignment_keys: Array - validator_groups: Array> - n_cores: t.u32 - zeroth_delay_tranche_width: t.u32 - relay_vrf_modulo_samples: t.u32 - n_delay_tranches: t.u32 - no_show_slots: t.u32 - needed_approvals: t.u32 -} - -export function SessionInfo(value: t.polkadot_primitives.v2.SessionInfo) { - return value -} - -export type UpgradeGoAhead = "Abort" | "GoAhead" - -export type UpgradeRestriction = "Present" - -export type ValidDisputeStatementKind = - | t.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit - | t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded - | t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid - | t.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking -export namespace ValidDisputeStatementKind { - export interface Explicit { - type: "Explicit" - } - export interface BackingSeconded { - type: "BackingSeconded" - value: t.primitive_types.H256 - } - export interface BackingValid { - type: "BackingValid" - value: t.primitive_types.H256 - } - export interface ApprovalChecking { - type: "ApprovalChecking" - } - export function Explicit(): t.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit { - return { type: "Explicit" } - } - export function BackingSeconded( - value: t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded["value"], - ): t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded { - return { type: "BackingSeconded", value } - } - export function BackingValid( - value: t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid["value"], - ): t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid { - return { type: "BackingValid", value } - } - export function ApprovalChecking(): t.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking { - return { type: "ApprovalChecking" } - } -} - -export type ValidatorIndex = t.u32 - -export function ValidatorIndex(value: t.polkadot_primitives.v2.ValidatorIndex) { - return value -} - -export type ValidityAttestation = - | t.polkadot_primitives.v2.ValidityAttestation.Implicit - | t.polkadot_primitives.v2.ValidityAttestation.Explicit -export namespace ValidityAttestation { - export interface Implicit { - type: "Implicit" - value: t.polkadot_primitives.v2.validator_app.Signature - } - export interface Explicit { - type: "Explicit" - value: t.polkadot_primitives.v2.validator_app.Signature - } - export function Implicit( - value: t.polkadot_primitives.v2.ValidityAttestation.Implicit["value"], - ): t.polkadot_primitives.v2.ValidityAttestation.Implicit { - return { type: "Implicit", value } - } - export function Explicit( - value: t.polkadot_primitives.v2.ValidityAttestation.Explicit["value"], - ): t.polkadot_primitives.v2.ValidityAttestation.Explicit { - return { type: "Explicit", value } - } -} diff --git a/codegen/_output/polkadot/polkadot_primitives/v2/signed.ts b/codegen/_output/polkadot/polkadot_primitives/v2/signed.ts deleted file mode 100644 index e2d11430f..000000000 --- a/codegen/_output/polkadot/polkadot_primitives/v2/signed.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $uncheckedSigned: $.Codec = - _codec.$381 - -export interface UncheckedSigned { - payload: t.polkadot_primitives.v2.AvailabilityBitfield - validator_index: t.polkadot_primitives.v2.ValidatorIndex - signature: t.polkadot_primitives.v2.validator_app.Signature -} - -export function UncheckedSigned(value: t.polkadot_primitives.v2.signed.UncheckedSigned) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_primitives/v2/validator_app.ts b/codegen/_output/polkadot/polkadot_primitives/v2/validator_app.ts deleted file mode 100644 index e56ded198..000000000 --- a/codegen/_output/polkadot/polkadot_primitives/v2/validator_app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$213 - -export const $signature: $.Codec = _codec.$386 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.validator_app.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.polkadot_primitives.v2.validator_app.Signature) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime.ts b/codegen/_output/polkadot/polkadot_runtime.ts deleted file mode 100644 index d07d2f44d..000000000 --- a/codegen/_output/polkadot/polkadot_runtime.ts +++ /dev/null @@ -1,1223 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $nposCompactSolution16: $.Codec = _codec.$312 - -export const $originCaller: $.Codec = _codec.$256 - -export const $proxyType: $.Codec = _codec.$79 - -export const $runtime: $.Codec = _codec.$737 - -export const $runtimeCall: $.Codec = _codec.$181 - -export const $runtimeEvent: $.Codec = _codec.$19 - -export const $sessionKeys: $.Codec = _codec.$212 - -export interface NposCompactSolution16 { - votes1: Array<[t.Compact, t.Compact]> - votes2: Array< - [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, - ] - > - votes3: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes4: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes5: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes6: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes7: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes8: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes9: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes10: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes11: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes12: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes13: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes14: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes15: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes16: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > -} - -export function NposCompactSolution16(value: t.polkadot_runtime.NposCompactSolution16) { - return value -} - -export type OriginCaller = - | t.polkadot_runtime.OriginCaller.system - | t.polkadot_runtime.OriginCaller.Council - | t.polkadot_runtime.OriginCaller.TechnicalCommittee - | t.polkadot_runtime.OriginCaller.ParachainsOrigin - | t.polkadot_runtime.OriginCaller.XcmPallet - | t.polkadot_runtime.OriginCaller.Void -export namespace OriginCaller { - export interface system { - type: "system" - value: t.frame_support.dispatch.RawOrigin - } - export interface Council { - type: "Council" - value: t.pallet_collective.RawOrigin - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.RawOrigin - } - export interface ParachainsOrigin { - type: "ParachainsOrigin" - value: t.polkadot_runtime_parachains.origin.pallet.Origin - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Origin - } - export interface Void { - type: "Void" - value: t.sp_core.Void - } - export function system( - value: t.polkadot_runtime.OriginCaller.system["value"], - ): t.polkadot_runtime.OriginCaller.system { - return { type: "system", value } - } - export function Council( - value: t.polkadot_runtime.OriginCaller.Council["value"], - ): t.polkadot_runtime.OriginCaller.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.OriginCaller.TechnicalCommittee["value"], - ): t.polkadot_runtime.OriginCaller.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function ParachainsOrigin( - value: t.polkadot_runtime.OriginCaller.ParachainsOrigin["value"], - ): t.polkadot_runtime.OriginCaller.ParachainsOrigin { - return { type: "ParachainsOrigin", value } - } - export function XcmPallet( - value: t.polkadot_runtime.OriginCaller.XcmPallet["value"], - ): t.polkadot_runtime.OriginCaller.XcmPallet { - return { type: "XcmPallet", value } - } - export function Void( - value: t.polkadot_runtime.OriginCaller.Void["value"], - ): t.polkadot_runtime.OriginCaller.Void { - return { type: "Void", value } - } -} - -export type ProxyType = - | "Any" - | "NonTransfer" - | "Governance" - | "Staking" - | "IdentityJudgement" - | "CancelProxy" - | "Auction" - -export function Runtime() { - return null -} - -export type Runtime = null - -export type RuntimeCall = - | t.polkadot_runtime.RuntimeCall.System - | t.polkadot_runtime.RuntimeCall.Scheduler - | t.polkadot_runtime.RuntimeCall.Preimage - | t.polkadot_runtime.RuntimeCall.Babe - | t.polkadot_runtime.RuntimeCall.Timestamp - | t.polkadot_runtime.RuntimeCall.Indices - | t.polkadot_runtime.RuntimeCall.Balances - | t.polkadot_runtime.RuntimeCall.Authorship - | t.polkadot_runtime.RuntimeCall.Staking - | t.polkadot_runtime.RuntimeCall.Session - | t.polkadot_runtime.RuntimeCall.Grandpa - | t.polkadot_runtime.RuntimeCall.ImOnline - | t.polkadot_runtime.RuntimeCall.Democracy - | t.polkadot_runtime.RuntimeCall.Council - | t.polkadot_runtime.RuntimeCall.TechnicalCommittee - | t.polkadot_runtime.RuntimeCall.PhragmenElection - | t.polkadot_runtime.RuntimeCall.TechnicalMembership - | t.polkadot_runtime.RuntimeCall.Treasury - | t.polkadot_runtime.RuntimeCall.Claims - | t.polkadot_runtime.RuntimeCall.Vesting - | t.polkadot_runtime.RuntimeCall.Utility - | t.polkadot_runtime.RuntimeCall.Identity - | t.polkadot_runtime.RuntimeCall.Proxy - | t.polkadot_runtime.RuntimeCall.Multisig - | t.polkadot_runtime.RuntimeCall.Bounties - | t.polkadot_runtime.RuntimeCall.ChildBounties - | t.polkadot_runtime.RuntimeCall.Tips - | t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase - | t.polkadot_runtime.RuntimeCall.VoterList - | t.polkadot_runtime.RuntimeCall.NominationPools - | t.polkadot_runtime.RuntimeCall.FastUnstake - | t.polkadot_runtime.RuntimeCall.Configuration - | t.polkadot_runtime.RuntimeCall.ParasShared - | t.polkadot_runtime.RuntimeCall.ParaInclusion - | t.polkadot_runtime.RuntimeCall.ParaInherent - | t.polkadot_runtime.RuntimeCall.Paras - | t.polkadot_runtime.RuntimeCall.Initializer - | t.polkadot_runtime.RuntimeCall.Dmp - | t.polkadot_runtime.RuntimeCall.Ump - | t.polkadot_runtime.RuntimeCall.Hrmp - | t.polkadot_runtime.RuntimeCall.ParasDisputes - | t.polkadot_runtime.RuntimeCall.Registrar - | t.polkadot_runtime.RuntimeCall.Slots - | t.polkadot_runtime.RuntimeCall.Auctions - | t.polkadot_runtime.RuntimeCall.Crowdloan - | t.polkadot_runtime.RuntimeCall.XcmPallet -export namespace RuntimeCall { - export interface System { - type: "System" - value: t.frame_system.pallet.Call - } - export interface Scheduler { - type: "Scheduler" - value: t.pallet_scheduler.pallet.Call - } - export interface Preimage { - type: "Preimage" - value: t.pallet_preimage.pallet.Call - } - export interface Babe { - type: "Babe" - value: t.pallet_babe.pallet.Call - } - export interface Timestamp { - type: "Timestamp" - value: t.pallet_timestamp.pallet.Call - } - export interface Indices { - type: "Indices" - value: t.pallet_indices.pallet.Call - } - export interface Balances { - type: "Balances" - value: t.pallet_balances.pallet.Call - } - export interface Authorship { - type: "Authorship" - value: t.pallet_authorship.pallet.Call - } - export interface Staking { - type: "Staking" - value: t.pallet_staking.pallet.pallet.Call - } - export interface Session { - type: "Session" - value: t.pallet_session.pallet.Call - } - export interface Grandpa { - type: "Grandpa" - value: t.pallet_grandpa.pallet.Call - } - export interface ImOnline { - type: "ImOnline" - value: t.pallet_im_online.pallet.Call - } - export interface Democracy { - type: "Democracy" - value: t.pallet_democracy.pallet.Call - } - export interface Council { - type: "Council" - value: t.pallet_collective.pallet.Call - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.pallet.Call - } - export interface PhragmenElection { - type: "PhragmenElection" - value: t.pallet_elections_phragmen.pallet.Call - } - export interface TechnicalMembership { - type: "TechnicalMembership" - value: t.pallet_membership.pallet.Call - } - export interface Treasury { - type: "Treasury" - value: t.pallet_treasury.pallet.Call - } - export interface Claims { - type: "Claims" - value: t.polkadot_runtime_common.claims.pallet.Call - } - export interface Vesting { - type: "Vesting" - value: t.pallet_vesting.pallet.Call - } - export interface Utility { - type: "Utility" - value: t.pallet_utility.pallet.Call - } - export interface Identity { - type: "Identity" - value: t.pallet_identity.pallet.Call - } - export interface Proxy { - type: "Proxy" - value: t.pallet_proxy.pallet.Call - } - export interface Multisig { - type: "Multisig" - value: t.pallet_multisig.pallet.Call - } - export interface Bounties { - type: "Bounties" - value: t.pallet_bounties.pallet.Call - } - export interface ChildBounties { - type: "ChildBounties" - value: t.pallet_child_bounties.pallet.Call - } - export interface Tips { - type: "Tips" - value: t.pallet_tips.pallet.Call - } - export interface ElectionProviderMultiPhase { - type: "ElectionProviderMultiPhase" - value: t.pallet_election_provider_multi_phase.pallet.Call - } - export interface VoterList { - type: "VoterList" - value: t.pallet_bags_list.pallet.Call - } - export interface NominationPools { - type: "NominationPools" - value: t.pallet_nomination_pools.pallet.Call - } - export interface FastUnstake { - type: "FastUnstake" - value: t.pallet_fast_unstake.pallet.Call - } - export interface Configuration { - type: "Configuration" - value: t.polkadot_runtime_parachains.configuration.pallet.Call - } - export interface ParasShared { - type: "ParasShared" - value: t.polkadot_runtime_parachains.shared.pallet.Call - } - export interface ParaInclusion { - type: "ParaInclusion" - value: t.polkadot_runtime_parachains.inclusion.pallet.Call - } - export interface ParaInherent { - type: "ParaInherent" - value: t.polkadot_runtime_parachains.paras_inherent.pallet.Call - } - export interface Paras { - type: "Paras" - value: t.polkadot_runtime_parachains.paras.pallet.Call - } - export interface Initializer { - type: "Initializer" - value: t.polkadot_runtime_parachains.initializer.pallet.Call - } - export interface Dmp { - type: "Dmp" - value: t.polkadot_runtime_parachains.dmp.pallet.Call - } - export interface Ump { - type: "Ump" - value: t.polkadot_runtime_parachains.ump.pallet.Call - } - export interface Hrmp { - type: "Hrmp" - value: t.polkadot_runtime_parachains.hrmp.pallet.Call - } - export interface ParasDisputes { - type: "ParasDisputes" - value: t.polkadot_runtime_parachains.disputes.pallet.Call - } - export interface Registrar { - type: "Registrar" - value: t.polkadot_runtime_common.paras_registrar.pallet.Call - } - export interface Slots { - type: "Slots" - value: t.polkadot_runtime_common.slots.pallet.Call - } - export interface Auctions { - type: "Auctions" - value: t.polkadot_runtime_common.auctions.pallet.Call - } - export interface Crowdloan { - type: "Crowdloan" - value: t.polkadot_runtime_common.crowdloan.pallet.Call - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Call - } - export function System( - value: t.polkadot_runtime.RuntimeCall.System["value"], - ): t.polkadot_runtime.RuntimeCall.System { - return { type: "System", value } - } - export function Scheduler( - value: t.polkadot_runtime.RuntimeCall.Scheduler["value"], - ): t.polkadot_runtime.RuntimeCall.Scheduler { - return { type: "Scheduler", value } - } - export function Preimage( - value: t.polkadot_runtime.RuntimeCall.Preimage["value"], - ): t.polkadot_runtime.RuntimeCall.Preimage { - return { type: "Preimage", value } - } - export function Babe( - value: t.polkadot_runtime.RuntimeCall.Babe["value"], - ): t.polkadot_runtime.RuntimeCall.Babe { - return { type: "Babe", value } - } - export function Timestamp( - value: t.polkadot_runtime.RuntimeCall.Timestamp["value"], - ): t.polkadot_runtime.RuntimeCall.Timestamp { - return { type: "Timestamp", value } - } - export function Indices( - value: t.polkadot_runtime.RuntimeCall.Indices["value"], - ): t.polkadot_runtime.RuntimeCall.Indices { - return { type: "Indices", value } - } - export function Balances( - value: t.polkadot_runtime.RuntimeCall.Balances["value"], - ): t.polkadot_runtime.RuntimeCall.Balances { - return { type: "Balances", value } - } - export function Authorship( - value: t.polkadot_runtime.RuntimeCall.Authorship["value"], - ): t.polkadot_runtime.RuntimeCall.Authorship { - return { type: "Authorship", value } - } - export function Staking( - value: t.polkadot_runtime.RuntimeCall.Staking["value"], - ): t.polkadot_runtime.RuntimeCall.Staking { - return { type: "Staking", value } - } - export function Session( - value: t.polkadot_runtime.RuntimeCall.Session["value"], - ): t.polkadot_runtime.RuntimeCall.Session { - return { type: "Session", value } - } - export function Grandpa( - value: t.polkadot_runtime.RuntimeCall.Grandpa["value"], - ): t.polkadot_runtime.RuntimeCall.Grandpa { - return { type: "Grandpa", value } - } - export function ImOnline( - value: t.polkadot_runtime.RuntimeCall.ImOnline["value"], - ): t.polkadot_runtime.RuntimeCall.ImOnline { - return { type: "ImOnline", value } - } - export function Democracy( - value: t.polkadot_runtime.RuntimeCall.Democracy["value"], - ): t.polkadot_runtime.RuntimeCall.Democracy { - return { type: "Democracy", value } - } - export function Council( - value: t.polkadot_runtime.RuntimeCall.Council["value"], - ): t.polkadot_runtime.RuntimeCall.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.RuntimeCall.TechnicalCommittee["value"], - ): t.polkadot_runtime.RuntimeCall.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function PhragmenElection( - value: t.polkadot_runtime.RuntimeCall.PhragmenElection["value"], - ): t.polkadot_runtime.RuntimeCall.PhragmenElection { - return { type: "PhragmenElection", value } - } - export function TechnicalMembership( - value: t.polkadot_runtime.RuntimeCall.TechnicalMembership["value"], - ): t.polkadot_runtime.RuntimeCall.TechnicalMembership { - return { type: "TechnicalMembership", value } - } - export function Treasury( - value: t.polkadot_runtime.RuntimeCall.Treasury["value"], - ): t.polkadot_runtime.RuntimeCall.Treasury { - return { type: "Treasury", value } - } - export function Claims( - value: t.polkadot_runtime.RuntimeCall.Claims["value"], - ): t.polkadot_runtime.RuntimeCall.Claims { - return { type: "Claims", value } - } - export function Vesting( - value: t.polkadot_runtime.RuntimeCall.Vesting["value"], - ): t.polkadot_runtime.RuntimeCall.Vesting { - return { type: "Vesting", value } - } - export function Utility( - value: t.polkadot_runtime.RuntimeCall.Utility["value"], - ): t.polkadot_runtime.RuntimeCall.Utility { - return { type: "Utility", value } - } - export function Identity( - value: t.polkadot_runtime.RuntimeCall.Identity["value"], - ): t.polkadot_runtime.RuntimeCall.Identity { - return { type: "Identity", value } - } - export function Proxy( - value: t.polkadot_runtime.RuntimeCall.Proxy["value"], - ): t.polkadot_runtime.RuntimeCall.Proxy { - return { type: "Proxy", value } - } - export function Multisig( - value: t.polkadot_runtime.RuntimeCall.Multisig["value"], - ): t.polkadot_runtime.RuntimeCall.Multisig { - return { type: "Multisig", value } - } - export function Bounties( - value: t.polkadot_runtime.RuntimeCall.Bounties["value"], - ): t.polkadot_runtime.RuntimeCall.Bounties { - return { type: "Bounties", value } - } - export function ChildBounties( - value: t.polkadot_runtime.RuntimeCall.ChildBounties["value"], - ): t.polkadot_runtime.RuntimeCall.ChildBounties { - return { type: "ChildBounties", value } - } - export function Tips( - value: t.polkadot_runtime.RuntimeCall.Tips["value"], - ): t.polkadot_runtime.RuntimeCall.Tips { - return { type: "Tips", value } - } - export function ElectionProviderMultiPhase( - value: t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase["value"], - ): t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase { - return { type: "ElectionProviderMultiPhase", value } - } - export function VoterList( - value: t.polkadot_runtime.RuntimeCall.VoterList["value"], - ): t.polkadot_runtime.RuntimeCall.VoterList { - return { type: "VoterList", value } - } - export function NominationPools( - value: t.polkadot_runtime.RuntimeCall.NominationPools["value"], - ): t.polkadot_runtime.RuntimeCall.NominationPools { - return { type: "NominationPools", value } - } - export function FastUnstake( - value: t.polkadot_runtime.RuntimeCall.FastUnstake["value"], - ): t.polkadot_runtime.RuntimeCall.FastUnstake { - return { type: "FastUnstake", value } - } - export function Configuration( - value: t.polkadot_runtime.RuntimeCall.Configuration["value"], - ): t.polkadot_runtime.RuntimeCall.Configuration { - return { type: "Configuration", value } - } - export function ParasShared( - value: t.polkadot_runtime.RuntimeCall.ParasShared["value"], - ): t.polkadot_runtime.RuntimeCall.ParasShared { - return { type: "ParasShared", value } - } - export function ParaInclusion( - value: t.polkadot_runtime.RuntimeCall.ParaInclusion["value"], - ): t.polkadot_runtime.RuntimeCall.ParaInclusion { - return { type: "ParaInclusion", value } - } - export function ParaInherent( - value: t.polkadot_runtime.RuntimeCall.ParaInherent["value"], - ): t.polkadot_runtime.RuntimeCall.ParaInherent { - return { type: "ParaInherent", value } - } - export function Paras( - value: t.polkadot_runtime.RuntimeCall.Paras["value"], - ): t.polkadot_runtime.RuntimeCall.Paras { - return { type: "Paras", value } - } - export function Initializer( - value: t.polkadot_runtime.RuntimeCall.Initializer["value"], - ): t.polkadot_runtime.RuntimeCall.Initializer { - return { type: "Initializer", value } - } - export function Dmp( - value: t.polkadot_runtime.RuntimeCall.Dmp["value"], - ): t.polkadot_runtime.RuntimeCall.Dmp { - return { type: "Dmp", value } - } - export function Ump( - value: t.polkadot_runtime.RuntimeCall.Ump["value"], - ): t.polkadot_runtime.RuntimeCall.Ump { - return { type: "Ump", value } - } - export function Hrmp( - value: t.polkadot_runtime.RuntimeCall.Hrmp["value"], - ): t.polkadot_runtime.RuntimeCall.Hrmp { - return { type: "Hrmp", value } - } - export function ParasDisputes( - value: t.polkadot_runtime.RuntimeCall.ParasDisputes["value"], - ): t.polkadot_runtime.RuntimeCall.ParasDisputes { - return { type: "ParasDisputes", value } - } - export function Registrar( - value: t.polkadot_runtime.RuntimeCall.Registrar["value"], - ): t.polkadot_runtime.RuntimeCall.Registrar { - return { type: "Registrar", value } - } - export function Slots( - value: t.polkadot_runtime.RuntimeCall.Slots["value"], - ): t.polkadot_runtime.RuntimeCall.Slots { - return { type: "Slots", value } - } - export function Auctions( - value: t.polkadot_runtime.RuntimeCall.Auctions["value"], - ): t.polkadot_runtime.RuntimeCall.Auctions { - return { type: "Auctions", value } - } - export function Crowdloan( - value: t.polkadot_runtime.RuntimeCall.Crowdloan["value"], - ): t.polkadot_runtime.RuntimeCall.Crowdloan { - return { type: "Crowdloan", value } - } - export function XcmPallet( - value: t.polkadot_runtime.RuntimeCall.XcmPallet["value"], - ): t.polkadot_runtime.RuntimeCall.XcmPallet { - return { type: "XcmPallet", value } - } -} - -export type RuntimeEvent = - | t.polkadot_runtime.RuntimeEvent.System - | t.polkadot_runtime.RuntimeEvent.Scheduler - | t.polkadot_runtime.RuntimeEvent.Preimage - | t.polkadot_runtime.RuntimeEvent.Indices - | t.polkadot_runtime.RuntimeEvent.Balances - | t.polkadot_runtime.RuntimeEvent.TransactionPayment - | t.polkadot_runtime.RuntimeEvent.Staking - | t.polkadot_runtime.RuntimeEvent.Offences - | t.polkadot_runtime.RuntimeEvent.Session - | t.polkadot_runtime.RuntimeEvent.Grandpa - | t.polkadot_runtime.RuntimeEvent.ImOnline - | t.polkadot_runtime.RuntimeEvent.Democracy - | t.polkadot_runtime.RuntimeEvent.Council - | t.polkadot_runtime.RuntimeEvent.TechnicalCommittee - | t.polkadot_runtime.RuntimeEvent.PhragmenElection - | t.polkadot_runtime.RuntimeEvent.TechnicalMembership - | t.polkadot_runtime.RuntimeEvent.Treasury - | t.polkadot_runtime.RuntimeEvent.Claims - | t.polkadot_runtime.RuntimeEvent.Vesting - | t.polkadot_runtime.RuntimeEvent.Utility - | t.polkadot_runtime.RuntimeEvent.Identity - | t.polkadot_runtime.RuntimeEvent.Proxy - | t.polkadot_runtime.RuntimeEvent.Multisig - | t.polkadot_runtime.RuntimeEvent.Bounties - | t.polkadot_runtime.RuntimeEvent.ChildBounties - | t.polkadot_runtime.RuntimeEvent.Tips - | t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase - | t.polkadot_runtime.RuntimeEvent.VoterList - | t.polkadot_runtime.RuntimeEvent.NominationPools - | t.polkadot_runtime.RuntimeEvent.FastUnstake - | t.polkadot_runtime.RuntimeEvent.ParaInclusion - | t.polkadot_runtime.RuntimeEvent.Paras - | t.polkadot_runtime.RuntimeEvent.Ump - | t.polkadot_runtime.RuntimeEvent.Hrmp - | t.polkadot_runtime.RuntimeEvent.ParasDisputes - | t.polkadot_runtime.RuntimeEvent.Registrar - | t.polkadot_runtime.RuntimeEvent.Slots - | t.polkadot_runtime.RuntimeEvent.Auctions - | t.polkadot_runtime.RuntimeEvent.Crowdloan - | t.polkadot_runtime.RuntimeEvent.XcmPallet -export namespace RuntimeEvent { - export interface System { - type: "System" - value: t.frame_system.pallet.Event - } - export interface Scheduler { - type: "Scheduler" - value: t.pallet_scheduler.pallet.Event - } - export interface Preimage { - type: "Preimage" - value: t.pallet_preimage.pallet.Event - } - export interface Indices { - type: "Indices" - value: t.pallet_indices.pallet.Event - } - export interface Balances { - type: "Balances" - value: t.pallet_balances.pallet.Event - } - export interface TransactionPayment { - type: "TransactionPayment" - value: t.pallet_transaction_payment.pallet.Event - } - export interface Staking { - type: "Staking" - value: t.pallet_staking.pallet.pallet.Event - } - export interface Offences { - type: "Offences" - value: t.pallet_offences.pallet.Event - } - export interface Session { - type: "Session" - value: t.pallet_session.pallet.Event - } - export interface Grandpa { - type: "Grandpa" - value: t.pallet_grandpa.pallet.Event - } - export interface ImOnline { - type: "ImOnline" - value: t.pallet_im_online.pallet.Event - } - export interface Democracy { - type: "Democracy" - value: t.pallet_democracy.pallet.Event - } - export interface Council { - type: "Council" - value: t.pallet_collective.pallet.Event - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.pallet.Event - } - export interface PhragmenElection { - type: "PhragmenElection" - value: t.pallet_elections_phragmen.pallet.Event - } - export interface TechnicalMembership { - type: "TechnicalMembership" - value: t.pallet_membership.pallet.Event - } - export interface Treasury { - type: "Treasury" - value: t.pallet_treasury.pallet.Event - } - export interface Claims { - type: "Claims" - value: t.polkadot_runtime_common.claims.pallet.Event - } - export interface Vesting { - type: "Vesting" - value: t.pallet_vesting.pallet.Event - } - export interface Utility { - type: "Utility" - value: t.pallet_utility.pallet.Event - } - export interface Identity { - type: "Identity" - value: t.pallet_identity.pallet.Event - } - export interface Proxy { - type: "Proxy" - value: t.pallet_proxy.pallet.Event - } - export interface Multisig { - type: "Multisig" - value: t.pallet_multisig.pallet.Event - } - export interface Bounties { - type: "Bounties" - value: t.pallet_bounties.pallet.Event - } - export interface ChildBounties { - type: "ChildBounties" - value: t.pallet_child_bounties.pallet.Event - } - export interface Tips { - type: "Tips" - value: t.pallet_tips.pallet.Event - } - export interface ElectionProviderMultiPhase { - type: "ElectionProviderMultiPhase" - value: t.pallet_election_provider_multi_phase.pallet.Event - } - export interface VoterList { - type: "VoterList" - value: t.pallet_bags_list.pallet.Event - } - export interface NominationPools { - type: "NominationPools" - value: t.pallet_nomination_pools.pallet.Event - } - export interface FastUnstake { - type: "FastUnstake" - value: t.pallet_fast_unstake.pallet.Event - } - export interface ParaInclusion { - type: "ParaInclusion" - value: t.polkadot_runtime_parachains.inclusion.pallet.Event - } - export interface Paras { - type: "Paras" - value: t.polkadot_runtime_parachains.paras.pallet.Event - } - export interface Ump { - type: "Ump" - value: t.polkadot_runtime_parachains.ump.pallet.Event - } - export interface Hrmp { - type: "Hrmp" - value: t.polkadot_runtime_parachains.hrmp.pallet.Event - } - export interface ParasDisputes { - type: "ParasDisputes" - value: t.polkadot_runtime_parachains.disputes.pallet.Event - } - export interface Registrar { - type: "Registrar" - value: t.polkadot_runtime_common.paras_registrar.pallet.Event - } - export interface Slots { - type: "Slots" - value: t.polkadot_runtime_common.slots.pallet.Event - } - export interface Auctions { - type: "Auctions" - value: t.polkadot_runtime_common.auctions.pallet.Event - } - export interface Crowdloan { - type: "Crowdloan" - value: t.polkadot_runtime_common.crowdloan.pallet.Event - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Event - } - export function System( - value: t.polkadot_runtime.RuntimeEvent.System["value"], - ): t.polkadot_runtime.RuntimeEvent.System { - return { type: "System", value } - } - export function Scheduler( - value: t.polkadot_runtime.RuntimeEvent.Scheduler["value"], - ): t.polkadot_runtime.RuntimeEvent.Scheduler { - return { type: "Scheduler", value } - } - export function Preimage( - value: t.polkadot_runtime.RuntimeEvent.Preimage["value"], - ): t.polkadot_runtime.RuntimeEvent.Preimage { - return { type: "Preimage", value } - } - export function Indices( - value: t.polkadot_runtime.RuntimeEvent.Indices["value"], - ): t.polkadot_runtime.RuntimeEvent.Indices { - return { type: "Indices", value } - } - export function Balances( - value: t.polkadot_runtime.RuntimeEvent.Balances["value"], - ): t.polkadot_runtime.RuntimeEvent.Balances { - return { type: "Balances", value } - } - export function TransactionPayment( - value: t.polkadot_runtime.RuntimeEvent.TransactionPayment["value"], - ): t.polkadot_runtime.RuntimeEvent.TransactionPayment { - return { type: "TransactionPayment", value } - } - export function Staking( - value: t.polkadot_runtime.RuntimeEvent.Staking["value"], - ): t.polkadot_runtime.RuntimeEvent.Staking { - return { type: "Staking", value } - } - export function Offences( - value: t.polkadot_runtime.RuntimeEvent.Offences["value"], - ): t.polkadot_runtime.RuntimeEvent.Offences { - return { type: "Offences", value } - } - export function Session( - value: t.polkadot_runtime.RuntimeEvent.Session["value"], - ): t.polkadot_runtime.RuntimeEvent.Session { - return { type: "Session", value } - } - export function Grandpa( - value: t.polkadot_runtime.RuntimeEvent.Grandpa["value"], - ): t.polkadot_runtime.RuntimeEvent.Grandpa { - return { type: "Grandpa", value } - } - export function ImOnline( - value: t.polkadot_runtime.RuntimeEvent.ImOnline["value"], - ): t.polkadot_runtime.RuntimeEvent.ImOnline { - return { type: "ImOnline", value } - } - export function Democracy( - value: t.polkadot_runtime.RuntimeEvent.Democracy["value"], - ): t.polkadot_runtime.RuntimeEvent.Democracy { - return { type: "Democracy", value } - } - export function Council( - value: t.polkadot_runtime.RuntimeEvent.Council["value"], - ): t.polkadot_runtime.RuntimeEvent.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.RuntimeEvent.TechnicalCommittee["value"], - ): t.polkadot_runtime.RuntimeEvent.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function PhragmenElection( - value: t.polkadot_runtime.RuntimeEvent.PhragmenElection["value"], - ): t.polkadot_runtime.RuntimeEvent.PhragmenElection { - return { type: "PhragmenElection", value } - } - export function TechnicalMembership( - value: t.polkadot_runtime.RuntimeEvent.TechnicalMembership["value"], - ): t.polkadot_runtime.RuntimeEvent.TechnicalMembership { - return { type: "TechnicalMembership", value } - } - export function Treasury( - value: t.polkadot_runtime.RuntimeEvent.Treasury["value"], - ): t.polkadot_runtime.RuntimeEvent.Treasury { - return { type: "Treasury", value } - } - export function Claims( - value: t.polkadot_runtime.RuntimeEvent.Claims["value"], - ): t.polkadot_runtime.RuntimeEvent.Claims { - return { type: "Claims", value } - } - export function Vesting( - value: t.polkadot_runtime.RuntimeEvent.Vesting["value"], - ): t.polkadot_runtime.RuntimeEvent.Vesting { - return { type: "Vesting", value } - } - export function Utility( - value: t.polkadot_runtime.RuntimeEvent.Utility["value"], - ): t.polkadot_runtime.RuntimeEvent.Utility { - return { type: "Utility", value } - } - export function Identity( - value: t.polkadot_runtime.RuntimeEvent.Identity["value"], - ): t.polkadot_runtime.RuntimeEvent.Identity { - return { type: "Identity", value } - } - export function Proxy( - value: t.polkadot_runtime.RuntimeEvent.Proxy["value"], - ): t.polkadot_runtime.RuntimeEvent.Proxy { - return { type: "Proxy", value } - } - export function Multisig( - value: t.polkadot_runtime.RuntimeEvent.Multisig["value"], - ): t.polkadot_runtime.RuntimeEvent.Multisig { - return { type: "Multisig", value } - } - export function Bounties( - value: t.polkadot_runtime.RuntimeEvent.Bounties["value"], - ): t.polkadot_runtime.RuntimeEvent.Bounties { - return { type: "Bounties", value } - } - export function ChildBounties( - value: t.polkadot_runtime.RuntimeEvent.ChildBounties["value"], - ): t.polkadot_runtime.RuntimeEvent.ChildBounties { - return { type: "ChildBounties", value } - } - export function Tips( - value: t.polkadot_runtime.RuntimeEvent.Tips["value"], - ): t.polkadot_runtime.RuntimeEvent.Tips { - return { type: "Tips", value } - } - export function ElectionProviderMultiPhase( - value: t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase["value"], - ): t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase { - return { type: "ElectionProviderMultiPhase", value } - } - export function VoterList( - value: t.polkadot_runtime.RuntimeEvent.VoterList["value"], - ): t.polkadot_runtime.RuntimeEvent.VoterList { - return { type: "VoterList", value } - } - export function NominationPools( - value: t.polkadot_runtime.RuntimeEvent.NominationPools["value"], - ): t.polkadot_runtime.RuntimeEvent.NominationPools { - return { type: "NominationPools", value } - } - export function FastUnstake( - value: t.polkadot_runtime.RuntimeEvent.FastUnstake["value"], - ): t.polkadot_runtime.RuntimeEvent.FastUnstake { - return { type: "FastUnstake", value } - } - export function ParaInclusion( - value: t.polkadot_runtime.RuntimeEvent.ParaInclusion["value"], - ): t.polkadot_runtime.RuntimeEvent.ParaInclusion { - return { type: "ParaInclusion", value } - } - export function Paras( - value: t.polkadot_runtime.RuntimeEvent.Paras["value"], - ): t.polkadot_runtime.RuntimeEvent.Paras { - return { type: "Paras", value } - } - export function Ump( - value: t.polkadot_runtime.RuntimeEvent.Ump["value"], - ): t.polkadot_runtime.RuntimeEvent.Ump { - return { type: "Ump", value } - } - export function Hrmp( - value: t.polkadot_runtime.RuntimeEvent.Hrmp["value"], - ): t.polkadot_runtime.RuntimeEvent.Hrmp { - return { type: "Hrmp", value } - } - export function ParasDisputes( - value: t.polkadot_runtime.RuntimeEvent.ParasDisputes["value"], - ): t.polkadot_runtime.RuntimeEvent.ParasDisputes { - return { type: "ParasDisputes", value } - } - export function Registrar( - value: t.polkadot_runtime.RuntimeEvent.Registrar["value"], - ): t.polkadot_runtime.RuntimeEvent.Registrar { - return { type: "Registrar", value } - } - export function Slots( - value: t.polkadot_runtime.RuntimeEvent.Slots["value"], - ): t.polkadot_runtime.RuntimeEvent.Slots { - return { type: "Slots", value } - } - export function Auctions( - value: t.polkadot_runtime.RuntimeEvent.Auctions["value"], - ): t.polkadot_runtime.RuntimeEvent.Auctions { - return { type: "Auctions", value } - } - export function Crowdloan( - value: t.polkadot_runtime.RuntimeEvent.Crowdloan["value"], - ): t.polkadot_runtime.RuntimeEvent.Crowdloan { - return { type: "Crowdloan", value } - } - export function XcmPallet( - value: t.polkadot_runtime.RuntimeEvent.XcmPallet["value"], - ): t.polkadot_runtime.RuntimeEvent.XcmPallet { - return { type: "XcmPallet", value } - } -} - -export interface SessionKeys { - grandpa: t.sp_finality_grandpa.app.Public - babe: t.sp_consensus_babe.app.Public - im_online: t.pallet_im_online.sr25519.app_sr25519.Public - para_validator: t.polkadot_primitives.v2.validator_app.Public - para_assignment: t.polkadot_primitives.v2.assignment_app.Public - authority_discovery: t.sp_authority_discovery.app.Public -} - -export function SessionKeys(value: t.polkadot_runtime.SessionKeys) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime_common/claims/mod.ts b/codegen/_output/polkadot/polkadot_runtime_common/claims/mod.ts deleted file mode 100644 index 205db5f73..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_common/claims/mod.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $ecdsaSignature: $.Codec = _codec.$246 - -export const $ethereumAddress: $.Codec = - _codec.$73 - -export const $prevalidateAttests: $.Codec = - _codec.$736 - -export const $statementKind: $.Codec = _codec.$251 - -export type EcdsaSignature = Uint8Array - -export function EcdsaSignature(value: t.polkadot_runtime_common.claims.EcdsaSignature) { - return value -} - -export type EthereumAddress = Uint8Array - -export function EthereumAddress(value: t.polkadot_runtime_common.claims.EthereumAddress) { - return value -} - -export function PrevalidateAttests() { - return null -} - -export type PrevalidateAttests = null - -export type StatementKind = "Regular" | "Saft" diff --git a/codegen/_output/polkadot/polkadot_runtime_common/crowdloan/mod.ts b/codegen/_output/polkadot/polkadot_runtime_common/crowdloan/mod.ts deleted file mode 100644 index a65019c60..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_common/crowdloan/mod.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $fundInfo: $.Codec = _codec.$710 - -export const $lastContribution: $.Codec = - _codec.$711 - -export interface FundInfo { - depositor: t.sp_core.crypto.AccountId32 - verifier: t.sp_runtime.MultiSigner | undefined - deposit: t.u128 - raised: t.u128 - end: t.u32 - cap: t.u128 - last_contribution: t.polkadot_runtime_common.crowdloan.LastContribution - first_period: t.u32 - last_period: t.u32 - fund_index: t.u32 -} - -export function FundInfo(value: t.polkadot_runtime_common.crowdloan.FundInfo) { - return value -} - -export type LastContribution = - | t.polkadot_runtime_common.crowdloan.LastContribution.Never - | t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding - | t.polkadot_runtime_common.crowdloan.LastContribution.Ending -export namespace LastContribution { - export interface Never { - type: "Never" - } - export interface PreEnding { - type: "PreEnding" - value: t.u32 - } - export interface Ending { - type: "Ending" - value: t.u32 - } - export function Never(): t.polkadot_runtime_common.crowdloan.LastContribution.Never { - return { type: "Never" } - } - export function PreEnding( - value: t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding["value"], - ): t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding { - return { type: "PreEnding", value } - } - export function Ending( - value: t.polkadot_runtime_common.crowdloan.LastContribution.Ending["value"], - ): t.polkadot_runtime_common.crowdloan.LastContribution.Ending { - return { type: "Ending", value } - } -} diff --git a/codegen/_output/polkadot/polkadot_runtime_common/paras_registrar/mod.ts b/codegen/_output/polkadot/polkadot_runtime_common/paras_registrar/mod.ts deleted file mode 100644 index 952b109ba..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_common/paras_registrar/mod.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $paraInfo: $.Codec = _codec.$701 - -export interface ParaInfo { - manager: t.sp_core.crypto.AccountId32 - deposit: t.u128 - locked: boolean -} - -export function ParaInfo(value: t.polkadot_runtime_common.paras_registrar.ParaInfo) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/configuration/mod.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/configuration/mod.ts deleted file mode 100644 index 58a100e5b..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/configuration/mod.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $hostConfiguration: $.Codec< - t.polkadot_runtime_parachains.configuration.HostConfiguration -> = _codec.$638 - -export interface HostConfiguration { - max_code_size: t.u32 - max_head_data_size: t.u32 - max_upward_queue_count: t.u32 - max_upward_queue_size: t.u32 - max_upward_message_size: t.u32 - max_upward_message_num_per_candidate: t.u32 - hrmp_max_message_num_per_candidate: t.u32 - validation_upgrade_cooldown: t.u32 - validation_upgrade_delay: t.u32 - max_pov_size: t.u32 - max_downward_message_size: t.u32 - ump_service_total_weight: t.sp_weights.weight_v2.Weight - hrmp_max_parachain_outbound_channels: t.u32 - hrmp_max_parathread_outbound_channels: t.u32 - hrmp_sender_deposit: t.u128 - hrmp_recipient_deposit: t.u128 - hrmp_channel_max_capacity: t.u32 - hrmp_channel_max_total_size: t.u32 - hrmp_max_parachain_inbound_channels: t.u32 - hrmp_max_parathread_inbound_channels: t.u32 - hrmp_channel_max_message_size: t.u32 - code_retention_period: t.u32 - parathread_cores: t.u32 - parathread_retries: t.u32 - group_rotation_frequency: t.u32 - chain_availability_period: t.u32 - thread_availability_period: t.u32 - scheduling_lookahead: t.u32 - max_validators_per_core: t.u32 | undefined - max_validators: t.u32 | undefined - dispute_period: t.u32 - dispute_post_conclusion_acceptance_period: t.u32 - dispute_max_spam_slots: t.u32 - dispute_conclusion_by_time_out_period: t.u32 - no_show_slots: t.u32 - n_delay_tranches: t.u32 - zeroth_delay_tranche_width: t.u32 - needed_approvals: t.u32 - relay_vrf_modulo_samples: t.u32 - ump_max_individual_weight: t.sp_weights.weight_v2.Weight - pvf_checking_enabled: boolean - pvf_voting_ttl: t.u32 - minimum_validation_upgrade_delay: t.u32 -} - -export function HostConfiguration( - value: t.polkadot_runtime_parachains.configuration.HostConfiguration, -) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/disputes/mod.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/disputes/mod.ts deleted file mode 100644 index d1f7d5c78..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/disputes/mod.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $disputeLocation: $.Codec = - _codec.$115 - -export const $disputeResult: $.Codec = - _codec.$116 - -export type DisputeLocation = "Local" | "Remote" - -export type DisputeResult = "Valid" | "Invalid" diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/dmp/pallet.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/dmp/pallet.ts deleted file mode 100644 index 824aca702..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/dmp/pallet.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $call: $.Codec = _codec.$407 - -/** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = never diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/hrmp/mod.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/hrmp/mod.ts deleted file mode 100644 index 80f6f4046..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/hrmp/mod.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $hrmpChannel: $.Codec = _codec.$688 - -export const $hrmpOpenChannelRequest: $.Codec< - t.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest -> = _codec.$686 - -export interface HrmpChannel { - max_capacity: t.u32 - max_total_size: t.u32 - max_message_size: t.u32 - msg_count: t.u32 - total_size: t.u32 - mqc_head: t.primitive_types.H256 | undefined - sender_deposit: t.u128 - recipient_deposit: t.u128 -} - -export function HrmpChannel(value: t.polkadot_runtime_parachains.hrmp.HrmpChannel) { - return value -} - -export interface HrmpOpenChannelRequest { - confirmed: boolean - _age: t.u32 - sender_deposit: t.u128 - max_message_size: t.u32 - max_capacity: t.u32 - max_total_size: t.u32 -} - -export function HrmpOpenChannelRequest( - value: t.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest, -) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/inclusion/mod.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/inclusion/mod.ts deleted file mode 100644 index 8d4b05566..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/inclusion/mod.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $availabilityBitfieldRecord: $.Codec< - t.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord -> = _codec.$644 - -export const $candidatePendingAvailability: $.Codec< - t.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability -> = _codec.$645 - -export interface AvailabilityBitfieldRecord { - bitfield: t.polkadot_primitives.v2.AvailabilityBitfield - submitted_at: t.u32 -} - -export function AvailabilityBitfieldRecord( - value: t.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord, -) { - return value -} - -export interface CandidatePendingAvailability { - core: t.polkadot_primitives.v2.CoreIndex - hash: t.polkadot_core_primitives.CandidateHash - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - availability_votes: $.BitSequence - backers: $.BitSequence - relay_parent_number: t.u32 - backed_in_number: t.u32 - backing_group: t.polkadot_primitives.v2.GroupIndex -} - -export function CandidatePendingAvailability( - value: t.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability, -) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/initializer/mod.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/initializer/mod.ts deleted file mode 100644 index 13dbb8fd9..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/initializer/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $bufferedSessionChange: $.Codec< - t.polkadot_runtime_parachains.initializer.BufferedSessionChange -> = _codec.$681 - -export interface BufferedSessionChange { - validators: Array - queued: Array - session_index: t.u32 -} - -export function BufferedSessionChange( - value: t.polkadot_runtime_parachains.initializer.BufferedSessionChange, -) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/origin/pallet.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/origin/pallet.ts deleted file mode 100644 index ae5aabd46..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/origin/pallet.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $origin: $.Codec = _codec.$260 - -export type Origin = t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain -export namespace Origin { - export interface Parachain { - type: "Parachain" - value: t.polkadot_parachain.primitives.Id - } - export function Parachain( - value: t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain["value"], - ): t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain { - return { type: "Parachain", value } - } -} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/paras/mod.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/paras/mod.ts deleted file mode 100644 index 4d940b368..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/paras/mod.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $paraGenesisArgs: $.Codec = - _codec.$678 - -export const $paraLifecycle: $.Codec = - _codec.$670 - -export const $paraPastCodeMeta: $.Codec = - _codec.$672 - -export const $pvfCheckActiveVoteState: $.Codec< - t.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState -> = _codec.$666 - -export const $pvfCheckCause: $.Codec = - _codec.$668 - -export const $replacementTimes: $.Codec = - _codec.$674 - -export interface ParaGenesisArgs { - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode - parachain: boolean -} - -export function ParaGenesisArgs(value: t.polkadot_runtime_parachains.paras.ParaGenesisArgs) { - return value -} - -export type ParaLifecycle = - | "Onboarding" - | "Parathread" - | "Parachain" - | "UpgradingParathread" - | "DowngradingParachain" - | "OffboardingParathread" - | "OffboardingParachain" - -export interface ParaPastCodeMeta { - upgrade_times: Array - last_pruned: t.u32 | undefined -} - -export function ParaPastCodeMeta(value: t.polkadot_runtime_parachains.paras.ParaPastCodeMeta) { - return value -} - -export interface PvfCheckActiveVoteState { - votes_accept: $.BitSequence - votes_reject: $.BitSequence - age: t.u32 - created_at: t.u32 - causes: Array -} - -export function PvfCheckActiveVoteState( - value: t.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState, -) { - return value -} - -export type PvfCheckCause = - | t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding - | t.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade -export namespace PvfCheckCause { - export interface Onboarding { - type: "Onboarding" - value: t.polkadot_parachain.primitives.Id - } - export interface Upgrade { - type: "Upgrade" - id: t.polkadot_parachain.primitives.Id - relay_parent_number: t.u32 - } - export function Onboarding( - value: t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding["value"], - ): t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding { - return { type: "Onboarding", value } - } - export function Upgrade( - value: Omit, - ): t.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade { - return { type: "Upgrade", ...value } - } -} - -export interface ReplacementTimes { - expected_at: t.u32 - activated_at: t.u32 -} - -export function ReplacementTimes(value: t.polkadot_runtime_parachains.paras.ReplacementTimes) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/scheduler.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/scheduler.ts deleted file mode 100644 index 7fdaa4ecb..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/scheduler.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $assignmentKind: $.Codec = - _codec.$665 - -export const $coreAssignment: $.Codec = - _codec.$664 - -export const $parathreadClaimQueue: $.Codec< - t.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue -> = _codec.$654 - -export const $queuedParathread: $.Codec = - _codec.$656 - -export type AssignmentKind = - | t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain - | t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread -export namespace AssignmentKind { - export interface Parachain { - type: "Parachain" - } - export interface Parathread { - type: "Parathread" - value: [t.polkadot_primitives.v2.collator_app.Public, t.u32] - } - export function Parachain(): t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain { - return { type: "Parachain" } - } - export function Parathread( - ...value: t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread["value"] - ): t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread { - return { type: "Parathread", value } - } -} - -export interface CoreAssignment { - core: t.polkadot_primitives.v2.CoreIndex - para_id: t.polkadot_parachain.primitives.Id - kind: t.polkadot_runtime_parachains.scheduler.AssignmentKind - group_idx: t.polkadot_primitives.v2.GroupIndex -} - -export function CoreAssignment(value: t.polkadot_runtime_parachains.scheduler.CoreAssignment) { - return value -} - -export interface ParathreadClaimQueue { - queue: Array - next_core_offset: t.u32 -} - -export function ParathreadClaimQueue( - value: t.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue, -) { - return value -} - -export interface QueuedParathread { - claim: t.polkadot_primitives.v2.ParathreadEntry - core_offset: t.u32 -} - -export function QueuedParathread(value: t.polkadot_runtime_parachains.scheduler.QueuedParathread) { - return value -} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/shared/pallet.ts b/codegen/_output/polkadot/polkadot_runtime_parachains/shared/pallet.ts deleted file mode 100644 index c40d97d4d..000000000 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/shared/pallet.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $call: $.Codec = _codec.$376 - -/** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = never diff --git a/codegen/_output/polkadot/primitive_types.ts b/codegen/_output/polkadot/primitive_types.ts deleted file mode 100644 index 10f714849..000000000 --- a/codegen/_output/polkadot/primitive_types.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $h256: $.Codec = _codec.$11 - -export type H256 = Uint8Array - -export function H256(value: t.primitive_types.H256) { - return value -} diff --git a/codegen/_output/polkadot/sp_arithmetic/fixed_point.ts b/codegen/_output/polkadot/sp_arithmetic/fixed_point.ts deleted file mode 100644 index 674cc82fd..000000000 --- a/codegen/_output/polkadot/sp_arithmetic/fixed_point.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $fixedU128: $.Codec = _codec.$479 - -export type FixedU128 = t.u128 - -export function FixedU128(value: t.sp_arithmetic.fixed_point.FixedU128) { - return value -} diff --git a/codegen/_output/polkadot/sp_arithmetic/per_things.ts b/codegen/_output/polkadot/sp_arithmetic/per_things.ts deleted file mode 100644 index c152d090b..000000000 --- a/codegen/_output/polkadot/sp_arithmetic/per_things.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $perU16: $.Codec = _codec.$320 - -export const $perbill: $.Codec = _codec.$42 - -export const $percent: $.Codec = _codec.$205 - -export const $permill: $.Codec = _codec.$558 - -export type PerU16 = t.u16 - -export function PerU16(value: t.sp_arithmetic.per_things.PerU16) { - return value -} - -export type Perbill = t.u32 - -export function Perbill(value: t.sp_arithmetic.per_things.Perbill) { - return value -} - -export type Percent = t.u8 - -export function Percent(value: t.sp_arithmetic.per_things.Percent) { - return value -} - -export type Permill = t.u32 - -export function Permill(value: t.sp_arithmetic.per_things.Permill) { - return value -} diff --git a/codegen/_output/polkadot/sp_authority_discovery/app.ts b/codegen/_output/polkadot/sp_authority_discovery/app.ts deleted file mode 100644 index 918896eec..000000000 --- a/codegen/_output/polkadot/sp_authority_discovery/app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$215 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.sp_authority_discovery.app.Public) { - return value -} diff --git a/codegen/_output/polkadot/sp_consensus_babe/app.ts b/codegen/_output/polkadot/sp_consensus_babe/app.ts deleted file mode 100644 index 40f9ba509..000000000 --- a/codegen/_output/polkadot/sp_consensus_babe/app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$189 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.sp_consensus_babe.app.Public) { - return value -} diff --git a/codegen/_output/polkadot/sp_consensus_babe/digests.ts b/codegen/_output/polkadot/sp_consensus_babe/digests.ts deleted file mode 100644 index 423b1d1b6..000000000 --- a/codegen/_output/polkadot/sp_consensus_babe/digests.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $nextConfigDescriptor: $.Codec = - _codec.$192 - -export const $preDigest: $.Codec = _codec.$462 - -export const $primaryPreDigest: $.Codec = _codec.$463 - -export const $secondaryPlainPreDigest: $.Codec< - t.sp_consensus_babe.digests.SecondaryPlainPreDigest -> = _codec.$464 - -export const $secondaryVRFPreDigest: $.Codec = - _codec.$465 - -export type NextConfigDescriptor = t.sp_consensus_babe.digests.NextConfigDescriptor.V1 -export namespace NextConfigDescriptor { - export interface V1 { - type: "V1" - c: [t.u64, t.u64] - allowed_slots: t.sp_consensus_babe.AllowedSlots - } - export function V1( - value: Omit, - ): t.sp_consensus_babe.digests.NextConfigDescriptor.V1 { - return { type: "V1", ...value } - } -} - -export type PreDigest = - | t.sp_consensus_babe.digests.PreDigest.Primary - | t.sp_consensus_babe.digests.PreDigest.SecondaryPlain - | t.sp_consensus_babe.digests.PreDigest.SecondaryVRF -export namespace PreDigest { - export interface Primary { - type: "Primary" - value: t.sp_consensus_babe.digests.PrimaryPreDigest - } - export interface SecondaryPlain { - type: "SecondaryPlain" - value: t.sp_consensus_babe.digests.SecondaryPlainPreDigest - } - export interface SecondaryVRF { - type: "SecondaryVRF" - value: t.sp_consensus_babe.digests.SecondaryVRFPreDigest - } - export function Primary( - value: t.sp_consensus_babe.digests.PreDigest.Primary["value"], - ): t.sp_consensus_babe.digests.PreDigest.Primary { - return { type: "Primary", value } - } - export function SecondaryPlain( - value: t.sp_consensus_babe.digests.PreDigest.SecondaryPlain["value"], - ): t.sp_consensus_babe.digests.PreDigest.SecondaryPlain { - return { type: "SecondaryPlain", value } - } - export function SecondaryVRF( - value: t.sp_consensus_babe.digests.PreDigest.SecondaryVRF["value"], - ): t.sp_consensus_babe.digests.PreDigest.SecondaryVRF { - return { type: "SecondaryVRF", value } - } -} - -export interface PrimaryPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot - vrf_output: Uint8Array - vrf_proof: Uint8Array -} - -export function PrimaryPreDigest(value: t.sp_consensus_babe.digests.PrimaryPreDigest) { - return value -} - -export interface SecondaryPlainPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot -} - -export function SecondaryPlainPreDigest( - value: t.sp_consensus_babe.digests.SecondaryPlainPreDigest, -) { - return value -} - -export interface SecondaryVRFPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot - vrf_output: Uint8Array - vrf_proof: Uint8Array -} - -export function SecondaryVRFPreDigest(value: t.sp_consensus_babe.digests.SecondaryVRFPreDigest) { - return value -} diff --git a/codegen/_output/polkadot/sp_consensus_babe/mod.ts b/codegen/_output/polkadot/sp_consensus_babe/mod.ts deleted file mode 100644 index a38c9e392..000000000 --- a/codegen/_output/polkadot/sp_consensus_babe/mod.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as app from "./app.ts" -export * as digests from "./digests.ts" - -export const $allowedSlots: $.Codec = _codec.$194 - -export const $babeEpochConfiguration: $.Codec = - _codec.$466 - -export type AllowedSlots = - | "PrimarySlots" - | "PrimaryAndSecondaryPlainSlots" - | "PrimaryAndSecondaryVRFSlots" - -export interface BabeEpochConfiguration { - c: [t.u64, t.u64] - allowed_slots: t.sp_consensus_babe.AllowedSlots -} - -export function BabeEpochConfiguration(value: t.sp_consensus_babe.BabeEpochConfiguration) { - return value -} diff --git a/codegen/_output/polkadot/sp_consensus_slots.ts b/codegen/_output/polkadot/sp_consensus_slots.ts deleted file mode 100644 index 841934e60..000000000 --- a/codegen/_output/polkadot/sp_consensus_slots.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $equivocationProof: $.Codec = _codec.$186 - -export const $slot: $.Codec = _codec.$190 - -export interface EquivocationProof { - offender: t.sp_consensus_babe.app.Public - slot: t.sp_consensus_slots.Slot - first_header: t.sp_runtime.generic.header.Header - second_header: t.sp_runtime.generic.header.Header -} - -export function EquivocationProof(value: t.sp_consensus_slots.EquivocationProof) { - return value -} - -export type Slot = t.u64 - -export function Slot(value: t.sp_consensus_slots.Slot) { - return value -} diff --git a/codegen/_output/polkadot/sp_core/crypto.ts b/codegen/_output/polkadot/sp_core/crypto.ts deleted file mode 100644 index 8fa0bc6b2..000000000 --- a/codegen/_output/polkadot/sp_core/crypto.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $accountId32: $.Codec = _codec.$0 - -export const $keyTypeId: $.Codec = _codec.$514 - -export type AccountId32 = Uint8Array - -export function AccountId32(value: t.sp_core.crypto.AccountId32) { - return value -} - -export type KeyTypeId = Uint8Array - -export function KeyTypeId(value: t.sp_core.crypto.KeyTypeId) { - return value -} diff --git a/codegen/_output/polkadot/sp_core/ecdsa.ts b/codegen/_output/polkadot/sp_core/ecdsa.ts deleted file mode 100644 index b69928dff..000000000 --- a/codegen/_output/polkadot/sp_core/ecdsa.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$418 - -export const $signature: $.Codec = _codec.$422 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.ecdsa.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.ecdsa.Signature) { - return value -} diff --git a/codegen/_output/polkadot/sp_core/ed25519.ts b/codegen/_output/polkadot/sp_core/ed25519.ts deleted file mode 100644 index ed142f6b4..000000000 --- a/codegen/_output/polkadot/sp_core/ed25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$51 - -export const $signature: $.Codec = _codec.$222 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.ed25519.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.ed25519.Signature) { - return value -} diff --git a/codegen/_output/polkadot/sp_core/mod.ts b/codegen/_output/polkadot/sp_core/mod.ts deleted file mode 100644 index ab5fac89c..000000000 --- a/codegen/_output/polkadot/sp_core/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as crypto from "./crypto.ts" -export * as ecdsa from "./ecdsa.ts" -export * as ed25519 from "./ed25519.ts" -export * as offchain from "./offchain.ts" -export * as sr25519 from "./sr25519.ts" - -export const $opaquePeerId: $.Codec = _codec.$230 - -export const $void: $.Codec = _codec.$262 - -export type OpaquePeerId = Uint8Array - -export function OpaquePeerId(value: t.sp_core.OpaquePeerId) { - return value -} - -export type Void = never diff --git a/codegen/_output/polkadot/sp_core/offchain.ts b/codegen/_output/polkadot/sp_core/offchain.ts deleted file mode 100644 index 3aa308902..000000000 --- a/codegen/_output/polkadot/sp_core/offchain.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $opaqueMultiaddr: $.Codec = _codec.$232 - -export const $opaqueNetworkState: $.Codec = _codec.$229 - -export type OpaqueMultiaddr = Uint8Array - -export function OpaqueMultiaddr(value: t.sp_core.offchain.OpaqueMultiaddr) { - return value -} - -export interface OpaqueNetworkState { - peer_id: t.sp_core.OpaquePeerId - external_addresses: Array -} - -export function OpaqueNetworkState(value: t.sp_core.offchain.OpaqueNetworkState) { - return value -} diff --git a/codegen/_output/polkadot/sp_core/sr25519.ts b/codegen/_output/polkadot/sp_core/sr25519.ts deleted file mode 100644 index a8a042cf8..000000000 --- a/codegen/_output/polkadot/sp_core/sr25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$54 - -export const $signature: $.Codec = _codec.$101 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.sr25519.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.sr25519.Signature) { - return value -} diff --git a/codegen/_output/polkadot/sp_finality_grandpa/app.ts b/codegen/_output/polkadot/sp_finality_grandpa/app.ts deleted file mode 100644 index 511c7a3b0..000000000 --- a/codegen/_output/polkadot/sp_finality_grandpa/app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$50 - -export const $signature: $.Codec = _codec.$221 - -export type Public = t.sp_core.ed25519.Public - -export function Public(value: t.sp_finality_grandpa.app.Public) { - return value -} - -export type Signature = t.sp_core.ed25519.Signature - -export function Signature(value: t.sp_finality_grandpa.app.Signature) { - return value -} diff --git a/codegen/_output/polkadot/sp_finality_grandpa/mod.ts b/codegen/_output/polkadot/sp_finality_grandpa/mod.ts deleted file mode 100644 index ea0fdf364..000000000 --- a/codegen/_output/polkadot/sp_finality_grandpa/mod.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as app from "./app.ts" - -export const $equivocation: $.Codec = _codec.$218 - -export const $equivocationProof: $.Codec = _codec.$217 - -export type Equivocation = - | t.sp_finality_grandpa.Equivocation.Prevote - | t.sp_finality_grandpa.Equivocation.Precommit -export namespace Equivocation { - export interface Prevote { - type: "Prevote" - value: t.finality_grandpa.Equivocation.$$finality_grandpa.Prevote - } - export interface Precommit { - type: "Precommit" - value: t.finality_grandpa.Equivocation.$$finality_grandpa.Precommit - } - export function Prevote( - value: t.sp_finality_grandpa.Equivocation.Prevote["value"], - ): t.sp_finality_grandpa.Equivocation.Prevote { - return { type: "Prevote", value } - } - export function Precommit( - value: t.sp_finality_grandpa.Equivocation.Precommit["value"], - ): t.sp_finality_grandpa.Equivocation.Precommit { - return { type: "Precommit", value } - } -} - -export interface EquivocationProof { - set_id: t.u64 - equivocation: t.sp_finality_grandpa.Equivocation -} - -export function EquivocationProof(value: t.sp_finality_grandpa.EquivocationProof) { - return value -} diff --git a/codegen/_output/polkadot/sp_npos_elections.ts b/codegen/_output/polkadot/sp_npos_elections.ts deleted file mode 100644 index 7bbe5b644..000000000 --- a/codegen/_output/polkadot/sp_npos_elections.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $electionScore: $.Codec = _codec.$88 - -export const $support: $.Codec = _codec.$367 - -export interface ElectionScore { - minimal_stake: t.u128 - sum_stake: t.u128 - sum_stake_squared: t.u128 -} - -export function ElectionScore(value: t.sp_npos_elections.ElectionScore) { - return value -} - -export interface Support { - total: t.u128 - voters: Array<[t.sp_core.crypto.AccountId32, t.u128]> -} - -export function Support(value: t.sp_npos_elections.Support) { - return value -} diff --git a/codegen/_output/polkadot/sp_runtime/generic/digest.ts b/codegen/_output/polkadot/sp_runtime/generic/digest.ts deleted file mode 100644 index 1b574b774..000000000 --- a/codegen/_output/polkadot/sp_runtime/generic/digest.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $digest: $.Codec = _codec.$13 - -export const $digestItem: $.Codec = _codec.$15 - -export interface Digest { - logs: Array -} - -export function Digest(value: t.sp_runtime.generic.digest.Digest) { - return value -} - -export type DigestItem = - | t.sp_runtime.generic.digest.DigestItem.PreRuntime - | t.sp_runtime.generic.digest.DigestItem.Consensus - | t.sp_runtime.generic.digest.DigestItem.Seal - | t.sp_runtime.generic.digest.DigestItem.Other - | t.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated -export namespace DigestItem { - export interface PreRuntime { - type: "PreRuntime" - value: [Uint8Array, Uint8Array] - } - export interface Consensus { - type: "Consensus" - value: [Uint8Array, Uint8Array] - } - export interface Seal { - type: "Seal" - value: [Uint8Array, Uint8Array] - } - export interface Other { - type: "Other" - value: Uint8Array - } - export interface RuntimeEnvironmentUpdated { - type: "RuntimeEnvironmentUpdated" - } - export function PreRuntime( - ...value: t.sp_runtime.generic.digest.DigestItem.PreRuntime["value"] - ): t.sp_runtime.generic.digest.DigestItem.PreRuntime { - return { type: "PreRuntime", value } - } - export function Consensus( - ...value: t.sp_runtime.generic.digest.DigestItem.Consensus["value"] - ): t.sp_runtime.generic.digest.DigestItem.Consensus { - return { type: "Consensus", value } - } - export function Seal( - ...value: t.sp_runtime.generic.digest.DigestItem.Seal["value"] - ): t.sp_runtime.generic.digest.DigestItem.Seal { - return { type: "Seal", value } - } - export function Other( - value: t.sp_runtime.generic.digest.DigestItem.Other["value"], - ): t.sp_runtime.generic.digest.DigestItem.Other { - return { type: "Other", value } - } - export function RuntimeEnvironmentUpdated(): t.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated { - return { type: "RuntimeEnvironmentUpdated" } - } -} diff --git a/codegen/_output/polkadot/sp_runtime/generic/header.ts b/codegen/_output/polkadot/sp_runtime/generic/header.ts deleted file mode 100644 index 70f43e755..000000000 --- a/codegen/_output/polkadot/sp_runtime/generic/header.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $header: $.Codec = _codec.$187 - -export interface Header { - parent_hash: t.primitive_types.H256 - number: t.Compact - state_root: t.primitive_types.H256 - extrinsics_root: t.primitive_types.H256 - digest: t.sp_runtime.generic.digest.Digest -} - -export function Header(value: t.sp_runtime.generic.header.Header) { - return value -} diff --git a/codegen/_output/polkadot/sp_runtime/mod.ts b/codegen/_output/polkadot/sp_runtime/mod.ts deleted file mode 100644 index a8b3cf982..000000000 --- a/codegen/_output/polkadot/sp_runtime/mod.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as generic from "./generic/mod.ts" -export * as multiaddress from "./multiaddress.ts" -export * as traits from "./traits.ts" - -export const $arithmeticError: $.Codec = _codec.$27 - -export const $dispatchError: $.Codec = _codec.$24 - -export const $moduleError: $.Codec = _codec.$25 - -export const $multiSignature: $.Codec = _codec.$421 - -export const $multiSigner: $.Codec = _codec.$417 - -export const $tokenError: $.Codec = _codec.$26 - -export const $transactionalError: $.Codec = _codec.$28 - -export type ArithmeticError = "Underflow" | "Overflow" | "DivisionByZero" - -export type DispatchError = - | t.sp_runtime.DispatchError.Other - | t.sp_runtime.DispatchError.CannotLookup - | t.sp_runtime.DispatchError.BadOrigin - | t.sp_runtime.DispatchError.Module - | t.sp_runtime.DispatchError.ConsumerRemaining - | t.sp_runtime.DispatchError.NoProviders - | t.sp_runtime.DispatchError.TooManyConsumers - | t.sp_runtime.DispatchError.Token - | t.sp_runtime.DispatchError.Arithmetic - | t.sp_runtime.DispatchError.Transactional - | t.sp_runtime.DispatchError.Exhausted - | t.sp_runtime.DispatchError.Corruption - | t.sp_runtime.DispatchError.Unavailable -export namespace DispatchError { - export interface Other { - type: "Other" - } - export interface CannotLookup { - type: "CannotLookup" - } - export interface BadOrigin { - type: "BadOrigin" - } - export interface Module { - type: "Module" - value: t.sp_runtime.ModuleError - } - export interface ConsumerRemaining { - type: "ConsumerRemaining" - } - export interface NoProviders { - type: "NoProviders" - } - export interface TooManyConsumers { - type: "TooManyConsumers" - } - export interface Token { - type: "Token" - value: t.sp_runtime.TokenError - } - export interface Arithmetic { - type: "Arithmetic" - value: t.sp_runtime.ArithmeticError - } - export interface Transactional { - type: "Transactional" - value: t.sp_runtime.TransactionalError - } - export interface Exhausted { - type: "Exhausted" - } - export interface Corruption { - type: "Corruption" - } - export interface Unavailable { - type: "Unavailable" - } - export function Other(): t.sp_runtime.DispatchError.Other { - return { type: "Other" } - } - export function CannotLookup(): t.sp_runtime.DispatchError.CannotLookup { - return { type: "CannotLookup" } - } - export function BadOrigin(): t.sp_runtime.DispatchError.BadOrigin { - return { type: "BadOrigin" } - } - export function Module( - value: t.sp_runtime.DispatchError.Module["value"], - ): t.sp_runtime.DispatchError.Module { - return { type: "Module", value } - } - export function ConsumerRemaining(): t.sp_runtime.DispatchError.ConsumerRemaining { - return { type: "ConsumerRemaining" } - } - export function NoProviders(): t.sp_runtime.DispatchError.NoProviders { - return { type: "NoProviders" } - } - export function TooManyConsumers(): t.sp_runtime.DispatchError.TooManyConsumers { - return { type: "TooManyConsumers" } - } - export function Token( - value: t.sp_runtime.DispatchError.Token["value"], - ): t.sp_runtime.DispatchError.Token { - return { type: "Token", value } - } - export function Arithmetic( - value: t.sp_runtime.DispatchError.Arithmetic["value"], - ): t.sp_runtime.DispatchError.Arithmetic { - return { type: "Arithmetic", value } - } - export function Transactional( - value: t.sp_runtime.DispatchError.Transactional["value"], - ): t.sp_runtime.DispatchError.Transactional { - return { type: "Transactional", value } - } - export function Exhausted(): t.sp_runtime.DispatchError.Exhausted { - return { type: "Exhausted" } - } - export function Corruption(): t.sp_runtime.DispatchError.Corruption { - return { type: "Corruption" } - } - export function Unavailable(): t.sp_runtime.DispatchError.Unavailable { - return { type: "Unavailable" } - } -} - -export interface ModuleError { - index: t.u8 - error: Uint8Array -} - -export function ModuleError(value: t.sp_runtime.ModuleError) { - return value -} - -export type MultiSignature = - | t.sp_runtime.MultiSignature.Ed25519 - | t.sp_runtime.MultiSignature.Sr25519 - | t.sp_runtime.MultiSignature.Ecdsa -export namespace MultiSignature { - export interface Ed25519 { - type: "Ed25519" - value: t.sp_core.ed25519.Signature - } - export interface Sr25519 { - type: "Sr25519" - value: t.sp_core.sr25519.Signature - } - export interface Ecdsa { - type: "Ecdsa" - value: t.sp_core.ecdsa.Signature - } - export function Ed25519( - value: t.sp_runtime.MultiSignature.Ed25519["value"], - ): t.sp_runtime.MultiSignature.Ed25519 { - return { type: "Ed25519", value } - } - export function Sr25519( - value: t.sp_runtime.MultiSignature.Sr25519["value"], - ): t.sp_runtime.MultiSignature.Sr25519 { - return { type: "Sr25519", value } - } - export function Ecdsa( - value: t.sp_runtime.MultiSignature.Ecdsa["value"], - ): t.sp_runtime.MultiSignature.Ecdsa { - return { type: "Ecdsa", value } - } -} - -export type MultiSigner = - | t.sp_runtime.MultiSigner.Ed25519 - | t.sp_runtime.MultiSigner.Sr25519 - | t.sp_runtime.MultiSigner.Ecdsa -export namespace MultiSigner { - export interface Ed25519 { - type: "Ed25519" - value: t.sp_core.ed25519.Public - } - export interface Sr25519 { - type: "Sr25519" - value: t.sp_core.sr25519.Public - } - export interface Ecdsa { - type: "Ecdsa" - value: t.sp_core.ecdsa.Public - } - export function Ed25519( - value: t.sp_runtime.MultiSigner.Ed25519["value"], - ): t.sp_runtime.MultiSigner.Ed25519 { - return { type: "Ed25519", value } - } - export function Sr25519( - value: t.sp_runtime.MultiSigner.Sr25519["value"], - ): t.sp_runtime.MultiSigner.Sr25519 { - return { type: "Sr25519", value } - } - export function Ecdsa( - value: t.sp_runtime.MultiSigner.Ecdsa["value"], - ): t.sp_runtime.MultiSigner.Ecdsa { - return { type: "Ecdsa", value } - } -} - -export type TokenError = - | "NoFunds" - | "WouldDie" - | "BelowMinimum" - | "CannotCreate" - | "UnknownAsset" - | "Frozen" - | "Unsupported" - -export type TransactionalError = "LimitReached" | "NoLayer" diff --git a/codegen/_output/polkadot/sp_runtime/multiaddress.ts b/codegen/_output/polkadot/sp_runtime/multiaddress.ts deleted file mode 100644 index 4dc61094d..000000000 --- a/codegen/_output/polkadot/sp_runtime/multiaddress.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $multiAddress: $.Codec = _codec.$197 - -export type MultiAddress = - | t.sp_runtime.multiaddress.MultiAddress.Id - | t.sp_runtime.multiaddress.MultiAddress.Index - | t.sp_runtime.multiaddress.MultiAddress.Raw - | t.sp_runtime.multiaddress.MultiAddress.Address32 - | t.sp_runtime.multiaddress.MultiAddress.Address20 -export namespace MultiAddress { - export interface Id { - type: "Id" - value: t.sp_core.crypto.AccountId32 - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Raw { - type: "Raw" - value: Uint8Array - } - export interface Address32 { - type: "Address32" - value: Uint8Array - } - export interface Address20 { - type: "Address20" - value: Uint8Array - } - export function Id( - value: t.sp_runtime.multiaddress.MultiAddress.Id["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Id { - return { type: "Id", value } - } - export function Index( - value: t.sp_runtime.multiaddress.MultiAddress.Index["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Index { - return { type: "Index", value } - } - export function Raw( - value: t.sp_runtime.multiaddress.MultiAddress.Raw["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Raw { - return { type: "Raw", value } - } - export function Address32( - value: t.sp_runtime.multiaddress.MultiAddress.Address32["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Address32 { - return { type: "Address32", value } - } - export function Address20( - value: t.sp_runtime.multiaddress.MultiAddress.Address20["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Address20 { - return { type: "Address20", value } - } -} diff --git a/codegen/_output/polkadot/sp_runtime/traits.ts b/codegen/_output/polkadot/sp_runtime/traits.ts deleted file mode 100644 index 942c3712f..000000000 --- a/codegen/_output/polkadot/sp_runtime/traits.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $blakeTwo256: $.Codec = _codec.$188 - -export function BlakeTwo256() { - return null -} - -export type BlakeTwo256 = null diff --git a/codegen/_output/polkadot/sp_session.ts b/codegen/_output/polkadot/sp_session.ts deleted file mode 100644 index 3ebb285df..000000000 --- a/codegen/_output/polkadot/sp_session.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $membershipProof: $.Codec = _codec.$191 - -export interface MembershipProof { - session: t.u32 - trie_nodes: Array - validator_count: t.u32 -} - -export function MembershipProof(value: t.sp_session.MembershipProof) { - return value -} diff --git a/codegen/_output/polkadot/sp_staking/offence.ts b/codegen/_output/polkadot/sp_staking/offence.ts deleted file mode 100644 index 02918d79f..000000000 --- a/codegen/_output/polkadot/sp_staking/offence.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $offenceDetails: $.Codec = _codec.$509 - -export interface OffenceDetails { - offender: [t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure] - reporters: Array -} - -export function OffenceDetails(value: t.sp_staking.offence.OffenceDetails) { - return value -} diff --git a/codegen/_output/polkadot/sp_version.ts b/codegen/_output/polkadot/sp_version.ts deleted file mode 100644 index 3f8103413..000000000 --- a/codegen/_output/polkadot/sp_version.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $runtimeVersion: $.Codec = _codec.$172 - -export interface RuntimeVersion { - spec_name: string - impl_name: string - authoring_version: t.u32 - spec_version: t.u32 - impl_version: t.u32 - apis: Array<[Uint8Array, t.u32]> - transaction_version: t.u32 - state_version: t.u8 -} - -export function RuntimeVersion(value: t.sp_version.RuntimeVersion) { - return value -} diff --git a/codegen/_output/polkadot/sp_weights/mod.ts b/codegen/_output/polkadot/sp_weights/mod.ts deleted file mode 100644 index 88c479fdd..000000000 --- a/codegen/_output/polkadot/sp_weights/mod.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as weight_v2 from "./weight_v2.ts" - -export const $oldWeight: $.Codec = _codec.$239 - -export const $runtimeDbWeight: $.Codec = _codec.$171 - -export type OldWeight = t.u64 - -export function OldWeight(value: t.sp_weights.OldWeight) { - return value -} - -export interface RuntimeDbWeight { - read: t.u64 - write: t.u64 -} - -export function RuntimeDbWeight(value: t.sp_weights.RuntimeDbWeight) { - return value -} diff --git a/codegen/_output/polkadot/sp_weights/weight_v2.ts b/codegen/_output/polkadot/sp_weights/weight_v2.ts deleted file mode 100644 index 755882259..000000000 --- a/codegen/_output/polkadot/sp_weights/weight_v2.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $weight: $.Codec = _codec.$8 - -export interface Weight { - ref_time: t.Compact - proof_size: t.Compact -} - -export function Weight(value: t.sp_weights.weight_v2.Weight) { - return value -} diff --git a/codegen/_output/polkadot/bitvec/mod.ts b/codegen/_output/polkadot/types/bitvec/mod.ts similarity index 100% rename from codegen/_output/polkadot/bitvec/mod.ts rename to codegen/_output/polkadot/types/bitvec/mod.ts diff --git a/codegen/_output/polkadot/types/bitvec/order.ts b/codegen/_output/polkadot/types/bitvec/order.ts new file mode 100644 index 000000000..935f6bcef --- /dev/null +++ b/codegen/_output/polkadot/types/bitvec/order.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $lsb0: $.Codec = _codec.$384 + +export function Lsb0() { + return null +} + +export type Lsb0 = null diff --git a/codegen/_output/polkadot/types/finality_grandpa/Equivocation/$$finality_grandpa.ts b/codegen/_output/polkadot/types/finality_grandpa/Equivocation/$$finality_grandpa.ts new file mode 100644 index 000000000..1c207b7ac --- /dev/null +++ b/codegen/_output/polkadot/types/finality_grandpa/Equivocation/$$finality_grandpa.ts @@ -0,0 +1,34 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $precommit: $.Codec< + t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit +> = _codec.$224 + +export const $prevote: $.Codec = + _codec.$219 + +export interface Precommit { + round_number: t.types.u64 + identity: t.types.sp_finality_grandpa.app.Public + first: [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] + second: [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] +} + +export function Precommit( + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit, +) { + return value +} + +export interface Prevote { + round_number: t.types.u64 + identity: t.types.sp_finality_grandpa.app.Public + first: [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] + second: [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] +} + +export function Prevote(value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Prevote) { + return value +} diff --git a/codegen/_output/polkadot/finality_grandpa/Equivocation/mod.ts b/codegen/_output/polkadot/types/finality_grandpa/Equivocation/mod.ts similarity index 100% rename from codegen/_output/polkadot/finality_grandpa/Equivocation/mod.ts rename to codegen/_output/polkadot/types/finality_grandpa/Equivocation/mod.ts diff --git a/codegen/_output/polkadot/types/finality_grandpa/mod.ts b/codegen/_output/polkadot/types/finality_grandpa/mod.ts new file mode 100644 index 000000000..c8be0a838 --- /dev/null +++ b/codegen/_output/polkadot/types/finality_grandpa/mod.ts @@ -0,0 +1,27 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as Equivocation from "./Equivocation/mod.ts" + +export const $precommit: $.Codec = _codec.$225 + +export const $prevote: $.Codec = _codec.$220 + +export interface Precommit { + target_hash: t.types.primitive_types.H256 + target_number: t.types.u32 +} + +export function Precommit(value: t.types.finality_grandpa.Precommit) { + return value +} + +export interface Prevote { + target_hash: t.types.primitive_types.H256 + target_number: t.types.u32 +} + +export function Prevote(value: t.types.finality_grandpa.Prevote) { + return value +} diff --git a/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts b/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts new file mode 100644 index 000000000..750971775 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export const $weightsPerClass: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass +> = _codec.$166 + +export interface WeightsPerClass { + normal: t.types.frame_system.limits.WeightsPerClass + operational: t.types.frame_system.limits.WeightsPerClass + mandatory: t.types.frame_system.limits.WeightsPerClass +} + +export function WeightsPerClass( + value: t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass, +) { + return value +} diff --git a/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts b/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts similarity index 100% rename from codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts rename to codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts diff --git a/codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts b/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts similarity index 100% rename from codegen/_output/polkadot/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts rename to codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts diff --git a/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts b/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts new file mode 100644 index 000000000..78ff1d029 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export const $weight: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight +> = _codec.$7 + +export interface Weight { + normal: t.types.sp_weights.weight_v2.Weight + operational: t.types.sp_weights.weight_v2.Weight + mandatory: t.types.sp_weights.weight_v2.Weight +} + +export function Weight( + value: t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight, +) { + return value +} diff --git a/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/mod.ts b/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/mod.ts new file mode 100644 index 000000000..68fdf3c0d --- /dev/null +++ b/codegen/_output/polkadot/types/frame_support/dispatch/PerDispatchClass/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export * as $$frame_system from "./$$frame_system/mod.ts" +export * as $$sp_weights from "./$$sp_weights/mod.ts" + +export const $$$u32: $.Codec = _codec.$170 + +export interface $$u32 { + normal: t.types.u32 + operational: t.types.u32 + mandatory: t.types.u32 +} + +export function $$u32(value: t.types.frame_support.dispatch.PerDispatchClass.$$u32) { + return value +} diff --git a/codegen/_output/polkadot/types/frame_support/dispatch/mod.ts b/codegen/_output/polkadot/types/frame_support/dispatch/mod.ts new file mode 100644 index 000000000..0b6ae050e --- /dev/null +++ b/codegen/_output/polkadot/types/frame_support/dispatch/mod.ts @@ -0,0 +1,55 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as PerDispatchClass from "./PerDispatchClass/mod.ts" + +export const $dispatchClass: $.Codec = _codec.$22 + +export const $dispatchInfo: $.Codec = _codec.$21 + +export const $pays: $.Codec = _codec.$23 + +export const $rawOrigin: $.Codec = _codec.$257 + +export type DispatchClass = "Normal" | "Operational" | "Mandatory" + +export interface DispatchInfo { + weight: t.types.sp_weights.weight_v2.Weight + class: t.types.frame_support.dispatch.DispatchClass + pays_fee: t.types.frame_support.dispatch.Pays +} + +export function DispatchInfo(value: t.types.frame_support.dispatch.DispatchInfo) { + return value +} + +export type Pays = "Yes" | "No" + +export type RawOrigin = + | t.types.frame_support.dispatch.RawOrigin.Root + | t.types.frame_support.dispatch.RawOrigin.Signed + | t.types.frame_support.dispatch.RawOrigin.None +export namespace RawOrigin { + export interface Root { + type: "Root" + } + export interface Signed { + type: "Signed" + value: t.types.sp_core.crypto.AccountId32 + } + export interface None { + type: "None" + } + export function Root(): t.types.frame_support.dispatch.RawOrigin.Root { + return { type: "Root" } + } + export function Signed( + value: t.types.frame_support.dispatch.RawOrigin.Signed["value"], + ): t.types.frame_support.dispatch.RawOrigin.Signed { + return { type: "Signed", value } + } + export function None(): t.types.frame_support.dispatch.RawOrigin.None { + return { type: "None" } + } +} diff --git a/codegen/_output/polkadot/types/frame_support/mod.ts b/codegen/_output/polkadot/types/frame_support/mod.ts new file mode 100644 index 000000000..c96f0dc75 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_support/mod.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as dispatch from "./dispatch/mod.ts" +export * as traits from "./traits/mod.ts" + +export const $palletId: $.Codec = _codec.$560 + +export type PalletId = Uint8Array + +export function PalletId(value: t.types.frame_support.PalletId) { + return value +} diff --git a/codegen/_output/polkadot/types/frame_support/traits/misc.ts b/codegen/_output/polkadot/types/frame_support/traits/misc.ts new file mode 100644 index 000000000..50833b76d --- /dev/null +++ b/codegen/_output/polkadot/types/frame_support/traits/misc.ts @@ -0,0 +1,6 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $wrapperOpaque: $.Codec = + _codec.$522 diff --git a/codegen/_output/polkadot/frame_support/traits/mod.ts b/codegen/_output/polkadot/types/frame_support/traits/mod.ts similarity index 100% rename from codegen/_output/polkadot/frame_support/traits/mod.ts rename to codegen/_output/polkadot/types/frame_support/traits/mod.ts diff --git a/codegen/_output/polkadot/types/frame_support/traits/preimages.ts b/codegen/_output/polkadot/types/frame_support/traits/preimages.ts new file mode 100644 index 000000000..6c288bd3f --- /dev/null +++ b/codegen/_output/polkadot/types/frame_support/traits/preimages.ts @@ -0,0 +1,40 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $bounded: $.Codec = _codec.$180 + +export type Bounded = + | t.types.frame_support.traits.preimages.Bounded.Legacy + | t.types.frame_support.traits.preimages.Bounded.Inline + | t.types.frame_support.traits.preimages.Bounded.Lookup +export namespace Bounded { + export interface Legacy { + type: "Legacy" + hash: t.types.primitive_types.H256 + } + export interface Inline { + type: "Inline" + value: Uint8Array + } + export interface Lookup { + type: "Lookup" + hash: t.types.primitive_types.H256 + len: t.types.u32 + } + export function Legacy( + value: Omit, + ): t.types.frame_support.traits.preimages.Bounded.Legacy { + return { type: "Legacy", ...value } + } + export function Inline( + value: t.types.frame_support.traits.preimages.Bounded.Inline["value"], + ): t.types.frame_support.traits.preimages.Bounded.Inline { + return { type: "Inline", value } + } + export function Lookup( + value: Omit, + ): t.types.frame_support.traits.preimages.Bounded.Lookup { + return { type: "Lookup", ...value } + } +} diff --git a/codegen/_output/polkadot/types/frame_support/traits/tokens/misc.ts b/codegen/_output/polkadot/types/frame_support/traits/tokens/misc.ts new file mode 100644 index 000000000..ad411b772 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_support/traits/tokens/misc.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export const $balanceStatus: $.Codec = + _codec.$37 + +export type BalanceStatus = "Free" | "Reserved" diff --git a/codegen/_output/polkadot/frame_support/traits/tokens/mod.ts b/codegen/_output/polkadot/types/frame_support/traits/tokens/mod.ts similarity index 100% rename from codegen/_output/polkadot/frame_support/traits/tokens/mod.ts rename to codegen/_output/polkadot/types/frame_support/traits/tokens/mod.ts diff --git a/codegen/_output/polkadot/types/frame_system/extensions/check_genesis.ts b/codegen/_output/polkadot/types/frame_system/extensions/check_genesis.ts new file mode 100644 index 000000000..9217e24b6 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_system/extensions/check_genesis.ts @@ -0,0 +1,12 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkGenesis: $.Codec = + _codec.$730 + +export function CheckGenesis() { + return null +} + +export type CheckGenesis = null diff --git a/codegen/_output/polkadot/types/frame_system/extensions/check_non_zero_sender.ts b/codegen/_output/polkadot/types/frame_system/extensions/check_non_zero_sender.ts new file mode 100644 index 000000000..d67c5ed3a --- /dev/null +++ b/codegen/_output/polkadot/types/frame_system/extensions/check_non_zero_sender.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkNonZeroSender: $.Codec< + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender +> = _codec.$727 + +export function CheckNonZeroSender() { + return null +} + +export type CheckNonZeroSender = null diff --git a/codegen/_output/polkadot/types/frame_system/extensions/check_spec_version.ts b/codegen/_output/polkadot/types/frame_system/extensions/check_spec_version.ts new file mode 100644 index 000000000..d5841d0a2 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_system/extensions/check_spec_version.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkSpecVersion: $.Codec< + t.types.frame_system.extensions.check_spec_version.CheckSpecVersion +> = _codec.$728 + +export function CheckSpecVersion() { + return null +} + +export type CheckSpecVersion = null diff --git a/codegen/_output/polkadot/types/frame_system/extensions/check_tx_version.ts b/codegen/_output/polkadot/types/frame_system/extensions/check_tx_version.ts new file mode 100644 index 000000000..d7214c76e --- /dev/null +++ b/codegen/_output/polkadot/types/frame_system/extensions/check_tx_version.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkTxVersion: $.Codec< + t.types.frame_system.extensions.check_tx_version.CheckTxVersion +> = _codec.$729 + +export function CheckTxVersion() { + return null +} + +export type CheckTxVersion = null diff --git a/codegen/_output/polkadot/types/frame_system/extensions/check_weight.ts b/codegen/_output/polkadot/types/frame_system/extensions/check_weight.ts new file mode 100644 index 000000000..57d4346d4 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_system/extensions/check_weight.ts @@ -0,0 +1,12 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkWeight: $.Codec = + _codec.$734 + +export function CheckWeight() { + return null +} + +export type CheckWeight = null diff --git a/codegen/_output/polkadot/frame_system/extensions/mod.ts b/codegen/_output/polkadot/types/frame_system/extensions/mod.ts similarity index 100% rename from codegen/_output/polkadot/frame_system/extensions/mod.ts rename to codegen/_output/polkadot/types/frame_system/extensions/mod.ts diff --git a/codegen/_output/polkadot/types/frame_system/limits.ts b/codegen/_output/polkadot/types/frame_system/limits.ts new file mode 100644 index 000000000..0bd584eb6 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_system/limits.ts @@ -0,0 +1,38 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $blockLength: $.Codec = _codec.$169 + +export const $blockWeights: $.Codec = _codec.$165 + +export const $weightsPerClass: $.Codec = _codec.$167 + +export interface BlockLength { + max: t.types.frame_support.dispatch.PerDispatchClass.$$u32 +} + +export function BlockLength(value: t.types.frame_system.limits.BlockLength) { + return value +} + +export interface BlockWeights { + base_block: t.types.sp_weights.weight_v2.Weight + max_block: t.types.sp_weights.weight_v2.Weight + per_class: t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass +} + +export function BlockWeights(value: t.types.frame_system.limits.BlockWeights) { + return value +} + +export interface WeightsPerClass { + base_extrinsic: t.types.sp_weights.weight_v2.Weight + max_extrinsic: t.types.sp_weights.weight_v2.Weight | undefined + max_total: t.types.sp_weights.weight_v2.Weight | undefined + reserved: t.types.sp_weights.weight_v2.Weight | undefined +} + +export function WeightsPerClass(value: t.types.frame_system.limits.WeightsPerClass) { + return value +} diff --git a/codegen/_output/polkadot/types/frame_system/mod.ts b/codegen/_output/polkadot/types/frame_system/mod.ts new file mode 100644 index 000000000..9d3020762 --- /dev/null +++ b/codegen/_output/polkadot/types/frame_system/mod.ts @@ -0,0 +1,75 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as extensions from "./extensions/mod.ts" +export * as limits from "./limits.ts" +export * as pallet from "./pallet.ts" + +export const $accountInfo: $.Codec = _codec.$3 + +export const $eventRecord: $.Codec = _codec.$18 + +export const $lastRuntimeUpgradeInfo: $.Codec = + _codec.$159 + +export const $phase: $.Codec = _codec.$156 + +export interface AccountInfo { + nonce: t.types.u32 + consumers: t.types.u32 + providers: t.types.u32 + sufficients: t.types.u32 + data: t.types.pallet_balances.AccountData +} + +export function AccountInfo(value: t.types.frame_system.AccountInfo) { + return value +} + +export interface EventRecord { + phase: t.types.frame_system.Phase + event: t.types.polkadot_runtime.RuntimeEvent + topics: Array +} + +export function EventRecord(value: t.types.frame_system.EventRecord) { + return value +} + +export interface LastRuntimeUpgradeInfo { + spec_version: t.Compact + spec_name: string +} + +export function LastRuntimeUpgradeInfo(value: t.types.frame_system.LastRuntimeUpgradeInfo) { + return value +} + +export type Phase = + | t.types.frame_system.Phase.ApplyExtrinsic + | t.types.frame_system.Phase.Finalization + | t.types.frame_system.Phase.Initialization +export namespace Phase { + export interface ApplyExtrinsic { + type: "ApplyExtrinsic" + value: t.types.u32 + } + export interface Finalization { + type: "Finalization" + } + export interface Initialization { + type: "Initialization" + } + export function ApplyExtrinsic( + value: t.types.frame_system.Phase.ApplyExtrinsic["value"], + ): t.types.frame_system.Phase.ApplyExtrinsic { + return { type: "ApplyExtrinsic", value } + } + export function Finalization(): t.types.frame_system.Phase.Finalization { + return { type: "Finalization" } + } + export function Initialization(): t.types.frame_system.Phase.Initialization { + return { type: "Initialization" } + } +} diff --git a/codegen/_output/rococo/frame_system/pallet.ts b/codegen/_output/polkadot/types/frame_system/pallet.ts similarity index 64% rename from codegen/_output/rococo/frame_system/pallet.ts rename to codegen/_output/polkadot/types/frame_system/pallet.ts index 4ffb7de47..9893cfdc6 100644 --- a/codegen/_output/rococo/frame_system/pallet.ts +++ b/codegen/_output/polkadot/types/frame_system/pallet.ts @@ -1,29 +1,29 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$161 +export const $call: $.Codec = _codec.$161 -export const $error: $.Codec = _codec.$176 +export const $error: $.Codec = _codec.$176 -export const $event: $.Codec = _codec.$20 +export const $event: $.Codec = _codec.$20 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.frame_system.pallet.Call.fill_block - | t.frame_system.pallet.Call.remark - | t.frame_system.pallet.Call.set_heap_pages - | t.frame_system.pallet.Call.set_code - | t.frame_system.pallet.Call.set_code_without_checks - | t.frame_system.pallet.Call.set_storage - | t.frame_system.pallet.Call.kill_storage - | t.frame_system.pallet.Call.kill_prefix - | t.frame_system.pallet.Call.remark_with_event + | t.types.frame_system.pallet.Call.fill_block + | t.types.frame_system.pallet.Call.remark + | t.types.frame_system.pallet.Call.set_heap_pages + | t.types.frame_system.pallet.Call.set_code + | t.types.frame_system.pallet.Call.set_code_without_checks + | t.types.frame_system.pallet.Call.set_storage + | t.types.frame_system.pallet.Call.kill_storage + | t.types.frame_system.pallet.Call.kill_prefix + | t.types.frame_system.pallet.Call.remark_with_event export namespace Call { /** A dispatch that will fill the block weight up to the given ratio. */ export interface fill_block { type: "fill_block" - ratio: t.sp_arithmetic.per_things.Perbill + ratio: t.types.sp_arithmetic.per_things.Perbill } /** * Make some on-chain remark. @@ -39,7 +39,7 @@ export namespace Call { /** Set the number of pages in the WebAssembly environment's heap. */ export interface set_heap_pages { type: "set_heap_pages" - pages: t.u64 + pages: t.types.u64 } /** * Set the new runtime code. @@ -93,7 +93,7 @@ export namespace Call { export interface kill_prefix { type: "kill_prefix" prefix: Uint8Array - subkeys: t.u32 + subkeys: t.types.u32 } /** Make some on-chain remark and emit event. */ export interface remark_with_event { @@ -102,8 +102,8 @@ export namespace Call { } /** A dispatch that will fill the block weight up to the given ratio. */ export function fill_block( - value: Omit, - ): t.frame_system.pallet.Call.fill_block { + value: Omit, + ): t.types.frame_system.pallet.Call.fill_block { return { type: "fill_block", ...value } } /** @@ -114,14 +114,14 @@ export namespace Call { * # */ export function remark( - value: Omit, - ): t.frame_system.pallet.Call.remark { + value: Omit, + ): t.types.frame_system.pallet.Call.remark { return { type: "remark", ...value } } /** Set the number of pages in the WebAssembly environment's heap. */ export function set_heap_pages( - value: Omit, - ): t.frame_system.pallet.Call.set_heap_pages { + value: Omit, + ): t.types.frame_system.pallet.Call.set_heap_pages { return { type: "set_heap_pages", ...value } } /** @@ -139,8 +139,8 @@ export namespace Call { * # */ export function set_code( - value: Omit, - ): t.frame_system.pallet.Call.set_code { + value: Omit, + ): t.types.frame_system.pallet.Call.set_code { return { type: "set_code", ...value } } /** @@ -155,20 +155,20 @@ export namespace Call { * block. # */ export function set_code_without_checks( - value: Omit, - ): t.frame_system.pallet.Call.set_code_without_checks { + value: Omit, + ): t.types.frame_system.pallet.Call.set_code_without_checks { return { type: "set_code_without_checks", ...value } } /** Set some items of storage. */ export function set_storage( - value: Omit, - ): t.frame_system.pallet.Call.set_storage { + value: Omit, + ): t.types.frame_system.pallet.Call.set_storage { return { type: "set_storage", ...value } } /** Kill some items from storage. */ export function kill_storage( - value: Omit, - ): t.frame_system.pallet.Call.kill_storage { + value: Omit, + ): t.types.frame_system.pallet.Call.kill_storage { return { type: "kill_storage", ...value } } /** @@ -178,14 +178,14 @@ export namespace Call { * the prefix we are removing to accurately calculate the weight of this function. */ export function kill_prefix( - value: Omit, - ): t.frame_system.pallet.Call.kill_prefix { + value: Omit, + ): t.types.frame_system.pallet.Call.kill_prefix { return { type: "kill_prefix", ...value } } /** Make some on-chain remark and emit event. */ export function remark_with_event( - value: Omit, - ): t.frame_system.pallet.Call.remark_with_event { + value: Omit, + ): t.types.frame_system.pallet.Call.remark_with_event { return { type: "remark_with_event", ...value } } } @@ -201,23 +201,23 @@ export type Error = /** Event for the System pallet. */ export type Event = - | t.frame_system.pallet.Event.ExtrinsicSuccess - | t.frame_system.pallet.Event.ExtrinsicFailed - | t.frame_system.pallet.Event.CodeUpdated - | t.frame_system.pallet.Event.NewAccount - | t.frame_system.pallet.Event.KilledAccount - | t.frame_system.pallet.Event.Remarked + | t.types.frame_system.pallet.Event.ExtrinsicSuccess + | t.types.frame_system.pallet.Event.ExtrinsicFailed + | t.types.frame_system.pallet.Event.CodeUpdated + | t.types.frame_system.pallet.Event.NewAccount + | t.types.frame_system.pallet.Event.KilledAccount + | t.types.frame_system.pallet.Event.Remarked export namespace Event { /** An extrinsic completed successfully. */ export interface ExtrinsicSuccess { type: "ExtrinsicSuccess" - dispatch_info: t.frame_support.dispatch.DispatchInfo + dispatch_info: t.types.frame_support.dispatch.DispatchInfo } /** An extrinsic failed. */ export interface ExtrinsicFailed { type: "ExtrinsicFailed" - dispatch_error: t.sp_runtime.DispatchError - dispatch_info: t.frame_support.dispatch.DispatchInfo + dispatch_error: t.types.sp_runtime.DispatchError + dispatch_info: t.types.frame_support.dispatch.DispatchInfo } /** `:code` was updated. */ export interface CodeUpdated { @@ -226,51 +226,51 @@ export namespace Event { /** A new account was created. */ export interface NewAccount { type: "NewAccount" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** An account was reaped. */ export interface KilledAccount { type: "KilledAccount" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** On on-chain remark happened. */ export interface Remarked { type: "Remarked" - sender: t.sp_core.crypto.AccountId32 - hash: t.primitive_types.H256 + sender: t.types.sp_core.crypto.AccountId32 + hash: t.types.primitive_types.H256 } /** An extrinsic completed successfully. */ export function ExtrinsicSuccess( - value: Omit, - ): t.frame_system.pallet.Event.ExtrinsicSuccess { + value: Omit, + ): t.types.frame_system.pallet.Event.ExtrinsicSuccess { return { type: "ExtrinsicSuccess", ...value } } /** An extrinsic failed. */ export function ExtrinsicFailed( - value: Omit, - ): t.frame_system.pallet.Event.ExtrinsicFailed { + value: Omit, + ): t.types.frame_system.pallet.Event.ExtrinsicFailed { return { type: "ExtrinsicFailed", ...value } } /** `:code` was updated. */ - export function CodeUpdated(): t.frame_system.pallet.Event.CodeUpdated { + export function CodeUpdated(): t.types.frame_system.pallet.Event.CodeUpdated { return { type: "CodeUpdated" } } /** A new account was created. */ export function NewAccount( - value: Omit, - ): t.frame_system.pallet.Event.NewAccount { + value: Omit, + ): t.types.frame_system.pallet.Event.NewAccount { return { type: "NewAccount", ...value } } /** An account was reaped. */ export function KilledAccount( - value: Omit, - ): t.frame_system.pallet.Event.KilledAccount { + value: Omit, + ): t.types.frame_system.pallet.Event.KilledAccount { return { type: "KilledAccount", ...value } } /** On on-chain remark happened. */ export function Remarked( - value: Omit, - ): t.frame_system.pallet.Event.Remarked { + value: Omit, + ): t.types.frame_system.pallet.Event.Remarked { return { type: "Remarked", ...value } } } diff --git a/codegen/_output/polkadot/types/mod.ts b/codegen/_output/polkadot/types/mod.ts new file mode 100644 index 000000000..1e8000c3b --- /dev/null +++ b/codegen/_output/polkadot/types/mod.ts @@ -0,0 +1,70 @@ +import { $, C } from "../capi.ts" +import * as _codec from "../codecs.ts" + +export * as bitvec from "./bitvec/mod.ts" +export * as finality_grandpa from "./finality_grandpa/mod.ts" +export * as frame_support from "./frame_support/mod.ts" +export * as frame_system from "./frame_system/mod.ts" +export * as pallet_authorship from "./pallet_authorship/mod.ts" +export * as pallet_babe from "./pallet_babe/mod.ts" +export * as pallet_bags_list from "./pallet_bags_list/mod.ts" +export * as pallet_balances from "./pallet_balances/mod.ts" +export * as pallet_bounties from "./pallet_bounties/mod.ts" +export * as pallet_child_bounties from "./pallet_child_bounties/mod.ts" +export * as pallet_collective from "./pallet_collective/mod.ts" +export * as pallet_democracy from "./pallet_democracy/mod.ts" +export * as pallet_election_provider_multi_phase from "./pallet_election_provider_multi_phase/mod.ts" +export * as pallet_elections_phragmen from "./pallet_elections_phragmen/mod.ts" +export * as pallet_fast_unstake from "./pallet_fast_unstake/mod.ts" +export * as pallet_grandpa from "./pallet_grandpa/mod.ts" +export * as pallet_identity from "./pallet_identity/mod.ts" +export * as pallet_im_online from "./pallet_im_online/mod.ts" +export * as pallet_indices from "./pallet_indices/mod.ts" +export * as pallet_membership from "./pallet_membership/mod.ts" +export * as pallet_multisig from "./pallet_multisig/mod.ts" +export * as pallet_nomination_pools from "./pallet_nomination_pools/mod.ts" +export * as pallet_offences from "./pallet_offences/mod.ts" +export * as pallet_preimage from "./pallet_preimage/mod.ts" +export * as pallet_proxy from "./pallet_proxy/mod.ts" +export * as pallet_scheduler from "./pallet_scheduler/mod.ts" +export * as pallet_session from "./pallet_session/mod.ts" +export * as pallet_staking from "./pallet_staking/mod.ts" +export * as pallet_timestamp from "./pallet_timestamp/mod.ts" +export * as pallet_tips from "./pallet_tips/mod.ts" +export * as pallet_transaction_payment from "./pallet_transaction_payment/mod.ts" +export * as pallet_treasury from "./pallet_treasury/mod.ts" +export * as pallet_utility from "./pallet_utility/mod.ts" +export * as pallet_vesting from "./pallet_vesting/mod.ts" +export * as pallet_xcm from "./pallet_xcm/mod.ts" +export * as polkadot_core_primitives from "./polkadot_core_primitives.ts" +export * as polkadot_parachain from "./polkadot_parachain/mod.ts" +export * as polkadot_primitives from "./polkadot_primitives/mod.ts" +export * as polkadot_runtime from "./polkadot_runtime.ts" +export * as polkadot_runtime_common from "./polkadot_runtime_common/mod.ts" +export * as polkadot_runtime_parachains from "./polkadot_runtime_parachains/mod.ts" +export * as primitive_types from "./primitive_types.ts" +export * as sp_arithmetic from "./sp_arithmetic/mod.ts" +export * as sp_authority_discovery from "./sp_authority_discovery/mod.ts" +export * as sp_consensus_babe from "./sp_consensus_babe/mod.ts" +export * as sp_consensus_slots from "./sp_consensus_slots.ts" +export * as sp_core from "./sp_core/mod.ts" +export * as sp_finality_grandpa from "./sp_finality_grandpa/mod.ts" +export * as sp_npos_elections from "./sp_npos_elections.ts" +export * as sp_runtime from "./sp_runtime/mod.ts" +export * as sp_session from "./sp_session.ts" +export * as sp_staking from "./sp_staking/mod.ts" +export * as sp_version from "./sp_version.ts" +export * as sp_weights from "./sp_weights/mod.ts" +export * as xcm from "./xcm/mod.ts" + +export const $era: $.Codec = _codec.$732 + +export type u128 = bigint + +export type u16 = number + +export type u32 = number + +export type u64 = bigint + +export type u8 = number diff --git a/codegen/_output/polkadot/types/pallet_authorship/mod.ts b/codegen/_output/polkadot/types/pallet_authorship/mod.ts new file mode 100644 index 000000000..ef19eeff5 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_authorship/mod.ts @@ -0,0 +1,31 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $uncleEntryItem: $.Codec = _codec.$482 + +export type UncleEntryItem = + | t.types.pallet_authorship.UncleEntryItem.InclusionHeight + | t.types.pallet_authorship.UncleEntryItem.Uncle +export namespace UncleEntryItem { + export interface InclusionHeight { + type: "InclusionHeight" + value: t.types.u32 + } + export interface Uncle { + type: "Uncle" + value: [t.types.primitive_types.H256, t.types.sp_core.crypto.AccountId32 | undefined] + } + export function InclusionHeight( + value: t.types.pallet_authorship.UncleEntryItem.InclusionHeight["value"], + ): t.types.pallet_authorship.UncleEntryItem.InclusionHeight { + return { type: "InclusionHeight", value } + } + export function Uncle( + ...value: t.types.pallet_authorship.UncleEntryItem.Uncle["value"] + ): t.types.pallet_authorship.UncleEntryItem.Uncle { + return { type: "Uncle", value } + } +} diff --git a/codegen/_output/polkadot/pallet_authorship/pallet.ts b/codegen/_output/polkadot/types/pallet_authorship/pallet.ts similarity index 52% rename from codegen/_output/polkadot/pallet_authorship/pallet.ts rename to codegen/_output/polkadot/types/pallet_authorship/pallet.ts index 80e38fee7..79d0bba91 100644 --- a/codegen/_output/polkadot/pallet_authorship/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_authorship/pallet.ts @@ -1,23 +1,23 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$200 +export const $call: $.Codec = _codec.$200 -export const $error: $.Codec = _codec.$484 +export const $error: $.Codec = _codec.$484 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_authorship.pallet.Call.set_uncles +export type Call = t.types.pallet_authorship.pallet.Call.set_uncles export namespace Call { /** Provide a set of uncles. */ export interface set_uncles { type: "set_uncles" - new_uncles: Array + new_uncles: Array } /** Provide a set of uncles. */ export function set_uncles( - value: Omit, - ): t.pallet_authorship.pallet.Call.set_uncles { + value: Omit, + ): t.types.pallet_authorship.pallet.Call.set_uncles { return { type: "set_uncles", ...value } } } diff --git a/codegen/_output/polkadot/pallet_babe/mod.ts b/codegen/_output/polkadot/types/pallet_babe/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_babe/mod.ts rename to codegen/_output/polkadot/types/pallet_babe/mod.ts diff --git a/codegen/_output/polkadot/pallet_babe/pallet.ts b/codegen/_output/polkadot/types/pallet_babe/pallet.ts similarity index 71% rename from codegen/_output/polkadot/pallet_babe/pallet.ts rename to codegen/_output/polkadot/types/pallet_babe/pallet.ts index a5520e28d..d57335b38 100644 --- a/codegen/_output/polkadot/pallet_babe/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_babe/pallet.ts @@ -1,16 +1,16 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$185 +export const $call: $.Codec = _codec.$185 -export const $error: $.Codec = _codec.$467 +export const $error: $.Codec = _codec.$467 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_babe.pallet.Call.report_equivocation - | t.pallet_babe.pallet.Call.report_equivocation_unsigned - | t.pallet_babe.pallet.Call.plan_config_change + | t.types.pallet_babe.pallet.Call.report_equivocation + | t.types.pallet_babe.pallet.Call.report_equivocation_unsigned + | t.types.pallet_babe.pallet.Call.plan_config_change export namespace Call { /** * Report authority equivocation/misbehavior. This method will verify @@ -20,8 +20,8 @@ export namespace Call { */ export interface report_equivocation { type: "report_equivocation" - equivocation_proof: t.sp_consensus_slots.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_consensus_slots.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Report authority equivocation/misbehavior. This method will verify @@ -35,8 +35,8 @@ export namespace Call { */ export interface report_equivocation_unsigned { type: "report_equivocation_unsigned" - equivocation_proof: t.sp_consensus_slots.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_consensus_slots.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Plan an epoch config change. The epoch config change is recorded and will be enacted on @@ -46,7 +46,7 @@ export namespace Call { */ export interface plan_config_change { type: "plan_config_change" - config: t.sp_consensus_babe.digests.NextConfigDescriptor + config: t.types.sp_consensus_babe.digests.NextConfigDescriptor } /** * Report authority equivocation/misbehavior. This method will verify @@ -55,8 +55,8 @@ export namespace Call { * be reported. */ export function report_equivocation( - value: Omit, - ): t.pallet_babe.pallet.Call.report_equivocation { + value: Omit, + ): t.types.pallet_babe.pallet.Call.report_equivocation { return { type: "report_equivocation", ...value } } /** @@ -70,8 +70,8 @@ export namespace Call { * reporter. */ export function report_equivocation_unsigned( - value: Omit, - ): t.pallet_babe.pallet.Call.report_equivocation_unsigned { + value: Omit, + ): t.types.pallet_babe.pallet.Call.report_equivocation_unsigned { return { type: "report_equivocation_unsigned", ...value } } /** @@ -81,8 +81,8 @@ export namespace Call { * not been enacted yet. */ export function plan_config_change( - value: Omit, - ): t.pallet_babe.pallet.Call.plan_config_change { + value: Omit, + ): t.types.pallet_babe.pallet.Call.plan_config_change { return { type: "plan_config_change", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_bags_list/list.ts b/codegen/_output/polkadot/types/pallet_bags_list/list.ts new file mode 100644 index 000000000..7948bdffa --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_bags_list/list.ts @@ -0,0 +1,32 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $bag: $.Codec = _codec.$613 + +export const $listError: $.Codec = _codec.$616 + +export const $node: $.Codec = _codec.$612 + +export interface Bag { + head: t.types.sp_core.crypto.AccountId32 | undefined + tail: t.types.sp_core.crypto.AccountId32 | undefined +} + +export function Bag(value: t.types.pallet_bags_list.list.Bag) { + return value +} + +export type ListError = "Duplicate" | "NotHeavier" | "NotInSameBag" | "NodeNotFound" + +export interface Node { + id: t.types.sp_core.crypto.AccountId32 + prev: t.types.sp_core.crypto.AccountId32 | undefined + next: t.types.sp_core.crypto.AccountId32 | undefined + bag_upper: t.types.u64 + score: t.types.u64 +} + +export function Node(value: t.types.pallet_bags_list.list.Node) { + return value +} diff --git a/codegen/_output/polkadot/pallet_bags_list/mod.ts b/codegen/_output/polkadot/types/pallet_bags_list/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_bags_list/mod.ts rename to codegen/_output/polkadot/types/pallet_bags_list/mod.ts diff --git a/codegen/_output/rococo/pallet_bags_list/pallet.ts b/codegen/_output/polkadot/types/pallet_bags_list/pallet.ts similarity index 65% rename from codegen/_output/rococo/pallet_bags_list/pallet.ts rename to codegen/_output/polkadot/types/pallet_bags_list/pallet.ts index 24e9d23d4..783e83a34 100644 --- a/codegen/_output/rococo/pallet_bags_list/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_bags_list/pallet.ts @@ -1,17 +1,17 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$368 +export const $call: $.Codec = _codec.$368 -export const $error: $.Codec = _codec.$615 +export const $error: $.Codec = _codec.$615 -export const $event: $.Codec = _codec.$89 +export const $event: $.Codec = _codec.$89 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_bags_list.pallet.Call.rebag - | t.pallet_bags_list.pallet.Call.put_in_front_of + | t.types.pallet_bags_list.pallet.Call.rebag + | t.types.pallet_bags_list.pallet.Call.put_in_front_of export namespace Call { /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently @@ -27,7 +27,7 @@ export namespace Call { */ export interface rebag { type: "rebag" - dislocated: t.sp_runtime.multiaddress.MultiAddress + dislocated: t.types.sp_runtime.multiaddress.MultiAddress } /** * Move the caller's Id directly in front of `lighter`. @@ -41,7 +41,7 @@ export namespace Call { */ export interface put_in_front_of { type: "put_in_front_of" - lighter: t.sp_runtime.multiaddress.MultiAddress + lighter: t.types.sp_runtime.multiaddress.MultiAddress } /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently @@ -56,8 +56,8 @@ export namespace Call { * If `dislocated` does not exists, it returns an error. */ export function rebag( - value: Omit, - ): t.pallet_bags_list.pallet.Call.rebag { + value: Omit, + ): t.types.pallet_bags_list.pallet.Call.rebag { return { type: "rebag", ...value } } /** @@ -71,56 +71,56 @@ export namespace Call { * - and `origin` has a greater `Score` than `lighter`. */ export function put_in_front_of( - value: Omit, - ): t.pallet_bags_list.pallet.Call.put_in_front_of { + value: Omit, + ): t.types.pallet_bags_list.pallet.Call.put_in_front_of { return { type: "put_in_front_of", ...value } } } /** Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) of this pallet. */ -export type Error = t.pallet_bags_list.pallet.Error.List +export type Error = t.types.pallet_bags_list.pallet.Error.List export namespace Error { /** A error in the list interface implementation. */ export interface List { type: "List" - value: t.pallet_bags_list.list.ListError + value: t.types.pallet_bags_list.list.ListError } /** A error in the list interface implementation. */ export function List( - value: t.pallet_bags_list.pallet.Error.List["value"], - ): t.pallet_bags_list.pallet.Error.List { + value: t.types.pallet_bags_list.pallet.Error.List["value"], + ): t.types.pallet_bags_list.pallet.Error.List { return { type: "List", value } } } /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_bags_list.pallet.Event.Rebagged - | t.pallet_bags_list.pallet.Event.ScoreUpdated + | t.types.pallet_bags_list.pallet.Event.Rebagged + | t.types.pallet_bags_list.pallet.Event.ScoreUpdated export namespace Event { /** Moved an account from one bag to another. */ export interface Rebagged { type: "Rebagged" - who: t.sp_core.crypto.AccountId32 - from: t.u64 - to: t.u64 + who: t.types.sp_core.crypto.AccountId32 + from: t.types.u64 + to: t.types.u64 } /** Updated the score of some account to the given amount. */ export interface ScoreUpdated { type: "ScoreUpdated" - who: t.sp_core.crypto.AccountId32 - new_score: t.u64 + who: t.types.sp_core.crypto.AccountId32 + new_score: t.types.u64 } /** Moved an account from one bag to another. */ export function Rebagged( - value: Omit, - ): t.pallet_bags_list.pallet.Event.Rebagged { + value: Omit, + ): t.types.pallet_bags_list.pallet.Event.Rebagged { return { type: "Rebagged", ...value } } /** Updated the score of some account to the given amount. */ export function ScoreUpdated( - value: Omit, - ): t.pallet_bags_list.pallet.Event.ScoreUpdated { + value: Omit, + ): t.types.pallet_bags_list.pallet.Event.ScoreUpdated { return { type: "ScoreUpdated", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_balances/mod.ts b/codegen/_output/polkadot/types/pallet_balances/mod.ts new file mode 100644 index 000000000..64bd303ec --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_balances/mod.ts @@ -0,0 +1,49 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $accountData: $.Codec = _codec.$5 + +export const $balanceLock: $.Codec = _codec.$471 + +export const $reasons: $.Codec = _codec.$472 + +export const $releases: $.Codec = _codec.$477 + +export const $reserveData: $.Codec = _codec.$475 + +export interface AccountData { + free: t.types.u128 + reserved: t.types.u128 + misc_frozen: t.types.u128 + fee_frozen: t.types.u128 +} + +export function AccountData(value: t.types.pallet_balances.AccountData) { + return value +} + +export interface BalanceLock { + id: Uint8Array + amount: t.types.u128 + reasons: t.types.pallet_balances.Reasons +} + +export function BalanceLock(value: t.types.pallet_balances.BalanceLock) { + return value +} + +export type Reasons = "Fee" | "Misc" | "All" + +export type Releases = "V1_0_0" | "V2_0_0" + +export interface ReserveData { + id: Uint8Array + amount: t.types.u128 +} + +export function ReserveData(value: t.types.pallet_balances.ReserveData) { + return value +} diff --git a/codegen/_output/kusama/pallet_balances/pallet.ts b/codegen/_output/polkadot/types/pallet_balances/pallet.ts similarity index 69% rename from codegen/_output/kusama/pallet_balances/pallet.ts rename to codegen/_output/polkadot/types/pallet_balances/pallet.ts index a46b3f365..cd175644c 100644 --- a/codegen/_output/kusama/pallet_balances/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_balances/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$199 +export const $call: $.Codec = _codec.$199 -export const $error: $.Codec = _codec.$478 +export const $error: $.Codec = _codec.$478 -export const $event: $.Codec = _codec.$36 +export const $event: $.Codec = _codec.$36 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_balances.pallet.Call.transfer - | t.pallet_balances.pallet.Call.set_balance - | t.pallet_balances.pallet.Call.force_transfer - | t.pallet_balances.pallet.Call.transfer_keep_alive - | t.pallet_balances.pallet.Call.transfer_all - | t.pallet_balances.pallet.Call.force_unreserve + | t.types.pallet_balances.pallet.Call.transfer + | t.types.pallet_balances.pallet.Call.set_balance + | t.types.pallet_balances.pallet.Call.force_transfer + | t.types.pallet_balances.pallet.Call.transfer_keep_alive + | t.types.pallet_balances.pallet.Call.transfer_all + | t.types.pallet_balances.pallet.Call.force_unreserve export namespace Call { /** * Transfer some liquid free balance to another account. @@ -46,8 +46,8 @@ export namespace Call { */ export interface transfer { type: "transfer" - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Set the balances of a given account. @@ -61,9 +61,9 @@ export namespace Call { */ export interface set_balance { type: "set_balance" - who: t.sp_runtime.multiaddress.MultiAddress - new_free: t.Compact - new_reserved: t.Compact + who: t.types.sp_runtime.multiaddress.MultiAddress + new_free: t.Compact + new_reserved: t.Compact } /** * Exactly as `transfer`, except the origin must be root and the source account may be @@ -75,9 +75,9 @@ export namespace Call { */ export interface force_transfer { type: "force_transfer" - source: t.sp_runtime.multiaddress.MultiAddress - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + source: t.types.sp_runtime.multiaddress.MultiAddress + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Same as the [`transfer`] call, but with a check that the transfer will not kill the @@ -89,8 +89,8 @@ export namespace Call { */ export interface transfer_keep_alive { type: "transfer_keep_alive" - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Transfer the entire transferable balance from the caller account. @@ -113,7 +113,7 @@ export namespace Call { */ export interface transfer_all { type: "transfer_all" - dest: t.sp_runtime.multiaddress.MultiAddress + dest: t.types.sp_runtime.multiaddress.MultiAddress keep_alive: boolean } /** @@ -123,8 +123,8 @@ export namespace Call { */ export interface force_unreserve { type: "force_unreserve" - who: t.sp_runtime.multiaddress.MultiAddress - amount: t.u128 + who: t.types.sp_runtime.multiaddress.MultiAddress + amount: t.types.u128 } /** * Transfer some liquid free balance to another account. @@ -154,8 +154,8 @@ export namespace Call { * # */ export function transfer( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer { return { type: "transfer", ...value } } /** @@ -169,8 +169,8 @@ export namespace Call { * The dispatch origin for this call is `root`. */ export function set_balance( - value: Omit, - ): t.pallet_balances.pallet.Call.set_balance { + value: Omit, + ): t.types.pallet_balances.pallet.Call.set_balance { return { type: "set_balance", ...value } } /** @@ -182,8 +182,8 @@ export namespace Call { * # */ export function force_transfer( - value: Omit, - ): t.pallet_balances.pallet.Call.force_transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Call.force_transfer { return { type: "force_transfer", ...value } } /** @@ -195,8 +195,8 @@ export namespace Call { * [`transfer`]: struct.Pallet.html#method.transfer */ export function transfer_keep_alive( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer_keep_alive { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer_keep_alive { return { type: "transfer_keep_alive", ...value } } /** @@ -219,8 +219,8 @@ export namespace Call { * # */ export function transfer_all( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer_all { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer_all { return { type: "transfer_all", ...value } } /** @@ -229,8 +229,8 @@ export namespace Call { * Can only be called by ROOT. */ export function force_unreserve( - value: Omit, - ): t.pallet_balances.pallet.Call.force_unreserve { + value: Omit, + ): t.types.pallet_balances.pallet.Call.force_unreserve { return { type: "force_unreserve", ...value } } } @@ -248,22 +248,22 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_balances.pallet.Event.Endowed - | t.pallet_balances.pallet.Event.DustLost - | t.pallet_balances.pallet.Event.Transfer - | t.pallet_balances.pallet.Event.BalanceSet - | t.pallet_balances.pallet.Event.Reserved - | t.pallet_balances.pallet.Event.Unreserved - | t.pallet_balances.pallet.Event.ReserveRepatriated - | t.pallet_balances.pallet.Event.Deposit - | t.pallet_balances.pallet.Event.Withdraw - | t.pallet_balances.pallet.Event.Slashed + | t.types.pallet_balances.pallet.Event.Endowed + | t.types.pallet_balances.pallet.Event.DustLost + | t.types.pallet_balances.pallet.Event.Transfer + | t.types.pallet_balances.pallet.Event.BalanceSet + | t.types.pallet_balances.pallet.Event.Reserved + | t.types.pallet_balances.pallet.Event.Unreserved + | t.types.pallet_balances.pallet.Event.ReserveRepatriated + | t.types.pallet_balances.pallet.Event.Deposit + | t.types.pallet_balances.pallet.Event.Withdraw + | t.types.pallet_balances.pallet.Event.Slashed export namespace Event { /** An account was created with some free balance. */ export interface Endowed { type: "Endowed" - account: t.sp_core.crypto.AccountId32 - free_balance: t.u128 + account: t.types.sp_core.crypto.AccountId32 + free_balance: t.types.u128 } /** * An account was removed whose balance was non-zero but below ExistentialDeposit, @@ -271,34 +271,34 @@ export namespace Event { */ export interface DustLost { type: "DustLost" - account: t.sp_core.crypto.AccountId32 - amount: t.u128 + account: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Transfer succeeded. */ export interface Transfer { type: "Transfer" - from: t.sp_core.crypto.AccountId32 - to: t.sp_core.crypto.AccountId32 - amount: t.u128 + from: t.types.sp_core.crypto.AccountId32 + to: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A balance was set by root. */ export interface BalanceSet { type: "BalanceSet" - who: t.sp_core.crypto.AccountId32 - free: t.u128 - reserved: t.u128 + who: t.types.sp_core.crypto.AccountId32 + free: t.types.u128 + reserved: t.types.u128 } /** Some balance was reserved (moved from free to reserved). */ export interface Reserved { type: "Reserved" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some balance was unreserved (moved from reserved to free). */ export interface Unreserved { type: "Unreserved" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * Some balance was moved from the reserve of the first account to the second account. @@ -306,33 +306,33 @@ export namespace Event { */ export interface ReserveRepatriated { type: "ReserveRepatriated" - from: t.sp_core.crypto.AccountId32 - to: t.sp_core.crypto.AccountId32 - amount: t.u128 - destination_status: t.frame_support.traits.tokens.misc.BalanceStatus + from: t.types.sp_core.crypto.AccountId32 + to: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 + destination_status: t.types.frame_support.traits.tokens.misc.BalanceStatus } /** Some amount was deposited (e.g. for transaction fees). */ export interface Deposit { type: "Deposit" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some amount was withdrawn from the account (e.g. for transaction fees). */ export interface Withdraw { type: "Withdraw" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some amount was removed from the account (e.g. for misbehavior). */ export interface Slashed { type: "Slashed" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** An account was created with some free balance. */ export function Endowed( - value: Omit, - ): t.pallet_balances.pallet.Event.Endowed { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Endowed { return { type: "Endowed", ...value } } /** @@ -340,32 +340,32 @@ export namespace Event { * resulting in an outright loss. */ export function DustLost( - value: Omit, - ): t.pallet_balances.pallet.Event.DustLost { + value: Omit, + ): t.types.pallet_balances.pallet.Event.DustLost { return { type: "DustLost", ...value } } /** Transfer succeeded. */ export function Transfer( - value: Omit, - ): t.pallet_balances.pallet.Event.Transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Transfer { return { type: "Transfer", ...value } } /** A balance was set by root. */ export function BalanceSet( - value: Omit, - ): t.pallet_balances.pallet.Event.BalanceSet { + value: Omit, + ): t.types.pallet_balances.pallet.Event.BalanceSet { return { type: "BalanceSet", ...value } } /** Some balance was reserved (moved from free to reserved). */ export function Reserved( - value: Omit, - ): t.pallet_balances.pallet.Event.Reserved { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Reserved { return { type: "Reserved", ...value } } /** Some balance was unreserved (moved from reserved to free). */ export function Unreserved( - value: Omit, - ): t.pallet_balances.pallet.Event.Unreserved { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Unreserved { return { type: "Unreserved", ...value } } /** @@ -373,26 +373,26 @@ export namespace Event { * Final argument indicates the destination balance type. */ export function ReserveRepatriated( - value: Omit, - ): t.pallet_balances.pallet.Event.ReserveRepatriated { + value: Omit, + ): t.types.pallet_balances.pallet.Event.ReserveRepatriated { return { type: "ReserveRepatriated", ...value } } /** Some amount was deposited (e.g. for transaction fees). */ export function Deposit( - value: Omit, - ): t.pallet_balances.pallet.Event.Deposit { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Deposit { return { type: "Deposit", ...value } } /** Some amount was withdrawn from the account (e.g. for transaction fees). */ export function Withdraw( - value: Omit, - ): t.pallet_balances.pallet.Event.Withdraw { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Withdraw { return { type: "Withdraw", ...value } } /** Some amount was removed from the account (e.g. for misbehavior). */ export function Slashed( - value: Omit, - ): t.pallet_balances.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Slashed { return { type: "Slashed", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_bounties/mod.ts b/codegen/_output/polkadot/types/pallet_bounties/mod.ts new file mode 100644 index 000000000..e5425d665 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_bounties/mod.ts @@ -0,0 +1,80 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $bounty: $.Codec = _codec.$591 + +export const $bountyStatus: $.Codec = _codec.$592 + +export interface Bounty { + proposer: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 + fee: t.types.u128 + curator_deposit: t.types.u128 + bond: t.types.u128 + status: t.types.pallet_bounties.BountyStatus +} + +export function Bounty(value: t.types.pallet_bounties.Bounty) { + return value +} + +export type BountyStatus = + | t.types.pallet_bounties.BountyStatus.Proposed + | t.types.pallet_bounties.BountyStatus.Approved + | t.types.pallet_bounties.BountyStatus.Funded + | t.types.pallet_bounties.BountyStatus.CuratorProposed + | t.types.pallet_bounties.BountyStatus.Active + | t.types.pallet_bounties.BountyStatus.PendingPayout +export namespace BountyStatus { + export interface Proposed { + type: "Proposed" + } + export interface Approved { + type: "Approved" + } + export interface Funded { + type: "Funded" + } + export interface CuratorProposed { + type: "CuratorProposed" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface Active { + type: "Active" + curator: t.types.sp_core.crypto.AccountId32 + update_due: t.types.u32 + } + export interface PendingPayout { + type: "PendingPayout" + curator: t.types.sp_core.crypto.AccountId32 + beneficiary: t.types.sp_core.crypto.AccountId32 + unlock_at: t.types.u32 + } + export function Proposed(): t.types.pallet_bounties.BountyStatus.Proposed { + return { type: "Proposed" } + } + export function Approved(): t.types.pallet_bounties.BountyStatus.Approved { + return { type: "Approved" } + } + export function Funded(): t.types.pallet_bounties.BountyStatus.Funded { + return { type: "Funded" } + } + export function CuratorProposed( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.CuratorProposed { + return { type: "CuratorProposed", ...value } + } + export function Active( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.Active { + return { type: "Active", ...value } + } + export function PendingPayout( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.PendingPayout { + return { type: "PendingPayout", ...value } + } +} diff --git a/codegen/_output/westend/pallet_bounties/pallet.ts b/codegen/_output/polkadot/types/pallet_bounties/pallet.ts similarity index 71% rename from codegen/_output/westend/pallet_bounties/pallet.ts rename to codegen/_output/polkadot/types/pallet_bounties/pallet.ts index 312005e0f..f08c878f0 100644 --- a/codegen/_output/westend/pallet_bounties/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_bounties/pallet.ts @@ -1,24 +1,24 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$307 +export const $call: $.Codec = _codec.$307 -export const $error: $.Codec = _codec.$594 +export const $error: $.Codec = _codec.$594 -export const $event: $.Codec = _codec.$83 +export const $event: $.Codec = _codec.$83 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_bounties.pallet.Call.propose_bounty - | t.pallet_bounties.pallet.Call.approve_bounty - | t.pallet_bounties.pallet.Call.propose_curator - | t.pallet_bounties.pallet.Call.unassign_curator - | t.pallet_bounties.pallet.Call.accept_curator - | t.pallet_bounties.pallet.Call.award_bounty - | t.pallet_bounties.pallet.Call.claim_bounty - | t.pallet_bounties.pallet.Call.close_bounty - | t.pallet_bounties.pallet.Call.extend_bounty_expiry + | t.types.pallet_bounties.pallet.Call.propose_bounty + | t.types.pallet_bounties.pallet.Call.approve_bounty + | t.types.pallet_bounties.pallet.Call.propose_curator + | t.types.pallet_bounties.pallet.Call.unassign_curator + | t.types.pallet_bounties.pallet.Call.accept_curator + | t.types.pallet_bounties.pallet.Call.award_bounty + | t.types.pallet_bounties.pallet.Call.claim_bounty + | t.types.pallet_bounties.pallet.Call.close_bounty + | t.types.pallet_bounties.pallet.Call.extend_bounty_expiry export namespace Call { /** * Propose a new bounty. @@ -36,7 +36,7 @@ export namespace Call { */ export interface propose_bounty { type: "propose_bounty" - value: t.Compact + value: t.Compact description: Uint8Array } /** @@ -51,7 +51,7 @@ export namespace Call { */ export interface approve_bounty { type: "approve_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Assign a curator to a funded bounty. @@ -64,9 +64,9 @@ export namespace Call { */ export interface propose_curator { type: "propose_curator" - bounty_id: t.Compact - curator: t.sp_runtime.multiaddress.MultiAddress - fee: t.Compact + bounty_id: t.Compact + curator: t.types.sp_runtime.multiaddress.MultiAddress + fee: t.Compact } /** * Unassign curator from a bounty. @@ -90,7 +90,7 @@ export namespace Call { */ export interface unassign_curator { type: "unassign_curator" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Accept the curator role for a bounty. @@ -104,7 +104,7 @@ export namespace Call { */ export interface accept_curator { type: "accept_curator" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Award bounty to a beneficiary account. The beneficiary will be able to claim the funds @@ -121,8 +121,8 @@ export namespace Call { */ export interface award_bounty { type: "award_bounty" - bounty_id: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + bounty_id: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Claim the payout from an awarded bounty after payout delay. @@ -137,7 +137,7 @@ export namespace Call { */ export interface claim_bounty { type: "claim_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Cancel a proposed or active bounty. All the funds will be sent to treasury and @@ -153,7 +153,7 @@ export namespace Call { */ export interface close_bounty { type: "close_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Extend the expiry time of an active bounty. @@ -169,7 +169,7 @@ export namespace Call { */ export interface extend_bounty_expiry { type: "extend_bounty_expiry" - bounty_id: t.Compact + bounty_id: t.Compact remark: Uint8Array } /** @@ -187,8 +187,8 @@ export namespace Call { * - `description`: The description of this bounty. */ export function propose_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.propose_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.propose_bounty { return { type: "propose_bounty", ...value } } /** @@ -202,8 +202,8 @@ export namespace Call { * # */ export function approve_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.approve_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.approve_bounty { return { type: "approve_bounty", ...value } } /** @@ -216,8 +216,8 @@ export namespace Call { * # */ export function propose_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.propose_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.propose_curator { return { type: "propose_curator", ...value } } /** @@ -241,8 +241,8 @@ export namespace Call { * # */ export function unassign_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.unassign_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.unassign_curator { return { type: "unassign_curator", ...value } } /** @@ -256,8 +256,8 @@ export namespace Call { * # */ export function accept_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.accept_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.accept_curator { return { type: "accept_curator", ...value } } /** @@ -274,8 +274,8 @@ export namespace Call { * # */ export function award_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.award_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.award_bounty { return { type: "award_bounty", ...value } } /** @@ -290,8 +290,8 @@ export namespace Call { * # */ export function claim_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.claim_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.claim_bounty { return { type: "claim_bounty", ...value } } /** @@ -307,8 +307,8 @@ export namespace Call { * # */ export function close_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.close_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.close_bounty { return { type: "close_bounty", ...value } } /** @@ -324,8 +324,8 @@ export namespace Call { * # */ export function extend_bounty_expiry( - value: Omit, - ): t.pallet_bounties.pallet.Call.extend_bounty_expiry { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.extend_bounty_expiry { return { type: "extend_bounty_expiry", ...value } } } @@ -346,93 +346,93 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_bounties.pallet.Event.BountyProposed - | t.pallet_bounties.pallet.Event.BountyRejected - | t.pallet_bounties.pallet.Event.BountyBecameActive - | t.pallet_bounties.pallet.Event.BountyAwarded - | t.pallet_bounties.pallet.Event.BountyClaimed - | t.pallet_bounties.pallet.Event.BountyCanceled - | t.pallet_bounties.pallet.Event.BountyExtended + | t.types.pallet_bounties.pallet.Event.BountyProposed + | t.types.pallet_bounties.pallet.Event.BountyRejected + | t.types.pallet_bounties.pallet.Event.BountyBecameActive + | t.types.pallet_bounties.pallet.Event.BountyAwarded + | t.types.pallet_bounties.pallet.Event.BountyClaimed + | t.types.pallet_bounties.pallet.Event.BountyCanceled + | t.types.pallet_bounties.pallet.Event.BountyExtended export namespace Event { /** New bounty proposal. */ export interface BountyProposed { type: "BountyProposed" - index: t.u32 + index: t.types.u32 } /** A bounty proposal was rejected; funds were slashed. */ export interface BountyRejected { type: "BountyRejected" - index: t.u32 - bond: t.u128 + index: t.types.u32 + bond: t.types.u128 } /** A bounty proposal is funded and became active. */ export interface BountyBecameActive { type: "BountyBecameActive" - index: t.u32 + index: t.types.u32 } /** A bounty is awarded to a beneficiary. */ export interface BountyAwarded { type: "BountyAwarded" - index: t.u32 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A bounty is claimed by beneficiary. */ export interface BountyClaimed { type: "BountyClaimed" - index: t.u32 - payout: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + payout: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A bounty is cancelled. */ export interface BountyCanceled { type: "BountyCanceled" - index: t.u32 + index: t.types.u32 } /** A bounty expiry is extended. */ export interface BountyExtended { type: "BountyExtended" - index: t.u32 + index: t.types.u32 } /** New bounty proposal. */ export function BountyProposed( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyProposed { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyProposed { return { type: "BountyProposed", ...value } } /** A bounty proposal was rejected; funds were slashed. */ export function BountyRejected( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyRejected { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyRejected { return { type: "BountyRejected", ...value } } /** A bounty proposal is funded and became active. */ export function BountyBecameActive( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyBecameActive { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyBecameActive { return { type: "BountyBecameActive", ...value } } /** A bounty is awarded to a beneficiary. */ export function BountyAwarded( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyAwarded { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyAwarded { return { type: "BountyAwarded", ...value } } /** A bounty is claimed by beneficiary. */ export function BountyClaimed( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyClaimed { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyClaimed { return { type: "BountyClaimed", ...value } } /** A bounty is cancelled. */ export function BountyCanceled( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyCanceled { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyCanceled { return { type: "BountyCanceled", ...value } } /** A bounty expiry is extended. */ export function BountyExtended( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyExtended { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyExtended { return { type: "BountyExtended", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_child_bounties/mod.ts b/codegen/_output/polkadot/types/pallet_child_bounties/mod.ts new file mode 100644 index 000000000..9355697ec --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_child_bounties/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $childBounty: $.Codec = _codec.$595 + +export const $childBountyStatus: $.Codec = + _codec.$596 + +export interface ChildBounty { + parent_bounty: t.types.u32 + value: t.types.u128 + fee: t.types.u128 + curator_deposit: t.types.u128 + status: t.types.pallet_child_bounties.ChildBountyStatus +} + +export function ChildBounty(value: t.types.pallet_child_bounties.ChildBounty) { + return value +} + +export type ChildBountyStatus = + | t.types.pallet_child_bounties.ChildBountyStatus.Added + | t.types.pallet_child_bounties.ChildBountyStatus.CuratorProposed + | t.types.pallet_child_bounties.ChildBountyStatus.Active + | t.types.pallet_child_bounties.ChildBountyStatus.PendingPayout +export namespace ChildBountyStatus { + export interface Added { + type: "Added" + } + export interface CuratorProposed { + type: "CuratorProposed" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface Active { + type: "Active" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface PendingPayout { + type: "PendingPayout" + curator: t.types.sp_core.crypto.AccountId32 + beneficiary: t.types.sp_core.crypto.AccountId32 + unlock_at: t.types.u32 + } + export function Added(): t.types.pallet_child_bounties.ChildBountyStatus.Added { + return { type: "Added" } + } + export function CuratorProposed( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.CuratorProposed { + return { type: "CuratorProposed", ...value } + } + export function Active( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.Active { + return { type: "Active", ...value } + } + export function PendingPayout( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.PendingPayout { + return { type: "PendingPayout", ...value } + } +} diff --git a/codegen/_output/rococo/pallet_child_bounties/pallet.ts b/codegen/_output/polkadot/types/pallet_child_bounties/pallet.ts similarity index 79% rename from codegen/_output/rococo/pallet_child_bounties/pallet.ts rename to codegen/_output/polkadot/types/pallet_child_bounties/pallet.ts index 85d228af3..bca3b2363 100644 --- a/codegen/_output/rococo/pallet_child_bounties/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_child_bounties/pallet.ts @@ -1,22 +1,22 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$308 +export const $call: $.Codec = _codec.$308 -export const $error: $.Codec = _codec.$597 +export const $error: $.Codec = _codec.$597 -export const $event: $.Codec = _codec.$84 +export const $event: $.Codec = _codec.$84 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_child_bounties.pallet.Call.add_child_bounty - | t.pallet_child_bounties.pallet.Call.propose_curator - | t.pallet_child_bounties.pallet.Call.accept_curator - | t.pallet_child_bounties.pallet.Call.unassign_curator - | t.pallet_child_bounties.pallet.Call.award_child_bounty - | t.pallet_child_bounties.pallet.Call.claim_child_bounty - | t.pallet_child_bounties.pallet.Call.close_child_bounty + | t.types.pallet_child_bounties.pallet.Call.add_child_bounty + | t.types.pallet_child_bounties.pallet.Call.propose_curator + | t.types.pallet_child_bounties.pallet.Call.accept_curator + | t.types.pallet_child_bounties.pallet.Call.unassign_curator + | t.types.pallet_child_bounties.pallet.Call.award_child_bounty + | t.types.pallet_child_bounties.pallet.Call.claim_child_bounty + | t.types.pallet_child_bounties.pallet.Call.close_child_bounty export namespace Call { /** * Add a new child-bounty. @@ -41,8 +41,8 @@ export namespace Call { */ export interface add_child_bounty { type: "add_child_bounty" - parent_bounty_id: t.Compact - value: t.Compact + parent_bounty_id: t.Compact + value: t.Compact description: Uint8Array } /** @@ -64,10 +64,10 @@ export namespace Call { */ export interface propose_curator { type: "propose_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact - curator: t.sp_runtime.multiaddress.MultiAddress - fee: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact + curator: t.types.sp_runtime.multiaddress.MultiAddress + fee: t.Compact } /** * Accept the curator role for the child-bounty. @@ -92,8 +92,8 @@ export namespace Call { */ export interface accept_curator { type: "accept_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Unassign curator from a child-bounty. @@ -133,8 +133,8 @@ export namespace Call { */ export interface unassign_curator { type: "unassign_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Award child-bounty to a beneficiary. @@ -157,9 +157,9 @@ export namespace Call { */ export interface award_child_bounty { type: "award_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + parent_bounty_id: t.Compact + child_bounty_id: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Claim the payout from an awarded child-bounty after payout delay. @@ -181,8 +181,8 @@ export namespace Call { */ export interface claim_child_bounty { type: "claim_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Cancel a proposed or active child-bounty. Child-bounty account funds @@ -210,8 +210,8 @@ export namespace Call { */ export interface close_child_bounty { type: "close_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Add a new child-bounty. @@ -235,8 +235,8 @@ export namespace Call { * - `description`: Text description for the child-bounty. */ export function add_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.add_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.add_child_bounty { return { type: "add_child_bounty", ...value } } /** @@ -257,8 +257,8 @@ export namespace Call { * - `fee`: payment fee to child-bounty curator for execution. */ export function propose_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.propose_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.propose_curator { return { type: "propose_curator", ...value } } /** @@ -283,8 +283,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function accept_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.accept_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.accept_curator { return { type: "accept_curator", ...value } } /** @@ -324,8 +324,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function unassign_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.unassign_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.unassign_curator { return { type: "unassign_curator", ...value } } /** @@ -348,8 +348,8 @@ export namespace Call { * - `beneficiary`: Beneficiary account. */ export function award_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.award_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.award_child_bounty { return { type: "award_child_bounty", ...value } } /** @@ -371,8 +371,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function claim_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.claim_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.claim_child_bounty { return { type: "claim_child_bounty", ...value } } /** @@ -400,8 +400,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function close_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.close_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.close_child_bounty { return { type: "close_child_bounty", ...value } } } @@ -411,60 +411,60 @@ export type Error = "ParentBountyNotActive" | "InsufficientBountyBalance" | "Too /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_child_bounties.pallet.Event.Added - | t.pallet_child_bounties.pallet.Event.Awarded - | t.pallet_child_bounties.pallet.Event.Claimed - | t.pallet_child_bounties.pallet.Event.Canceled + | t.types.pallet_child_bounties.pallet.Event.Added + | t.types.pallet_child_bounties.pallet.Event.Awarded + | t.types.pallet_child_bounties.pallet.Event.Claimed + | t.types.pallet_child_bounties.pallet.Event.Canceled export namespace Event { /** A child-bounty is added. */ export interface Added { type: "Added" - index: t.u32 - child_index: t.u32 + index: t.types.u32 + child_index: t.types.u32 } /** A child-bounty is awarded to a beneficiary. */ export interface Awarded { type: "Awarded" - index: t.u32 - child_index: t.u32 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + child_index: t.types.u32 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A child-bounty is claimed by beneficiary. */ export interface Claimed { type: "Claimed" - index: t.u32 - child_index: t.u32 - payout: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + child_index: t.types.u32 + payout: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A child-bounty is cancelled. */ export interface Canceled { type: "Canceled" - index: t.u32 - child_index: t.u32 + index: t.types.u32 + child_index: t.types.u32 } /** A child-bounty is added. */ export function Added( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Added { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Added { return { type: "Added", ...value } } /** A child-bounty is awarded to a beneficiary. */ export function Awarded( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Awarded { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Awarded { return { type: "Awarded", ...value } } /** A child-bounty is claimed by beneficiary. */ export function Claimed( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Claimed { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Claimed { return { type: "Claimed", ...value } } /** A child-bounty is cancelled. */ export function Canceled( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Canceled { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Canceled { return { type: "Canceled", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_collective/mod.ts b/codegen/_output/polkadot/types/pallet_collective/mod.ts new file mode 100644 index 000000000..020fac5da --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_collective/mod.ts @@ -0,0 +1,52 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $rawOrigin: $.Codec = _codec.$258 + +export const $votes: $.Codec = _codec.$546 + +export type RawOrigin = + | t.types.pallet_collective.RawOrigin.Members + | t.types.pallet_collective.RawOrigin.Member + | t.types.pallet_collective.RawOrigin._Phantom +export namespace RawOrigin { + export interface Members { + type: "Members" + value: [t.types.u32, t.types.u32] + } + export interface Member { + type: "Member" + value: t.types.sp_core.crypto.AccountId32 + } + export interface _Phantom { + type: "_Phantom" + } + export function Members( + ...value: t.types.pallet_collective.RawOrigin.Members["value"] + ): t.types.pallet_collective.RawOrigin.Members { + return { type: "Members", value } + } + export function Member( + value: t.types.pallet_collective.RawOrigin.Member["value"], + ): t.types.pallet_collective.RawOrigin.Member { + return { type: "Member", value } + } + export function _Phantom(): t.types.pallet_collective.RawOrigin._Phantom { + return { type: "_Phantom" } + } +} + +export interface Votes { + index: t.types.u32 + threshold: t.types.u32 + ayes: Array + nays: Array + end: t.types.u32 +} + +export function Votes(value: t.types.pallet_collective.Votes) { + return value +} diff --git a/codegen/_output/rococo/pallet_collective/pallet.ts b/codegen/_output/polkadot/types/pallet_collective/pallet.ts similarity index 80% rename from codegen/_output/rococo/pallet_collective/pallet.ts rename to codegen/_output/polkadot/types/pallet_collective/pallet.ts index a15fd391a..f189d56db 100644 --- a/codegen/_output/rococo/pallet_collective/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_collective/pallet.ts @@ -1,22 +1,22 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$237 +export const $call: $.Codec = _codec.$237 -export const $error: $.Codec = _codec.$547 +export const $error: $.Codec = _codec.$547 -export const $event: $.Codec = _codec.$65 +export const $event: $.Codec = _codec.$65 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_collective.pallet.Call.set_members - | t.pallet_collective.pallet.Call.execute - | t.pallet_collective.pallet.Call.propose - | t.pallet_collective.pallet.Call.vote - | t.pallet_collective.pallet.Call.close_old_weight - | t.pallet_collective.pallet.Call.disapprove_proposal - | t.pallet_collective.pallet.Call.close + | t.types.pallet_collective.pallet.Call.set_members + | t.types.pallet_collective.pallet.Call.execute + | t.types.pallet_collective.pallet.Call.propose + | t.types.pallet_collective.pallet.Call.vote + | t.types.pallet_collective.pallet.Call.close_old_weight + | t.types.pallet_collective.pallet.Call.disapprove_proposal + | t.types.pallet_collective.pallet.Call.close export namespace Call { /** * Set the collective's membership. @@ -54,9 +54,9 @@ export namespace Call { */ export interface set_members { type: "set_members" - new_members: Array - prime: t.sp_core.crypto.AccountId32 | undefined - old_count: t.u32 + new_members: Array + prime: t.types.sp_core.crypto.AccountId32 | undefined + old_count: t.types.u32 } /** * Dispatch a proposal from a member using the `Member` origin. @@ -73,8 +73,8 @@ export namespace Call { */ export interface execute { type: "execute" - proposal: t.polkadot_runtime.RuntimeCall - length_bound: t.Compact + proposal: t.types.polkadot_runtime.RuntimeCall + length_bound: t.Compact } /** * Add a new proposal to either be voted on or executed directly. @@ -107,9 +107,9 @@ export namespace Call { */ export interface propose { type: "propose" - threshold: t.Compact - proposal: t.polkadot_runtime.RuntimeCall - length_bound: t.Compact + threshold: t.Compact + proposal: t.types.polkadot_runtime.RuntimeCall + length_bound: t.Compact } /** * Add an aye or nay vote for the sender to the given proposal. @@ -130,8 +130,8 @@ export namespace Call { */ export interface vote { type: "vote" - proposal: t.primitive_types.H256 - index: t.Compact + proposal: t.types.primitive_types.H256 + index: t.Compact approve: boolean } /** @@ -170,10 +170,10 @@ export namespace Call { */ export interface close_old_weight { type: "close_old_weight" - proposal_hash: t.primitive_types.H256 - index: t.Compact - proposal_weight_bound: t.Compact - length_bound: t.Compact + proposal_hash: t.types.primitive_types.H256 + index: t.Compact + proposal_weight_bound: t.Compact + length_bound: t.Compact } /** * Disapprove a proposal, close, and remove it from the system, regardless of its current @@ -193,7 +193,7 @@ export namespace Call { */ export interface disapprove_proposal { type: "disapprove_proposal" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** * Close a vote that is either approved, disapproved or whose voting period has ended. @@ -231,10 +231,10 @@ export namespace Call { */ export interface close { type: "close" - proposal_hash: t.primitive_types.H256 - index: t.Compact - proposal_weight_bound: t.sp_weights.weight_v2.Weight - length_bound: t.Compact + proposal_hash: t.types.primitive_types.H256 + index: t.Compact + proposal_weight_bound: t.types.sp_weights.weight_v2.Weight + length_bound: t.Compact } /** * Set the collective's membership. @@ -271,8 +271,8 @@ export namespace Call { * # */ export function set_members( - value: Omit, - ): t.pallet_collective.pallet.Call.set_members { + value: Omit, + ): t.types.pallet_collective.pallet.Call.set_members { return { type: "set_members", ...value } } /** @@ -289,8 +289,8 @@ export namespace Call { * # */ export function execute( - value: Omit, - ): t.pallet_collective.pallet.Call.execute { + value: Omit, + ): t.types.pallet_collective.pallet.Call.execute { return { type: "execute", ...value } } /** @@ -323,8 +323,8 @@ export namespace Call { * # */ export function propose( - value: Omit, - ): t.pallet_collective.pallet.Call.propose { + value: Omit, + ): t.types.pallet_collective.pallet.Call.propose { return { type: "propose", ...value } } /** @@ -345,8 +345,8 @@ export namespace Call { * # */ export function vote( - value: Omit, - ): t.pallet_collective.pallet.Call.vote { + value: Omit, + ): t.types.pallet_collective.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -384,8 +384,8 @@ export namespace Call { * # */ export function close_old_weight( - value: Omit, - ): t.pallet_collective.pallet.Call.close_old_weight { + value: Omit, + ): t.types.pallet_collective.pallet.Call.close_old_weight { return { type: "close_old_weight", ...value } } /** @@ -405,8 +405,8 @@ export namespace Call { * # */ export function disapprove_proposal( - value: Omit, - ): t.pallet_collective.pallet.Call.disapprove_proposal { + value: Omit, + ): t.types.pallet_collective.pallet.Call.disapprove_proposal { return { type: "disapprove_proposal", ...value } } /** @@ -444,8 +444,8 @@ export namespace Call { * # */ export function close( - value: Omit, - ): t.pallet_collective.pallet.Call.close { + value: Omit, + ): t.types.pallet_collective.pallet.Call.close { return { type: "close", ...value } } } @@ -465,13 +465,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_collective.pallet.Event.Proposed - | t.pallet_collective.pallet.Event.Voted - | t.pallet_collective.pallet.Event.Approved - | t.pallet_collective.pallet.Event.Disapproved - | t.pallet_collective.pallet.Event.Executed - | t.pallet_collective.pallet.Event.MemberExecuted - | t.pallet_collective.pallet.Event.Closed + | t.types.pallet_collective.pallet.Event.Proposed + | t.types.pallet_collective.pallet.Event.Voted + | t.types.pallet_collective.pallet.Event.Approved + | t.types.pallet_collective.pallet.Event.Disapproved + | t.types.pallet_collective.pallet.Event.Executed + | t.types.pallet_collective.pallet.Event.MemberExecuted + | t.types.pallet_collective.pallet.Event.Closed export namespace Event { /** * A motion (given hash) has been proposed (by given account) with a threshold (given @@ -479,10 +479,10 @@ export namespace Event { */ export interface Proposed { type: "Proposed" - account: t.sp_core.crypto.AccountId32 - proposal_index: t.u32 - proposal_hash: t.primitive_types.H256 - threshold: t.u32 + account: t.types.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + proposal_hash: t.types.primitive_types.H256 + threshold: t.types.u32 } /** * A motion (given hash) has been voted on by given account, leaving @@ -490,48 +490,48 @@ export namespace Event { */ export interface Voted { type: "Voted" - account: t.sp_core.crypto.AccountId32 - proposal_hash: t.primitive_types.H256 + account: t.types.sp_core.crypto.AccountId32 + proposal_hash: t.types.primitive_types.H256 voted: boolean - yes: t.u32 - no: t.u32 + yes: t.types.u32 + no: t.types.u32 } /** A motion was approved by the required threshold. */ export interface Approved { type: "Approved" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** A motion was not approved by the required threshold. */ export interface Disapproved { type: "Disapproved" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** A motion was executed; result will be `Ok` if it returned without error. */ export interface Executed { type: "Executed" - proposal_hash: t.primitive_types.H256 - result: null | C.ChainError + proposal_hash: t.types.primitive_types.H256 + result: null | C.ChainError } /** A single member did some action; result will be `Ok` if it returned without error. */ export interface MemberExecuted { type: "MemberExecuted" - proposal_hash: t.primitive_types.H256 - result: null | C.ChainError + proposal_hash: t.types.primitive_types.H256 + result: null | C.ChainError } /** A proposal was closed because its threshold was reached or after its duration was up. */ export interface Closed { type: "Closed" - proposal_hash: t.primitive_types.H256 - yes: t.u32 - no: t.u32 + proposal_hash: t.types.primitive_types.H256 + yes: t.types.u32 + no: t.types.u32 } /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). */ export function Proposed( - value: Omit, - ): t.pallet_collective.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** @@ -539,38 +539,38 @@ export namespace Event { * a tally (yes votes and no votes given respectively as `MemberCount`). */ export function Voted( - value: Omit, - ): t.pallet_collective.pallet.Event.Voted { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Voted { return { type: "Voted", ...value } } /** A motion was approved by the required threshold. */ export function Approved( - value: Omit, - ): t.pallet_collective.pallet.Event.Approved { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Approved { return { type: "Approved", ...value } } /** A motion was not approved by the required threshold. */ export function Disapproved( - value: Omit, - ): t.pallet_collective.pallet.Event.Disapproved { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Disapproved { return { type: "Disapproved", ...value } } /** A motion was executed; result will be `Ok` if it returned without error. */ export function Executed( - value: Omit, - ): t.pallet_collective.pallet.Event.Executed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Executed { return { type: "Executed", ...value } } /** A single member did some action; result will be `Ok` if it returned without error. */ export function MemberExecuted( - value: Omit, - ): t.pallet_collective.pallet.Event.MemberExecuted { + value: Omit, + ): t.types.pallet_collective.pallet.Event.MemberExecuted { return { type: "MemberExecuted", ...value } } /** A proposal was closed because its threshold was reached or after its duration was up. */ export function Closed( - value: Omit, - ): t.pallet_collective.pallet.Event.Closed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Closed { return { type: "Closed", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_democracy/conviction.ts b/codegen/_output/polkadot/types/pallet_democracy/conviction.ts new file mode 100644 index 000000000..c35068358 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_democracy/conviction.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $conviction: $.Codec = _codec.$235 + +export type Conviction = + | "None" + | "Locked1x" + | "Locked2x" + | "Locked3x" + | "Locked4x" + | "Locked5x" + | "Locked6x" diff --git a/codegen/_output/polkadot/pallet_democracy/mod.ts b/codegen/_output/polkadot/types/pallet_democracy/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_democracy/mod.ts rename to codegen/_output/polkadot/types/pallet_democracy/mod.ts diff --git a/codegen/_output/rococo/pallet_democracy/pallet.ts b/codegen/_output/polkadot/types/pallet_democracy/pallet.ts similarity index 75% rename from codegen/_output/rococo/pallet_democracy/pallet.ts rename to codegen/_output/polkadot/types/pallet_democracy/pallet.ts index e138410cc..3981f4554 100644 --- a/codegen/_output/rococo/pallet_democracy/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_democracy/pallet.ts @@ -1,33 +1,33 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$234 +export const $call: $.Codec = _codec.$234 -export const $error: $.Codec = _codec.$544 +export const $error: $.Codec = _codec.$544 -export const $event: $.Codec = _codec.$61 +export const $event: $.Codec = _codec.$61 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_democracy.pallet.Call.propose - | t.pallet_democracy.pallet.Call.second - | t.pallet_democracy.pallet.Call.vote - | t.pallet_democracy.pallet.Call.emergency_cancel - | t.pallet_democracy.pallet.Call.external_propose - | t.pallet_democracy.pallet.Call.external_propose_majority - | t.pallet_democracy.pallet.Call.external_propose_default - | t.pallet_democracy.pallet.Call.fast_track - | t.pallet_democracy.pallet.Call.veto_external - | t.pallet_democracy.pallet.Call.cancel_referendum - | t.pallet_democracy.pallet.Call.delegate - | t.pallet_democracy.pallet.Call.undelegate - | t.pallet_democracy.pallet.Call.clear_public_proposals - | t.pallet_democracy.pallet.Call.unlock - | t.pallet_democracy.pallet.Call.remove_vote - | t.pallet_democracy.pallet.Call.remove_other_vote - | t.pallet_democracy.pallet.Call.blacklist - | t.pallet_democracy.pallet.Call.cancel_proposal + | t.types.pallet_democracy.pallet.Call.propose + | t.types.pallet_democracy.pallet.Call.second + | t.types.pallet_democracy.pallet.Call.vote + | t.types.pallet_democracy.pallet.Call.emergency_cancel + | t.types.pallet_democracy.pallet.Call.external_propose + | t.types.pallet_democracy.pallet.Call.external_propose_majority + | t.types.pallet_democracy.pallet.Call.external_propose_default + | t.types.pallet_democracy.pallet.Call.fast_track + | t.types.pallet_democracy.pallet.Call.veto_external + | t.types.pallet_democracy.pallet.Call.cancel_referendum + | t.types.pallet_democracy.pallet.Call.delegate + | t.types.pallet_democracy.pallet.Call.undelegate + | t.types.pallet_democracy.pallet.Call.clear_public_proposals + | t.types.pallet_democracy.pallet.Call.unlock + | t.types.pallet_democracy.pallet.Call.remove_vote + | t.types.pallet_democracy.pallet.Call.remove_other_vote + | t.types.pallet_democracy.pallet.Call.blacklist + | t.types.pallet_democracy.pallet.Call.cancel_proposal export namespace Call { /** * Propose a sensitive action to be taken. @@ -42,8 +42,8 @@ export namespace Call { */ export interface propose { type: "propose" - proposal: t.frame_support.traits.preimages.Bounded - value: t.Compact + proposal: t.types.frame_support.traits.preimages.Bounded + value: t.Compact } /** * Signals agreement with a particular proposal. @@ -55,7 +55,7 @@ export namespace Call { */ export interface second { type: "second" - proposal: t.Compact + proposal: t.Compact } /** * Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; @@ -68,8 +68,8 @@ export namespace Call { */ export interface vote { type: "vote" - ref_index: t.Compact - vote: t.pallet_democracy.vote.AccountVote + ref_index: t.Compact + vote: t.types.pallet_democracy.vote.AccountVote } /** * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same @@ -83,7 +83,7 @@ export namespace Call { */ export interface emergency_cancel { type: "emergency_cancel" - ref_index: t.u32 + ref_index: t.types.u32 } /** * Schedule a referendum to be tabled once it is legal to schedule an external @@ -95,7 +95,7 @@ export namespace Call { */ export interface external_propose { type: "external_propose" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule a majority-carries referendum to be tabled next once it is legal to schedule @@ -112,7 +112,7 @@ export namespace Call { */ export interface external_propose_majority { type: "external_propose_majority" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to @@ -129,7 +129,7 @@ export namespace Call { */ export interface external_propose_default { type: "external_propose_default" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule the currently externally-proposed majority-carries referendum to be tabled @@ -151,9 +151,9 @@ export namespace Call { */ export interface fast_track { type: "fast_track" - proposal_hash: t.primitive_types.H256 - voting_period: t.u32 - delay: t.u32 + proposal_hash: t.types.primitive_types.H256 + voting_period: t.types.u32 + delay: t.types.u32 } /** * Veto and blacklist the external proposal hash. @@ -168,7 +168,7 @@ export namespace Call { */ export interface veto_external { type: "veto_external" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** * Remove a referendum. @@ -181,7 +181,7 @@ export namespace Call { */ export interface cancel_referendum { type: "cancel_referendum" - ref_index: t.Compact + ref_index: t.Compact } /** * Delegate the voting power (with some given conviction) of the sending account. @@ -207,9 +207,9 @@ export namespace Call { */ export interface delegate { type: "delegate" - to: t.sp_runtime.multiaddress.MultiAddress - conviction: t.pallet_democracy.conviction.Conviction - balance: t.u128 + to: t.types.sp_runtime.multiaddress.MultiAddress + conviction: t.types.pallet_democracy.conviction.Conviction + balance: t.types.u128 } /** * Undelegate the voting power of the sending account. @@ -249,7 +249,7 @@ export namespace Call { */ export interface unlock { type: "unlock" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove a vote for a referendum. @@ -282,7 +282,7 @@ export namespace Call { */ export interface remove_vote { type: "remove_vote" - index: t.u32 + index: t.types.u32 } /** * Remove a vote for a referendum. @@ -303,8 +303,8 @@ export namespace Call { */ export interface remove_other_vote { type: "remove_other_vote" - target: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + target: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 } /** * Permanently place a proposal into the blacklist. This prevents it from ever being @@ -325,8 +325,8 @@ export namespace Call { */ export interface blacklist { type: "blacklist" - proposal_hash: t.primitive_types.H256 - maybe_ref_index: t.u32 | undefined + proposal_hash: t.types.primitive_types.H256 + maybe_ref_index: t.types.u32 | undefined } /** * Remove a proposal. @@ -339,7 +339,7 @@ export namespace Call { */ export interface cancel_proposal { type: "cancel_proposal" - prop_index: t.Compact + prop_index: t.Compact } /** * Propose a sensitive action to be taken. @@ -353,8 +353,8 @@ export namespace Call { * Emits `Proposed`. */ export function propose( - value: Omit, - ): t.pallet_democracy.pallet.Call.propose { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.propose { return { type: "propose", ...value } } /** @@ -366,8 +366,8 @@ export namespace Call { * - `proposal`: The index of the proposal to second. */ export function second( - value: Omit, - ): t.pallet_democracy.pallet.Call.second { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.second { return { type: "second", ...value } } /** @@ -380,8 +380,8 @@ export namespace Call { * - `vote`: The vote configuration. */ export function vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -395,8 +395,8 @@ export namespace Call { * Weight: `O(1)`. */ export function emergency_cancel( - value: Omit, - ): t.pallet_democracy.pallet.Call.emergency_cancel { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.emergency_cancel { return { type: "emergency_cancel", ...value } } /** @@ -408,8 +408,8 @@ export namespace Call { * - `proposal_hash`: The preimage hash of the proposal. */ export function external_propose( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose { return { type: "external_propose", ...value } } /** @@ -426,8 +426,8 @@ export namespace Call { * Weight: `O(1)` */ export function external_propose_majority( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose_majority { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose_majority { return { type: "external_propose_majority", ...value } } /** @@ -444,8 +444,8 @@ export namespace Call { * Weight: `O(1)` */ export function external_propose_default( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose_default { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose_default { return { type: "external_propose_default", ...value } } /** @@ -467,8 +467,8 @@ export namespace Call { * Weight: `O(1)` */ export function fast_track( - value: Omit, - ): t.pallet_democracy.pallet.Call.fast_track { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.fast_track { return { type: "fast_track", ...value } } /** @@ -483,8 +483,8 @@ export namespace Call { * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ export function veto_external( - value: Omit, - ): t.pallet_democracy.pallet.Call.veto_external { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.veto_external { return { type: "veto_external", ...value } } /** @@ -497,8 +497,8 @@ export namespace Call { * # Weight: `O(1)`. */ export function cancel_referendum( - value: Omit, - ): t.pallet_democracy.pallet.Call.cancel_referendum { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.cancel_referendum { return { type: "cancel_referendum", ...value } } /** @@ -524,8 +524,8 @@ export namespace Call { * voted on. Weight is charged as if maximum votes. */ export function delegate( - value: Omit, - ): t.pallet_democracy.pallet.Call.delegate { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.delegate { return { type: "delegate", ...value } } /** @@ -542,7 +542,7 @@ export namespace Call { * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ - export function undelegate(): t.pallet_democracy.pallet.Call.undelegate { + export function undelegate(): t.types.pallet_democracy.pallet.Call.undelegate { return { type: "undelegate" } } /** @@ -552,7 +552,7 @@ export namespace Call { * * Weight: `O(1)`. */ - export function clear_public_proposals(): t.pallet_democracy.pallet.Call.clear_public_proposals { + export function clear_public_proposals(): t.types.pallet_democracy.pallet.Call.clear_public_proposals { return { type: "clear_public_proposals" } } /** @@ -565,8 +565,8 @@ export namespace Call { * Weight: `O(R)` with R number of vote of target. */ export function unlock( - value: Omit, - ): t.pallet_democracy.pallet.Call.unlock { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.unlock { return { type: "unlock", ...value } } /** @@ -599,8 +599,8 @@ export namespace Call { * Weight is calculated for the maximum number of vote. */ export function remove_vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.remove_vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.remove_vote { return { type: "remove_vote", ...value } } /** @@ -621,8 +621,8 @@ export namespace Call { * Weight is calculated for the maximum number of vote. */ export function remove_other_vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.remove_other_vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.remove_other_vote { return { type: "remove_other_vote", ...value } } /** @@ -643,8 +643,8 @@ export namespace Call { * reasonable value). */ export function blacklist( - value: Omit, - ): t.pallet_democracy.pallet.Call.blacklist { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.blacklist { return { type: "blacklist", ...value } } /** @@ -657,8 +657,8 @@ export namespace Call { * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ export function cancel_proposal( - value: Omit, - ): t.pallet_democracy.pallet.Call.cancel_proposal { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.cancel_proposal { return { type: "cancel_proposal", ...value } } } @@ -691,32 +691,32 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_democracy.pallet.Event.Proposed - | t.pallet_democracy.pallet.Event.Tabled - | t.pallet_democracy.pallet.Event.ExternalTabled - | t.pallet_democracy.pallet.Event.Started - | t.pallet_democracy.pallet.Event.Passed - | t.pallet_democracy.pallet.Event.NotPassed - | t.pallet_democracy.pallet.Event.Cancelled - | t.pallet_democracy.pallet.Event.Delegated - | t.pallet_democracy.pallet.Event.Undelegated - | t.pallet_democracy.pallet.Event.Vetoed - | t.pallet_democracy.pallet.Event.Blacklisted - | t.pallet_democracy.pallet.Event.Voted - | t.pallet_democracy.pallet.Event.Seconded - | t.pallet_democracy.pallet.Event.ProposalCanceled + | t.types.pallet_democracy.pallet.Event.Proposed + | t.types.pallet_democracy.pallet.Event.Tabled + | t.types.pallet_democracy.pallet.Event.ExternalTabled + | t.types.pallet_democracy.pallet.Event.Started + | t.types.pallet_democracy.pallet.Event.Passed + | t.types.pallet_democracy.pallet.Event.NotPassed + | t.types.pallet_democracy.pallet.Event.Cancelled + | t.types.pallet_democracy.pallet.Event.Delegated + | t.types.pallet_democracy.pallet.Event.Undelegated + | t.types.pallet_democracy.pallet.Event.Vetoed + | t.types.pallet_democracy.pallet.Event.Blacklisted + | t.types.pallet_democracy.pallet.Event.Voted + | t.types.pallet_democracy.pallet.Event.Seconded + | t.types.pallet_democracy.pallet.Event.ProposalCanceled export namespace Event { /** A motion has been proposed by a public account. */ export interface Proposed { type: "Proposed" - proposal_index: t.u32 - deposit: t.u128 + proposal_index: t.types.u32 + deposit: t.types.u128 } /** A public proposal has been tabled for referendum vote. */ export interface Tabled { type: "Tabled" - proposal_index: t.u32 - deposit: t.u128 + proposal_index: t.types.u32 + deposit: t.types.u128 } /** An external proposal has been tabled. */ export interface ExternalTabled { @@ -725,145 +725,145 @@ export namespace Event { /** A referendum has begun. */ export interface Started { type: "Started" - ref_index: t.u32 - threshold: t.pallet_democracy.vote_threshold.VoteThreshold + ref_index: t.types.u32 + threshold: t.types.pallet_democracy.vote_threshold.VoteThreshold } /** A proposal has been approved by referendum. */ export interface Passed { type: "Passed" - ref_index: t.u32 + ref_index: t.types.u32 } /** A proposal has been rejected by referendum. */ export interface NotPassed { type: "NotPassed" - ref_index: t.u32 + ref_index: t.types.u32 } /** A referendum has been cancelled. */ export interface Cancelled { type: "Cancelled" - ref_index: t.u32 + ref_index: t.types.u32 } /** An account has delegated their vote to another account. */ export interface Delegated { type: "Delegated" - who: t.sp_core.crypto.AccountId32 - target: t.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 + target: t.types.sp_core.crypto.AccountId32 } /** An account has cancelled a previous delegation operation. */ export interface Undelegated { type: "Undelegated" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** An external proposal has been vetoed. */ export interface Vetoed { type: "Vetoed" - who: t.sp_core.crypto.AccountId32 - proposal_hash: t.primitive_types.H256 - until: t.u32 + who: t.types.sp_core.crypto.AccountId32 + proposal_hash: t.types.primitive_types.H256 + until: t.types.u32 } /** A proposal_hash has been blacklisted permanently. */ export interface Blacklisted { type: "Blacklisted" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** An account has voted in a referendum */ export interface Voted { type: "Voted" - voter: t.sp_core.crypto.AccountId32 - ref_index: t.u32 - vote: t.pallet_democracy.vote.AccountVote + voter: t.types.sp_core.crypto.AccountId32 + ref_index: t.types.u32 + vote: t.types.pallet_democracy.vote.AccountVote } /** An account has secconded a proposal */ export interface Seconded { type: "Seconded" - seconder: t.sp_core.crypto.AccountId32 - prop_index: t.u32 + seconder: t.types.sp_core.crypto.AccountId32 + prop_index: t.types.u32 } /** A proposal got canceled. */ export interface ProposalCanceled { type: "ProposalCanceled" - prop_index: t.u32 + prop_index: t.types.u32 } /** A motion has been proposed by a public account. */ export function Proposed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** A public proposal has been tabled for referendum vote. */ export function Tabled( - value: Omit, - ): t.pallet_democracy.pallet.Event.Tabled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Tabled { return { type: "Tabled", ...value } } /** An external proposal has been tabled. */ - export function ExternalTabled(): t.pallet_democracy.pallet.Event.ExternalTabled { + export function ExternalTabled(): t.types.pallet_democracy.pallet.Event.ExternalTabled { return { type: "ExternalTabled" } } /** A referendum has begun. */ export function Started( - value: Omit, - ): t.pallet_democracy.pallet.Event.Started { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Started { return { type: "Started", ...value } } /** A proposal has been approved by referendum. */ export function Passed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Passed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Passed { return { type: "Passed", ...value } } /** A proposal has been rejected by referendum. */ export function NotPassed( - value: Omit, - ): t.pallet_democracy.pallet.Event.NotPassed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.NotPassed { return { type: "NotPassed", ...value } } /** A referendum has been cancelled. */ export function Cancelled( - value: Omit, - ): t.pallet_democracy.pallet.Event.Cancelled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Cancelled { return { type: "Cancelled", ...value } } /** An account has delegated their vote to another account. */ export function Delegated( - value: Omit, - ): t.pallet_democracy.pallet.Event.Delegated { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Delegated { return { type: "Delegated", ...value } } /** An account has cancelled a previous delegation operation. */ export function Undelegated( - value: Omit, - ): t.pallet_democracy.pallet.Event.Undelegated { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Undelegated { return { type: "Undelegated", ...value } } /** An external proposal has been vetoed. */ export function Vetoed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Vetoed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Vetoed { return { type: "Vetoed", ...value } } /** A proposal_hash has been blacklisted permanently. */ export function Blacklisted( - value: Omit, - ): t.pallet_democracy.pallet.Event.Blacklisted { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Blacklisted { return { type: "Blacklisted", ...value } } /** An account has voted in a referendum */ export function Voted( - value: Omit, - ): t.pallet_democracy.pallet.Event.Voted { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Voted { return { type: "Voted", ...value } } /** An account has secconded a proposal */ export function Seconded( - value: Omit, - ): t.pallet_democracy.pallet.Event.Seconded { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Seconded { return { type: "Seconded", ...value } } /** A proposal got canceled. */ export function ProposalCanceled( - value: Omit, - ): t.pallet_democracy.pallet.Event.ProposalCanceled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.ProposalCanceled { return { type: "ProposalCanceled", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_democracy/types.ts b/codegen/_output/polkadot/types/pallet_democracy/types.ts new file mode 100644 index 000000000..f0129bbe9 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_democracy/types.ts @@ -0,0 +1,68 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $delegations: $.Codec = _codec.$540 + +export const $referendumInfo: $.Codec = _codec.$533 + +export const $referendumStatus: $.Codec = + _codec.$534 + +export const $tally: $.Codec = _codec.$535 + +export interface Delegations { + votes: t.types.u128 + capital: t.types.u128 +} + +export function Delegations(value: t.types.pallet_democracy.types.Delegations) { + return value +} + +export type ReferendumInfo = + | t.types.pallet_democracy.types.ReferendumInfo.Ongoing + | t.types.pallet_democracy.types.ReferendumInfo.Finished +export namespace ReferendumInfo { + export interface Ongoing { + type: "Ongoing" + value: t.types.pallet_democracy.types.ReferendumStatus + } + export interface Finished { + type: "Finished" + approved: boolean + end: t.types.u32 + } + export function Ongoing( + value: t.types.pallet_democracy.types.ReferendumInfo.Ongoing["value"], + ): t.types.pallet_democracy.types.ReferendumInfo.Ongoing { + return { type: "Ongoing", value } + } + export function Finished( + value: Omit, + ): t.types.pallet_democracy.types.ReferendumInfo.Finished { + return { type: "Finished", ...value } + } +} + +export interface ReferendumStatus { + end: t.types.u32 + proposal: t.types.frame_support.traits.preimages.Bounded + threshold: t.types.pallet_democracy.vote_threshold.VoteThreshold + delay: t.types.u32 + tally: t.types.pallet_democracy.types.Tally +} + +export function ReferendumStatus(value: t.types.pallet_democracy.types.ReferendumStatus) { + return value +} + +export interface Tally { + ayes: t.types.u128 + nays: t.types.u128 + turnout: t.types.u128 +} + +export function Tally(value: t.types.pallet_democracy.types.Tally) { + return value +} diff --git a/codegen/_output/polkadot/types/pallet_democracy/vote.ts b/codegen/_output/polkadot/types/pallet_democracy/vote.ts new file mode 100644 index 000000000..14238d064 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_democracy/vote.ts @@ -0,0 +1,79 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $accountVote: $.Codec = _codec.$63 + +export const $priorLock: $.Codec = _codec.$541 + +export const $vote: $.Codec = _codec.$64 + +export const $voting: $.Codec = _codec.$536 + +export type AccountVote = + | t.types.pallet_democracy.vote.AccountVote.Standard + | t.types.pallet_democracy.vote.AccountVote.Split +export namespace AccountVote { + export interface Standard { + type: "Standard" + vote: t.types.pallet_democracy.vote.Vote + balance: t.types.u128 + } + export interface Split { + type: "Split" + aye: t.types.u128 + nay: t.types.u128 + } + export function Standard( + value: Omit, + ): t.types.pallet_democracy.vote.AccountVote.Standard { + return { type: "Standard", ...value } + } + export function Split( + value: Omit, + ): t.types.pallet_democracy.vote.AccountVote.Split { + return { type: "Split", ...value } + } +} + +export type PriorLock = [t.types.u32, t.types.u128] + +export function PriorLock(...value: t.types.pallet_democracy.vote.PriorLock) { + return value +} + +export type Vote = t.types.u8 + +export function Vote(value: t.types.pallet_democracy.vote.Vote) { + return value +} + +export type Voting = + | t.types.pallet_democracy.vote.Voting.Direct + | t.types.pallet_democracy.vote.Voting.Delegating +export namespace Voting { + export interface Direct { + type: "Direct" + votes: Array<[t.types.u32, t.types.pallet_democracy.vote.AccountVote]> + delegations: t.types.pallet_democracy.types.Delegations + prior: t.types.pallet_democracy.vote.PriorLock + } + export interface Delegating { + type: "Delegating" + balance: t.types.u128 + target: t.types.sp_core.crypto.AccountId32 + conviction: t.types.pallet_democracy.conviction.Conviction + delegations: t.types.pallet_democracy.types.Delegations + prior: t.types.pallet_democracy.vote.PriorLock + } + export function Direct( + value: Omit, + ): t.types.pallet_democracy.vote.Voting.Direct { + return { type: "Direct", ...value } + } + export function Delegating( + value: Omit, + ): t.types.pallet_democracy.vote.Voting.Delegating { + return { type: "Delegating", ...value } + } +} diff --git a/codegen/_output/polkadot/types/pallet_democracy/vote_threshold.ts b/codegen/_output/polkadot/types/pallet_democracy/vote_threshold.ts new file mode 100644 index 000000000..6bb511ea0 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_democracy/vote_threshold.ts @@ -0,0 +1,8 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $voteThreshold: $.Codec = + _codec.$62 + +export type VoteThreshold = "SuperMajorityApprove" | "SuperMajorityAgainst" | "SimpleMajority" diff --git a/codegen/_output/polkadot/types/pallet_election_provider_multi_phase/mod.ts b/codegen/_output/polkadot/types/pallet_election_provider_multi_phase/mod.ts new file mode 100644 index 000000000..2db454efe --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_election_provider_multi_phase/mod.ts @@ -0,0 +1,104 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as signed from "./signed.ts" + +export const $electionCompute: $.Codec< + t.types.pallet_election_provider_multi_phase.ElectionCompute +> = _codec.$87 + +export const $phase: $.Codec = _codec.$600 + +export const $rawSolution: $.Codec = + _codec.$311 + +export const $readySolution: $.Codec = + _codec.$602 + +export const $roundSnapshot: $.Codec = + _codec.$603 + +export const $solutionOrSnapshotSize: $.Codec< + t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize +> = _codec.$363 + +export type ElectionCompute = "OnChain" | "Signed" | "Unsigned" | "Fallback" | "Emergency" + +export type Phase = + | t.types.pallet_election_provider_multi_phase.Phase.Off + | t.types.pallet_election_provider_multi_phase.Phase.Signed + | t.types.pallet_election_provider_multi_phase.Phase.Unsigned + | t.types.pallet_election_provider_multi_phase.Phase.Emergency +export namespace Phase { + export interface Off { + type: "Off" + } + export interface Signed { + type: "Signed" + } + export interface Unsigned { + type: "Unsigned" + value: [boolean, t.types.u32] + } + export interface Emergency { + type: "Emergency" + } + export function Off(): t.types.pallet_election_provider_multi_phase.Phase.Off { + return { type: "Off" } + } + export function Signed(): t.types.pallet_election_provider_multi_phase.Phase.Signed { + return { type: "Signed" } + } + export function Unsigned( + value: t.types.pallet_election_provider_multi_phase.Phase.Unsigned["value"], + ): t.types.pallet_election_provider_multi_phase.Phase.Unsigned { + return { type: "Unsigned", value } + } + export function Emergency(): t.types.pallet_election_provider_multi_phase.Phase.Emergency { + return { type: "Emergency" } + } +} + +export interface RawSolution { + solution: t.types.polkadot_runtime.NposCompactSolution16 + score: t.types.sp_npos_elections.ElectionScore + round: t.types.u32 +} + +export function RawSolution(value: t.types.pallet_election_provider_multi_phase.RawSolution) { + return value +} + +export interface ReadySolution { + supports: Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> + score: t.types.sp_npos_elections.ElectionScore + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute +} + +export function ReadySolution(value: t.types.pallet_election_provider_multi_phase.ReadySolution) { + return value +} + +export interface RoundSnapshot { + voters: Array< + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] + > + targets: Array +} + +export function RoundSnapshot(value: t.types.pallet_election_provider_multi_phase.RoundSnapshot) { + return value +} + +export interface SolutionOrSnapshotSize { + voters: t.Compact + targets: t.Compact +} + +export function SolutionOrSnapshotSize( + value: t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize, +) { + return value +} diff --git a/codegen/_output/rococo/pallet_election_provider_multi_phase/pallet.ts b/codegen/_output/polkadot/types/pallet_election_provider_multi_phase/pallet.ts similarity index 65% rename from codegen/_output/rococo/pallet_election_provider_multi_phase/pallet.ts rename to codegen/_output/polkadot/types/pallet_election_provider_multi_phase/pallet.ts index 4c2c8e6b3..f887c8e4c 100644 --- a/codegen/_output/rococo/pallet_election_provider_multi_phase/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_election_provider_multi_phase/pallet.ts @@ -1,20 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$310 +export const $call: $.Codec = _codec.$310 -export const $error: $.Codec = _codec.$611 +export const $error: $.Codec = + _codec.$611 -export const $event: $.Codec = _codec.$86 +export const $event: $.Codec = _codec.$86 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned - | t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score - | t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result - | t.pallet_election_provider_multi_phase.pallet.Call.submit - | t.pallet_election_provider_multi_phase.pallet.Call.governance_fallback + | t.types.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned + | t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score + | t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result + | t.types.pallet_election_provider_multi_phase.pallet.Call.submit + | t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback export namespace Call { /** * Submit a solution for the unsigned phase. @@ -34,8 +35,8 @@ export namespace Call { */ export interface submit_unsigned { type: "submit_unsigned" - raw_solution: t.pallet_election_provider_multi_phase.RawSolution - witness: t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution + witness: t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize } /** * Set a new value for `MinimumUntrustedScore`. @@ -46,7 +47,7 @@ export namespace Call { */ export interface set_minimum_untrusted_score { type: "set_minimum_untrusted_score" - maybe_next_score: t.sp_npos_elections.ElectionScore | undefined + maybe_next_score: t.types.sp_npos_elections.ElectionScore | undefined } /** * Set a solution in the queue, to be handed out to the client of this pallet in the next @@ -60,7 +61,7 @@ export namespace Call { */ export interface set_emergency_election_result { type: "set_emergency_election_result" - supports: Array<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> + supports: Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> } /** * Submit a solution for the signed phase. @@ -75,7 +76,7 @@ export namespace Call { */ export interface submit { type: "submit" - raw_solution: t.pallet_election_provider_multi_phase.RawSolution + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution } /** * Trigger the governance fallback. @@ -85,8 +86,8 @@ export namespace Call { */ export interface governance_fallback { type: "governance_fallback" - maybe_max_voters: t.u32 | undefined - maybe_max_targets: t.u32 | undefined + maybe_max_voters: t.types.u32 | undefined + maybe_max_targets: t.types.u32 | undefined } /** * Submit a solution for the unsigned phase. @@ -105,8 +106,8 @@ export namespace Call { * No deposit or reward is associated with this submission. */ export function submit_unsigned( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned { return { type: "submit_unsigned", ...value } } /** @@ -118,10 +119,10 @@ export namespace Call { */ export function set_minimum_untrusted_score( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, "type" >, - ): t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score { + ): t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score { return { type: "set_minimum_untrusted_score", ...value } } /** @@ -136,10 +137,10 @@ export namespace Call { */ export function set_emergency_election_result( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, "type" >, - ): t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result { + ): t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result { return { type: "set_emergency_election_result", ...value } } /** @@ -154,8 +155,8 @@ export namespace Call { * might be rewarded, slashed, or get all or a part of the deposit back. */ export function submit( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.submit { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.submit { return { type: "submit", ...value } } /** @@ -165,8 +166,11 @@ export namespace Call { * calling [`Call::set_emergency_election_result`]. */ export function governance_fallback( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.governance_fallback { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback { return { type: "governance_fallback", ...value } } } @@ -188,13 +192,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_election_provider_multi_phase.pallet.Event.SolutionStored - | t.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized - | t.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed - | t.pallet_election_provider_multi_phase.pallet.Event.Rewarded - | t.pallet_election_provider_multi_phase.pallet.Event.Slashed - | t.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted - | t.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted + | t.types.pallet_election_provider_multi_phase.pallet.Event.SolutionStored + | t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized + | t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed + | t.types.pallet_election_provider_multi_phase.pallet.Event.Rewarded + | t.types.pallet_election_provider_multi_phase.pallet.Event.Slashed + | t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted + | t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted export namespace Event { /** * A solution was stored with the given compute. @@ -206,14 +210,14 @@ export namespace Event { */ export interface SolutionStored { type: "SolutionStored" - compute: t.pallet_election_provider_multi_phase.ElectionCompute + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute prev_ejected: boolean } /** The election has been finalized, with the given computation and score. */ export interface ElectionFinalized { type: "ElectionFinalized" - compute: t.pallet_election_provider_multi_phase.ElectionCompute - score: t.sp_npos_elections.ElectionScore + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute + score: t.types.sp_npos_elections.ElectionScore } /** * An election failed. @@ -226,24 +230,24 @@ export namespace Event { /** An account has been rewarded for their signed submission being finalized. */ export interface Rewarded { type: "Rewarded" - account: t.sp_core.crypto.AccountId32 - value: t.u128 + account: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 } /** An account has been slashed for submitting an invalid signed submission. */ export interface Slashed { type: "Slashed" - account: t.sp_core.crypto.AccountId32 - value: t.u128 + account: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 } /** The signed phase of the given round has started. */ export interface SignedPhaseStarted { type: "SignedPhaseStarted" - round: t.u32 + round: t.types.u32 } /** The unsigned phase of the given round has started. */ export interface UnsignedPhaseStarted { type: "UnsignedPhaseStarted" - round: t.u32 + round: t.types.u32 } /** * A solution was stored with the given compute. @@ -254,14 +258,17 @@ export namespace Event { * The `bool` is `true` when a previous solution was ejected to make room for this one. */ export function SolutionStored( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.SolutionStored { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.SolutionStored { return { type: "SolutionStored", ...value } } /** The election has been finalized, with the given computation and score. */ export function ElectionFinalized( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized { return { type: "ElectionFinalized", ...value } } /** @@ -269,31 +276,37 @@ export namespace Event { * * Not much can be said about which computes failed in the process. */ - export function ElectionFailed(): t.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed { + export function ElectionFailed(): t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed { return { type: "ElectionFailed" } } /** An account has been rewarded for their signed submission being finalized. */ export function Rewarded( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.Rewarded { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.Rewarded { return { type: "Rewarded", ...value } } /** An account has been slashed for submitting an invalid signed submission. */ export function Slashed( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** The signed phase of the given round has started. */ export function SignedPhaseStarted( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted { return { type: "SignedPhaseStarted", ...value } } /** The unsigned phase of the given round has started. */ export function UnsignedPhaseStarted( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted { return { type: "UnsignedPhaseStarted", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_election_provider_multi_phase/signed.ts b/codegen/_output/polkadot/types/pallet_election_provider_multi_phase/signed.ts new file mode 100644 index 000000000..6fbed6f87 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_election_provider_multi_phase/signed.ts @@ -0,0 +1,20 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $signedSubmission: $.Codec< + t.types.pallet_election_provider_multi_phase.signed.SignedSubmission +> = _codec.$610 + +export interface SignedSubmission { + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution + call_fee: t.types.u128 +} + +export function SignedSubmission( + value: t.types.pallet_election_provider_multi_phase.signed.SignedSubmission, +) { + return value +} diff --git a/codegen/_output/polkadot/types/pallet_elections_phragmen/mod.ts b/codegen/_output/polkadot/types/pallet_elections_phragmen/mod.ts new file mode 100644 index 000000000..2dbfe20df --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_elections_phragmen/mod.ts @@ -0,0 +1,59 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $renouncing: $.Codec = _codec.$242 + +export const $seatHolder: $.Codec = _codec.$551 + +export const $voter: $.Codec = _codec.$552 + +export type Renouncing = + | t.types.pallet_elections_phragmen.Renouncing.Member + | t.types.pallet_elections_phragmen.Renouncing.RunnerUp + | t.types.pallet_elections_phragmen.Renouncing.Candidate +export namespace Renouncing { + export interface Member { + type: "Member" + } + export interface RunnerUp { + type: "RunnerUp" + } + export interface Candidate { + type: "Candidate" + value: t.Compact + } + export function Member(): t.types.pallet_elections_phragmen.Renouncing.Member { + return { type: "Member" } + } + export function RunnerUp(): t.types.pallet_elections_phragmen.Renouncing.RunnerUp { + return { type: "RunnerUp" } + } + export function Candidate( + value: t.types.pallet_elections_phragmen.Renouncing.Candidate["value"], + ): t.types.pallet_elections_phragmen.Renouncing.Candidate { + return { type: "Candidate", value } + } +} + +export interface SeatHolder { + who: t.types.sp_core.crypto.AccountId32 + stake: t.types.u128 + deposit: t.types.u128 +} + +export function SeatHolder(value: t.types.pallet_elections_phragmen.SeatHolder) { + return value +} + +export interface Voter { + votes: Array + stake: t.types.u128 + deposit: t.types.u128 +} + +export function Voter(value: t.types.pallet_elections_phragmen.Voter) { + return value +} diff --git a/codegen/_output/rococo/pallet_elections_phragmen/pallet.ts b/codegen/_output/polkadot/types/pallet_elections_phragmen/pallet.ts similarity index 77% rename from codegen/_output/rococo/pallet_elections_phragmen/pallet.ts rename to codegen/_output/polkadot/types/pallet_elections_phragmen/pallet.ts index 4867e13f0..f8d119b2b 100644 --- a/codegen/_output/rococo/pallet_elections_phragmen/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_elections_phragmen/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$241 +export const $call: $.Codec = _codec.$241 -export const $error: $.Codec = _codec.$553 +export const $error: $.Codec = _codec.$553 -export const $event: $.Codec = _codec.$67 +export const $event: $.Codec = _codec.$67 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_elections_phragmen.pallet.Call.vote - | t.pallet_elections_phragmen.pallet.Call.remove_voter - | t.pallet_elections_phragmen.pallet.Call.submit_candidacy - | t.pallet_elections_phragmen.pallet.Call.renounce_candidacy - | t.pallet_elections_phragmen.pallet.Call.remove_member - | t.pallet_elections_phragmen.pallet.Call.clean_defunct_voters + | t.types.pallet_elections_phragmen.pallet.Call.vote + | t.types.pallet_elections_phragmen.pallet.Call.remove_voter + | t.types.pallet_elections_phragmen.pallet.Call.submit_candidacy + | t.types.pallet_elections_phragmen.pallet.Call.renounce_candidacy + | t.types.pallet_elections_phragmen.pallet.Call.remove_member + | t.types.pallet_elections_phragmen.pallet.Call.clean_defunct_voters export namespace Call { /** * Vote for a set of candidates for the upcoming round of election. This can be called to @@ -44,8 +44,8 @@ export namespace Call { */ export interface vote { type: "vote" - votes: Array - value: t.Compact + votes: Array + value: t.Compact } /** * Remove `origin` as a voter. @@ -76,7 +76,7 @@ export namespace Call { */ export interface submit_candidacy { type: "submit_candidacy" - candidate_count: t.Compact + candidate_count: t.Compact } /** * Renounce one's intention to be a candidate for the next election round. 3 potential @@ -100,7 +100,7 @@ export namespace Call { */ export interface renounce_candidacy { type: "renounce_candidacy" - renouncing: t.pallet_elections_phragmen.Renouncing + renouncing: t.types.pallet_elections_phragmen.Renouncing } /** * Remove a particular member from the set. This is effective immediately and the bond of @@ -124,7 +124,7 @@ export namespace Call { */ export interface remove_member { type: "remove_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress slash_bond: boolean rerun_election: boolean } @@ -142,8 +142,8 @@ export namespace Call { */ export interface clean_defunct_voters { type: "clean_defunct_voters" - num_voters: t.u32 - num_defunct: t.u32 + num_voters: t.types.u32 + num_defunct: t.types.u32 } /** * Vote for a set of candidates for the upcoming round of election. This can be called to @@ -171,8 +171,8 @@ export namespace Call { * # */ export function vote( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.vote { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -182,7 +182,7 @@ export namespace Call { * * The dispatch origin of this call must be signed and be a voter. */ - export function remove_voter(): t.pallet_elections_phragmen.pallet.Call.remove_voter { + export function remove_voter(): t.types.pallet_elections_phragmen.pallet.Call.remove_voter { return { type: "remove_voter" } } /** @@ -203,8 +203,8 @@ export namespace Call { * # */ export function submit_candidacy( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.submit_candidacy { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.submit_candidacy { return { type: "submit_candidacy", ...value } } /** @@ -228,8 +228,8 @@ export namespace Call { * # */ export function renounce_candidacy( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.renounce_candidacy { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.renounce_candidacy { return { type: "renounce_candidacy", ...value } } /** @@ -253,8 +253,8 @@ export namespace Call { * # */ export function remove_member( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.remove_member { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.remove_member { return { type: "remove_member", ...value } } /** @@ -270,8 +270,8 @@ export namespace Call { * # */ export function clean_defunct_voters( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.clean_defunct_voters { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.clean_defunct_voters { return { type: "clean_defunct_voters", ...value } } } @@ -298,13 +298,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_elections_phragmen.pallet.Event.NewTerm - | t.pallet_elections_phragmen.pallet.Event.EmptyTerm - | t.pallet_elections_phragmen.pallet.Event.ElectionError - | t.pallet_elections_phragmen.pallet.Event.MemberKicked - | t.pallet_elections_phragmen.pallet.Event.Renounced - | t.pallet_elections_phragmen.pallet.Event.CandidateSlashed - | t.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed + | t.types.pallet_elections_phragmen.pallet.Event.NewTerm + | t.types.pallet_elections_phragmen.pallet.Event.EmptyTerm + | t.types.pallet_elections_phragmen.pallet.Event.ElectionError + | t.types.pallet_elections_phragmen.pallet.Event.MemberKicked + | t.types.pallet_elections_phragmen.pallet.Event.Renounced + | t.types.pallet_elections_phragmen.pallet.Event.CandidateSlashed + | t.types.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed export namespace Event { /** * A new term with new_members. This indicates that enough candidates existed to run @@ -315,7 +315,7 @@ export namespace Event { */ export interface NewTerm { type: "NewTerm" - new_members: Array<[t.sp_core.crypto.AccountId32, t.u128]> + new_members: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> } /** * No (or not enough) candidates existed for this round. This is different from @@ -334,12 +334,12 @@ export namespace Event { */ export interface MemberKicked { type: "MemberKicked" - member: t.sp_core.crypto.AccountId32 + member: t.types.sp_core.crypto.AccountId32 } /** Someone has renounced their candidacy. */ export interface Renounced { type: "Renounced" - candidate: t.sp_core.crypto.AccountId32 + candidate: t.types.sp_core.crypto.AccountId32 } /** * A candidate was slashed by amount due to failing to obtain a seat as member or @@ -349,14 +349,14 @@ export namespace Event { */ export interface CandidateSlashed { type: "CandidateSlashed" - candidate: t.sp_core.crypto.AccountId32 - amount: t.u128 + candidate: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A seat holder was slashed by amount by being forcefully removed from the set. */ export interface SeatHolderSlashed { type: "SeatHolderSlashed" - seat_holder: t.sp_core.crypto.AccountId32 - amount: t.u128 + seat_holder: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * A new term with new_members. This indicates that enough candidates existed to run @@ -366,19 +366,19 @@ export namespace Event { * begin with. */ export function NewTerm( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.NewTerm { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.NewTerm { return { type: "NewTerm", ...value } } /** * No (or not enough) candidates existed for this round. This is different from * `NewTerm(\[\])`. See the description of `NewTerm`. */ - export function EmptyTerm(): t.pallet_elections_phragmen.pallet.Event.EmptyTerm { + export function EmptyTerm(): t.types.pallet_elections_phragmen.pallet.Event.EmptyTerm { return { type: "EmptyTerm" } } /** Internal error happened while trying to perform election. */ - export function ElectionError(): t.pallet_elections_phragmen.pallet.Event.ElectionError { + export function ElectionError(): t.types.pallet_elections_phragmen.pallet.Event.ElectionError { return { type: "ElectionError" } } /** @@ -386,14 +386,14 @@ export namespace Event { * `EmptyTerm`. */ export function MemberKicked( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.MemberKicked { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.MemberKicked { return { type: "MemberKicked", ...value } } /** Someone has renounced their candidacy. */ export function Renounced( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.Renounced { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.Renounced { return { type: "Renounced", ...value } } /** @@ -403,14 +403,14 @@ export namespace Event { * Note that old members and runners-up are also candidates. */ export function CandidateSlashed( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.CandidateSlashed { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.CandidateSlashed { return { type: "CandidateSlashed", ...value } } /** A seat holder was slashed by amount by being forcefully removed from the set. */ export function SeatHolderSlashed( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed { return { type: "SeatHolderSlashed", ...value } } } diff --git a/codegen/_output/polkadot/pallet_fast_unstake/mod.ts b/codegen/_output/polkadot/types/pallet_fast_unstake/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_fast_unstake/mod.ts rename to codegen/_output/polkadot/types/pallet_fast_unstake/mod.ts diff --git a/codegen/_output/kusama/pallet_fast_unstake/pallet.ts b/codegen/_output/polkadot/types/pallet_fast_unstake/pallet.ts similarity index 69% rename from codegen/_output/kusama/pallet_fast_unstake/pallet.ts rename to codegen/_output/polkadot/types/pallet_fast_unstake/pallet.ts index f71b89fd1..593f22acc 100644 --- a/codegen/_output/kusama/pallet_fast_unstake/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_fast_unstake/pallet.ts @@ -1,20 +1,20 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$374 +export const $call: $.Codec = _codec.$374 -export const $error: $.Codec = _codec.$637 +export const $error: $.Codec = _codec.$637 -export const $event: $.Codec = _codec.$93 +export const $event: $.Codec = _codec.$93 -export const $maxChecking: $.Codec = _codec.$635 +export const $maxChecking: $.Codec = _codec.$635 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_fast_unstake.pallet.Call.register_fast_unstake - | t.pallet_fast_unstake.pallet.Call.deregister - | t.pallet_fast_unstake.pallet.Call.control + | t.types.pallet_fast_unstake.pallet.Call.register_fast_unstake + | t.types.pallet_fast_unstake.pallet.Call.deregister + | t.types.pallet_fast_unstake.pallet.Call.control export namespace Call { /** * Register oneself for fast-unstake. @@ -58,7 +58,7 @@ export namespace Call { */ export interface control { type: "control" - unchecked_eras_to_check: t.u32 + unchecked_eras_to_check: t.types.u32 } /** * Register oneself for fast-unstake. @@ -80,7 +80,7 @@ export namespace Call { * the normal staking system, but they lose part of their unbonding chunks due to consuming * the chain's resources. */ - export function register_fast_unstake(): t.pallet_fast_unstake.pallet.Call.register_fast_unstake { + export function register_fast_unstake(): t.types.pallet_fast_unstake.pallet.Call.register_fast_unstake { return { type: "register_fast_unstake" } } /** @@ -92,7 +92,7 @@ export namespace Call { * calling `register_fast_unstake`. This should probably be followed by a call to * `Staking::rebond`. */ - export function deregister(): t.pallet_fast_unstake.pallet.Call.deregister { + export function deregister(): t.types.pallet_fast_unstake.pallet.Call.deregister { return { type: "deregister" } } /** @@ -101,8 +101,8 @@ export namespace Call { * Dispatch origin must be signed by the [`Config::ControlOrigin`]. */ export function control( - value: Omit, - ): t.pallet_fast_unstake.pallet.Call.control { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Call.control { return { type: "control", ...value } } } @@ -118,29 +118,29 @@ export type Error = /** The events of this pallet. */ export type Event = - | t.pallet_fast_unstake.pallet.Event.Unstaked - | t.pallet_fast_unstake.pallet.Event.Slashed - | t.pallet_fast_unstake.pallet.Event.Checking - | t.pallet_fast_unstake.pallet.Event.Errored - | t.pallet_fast_unstake.pallet.Event.InternalError + | t.types.pallet_fast_unstake.pallet.Event.Unstaked + | t.types.pallet_fast_unstake.pallet.Event.Slashed + | t.types.pallet_fast_unstake.pallet.Event.Checking + | t.types.pallet_fast_unstake.pallet.Event.Errored + | t.types.pallet_fast_unstake.pallet.Event.InternalError export namespace Event { /** A staker was unstaked. */ export interface Unstaked { type: "Unstaked" - stash: t.sp_core.crypto.AccountId32 - result: null | C.ChainError + stash: t.types.sp_core.crypto.AccountId32 + result: null | C.ChainError } /** A staker was slashed for requesting fast-unstake whilst being exposed. */ export interface Slashed { type: "Slashed" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A staker was partially checked for the given eras, but the process did not finish. */ export interface Checking { type: "Checking" - stash: t.sp_core.crypto.AccountId32 - eras: Array + stash: t.types.sp_core.crypto.AccountId32 + eras: Array } /** * Some internal error happened while migrating stash. They are removed as head as a @@ -148,7 +148,7 @@ export namespace Event { */ export interface Errored { type: "Errored" - stash: t.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** An internal error happened. Operations will be paused now. */ export interface InternalError { @@ -156,20 +156,20 @@ export namespace Event { } /** A staker was unstaked. */ export function Unstaked( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Unstaked { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Unstaked { return { type: "Unstaked", ...value } } /** A staker was slashed for requesting fast-unstake whilst being exposed. */ export function Slashed( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** A staker was partially checked for the given eras, but the process did not finish. */ export function Checking( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Checking { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Checking { return { type: "Checking", ...value } } /** @@ -177,12 +177,12 @@ export namespace Event { * consequence. */ export function Errored( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Errored { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Errored { return { type: "Errored", ...value } } /** An internal error happened. Operations will be paused now. */ - export function InternalError(): t.pallet_fast_unstake.pallet.Event.InternalError { + export function InternalError(): t.types.pallet_fast_unstake.pallet.Event.InternalError { return { type: "InternalError" } } } diff --git a/codegen/_output/polkadot/types/pallet_fast_unstake/types.ts b/codegen/_output/polkadot/types/pallet_fast_unstake/types.ts new file mode 100644 index 000000000..e29dae328 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_fast_unstake/types.ts @@ -0,0 +1,16 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $unstakeRequest: $.Codec = + _codec.$634 + +export interface UnstakeRequest { + stash: t.types.sp_core.crypto.AccountId32 + checked: Array + deposit: t.types.u128 +} + +export function UnstakeRequest(value: t.types.pallet_fast_unstake.types.UnstakeRequest) { + return value +} diff --git a/codegen/_output/polkadot/types/pallet_grandpa/mod.ts b/codegen/_output/polkadot/types/pallet_grandpa/mod.ts new file mode 100644 index 000000000..699b2d179 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_grandpa/mod.ts @@ -0,0 +1,60 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $storedPendingChange: $.Codec = _codec.$517 + +export const $storedState: $.Codec = _codec.$516 + +export interface StoredPendingChange { + scheduled_at: t.types.u32 + delay: t.types.u32 + next_authorities: Array<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> + forced: t.types.u32 | undefined +} + +export function StoredPendingChange(value: t.types.pallet_grandpa.StoredPendingChange) { + return value +} + +export type StoredState = + | t.types.pallet_grandpa.StoredState.Live + | t.types.pallet_grandpa.StoredState.PendingPause + | t.types.pallet_grandpa.StoredState.Paused + | t.types.pallet_grandpa.StoredState.PendingResume +export namespace StoredState { + export interface Live { + type: "Live" + } + export interface PendingPause { + type: "PendingPause" + scheduled_at: t.types.u32 + delay: t.types.u32 + } + export interface Paused { + type: "Paused" + } + export interface PendingResume { + type: "PendingResume" + scheduled_at: t.types.u32 + delay: t.types.u32 + } + export function Live(): t.types.pallet_grandpa.StoredState.Live { + return { type: "Live" } + } + export function PendingPause( + value: Omit, + ): t.types.pallet_grandpa.StoredState.PendingPause { + return { type: "PendingPause", ...value } + } + export function Paused(): t.types.pallet_grandpa.StoredState.Paused { + return { type: "Paused" } + } + export function PendingResume( + value: Omit, + ): t.types.pallet_grandpa.StoredState.PendingResume { + return { type: "PendingResume", ...value } + } +} diff --git a/codegen/_output/polkadot/pallet_grandpa/pallet.ts b/codegen/_output/polkadot/types/pallet_grandpa/pallet.ts similarity index 72% rename from codegen/_output/polkadot/pallet_grandpa/pallet.ts rename to codegen/_output/polkadot/types/pallet_grandpa/pallet.ts index cfe60ddee..922a4100f 100644 --- a/codegen/_output/polkadot/pallet_grandpa/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_grandpa/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$216 +export const $call: $.Codec = _codec.$216 -export const $error: $.Codec = _codec.$519 +export const $error: $.Codec = _codec.$519 -export const $event: $.Codec = _codec.$47 +export const $event: $.Codec = _codec.$47 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_grandpa.pallet.Call.report_equivocation - | t.pallet_grandpa.pallet.Call.report_equivocation_unsigned - | t.pallet_grandpa.pallet.Call.note_stalled + | t.types.pallet_grandpa.pallet.Call.report_equivocation + | t.types.pallet_grandpa.pallet.Call.report_equivocation_unsigned + | t.types.pallet_grandpa.pallet.Call.note_stalled export namespace Call { /** * Report voter equivocation/misbehavior. This method will verify the @@ -22,8 +22,8 @@ export namespace Call { */ export interface report_equivocation { type: "report_equivocation" - equivocation_proof: t.sp_finality_grandpa.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_finality_grandpa.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Report voter equivocation/misbehavior. This method will verify the @@ -38,8 +38,8 @@ export namespace Call { */ export interface report_equivocation_unsigned { type: "report_equivocation_unsigned" - equivocation_proof: t.sp_finality_grandpa.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_finality_grandpa.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Note that the current authority set of the GRANDPA finality gadget has stalled. @@ -57,8 +57,8 @@ export namespace Call { */ export interface note_stalled { type: "note_stalled" - delay: t.u32 - best_finalized_block_number: t.u32 + delay: t.types.u32 + best_finalized_block_number: t.types.u32 } /** * Report voter equivocation/misbehavior. This method will verify the @@ -67,8 +67,8 @@ export namespace Call { * will be reported. */ export function report_equivocation( - value: Omit, - ): t.pallet_grandpa.pallet.Call.report_equivocation { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.report_equivocation { return { type: "report_equivocation", ...value } } /** @@ -83,8 +83,8 @@ export namespace Call { * reporter. */ export function report_equivocation_unsigned( - value: Omit, - ): t.pallet_grandpa.pallet.Call.report_equivocation_unsigned { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.report_equivocation_unsigned { return { type: "report_equivocation_unsigned", ...value } } /** @@ -102,8 +102,8 @@ export namespace Call { * Only callable by root. */ export function note_stalled( - value: Omit, - ): t.pallet_grandpa.pallet.Call.note_stalled { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.note_stalled { return { type: "note_stalled", ...value } } } @@ -120,14 +120,14 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_grandpa.pallet.Event.NewAuthorities - | t.pallet_grandpa.pallet.Event.Paused - | t.pallet_grandpa.pallet.Event.Resumed + | t.types.pallet_grandpa.pallet.Event.NewAuthorities + | t.types.pallet_grandpa.pallet.Event.Paused + | t.types.pallet_grandpa.pallet.Event.Resumed export namespace Event { /** New authority set has been applied. */ export interface NewAuthorities { type: "NewAuthorities" - authority_set: Array<[t.sp_finality_grandpa.app.Public, t.u64]> + authority_set: Array<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> } /** Current authority set has been paused. */ export interface Paused { @@ -139,16 +139,16 @@ export namespace Event { } /** New authority set has been applied. */ export function NewAuthorities( - value: Omit, - ): t.pallet_grandpa.pallet.Event.NewAuthorities { + value: Omit, + ): t.types.pallet_grandpa.pallet.Event.NewAuthorities { return { type: "NewAuthorities", ...value } } /** Current authority set has been paused. */ - export function Paused(): t.pallet_grandpa.pallet.Event.Paused { + export function Paused(): t.types.pallet_grandpa.pallet.Event.Paused { return { type: "Paused" } } /** Current authority set has been resumed. */ - export function Resumed(): t.pallet_grandpa.pallet.Event.Resumed { + export function Resumed(): t.types.pallet_grandpa.pallet.Event.Resumed { return { type: "Resumed" } } } diff --git a/codegen/_output/polkadot/pallet_identity/mod.ts b/codegen/_output/polkadot/types/pallet_identity/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_identity/mod.ts rename to codegen/_output/polkadot/types/pallet_identity/mod.ts diff --git a/codegen/_output/kusama/pallet_identity/pallet.ts b/codegen/_output/polkadot/types/pallet_identity/pallet.ts similarity index 77% rename from codegen/_output/kusama/pallet_identity/pallet.ts rename to codegen/_output/polkadot/types/pallet_identity/pallet.ts index 98461520b..4dea704fd 100644 --- a/codegen/_output/kusama/pallet_identity/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_identity/pallet.ts @@ -1,30 +1,30 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$263 +export const $call: $.Codec = _codec.$263 -export const $error: $.Codec = _codec.$578 +export const $error: $.Codec = _codec.$578 -export const $event: $.Codec = _codec.$77 +export const $event: $.Codec = _codec.$77 /** Identity pallet declaration. */ export type Call = - | t.pallet_identity.pallet.Call.add_registrar - | t.pallet_identity.pallet.Call.set_identity - | t.pallet_identity.pallet.Call.set_subs - | t.pallet_identity.pallet.Call.clear_identity - | t.pallet_identity.pallet.Call.request_judgement - | t.pallet_identity.pallet.Call.cancel_request - | t.pallet_identity.pallet.Call.set_fee - | t.pallet_identity.pallet.Call.set_account_id - | t.pallet_identity.pallet.Call.set_fields - | t.pallet_identity.pallet.Call.provide_judgement - | t.pallet_identity.pallet.Call.kill_identity - | t.pallet_identity.pallet.Call.add_sub - | t.pallet_identity.pallet.Call.rename_sub - | t.pallet_identity.pallet.Call.remove_sub - | t.pallet_identity.pallet.Call.quit_sub + | t.types.pallet_identity.pallet.Call.add_registrar + | t.types.pallet_identity.pallet.Call.set_identity + | t.types.pallet_identity.pallet.Call.set_subs + | t.types.pallet_identity.pallet.Call.clear_identity + | t.types.pallet_identity.pallet.Call.request_judgement + | t.types.pallet_identity.pallet.Call.cancel_request + | t.types.pallet_identity.pallet.Call.set_fee + | t.types.pallet_identity.pallet.Call.set_account_id + | t.types.pallet_identity.pallet.Call.set_fields + | t.types.pallet_identity.pallet.Call.provide_judgement + | t.types.pallet_identity.pallet.Call.kill_identity + | t.types.pallet_identity.pallet.Call.add_sub + | t.types.pallet_identity.pallet.Call.rename_sub + | t.types.pallet_identity.pallet.Call.remove_sub + | t.types.pallet_identity.pallet.Call.quit_sub export namespace Call { /** * Add a registrar to the system. @@ -43,7 +43,7 @@ export namespace Call { */ export interface add_registrar { type: "add_registrar" - account: t.sp_runtime.multiaddress.MultiAddress + account: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set an account's identity information and reserve the appropriate deposit. @@ -68,7 +68,7 @@ export namespace Call { */ export interface set_identity { type: "set_identity" - info: t.pallet_identity.types.IdentityInfo + info: t.types.pallet_identity.types.IdentityInfo } /** * Set the sub-accounts of the sender. @@ -95,7 +95,7 @@ export namespace Call { */ export interface set_subs { type: "set_subs" - subs: Array<[t.sp_core.crypto.AccountId32, t.pallet_identity.types.Data]> + subs: Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data]> } /** * Clear an account's identity info and all sub-accounts and return all deposits. @@ -147,8 +147,8 @@ export namespace Call { */ export interface request_judgement { type: "request_judgement" - reg_index: t.Compact - max_fee: t.Compact + reg_index: t.Compact + max_fee: t.Compact } /** * Cancel a previous request. @@ -171,7 +171,7 @@ export namespace Call { */ export interface cancel_request { type: "cancel_request" - reg_index: t.u32 + reg_index: t.types.u32 } /** * Set the fee required for a judgement to be requested from a registrar. @@ -190,8 +190,8 @@ export namespace Call { */ export interface set_fee { type: "set_fee" - index: t.Compact - fee: t.Compact + index: t.Compact + fee: t.Compact } /** * Change the account associated with a registrar. @@ -210,8 +210,8 @@ export namespace Call { */ export interface set_account_id { type: "set_account_id" - index: t.Compact - new: t.sp_runtime.multiaddress.MultiAddress + index: t.Compact + new: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set the field information for a registrar. @@ -230,8 +230,8 @@ export namespace Call { */ export interface set_fields { type: "set_fields" - index: t.Compact - fields: t.u64 + index: t.Compact + fields: t.types.u64 } /** * Provide a judgement for an account's identity. @@ -257,10 +257,10 @@ export namespace Call { */ export interface provide_judgement { type: "provide_judgement" - reg_index: t.Compact - target: t.sp_runtime.multiaddress.MultiAddress - judgement: t.pallet_identity.types.Judgement - identity: t.primitive_types.H256 + reg_index: t.Compact + target: t.types.sp_runtime.multiaddress.MultiAddress + judgement: t.types.pallet_identity.types.Judgement + identity: t.types.primitive_types.H256 } /** * Remove an account's identity and sub-account information and slash the deposits. @@ -285,7 +285,7 @@ export namespace Call { */ export interface kill_identity { type: "kill_identity" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Add the given account to the sender's subs. @@ -298,8 +298,8 @@ export namespace Call { */ export interface add_sub { type: "add_sub" - sub: t.sp_runtime.multiaddress.MultiAddress - data: t.pallet_identity.types.Data + sub: t.types.sp_runtime.multiaddress.MultiAddress + data: t.types.pallet_identity.types.Data } /** * Alter the associated name of the given sub-account. @@ -309,8 +309,8 @@ export namespace Call { */ export interface rename_sub { type: "rename_sub" - sub: t.sp_runtime.multiaddress.MultiAddress - data: t.pallet_identity.types.Data + sub: t.types.sp_runtime.multiaddress.MultiAddress + data: t.types.pallet_identity.types.Data } /** * Remove the given account from the sender's subs. @@ -323,7 +323,7 @@ export namespace Call { */ export interface remove_sub { type: "remove_sub" - sub: t.sp_runtime.multiaddress.MultiAddress + sub: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove the sender as a sub-account. @@ -356,8 +356,8 @@ export namespace Call { * # */ export function add_registrar( - value: Omit, - ): t.pallet_identity.pallet.Call.add_registrar { + value: Omit, + ): t.types.pallet_identity.pallet.Call.add_registrar { return { type: "add_registrar", ...value } } /** @@ -382,8 +382,8 @@ export namespace Call { * # */ export function set_identity( - value: Omit, - ): t.pallet_identity.pallet.Call.set_identity { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_identity { return { type: "set_identity", ...value } } /** @@ -410,8 +410,8 @@ export namespace Call { * # */ export function set_subs( - value: Omit, - ): t.pallet_identity.pallet.Call.set_subs { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_subs { return { type: "set_subs", ...value } } /** @@ -434,7 +434,7 @@ export namespace Call { * - One event. * # */ - export function clear_identity(): t.pallet_identity.pallet.Call.clear_identity { + export function clear_identity(): t.types.pallet_identity.pallet.Call.clear_identity { return { type: "clear_identity" } } /** @@ -463,8 +463,8 @@ export namespace Call { * # */ export function request_judgement( - value: Omit, - ): t.pallet_identity.pallet.Call.request_judgement { + value: Omit, + ): t.types.pallet_identity.pallet.Call.request_judgement { return { type: "request_judgement", ...value } } /** @@ -487,8 +487,8 @@ export namespace Call { * # */ export function cancel_request( - value: Omit, - ): t.pallet_identity.pallet.Call.cancel_request { + value: Omit, + ): t.types.pallet_identity.pallet.Call.cancel_request { return { type: "cancel_request", ...value } } /** @@ -507,8 +507,8 @@ export namespace Call { * # */ export function set_fee( - value: Omit, - ): t.pallet_identity.pallet.Call.set_fee { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_fee { return { type: "set_fee", ...value } } /** @@ -527,8 +527,8 @@ export namespace Call { * # */ export function set_account_id( - value: Omit, - ): t.pallet_identity.pallet.Call.set_account_id { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_account_id { return { type: "set_account_id", ...value } } /** @@ -547,8 +547,8 @@ export namespace Call { * # */ export function set_fields( - value: Omit, - ): t.pallet_identity.pallet.Call.set_fields { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_fields { return { type: "set_fields", ...value } } /** @@ -574,8 +574,8 @@ export namespace Call { * # */ export function provide_judgement( - value: Omit, - ): t.pallet_identity.pallet.Call.provide_judgement { + value: Omit, + ): t.types.pallet_identity.pallet.Call.provide_judgement { return { type: "provide_judgement", ...value } } /** @@ -600,8 +600,8 @@ export namespace Call { * # */ export function kill_identity( - value: Omit, - ): t.pallet_identity.pallet.Call.kill_identity { + value: Omit, + ): t.types.pallet_identity.pallet.Call.kill_identity { return { type: "kill_identity", ...value } } /** @@ -614,8 +614,8 @@ export namespace Call { * sub identity of `sub`. */ export function add_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.add_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.add_sub { return { type: "add_sub", ...value } } /** @@ -625,8 +625,8 @@ export namespace Call { * sub identity of `sub`. */ export function rename_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.rename_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.rename_sub { return { type: "rename_sub", ...value } } /** @@ -639,8 +639,8 @@ export namespace Call { * sub identity of `sub`. */ export function remove_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.remove_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.remove_sub { return { type: "remove_sub", ...value } } /** @@ -655,7 +655,7 @@ export namespace Call { * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ - export function quit_sub(): t.pallet_identity.pallet.Call.quit_sub { + export function quit_sub(): t.types.pallet_identity.pallet.Call.quit_sub { return { type: "quit_sub" } } } @@ -682,70 +682,70 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_identity.pallet.Event.IdentitySet - | t.pallet_identity.pallet.Event.IdentityCleared - | t.pallet_identity.pallet.Event.IdentityKilled - | t.pallet_identity.pallet.Event.JudgementRequested - | t.pallet_identity.pallet.Event.JudgementUnrequested - | t.pallet_identity.pallet.Event.JudgementGiven - | t.pallet_identity.pallet.Event.RegistrarAdded - | t.pallet_identity.pallet.Event.SubIdentityAdded - | t.pallet_identity.pallet.Event.SubIdentityRemoved - | t.pallet_identity.pallet.Event.SubIdentityRevoked + | t.types.pallet_identity.pallet.Event.IdentitySet + | t.types.pallet_identity.pallet.Event.IdentityCleared + | t.types.pallet_identity.pallet.Event.IdentityKilled + | t.types.pallet_identity.pallet.Event.JudgementRequested + | t.types.pallet_identity.pallet.Event.JudgementUnrequested + | t.types.pallet_identity.pallet.Event.JudgementGiven + | t.types.pallet_identity.pallet.Event.RegistrarAdded + | t.types.pallet_identity.pallet.Event.SubIdentityAdded + | t.types.pallet_identity.pallet.Event.SubIdentityRemoved + | t.types.pallet_identity.pallet.Event.SubIdentityRevoked export namespace Event { /** A name was set or reset (which will remove all judgements). */ export interface IdentitySet { type: "IdentitySet" - who: t.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 } /** A name was cleared, and the given balance returned. */ export interface IdentityCleared { type: "IdentityCleared" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A name was removed and the given balance slashed. */ export interface IdentityKilled { type: "IdentityKilled" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A judgement was asked from a registrar. */ export interface JudgementRequested { type: "JudgementRequested" - who: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A judgement request was retracted. */ export interface JudgementUnrequested { type: "JudgementUnrequested" - who: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A judgement was given by a registrar. */ export interface JudgementGiven { type: "JudgementGiven" - target: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + target: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A registrar was added. */ export interface RegistrarAdded { type: "RegistrarAdded" - registrar_index: t.u32 + registrar_index: t.types.u32 } /** A sub-identity was added to an identity and the deposit paid. */ export interface SubIdentityAdded { type: "SubIdentityAdded" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A sub-identity was removed from an identity and the deposit freed. */ export interface SubIdentityRemoved { type: "SubIdentityRemoved" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** * A sub-identity was cleared, and the given deposit repatriated from the @@ -753,62 +753,62 @@ export namespace Event { */ export interface SubIdentityRevoked { type: "SubIdentityRevoked" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A name was set or reset (which will remove all judgements). */ export function IdentitySet( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentitySet { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentitySet { return { type: "IdentitySet", ...value } } /** A name was cleared, and the given balance returned. */ export function IdentityCleared( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentityCleared { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentityCleared { return { type: "IdentityCleared", ...value } } /** A name was removed and the given balance slashed. */ export function IdentityKilled( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentityKilled { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentityKilled { return { type: "IdentityKilled", ...value } } /** A judgement was asked from a registrar. */ export function JudgementRequested( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementRequested { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementRequested { return { type: "JudgementRequested", ...value } } /** A judgement request was retracted. */ export function JudgementUnrequested( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementUnrequested { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementUnrequested { return { type: "JudgementUnrequested", ...value } } /** A judgement was given by a registrar. */ export function JudgementGiven( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementGiven { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementGiven { return { type: "JudgementGiven", ...value } } /** A registrar was added. */ export function RegistrarAdded( - value: Omit, - ): t.pallet_identity.pallet.Event.RegistrarAdded { + value: Omit, + ): t.types.pallet_identity.pallet.Event.RegistrarAdded { return { type: "RegistrarAdded", ...value } } /** A sub-identity was added to an identity and the deposit paid. */ export function SubIdentityAdded( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityAdded { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityAdded { return { type: "SubIdentityAdded", ...value } } /** A sub-identity was removed from an identity and the deposit freed. */ export function SubIdentityRemoved( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityRemoved { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityRemoved { return { type: "SubIdentityRemoved", ...value } } /** @@ -816,8 +816,8 @@ export namespace Event { * main identity account to the sub-identity account. */ export function SubIdentityRevoked( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityRevoked { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityRevoked { return { type: "SubIdentityRevoked", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_identity/types.ts b/codegen/_output/polkadot/types/pallet_identity/types.ts new file mode 100644 index 000000000..29c467c24 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_identity/types.ts @@ -0,0 +1,498 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $data: $.Codec = _codec.$267 + +export const $identityField: $.Codec = _codec.$301 + +export const $identityInfo: $.Codec = _codec.$264 + +export const $judgement: $.Codec = _codec.$302 + +export const $registrarInfo: $.Codec = _codec.$576 + +export const $registration: $.Codec = _codec.$568 + +export type Data = + | t.types.pallet_identity.types.Data.None + | t.types.pallet_identity.types.Data.Raw0 + | t.types.pallet_identity.types.Data.Raw1 + | t.types.pallet_identity.types.Data.Raw2 + | t.types.pallet_identity.types.Data.Raw3 + | t.types.pallet_identity.types.Data.Raw4 + | t.types.pallet_identity.types.Data.Raw5 + | t.types.pallet_identity.types.Data.Raw6 + | t.types.pallet_identity.types.Data.Raw7 + | t.types.pallet_identity.types.Data.Raw8 + | t.types.pallet_identity.types.Data.Raw9 + | t.types.pallet_identity.types.Data.Raw10 + | t.types.pallet_identity.types.Data.Raw11 + | t.types.pallet_identity.types.Data.Raw12 + | t.types.pallet_identity.types.Data.Raw13 + | t.types.pallet_identity.types.Data.Raw14 + | t.types.pallet_identity.types.Data.Raw15 + | t.types.pallet_identity.types.Data.Raw16 + | t.types.pallet_identity.types.Data.Raw17 + | t.types.pallet_identity.types.Data.Raw18 + | t.types.pallet_identity.types.Data.Raw19 + | t.types.pallet_identity.types.Data.Raw20 + | t.types.pallet_identity.types.Data.Raw21 + | t.types.pallet_identity.types.Data.Raw22 + | t.types.pallet_identity.types.Data.Raw23 + | t.types.pallet_identity.types.Data.Raw24 + | t.types.pallet_identity.types.Data.Raw25 + | t.types.pallet_identity.types.Data.Raw26 + | t.types.pallet_identity.types.Data.Raw27 + | t.types.pallet_identity.types.Data.Raw28 + | t.types.pallet_identity.types.Data.Raw29 + | t.types.pallet_identity.types.Data.Raw30 + | t.types.pallet_identity.types.Data.Raw31 + | t.types.pallet_identity.types.Data.Raw32 + | t.types.pallet_identity.types.Data.BlakeTwo256 + | t.types.pallet_identity.types.Data.Sha256 + | t.types.pallet_identity.types.Data.Keccak256 + | t.types.pallet_identity.types.Data.ShaThree256 +export namespace Data { + export interface None { + type: "None" + } + export interface Raw0 { + type: "Raw0" + value: Uint8Array + } + export interface Raw1 { + type: "Raw1" + value: Uint8Array + } + export interface Raw2 { + type: "Raw2" + value: Uint8Array + } + export interface Raw3 { + type: "Raw3" + value: Uint8Array + } + export interface Raw4 { + type: "Raw4" + value: Uint8Array + } + export interface Raw5 { + type: "Raw5" + value: Uint8Array + } + export interface Raw6 { + type: "Raw6" + value: Uint8Array + } + export interface Raw7 { + type: "Raw7" + value: Uint8Array + } + export interface Raw8 { + type: "Raw8" + value: Uint8Array + } + export interface Raw9 { + type: "Raw9" + value: Uint8Array + } + export interface Raw10 { + type: "Raw10" + value: Uint8Array + } + export interface Raw11 { + type: "Raw11" + value: Uint8Array + } + export interface Raw12 { + type: "Raw12" + value: Uint8Array + } + export interface Raw13 { + type: "Raw13" + value: Uint8Array + } + export interface Raw14 { + type: "Raw14" + value: Uint8Array + } + export interface Raw15 { + type: "Raw15" + value: Uint8Array + } + export interface Raw16 { + type: "Raw16" + value: Uint8Array + } + export interface Raw17 { + type: "Raw17" + value: Uint8Array + } + export interface Raw18 { + type: "Raw18" + value: Uint8Array + } + export interface Raw19 { + type: "Raw19" + value: Uint8Array + } + export interface Raw20 { + type: "Raw20" + value: Uint8Array + } + export interface Raw21 { + type: "Raw21" + value: Uint8Array + } + export interface Raw22 { + type: "Raw22" + value: Uint8Array + } + export interface Raw23 { + type: "Raw23" + value: Uint8Array + } + export interface Raw24 { + type: "Raw24" + value: Uint8Array + } + export interface Raw25 { + type: "Raw25" + value: Uint8Array + } + export interface Raw26 { + type: "Raw26" + value: Uint8Array + } + export interface Raw27 { + type: "Raw27" + value: Uint8Array + } + export interface Raw28 { + type: "Raw28" + value: Uint8Array + } + export interface Raw29 { + type: "Raw29" + value: Uint8Array + } + export interface Raw30 { + type: "Raw30" + value: Uint8Array + } + export interface Raw31 { + type: "Raw31" + value: Uint8Array + } + export interface Raw32 { + type: "Raw32" + value: Uint8Array + } + export interface BlakeTwo256 { + type: "BlakeTwo256" + value: Uint8Array + } + export interface Sha256 { + type: "Sha256" + value: Uint8Array + } + export interface Keccak256 { + type: "Keccak256" + value: Uint8Array + } + export interface ShaThree256 { + type: "ShaThree256" + value: Uint8Array + } + export function None(): t.types.pallet_identity.types.Data.None { + return { type: "None" } + } + export function Raw0( + value: t.types.pallet_identity.types.Data.Raw0["value"], + ): t.types.pallet_identity.types.Data.Raw0 { + return { type: "Raw0", value } + } + export function Raw1( + value: t.types.pallet_identity.types.Data.Raw1["value"], + ): t.types.pallet_identity.types.Data.Raw1 { + return { type: "Raw1", value } + } + export function Raw2( + value: t.types.pallet_identity.types.Data.Raw2["value"], + ): t.types.pallet_identity.types.Data.Raw2 { + return { type: "Raw2", value } + } + export function Raw3( + value: t.types.pallet_identity.types.Data.Raw3["value"], + ): t.types.pallet_identity.types.Data.Raw3 { + return { type: "Raw3", value } + } + export function Raw4( + value: t.types.pallet_identity.types.Data.Raw4["value"], + ): t.types.pallet_identity.types.Data.Raw4 { + return { type: "Raw4", value } + } + export function Raw5( + value: t.types.pallet_identity.types.Data.Raw5["value"], + ): t.types.pallet_identity.types.Data.Raw5 { + return { type: "Raw5", value } + } + export function Raw6( + value: t.types.pallet_identity.types.Data.Raw6["value"], + ): t.types.pallet_identity.types.Data.Raw6 { + return { type: "Raw6", value } + } + export function Raw7( + value: t.types.pallet_identity.types.Data.Raw7["value"], + ): t.types.pallet_identity.types.Data.Raw7 { + return { type: "Raw7", value } + } + export function Raw8( + value: t.types.pallet_identity.types.Data.Raw8["value"], + ): t.types.pallet_identity.types.Data.Raw8 { + return { type: "Raw8", value } + } + export function Raw9( + value: t.types.pallet_identity.types.Data.Raw9["value"], + ): t.types.pallet_identity.types.Data.Raw9 { + return { type: "Raw9", value } + } + export function Raw10( + value: t.types.pallet_identity.types.Data.Raw10["value"], + ): t.types.pallet_identity.types.Data.Raw10 { + return { type: "Raw10", value } + } + export function Raw11( + value: t.types.pallet_identity.types.Data.Raw11["value"], + ): t.types.pallet_identity.types.Data.Raw11 { + return { type: "Raw11", value } + } + export function Raw12( + value: t.types.pallet_identity.types.Data.Raw12["value"], + ): t.types.pallet_identity.types.Data.Raw12 { + return { type: "Raw12", value } + } + export function Raw13( + value: t.types.pallet_identity.types.Data.Raw13["value"], + ): t.types.pallet_identity.types.Data.Raw13 { + return { type: "Raw13", value } + } + export function Raw14( + value: t.types.pallet_identity.types.Data.Raw14["value"], + ): t.types.pallet_identity.types.Data.Raw14 { + return { type: "Raw14", value } + } + export function Raw15( + value: t.types.pallet_identity.types.Data.Raw15["value"], + ): t.types.pallet_identity.types.Data.Raw15 { + return { type: "Raw15", value } + } + export function Raw16( + value: t.types.pallet_identity.types.Data.Raw16["value"], + ): t.types.pallet_identity.types.Data.Raw16 { + return { type: "Raw16", value } + } + export function Raw17( + value: t.types.pallet_identity.types.Data.Raw17["value"], + ): t.types.pallet_identity.types.Data.Raw17 { + return { type: "Raw17", value } + } + export function Raw18( + value: t.types.pallet_identity.types.Data.Raw18["value"], + ): t.types.pallet_identity.types.Data.Raw18 { + return { type: "Raw18", value } + } + export function Raw19( + value: t.types.pallet_identity.types.Data.Raw19["value"], + ): t.types.pallet_identity.types.Data.Raw19 { + return { type: "Raw19", value } + } + export function Raw20( + value: t.types.pallet_identity.types.Data.Raw20["value"], + ): t.types.pallet_identity.types.Data.Raw20 { + return { type: "Raw20", value } + } + export function Raw21( + value: t.types.pallet_identity.types.Data.Raw21["value"], + ): t.types.pallet_identity.types.Data.Raw21 { + return { type: "Raw21", value } + } + export function Raw22( + value: t.types.pallet_identity.types.Data.Raw22["value"], + ): t.types.pallet_identity.types.Data.Raw22 { + return { type: "Raw22", value } + } + export function Raw23( + value: t.types.pallet_identity.types.Data.Raw23["value"], + ): t.types.pallet_identity.types.Data.Raw23 { + return { type: "Raw23", value } + } + export function Raw24( + value: t.types.pallet_identity.types.Data.Raw24["value"], + ): t.types.pallet_identity.types.Data.Raw24 { + return { type: "Raw24", value } + } + export function Raw25( + value: t.types.pallet_identity.types.Data.Raw25["value"], + ): t.types.pallet_identity.types.Data.Raw25 { + return { type: "Raw25", value } + } + export function Raw26( + value: t.types.pallet_identity.types.Data.Raw26["value"], + ): t.types.pallet_identity.types.Data.Raw26 { + return { type: "Raw26", value } + } + export function Raw27( + value: t.types.pallet_identity.types.Data.Raw27["value"], + ): t.types.pallet_identity.types.Data.Raw27 { + return { type: "Raw27", value } + } + export function Raw28( + value: t.types.pallet_identity.types.Data.Raw28["value"], + ): t.types.pallet_identity.types.Data.Raw28 { + return { type: "Raw28", value } + } + export function Raw29( + value: t.types.pallet_identity.types.Data.Raw29["value"], + ): t.types.pallet_identity.types.Data.Raw29 { + return { type: "Raw29", value } + } + export function Raw30( + value: t.types.pallet_identity.types.Data.Raw30["value"], + ): t.types.pallet_identity.types.Data.Raw30 { + return { type: "Raw30", value } + } + export function Raw31( + value: t.types.pallet_identity.types.Data.Raw31["value"], + ): t.types.pallet_identity.types.Data.Raw31 { + return { type: "Raw31", value } + } + export function Raw32( + value: t.types.pallet_identity.types.Data.Raw32["value"], + ): t.types.pallet_identity.types.Data.Raw32 { + return { type: "Raw32", value } + } + export function BlakeTwo256( + value: t.types.pallet_identity.types.Data.BlakeTwo256["value"], + ): t.types.pallet_identity.types.Data.BlakeTwo256 { + return { type: "BlakeTwo256", value } + } + export function Sha256( + value: t.types.pallet_identity.types.Data.Sha256["value"], + ): t.types.pallet_identity.types.Data.Sha256 { + return { type: "Sha256", value } + } + export function Keccak256( + value: t.types.pallet_identity.types.Data.Keccak256["value"], + ): t.types.pallet_identity.types.Data.Keccak256 { + return { type: "Keccak256", value } + } + export function ShaThree256( + value: t.types.pallet_identity.types.Data.ShaThree256["value"], + ): t.types.pallet_identity.types.Data.ShaThree256 { + return { type: "ShaThree256", value } + } +} + +export type IdentityField = + | "Display" + | "Legal" + | "Web" + | "Riot" + | "Email" + | "PgpFingerprint" + | "Image" + | "Twitter" + +export interface IdentityInfo { + additional: Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> + display: t.types.pallet_identity.types.Data + legal: t.types.pallet_identity.types.Data + web: t.types.pallet_identity.types.Data + riot: t.types.pallet_identity.types.Data + email: t.types.pallet_identity.types.Data + pgp_fingerprint: Uint8Array | undefined + image: t.types.pallet_identity.types.Data + twitter: t.types.pallet_identity.types.Data +} + +export function IdentityInfo(value: t.types.pallet_identity.types.IdentityInfo) { + return value +} + +export type Judgement = + | t.types.pallet_identity.types.Judgement.Unknown + | t.types.pallet_identity.types.Judgement.FeePaid + | t.types.pallet_identity.types.Judgement.Reasonable + | t.types.pallet_identity.types.Judgement.KnownGood + | t.types.pallet_identity.types.Judgement.OutOfDate + | t.types.pallet_identity.types.Judgement.LowQuality + | t.types.pallet_identity.types.Judgement.Erroneous +export namespace Judgement { + export interface Unknown { + type: "Unknown" + } + export interface FeePaid { + type: "FeePaid" + value: t.types.u128 + } + export interface Reasonable { + type: "Reasonable" + } + export interface KnownGood { + type: "KnownGood" + } + export interface OutOfDate { + type: "OutOfDate" + } + export interface LowQuality { + type: "LowQuality" + } + export interface Erroneous { + type: "Erroneous" + } + export function Unknown(): t.types.pallet_identity.types.Judgement.Unknown { + return { type: "Unknown" } + } + export function FeePaid( + value: t.types.pallet_identity.types.Judgement.FeePaid["value"], + ): t.types.pallet_identity.types.Judgement.FeePaid { + return { type: "FeePaid", value } + } + export function Reasonable(): t.types.pallet_identity.types.Judgement.Reasonable { + return { type: "Reasonable" } + } + export function KnownGood(): t.types.pallet_identity.types.Judgement.KnownGood { + return { type: "KnownGood" } + } + export function OutOfDate(): t.types.pallet_identity.types.Judgement.OutOfDate { + return { type: "OutOfDate" } + } + export function LowQuality(): t.types.pallet_identity.types.Judgement.LowQuality { + return { type: "LowQuality" } + } + export function Erroneous(): t.types.pallet_identity.types.Judgement.Erroneous { + return { type: "Erroneous" } + } +} + +export interface RegistrarInfo { + account: t.types.sp_core.crypto.AccountId32 + fee: t.types.u128 + fields: t.types.u64 +} + +export function RegistrarInfo(value: t.types.pallet_identity.types.RegistrarInfo) { + return value +} + +export interface Registration { + judgements: Array<[t.types.u32, t.types.pallet_identity.types.Judgement]> + deposit: t.types.u128 + info: t.types.pallet_identity.types.IdentityInfo +} + +export function Registration(value: t.types.pallet_identity.types.Registration) { + return value +} diff --git a/codegen/_output/polkadot/types/pallet_im_online/mod.ts b/codegen/_output/polkadot/types/pallet_im_online/mod.ts new file mode 100644 index 000000000..55795bb60 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_im_online/mod.ts @@ -0,0 +1,35 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as sr25519 from "./sr25519/mod.ts" + +export const $boundedOpaqueNetworkState: $.Codec< + t.types.pallet_im_online.BoundedOpaqueNetworkState +> = _codec.$523 + +export const $heartbeat: $.Codec = _codec.$228 + +export interface BoundedOpaqueNetworkState { + peer_id: Uint8Array + external_addresses: Array +} + +export function BoundedOpaqueNetworkState( + value: t.types.pallet_im_online.BoundedOpaqueNetworkState, +) { + return value +} + +export interface Heartbeat { + block_number: t.types.u32 + network_state: t.types.sp_core.offchain.OpaqueNetworkState + session_index: t.types.u32 + authority_index: t.types.u32 + validators_len: t.types.u32 +} + +export function Heartbeat(value: t.types.pallet_im_online.Heartbeat) { + return value +} diff --git a/codegen/_output/westend/pallet_im_online/pallet.ts b/codegen/_output/polkadot/types/pallet_im_online/pallet.ts similarity index 62% rename from codegen/_output/westend/pallet_im_online/pallet.ts rename to codegen/_output/polkadot/types/pallet_im_online/pallet.ts index 14625fcff..c0e2242de 100644 --- a/codegen/_output/westend/pallet_im_online/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_im_online/pallet.ts @@ -1,15 +1,15 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$227 +export const $call: $.Codec = _codec.$227 -export const $error: $.Codec = _codec.$527 +export const $error: $.Codec = _codec.$527 -export const $event: $.Codec = _codec.$52 +export const $event: $.Codec = _codec.$52 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_im_online.pallet.Call.heartbeat +export type Call = t.types.pallet_im_online.pallet.Call.heartbeat export namespace Call { /** * # @@ -24,8 +24,8 @@ export namespace Call { */ export interface heartbeat { type: "heartbeat" - heartbeat: t.pallet_im_online.Heartbeat - signature: t.pallet_im_online.sr25519.app_sr25519.Signature + heartbeat: t.types.pallet_im_online.Heartbeat + signature: t.types.pallet_im_online.sr25519.app_sr25519.Signature } /** * # @@ -39,8 +39,8 @@ export namespace Call { * # */ export function heartbeat( - value: Omit, - ): t.pallet_im_online.pallet.Call.heartbeat { + value: Omit, + ): t.types.pallet_im_online.pallet.Call.heartbeat { return { type: "heartbeat", ...value } } } @@ -50,14 +50,14 @@ export type Error = "InvalidKey" | "DuplicatedHeartbeat" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_im_online.pallet.Event.HeartbeatReceived - | t.pallet_im_online.pallet.Event.AllGood - | t.pallet_im_online.pallet.Event.SomeOffline + | t.types.pallet_im_online.pallet.Event.HeartbeatReceived + | t.types.pallet_im_online.pallet.Event.AllGood + | t.types.pallet_im_online.pallet.Event.SomeOffline export namespace Event { /** A new heartbeat was received from `AuthorityId`. */ export interface HeartbeatReceived { type: "HeartbeatReceived" - authority_id: t.pallet_im_online.sr25519.app_sr25519.Public + authority_id: t.types.pallet_im_online.sr25519.app_sr25519.Public } /** At the end of the session, no offence was committed. */ export interface AllGood { @@ -66,22 +66,22 @@ export namespace Event { /** At the end of the session, at least one validator was found to be offline. */ export interface SomeOffline { type: "SomeOffline" - offline: Array<[t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure]> + offline: Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> } /** A new heartbeat was received from `AuthorityId`. */ export function HeartbeatReceived( - value: Omit, - ): t.pallet_im_online.pallet.Event.HeartbeatReceived { + value: Omit, + ): t.types.pallet_im_online.pallet.Event.HeartbeatReceived { return { type: "HeartbeatReceived", ...value } } /** At the end of the session, no offence was committed. */ - export function AllGood(): t.pallet_im_online.pallet.Event.AllGood { + export function AllGood(): t.types.pallet_im_online.pallet.Event.AllGood { return { type: "AllGood" } } /** At the end of the session, at least one validator was found to be offline. */ export function SomeOffline( - value: Omit, - ): t.pallet_im_online.pallet.Event.SomeOffline { + value: Omit, + ): t.types.pallet_im_online.pallet.Event.SomeOffline { return { type: "SomeOffline", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_im_online/sr25519/app_sr25519.ts b/codegen/_output/polkadot/types/pallet_im_online/sr25519/app_sr25519.ts new file mode 100644 index 000000000..4bfb0f9b6 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_im_online/sr25519/app_sr25519.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$53 + +export const $signature: $.Codec = + _codec.$233 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.pallet_im_online.sr25519.app_sr25519.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.pallet_im_online.sr25519.app_sr25519.Signature) { + return value +} diff --git a/codegen/_output/polkadot/pallet_im_online/sr25519/mod.ts b/codegen/_output/polkadot/types/pallet_im_online/sr25519/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_im_online/sr25519/mod.ts rename to codegen/_output/polkadot/types/pallet_im_online/sr25519/mod.ts diff --git a/codegen/_output/polkadot/pallet_indices/mod.ts b/codegen/_output/polkadot/types/pallet_indices/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_indices/mod.ts rename to codegen/_output/polkadot/types/pallet_indices/mod.ts diff --git a/codegen/_output/rococo/pallet_indices/pallet.ts b/codegen/_output/polkadot/types/pallet_indices/pallet.ts similarity index 79% rename from codegen/_output/rococo/pallet_indices/pallet.ts rename to codegen/_output/polkadot/types/pallet_indices/pallet.ts index 3cd9b537a..8957b3ebb 100644 --- a/codegen/_output/rococo/pallet_indices/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_indices/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$196 +export const $call: $.Codec = _codec.$196 -export const $error: $.Codec = _codec.$469 +export const $error: $.Codec = _codec.$469 -export const $event: $.Codec = _codec.$35 +export const $event: $.Codec = _codec.$35 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_indices.pallet.Call.claim - | t.pallet_indices.pallet.Call.transfer - | t.pallet_indices.pallet.Call.free - | t.pallet_indices.pallet.Call.force_transfer - | t.pallet_indices.pallet.Call.freeze + | t.types.pallet_indices.pallet.Call.claim + | t.types.pallet_indices.pallet.Call.transfer + | t.types.pallet_indices.pallet.Call.free + | t.types.pallet_indices.pallet.Call.force_transfer + | t.types.pallet_indices.pallet.Call.freeze export namespace Call { /** * Assign an previously unassigned index. @@ -38,7 +38,7 @@ export namespace Call { */ export interface claim { type: "claim" - index: t.u32 + index: t.types.u32 } /** * Assign an index already owned by the sender to another account. The balance reservation @@ -64,8 +64,8 @@ export namespace Call { */ export interface transfer { type: "transfer" - new: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + new: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 } /** * Free up an index owned by the sender. @@ -89,7 +89,7 @@ export namespace Call { */ export interface free { type: "free" - index: t.u32 + index: t.types.u32 } /** * Force an index to an account. This doesn't require a deposit. If the index is already @@ -116,8 +116,8 @@ export namespace Call { */ export interface force_transfer { type: "force_transfer" - new: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + new: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 freeze: boolean } /** @@ -142,7 +142,7 @@ export namespace Call { */ export interface freeze { type: "freeze" - index: t.u32 + index: t.types.u32 } /** * Assign an previously unassigned index. @@ -165,8 +165,8 @@ export namespace Call { * # */ export function claim( - value: Omit, - ): t.pallet_indices.pallet.Call.claim { + value: Omit, + ): t.types.pallet_indices.pallet.Call.claim { return { type: "claim", ...value } } /** @@ -192,8 +192,8 @@ export namespace Call { * # */ export function transfer( - value: Omit, - ): t.pallet_indices.pallet.Call.transfer { + value: Omit, + ): t.types.pallet_indices.pallet.Call.transfer { return { type: "transfer", ...value } } /** @@ -217,8 +217,8 @@ export namespace Call { * # */ export function free( - value: Omit, - ): t.pallet_indices.pallet.Call.free { + value: Omit, + ): t.types.pallet_indices.pallet.Call.free { return { type: "free", ...value } } /** @@ -245,8 +245,8 @@ export namespace Call { * # */ export function force_transfer( - value: Omit, - ): t.pallet_indices.pallet.Call.force_transfer { + value: Omit, + ): t.types.pallet_indices.pallet.Call.force_transfer { return { type: "force_transfer", ...value } } /** @@ -270,8 +270,8 @@ export namespace Call { * # */ export function freeze( - value: Omit, - ): t.pallet_indices.pallet.Call.freeze { + value: Omit, + ): t.types.pallet_indices.pallet.Call.freeze { return { type: "freeze", ...value } } } @@ -281,43 +281,43 @@ export type Error = "NotAssigned" | "NotOwner" | "InUse" | "NotTransfer" | "Perm /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_indices.pallet.Event.IndexAssigned - | t.pallet_indices.pallet.Event.IndexFreed - | t.pallet_indices.pallet.Event.IndexFrozen + | t.types.pallet_indices.pallet.Event.IndexAssigned + | t.types.pallet_indices.pallet.Event.IndexFreed + | t.types.pallet_indices.pallet.Event.IndexFrozen export namespace Event { /** A account index was assigned. */ export interface IndexAssigned { type: "IndexAssigned" - who: t.sp_core.crypto.AccountId32 - index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + index: t.types.u32 } /** A account index has been freed up (unassigned). */ export interface IndexFreed { type: "IndexFreed" - index: t.u32 + index: t.types.u32 } /** A account index has been frozen to its current account ID. */ export interface IndexFrozen { type: "IndexFrozen" - index: t.u32 - who: t.sp_core.crypto.AccountId32 + index: t.types.u32 + who: t.types.sp_core.crypto.AccountId32 } /** A account index was assigned. */ export function IndexAssigned( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexAssigned { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexAssigned { return { type: "IndexAssigned", ...value } } /** A account index has been freed up (unassigned). */ export function IndexFreed( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexFreed { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexFreed { return { type: "IndexFreed", ...value } } /** A account index has been frozen to its current account ID. */ export function IndexFrozen( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexFrozen { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexFrozen { return { type: "IndexFrozen", ...value } } } diff --git a/codegen/_output/polkadot/pallet_membership/mod.ts b/codegen/_output/polkadot/types/pallet_membership/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_membership/mod.ts rename to codegen/_output/polkadot/types/pallet_membership/mod.ts diff --git a/codegen/_output/kusama/pallet_membership/pallet.ts b/codegen/_output/polkadot/types/pallet_membership/pallet.ts similarity index 63% rename from codegen/_output/kusama/pallet_membership/pallet.ts rename to codegen/_output/polkadot/types/pallet_membership/pallet.ts index 36a442d33..c55baa921 100644 --- a/codegen/_output/kusama/pallet_membership/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_membership/pallet.ts @@ -1,22 +1,22 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$243 +export const $call: $.Codec = _codec.$243 -export const $error: $.Codec = _codec.$555 +export const $error: $.Codec = _codec.$555 -export const $event: $.Codec = _codec.$70 +export const $event: $.Codec = _codec.$70 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_membership.pallet.Call.add_member - | t.pallet_membership.pallet.Call.remove_member - | t.pallet_membership.pallet.Call.swap_member - | t.pallet_membership.pallet.Call.reset_members - | t.pallet_membership.pallet.Call.change_key - | t.pallet_membership.pallet.Call.set_prime - | t.pallet_membership.pallet.Call.clear_prime + | t.types.pallet_membership.pallet.Call.add_member + | t.types.pallet_membership.pallet.Call.remove_member + | t.types.pallet_membership.pallet.Call.swap_member + | t.types.pallet_membership.pallet.Call.reset_members + | t.types.pallet_membership.pallet.Call.change_key + | t.types.pallet_membership.pallet.Call.set_prime + | t.types.pallet_membership.pallet.Call.clear_prime export namespace Call { /** * Add a member `who` to the set. @@ -25,7 +25,7 @@ export namespace Call { */ export interface add_member { type: "add_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove a member `who` from the set. @@ -34,7 +34,7 @@ export namespace Call { */ export interface remove_member { type: "remove_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Swap out one member `remove` for another `add`. @@ -45,8 +45,8 @@ export namespace Call { */ export interface swap_member { type: "swap_member" - remove: t.sp_runtime.multiaddress.MultiAddress - add: t.sp_runtime.multiaddress.MultiAddress + remove: t.types.sp_runtime.multiaddress.MultiAddress + add: t.types.sp_runtime.multiaddress.MultiAddress } /** * Change the membership to a new set, disregarding the existing membership. Be nice and @@ -56,7 +56,7 @@ export namespace Call { */ export interface reset_members { type: "reset_members" - members: Array + members: Array } /** * Swap out the sending member for some other key `new`. @@ -67,7 +67,7 @@ export namespace Call { */ export interface change_key { type: "change_key" - new: t.sp_runtime.multiaddress.MultiAddress + new: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set the prime member. Must be a current member. @@ -76,7 +76,7 @@ export namespace Call { */ export interface set_prime { type: "set_prime" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove the prime member if it exists. @@ -92,8 +92,8 @@ export namespace Call { * May only be called from `T::AddOrigin`. */ export function add_member( - value: Omit, - ): t.pallet_membership.pallet.Call.add_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.add_member { return { type: "add_member", ...value } } /** @@ -102,8 +102,8 @@ export namespace Call { * May only be called from `T::RemoveOrigin`. */ export function remove_member( - value: Omit, - ): t.pallet_membership.pallet.Call.remove_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.remove_member { return { type: "remove_member", ...value } } /** @@ -114,8 +114,8 @@ export namespace Call { * Prime membership is *not* passed from `remove` to `add`, if extant. */ export function swap_member( - value: Omit, - ): t.pallet_membership.pallet.Call.swap_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.swap_member { return { type: "swap_member", ...value } } /** @@ -125,8 +125,8 @@ export namespace Call { * May only be called from `T::ResetOrigin`. */ export function reset_members( - value: Omit, - ): t.pallet_membership.pallet.Call.reset_members { + value: Omit, + ): t.types.pallet_membership.pallet.Call.reset_members { return { type: "reset_members", ...value } } /** @@ -137,8 +137,8 @@ export namespace Call { * Prime membership is passed from the origin account to `new`, if extant. */ export function change_key( - value: Omit, - ): t.pallet_membership.pallet.Call.change_key { + value: Omit, + ): t.types.pallet_membership.pallet.Call.change_key { return { type: "change_key", ...value } } /** @@ -147,8 +147,8 @@ export namespace Call { * May only be called from `T::PrimeOrigin`. */ export function set_prime( - value: Omit, - ): t.pallet_membership.pallet.Call.set_prime { + value: Omit, + ): t.types.pallet_membership.pallet.Call.set_prime { return { type: "set_prime", ...value } } /** @@ -156,7 +156,7 @@ export namespace Call { * * May only be called from `T::PrimeOrigin`. */ - export function clear_prime(): t.pallet_membership.pallet.Call.clear_prime { + export function clear_prime(): t.types.pallet_membership.pallet.Call.clear_prime { return { type: "clear_prime" } } } diff --git a/codegen/_output/polkadot/types/pallet_multisig/mod.ts b/codegen/_output/polkadot/types/pallet_multisig/mod.ts new file mode 100644 index 000000000..98c0d71ef --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_multisig/mod.ts @@ -0,0 +1,29 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $multisig: $.Codec = _codec.$589 + +export const $timepoint: $.Codec = _codec.$82 + +export interface Multisig { + when: t.types.pallet_multisig.Timepoint + deposit: t.types.u128 + depositor: t.types.sp_core.crypto.AccountId32 + approvals: Array +} + +export function Multisig(value: t.types.pallet_multisig.Multisig) { + return value +} + +export interface Timepoint { + height: t.types.u32 + index: t.types.u32 +} + +export function Timepoint(value: t.types.pallet_multisig.Timepoint) { + return value +} diff --git a/codegen/_output/rococo/pallet_multisig/pallet.ts b/codegen/_output/polkadot/types/pallet_multisig/pallet.ts similarity index 81% rename from codegen/_output/rococo/pallet_multisig/pallet.ts rename to codegen/_output/polkadot/types/pallet_multisig/pallet.ts index ec9e5b0e0..708e406ff 100644 --- a/codegen/_output/rococo/pallet_multisig/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_multisig/pallet.ts @@ -1,19 +1,19 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$305 +export const $call: $.Codec = _codec.$305 -export const $error: $.Codec = _codec.$590 +export const $error: $.Codec = _codec.$590 -export const $event: $.Codec = _codec.$81 +export const $event: $.Codec = _codec.$81 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_multisig.pallet.Call.as_multi_threshold_1 - | t.pallet_multisig.pallet.Call.as_multi - | t.pallet_multisig.pallet.Call.approve_as_multi - | t.pallet_multisig.pallet.Call.cancel_as_multi + | t.types.pallet_multisig.pallet.Call.as_multi_threshold_1 + | t.types.pallet_multisig.pallet.Call.as_multi + | t.types.pallet_multisig.pallet.Call.approve_as_multi + | t.types.pallet_multisig.pallet.Call.cancel_as_multi export namespace Call { /** * Immediately dispatch a multi-signature call using a single approval from the caller. @@ -35,8 +35,8 @@ export namespace Call { */ export interface as_multi_threshold_1 { type: "as_multi_threshold_1" - other_signatories: Array - call: t.polkadot_runtime.RuntimeCall + other_signatories: Array + call: t.types.polkadot_runtime.RuntimeCall } /** * Register approval for a dispatch to be made from a deterministic composite account if @@ -87,11 +87,11 @@ export namespace Call { */ export interface as_multi { type: "as_multi" - threshold: t.u16 - other_signatories: Array - maybe_timepoint: t.pallet_multisig.Timepoint | undefined - call: t.polkadot_runtime.RuntimeCall - max_weight: t.sp_weights.weight_v2.Weight + threshold: t.types.u16 + other_signatories: Array + maybe_timepoint: t.types.pallet_multisig.Timepoint | undefined + call: t.types.polkadot_runtime.RuntimeCall + max_weight: t.types.sp_weights.weight_v2.Weight } /** * Register approval for a dispatch to be made from a deterministic composite account if @@ -132,11 +132,11 @@ export namespace Call { */ export interface approve_as_multi { type: "approve_as_multi" - threshold: t.u16 - other_signatories: Array - maybe_timepoint: t.pallet_multisig.Timepoint | undefined + threshold: t.types.u16 + other_signatories: Array + maybe_timepoint: t.types.pallet_multisig.Timepoint | undefined call_hash: Uint8Array - max_weight: t.sp_weights.weight_v2.Weight + max_weight: t.types.sp_weights.weight_v2.Weight } /** * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously @@ -168,9 +168,9 @@ export namespace Call { */ export interface cancel_as_multi { type: "cancel_as_multi" - threshold: t.u16 - other_signatories: Array - timepoint: t.pallet_multisig.Timepoint + threshold: t.types.u16 + other_signatories: Array + timepoint: t.types.pallet_multisig.Timepoint call_hash: Uint8Array } /** @@ -192,8 +192,8 @@ export namespace Call { * # */ export function as_multi_threshold_1( - value: Omit, - ): t.pallet_multisig.pallet.Call.as_multi_threshold_1 { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.as_multi_threshold_1 { return { type: "as_multi_threshold_1", ...value } } /** @@ -244,8 +244,8 @@ export namespace Call { * # */ export function as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.as_multi { return { type: "as_multi", ...value } } /** @@ -286,8 +286,8 @@ export namespace Call { * # */ export function approve_as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.approve_as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.approve_as_multi { return { type: "approve_as_multi", ...value } } /** @@ -319,8 +319,8 @@ export namespace Call { * # */ export function cancel_as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.cancel_as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.cancel_as_multi { return { type: "cancel_as_multi", ...value } } } @@ -344,65 +344,65 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_multisig.pallet.Event.NewMultisig - | t.pallet_multisig.pallet.Event.MultisigApproval - | t.pallet_multisig.pallet.Event.MultisigExecuted - | t.pallet_multisig.pallet.Event.MultisigCancelled + | t.types.pallet_multisig.pallet.Event.NewMultisig + | t.types.pallet_multisig.pallet.Event.MultisigApproval + | t.types.pallet_multisig.pallet.Event.MultisigExecuted + | t.types.pallet_multisig.pallet.Event.MultisigCancelled export namespace Event { /** A new multisig operation has begun. */ export interface NewMultisig { type: "NewMultisig" - approving: t.sp_core.crypto.AccountId32 - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A multisig operation has been approved by someone. */ export interface MultisigApproval { type: "MultisigApproval" - approving: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A multisig operation has been executed. */ export interface MultisigExecuted { type: "MultisigExecuted" - approving: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array - result: null | C.ChainError + result: null | C.ChainError } /** A multisig operation has been cancelled. */ export interface MultisigCancelled { type: "MultisigCancelled" - cancelling: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + cancelling: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A new multisig operation has begun. */ export function NewMultisig( - value: Omit, - ): t.pallet_multisig.pallet.Event.NewMultisig { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.NewMultisig { return { type: "NewMultisig", ...value } } /** A multisig operation has been approved by someone. */ export function MultisigApproval( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigApproval { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigApproval { return { type: "MultisigApproval", ...value } } /** A multisig operation has been executed. */ export function MultisigExecuted( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigExecuted { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigExecuted { return { type: "MultisigExecuted", ...value } } /** A multisig operation has been cancelled. */ export function MultisigCancelled( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigCancelled { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigCancelled { return { type: "MultisigCancelled", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts b/codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts new file mode 100644 index 000000000..ae906cd2b --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts @@ -0,0 +1,35 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export const $accountId32: $.Codec< + t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 +> = _codec.$373 + +export type AccountId32 = + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove +export namespace AccountId32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_core.crypto.AccountId32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts b/codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts rename to codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts diff --git a/codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/mod.ts b/codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/mod.ts new file mode 100644 index 000000000..49285a4a4 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_nomination_pools/ConfigOp/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as $$sp_core from "./$$sp_core/mod.ts" + +export const $$$u128: $.Codec = _codec.$371 + +export const $$$u32: $.Codec = _codec.$372 + +export type $$u128 = + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Set + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Remove +export namespace $$u128 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u128 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$u128.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$u128.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$u128.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$u128.Remove { + return { type: "Remove" } + } +} + +export type $$u32 = + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Set + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Remove +export namespace $$u32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$u32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$u32.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$u32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$u32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/polkadot/types/pallet_nomination_pools/mod.ts b/codegen/_output/polkadot/types/pallet_nomination_pools/mod.ts new file mode 100644 index 000000000..c5c85112b --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_nomination_pools/mod.ts @@ -0,0 +1,107 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as ConfigOp from "./ConfigOp/mod.ts" +export * as pallet from "./pallet.ts" + +export const $bondExtra: $.Codec = _codec.$370 + +export const $bondedPoolInner: $.Codec = + _codec.$622 + +export const $poolMember: $.Codec = _codec.$617 + +export const $poolRoles: $.Codec = _codec.$623 + +export const $poolState: $.Codec = _codec.$91 + +export const $rewardPool: $.Codec = _codec.$624 + +export const $subPools: $.Codec = _codec.$625 + +export const $unbondPool: $.Codec = _codec.$626 + +export type BondExtra = + | t.types.pallet_nomination_pools.BondExtra.FreeBalance + | t.types.pallet_nomination_pools.BondExtra.Rewards +export namespace BondExtra { + export interface FreeBalance { + type: "FreeBalance" + value: t.types.u128 + } + export interface Rewards { + type: "Rewards" + } + export function FreeBalance( + value: t.types.pallet_nomination_pools.BondExtra.FreeBalance["value"], + ): t.types.pallet_nomination_pools.BondExtra.FreeBalance { + return { type: "FreeBalance", value } + } + export function Rewards(): t.types.pallet_nomination_pools.BondExtra.Rewards { + return { type: "Rewards" } + } +} + +export interface BondedPoolInner { + points: t.types.u128 + state: t.types.pallet_nomination_pools.PoolState + member_counter: t.types.u32 + roles: t.types.pallet_nomination_pools.PoolRoles +} + +export function BondedPoolInner(value: t.types.pallet_nomination_pools.BondedPoolInner) { + return value +} + +export interface PoolMember { + pool_id: t.types.u32 + points: t.types.u128 + last_recorded_reward_counter: t.types.sp_arithmetic.fixed_point.FixedU128 + unbonding_eras: Map +} + +export function PoolMember(value: t.types.pallet_nomination_pools.PoolMember) { + return value +} + +export interface PoolRoles { + depositor: t.types.sp_core.crypto.AccountId32 + root: t.types.sp_core.crypto.AccountId32 | undefined + nominator: t.types.sp_core.crypto.AccountId32 | undefined + state_toggler: t.types.sp_core.crypto.AccountId32 | undefined +} + +export function PoolRoles(value: t.types.pallet_nomination_pools.PoolRoles) { + return value +} + +export type PoolState = "Open" | "Blocked" | "Destroying" + +export interface RewardPool { + last_recorded_reward_counter: t.types.sp_arithmetic.fixed_point.FixedU128 + last_recorded_total_payouts: t.types.u128 + total_rewards_claimed: t.types.u128 +} + +export function RewardPool(value: t.types.pallet_nomination_pools.RewardPool) { + return value +} + +export interface SubPools { + no_era: t.types.pallet_nomination_pools.UnbondPool + with_era: Map +} + +export function SubPools(value: t.types.pallet_nomination_pools.SubPools) { + return value +} + +export interface UnbondPool { + points: t.types.u128 + balance: t.types.u128 +} + +export function UnbondPool(value: t.types.pallet_nomination_pools.UnbondPool) { + return value +} diff --git a/codegen/_output/polkadot/pallet_nomination_pools/pallet.ts b/codegen/_output/polkadot/types/pallet_nomination_pools/pallet.ts similarity index 69% rename from codegen/_output/polkadot/pallet_nomination_pools/pallet.ts rename to codegen/_output/polkadot/types/pallet_nomination_pools/pallet.ts index acbefdc55..68dbe5fbf 100644 --- a/codegen/_output/polkadot/pallet_nomination_pools/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_nomination_pools/pallet.ts @@ -1,30 +1,31 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$369 +export const $call: $.Codec = _codec.$369 -export const $defensiveError: $.Codec = _codec.$633 +export const $defensiveError: $.Codec = + _codec.$633 -export const $error: $.Codec = _codec.$632 +export const $error: $.Codec = _codec.$632 -export const $event: $.Codec = _codec.$90 +export const $event: $.Codec = _codec.$90 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_nomination_pools.pallet.Call.join - | t.pallet_nomination_pools.pallet.Call.bond_extra - | t.pallet_nomination_pools.pallet.Call.claim_payout - | t.pallet_nomination_pools.pallet.Call.unbond - | t.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded - | t.pallet_nomination_pools.pallet.Call.withdraw_unbonded - | t.pallet_nomination_pools.pallet.Call.create - | t.pallet_nomination_pools.pallet.Call.nominate - | t.pallet_nomination_pools.pallet.Call.set_state - | t.pallet_nomination_pools.pallet.Call.set_metadata - | t.pallet_nomination_pools.pallet.Call.set_configs - | t.pallet_nomination_pools.pallet.Call.update_roles - | t.pallet_nomination_pools.pallet.Call.chill + | t.types.pallet_nomination_pools.pallet.Call.join + | t.types.pallet_nomination_pools.pallet.Call.bond_extra + | t.types.pallet_nomination_pools.pallet.Call.claim_payout + | t.types.pallet_nomination_pools.pallet.Call.unbond + | t.types.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded + | t.types.pallet_nomination_pools.pallet.Call.withdraw_unbonded + | t.types.pallet_nomination_pools.pallet.Call.create + | t.types.pallet_nomination_pools.pallet.Call.nominate + | t.types.pallet_nomination_pools.pallet.Call.set_state + | t.types.pallet_nomination_pools.pallet.Call.set_metadata + | t.types.pallet_nomination_pools.pallet.Call.set_configs + | t.types.pallet_nomination_pools.pallet.Call.update_roles + | t.types.pallet_nomination_pools.pallet.Call.chill export namespace Call { /** * Stake funds with a pool. The amount to bond is transferred from the member to the @@ -40,8 +41,8 @@ export namespace Call { */ export interface join { type: "join" - amount: t.Compact - pool_id: t.u32 + amount: t.Compact + pool_id: t.types.u32 } /** * Bond `extra` more funds from `origin` into the pool to which they already belong. @@ -53,7 +54,7 @@ export namespace Call { */ export interface bond_extra { type: "bond_extra" - extra: t.pallet_nomination_pools.BondExtra + extra: t.types.pallet_nomination_pools.BondExtra } /** * A bonded member can use this to claim their payout based on the rewards that the pool @@ -98,8 +99,8 @@ export namespace Call { */ export interface unbond { type: "unbond" - member_account: t.sp_runtime.multiaddress.MultiAddress - unbonding_points: t.Compact + member_account: t.types.sp_runtime.multiaddress.MultiAddress + unbonding_points: t.Compact } /** * Call `withdraw_unbonded` for the pools account. This call can be made by any account. @@ -111,8 +112,8 @@ export namespace Call { */ export interface pool_withdraw_unbonded { type: "pool_withdraw_unbonded" - pool_id: t.u32 - num_slashing_spans: t.u32 + pool_id: t.types.u32 + num_slashing_spans: t.types.u32 } /** * Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an @@ -137,8 +138,8 @@ export namespace Call { */ export interface withdraw_unbonded { type: "withdraw_unbonded" - member_account: t.sp_runtime.multiaddress.MultiAddress - num_slashing_spans: t.u32 + member_account: t.types.sp_runtime.multiaddress.MultiAddress + num_slashing_spans: t.types.u32 } /** * Create a new delegation pool. @@ -161,10 +162,10 @@ export namespace Call { */ export interface create { type: "create" - amount: t.Compact - root: t.sp_runtime.multiaddress.MultiAddress - nominator: t.sp_runtime.multiaddress.MultiAddress - state_toggler: t.sp_runtime.multiaddress.MultiAddress + amount: t.Compact + root: t.types.sp_runtime.multiaddress.MultiAddress + nominator: t.types.sp_runtime.multiaddress.MultiAddress + state_toggler: t.types.sp_runtime.multiaddress.MultiAddress } /** * Nominate on behalf of the pool. @@ -177,8 +178,8 @@ export namespace Call { */ export interface nominate { type: "nominate" - pool_id: t.u32 - validators: Array + pool_id: t.types.u32 + validators: Array } /** * Set a new state for the pool. @@ -194,8 +195,8 @@ export namespace Call { */ export interface set_state { type: "set_state" - pool_id: t.u32 - state: t.pallet_nomination_pools.PoolState + pool_id: t.types.u32 + state: t.types.pallet_nomination_pools.PoolState } /** * Set a new metadata for the pool. @@ -205,7 +206,7 @@ export namespace Call { */ export interface set_metadata { type: "set_metadata" - pool_id: t.u32 + pool_id: t.types.u32 metadata: Uint8Array } /** @@ -222,11 +223,11 @@ export namespace Call { */ export interface set_configs { type: "set_configs" - min_join_bond: t.pallet_nomination_pools.ConfigOp.$$u128 - min_create_bond: t.pallet_nomination_pools.ConfigOp.$$u128 - max_pools: t.pallet_nomination_pools.ConfigOp.$$u32 - max_members: t.pallet_nomination_pools.ConfigOp.$$u32 - max_members_per_pool: t.pallet_nomination_pools.ConfigOp.$$u32 + min_join_bond: t.types.pallet_nomination_pools.ConfigOp.$$u128 + min_create_bond: t.types.pallet_nomination_pools.ConfigOp.$$u128 + max_pools: t.types.pallet_nomination_pools.ConfigOp.$$u32 + max_members: t.types.pallet_nomination_pools.ConfigOp.$$u32 + max_members_per_pool: t.types.pallet_nomination_pools.ConfigOp.$$u32 } /** * Update the roles of the pool. @@ -239,10 +240,10 @@ export namespace Call { */ export interface update_roles { type: "update_roles" - pool_id: t.u32 - new_root: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 - new_nominator: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 - new_state_toggler: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + pool_id: t.types.u32 + new_root: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + new_nominator: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + new_state_toggler: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 } /** * Chill on behalf of the pool. @@ -255,7 +256,7 @@ export namespace Call { */ export interface chill { type: "chill" - pool_id: t.u32 + pool_id: t.types.u32 } /** * Stake funds with a pool. The amount to bond is transferred from the member to the @@ -270,8 +271,8 @@ export namespace Call { * * Only a pool with [`PoolState::Open`] can be joined */ export function join( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.join { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.join { return { type: "join", ...value } } /** @@ -283,8 +284,8 @@ export namespace Call { * Bonding extra funds implies an automatic payout of all pending rewards as well. */ export function bond_extra( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.bond_extra { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.bond_extra { return { type: "bond_extra", ...value } } /** @@ -295,7 +296,7 @@ export namespace Call { * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". */ - export function claim_payout(): t.pallet_nomination_pools.pallet.Call.claim_payout { + export function claim_payout(): t.types.pallet_nomination_pools.pallet.Call.claim_payout { return { type: "claim_payout" } } /** @@ -329,8 +330,8 @@ export namespace Call { * `NoMoreChunks` error from the staking system. */ export function unbond( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.unbond { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.unbond { return { type: "unbond", ...value } } /** @@ -342,8 +343,8 @@ export namespace Call { * they attempt to unbond. */ export function pool_withdraw_unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded { return { type: "pool_withdraw_unbonded", ...value } } /** @@ -368,8 +369,8 @@ export namespace Call { * If the target is the depositor, the pool will be destroyed. */ export function withdraw_unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.withdraw_unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.withdraw_unbonded { return { type: "withdraw_unbonded", ...value } } /** @@ -392,8 +393,8 @@ export namespace Call { * needs at have at least `amount + existential_deposit` transferrable. */ export function create( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.create { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.create { return { type: "create", ...value } } /** @@ -406,8 +407,8 @@ export namespace Call { * account. */ export function nominate( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.nominate { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.nominate { return { type: "nominate", ...value } } /** @@ -423,8 +424,8 @@ export namespace Call { * then the state of the pool can be permissionlessly changed to `Destroying`. */ export function set_state( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_state { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_state { return { type: "set_state", ...value } } /** @@ -434,8 +435,8 @@ export namespace Call { * of the pool. */ export function set_metadata( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_metadata { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_metadata { return { type: "set_metadata", ...value } } /** @@ -451,8 +452,8 @@ export namespace Call { * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. */ export function set_configs( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_configs { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_configs { return { type: "set_configs", ...value } } /** @@ -465,8 +466,8 @@ export namespace Call { * most pool members and they should be informed of changes to pool roles. */ export function update_roles( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.update_roles { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.update_roles { return { type: "update_roles", ...value } } /** @@ -479,8 +480,8 @@ export namespace Call { * account. */ export function chill( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.chill { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.chill { return { type: "chill", ...value } } } @@ -494,27 +495,27 @@ export type DefensiveError = /** Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) of this pallet. */ export type Error = - | t.pallet_nomination_pools.pallet.Error.PoolNotFound - | t.pallet_nomination_pools.pallet.Error.PoolMemberNotFound - | t.pallet_nomination_pools.pallet.Error.RewardPoolNotFound - | t.pallet_nomination_pools.pallet.Error.SubPoolsNotFound - | t.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool - | t.pallet_nomination_pools.pallet.Error.FullyUnbonding - | t.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit - | t.pallet_nomination_pools.pallet.Error.CannotWithdrawAny - | t.pallet_nomination_pools.pallet.Error.MinimumBondNotMet - | t.pallet_nomination_pools.pallet.Error.OverflowRisk - | t.pallet_nomination_pools.pallet.Error.NotDestroying - | t.pallet_nomination_pools.pallet.Error.NotNominator - | t.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying - | t.pallet_nomination_pools.pallet.Error.NotOpen - | t.pallet_nomination_pools.pallet.Error.MaxPools - | t.pallet_nomination_pools.pallet.Error.MaxPoolMembers - | t.pallet_nomination_pools.pallet.Error.CanNotChangeState - | t.pallet_nomination_pools.pallet.Error.DoesNotHavePermission - | t.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen - | t.pallet_nomination_pools.pallet.Error.Defensive - | t.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly + | t.types.pallet_nomination_pools.pallet.Error.PoolNotFound + | t.types.pallet_nomination_pools.pallet.Error.PoolMemberNotFound + | t.types.pallet_nomination_pools.pallet.Error.RewardPoolNotFound + | t.types.pallet_nomination_pools.pallet.Error.SubPoolsNotFound + | t.types.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool + | t.types.pallet_nomination_pools.pallet.Error.FullyUnbonding + | t.types.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit + | t.types.pallet_nomination_pools.pallet.Error.CannotWithdrawAny + | t.types.pallet_nomination_pools.pallet.Error.MinimumBondNotMet + | t.types.pallet_nomination_pools.pallet.Error.OverflowRisk + | t.types.pallet_nomination_pools.pallet.Error.NotDestroying + | t.types.pallet_nomination_pools.pallet.Error.NotNominator + | t.types.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying + | t.types.pallet_nomination_pools.pallet.Error.NotOpen + | t.types.pallet_nomination_pools.pallet.Error.MaxPools + | t.types.pallet_nomination_pools.pallet.Error.MaxPoolMembers + | t.types.pallet_nomination_pools.pallet.Error.CanNotChangeState + | t.types.pallet_nomination_pools.pallet.Error.DoesNotHavePermission + | t.types.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen + | t.types.pallet_nomination_pools.pallet.Error.Defensive + | t.types.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly export namespace Error { /** A (bonded) pool id does not exist. */ export interface PoolNotFound { @@ -613,48 +614,48 @@ export namespace Error { */ export interface Defensive { type: "Defensive" - value: t.pallet_nomination_pools.pallet.DefensiveError + value: t.types.pallet_nomination_pools.pallet.DefensiveError } /** Partial unbonding now allowed permissionlessly. */ export interface PartialUnbondNotAllowedPermissionlessly { type: "PartialUnbondNotAllowedPermissionlessly" } /** A (bonded) pool id does not exist. */ - export function PoolNotFound(): t.pallet_nomination_pools.pallet.Error.PoolNotFound { + export function PoolNotFound(): t.types.pallet_nomination_pools.pallet.Error.PoolNotFound { return { type: "PoolNotFound" } } /** An account is not a member. */ - export function PoolMemberNotFound(): t.pallet_nomination_pools.pallet.Error.PoolMemberNotFound { + export function PoolMemberNotFound(): t.types.pallet_nomination_pools.pallet.Error.PoolMemberNotFound { return { type: "PoolMemberNotFound" } } /** A reward pool does not exist. In all cases this is a system logic error. */ - export function RewardPoolNotFound(): t.pallet_nomination_pools.pallet.Error.RewardPoolNotFound { + export function RewardPoolNotFound(): t.types.pallet_nomination_pools.pallet.Error.RewardPoolNotFound { return { type: "RewardPoolNotFound" } } /** A sub pool does not exist. */ - export function SubPoolsNotFound(): t.pallet_nomination_pools.pallet.Error.SubPoolsNotFound { + export function SubPoolsNotFound(): t.types.pallet_nomination_pools.pallet.Error.SubPoolsNotFound { return { type: "SubPoolsNotFound" } } /** * An account is already delegating in another pool. An account may only belong to one * pool at a time. */ - export function AccountBelongsToOtherPool(): t.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool { + export function AccountBelongsToOtherPool(): t.types.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool { return { type: "AccountBelongsToOtherPool" } } /** * The member is fully unbonded (and thus cannot access the bonded and reward pool * anymore to, for example, collect rewards). */ - export function FullyUnbonding(): t.pallet_nomination_pools.pallet.Error.FullyUnbonding { + export function FullyUnbonding(): t.types.pallet_nomination_pools.pallet.Error.FullyUnbonding { return { type: "FullyUnbonding" } } /** The member cannot unbond further chunks due to reaching the limit. */ - export function MaxUnbondingLimit(): t.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit { + export function MaxUnbondingLimit(): t.types.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit { return { type: "MaxUnbondingLimit" } } /** None of the funds can be withdrawn yet because the bonding duration has not passed. */ - export function CannotWithdrawAny(): t.pallet_nomination_pools.pallet.Error.CannotWithdrawAny { + export function CannotWithdrawAny(): t.types.pallet_nomination_pools.pallet.Error.CannotWithdrawAny { return { type: "CannotWithdrawAny" } } /** @@ -664,50 +665,50 @@ export namespace Error { * `Pallet::depositor_min_bond`. The caller does not have nominating * permissions for the pool. Members can never unbond to a value below `MinJoinBond`. */ - export function MinimumBondNotMet(): t.pallet_nomination_pools.pallet.Error.MinimumBondNotMet { + export function MinimumBondNotMet(): t.types.pallet_nomination_pools.pallet.Error.MinimumBondNotMet { return { type: "MinimumBondNotMet" } } /** The transaction could not be executed due to overflow risk for the pool. */ - export function OverflowRisk(): t.pallet_nomination_pools.pallet.Error.OverflowRisk { + export function OverflowRisk(): t.types.pallet_nomination_pools.pallet.Error.OverflowRisk { return { type: "OverflowRisk" } } /** * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for * other members to be permissionlessly unbonded. */ - export function NotDestroying(): t.pallet_nomination_pools.pallet.Error.NotDestroying { + export function NotDestroying(): t.types.pallet_nomination_pools.pallet.Error.NotDestroying { return { type: "NotDestroying" } } /** The caller does not have nominating permissions for the pool. */ - export function NotNominator(): t.pallet_nomination_pools.pallet.Error.NotNominator { + export function NotNominator(): t.types.pallet_nomination_pools.pallet.Error.NotNominator { return { type: "NotNominator" } } /** Either a) the caller cannot make a valid kick or b) the pool is not destroying. */ - export function NotKickerOrDestroying(): t.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying { + export function NotKickerOrDestroying(): t.types.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying { return { type: "NotKickerOrDestroying" } } /** The pool is not open to join */ - export function NotOpen(): t.pallet_nomination_pools.pallet.Error.NotOpen { + export function NotOpen(): t.types.pallet_nomination_pools.pallet.Error.NotOpen { return { type: "NotOpen" } } /** The system is maxed out on pools. */ - export function MaxPools(): t.pallet_nomination_pools.pallet.Error.MaxPools { + export function MaxPools(): t.types.pallet_nomination_pools.pallet.Error.MaxPools { return { type: "MaxPools" } } /** Too many members in the pool or system. */ - export function MaxPoolMembers(): t.pallet_nomination_pools.pallet.Error.MaxPoolMembers { + export function MaxPoolMembers(): t.types.pallet_nomination_pools.pallet.Error.MaxPoolMembers { return { type: "MaxPoolMembers" } } /** The pools state cannot be changed. */ - export function CanNotChangeState(): t.pallet_nomination_pools.pallet.Error.CanNotChangeState { + export function CanNotChangeState(): t.types.pallet_nomination_pools.pallet.Error.CanNotChangeState { return { type: "CanNotChangeState" } } /** The caller does not have adequate permissions. */ - export function DoesNotHavePermission(): t.pallet_nomination_pools.pallet.Error.DoesNotHavePermission { + export function DoesNotHavePermission(): t.types.pallet_nomination_pools.pallet.Error.DoesNotHavePermission { return { type: "DoesNotHavePermission" } } /** Metadata exceeds [`Config::MaxMetadataLen`] */ - export function MetadataExceedsMaxLen(): t.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen { + export function MetadataExceedsMaxLen(): t.types.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen { return { type: "MetadataExceedsMaxLen" } } /** @@ -715,50 +716,50 @@ export namespace Error { * maintainers. */ export function Defensive( - value: t.pallet_nomination_pools.pallet.Error.Defensive["value"], - ): t.pallet_nomination_pools.pallet.Error.Defensive { + value: t.types.pallet_nomination_pools.pallet.Error.Defensive["value"], + ): t.types.pallet_nomination_pools.pallet.Error.Defensive { return { type: "Defensive", value } } /** Partial unbonding now allowed permissionlessly. */ - export function PartialUnbondNotAllowedPermissionlessly(): t.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly { + export function PartialUnbondNotAllowedPermissionlessly(): t.types.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly { return { type: "PartialUnbondNotAllowedPermissionlessly" } } } /** Events of this pallet. */ export type Event = - | t.pallet_nomination_pools.pallet.Event.Created - | t.pallet_nomination_pools.pallet.Event.Bonded - | t.pallet_nomination_pools.pallet.Event.PaidOut - | t.pallet_nomination_pools.pallet.Event.Unbonded - | t.pallet_nomination_pools.pallet.Event.Withdrawn - | t.pallet_nomination_pools.pallet.Event.Destroyed - | t.pallet_nomination_pools.pallet.Event.StateChanged - | t.pallet_nomination_pools.pallet.Event.MemberRemoved - | t.pallet_nomination_pools.pallet.Event.RolesUpdated - | t.pallet_nomination_pools.pallet.Event.PoolSlashed - | t.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed + | t.types.pallet_nomination_pools.pallet.Event.Created + | t.types.pallet_nomination_pools.pallet.Event.Bonded + | t.types.pallet_nomination_pools.pallet.Event.PaidOut + | t.types.pallet_nomination_pools.pallet.Event.Unbonded + | t.types.pallet_nomination_pools.pallet.Event.Withdrawn + | t.types.pallet_nomination_pools.pallet.Event.Destroyed + | t.types.pallet_nomination_pools.pallet.Event.StateChanged + | t.types.pallet_nomination_pools.pallet.Event.MemberRemoved + | t.types.pallet_nomination_pools.pallet.Event.RolesUpdated + | t.types.pallet_nomination_pools.pallet.Event.PoolSlashed + | t.types.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed export namespace Event { /** A pool has been created. */ export interface Created { type: "Created" - depositor: t.sp_core.crypto.AccountId32 - pool_id: t.u32 + depositor: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 } /** A member has became bonded in a pool. */ export interface Bonded { type: "Bonded" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - bonded: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + bonded: t.types.u128 joined: boolean } /** A payout has been made to a member. */ export interface PaidOut { type: "PaidOut" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - payout: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + payout: t.types.u128 } /** * A member has unbonded from their pool. @@ -775,11 +776,11 @@ export namespace Event { */ export interface Unbonded { type: "Unbonded" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - balance: t.u128 - points: t.u128 - era: t.u32 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + balance: t.types.u128 + points: t.types.u128 + era: t.types.u32 } /** * A member has withdrawn from their pool. @@ -791,21 +792,21 @@ export namespace Event { */ export interface Withdrawn { type: "Withdrawn" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - balance: t.u128 - points: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + balance: t.types.u128 + points: t.types.u128 } /** A pool has been destroyed. */ export interface Destroyed { type: "Destroyed" - pool_id: t.u32 + pool_id: t.types.u32 } /** The state of a pool has changed */ export interface StateChanged { type: "StateChanged" - pool_id: t.u32 - new_state: t.pallet_nomination_pools.PoolState + pool_id: t.types.u32 + new_state: t.types.pallet_nomination_pools.PoolState } /** * A member has been removed from a pool. @@ -814,8 +815,8 @@ export namespace Event { */ export interface MemberRemoved { type: "MemberRemoved" - pool_id: t.u32 - member: t.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + member: t.types.sp_core.crypto.AccountId32 } /** * The roles of a pool have been updated to the given new roles. Note that the depositor @@ -823,39 +824,39 @@ export namespace Event { */ export interface RolesUpdated { type: "RolesUpdated" - root: t.sp_core.crypto.AccountId32 | undefined - state_toggler: t.sp_core.crypto.AccountId32 | undefined - nominator: t.sp_core.crypto.AccountId32 | undefined + root: t.types.sp_core.crypto.AccountId32 | undefined + state_toggler: t.types.sp_core.crypto.AccountId32 | undefined + nominator: t.types.sp_core.crypto.AccountId32 | undefined } /** The active balance of pool `pool_id` has been slashed to `balance`. */ export interface PoolSlashed { type: "PoolSlashed" - pool_id: t.u32 - balance: t.u128 + pool_id: t.types.u32 + balance: t.types.u128 } /** The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ export interface UnbondingPoolSlashed { type: "UnbondingPoolSlashed" - pool_id: t.u32 - era: t.u32 - balance: t.u128 + pool_id: t.types.u32 + era: t.types.u32 + balance: t.types.u128 } /** A pool has been created. */ export function Created( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Created { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Created { return { type: "Created", ...value } } /** A member has became bonded in a pool. */ export function Bonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Bonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Bonded { return { type: "Bonded", ...value } } /** A payout has been made to a member. */ export function PaidOut( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.PaidOut { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.PaidOut { return { type: "PaidOut", ...value } } /** @@ -872,8 +873,8 @@ export namespace Event { * requested to be unbonded. */ export function Unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Unbonded { return { type: "Unbonded", ...value } } /** @@ -885,20 +886,20 @@ export namespace Event { * will be 1. */ export function Withdrawn( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Withdrawn { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Withdrawn { return { type: "Withdrawn", ...value } } /** A pool has been destroyed. */ export function Destroyed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Destroyed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Destroyed { return { type: "Destroyed", ...value } } /** The state of a pool has changed */ export function StateChanged( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.StateChanged { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.StateChanged { return { type: "StateChanged", ...value } } /** @@ -907,8 +908,8 @@ export namespace Event { * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). */ export function MemberRemoved( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.MemberRemoved { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.MemberRemoved { return { type: "MemberRemoved", ...value } } /** @@ -916,20 +917,20 @@ export namespace Event { * can never change. */ export function RolesUpdated( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.RolesUpdated { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.RolesUpdated { return { type: "RolesUpdated", ...value } } /** The active balance of pool `pool_id` has been slashed to `balance`. */ export function PoolSlashed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.PoolSlashed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.PoolSlashed { return { type: "PoolSlashed", ...value } } /** The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ export function UnbondingPoolSlashed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed { return { type: "UnbondingPoolSlashed", ...value } } } diff --git a/codegen/_output/polkadot/pallet_offences/mod.ts b/codegen/_output/polkadot/types/pallet_offences/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_offences/mod.ts rename to codegen/_output/polkadot/types/pallet_offences/mod.ts diff --git a/codegen/_output/rococo/pallet_offences/pallet.ts b/codegen/_output/polkadot/types/pallet_offences/pallet.ts similarity index 62% rename from codegen/_output/rococo/pallet_offences/pallet.ts rename to codegen/_output/polkadot/types/pallet_offences/pallet.ts index 6475526f3..649196c9b 100644 --- a/codegen/_output/rococo/pallet_offences/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_offences/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $event: $.Codec = _codec.$44 +export const $event: $.Codec = _codec.$44 /** Events type. */ -export type Event = t.pallet_offences.pallet.Event.Offence +export type Event = t.types.pallet_offences.pallet.Event.Offence export namespace Event { /** * There is an offence reported of the given `kind` happened at the `session_index` and @@ -23,8 +23,8 @@ export namespace Event { * \[kind, timeslot\]. */ export function Offence( - value: Omit, - ): t.pallet_offences.pallet.Event.Offence { + value: Omit, + ): t.types.pallet_offences.pallet.Event.Offence { return { type: "Offence", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_preimage/mod.ts b/codegen/_output/polkadot/types/pallet_preimage/mod.ts new file mode 100644 index 000000000..324126816 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_preimage/mod.ts @@ -0,0 +1,34 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $requestStatus: $.Codec = _codec.$451 + +export type RequestStatus = + | t.types.pallet_preimage.RequestStatus.Unrequested + | t.types.pallet_preimage.RequestStatus.Requested +export namespace RequestStatus { + export interface Unrequested { + type: "Unrequested" + deposit: [t.types.sp_core.crypto.AccountId32, t.types.u128] + len: t.types.u32 + } + export interface Requested { + type: "Requested" + deposit: [t.types.sp_core.crypto.AccountId32, t.types.u128] | undefined + count: t.types.u32 + len: t.types.u32 | undefined + } + export function Unrequested( + value: Omit, + ): t.types.pallet_preimage.RequestStatus.Unrequested { + return { type: "Unrequested", ...value } + } + export function Requested( + value: Omit, + ): t.types.pallet_preimage.RequestStatus.Requested { + return { type: "Requested", ...value } + } +} diff --git a/codegen/_output/polkadot/pallet_preimage/pallet.ts b/codegen/_output/polkadot/types/pallet_preimage/pallet.ts similarity index 66% rename from codegen/_output/polkadot/pallet_preimage/pallet.ts rename to codegen/_output/polkadot/types/pallet_preimage/pallet.ts index fdef5e58f..b642211ec 100644 --- a/codegen/_output/polkadot/pallet_preimage/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_preimage/pallet.ts @@ -1,19 +1,19 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$184 +export const $call: $.Codec = _codec.$184 -export const $error: $.Codec = _codec.$455 +export const $error: $.Codec = _codec.$455 -export const $event: $.Codec = _codec.$34 +export const $event: $.Codec = _codec.$34 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_preimage.pallet.Call.note_preimage - | t.pallet_preimage.pallet.Call.unnote_preimage - | t.pallet_preimage.pallet.Call.request_preimage - | t.pallet_preimage.pallet.Call.unrequest_preimage + | t.types.pallet_preimage.pallet.Call.note_preimage + | t.types.pallet_preimage.pallet.Call.unnote_preimage + | t.types.pallet_preimage.pallet.Call.request_preimage + | t.types.pallet_preimage.pallet.Call.unrequest_preimage export namespace Call { /** * Register a preimage on-chain. @@ -35,7 +35,7 @@ export namespace Call { */ export interface unnote_preimage { type: "unnote_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Request a preimage be uploaded to the chain without paying any fees or deposits. @@ -45,7 +45,7 @@ export namespace Call { */ export interface request_preimage { type: "request_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Clear a previously made request for a preimage. @@ -54,7 +54,7 @@ export namespace Call { */ export interface unrequest_preimage { type: "unrequest_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Register a preimage on-chain. @@ -63,8 +63,8 @@ export namespace Call { * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ export function note_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.note_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.note_preimage { return { type: "note_preimage", ...value } } /** @@ -76,8 +76,8 @@ export namespace Call { * - `len`: The length of the preimage of `hash`. */ export function unnote_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.unnote_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.unnote_preimage { return { type: "unnote_preimage", ...value } } /** @@ -87,8 +87,8 @@ export namespace Call { * a user may have paid, and take the control of the preimage out of their hands. */ export function request_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.request_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.request_preimage { return { type: "request_preimage", ...value } } /** @@ -97,8 +97,8 @@ export namespace Call { * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ export function unrequest_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.unrequest_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.unrequest_preimage { return { type: "unrequest_preimage", ...value } } } @@ -114,41 +114,41 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_preimage.pallet.Event.Noted - | t.pallet_preimage.pallet.Event.Requested - | t.pallet_preimage.pallet.Event.Cleared + | t.types.pallet_preimage.pallet.Event.Noted + | t.types.pallet_preimage.pallet.Event.Requested + | t.types.pallet_preimage.pallet.Event.Cleared export namespace Event { /** A preimage has been noted. */ export interface Noted { type: "Noted" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has been requested. */ export interface Requested { type: "Requested" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has ben cleared. */ export interface Cleared { type: "Cleared" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has been noted. */ export function Noted( - value: Omit, - ): t.pallet_preimage.pallet.Event.Noted { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Noted { return { type: "Noted", ...value } } /** A preimage has been requested. */ export function Requested( - value: Omit, - ): t.pallet_preimage.pallet.Event.Requested { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Requested { return { type: "Requested", ...value } } /** A preimage has ben cleared. */ export function Cleared( - value: Omit, - ): t.pallet_preimage.pallet.Event.Cleared { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Cleared { return { type: "Cleared", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_proxy/mod.ts b/codegen/_output/polkadot/types/pallet_proxy/mod.ts new file mode 100644 index 000000000..db212b5e5 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_proxy/mod.ts @@ -0,0 +1,29 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $announcement: $.Codec = _codec.$585 + +export const $proxyDefinition: $.Codec = _codec.$581 + +export interface Announcement { + real: t.types.sp_core.crypto.AccountId32 + call_hash: t.types.primitive_types.H256 + height: t.types.u32 +} + +export function Announcement(value: t.types.pallet_proxy.Announcement) { + return value +} + +export interface ProxyDefinition { + delegate: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 +} + +export function ProxyDefinition(value: t.types.pallet_proxy.ProxyDefinition) { + return value +} diff --git a/codegen/_output/rococo/pallet_proxy/pallet.ts b/codegen/_output/polkadot/types/pallet_proxy/pallet.ts similarity index 74% rename from codegen/_output/rococo/pallet_proxy/pallet.ts rename to codegen/_output/polkadot/types/pallet_proxy/pallet.ts index e98acf198..8833ea7d3 100644 --- a/codegen/_output/rococo/pallet_proxy/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_proxy/pallet.ts @@ -1,25 +1,25 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$303 +export const $call: $.Codec = _codec.$303 -export const $error: $.Codec = _codec.$587 +export const $error: $.Codec = _codec.$587 -export const $event: $.Codec = _codec.$78 +export const $event: $.Codec = _codec.$78 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_proxy.pallet.Call.proxy - | t.pallet_proxy.pallet.Call.add_proxy - | t.pallet_proxy.pallet.Call.remove_proxy - | t.pallet_proxy.pallet.Call.remove_proxies - | t.pallet_proxy.pallet.Call.create_pure - | t.pallet_proxy.pallet.Call.kill_pure - | t.pallet_proxy.pallet.Call.announce - | t.pallet_proxy.pallet.Call.remove_announcement - | t.pallet_proxy.pallet.Call.reject_announcement - | t.pallet_proxy.pallet.Call.proxy_announced + | t.types.pallet_proxy.pallet.Call.proxy + | t.types.pallet_proxy.pallet.Call.add_proxy + | t.types.pallet_proxy.pallet.Call.remove_proxy + | t.types.pallet_proxy.pallet.Call.remove_proxies + | t.types.pallet_proxy.pallet.Call.create_pure + | t.types.pallet_proxy.pallet.Call.kill_pure + | t.types.pallet_proxy.pallet.Call.announce + | t.types.pallet_proxy.pallet.Call.remove_announcement + | t.types.pallet_proxy.pallet.Call.reject_announcement + | t.types.pallet_proxy.pallet.Call.proxy_announced export namespace Call { /** * Dispatch the given `call` from an account that the sender is authorised for through @@ -36,9 +36,9 @@ export namespace Call { */ export interface proxy { type: "proxy" - real: t.sp_runtime.multiaddress.MultiAddress - force_proxy_type: t.polkadot_runtime.ProxyType | undefined - call: t.polkadot_runtime.RuntimeCall + real: t.types.sp_runtime.multiaddress.MultiAddress + force_proxy_type: t.types.polkadot_runtime.ProxyType | undefined + call: t.types.polkadot_runtime.RuntimeCall } /** * Register a proxy account for the sender that is able to make calls on its behalf. @@ -53,9 +53,9 @@ export namespace Call { */ export interface add_proxy { type: "add_proxy" - delegate: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** * Unregister a proxy account for the sender. @@ -68,9 +68,9 @@ export namespace Call { */ export interface remove_proxy { type: "remove_proxy" - delegate: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** * Unregister all proxy accounts for the sender. @@ -105,9 +105,9 @@ export namespace Call { */ export interface create_pure { type: "create_pure" - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 - index: t.u16 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 + index: t.types.u16 } /** * Removes a previously spawned pure proxy. @@ -129,11 +129,11 @@ export namespace Call { */ export interface kill_pure { type: "kill_pure" - spawner: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - index: t.u16 - height: t.Compact - ext_index: t.Compact + spawner: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + index: t.types.u16 + height: t.Compact + ext_index: t.Compact } /** * Publish the hash of a proxy-call that will be made in the future. @@ -154,8 +154,8 @@ export namespace Call { */ export interface announce { type: "announce" - real: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + real: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Remove a given announcement. @@ -171,8 +171,8 @@ export namespace Call { */ export interface remove_announcement { type: "remove_announcement" - real: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + real: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Remove the given announcement of a delegate. @@ -188,8 +188,8 @@ export namespace Call { */ export interface reject_announcement { type: "reject_announcement" - delegate: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Dispatch the given `call` from an account that the sender is authorized for through @@ -206,10 +206,10 @@ export namespace Call { */ export interface proxy_announced { type: "proxy_announced" - delegate: t.sp_runtime.multiaddress.MultiAddress - real: t.sp_runtime.multiaddress.MultiAddress - force_proxy_type: t.polkadot_runtime.ProxyType | undefined - call: t.polkadot_runtime.RuntimeCall + delegate: t.types.sp_runtime.multiaddress.MultiAddress + real: t.types.sp_runtime.multiaddress.MultiAddress + force_proxy_type: t.types.polkadot_runtime.ProxyType | undefined + call: t.types.polkadot_runtime.RuntimeCall } /** * Dispatch the given `call` from an account that the sender is authorised for through @@ -225,8 +225,8 @@ export namespace Call { * - `call`: The call to be made by the `real` account. */ export function proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.proxy { return { type: "proxy", ...value } } /** @@ -241,8 +241,8 @@ export namespace Call { * zero. */ export function add_proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.add_proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.add_proxy { return { type: "add_proxy", ...value } } /** @@ -255,8 +255,8 @@ export namespace Call { * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ export function remove_proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.remove_proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.remove_proxy { return { type: "remove_proxy", ...value } } /** @@ -267,7 +267,7 @@ export namespace Call { * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ - export function remove_proxies(): t.pallet_proxy.pallet.Call.remove_proxies { + export function remove_proxies(): t.types.pallet_proxy.pallet.Call.remove_proxies { return { type: "remove_proxies" } } /** @@ -291,8 +291,8 @@ export namespace Call { * Fails if there are insufficient funds to pay for deposit. */ export function create_pure( - value: Omit, - ): t.pallet_proxy.pallet.Call.create_pure { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.create_pure { return { type: "create_pure", ...value } } /** @@ -314,8 +314,8 @@ export namespace Call { * account whose `pure` call has corresponding parameters. */ export function kill_pure( - value: Omit, - ): t.pallet_proxy.pallet.Call.kill_pure { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.kill_pure { return { type: "kill_pure", ...value } } /** @@ -336,8 +336,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made by the `real` account. */ export function announce( - value: Omit, - ): t.pallet_proxy.pallet.Call.announce { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.announce { return { type: "announce", ...value } } /** @@ -353,8 +353,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made by the `real` account. */ export function remove_announcement( - value: Omit, - ): t.pallet_proxy.pallet.Call.remove_announcement { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.remove_announcement { return { type: "remove_announcement", ...value } } /** @@ -370,8 +370,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made. */ export function reject_announcement( - value: Omit, - ): t.pallet_proxy.pallet.Call.reject_announcement { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.reject_announcement { return { type: "reject_announcement", ...value } } /** @@ -388,8 +388,8 @@ export namespace Call { * - `call`: The call to be made by the `real` account. */ export function proxy_announced( - value: Omit, - ): t.pallet_proxy.pallet.Call.proxy_announced { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.proxy_announced { return { type: "proxy_announced", ...value } } } @@ -407,16 +407,16 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_proxy.pallet.Event.ProxyExecuted - | t.pallet_proxy.pallet.Event.PureCreated - | t.pallet_proxy.pallet.Event.Announced - | t.pallet_proxy.pallet.Event.ProxyAdded - | t.pallet_proxy.pallet.Event.ProxyRemoved + | t.types.pallet_proxy.pallet.Event.ProxyExecuted + | t.types.pallet_proxy.pallet.Event.PureCreated + | t.types.pallet_proxy.pallet.Event.Announced + | t.types.pallet_proxy.pallet.Event.ProxyAdded + | t.types.pallet_proxy.pallet.Event.ProxyRemoved export namespace Event { /** A proxy was executed correctly, with the given. */ export interface ProxyExecuted { type: "ProxyExecuted" - result: null | C.ChainError + result: null | C.ChainError } /** * A pure account has been created by new proxy with given @@ -424,38 +424,38 @@ export namespace Event { */ export interface PureCreated { type: "PureCreated" - pure: t.sp_core.crypto.AccountId32 - who: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - disambiguation_index: t.u16 + pure: t.types.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + disambiguation_index: t.types.u16 } /** An announcement was placed to make a call in the future. */ export interface Announced { type: "Announced" - real: t.sp_core.crypto.AccountId32 - proxy: t.sp_core.crypto.AccountId32 - call_hash: t.primitive_types.H256 + real: t.types.sp_core.crypto.AccountId32 + proxy: t.types.sp_core.crypto.AccountId32 + call_hash: t.types.primitive_types.H256 } /** A proxy was added. */ export interface ProxyAdded { type: "ProxyAdded" - delegator: t.sp_core.crypto.AccountId32 - delegatee: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegator: t.types.sp_core.crypto.AccountId32 + delegatee: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** A proxy was removed. */ export interface ProxyRemoved { type: "ProxyRemoved" - delegator: t.sp_core.crypto.AccountId32 - delegatee: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegator: t.types.sp_core.crypto.AccountId32 + delegatee: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** A proxy was executed correctly, with the given. */ export function ProxyExecuted( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyExecuted { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyExecuted { return { type: "ProxyExecuted", ...value } } /** @@ -463,26 +463,26 @@ export namespace Event { * disambiguation index and proxy type. */ export function PureCreated( - value: Omit, - ): t.pallet_proxy.pallet.Event.PureCreated { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.PureCreated { return { type: "PureCreated", ...value } } /** An announcement was placed to make a call in the future. */ export function Announced( - value: Omit, - ): t.pallet_proxy.pallet.Event.Announced { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.Announced { return { type: "Announced", ...value } } /** A proxy was added. */ export function ProxyAdded( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyAdded { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyAdded { return { type: "ProxyAdded", ...value } } /** A proxy was removed. */ export function ProxyRemoved( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyRemoved { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyRemoved { return { type: "ProxyRemoved", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_scheduler/mod.ts b/codegen/_output/polkadot/types/pallet_scheduler/mod.ts new file mode 100644 index 000000000..6aa7c8d49 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_scheduler/mod.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $scheduled: $.Codec = _codec.$179 + +export interface Scheduled { + maybe_id: Uint8Array | undefined + priority: t.types.u8 + call: t.types.frame_support.traits.preimages.Bounded + maybe_periodic: [t.types.u32, t.types.u32] | undefined + origin: t.types.polkadot_runtime.OriginCaller +} + +export function Scheduled(value: t.types.pallet_scheduler.Scheduled) { + return value +} diff --git a/codegen/_output/rococo/pallet_scheduler/pallet.ts b/codegen/_output/polkadot/types/pallet_scheduler/pallet.ts similarity index 52% rename from codegen/_output/rococo/pallet_scheduler/pallet.ts rename to codegen/_output/polkadot/types/pallet_scheduler/pallet.ts index f960ab872..407f45522 100644 --- a/codegen/_output/rococo/pallet_scheduler/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_scheduler/pallet.ts @@ -1,44 +1,44 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$182 +export const $call: $.Codec = _codec.$182 -export const $error: $.Codec = _codec.$450 +export const $error: $.Codec = _codec.$450 -export const $event: $.Codec = _codec.$29 +export const $event: $.Codec = _codec.$29 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_scheduler.pallet.Call.schedule - | t.pallet_scheduler.pallet.Call.cancel - | t.pallet_scheduler.pallet.Call.schedule_named - | t.pallet_scheduler.pallet.Call.cancel_named - | t.pallet_scheduler.pallet.Call.schedule_after - | t.pallet_scheduler.pallet.Call.schedule_named_after + | t.types.pallet_scheduler.pallet.Call.schedule + | t.types.pallet_scheduler.pallet.Call.cancel + | t.types.pallet_scheduler.pallet.Call.schedule_named + | t.types.pallet_scheduler.pallet.Call.cancel_named + | t.types.pallet_scheduler.pallet.Call.schedule_after + | t.types.pallet_scheduler.pallet.Call.schedule_named_after export namespace Call { /** Anonymously schedule a task. */ export interface schedule { type: "schedule" - when: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + when: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Cancel an anonymously scheduled task. */ export interface cancel { type: "cancel" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Schedule a named task. */ export interface schedule_named { type: "schedule_named" id: Uint8Array - when: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + when: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Cancel a named scheduled task. */ export interface cancel_named { @@ -54,10 +54,10 @@ export namespace Call { */ export interface schedule_after { type: "schedule_after" - after: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + after: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** * Schedule a named task after a delay. @@ -69,33 +69,33 @@ export namespace Call { export interface schedule_named_after { type: "schedule_named_after" id: Uint8Array - after: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + after: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Anonymously schedule a task. */ export function schedule( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule { return { type: "schedule", ...value } } /** Cancel an anonymously scheduled task. */ export function cancel( - value: Omit, - ): t.pallet_scheduler.pallet.Call.cancel { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.cancel { return { type: "cancel", ...value } } /** Schedule a named task. */ export function schedule_named( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_named { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_named { return { type: "schedule_named", ...value } } /** Cancel a named scheduled task. */ export function cancel_named( - value: Omit, - ): t.pallet_scheduler.pallet.Call.cancel_named { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.cancel_named { return { type: "cancel_named", ...value } } /** @@ -106,8 +106,8 @@ export namespace Call { * # */ export function schedule_after( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_after { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_after { return { type: "schedule_after", ...value } } /** @@ -118,8 +118,8 @@ export namespace Call { * # */ export function schedule_named_after( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_named_after { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_named_after { return { type: "schedule_named_after", ...value } } } @@ -134,84 +134,84 @@ export type Error = /** Events type. */ export type Event = - | t.pallet_scheduler.pallet.Event.Scheduled - | t.pallet_scheduler.pallet.Event.Canceled - | t.pallet_scheduler.pallet.Event.Dispatched - | t.pallet_scheduler.pallet.Event.CallUnavailable - | t.pallet_scheduler.pallet.Event.PeriodicFailed - | t.pallet_scheduler.pallet.Event.PermanentlyOverweight + | t.types.pallet_scheduler.pallet.Event.Scheduled + | t.types.pallet_scheduler.pallet.Event.Canceled + | t.types.pallet_scheduler.pallet.Event.Dispatched + | t.types.pallet_scheduler.pallet.Event.CallUnavailable + | t.types.pallet_scheduler.pallet.Event.PeriodicFailed + | t.types.pallet_scheduler.pallet.Event.PermanentlyOverweight export namespace Event { /** Scheduled some task. */ export interface Scheduled { type: "Scheduled" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Canceled some task. */ export interface Canceled { type: "Canceled" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Dispatched some task. */ export interface Dispatched { type: "Dispatched" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined - result: null | C.ChainError + result: null | C.ChainError } /** The call for the provided hash was not found so the task has been aborted. */ export interface CallUnavailable { type: "CallUnavailable" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** The given task was unable to be renewed since the agenda is full at that block. */ export interface PeriodicFailed { type: "PeriodicFailed" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** The given task can never be executed since it is overweight. */ export interface PermanentlyOverweight { type: "PermanentlyOverweight" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** Scheduled some task. */ export function Scheduled( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Scheduled { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Scheduled { return { type: "Scheduled", ...value } } /** Canceled some task. */ export function Canceled( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Canceled { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Canceled { return { type: "Canceled", ...value } } /** Dispatched some task. */ export function Dispatched( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Dispatched { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Dispatched { return { type: "Dispatched", ...value } } /** The call for the provided hash was not found so the task has been aborted. */ export function CallUnavailable( - value: Omit, - ): t.pallet_scheduler.pallet.Event.CallUnavailable { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.CallUnavailable { return { type: "CallUnavailable", ...value } } /** The given task was unable to be renewed since the agenda is full at that block. */ export function PeriodicFailed( - value: Omit, - ): t.pallet_scheduler.pallet.Event.PeriodicFailed { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.PeriodicFailed { return { type: "PeriodicFailed", ...value } } /** The given task can never be executed since it is overweight. */ export function PermanentlyOverweight( - value: Omit, - ): t.pallet_scheduler.pallet.Event.PermanentlyOverweight { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.PermanentlyOverweight { return { type: "PermanentlyOverweight", ...value } } } diff --git a/codegen/_output/polkadot/pallet_session/mod.ts b/codegen/_output/polkadot/types/pallet_session/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_session/mod.ts rename to codegen/_output/polkadot/types/pallet_session/mod.ts diff --git a/codegen/_output/polkadot/pallet_session/pallet.ts b/codegen/_output/polkadot/types/pallet_session/pallet.ts similarity index 80% rename from codegen/_output/polkadot/pallet_session/pallet.ts rename to codegen/_output/polkadot/types/pallet_session/pallet.ts index ef7524106..f8f962a9f 100644 --- a/codegen/_output/polkadot/pallet_session/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_session/pallet.ts @@ -1,15 +1,17 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$211 +export const $call: $.Codec = _codec.$211 -export const $error: $.Codec = _codec.$515 +export const $error: $.Codec = _codec.$515 -export const $event: $.Codec = _codec.$46 +export const $event: $.Codec = _codec.$46 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_session.pallet.Call.set_keys | t.pallet_session.pallet.Call.purge_keys +export type Call = + | t.types.pallet_session.pallet.Call.set_keys + | t.types.pallet_session.pallet.Call.purge_keys export namespace Call { /** * Sets the session key(s) of the function caller to `keys`. @@ -29,7 +31,7 @@ export namespace Call { */ export interface set_keys { type: "set_keys" - keys: t.polkadot_runtime.SessionKeys + keys: t.types.polkadot_runtime.SessionKeys proof: Uint8Array } /** @@ -70,8 +72,8 @@ export namespace Call { * # */ export function set_keys( - value: Omit, - ): t.pallet_session.pallet.Call.set_keys { + value: Omit, + ): t.types.pallet_session.pallet.Call.set_keys { return { type: "set_keys", ...value } } /** @@ -92,7 +94,7 @@ export namespace Call { * - DbWrites per key id: `KeyOwner` * # */ - export function purge_keys(): t.pallet_session.pallet.Call.purge_keys { + export function purge_keys(): t.types.pallet_session.pallet.Call.purge_keys { return { type: "purge_keys" } } } @@ -106,7 +108,7 @@ export type Error = | "NoAccount" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.pallet_session.pallet.Event.NewSession +export type Event = t.types.pallet_session.pallet.Event.NewSession export namespace Event { /** * New session has happened. Note that the argument is the session index, not the @@ -114,15 +116,15 @@ export namespace Event { */ export interface NewSession { type: "NewSession" - session_index: t.u32 + session_index: t.types.u32 } /** * New session has happened. Note that the argument is the session index, not the * block number as the type might suggest. */ export function NewSession( - value: Omit, - ): t.pallet_session.pallet.Event.NewSession { + value: Omit, + ): t.types.pallet_session.pallet.Event.NewSession { return { type: "NewSession", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_staking/mod.ts b/codegen/_output/polkadot/types/pallet_staking/mod.ts new file mode 100644 index 000000000..8f1e68cf8 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_staking/mod.ts @@ -0,0 +1,177 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet/mod.ts" +export * as slashing from "./slashing.ts" + +export const $activeEraInfo: $.Codec = _codec.$492 + +export const $eraRewardPoints: $.Codec = _codec.$495 + +export const $exposure: $.Codec = _codec.$57 + +export const $forcing: $.Codec = _codec.$499 + +export const $individualExposure: $.Codec = _codec.$60 + +export const $nominations: $.Codec = _codec.$490 + +export const $releases: $.Codec = _codec.$507 + +export const $rewardDestination: $.Codec = _codec.$203 + +export const $stakingLedger: $.Codec = _codec.$485 + +export const $unappliedSlash: $.Codec = _codec.$501 + +export const $unlockChunk: $.Codec = _codec.$487 + +export const $validatorPrefs: $.Codec = _codec.$40 + +export interface ActiveEraInfo { + index: t.types.u32 + start: t.types.u64 | undefined +} + +export function ActiveEraInfo(value: t.types.pallet_staking.ActiveEraInfo) { + return value +} + +export interface EraRewardPoints { + total: t.types.u32 + individual: Map +} + +export function EraRewardPoints(value: t.types.pallet_staking.EraRewardPoints) { + return value +} + +export interface Exposure { + total: t.Compact + own: t.Compact + others: Array +} + +export function Exposure(value: t.types.pallet_staking.Exposure) { + return value +} + +export type Forcing = "NotForcing" | "ForceNew" | "ForceNone" | "ForceAlways" + +export interface IndividualExposure { + who: t.types.sp_core.crypto.AccountId32 + value: t.Compact +} + +export function IndividualExposure(value: t.types.pallet_staking.IndividualExposure) { + return value +} + +export interface Nominations { + targets: Array + submitted_in: t.types.u32 + suppressed: boolean +} + +export function Nominations(value: t.types.pallet_staking.Nominations) { + return value +} + +export type Releases = + | "V1_0_0Ancient" + | "V2_0_0" + | "V3_0_0" + | "V4_0_0" + | "V5_0_0" + | "V6_0_0" + | "V7_0_0" + | "V8_0_0" + | "V9_0_0" + | "V10_0_0" + | "V11_0_0" + | "V12_0_0" + +export type RewardDestination = + | t.types.pallet_staking.RewardDestination.Staked + | t.types.pallet_staking.RewardDestination.Stash + | t.types.pallet_staking.RewardDestination.Controller + | t.types.pallet_staking.RewardDestination.Account + | t.types.pallet_staking.RewardDestination.None +export namespace RewardDestination { + export interface Staked { + type: "Staked" + } + export interface Stash { + type: "Stash" + } + export interface Controller { + type: "Controller" + } + export interface Account { + type: "Account" + value: t.types.sp_core.crypto.AccountId32 + } + export interface None { + type: "None" + } + export function Staked(): t.types.pallet_staking.RewardDestination.Staked { + return { type: "Staked" } + } + export function Stash(): t.types.pallet_staking.RewardDestination.Stash { + return { type: "Stash" } + } + export function Controller(): t.types.pallet_staking.RewardDestination.Controller { + return { type: "Controller" } + } + export function Account( + value: t.types.pallet_staking.RewardDestination.Account["value"], + ): t.types.pallet_staking.RewardDestination.Account { + return { type: "Account", value } + } + export function None(): t.types.pallet_staking.RewardDestination.None { + return { type: "None" } + } +} + +export interface StakingLedger { + stash: t.types.sp_core.crypto.AccountId32 + total: t.Compact + active: t.Compact + unlocking: Array + claimed_rewards: Array +} + +export function StakingLedger(value: t.types.pallet_staking.StakingLedger) { + return value +} + +export interface UnappliedSlash { + validator: t.types.sp_core.crypto.AccountId32 + own: t.types.u128 + others: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> + reporters: Array + payout: t.types.u128 +} + +export function UnappliedSlash(value: t.types.pallet_staking.UnappliedSlash) { + return value +} + +export interface UnlockChunk { + value: t.Compact + era: t.Compact +} + +export function UnlockChunk(value: t.types.pallet_staking.UnlockChunk) { + return value +} + +export interface ValidatorPrefs { + commission: t.Compact + blocked: boolean +} + +export function ValidatorPrefs(value: t.types.pallet_staking.ValidatorPrefs) { + return value +} diff --git a/codegen/_output/polkadot/pallet_staking/pallet/mod.ts b/codegen/_output/polkadot/types/pallet_staking/pallet/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_staking/pallet/mod.ts rename to codegen/_output/polkadot/types/pallet_staking/pallet/mod.ts diff --git a/codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts b/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts rename to codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts diff --git a/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts b/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts new file mode 100644 index 000000000..724ded6e5 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts @@ -0,0 +1,69 @@ +import { $ } from "../../../../../../capi.ts" +import * as _codec from "../../../../../../codecs.ts" +import type * as t from "../../../../../../mod.ts" + +export const $perbill: $.Codec< + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill +> = _codec.$210 + +export const $percent: $.Codec< + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent +> = _codec.$209 + +export type Perbill = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove +export namespace Perbill { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_arithmetic.per_things.Perbill + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop { + return { type: "Noop" } + } + export function Set( + value: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove { + return { type: "Remove" } + } +} + +export type Percent = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove +export namespace Percent { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_arithmetic.per_things.Percent + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop { + return { type: "Noop" } + } + export function Set( + value: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts b/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts new file mode 100644 index 000000000..bfc666f9b --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export * as $$sp_arithmetic from "./$$sp_arithmetic/mod.ts" + +export const $$$u128: $.Codec = _codec.$207 + +export const $$$u32: $.Codec = _codec.$208 + +export type $$u128 = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove +export namespace $$u128 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u128 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove { + return { type: "Remove" } + } +} + +export type $$u32 = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove +export namespace $$u32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/rococo/pallet_staking/pallet/pallet/mod.ts b/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/mod.ts similarity index 76% rename from codegen/_output/rococo/pallet_staking/pallet/pallet/mod.ts rename to codegen/_output/polkadot/types/pallet_staking/pallet/pallet/mod.ts index 0e0dd4bc3..14378b453 100644 --- a/codegen/_output/rococo/pallet_staking/pallet/pallet/mod.ts +++ b/codegen/_output/polkadot/types/pallet_staking/pallet/pallet/mod.ts @@ -1,42 +1,42 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" export * as ConfigOp from "./ConfigOp/mod.ts" -export const $call: $.Codec = _codec.$202 +export const $call: $.Codec = _codec.$202 -export const $error: $.Codec = _codec.$508 +export const $error: $.Codec = _codec.$508 -export const $event: $.Codec = _codec.$39 +export const $event: $.Codec = _codec.$39 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_staking.pallet.pallet.Call.bond - | t.pallet_staking.pallet.pallet.Call.bond_extra - | t.pallet_staking.pallet.pallet.Call.unbond - | t.pallet_staking.pallet.pallet.Call.withdraw_unbonded - | t.pallet_staking.pallet.pallet.Call.validate - | t.pallet_staking.pallet.pallet.Call.nominate - | t.pallet_staking.pallet.pallet.Call.chill - | t.pallet_staking.pallet.pallet.Call.set_payee - | t.pallet_staking.pallet.pallet.Call.set_controller - | t.pallet_staking.pallet.pallet.Call.set_validator_count - | t.pallet_staking.pallet.pallet.Call.increase_validator_count - | t.pallet_staking.pallet.pallet.Call.scale_validator_count - | t.pallet_staking.pallet.pallet.Call.force_no_eras - | t.pallet_staking.pallet.pallet.Call.force_new_era - | t.pallet_staking.pallet.pallet.Call.set_invulnerables - | t.pallet_staking.pallet.pallet.Call.force_unstake - | t.pallet_staking.pallet.pallet.Call.force_new_era_always - | t.pallet_staking.pallet.pallet.Call.cancel_deferred_slash - | t.pallet_staking.pallet.pallet.Call.payout_stakers - | t.pallet_staking.pallet.pallet.Call.rebond - | t.pallet_staking.pallet.pallet.Call.reap_stash - | t.pallet_staking.pallet.pallet.Call.kick - | t.pallet_staking.pallet.pallet.Call.set_staking_configs - | t.pallet_staking.pallet.pallet.Call.chill_other - | t.pallet_staking.pallet.pallet.Call.force_apply_min_commission + | t.types.pallet_staking.pallet.pallet.Call.bond + | t.types.pallet_staking.pallet.pallet.Call.bond_extra + | t.types.pallet_staking.pallet.pallet.Call.unbond + | t.types.pallet_staking.pallet.pallet.Call.withdraw_unbonded + | t.types.pallet_staking.pallet.pallet.Call.validate + | t.types.pallet_staking.pallet.pallet.Call.nominate + | t.types.pallet_staking.pallet.pallet.Call.chill + | t.types.pallet_staking.pallet.pallet.Call.set_payee + | t.types.pallet_staking.pallet.pallet.Call.set_controller + | t.types.pallet_staking.pallet.pallet.Call.set_validator_count + | t.types.pallet_staking.pallet.pallet.Call.increase_validator_count + | t.types.pallet_staking.pallet.pallet.Call.scale_validator_count + | t.types.pallet_staking.pallet.pallet.Call.force_no_eras + | t.types.pallet_staking.pallet.pallet.Call.force_new_era + | t.types.pallet_staking.pallet.pallet.Call.set_invulnerables + | t.types.pallet_staking.pallet.pallet.Call.force_unstake + | t.types.pallet_staking.pallet.pallet.Call.force_new_era_always + | t.types.pallet_staking.pallet.pallet.Call.cancel_deferred_slash + | t.types.pallet_staking.pallet.pallet.Call.payout_stakers + | t.types.pallet_staking.pallet.pallet.Call.rebond + | t.types.pallet_staking.pallet.pallet.Call.reap_stash + | t.types.pallet_staking.pallet.pallet.Call.kick + | t.types.pallet_staking.pallet.pallet.Call.set_staking_configs + | t.types.pallet_staking.pallet.pallet.Call.chill_other + | t.types.pallet_staking.pallet.pallet.Call.force_apply_min_commission export namespace Call { /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will @@ -59,9 +59,9 @@ export namespace Call { */ export interface bond { type: "bond" - controller: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact - payee: t.pallet_staking.RewardDestination + controller: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact + payee: t.types.pallet_staking.RewardDestination } /** * Add some extra amount that have appeared in the stash `free_balance` into the balance up @@ -82,7 +82,7 @@ export namespace Call { */ export interface bond_extra { type: "bond_extra" - max_additional: t.Compact + max_additional: t.Compact } /** * Schedule a portion of the stash to be unlocked ready for transfer out after the bond @@ -107,7 +107,7 @@ export namespace Call { */ export interface unbond { type: "unbond" - value: t.Compact + value: t.Compact } /** * Remove any unlocked chunks from the `unlocking` queue from our management. @@ -128,7 +128,7 @@ export namespace Call { */ export interface withdraw_unbonded { type: "withdraw_unbonded" - num_slashing_spans: t.u32 + num_slashing_spans: t.types.u32 } /** * Declare the desire to validate for the origin controller. @@ -139,7 +139,7 @@ export namespace Call { */ export interface validate { type: "validate" - prefs: t.pallet_staking.ValidatorPrefs + prefs: t.types.pallet_staking.ValidatorPrefs } /** * Declare the desire to nominate `targets` for the origin controller. @@ -156,7 +156,7 @@ export namespace Call { */ export interface nominate { type: "nominate" - targets: Array + targets: Array } /** * Declare no desire to either validate or nominate. @@ -194,7 +194,7 @@ export namespace Call { */ export interface set_payee { type: "set_payee" - payee: t.pallet_staking.RewardDestination + payee: t.types.pallet_staking.RewardDestination } /** * (Re-)set the controller of a stash. @@ -216,7 +216,7 @@ export namespace Call { */ export interface set_controller { type: "set_controller" - controller: t.sp_runtime.multiaddress.MultiAddress + controller: t.types.sp_runtime.multiaddress.MultiAddress } /** * Sets the ideal number of validators. @@ -230,7 +230,7 @@ export namespace Call { */ export interface set_validator_count { type: "set_validator_count" - new: t.Compact + new: t.Compact } /** * Increments the ideal number of validators. @@ -243,7 +243,7 @@ export namespace Call { */ export interface increase_validator_count { type: "increase_validator_count" - additional: t.Compact + additional: t.Compact } /** * Scale up the ideal number of validators by a factor. @@ -256,7 +256,7 @@ export namespace Call { */ export interface scale_validator_count { type: "scale_validator_count" - factor: t.sp_arithmetic.per_things.Percent + factor: t.types.sp_arithmetic.per_things.Percent } /** * Force there to be no new eras indefinitely. @@ -306,7 +306,7 @@ export namespace Call { */ export interface set_invulnerables { type: "set_invulnerables" - invulnerables: Array + invulnerables: Array } /** * Force a current staker to become completely unstaked, immediately. @@ -315,8 +315,8 @@ export namespace Call { */ export interface force_unstake { type: "force_unstake" - stash: t.sp_core.crypto.AccountId32 - num_slashing_spans: t.u32 + stash: t.types.sp_core.crypto.AccountId32 + num_slashing_spans: t.types.u32 } /** * Force there to be a new era at the end of sessions indefinitely. @@ -341,8 +341,8 @@ export namespace Call { */ export interface cancel_deferred_slash { type: "cancel_deferred_slash" - era: t.u32 - slash_indices: Array + era: t.types.u32 + slash_indices: Array } /** * Pay out all the stakers behind a single validator for a single era. @@ -369,8 +369,8 @@ export namespace Call { */ export interface payout_stakers { type: "payout_stakers" - validator_stash: t.sp_core.crypto.AccountId32 - era: t.u32 + validator_stash: t.types.sp_core.crypto.AccountId32 + era: t.types.u32 } /** * Rebond a portion of the stash scheduled to be unlocked. @@ -385,7 +385,7 @@ export namespace Call { */ export interface rebond { type: "rebond" - value: t.Compact + value: t.Compact } /** * Remove all data structures concerning a staker/stash once it is at a state where it can @@ -403,8 +403,8 @@ export namespace Call { */ export interface reap_stash { type: "reap_stash" - stash: t.sp_core.crypto.AccountId32 - num_slashing_spans: t.u32 + stash: t.types.sp_core.crypto.AccountId32 + num_slashing_spans: t.types.u32 } /** * Remove the given nominations from the calling validator. @@ -421,7 +421,7 @@ export namespace Call { */ export interface kick { type: "kick" - who: Array + who: Array } /** * Update the various staking configurations . @@ -444,12 +444,13 @@ export namespace Call { */ export interface set_staking_configs { type: "set_staking_configs" - min_nominator_bond: t.pallet_staking.pallet.pallet.ConfigOp.$$u128 - min_validator_bond: t.pallet_staking.pallet.pallet.ConfigOp.$$u128 - max_nominator_count: t.pallet_staking.pallet.pallet.ConfigOp.$$u32 - max_validator_count: t.pallet_staking.pallet.pallet.ConfigOp.$$u32 - chill_threshold: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent - min_commission: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill + min_nominator_bond: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128 + min_validator_bond: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128 + max_nominator_count: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32 + max_validator_count: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32 + chill_threshold: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent + min_commission: t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill } /** * Declare a `controller` to stop participating as either a validator or nominator. @@ -481,7 +482,7 @@ export namespace Call { */ export interface chill_other { type: "chill_other" - controller: t.sp_core.crypto.AccountId32 + controller: t.types.sp_core.crypto.AccountId32 } /** * Force a validator to have at least the minimum commission. This will not affect a @@ -490,7 +491,7 @@ export namespace Call { */ export interface force_apply_min_commission { type: "force_apply_min_commission" - validator_stash: t.sp_core.crypto.AccountId32 + validator_stash: t.types.sp_core.crypto.AccountId32 } /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will @@ -512,8 +513,8 @@ export namespace Call { * # */ export function bond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.bond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.bond { return { type: "bond", ...value } } /** @@ -534,8 +535,8 @@ export namespace Call { * # */ export function bond_extra( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.bond_extra { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.bond_extra { return { type: "bond_extra", ...value } } /** @@ -560,8 +561,8 @@ export namespace Call { * See also [`Call::withdraw_unbonded`]. */ export function unbond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.unbond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.unbond { return { type: "unbond", ...value } } /** @@ -582,8 +583,8 @@ export namespace Call { * # */ export function withdraw_unbonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.withdraw_unbonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.withdraw_unbonded { return { type: "withdraw_unbonded", ...value } } /** @@ -594,8 +595,8 @@ export namespace Call { * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ export function validate( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.validate { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.validate { return { type: "validate", ...value } } /** @@ -612,8 +613,8 @@ export namespace Call { * # */ export function nominate( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.nominate { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.nominate { return { type: "nominate", ...value } } /** @@ -629,7 +630,7 @@ export namespace Call { * - Writes are limited to the `origin` account key. * # */ - export function chill(): t.pallet_staking.pallet.pallet.Call.chill { + export function chill(): t.types.pallet_staking.pallet.pallet.Call.chill { return { type: "chill" } } /** @@ -651,8 +652,8 @@ export namespace Call { * # */ export function set_payee( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_payee { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_payee { return { type: "set_payee", ...value } } /** @@ -674,8 +675,8 @@ export namespace Call { * # */ export function set_controller( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_controller { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_controller { return { type: "set_controller", ...value } } /** @@ -689,8 +690,8 @@ export namespace Call { * # */ export function set_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_validator_count { return { type: "set_validator_count", ...value } } /** @@ -703,8 +704,8 @@ export namespace Call { * # */ export function increase_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.increase_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.increase_validator_count { return { type: "increase_validator_count", ...value } } /** @@ -717,8 +718,8 @@ export namespace Call { * # */ export function scale_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.scale_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.scale_validator_count { return { type: "scale_validator_count", ...value } } /** @@ -738,7 +739,7 @@ export namespace Call { * - Write: ForceEra * # */ - export function force_no_eras(): t.pallet_staking.pallet.pallet.Call.force_no_eras { + export function force_no_eras(): t.types.pallet_staking.pallet.pallet.Call.force_no_eras { return { type: "force_no_eras" } } /** @@ -759,7 +760,7 @@ export namespace Call { * - Write ForceEra * # */ - export function force_new_era(): t.pallet_staking.pallet.pallet.Call.force_new_era { + export function force_new_era(): t.types.pallet_staking.pallet.pallet.Call.force_new_era { return { type: "force_new_era" } } /** @@ -768,8 +769,8 @@ export namespace Call { * The dispatch origin must be Root. */ export function set_invulnerables( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_invulnerables { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_invulnerables { return { type: "set_invulnerables", ...value } } /** @@ -778,8 +779,8 @@ export namespace Call { * The dispatch origin must be Root. */ export function force_unstake( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.force_unstake { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.force_unstake { return { type: "force_unstake", ...value } } /** @@ -793,7 +794,7 @@ export namespace Call { * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ - export function force_new_era_always(): t.pallet_staking.pallet.pallet.Call.force_new_era_always { + export function force_new_era_always(): t.types.pallet_staking.pallet.pallet.Call.force_new_era_always { return { type: "force_new_era_always" } } /** @@ -804,8 +805,8 @@ export namespace Call { * Parameters: era and indices of the slashes for that era to kill. */ export function cancel_deferred_slash( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.cancel_deferred_slash { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.cancel_deferred_slash { return { type: "cancel_deferred_slash", ...value } } /** @@ -832,8 +833,8 @@ export namespace Call { * # */ export function payout_stakers( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.payout_stakers { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.payout_stakers { return { type: "payout_stakers", ...value } } /** @@ -848,8 +849,8 @@ export namespace Call { * # */ export function rebond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.rebond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.rebond { return { type: "rebond", ...value } } /** @@ -867,8 +868,8 @@ export namespace Call { * Refunds the transaction fees upon successful execution. */ export function reap_stash( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.reap_stash { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.reap_stash { return { type: "reap_stash", ...value } } /** @@ -885,8 +886,8 @@ export namespace Call { * block any further nominations. */ export function kick( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.kick { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.kick { return { type: "kick", ...value } } /** @@ -909,8 +910,8 @@ export namespace Call { * to kick people under the new limits, `chill_other` should be called. */ export function set_staking_configs( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_staking_configs { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_staking_configs { return { type: "set_staking_configs", ...value } } /** @@ -942,8 +943,8 @@ export namespace Call { * who do not satisfy these requirements. */ export function chill_other( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.chill_other { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.chill_other { return { type: "chill_other", ...value } } /** @@ -952,8 +953,8 @@ export namespace Call { * can call this. */ export function force_apply_min_commission( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.force_apply_min_commission { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.force_apply_min_commission { return { type: "force_apply_min_commission", ...value } } } @@ -988,19 +989,19 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_staking.pallet.pallet.Event.EraPaid - | t.pallet_staking.pallet.pallet.Event.Rewarded - | t.pallet_staking.pallet.pallet.Event.Slashed - | t.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded - | t.pallet_staking.pallet.pallet.Event.StakersElected - | t.pallet_staking.pallet.pallet.Event.Bonded - | t.pallet_staking.pallet.pallet.Event.Unbonded - | t.pallet_staking.pallet.pallet.Event.Withdrawn - | t.pallet_staking.pallet.pallet.Event.Kicked - | t.pallet_staking.pallet.pallet.Event.StakingElectionFailed - | t.pallet_staking.pallet.pallet.Event.Chilled - | t.pallet_staking.pallet.pallet.Event.PayoutStarted - | t.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet + | t.types.pallet_staking.pallet.pallet.Event.EraPaid + | t.types.pallet_staking.pallet.pallet.Event.Rewarded + | t.types.pallet_staking.pallet.pallet.Event.Slashed + | t.types.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded + | t.types.pallet_staking.pallet.pallet.Event.StakersElected + | t.types.pallet_staking.pallet.pallet.Event.Bonded + | t.types.pallet_staking.pallet.pallet.Event.Unbonded + | t.types.pallet_staking.pallet.pallet.Event.Withdrawn + | t.types.pallet_staking.pallet.pallet.Event.Kicked + | t.types.pallet_staking.pallet.pallet.Event.StakingElectionFailed + | t.types.pallet_staking.pallet.pallet.Event.Chilled + | t.types.pallet_staking.pallet.pallet.Event.PayoutStarted + | t.types.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet export namespace Event { /** * The era payout has been set; the first balance is the validator-payout; the second is @@ -1008,21 +1009,21 @@ export namespace Event { */ export interface EraPaid { type: "EraPaid" - era_index: t.u32 - validator_payout: t.u128 - remainder: t.u128 + era_index: t.types.u32 + validator_payout: t.types.u128 + remainder: t.types.u128 } /** The nominator has been rewarded by this amount. */ export interface Rewarded { type: "Rewarded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** One staker (and potentially its nominators) has been slashed by the given amount. */ export interface Slashed { type: "Slashed" - staker: t.sp_core.crypto.AccountId32 - amount: t.u128 + staker: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * An old slashing report from a prior era was discarded because it could @@ -1030,7 +1031,7 @@ export namespace Event { */ export interface OldSlashingReportDiscarded { type: "OldSlashingReportDiscarded" - session_index: t.u32 + session_index: t.types.u32 } /** A new set of stakers was elected. */ export interface StakersElected { @@ -1044,14 +1045,14 @@ export namespace Event { */ export interface Bonded { type: "Bonded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** An account has unbonded this amount. */ export interface Unbonded { type: "Unbonded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` @@ -1059,14 +1060,14 @@ export namespace Event { */ export interface Withdrawn { type: "Withdrawn" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A nominator has been kicked from a validator. */ export interface Kicked { type: "Kicked" - nominator: t.sp_core.crypto.AccountId32 - stash: t.sp_core.crypto.AccountId32 + nominator: t.types.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** The election failed. No new era is planned. */ export interface StakingElectionFailed { @@ -1075,39 +1076,39 @@ export namespace Event { /** An account has stopped participating as either a validator or nominator. */ export interface Chilled { type: "Chilled" - stash: t.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** The stakers' rewards are getting paid. */ export interface PayoutStarted { type: "PayoutStarted" - era_index: t.u32 - validator_stash: t.sp_core.crypto.AccountId32 + era_index: t.types.u32 + validator_stash: t.types.sp_core.crypto.AccountId32 } /** A validator has set their preferences. */ export interface ValidatorPrefsSet { type: "ValidatorPrefsSet" - stash: t.sp_core.crypto.AccountId32 - prefs: t.pallet_staking.ValidatorPrefs + stash: t.types.sp_core.crypto.AccountId32 + prefs: t.types.pallet_staking.ValidatorPrefs } /** * The era payout has been set; the first balance is the validator-payout; the second is * the remainder from the maximum amount of reward. */ export function EraPaid( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.EraPaid { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.EraPaid { return { type: "EraPaid", ...value } } /** The nominator has been rewarded by this amount. */ export function Rewarded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Rewarded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Rewarded { return { type: "Rewarded", ...value } } /** One staker (and potentially its nominators) has been slashed by the given amount. */ export function Slashed( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** @@ -1115,12 +1116,12 @@ export namespace Event { * not be processed. */ export function OldSlashingReportDiscarded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded { return { type: "OldSlashingReportDiscarded", ...value } } /** A new set of stakers was elected. */ - export function StakersElected(): t.pallet_staking.pallet.pallet.Event.StakersElected { + export function StakersElected(): t.types.pallet_staking.pallet.pallet.Event.StakersElected { return { type: "StakersElected" } } /** @@ -1130,14 +1131,14 @@ export namespace Event { * it will not be emitted for staking rewards when they are added to stake. */ export function Bonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Bonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Bonded { return { type: "Bonded", ...value } } /** An account has unbonded this amount. */ export function Unbonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Unbonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Unbonded { return { type: "Unbonded", ...value } } /** @@ -1145,36 +1146,36 @@ export namespace Event { * from the unlocking queue. */ export function Withdrawn( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Withdrawn { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Withdrawn { return { type: "Withdrawn", ...value } } /** A nominator has been kicked from a validator. */ export function Kicked( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Kicked { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Kicked { return { type: "Kicked", ...value } } /** The election failed. No new era is planned. */ - export function StakingElectionFailed(): t.pallet_staking.pallet.pallet.Event.StakingElectionFailed { + export function StakingElectionFailed(): t.types.pallet_staking.pallet.pallet.Event.StakingElectionFailed { return { type: "StakingElectionFailed" } } /** An account has stopped participating as either a validator or nominator. */ export function Chilled( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Chilled { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Chilled { return { type: "Chilled", ...value } } /** The stakers' rewards are getting paid. */ export function PayoutStarted( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.PayoutStarted { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.PayoutStarted { return { type: "PayoutStarted", ...value } } /** A validator has set their preferences. */ export function ValidatorPrefsSet( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet { return { type: "ValidatorPrefsSet", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_staking/slashing.ts b/codegen/_output/polkadot/types/pallet_staking/slashing.ts new file mode 100644 index 000000000..a7b31d855 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_staking/slashing.ts @@ -0,0 +1,27 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $slashingSpans: $.Codec = _codec.$503 + +export const $spanRecord: $.Codec = _codec.$504 + +export interface SlashingSpans { + span_index: t.types.u32 + last_start: t.types.u32 + last_nonzero_slash: t.types.u32 + prior: Array +} + +export function SlashingSpans(value: t.types.pallet_staking.slashing.SlashingSpans) { + return value +} + +export interface SpanRecord { + slashed: t.types.u128 + paid_out: t.types.u128 +} + +export function SpanRecord(value: t.types.pallet_staking.slashing.SpanRecord) { + return value +} diff --git a/codegen/_output/polkadot/pallet_timestamp/mod.ts b/codegen/_output/polkadot/types/pallet_timestamp/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_timestamp/mod.ts rename to codegen/_output/polkadot/types/pallet_timestamp/mod.ts diff --git a/codegen/_output/kusama/pallet_timestamp/pallet.ts b/codegen/_output/polkadot/types/pallet_timestamp/pallet.ts similarity index 79% rename from codegen/_output/kusama/pallet_timestamp/pallet.ts rename to codegen/_output/polkadot/types/pallet_timestamp/pallet.ts index 0130fc41e..ab76a88c7 100644 --- a/codegen/_output/kusama/pallet_timestamp/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_timestamp/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$195 +export const $call: $.Codec = _codec.$195 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_timestamp.pallet.Call.set +export type Call = t.types.pallet_timestamp.pallet.Call.set export namespace Call { /** * Set the current time. @@ -27,7 +27,7 @@ export namespace Call { */ export interface set { type: "set" - now: t.Compact + now: t.Compact } /** * Set the current time. @@ -48,8 +48,8 @@ export namespace Call { * # */ export function set( - value: Omit, - ): t.pallet_timestamp.pallet.Call.set { + value: Omit, + ): t.types.pallet_timestamp.pallet.Call.set { return { type: "set", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_tips/mod.ts b/codegen/_output/polkadot/types/pallet_tips/mod.ts new file mode 100644 index 000000000..dd1c4a6fd --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_tips/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $openTip: $.Codec = _codec.$598 + +export interface OpenTip { + reason: t.types.primitive_types.H256 + who: t.types.sp_core.crypto.AccountId32 + finder: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + closes: t.types.u32 | undefined + tips: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> + finders_fee: boolean +} + +export function OpenTip(value: t.types.pallet_tips.OpenTip) { + return value +} diff --git a/codegen/_output/kusama/pallet_tips/pallet.ts b/codegen/_output/polkadot/types/pallet_tips/pallet.ts similarity index 81% rename from codegen/_output/kusama/pallet_tips/pallet.ts rename to codegen/_output/polkadot/types/pallet_tips/pallet.ts index 355e46651..5d9de5b29 100644 --- a/codegen/_output/kusama/pallet_tips/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_tips/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$309 +export const $call: $.Codec = _codec.$309 -export const $error: $.Codec = _codec.$599 +export const $error: $.Codec = _codec.$599 -export const $event: $.Codec = _codec.$85 +export const $event: $.Codec = _codec.$85 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_tips.pallet.Call.report_awesome - | t.pallet_tips.pallet.Call.retract_tip - | t.pallet_tips.pallet.Call.tip_new - | t.pallet_tips.pallet.Call.tip - | t.pallet_tips.pallet.Call.close_tip - | t.pallet_tips.pallet.Call.slash_tip + | t.types.pallet_tips.pallet.Call.report_awesome + | t.types.pallet_tips.pallet.Call.retract_tip + | t.types.pallet_tips.pallet.Call.tip_new + | t.types.pallet_tips.pallet.Call.tip + | t.types.pallet_tips.pallet.Call.close_tip + | t.types.pallet_tips.pallet.Call.slash_tip export namespace Call { /** * Report something `reason` that deserves a tip and claim any eventual the finder's fee. @@ -41,7 +41,7 @@ export namespace Call { export interface report_awesome { type: "report_awesome" reason: Uint8Array - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Retract a prior tip-report from `report_awesome`, and cancel the process of tipping. @@ -66,7 +66,7 @@ export namespace Call { */ export interface retract_tip { type: "retract_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Give a tip for something new; no finder's fee will be taken. @@ -95,8 +95,8 @@ export namespace Call { export interface tip_new { type: "tip_new" reason: Uint8Array - who: t.sp_runtime.multiaddress.MultiAddress - tip_value: t.Compact + who: t.types.sp_runtime.multiaddress.MultiAddress + tip_value: t.Compact } /** * Declare a tip value for an already-open tip. @@ -126,8 +126,8 @@ export namespace Call { */ export interface tip { type: "tip" - hash: t.primitive_types.H256 - tip_value: t.Compact + hash: t.types.primitive_types.H256 + tip_value: t.Compact } /** * Close and payout a tip. @@ -149,7 +149,7 @@ export namespace Call { */ export interface close_tip { type: "close_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Remove and slash an already-open tip. @@ -167,7 +167,7 @@ export namespace Call { */ export interface slash_tip { type: "slash_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Report something `reason` that deserves a tip and claim any eventual the finder's fee. @@ -191,8 +191,8 @@ export namespace Call { * # */ export function report_awesome( - value: Omit, - ): t.pallet_tips.pallet.Call.report_awesome { + value: Omit, + ): t.types.pallet_tips.pallet.Call.report_awesome { return { type: "report_awesome", ...value } } /** @@ -217,8 +217,8 @@ export namespace Call { * # */ export function retract_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.retract_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.retract_tip { return { type: "retract_tip", ...value } } /** @@ -246,8 +246,8 @@ export namespace Call { * # */ export function tip_new( - value: Omit, - ): t.pallet_tips.pallet.Call.tip_new { + value: Omit, + ): t.types.pallet_tips.pallet.Call.tip_new { return { type: "tip_new", ...value } } /** @@ -277,8 +277,8 @@ export namespace Call { * # */ export function tip( - value: Omit, - ): t.pallet_tips.pallet.Call.tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.tip { return { type: "tip", ...value } } /** @@ -300,8 +300,8 @@ export namespace Call { * # */ export function close_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.close_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.close_tip { return { type: "close_tip", ...value } } /** @@ -319,8 +319,8 @@ export namespace Call { * # */ export function slash_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.slash_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.slash_tip { return { type: "slash_tip", ...value } } } @@ -336,69 +336,69 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_tips.pallet.Event.NewTip - | t.pallet_tips.pallet.Event.TipClosing - | t.pallet_tips.pallet.Event.TipClosed - | t.pallet_tips.pallet.Event.TipRetracted - | t.pallet_tips.pallet.Event.TipSlashed + | t.types.pallet_tips.pallet.Event.NewTip + | t.types.pallet_tips.pallet.Event.TipClosing + | t.types.pallet_tips.pallet.Event.TipClosed + | t.types.pallet_tips.pallet.Event.TipRetracted + | t.types.pallet_tips.pallet.Event.TipSlashed export namespace Event { /** A new tip suggestion has been opened. */ export interface NewTip { type: "NewTip" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has reached threshold and is closing. */ export interface TipClosing { type: "TipClosing" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has been closed. */ export interface TipClosed { type: "TipClosed" - tip_hash: t.primitive_types.H256 - who: t.sp_core.crypto.AccountId32 - payout: t.u128 + tip_hash: t.types.primitive_types.H256 + who: t.types.sp_core.crypto.AccountId32 + payout: t.types.u128 } /** A tip suggestion has been retracted. */ export interface TipRetracted { type: "TipRetracted" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has been slashed. */ export interface TipSlashed { type: "TipSlashed" - tip_hash: t.primitive_types.H256 - finder: t.sp_core.crypto.AccountId32 - deposit: t.u128 + tip_hash: t.types.primitive_types.H256 + finder: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A new tip suggestion has been opened. */ export function NewTip( - value: Omit, - ): t.pallet_tips.pallet.Event.NewTip { + value: Omit, + ): t.types.pallet_tips.pallet.Event.NewTip { return { type: "NewTip", ...value } } /** A tip suggestion has reached threshold and is closing. */ export function TipClosing( - value: Omit, - ): t.pallet_tips.pallet.Event.TipClosing { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipClosing { return { type: "TipClosing", ...value } } /** A tip suggestion has been closed. */ export function TipClosed( - value: Omit, - ): t.pallet_tips.pallet.Event.TipClosed { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipClosed { return { type: "TipClosed", ...value } } /** A tip suggestion has been retracted. */ export function TipRetracted( - value: Omit, - ): t.pallet_tips.pallet.Event.TipRetracted { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipRetracted { return { type: "TipRetracted", ...value } } /** A tip suggestion has been slashed. */ export function TipSlashed( - value: Omit, - ): t.pallet_tips.pallet.Event.TipSlashed { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipSlashed { return { type: "TipSlashed", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_transaction_payment/mod.ts b/codegen/_output/polkadot/types/pallet_transaction_payment/mod.ts new file mode 100644 index 000000000..53822ce2a --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_transaction_payment/mod.ts @@ -0,0 +1,9 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $releases: $.Codec = _codec.$480 + +export type Releases = "V1Ancient" | "V2" diff --git a/codegen/_output/rococo/pallet_transaction_payment/pallet.ts b/codegen/_output/polkadot/types/pallet_transaction_payment/pallet.ts similarity index 50% rename from codegen/_output/rococo/pallet_transaction_payment/pallet.ts rename to codegen/_output/polkadot/types/pallet_transaction_payment/pallet.ts index 12c5c03e1..f912e47f5 100644 --- a/codegen/_output/rococo/pallet_transaction_payment/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_transaction_payment/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $event: $.Codec = _codec.$38 +export const $event: $.Codec = _codec.$38 /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.pallet_transaction_payment.pallet.Event.TransactionFeePaid +export type Event = t.types.pallet_transaction_payment.pallet.Event.TransactionFeePaid export namespace Event { /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, @@ -13,17 +13,17 @@ export namespace Event { */ export interface TransactionFeePaid { type: "TransactionFeePaid" - who: t.sp_core.crypto.AccountId32 - actual_fee: t.u128 - tip: t.u128 + who: t.types.sp_core.crypto.AccountId32 + actual_fee: t.types.u128 + tip: t.types.u128 } /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, * has been paid by `who`. */ export function TransactionFeePaid( - value: Omit, - ): t.pallet_transaction_payment.pallet.Event.TransactionFeePaid { + value: Omit, + ): t.types.pallet_transaction_payment.pallet.Event.TransactionFeePaid { return { type: "TransactionFeePaid", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_treasury/mod.ts b/codegen/_output/polkadot/types/pallet_treasury/mod.ts new file mode 100644 index 000000000..bada52441 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_treasury/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $proposal: $.Codec = _codec.$556 + +export interface Proposal { + proposer: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 + bond: t.types.u128 +} + +export function Proposal(value: t.types.pallet_treasury.Proposal) { + return value +} diff --git a/codegen/_output/kusama/pallet_treasury/pallet.ts b/codegen/_output/polkadot/types/pallet_treasury/pallet.ts similarity index 68% rename from codegen/_output/kusama/pallet_treasury/pallet.ts rename to codegen/_output/polkadot/types/pallet_treasury/pallet.ts index f5458cc71..e1999734e 100644 --- a/codegen/_output/kusama/pallet_treasury/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_treasury/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$244 +export const $call: $.Codec = _codec.$244 -export const $error: $.Codec = _codec.$561 +export const $error: $.Codec = _codec.$561 -export const $event: $.Codec = _codec.$71 +export const $event: $.Codec = _codec.$71 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_treasury.pallet.Call.propose_spend - | t.pallet_treasury.pallet.Call.reject_proposal - | t.pallet_treasury.pallet.Call.approve_proposal - | t.pallet_treasury.pallet.Call.spend - | t.pallet_treasury.pallet.Call.remove_approval + | t.types.pallet_treasury.pallet.Call.propose_spend + | t.types.pallet_treasury.pallet.Call.reject_proposal + | t.types.pallet_treasury.pallet.Call.approve_proposal + | t.types.pallet_treasury.pallet.Call.spend + | t.types.pallet_treasury.pallet.Call.remove_approval export namespace Call { /** * Put forward a suggestion for spending. A deposit proportional to the value @@ -29,8 +29,8 @@ export namespace Call { */ export interface propose_spend { type: "propose_spend" - value: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + value: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Reject a proposed spend. The original deposit will be slashed. @@ -45,7 +45,7 @@ export namespace Call { */ export interface reject_proposal { type: "reject_proposal" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary @@ -61,7 +61,7 @@ export namespace Call { */ export interface approve_proposal { type: "approve_proposal" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Propose and approve a spend of treasury funds. @@ -75,8 +75,8 @@ export namespace Call { */ export interface spend { type: "spend" - amount: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + amount: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Force a previously approved proposal to be removed from the approval queue. @@ -97,7 +97,7 @@ export namespace Call { */ export interface remove_approval { type: "remove_approval" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Put forward a suggestion for spending. A deposit proportional to the value @@ -111,8 +111,8 @@ export namespace Call { * # */ export function propose_spend( - value: Omit, - ): t.pallet_treasury.pallet.Call.propose_spend { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.propose_spend { return { type: "propose_spend", ...value } } /** @@ -127,8 +127,8 @@ export namespace Call { * # */ export function reject_proposal( - value: Omit, - ): t.pallet_treasury.pallet.Call.reject_proposal { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.reject_proposal { return { type: "reject_proposal", ...value } } /** @@ -144,8 +144,8 @@ export namespace Call { * # */ export function approve_proposal( - value: Omit, - ): t.pallet_treasury.pallet.Call.approve_proposal { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.approve_proposal { return { type: "approve_proposal", ...value } } /** @@ -159,8 +159,8 @@ export namespace Call { * beneficiary. */ export function spend( - value: Omit, - ): t.pallet_treasury.pallet.Call.spend { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.spend { return { type: "spend", ...value } } /** @@ -181,8 +181,8 @@ export namespace Call { * exist altogether, thus there is no way it would have been approved in the first place. */ export function remove_approval( - value: Omit, - ): t.pallet_treasury.pallet.Call.remove_approval { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.remove_approval { return { type: "remove_approval", ...value } } } @@ -197,106 +197,106 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_treasury.pallet.Event.Proposed - | t.pallet_treasury.pallet.Event.Spending - | t.pallet_treasury.pallet.Event.Awarded - | t.pallet_treasury.pallet.Event.Rejected - | t.pallet_treasury.pallet.Event.Burnt - | t.pallet_treasury.pallet.Event.Rollover - | t.pallet_treasury.pallet.Event.Deposit - | t.pallet_treasury.pallet.Event.SpendApproved + | t.types.pallet_treasury.pallet.Event.Proposed + | t.types.pallet_treasury.pallet.Event.Spending + | t.types.pallet_treasury.pallet.Event.Awarded + | t.types.pallet_treasury.pallet.Event.Rejected + | t.types.pallet_treasury.pallet.Event.Burnt + | t.types.pallet_treasury.pallet.Event.Rollover + | t.types.pallet_treasury.pallet.Event.Deposit + | t.types.pallet_treasury.pallet.Event.SpendApproved export namespace Event { /** New proposal. */ export interface Proposed { type: "Proposed" - proposal_index: t.u32 + proposal_index: t.types.u32 } /** We have ended a spend period and will now allocate funds. */ export interface Spending { type: "Spending" - budget_remaining: t.u128 + budget_remaining: t.types.u128 } /** Some funds have been allocated. */ export interface Awarded { type: "Awarded" - proposal_index: t.u32 - award: t.u128 - account: t.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + award: t.types.u128 + account: t.types.sp_core.crypto.AccountId32 } /** A proposal was rejected; funds were slashed. */ export interface Rejected { type: "Rejected" - proposal_index: t.u32 - slashed: t.u128 + proposal_index: t.types.u32 + slashed: t.types.u128 } /** Some of our funds have been burnt. */ export interface Burnt { type: "Burnt" - burnt_funds: t.u128 + burnt_funds: t.types.u128 } /** Spending has finished; this is the amount that rolls over until next spend. */ export interface Rollover { type: "Rollover" - rollover_balance: t.u128 + rollover_balance: t.types.u128 } /** Some funds have been deposited. */ export interface Deposit { type: "Deposit" - value: t.u128 + value: t.types.u128 } /** A new spend proposal has been approved. */ export interface SpendApproved { type: "SpendApproved" - proposal_index: t.u32 - amount: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + amount: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** New proposal. */ export function Proposed( - value: Omit, - ): t.pallet_treasury.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** We have ended a spend period and will now allocate funds. */ export function Spending( - value: Omit, - ): t.pallet_treasury.pallet.Event.Spending { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Spending { return { type: "Spending", ...value } } /** Some funds have been allocated. */ export function Awarded( - value: Omit, - ): t.pallet_treasury.pallet.Event.Awarded { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Awarded { return { type: "Awarded", ...value } } /** A proposal was rejected; funds were slashed. */ export function Rejected( - value: Omit, - ): t.pallet_treasury.pallet.Event.Rejected { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Rejected { return { type: "Rejected", ...value } } /** Some of our funds have been burnt. */ export function Burnt( - value: Omit, - ): t.pallet_treasury.pallet.Event.Burnt { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Burnt { return { type: "Burnt", ...value } } /** Spending has finished; this is the amount that rolls over until next spend. */ export function Rollover( - value: Omit, - ): t.pallet_treasury.pallet.Event.Rollover { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Rollover { return { type: "Rollover", ...value } } /** Some funds have been deposited. */ export function Deposit( - value: Omit, - ): t.pallet_treasury.pallet.Event.Deposit { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Deposit { return { type: "Deposit", ...value } } /** A new spend proposal has been approved. */ export function SpendApproved( - value: Omit, - ): t.pallet_treasury.pallet.Event.SpendApproved { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.SpendApproved { return { type: "SpendApproved", ...value } } } diff --git a/codegen/_output/polkadot/pallet_utility/mod.ts b/codegen/_output/polkadot/types/pallet_utility/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_utility/mod.ts rename to codegen/_output/polkadot/types/pallet_utility/mod.ts diff --git a/codegen/_output/polkadot/pallet_utility/pallet.ts b/codegen/_output/polkadot/types/pallet_utility/pallet.ts similarity index 76% rename from codegen/_output/polkadot/pallet_utility/pallet.ts rename to codegen/_output/polkadot/types/pallet_utility/pallet.ts index 50befdeac..2d5f19068 100644 --- a/codegen/_output/polkadot/pallet_utility/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_utility/pallet.ts @@ -1,20 +1,20 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$254 +export const $call: $.Codec = _codec.$254 -export const $error: $.Codec = _codec.$567 +export const $error: $.Codec = _codec.$567 -export const $event: $.Codec = _codec.$76 +export const $event: $.Codec = _codec.$76 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_utility.pallet.Call.batch - | t.pallet_utility.pallet.Call.as_derivative - | t.pallet_utility.pallet.Call.batch_all - | t.pallet_utility.pallet.Call.dispatch_as - | t.pallet_utility.pallet.Call.force_batch + | t.types.pallet_utility.pallet.Call.batch + | t.types.pallet_utility.pallet.Call.as_derivative + | t.types.pallet_utility.pallet.Call.batch_all + | t.types.pallet_utility.pallet.Call.dispatch_as + | t.types.pallet_utility.pallet.Call.force_batch export namespace Call { /** * Send a batch of dispatch calls. @@ -39,7 +39,7 @@ export namespace Call { */ export interface batch { type: "batch" - calls: Array + calls: Array } /** * Send a call through an indexed pseudonym of the sender. @@ -58,8 +58,8 @@ export namespace Call { */ export interface as_derivative { type: "as_derivative" - index: t.u16 - call: t.polkadot_runtime.RuntimeCall + index: t.types.u16 + call: t.types.polkadot_runtime.RuntimeCall } /** * Send a batch of dispatch calls and atomically execute them. @@ -79,7 +79,7 @@ export namespace Call { */ export interface batch_all { type: "batch_all" - calls: Array + calls: Array } /** * Dispatches a function call with a provided origin. @@ -95,8 +95,8 @@ export namespace Call { */ export interface dispatch_as { type: "dispatch_as" - as_origin: t.polkadot_runtime.OriginCaller - call: t.polkadot_runtime.RuntimeCall + as_origin: t.types.polkadot_runtime.OriginCaller + call: t.types.polkadot_runtime.RuntimeCall } /** * Send a batch of dispatch calls. @@ -116,7 +116,7 @@ export namespace Call { */ export interface force_batch { type: "force_batch" - calls: Array + calls: Array } /** * Send a batch of dispatch calls. @@ -140,8 +140,8 @@ export namespace Call { * event is deposited. */ export function batch( - value: Omit, - ): t.pallet_utility.pallet.Call.batch { + value: Omit, + ): t.types.pallet_utility.pallet.Call.batch { return { type: "batch", ...value } } /** @@ -160,8 +160,8 @@ export namespace Call { * The dispatch origin for this call must be _Signed_. */ export function as_derivative( - value: Omit, - ): t.pallet_utility.pallet.Call.as_derivative { + value: Omit, + ): t.types.pallet_utility.pallet.Call.as_derivative { return { type: "as_derivative", ...value } } /** @@ -181,8 +181,8 @@ export namespace Call { * # */ export function batch_all( - value: Omit, - ): t.pallet_utility.pallet.Call.batch_all { + value: Omit, + ): t.types.pallet_utility.pallet.Call.batch_all { return { type: "batch_all", ...value } } /** @@ -198,8 +198,8 @@ export namespace Call { * # */ export function dispatch_as( - value: Omit, - ): t.pallet_utility.pallet.Call.dispatch_as { + value: Omit, + ): t.types.pallet_utility.pallet.Call.dispatch_as { return { type: "dispatch_as", ...value } } /** @@ -219,8 +219,8 @@ export namespace Call { * # */ export function force_batch( - value: Omit, - ): t.pallet_utility.pallet.Call.force_batch { + value: Omit, + ): t.types.pallet_utility.pallet.Call.force_batch { return { type: "force_batch", ...value } } } @@ -230,12 +230,12 @@ export type Error = "TooManyCalls" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_utility.pallet.Event.BatchInterrupted - | t.pallet_utility.pallet.Event.BatchCompleted - | t.pallet_utility.pallet.Event.BatchCompletedWithErrors - | t.pallet_utility.pallet.Event.ItemCompleted - | t.pallet_utility.pallet.Event.ItemFailed - | t.pallet_utility.pallet.Event.DispatchedAs + | t.types.pallet_utility.pallet.Event.BatchInterrupted + | t.types.pallet_utility.pallet.Event.BatchCompleted + | t.types.pallet_utility.pallet.Event.BatchCompletedWithErrors + | t.types.pallet_utility.pallet.Event.ItemCompleted + | t.types.pallet_utility.pallet.Event.ItemFailed + | t.types.pallet_utility.pallet.Event.DispatchedAs export namespace Event { /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as @@ -243,8 +243,8 @@ export namespace Event { */ export interface BatchInterrupted { type: "BatchInterrupted" - index: t.u32 - error: t.sp_runtime.DispatchError + index: t.types.u32 + error: t.types.sp_runtime.DispatchError } /** Batch of dispatches completed fully with no error. */ export interface BatchCompleted { @@ -261,44 +261,44 @@ export namespace Event { /** A single item within a Batch of dispatches has completed with error. */ export interface ItemFailed { type: "ItemFailed" - error: t.sp_runtime.DispatchError + error: t.types.sp_runtime.DispatchError } /** A call was dispatched. */ export interface DispatchedAs { type: "DispatchedAs" - result: null | C.ChainError + result: null | C.ChainError } /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. */ export function BatchInterrupted( - value: Omit, - ): t.pallet_utility.pallet.Event.BatchInterrupted { + value: Omit, + ): t.types.pallet_utility.pallet.Event.BatchInterrupted { return { type: "BatchInterrupted", ...value } } /** Batch of dispatches completed fully with no error. */ - export function BatchCompleted(): t.pallet_utility.pallet.Event.BatchCompleted { + export function BatchCompleted(): t.types.pallet_utility.pallet.Event.BatchCompleted { return { type: "BatchCompleted" } } /** Batch of dispatches completed but has errors. */ - export function BatchCompletedWithErrors(): t.pallet_utility.pallet.Event.BatchCompletedWithErrors { + export function BatchCompletedWithErrors(): t.types.pallet_utility.pallet.Event.BatchCompletedWithErrors { return { type: "BatchCompletedWithErrors" } } /** A single item within a Batch of dispatches has completed with no error. */ - export function ItemCompleted(): t.pallet_utility.pallet.Event.ItemCompleted { + export function ItemCompleted(): t.types.pallet_utility.pallet.Event.ItemCompleted { return { type: "ItemCompleted" } } /** A single item within a Batch of dispatches has completed with error. */ export function ItemFailed( - value: Omit, - ): t.pallet_utility.pallet.Event.ItemFailed { + value: Omit, + ): t.types.pallet_utility.pallet.Event.ItemFailed { return { type: "ItemFailed", ...value } } /** A call was dispatched. */ export function DispatchedAs( - value: Omit, - ): t.pallet_utility.pallet.Event.DispatchedAs { + value: Omit, + ): t.types.pallet_utility.pallet.Event.DispatchedAs { return { type: "DispatchedAs", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_vesting/mod.ts b/codegen/_output/polkadot/types/pallet_vesting/mod.ts new file mode 100644 index 000000000..96ae61e7f --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_vesting/mod.ts @@ -0,0 +1,10 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as vesting_info from "./vesting_info.ts" + +export const $releases: $.Codec = _codec.$565 + +export type Releases = "V0" | "V1" diff --git a/codegen/_output/polkadot/pallet_vesting/pallet.ts b/codegen/_output/polkadot/types/pallet_vesting/pallet.ts similarity index 80% rename from codegen/_output/polkadot/pallet_vesting/pallet.ts rename to codegen/_output/polkadot/types/pallet_vesting/pallet.ts index 46b136022..fb66f1292 100644 --- a/codegen/_output/polkadot/pallet_vesting/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_vesting/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$252 +export const $call: $.Codec = _codec.$252 -export const $error: $.Codec = _codec.$566 +export const $error: $.Codec = _codec.$566 -export const $event: $.Codec = _codec.$75 +export const $event: $.Codec = _codec.$75 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_vesting.pallet.Call.vest - | t.pallet_vesting.pallet.Call.vest_other - | t.pallet_vesting.pallet.Call.vested_transfer - | t.pallet_vesting.pallet.Call.force_vested_transfer - | t.pallet_vesting.pallet.Call.merge_schedules + | t.types.pallet_vesting.pallet.Call.vest + | t.types.pallet_vesting.pallet.Call.vest_other + | t.types.pallet_vesting.pallet.Call.vested_transfer + | t.types.pallet_vesting.pallet.Call.force_vested_transfer + | t.types.pallet_vesting.pallet.Call.merge_schedules export namespace Call { /** * Unlock any vested funds of the sender account. @@ -53,7 +53,7 @@ export namespace Call { */ export interface vest_other { type: "vest_other" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Create a vested transfer. @@ -76,8 +76,8 @@ export namespace Call { */ export interface vested_transfer { type: "vested_transfer" - target: t.sp_runtime.multiaddress.MultiAddress - schedule: t.pallet_vesting.vesting_info.VestingInfo + target: t.types.sp_runtime.multiaddress.MultiAddress + schedule: t.types.pallet_vesting.vesting_info.VestingInfo } /** * Force a vested transfer. @@ -101,9 +101,9 @@ export namespace Call { */ export interface force_vested_transfer { type: "force_vested_transfer" - source: t.sp_runtime.multiaddress.MultiAddress - target: t.sp_runtime.multiaddress.MultiAddress - schedule: t.pallet_vesting.vesting_info.VestingInfo + source: t.types.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress + schedule: t.types.pallet_vesting.vesting_info.VestingInfo } /** * Merge two vesting schedules together, creating a new vesting schedule that unlocks over @@ -130,8 +130,8 @@ export namespace Call { */ export interface merge_schedules { type: "merge_schedules" - schedule1_index: t.u32 - schedule2_index: t.u32 + schedule1_index: t.types.u32 + schedule2_index: t.types.u32 } /** * Unlock any vested funds of the sender account. @@ -148,7 +148,7 @@ export namespace Call { * - Writes: Vesting Storage, Balances Locks, [Sender Account] * # */ - export function vest(): t.pallet_vesting.pallet.Call.vest { + export function vest(): t.types.pallet_vesting.pallet.Call.vest { return { type: "vest" } } /** @@ -169,8 +169,8 @@ export namespace Call { * # */ export function vest_other( - value: Omit, - ): t.pallet_vesting.pallet.Call.vest_other { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.vest_other { return { type: "vest_other", ...value } } /** @@ -193,8 +193,8 @@ export namespace Call { * # */ export function vested_transfer( - value: Omit, - ): t.pallet_vesting.pallet.Call.vested_transfer { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.vested_transfer { return { type: "vested_transfer", ...value } } /** @@ -218,8 +218,8 @@ export namespace Call { * # */ export function force_vested_transfer( - value: Omit, - ): t.pallet_vesting.pallet.Call.force_vested_transfer { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.force_vested_transfer { return { type: "force_vested_transfer", ...value } } /** @@ -246,8 +246,8 @@ export namespace Call { * - `schedule2_index`: index of the second schedule to merge. */ export function merge_schedules( - value: Omit, - ): t.pallet_vesting.pallet.Call.merge_schedules { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.merge_schedules { return { type: "merge_schedules", ...value } } } @@ -262,8 +262,8 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_vesting.pallet.Event.VestingUpdated - | t.pallet_vesting.pallet.Event.VestingCompleted + | t.types.pallet_vesting.pallet.Event.VestingUpdated + | t.types.pallet_vesting.pallet.Event.VestingCompleted export namespace Event { /** * The amount vested has been updated. This could indicate a change in funds available. @@ -271,27 +271,27 @@ export namespace Event { */ export interface VestingUpdated { type: "VestingUpdated" - account: t.sp_core.crypto.AccountId32 - unvested: t.u128 + account: t.types.sp_core.crypto.AccountId32 + unvested: t.types.u128 } /** An \[account\] has become fully vested. */ export interface VestingCompleted { type: "VestingCompleted" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** * The amount vested has been updated. This could indicate a change in funds available. * The balance given is the amount which is left unvested (and thus locked). */ export function VestingUpdated( - value: Omit, - ): t.pallet_vesting.pallet.Event.VestingUpdated { + value: Omit, + ): t.types.pallet_vesting.pallet.Event.VestingUpdated { return { type: "VestingUpdated", ...value } } /** An \[account\] has become fully vested. */ export function VestingCompleted( - value: Omit, - ): t.pallet_vesting.pallet.Event.VestingCompleted { + value: Omit, + ): t.types.pallet_vesting.pallet.Event.VestingCompleted { return { type: "VestingCompleted", ...value } } } diff --git a/codegen/_output/polkadot/types/pallet_vesting/vesting_info.ts b/codegen/_output/polkadot/types/pallet_vesting/vesting_info.ts new file mode 100644 index 000000000..ab4a9cfe5 --- /dev/null +++ b/codegen/_output/polkadot/types/pallet_vesting/vesting_info.ts @@ -0,0 +1,15 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $vestingInfo: $.Codec = _codec.$253 + +export interface VestingInfo { + locked: t.types.u128 + per_block: t.types.u128 + starting_block: t.types.u32 +} + +export function VestingInfo(value: t.types.pallet_vesting.vesting_info.VestingInfo) { + return value +} diff --git a/codegen/_output/polkadot/pallet_xcm/mod.ts b/codegen/_output/polkadot/types/pallet_xcm/mod.ts similarity index 100% rename from codegen/_output/polkadot/pallet_xcm/mod.ts rename to codegen/_output/polkadot/types/pallet_xcm/mod.ts diff --git a/codegen/_output/polkadot/pallet_xcm/pallet.ts b/codegen/_output/polkadot/types/pallet_xcm/pallet.ts similarity index 71% rename from codegen/_output/polkadot/pallet_xcm/pallet.ts rename to codegen/_output/polkadot/types/pallet_xcm/pallet.ts index 170fd1d2f..98a7c2a00 100644 --- a/codegen/_output/polkadot/pallet_xcm/pallet.ts +++ b/codegen/_output/polkadot/types/pallet_xcm/pallet.ts @@ -1,37 +1,37 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$423 +export const $call: $.Codec = _codec.$423 -export const $error: $.Codec = _codec.$724 +export const $error: $.Codec = _codec.$724 -export const $event: $.Codec = _codec.$121 +export const $event: $.Codec = _codec.$121 -export const $origin: $.Codec = _codec.$261 +export const $origin: $.Codec = _codec.$261 -export const $queryStatus: $.Codec = _codec.$713 +export const $queryStatus: $.Codec = _codec.$713 -export const $versionMigrationStage: $.Codec = +export const $versionMigrationStage: $.Codec = _codec.$722 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_xcm.pallet.Call.send - | t.pallet_xcm.pallet.Call.teleport_assets - | t.pallet_xcm.pallet.Call.reserve_transfer_assets - | t.pallet_xcm.pallet.Call.execute - | t.pallet_xcm.pallet.Call.force_xcm_version - | t.pallet_xcm.pallet.Call.force_default_xcm_version - | t.pallet_xcm.pallet.Call.force_subscribe_version_notify - | t.pallet_xcm.pallet.Call.force_unsubscribe_version_notify - | t.pallet_xcm.pallet.Call.limited_reserve_transfer_assets - | t.pallet_xcm.pallet.Call.limited_teleport_assets + | t.types.pallet_xcm.pallet.Call.send + | t.types.pallet_xcm.pallet.Call.teleport_assets + | t.types.pallet_xcm.pallet.Call.reserve_transfer_assets + | t.types.pallet_xcm.pallet.Call.execute + | t.types.pallet_xcm.pallet.Call.force_xcm_version + | t.types.pallet_xcm.pallet.Call.force_default_xcm_version + | t.types.pallet_xcm.pallet.Call.force_subscribe_version_notify + | t.types.pallet_xcm.pallet.Call.force_unsubscribe_version_notify + | t.types.pallet_xcm.pallet.Call.limited_reserve_transfer_assets + | t.types.pallet_xcm.pallet.Call.limited_teleport_assets export namespace Call { export interface send { type: "send" - dest: t.xcm.VersionedMultiLocation - message: t.xcm.VersionedXcm + dest: t.types.xcm.VersionedMultiLocation + message: t.types.xcm.VersionedXcm } /** * Teleport some assets from the local chain to some destination chain. @@ -52,10 +52,10 @@ export namespace Call { */ export interface teleport_assets { type: "teleport_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 } /** * Transfer some assets from the local chain to the sovereign account of a destination @@ -77,10 +77,10 @@ export namespace Call { */ export interface reserve_transfer_assets { type: "reserve_transfer_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 } /** * Execute an XCM message from a local, signed, origin. @@ -97,8 +97,8 @@ export namespace Call { */ export interface execute { type: "execute" - message: t.xcm.VersionedXcm - max_weight: t.u64 + message: t.types.xcm.VersionedXcm + max_weight: t.types.u64 } /** * Extoll that a particular destination can be communicated with through a particular @@ -110,8 +110,8 @@ export namespace Call { */ export interface force_xcm_version { type: "force_xcm_version" - location: t.xcm.v1.multilocation.MultiLocation - xcm_version: t.u32 + location: t.types.xcm.v1.multilocation.MultiLocation + xcm_version: t.types.u32 } /** * Set a safe XCM version (the version that XCM should be encoded with if the most recent @@ -122,7 +122,7 @@ export namespace Call { */ export interface force_default_xcm_version { type: "force_default_xcm_version" - maybe_xcm_version: t.u32 | undefined + maybe_xcm_version: t.types.u32 | undefined } /** * Ask a location to notify us regarding their XCM version and any changes to it. @@ -132,7 +132,7 @@ export namespace Call { */ export interface force_subscribe_version_notify { type: "force_subscribe_version_notify" - location: t.xcm.VersionedMultiLocation + location: t.types.xcm.VersionedMultiLocation } /** * Require that a particular destination should no longer notify us regarding any XCM @@ -144,7 +144,7 @@ export namespace Call { */ export interface force_unsubscribe_version_notify { type: "force_unsubscribe_version_notify" - location: t.xcm.VersionedMultiLocation + location: t.types.xcm.VersionedMultiLocation } /** * Transfer some assets from the local chain to the sovereign account of a destination @@ -168,11 +168,11 @@ export namespace Call { */ export interface limited_reserve_transfer_assets { type: "limited_reserve_transfer_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 - weight_limit: t.xcm.v2.WeightLimit + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 + weight_limit: t.types.xcm.v2.WeightLimit } /** * Teleport some assets from the local chain to some destination chain. @@ -195,15 +195,15 @@ export namespace Call { */ export interface limited_teleport_assets { type: "limited_teleport_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 - weight_limit: t.xcm.v2.WeightLimit + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 + weight_limit: t.types.xcm.v2.WeightLimit } export function send( - value: Omit, - ): t.pallet_xcm.pallet.Call.send { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.send { return { type: "send", ...value } } /** @@ -224,8 +224,8 @@ export namespace Call { * fees. */ export function teleport_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.teleport_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.teleport_assets { return { type: "teleport_assets", ...value } } /** @@ -247,8 +247,8 @@ export namespace Call { * fees. */ export function reserve_transfer_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.reserve_transfer_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.reserve_transfer_assets { return { type: "reserve_transfer_assets", ...value } } /** @@ -265,8 +265,8 @@ export namespace Call { * to completion; only that *some* of it was executed. */ export function execute( - value: Omit, - ): t.pallet_xcm.pallet.Call.execute { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.execute { return { type: "execute", ...value } } /** @@ -278,8 +278,8 @@ export namespace Call { * - `xcm_version`: The latest version of XCM that `location` supports. */ export function force_xcm_version( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_xcm_version { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_xcm_version { return { type: "force_xcm_version", ...value } } /** @@ -290,8 +290,8 @@ export namespace Call { * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. */ export function force_default_xcm_version( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_default_xcm_version { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_default_xcm_version { return { type: "force_default_xcm_version", ...value } } /** @@ -301,8 +301,8 @@ export namespace Call { * - `location`: The location to which we should subscribe for XCM version notifications. */ export function force_subscribe_version_notify( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_subscribe_version_notify { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_subscribe_version_notify { return { type: "force_subscribe_version_notify", ...value } } /** @@ -314,8 +314,8 @@ export namespace Call { * notifications which we no longer desire. */ export function force_unsubscribe_version_notify( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_unsubscribe_version_notify { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_unsubscribe_version_notify { return { type: "force_unsubscribe_version_notify", ...value } } /** @@ -339,8 +339,8 @@ export namespace Call { * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_reserve_transfer_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.limited_reserve_transfer_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.limited_reserve_transfer_assets { return { type: "limited_reserve_transfer_assets", ...value } } /** @@ -363,8 +363,8 @@ export namespace Call { * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_teleport_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.limited_teleport_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.limited_teleport_assets { return { type: "limited_teleport_assets", ...value } } } @@ -387,23 +387,23 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_xcm.pallet.Event.Attempted - | t.pallet_xcm.pallet.Event.Sent - | t.pallet_xcm.pallet.Event.UnexpectedResponse - | t.pallet_xcm.pallet.Event.ResponseReady - | t.pallet_xcm.pallet.Event.Notified - | t.pallet_xcm.pallet.Event.NotifyOverweight - | t.pallet_xcm.pallet.Event.NotifyDispatchError - | t.pallet_xcm.pallet.Event.NotifyDecodeFailed - | t.pallet_xcm.pallet.Event.InvalidResponder - | t.pallet_xcm.pallet.Event.InvalidResponderVersion - | t.pallet_xcm.pallet.Event.ResponseTaken - | t.pallet_xcm.pallet.Event.AssetsTrapped - | t.pallet_xcm.pallet.Event.VersionChangeNotified - | t.pallet_xcm.pallet.Event.SupportedVersionChanged - | t.pallet_xcm.pallet.Event.NotifyTargetSendFail - | t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail - | t.pallet_xcm.pallet.Event.AssetsClaimed + | t.types.pallet_xcm.pallet.Event.Attempted + | t.types.pallet_xcm.pallet.Event.Sent + | t.types.pallet_xcm.pallet.Event.UnexpectedResponse + | t.types.pallet_xcm.pallet.Event.ResponseReady + | t.types.pallet_xcm.pallet.Event.Notified + | t.types.pallet_xcm.pallet.Event.NotifyOverweight + | t.types.pallet_xcm.pallet.Event.NotifyDispatchError + | t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed + | t.types.pallet_xcm.pallet.Event.InvalidResponder + | t.types.pallet_xcm.pallet.Event.InvalidResponderVersion + | t.types.pallet_xcm.pallet.Event.ResponseTaken + | t.types.pallet_xcm.pallet.Event.AssetsTrapped + | t.types.pallet_xcm.pallet.Event.VersionChangeNotified + | t.types.pallet_xcm.pallet.Event.SupportedVersionChanged + | t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail + | t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail + | t.types.pallet_xcm.pallet.Event.AssetsClaimed export namespace Event { /** * Execution of an XCM message was attempted. @@ -412,7 +412,7 @@ export namespace Event { */ export interface Attempted { type: "Attempted" - value: t.xcm.v2.traits.Outcome + value: t.types.xcm.v2.traits.Outcome } /** * A XCM message was sent. @@ -422,9 +422,9 @@ export namespace Event { export interface Sent { type: "Sent" value: [ - t.xcm.v1.multilocation.MultiLocation, - t.xcm.v1.multilocation.MultiLocation, - Array, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.v1.multilocation.MultiLocation, + Array, ] } /** @@ -436,7 +436,7 @@ export namespace Event { */ export interface UnexpectedResponse { type: "UnexpectedResponse" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64] } /** * Query response has been received and is ready for taking with `take_response`. There is @@ -446,7 +446,7 @@ export namespace Event { */ export interface ResponseReady { type: "ResponseReady" - value: [t.u64, t.xcm.v2.Response] + value: [t.types.u64, t.types.xcm.v2.Response] } /** * Query response has been received and query is removed. The registered notification has @@ -456,7 +456,7 @@ export namespace Event { */ export interface Notified { type: "Notified" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Query response has been received and query is removed. The registered notification could @@ -467,7 +467,13 @@ export namespace Event { */ export interface NotifyOverweight { type: "NotifyOverweight" - value: [t.u64, t.u8, t.u8, t.sp_weights.weight_v2.Weight, t.sp_weights.weight_v2.Weight] + value: [ + t.types.u64, + t.types.u8, + t.types.u8, + t.types.sp_weights.weight_v2.Weight, + t.types.sp_weights.weight_v2.Weight, + ] } /** * Query response has been received and query is removed. There was a general error with @@ -477,7 +483,7 @@ export namespace Event { */ export interface NotifyDispatchError { type: "NotifyDispatchError" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Query response has been received and query is removed. The dispatch was unable to be @@ -488,7 +494,7 @@ export namespace Event { */ export interface NotifyDecodeFailed { type: "NotifyDecodeFailed" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Expected query response has been received but the origin location of the response does @@ -500,9 +506,9 @@ export namespace Event { export interface InvalidResponder { type: "InvalidResponder" value: [ - t.xcm.v1.multilocation.MultiLocation, - t.u64, - t.xcm.v1.multilocation.MultiLocation | undefined, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.u64, + t.types.xcm.v1.multilocation.MultiLocation | undefined, ] } /** @@ -518,7 +524,7 @@ export namespace Event { */ export interface InvalidResponderVersion { type: "InvalidResponderVersion" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64] } /** * Received query response has been read and removed. @@ -527,7 +533,7 @@ export namespace Event { */ export interface ResponseTaken { type: "ResponseTaken" - value: t.u64 + value: t.types.u64 } /** * Some assets have been placed in an asset trap. @@ -537,9 +543,9 @@ export namespace Event { export interface AssetsTrapped { type: "AssetsTrapped" value: [ - t.primitive_types.H256, - t.xcm.v1.multilocation.MultiLocation, - t.xcm.VersionedMultiAssets, + t.types.primitive_types.H256, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.VersionedMultiAssets, ] } /** @@ -549,7 +555,7 @@ export namespace Event { */ export interface VersionChangeNotified { type: "VersionChangeNotified" - value: [t.xcm.v1.multilocation.MultiLocation, t.u32] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u32] } /** * The supported version of a location has been changed. This might be through an @@ -559,7 +565,7 @@ export namespace Event { */ export interface SupportedVersionChanged { type: "SupportedVersionChanged" - value: [t.xcm.v1.multilocation.MultiLocation, t.u32] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u32] } /** * A given location which had a version change subscription was dropped owing to an error @@ -569,7 +575,7 @@ export namespace Event { */ export interface NotifyTargetSendFail { type: "NotifyTargetSendFail" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64, t.xcm.v2.traits.Error] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64, t.types.xcm.v2.traits.Error] } /** * A given location which had a version change subscription was dropped owing to an error @@ -579,7 +585,7 @@ export namespace Event { */ export interface NotifyTargetMigrationFail { type: "NotifyTargetMigrationFail" - value: [t.xcm.VersionedMultiLocation, t.u64] + value: [t.types.xcm.VersionedMultiLocation, t.types.u64] } /** * Some assets have been claimed from an asset trap @@ -589,9 +595,9 @@ export namespace Event { export interface AssetsClaimed { type: "AssetsClaimed" value: [ - t.primitive_types.H256, - t.xcm.v1.multilocation.MultiLocation, - t.xcm.VersionedMultiAssets, + t.types.primitive_types.H256, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.VersionedMultiAssets, ] } /** @@ -600,8 +606,8 @@ export namespace Event { * \[ outcome \] */ export function Attempted( - value: t.pallet_xcm.pallet.Event.Attempted["value"], - ): t.pallet_xcm.pallet.Event.Attempted { + value: t.types.pallet_xcm.pallet.Event.Attempted["value"], + ): t.types.pallet_xcm.pallet.Event.Attempted { return { type: "Attempted", value } } /** @@ -610,8 +616,8 @@ export namespace Event { * \[ origin, destination, message \] */ export function Sent( - ...value: t.pallet_xcm.pallet.Event.Sent["value"] - ): t.pallet_xcm.pallet.Event.Sent { + ...value: t.types.pallet_xcm.pallet.Event.Sent["value"] + ): t.types.pallet_xcm.pallet.Event.Sent { return { type: "Sent", value } } /** @@ -622,8 +628,8 @@ export namespace Event { * \[ origin location, id \] */ export function UnexpectedResponse( - ...value: t.pallet_xcm.pallet.Event.UnexpectedResponse["value"] - ): t.pallet_xcm.pallet.Event.UnexpectedResponse { + ...value: t.types.pallet_xcm.pallet.Event.UnexpectedResponse["value"] + ): t.types.pallet_xcm.pallet.Event.UnexpectedResponse { return { type: "UnexpectedResponse", value } } /** @@ -633,8 +639,8 @@ export namespace Event { * \[ id, response \] */ export function ResponseReady( - ...value: t.pallet_xcm.pallet.Event.ResponseReady["value"] - ): t.pallet_xcm.pallet.Event.ResponseReady { + ...value: t.types.pallet_xcm.pallet.Event.ResponseReady["value"] + ): t.types.pallet_xcm.pallet.Event.ResponseReady { return { type: "ResponseReady", value } } /** @@ -644,8 +650,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function Notified( - ...value: t.pallet_xcm.pallet.Event.Notified["value"] - ): t.pallet_xcm.pallet.Event.Notified { + ...value: t.types.pallet_xcm.pallet.Event.Notified["value"] + ): t.types.pallet_xcm.pallet.Event.Notified { return { type: "Notified", value } } /** @@ -656,8 +662,8 @@ export namespace Event { * \[ id, pallet index, call index, actual weight, max budgeted weight \] */ export function NotifyOverweight( - ...value: t.pallet_xcm.pallet.Event.NotifyOverweight["value"] - ): t.pallet_xcm.pallet.Event.NotifyOverweight { + ...value: t.types.pallet_xcm.pallet.Event.NotifyOverweight["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyOverweight { return { type: "NotifyOverweight", value } } /** @@ -667,8 +673,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function NotifyDispatchError( - ...value: t.pallet_xcm.pallet.Event.NotifyDispatchError["value"] - ): t.pallet_xcm.pallet.Event.NotifyDispatchError { + ...value: t.types.pallet_xcm.pallet.Event.NotifyDispatchError["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyDispatchError { return { type: "NotifyDispatchError", value } } /** @@ -679,8 +685,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function NotifyDecodeFailed( - ...value: t.pallet_xcm.pallet.Event.NotifyDecodeFailed["value"] - ): t.pallet_xcm.pallet.Event.NotifyDecodeFailed { + ...value: t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed { return { type: "NotifyDecodeFailed", value } } /** @@ -691,8 +697,8 @@ export namespace Event { * \[ origin location, id, expected location \] */ export function InvalidResponder( - ...value: t.pallet_xcm.pallet.Event.InvalidResponder["value"] - ): t.pallet_xcm.pallet.Event.InvalidResponder { + ...value: t.types.pallet_xcm.pallet.Event.InvalidResponder["value"] + ): t.types.pallet_xcm.pallet.Event.InvalidResponder { return { type: "InvalidResponder", value } } /** @@ -707,8 +713,8 @@ export namespace Event { * \[ origin location, id \] */ export function InvalidResponderVersion( - ...value: t.pallet_xcm.pallet.Event.InvalidResponderVersion["value"] - ): t.pallet_xcm.pallet.Event.InvalidResponderVersion { + ...value: t.types.pallet_xcm.pallet.Event.InvalidResponderVersion["value"] + ): t.types.pallet_xcm.pallet.Event.InvalidResponderVersion { return { type: "InvalidResponderVersion", value } } /** @@ -717,8 +723,8 @@ export namespace Event { * \[ id \] */ export function ResponseTaken( - value: t.pallet_xcm.pallet.Event.ResponseTaken["value"], - ): t.pallet_xcm.pallet.Event.ResponseTaken { + value: t.types.pallet_xcm.pallet.Event.ResponseTaken["value"], + ): t.types.pallet_xcm.pallet.Event.ResponseTaken { return { type: "ResponseTaken", value } } /** @@ -727,8 +733,8 @@ export namespace Event { * \[ hash, origin, assets \] */ export function AssetsTrapped( - ...value: t.pallet_xcm.pallet.Event.AssetsTrapped["value"] - ): t.pallet_xcm.pallet.Event.AssetsTrapped { + ...value: t.types.pallet_xcm.pallet.Event.AssetsTrapped["value"] + ): t.types.pallet_xcm.pallet.Event.AssetsTrapped { return { type: "AssetsTrapped", value } } /** @@ -737,8 +743,8 @@ export namespace Event { * \[ destination, result \] */ export function VersionChangeNotified( - ...value: t.pallet_xcm.pallet.Event.VersionChangeNotified["value"] - ): t.pallet_xcm.pallet.Event.VersionChangeNotified { + ...value: t.types.pallet_xcm.pallet.Event.VersionChangeNotified["value"] + ): t.types.pallet_xcm.pallet.Event.VersionChangeNotified { return { type: "VersionChangeNotified", value } } /** @@ -748,8 +754,8 @@ export namespace Event { * \[ location, XCM version \] */ export function SupportedVersionChanged( - ...value: t.pallet_xcm.pallet.Event.SupportedVersionChanged["value"] - ): t.pallet_xcm.pallet.Event.SupportedVersionChanged { + ...value: t.types.pallet_xcm.pallet.Event.SupportedVersionChanged["value"] + ): t.types.pallet_xcm.pallet.Event.SupportedVersionChanged { return { type: "SupportedVersionChanged", value } } /** @@ -759,8 +765,8 @@ export namespace Event { * \[ location, query ID, error \] */ export function NotifyTargetSendFail( - ...value: t.pallet_xcm.pallet.Event.NotifyTargetSendFail["value"] - ): t.pallet_xcm.pallet.Event.NotifyTargetSendFail { + ...value: t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail { return { type: "NotifyTargetSendFail", value } } /** @@ -770,8 +776,8 @@ export namespace Event { * \[ location, query ID \] */ export function NotifyTargetMigrationFail( - ...value: t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail["value"] - ): t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail { + ...value: t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail { return { type: "NotifyTargetMigrationFail", value } } /** @@ -780,77 +786,79 @@ export namespace Event { * \[ hash, origin, assets \] */ export function AssetsClaimed( - ...value: t.pallet_xcm.pallet.Event.AssetsClaimed["value"] - ): t.pallet_xcm.pallet.Event.AssetsClaimed { + ...value: t.types.pallet_xcm.pallet.Event.AssetsClaimed["value"] + ): t.types.pallet_xcm.pallet.Event.AssetsClaimed { return { type: "AssetsClaimed", value } } } -export type Origin = t.pallet_xcm.pallet.Origin.Xcm | t.pallet_xcm.pallet.Origin.Response +export type Origin = + | t.types.pallet_xcm.pallet.Origin.Xcm + | t.types.pallet_xcm.pallet.Origin.Response export namespace Origin { export interface Xcm { type: "Xcm" - value: t.xcm.v1.multilocation.MultiLocation + value: t.types.xcm.v1.multilocation.MultiLocation } export interface Response { type: "Response" - value: t.xcm.v1.multilocation.MultiLocation + value: t.types.xcm.v1.multilocation.MultiLocation } export function Xcm( - value: t.pallet_xcm.pallet.Origin.Xcm["value"], - ): t.pallet_xcm.pallet.Origin.Xcm { + value: t.types.pallet_xcm.pallet.Origin.Xcm["value"], + ): t.types.pallet_xcm.pallet.Origin.Xcm { return { type: "Xcm", value } } export function Response( - value: t.pallet_xcm.pallet.Origin.Response["value"], - ): t.pallet_xcm.pallet.Origin.Response { + value: t.types.pallet_xcm.pallet.Origin.Response["value"], + ): t.types.pallet_xcm.pallet.Origin.Response { return { type: "Response", value } } } export type QueryStatus = - | t.pallet_xcm.pallet.QueryStatus.Pending - | t.pallet_xcm.pallet.QueryStatus.VersionNotifier - | t.pallet_xcm.pallet.QueryStatus.Ready + | t.types.pallet_xcm.pallet.QueryStatus.Pending + | t.types.pallet_xcm.pallet.QueryStatus.VersionNotifier + | t.types.pallet_xcm.pallet.QueryStatus.Ready export namespace QueryStatus { export interface Pending { type: "Pending" - responder: t.xcm.VersionedMultiLocation - maybe_notify: [t.u8, t.u8] | undefined - timeout: t.u32 + responder: t.types.xcm.VersionedMultiLocation + maybe_notify: [t.types.u8, t.types.u8] | undefined + timeout: t.types.u32 } export interface VersionNotifier { type: "VersionNotifier" - origin: t.xcm.VersionedMultiLocation + origin: t.types.xcm.VersionedMultiLocation is_active: boolean } export interface Ready { type: "Ready" - response: t.xcm.VersionedResponse - at: t.u32 + response: t.types.xcm.VersionedResponse + at: t.types.u32 } export function Pending( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.Pending { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.Pending { return { type: "Pending", ...value } } export function VersionNotifier( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.VersionNotifier { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.VersionNotifier { return { type: "VersionNotifier", ...value } } export function Ready( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.Ready { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.Ready { return { type: "Ready", ...value } } } export type VersionMigrationStage = - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers - | t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers + | t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets export namespace VersionMigrationStage { export interface MigrateSupportedVersion { type: "MigrateSupportedVersion" @@ -865,18 +873,18 @@ export namespace VersionMigrationStage { export interface MigrateAndNotifyOldTargets { type: "MigrateAndNotifyOldTargets" } - export function MigrateSupportedVersion(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion { + export function MigrateSupportedVersion(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion { return { type: "MigrateSupportedVersion" } } - export function MigrateVersionNotifiers(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers { + export function MigrateVersionNotifiers(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers { return { type: "MigrateVersionNotifiers" } } export function NotifyCurrentTargets( - value: t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets["value"], - ): t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets { + value: t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets["value"], + ): t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets { return { type: "NotifyCurrentTargets", value } } - export function MigrateAndNotifyOldTargets(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets { + export function MigrateAndNotifyOldTargets(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets { return { type: "MigrateAndNotifyOldTargets" } } } diff --git a/codegen/_output/polkadot/types/polkadot_core_primitives.ts b/codegen/_output/polkadot/types/polkadot_core_primitives.ts new file mode 100644 index 000000000..535b94e7a --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_core_primitives.ts @@ -0,0 +1,50 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $candidateHash: $.Codec = _codec.$114 + +export const $inboundDownwardMessage: $.Codec< + t.types.polkadot_core_primitives.InboundDownwardMessage +> = _codec.$683 + +export const $inboundHrmpMessage: $.Codec = + _codec.$691 + +export const $outboundHrmpMessage: $.Codec = + _codec.$392 + +export type CandidateHash = t.types.primitive_types.H256 + +export function CandidateHash(value: t.types.polkadot_core_primitives.CandidateHash) { + return value +} + +export interface InboundDownwardMessage { + sent_at: t.types.u32 + msg: Uint8Array +} + +export function InboundDownwardMessage( + value: t.types.polkadot_core_primitives.InboundDownwardMessage, +) { + return value +} + +export interface InboundHrmpMessage { + sent_at: t.types.u32 + data: Uint8Array +} + +export function InboundHrmpMessage(value: t.types.polkadot_core_primitives.InboundHrmpMessage) { + return value +} + +export interface OutboundHrmpMessage { + recipient: t.types.polkadot_parachain.primitives.Id + data: Uint8Array +} + +export function OutboundHrmpMessage(value: t.types.polkadot_core_primitives.OutboundHrmpMessage) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_parachain/mod.ts b/codegen/_output/polkadot/types/polkadot_parachain/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_parachain/mod.ts rename to codegen/_output/polkadot/types/polkadot_parachain/mod.ts diff --git a/codegen/_output/polkadot/types/polkadot_parachain/primitives.ts b/codegen/_output/polkadot/types/polkadot_parachain/primitives.ts new file mode 100644 index 000000000..b1e2f7973 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_parachain/primitives.ts @@ -0,0 +1,52 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $headData: $.Codec = _codec.$104 + +export const $hrmpChannelId: $.Codec = + _codec.$112 + +export const $id: $.Codec = _codec.$98 + +export const $validationCode: $.Codec = + _codec.$394 + +export const $validationCodeHash: $.Codec< + t.types.polkadot_parachain.primitives.ValidationCodeHash +> = _codec.$103 + +export type HeadData = Uint8Array + +export function HeadData(value: t.types.polkadot_parachain.primitives.HeadData) { + return value +} + +export interface HrmpChannelId { + sender: t.types.polkadot_parachain.primitives.Id + recipient: t.types.polkadot_parachain.primitives.Id +} + +export function HrmpChannelId(value: t.types.polkadot_parachain.primitives.HrmpChannelId) { + return value +} + +export type Id = t.types.u32 + +export function Id(value: t.types.polkadot_parachain.primitives.Id) { + return value +} + +export type ValidationCode = Uint8Array + +export function ValidationCode(value: t.types.polkadot_parachain.primitives.ValidationCode) { + return value +} + +export type ValidationCodeHash = t.types.primitive_types.H256 + +export function ValidationCodeHash( + value: t.types.polkadot_parachain.primitives.ValidationCodeHash, +) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_primitives/mod.ts b/codegen/_output/polkadot/types/polkadot_primitives/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_primitives/mod.ts rename to codegen/_output/polkadot/types/polkadot_primitives/mod.ts diff --git a/codegen/_output/polkadot/types/polkadot_primitives/v2/assignment_app.ts b/codegen/_output/polkadot/types/polkadot_primitives/v2/assignment_app.ts new file mode 100644 index 000000000..0f57693fe --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_primitives/v2/assignment_app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$214 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.assignment_app.Public) { + return value +} diff --git a/codegen/_output/polkadot/types/polkadot_primitives/v2/collator_app.ts b/codegen/_output/polkadot/types/polkadot_primitives/v2/collator_app.ts new file mode 100644 index 000000000..380e89642 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_primitives/v2/collator_app.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$99 + +export const $signature: $.Codec = + _codec.$100 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.collator_app.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.polkadot_primitives.v2.collator_app.Signature) { + return value +} diff --git a/codegen/_output/polkadot/types/polkadot_primitives/v2/mod.ts b/codegen/_output/polkadot/types/polkadot_primitives/v2/mod.ts new file mode 100644 index 000000000..4a6f7229c --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_primitives/v2/mod.ts @@ -0,0 +1,375 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as assignment_app from "./assignment_app.ts" +export * as collator_app from "./collator_app.ts" +export * as signed from "./signed.ts" +export * as validator_app from "./validator_app.ts" + +export const $availabilityBitfield: $.Codec = + _codec.$382 + +export const $backedCandidate: $.Codec = _codec.$388 + +export const $candidateCommitments: $.Codec = + _codec.$390 + +export const $candidateDescriptor: $.Codec = + _codec.$97 + +export const $candidateReceipt: $.Codec = + _codec.$96 + +export const $committedCandidateReceipt: $.Codec< + t.types.polkadot_primitives.v2.CommittedCandidateReceipt +> = _codec.$389 + +export const $coreIndex: $.Codec = _codec.$105 + +export const $coreOccupied: $.Codec = _codec.$661 + +export const $disputeState: $.Codec = _codec.$699 + +export const $disputeStatement: $.Codec = + _codec.$401 + +export const $disputeStatementSet: $.Codec = + _codec.$398 + +export const $groupIndex: $.Codec = _codec.$106 + +export const $inherentData: $.Codec = _codec.$379 + +export const $invalidDisputeStatementKind: $.Codec< + t.types.polkadot_primitives.v2.InvalidDisputeStatementKind +> = _codec.$403 + +export const $parathreadClaim: $.Codec = _codec.$658 + +export const $parathreadEntry: $.Codec = _codec.$657 + +export const $pvfCheckStatement: $.Codec = + _codec.$405 + +export const $scrapedOnChainVotes: $.Codec = + _codec.$647 + +export const $sessionInfo: $.Codec = _codec.$696 + +export const $upgradeGoAhead: $.Codec = _codec.$676 + +export const $upgradeRestriction: $.Codec = + _codec.$677 + +export const $validDisputeStatementKind: $.Codec< + t.types.polkadot_primitives.v2.ValidDisputeStatementKind +> = _codec.$402 + +export const $validatorIndex: $.Codec = _codec.$385 + +export const $validityAttestation: $.Codec = + _codec.$396 + +export type AvailabilityBitfield = $.BitSequence + +export function AvailabilityBitfield(value: t.types.polkadot_primitives.v2.AvailabilityBitfield) { + return value +} + +export interface BackedCandidate { + candidate: t.types.polkadot_primitives.v2.CommittedCandidateReceipt + validity_votes: Array + validator_indices: $.BitSequence +} + +export function BackedCandidate(value: t.types.polkadot_primitives.v2.BackedCandidate) { + return value +} + +export interface CandidateCommitments { + upward_messages: Array + horizontal_messages: Array + new_validation_code: t.types.polkadot_parachain.primitives.ValidationCode | undefined + head_data: t.types.polkadot_parachain.primitives.HeadData + processed_downward_messages: t.types.u32 + hrmp_watermark: t.types.u32 +} + +export function CandidateCommitments(value: t.types.polkadot_primitives.v2.CandidateCommitments) { + return value +} + +export interface CandidateDescriptor { + para_id: t.types.polkadot_parachain.primitives.Id + relay_parent: t.types.primitive_types.H256 + collator: t.types.polkadot_primitives.v2.collator_app.Public + persisted_validation_data_hash: t.types.primitive_types.H256 + pov_hash: t.types.primitive_types.H256 + erasure_root: t.types.primitive_types.H256 + signature: t.types.polkadot_primitives.v2.collator_app.Signature + para_head: t.types.primitive_types.H256 + validation_code_hash: t.types.polkadot_parachain.primitives.ValidationCodeHash +} + +export function CandidateDescriptor(value: t.types.polkadot_primitives.v2.CandidateDescriptor) { + return value +} + +export interface CandidateReceipt { + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + commitments_hash: t.types.primitive_types.H256 +} + +export function CandidateReceipt(value: t.types.polkadot_primitives.v2.CandidateReceipt) { + return value +} + +export interface CommittedCandidateReceipt { + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + commitments: t.types.polkadot_primitives.v2.CandidateCommitments +} + +export function CommittedCandidateReceipt( + value: t.types.polkadot_primitives.v2.CommittedCandidateReceipt, +) { + return value +} + +export type CoreIndex = t.types.u32 + +export function CoreIndex(value: t.types.polkadot_primitives.v2.CoreIndex) { + return value +} + +export type CoreOccupied = + | t.types.polkadot_primitives.v2.CoreOccupied.Parathread + | t.types.polkadot_primitives.v2.CoreOccupied.Parachain +export namespace CoreOccupied { + export interface Parathread { + type: "Parathread" + value: t.types.polkadot_primitives.v2.ParathreadEntry + } + export interface Parachain { + type: "Parachain" + } + export function Parathread( + value: t.types.polkadot_primitives.v2.CoreOccupied.Parathread["value"], + ): t.types.polkadot_primitives.v2.CoreOccupied.Parathread { + return { type: "Parathread", value } + } + export function Parachain(): t.types.polkadot_primitives.v2.CoreOccupied.Parachain { + return { type: "Parachain" } + } +} + +export interface DisputeState { + validators_for: $.BitSequence + validators_against: $.BitSequence + start: t.types.u32 + concluded_at: t.types.u32 | undefined +} + +export function DisputeState(value: t.types.polkadot_primitives.v2.DisputeState) { + return value +} + +export type DisputeStatement = + | t.types.polkadot_primitives.v2.DisputeStatement.Valid + | t.types.polkadot_primitives.v2.DisputeStatement.Invalid +export namespace DisputeStatement { + export interface Valid { + type: "Valid" + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind + } + export interface Invalid { + type: "Invalid" + value: t.types.polkadot_primitives.v2.InvalidDisputeStatementKind + } + export function Valid( + value: t.types.polkadot_primitives.v2.DisputeStatement.Valid["value"], + ): t.types.polkadot_primitives.v2.DisputeStatement.Valid { + return { type: "Valid", value } + } + export function Invalid( + value: t.types.polkadot_primitives.v2.DisputeStatement.Invalid["value"], + ): t.types.polkadot_primitives.v2.DisputeStatement.Invalid { + return { type: "Invalid", value } + } +} + +export interface DisputeStatementSet { + candidate_hash: t.types.polkadot_core_primitives.CandidateHash + session: t.types.u32 + statements: Array< + [ + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, + ] + > +} + +export function DisputeStatementSet(value: t.types.polkadot_primitives.v2.DisputeStatementSet) { + return value +} + +export type GroupIndex = t.types.u32 + +export function GroupIndex(value: t.types.polkadot_primitives.v2.GroupIndex) { + return value +} + +export interface InherentData { + bitfields: Array + backed_candidates: Array + disputes: Array + parent_header: t.types.sp_runtime.generic.header.Header +} + +export function InherentData(value: t.types.polkadot_primitives.v2.InherentData) { + return value +} + +export type InvalidDisputeStatementKind = "Explicit" + +export type ParathreadClaim = [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_primitives.v2.collator_app.Public, +] + +export function ParathreadClaim(...value: t.types.polkadot_primitives.v2.ParathreadClaim) { + return value +} + +export interface ParathreadEntry { + claim: t.types.polkadot_primitives.v2.ParathreadClaim + retries: t.types.u32 +} + +export function ParathreadEntry(value: t.types.polkadot_primitives.v2.ParathreadEntry) { + return value +} + +export interface PvfCheckStatement { + accept: boolean + subject: t.types.polkadot_parachain.primitives.ValidationCodeHash + session_index: t.types.u32 + validator_index: t.types.polkadot_primitives.v2.ValidatorIndex +} + +export function PvfCheckStatement(value: t.types.polkadot_primitives.v2.PvfCheckStatement) { + return value +} + +export interface ScrapedOnChainVotes { + session: t.types.u32 + backing_validators_per_candidate: Array< + [ + t.types.polkadot_primitives.v2.CandidateReceipt, + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + >, + ] + > + disputes: Array +} + +export function ScrapedOnChainVotes(value: t.types.polkadot_primitives.v2.ScrapedOnChainVotes) { + return value +} + +export interface SessionInfo { + active_validator_indices: Array + random_seed: Uint8Array + dispute_period: t.types.u32 + validators: Array + discovery_keys: Array + assignment_keys: Array + validator_groups: Array> + n_cores: t.types.u32 + zeroth_delay_tranche_width: t.types.u32 + relay_vrf_modulo_samples: t.types.u32 + n_delay_tranches: t.types.u32 + no_show_slots: t.types.u32 + needed_approvals: t.types.u32 +} + +export function SessionInfo(value: t.types.polkadot_primitives.v2.SessionInfo) { + return value +} + +export type UpgradeGoAhead = "Abort" | "GoAhead" + +export type UpgradeRestriction = "Present" + +export type ValidDisputeStatementKind = + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking +export namespace ValidDisputeStatementKind { + export interface Explicit { + type: "Explicit" + } + export interface BackingSeconded { + type: "BackingSeconded" + value: t.types.primitive_types.H256 + } + export interface BackingValid { + type: "BackingValid" + value: t.types.primitive_types.H256 + } + export interface ApprovalChecking { + type: "ApprovalChecking" + } + export function Explicit(): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit { + return { type: "Explicit" } + } + export function BackingSeconded( + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded["value"], + ): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded { + return { type: "BackingSeconded", value } + } + export function BackingValid( + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid["value"], + ): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid { + return { type: "BackingValid", value } + } + export function ApprovalChecking(): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking { + return { type: "ApprovalChecking" } + } +} + +export type ValidatorIndex = t.types.u32 + +export function ValidatorIndex(value: t.types.polkadot_primitives.v2.ValidatorIndex) { + return value +} + +export type ValidityAttestation = + | t.types.polkadot_primitives.v2.ValidityAttestation.Implicit + | t.types.polkadot_primitives.v2.ValidityAttestation.Explicit +export namespace ValidityAttestation { + export interface Implicit { + type: "Implicit" + value: t.types.polkadot_primitives.v2.validator_app.Signature + } + export interface Explicit { + type: "Explicit" + value: t.types.polkadot_primitives.v2.validator_app.Signature + } + export function Implicit( + value: t.types.polkadot_primitives.v2.ValidityAttestation.Implicit["value"], + ): t.types.polkadot_primitives.v2.ValidityAttestation.Implicit { + return { type: "Implicit", value } + } + export function Explicit( + value: t.types.polkadot_primitives.v2.ValidityAttestation.Explicit["value"], + ): t.types.polkadot_primitives.v2.ValidityAttestation.Explicit { + return { type: "Explicit", value } + } +} diff --git a/codegen/_output/polkadot/types/polkadot_primitives/v2/signed.ts b/codegen/_output/polkadot/types/polkadot_primitives/v2/signed.ts new file mode 100644 index 000000000..20d05131a --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_primitives/v2/signed.ts @@ -0,0 +1,16 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $uncheckedSigned: $.Codec = + _codec.$381 + +export interface UncheckedSigned { + payload: t.types.polkadot_primitives.v2.AvailabilityBitfield + validator_index: t.types.polkadot_primitives.v2.ValidatorIndex + signature: t.types.polkadot_primitives.v2.validator_app.Signature +} + +export function UncheckedSigned(value: t.types.polkadot_primitives.v2.signed.UncheckedSigned) { + return value +} diff --git a/codegen/_output/polkadot/types/polkadot_primitives/v2/validator_app.ts b/codegen/_output/polkadot/types/polkadot_primitives/v2/validator_app.ts new file mode 100644 index 000000000..fc40bffc1 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_primitives/v2/validator_app.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$213 + +export const $signature: $.Codec = + _codec.$386 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.validator_app.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.polkadot_primitives.v2.validator_app.Signature) { + return value +} diff --git a/codegen/_output/polkadot/types/polkadot_runtime.ts b/codegen/_output/polkadot/types/polkadot_runtime.ts new file mode 100644 index 000000000..ad598446e --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime.ts @@ -0,0 +1,1224 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $nposCompactSolution16: $.Codec = + _codec.$312 + +export const $originCaller: $.Codec = _codec.$256 + +export const $proxyType: $.Codec = _codec.$79 + +export const $runtime: $.Codec = _codec.$737 + +export const $runtimeCall: $.Codec = _codec.$181 + +export const $runtimeEvent: $.Codec = _codec.$19 + +export const $sessionKeys: $.Codec = _codec.$212 + +export interface NposCompactSolution16 { + votes1: Array<[t.Compact, t.Compact]> + votes2: Array< + [ + t.Compact, + [t.Compact, t.Compact], + t.Compact, + ] + > + votes3: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes4: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes5: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes6: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes7: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes8: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes9: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes10: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes11: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes12: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes13: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes14: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes15: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes16: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > +} + +export function NposCompactSolution16(value: t.types.polkadot_runtime.NposCompactSolution16) { + return value +} + +export type OriginCaller = + | t.types.polkadot_runtime.OriginCaller.system + | t.types.polkadot_runtime.OriginCaller.Council + | t.types.polkadot_runtime.OriginCaller.TechnicalCommittee + | t.types.polkadot_runtime.OriginCaller.ParachainsOrigin + | t.types.polkadot_runtime.OriginCaller.XcmPallet + | t.types.polkadot_runtime.OriginCaller.Void +export namespace OriginCaller { + export interface system { + type: "system" + value: t.types.frame_support.dispatch.RawOrigin + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.RawOrigin + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.RawOrigin + } + export interface ParachainsOrigin { + type: "ParachainsOrigin" + value: t.types.polkadot_runtime_parachains.origin.pallet.Origin + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Origin + } + export interface Void { + type: "Void" + value: t.types.sp_core.Void + } + export function system( + value: t.types.polkadot_runtime.OriginCaller.system["value"], + ): t.types.polkadot_runtime.OriginCaller.system { + return { type: "system", value } + } + export function Council( + value: t.types.polkadot_runtime.OriginCaller.Council["value"], + ): t.types.polkadot_runtime.OriginCaller.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.OriginCaller.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.OriginCaller.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function ParachainsOrigin( + value: t.types.polkadot_runtime.OriginCaller.ParachainsOrigin["value"], + ): t.types.polkadot_runtime.OriginCaller.ParachainsOrigin { + return { type: "ParachainsOrigin", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.OriginCaller.XcmPallet["value"], + ): t.types.polkadot_runtime.OriginCaller.XcmPallet { + return { type: "XcmPallet", value } + } + export function Void( + value: t.types.polkadot_runtime.OriginCaller.Void["value"], + ): t.types.polkadot_runtime.OriginCaller.Void { + return { type: "Void", value } + } +} + +export type ProxyType = + | "Any" + | "NonTransfer" + | "Governance" + | "Staking" + | "IdentityJudgement" + | "CancelProxy" + | "Auction" + +export function Runtime() { + return null +} + +export type Runtime = null + +export type RuntimeCall = + | t.types.polkadot_runtime.RuntimeCall.System + | t.types.polkadot_runtime.RuntimeCall.Scheduler + | t.types.polkadot_runtime.RuntimeCall.Preimage + | t.types.polkadot_runtime.RuntimeCall.Babe + | t.types.polkadot_runtime.RuntimeCall.Timestamp + | t.types.polkadot_runtime.RuntimeCall.Indices + | t.types.polkadot_runtime.RuntimeCall.Balances + | t.types.polkadot_runtime.RuntimeCall.Authorship + | t.types.polkadot_runtime.RuntimeCall.Staking + | t.types.polkadot_runtime.RuntimeCall.Session + | t.types.polkadot_runtime.RuntimeCall.Grandpa + | t.types.polkadot_runtime.RuntimeCall.ImOnline + | t.types.polkadot_runtime.RuntimeCall.Democracy + | t.types.polkadot_runtime.RuntimeCall.Council + | t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee + | t.types.polkadot_runtime.RuntimeCall.PhragmenElection + | t.types.polkadot_runtime.RuntimeCall.TechnicalMembership + | t.types.polkadot_runtime.RuntimeCall.Treasury + | t.types.polkadot_runtime.RuntimeCall.Claims + | t.types.polkadot_runtime.RuntimeCall.Vesting + | t.types.polkadot_runtime.RuntimeCall.Utility + | t.types.polkadot_runtime.RuntimeCall.Identity + | t.types.polkadot_runtime.RuntimeCall.Proxy + | t.types.polkadot_runtime.RuntimeCall.Multisig + | t.types.polkadot_runtime.RuntimeCall.Bounties + | t.types.polkadot_runtime.RuntimeCall.ChildBounties + | t.types.polkadot_runtime.RuntimeCall.Tips + | t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase + | t.types.polkadot_runtime.RuntimeCall.VoterList + | t.types.polkadot_runtime.RuntimeCall.NominationPools + | t.types.polkadot_runtime.RuntimeCall.FastUnstake + | t.types.polkadot_runtime.RuntimeCall.Configuration + | t.types.polkadot_runtime.RuntimeCall.ParasShared + | t.types.polkadot_runtime.RuntimeCall.ParaInclusion + | t.types.polkadot_runtime.RuntimeCall.ParaInherent + | t.types.polkadot_runtime.RuntimeCall.Paras + | t.types.polkadot_runtime.RuntimeCall.Initializer + | t.types.polkadot_runtime.RuntimeCall.Dmp + | t.types.polkadot_runtime.RuntimeCall.Ump + | t.types.polkadot_runtime.RuntimeCall.Hrmp + | t.types.polkadot_runtime.RuntimeCall.ParasDisputes + | t.types.polkadot_runtime.RuntimeCall.Registrar + | t.types.polkadot_runtime.RuntimeCall.Slots + | t.types.polkadot_runtime.RuntimeCall.Auctions + | t.types.polkadot_runtime.RuntimeCall.Crowdloan + | t.types.polkadot_runtime.RuntimeCall.XcmPallet +export namespace RuntimeCall { + export interface System { + type: "System" + value: t.types.frame_system.pallet.Call + } + export interface Scheduler { + type: "Scheduler" + value: t.types.pallet_scheduler.pallet.Call + } + export interface Preimage { + type: "Preimage" + value: t.types.pallet_preimage.pallet.Call + } + export interface Babe { + type: "Babe" + value: t.types.pallet_babe.pallet.Call + } + export interface Timestamp { + type: "Timestamp" + value: t.types.pallet_timestamp.pallet.Call + } + export interface Indices { + type: "Indices" + value: t.types.pallet_indices.pallet.Call + } + export interface Balances { + type: "Balances" + value: t.types.pallet_balances.pallet.Call + } + export interface Authorship { + type: "Authorship" + value: t.types.pallet_authorship.pallet.Call + } + export interface Staking { + type: "Staking" + value: t.types.pallet_staking.pallet.pallet.Call + } + export interface Session { + type: "Session" + value: t.types.pallet_session.pallet.Call + } + export interface Grandpa { + type: "Grandpa" + value: t.types.pallet_grandpa.pallet.Call + } + export interface ImOnline { + type: "ImOnline" + value: t.types.pallet_im_online.pallet.Call + } + export interface Democracy { + type: "Democracy" + value: t.types.pallet_democracy.pallet.Call + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.pallet.Call + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.pallet.Call + } + export interface PhragmenElection { + type: "PhragmenElection" + value: t.types.pallet_elections_phragmen.pallet.Call + } + export interface TechnicalMembership { + type: "TechnicalMembership" + value: t.types.pallet_membership.pallet.Call + } + export interface Treasury { + type: "Treasury" + value: t.types.pallet_treasury.pallet.Call + } + export interface Claims { + type: "Claims" + value: t.types.polkadot_runtime_common.claims.pallet.Call + } + export interface Vesting { + type: "Vesting" + value: t.types.pallet_vesting.pallet.Call + } + export interface Utility { + type: "Utility" + value: t.types.pallet_utility.pallet.Call + } + export interface Identity { + type: "Identity" + value: t.types.pallet_identity.pallet.Call + } + export interface Proxy { + type: "Proxy" + value: t.types.pallet_proxy.pallet.Call + } + export interface Multisig { + type: "Multisig" + value: t.types.pallet_multisig.pallet.Call + } + export interface Bounties { + type: "Bounties" + value: t.types.pallet_bounties.pallet.Call + } + export interface ChildBounties { + type: "ChildBounties" + value: t.types.pallet_child_bounties.pallet.Call + } + export interface Tips { + type: "Tips" + value: t.types.pallet_tips.pallet.Call + } + export interface ElectionProviderMultiPhase { + type: "ElectionProviderMultiPhase" + value: t.types.pallet_election_provider_multi_phase.pallet.Call + } + export interface VoterList { + type: "VoterList" + value: t.types.pallet_bags_list.pallet.Call + } + export interface NominationPools { + type: "NominationPools" + value: t.types.pallet_nomination_pools.pallet.Call + } + export interface FastUnstake { + type: "FastUnstake" + value: t.types.pallet_fast_unstake.pallet.Call + } + export interface Configuration { + type: "Configuration" + value: t.types.polkadot_runtime_parachains.configuration.pallet.Call + } + export interface ParasShared { + type: "ParasShared" + value: t.types.polkadot_runtime_parachains.shared.pallet.Call + } + export interface ParaInclusion { + type: "ParaInclusion" + value: t.types.polkadot_runtime_parachains.inclusion.pallet.Call + } + export interface ParaInherent { + type: "ParaInherent" + value: t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call + } + export interface Paras { + type: "Paras" + value: t.types.polkadot_runtime_parachains.paras.pallet.Call + } + export interface Initializer { + type: "Initializer" + value: t.types.polkadot_runtime_parachains.initializer.pallet.Call + } + export interface Dmp { + type: "Dmp" + value: t.types.polkadot_runtime_parachains.dmp.pallet.Call + } + export interface Ump { + type: "Ump" + value: t.types.polkadot_runtime_parachains.ump.pallet.Call + } + export interface Hrmp { + type: "Hrmp" + value: t.types.polkadot_runtime_parachains.hrmp.pallet.Call + } + export interface ParasDisputes { + type: "ParasDisputes" + value: t.types.polkadot_runtime_parachains.disputes.pallet.Call + } + export interface Registrar { + type: "Registrar" + value: t.types.polkadot_runtime_common.paras_registrar.pallet.Call + } + export interface Slots { + type: "Slots" + value: t.types.polkadot_runtime_common.slots.pallet.Call + } + export interface Auctions { + type: "Auctions" + value: t.types.polkadot_runtime_common.auctions.pallet.Call + } + export interface Crowdloan { + type: "Crowdloan" + value: t.types.polkadot_runtime_common.crowdloan.pallet.Call + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Call + } + export function System( + value: t.types.polkadot_runtime.RuntimeCall.System["value"], + ): t.types.polkadot_runtime.RuntimeCall.System { + return { type: "System", value } + } + export function Scheduler( + value: t.types.polkadot_runtime.RuntimeCall.Scheduler["value"], + ): t.types.polkadot_runtime.RuntimeCall.Scheduler { + return { type: "Scheduler", value } + } + export function Preimage( + value: t.types.polkadot_runtime.RuntimeCall.Preimage["value"], + ): t.types.polkadot_runtime.RuntimeCall.Preimage { + return { type: "Preimage", value } + } + export function Babe( + value: t.types.polkadot_runtime.RuntimeCall.Babe["value"], + ): t.types.polkadot_runtime.RuntimeCall.Babe { + return { type: "Babe", value } + } + export function Timestamp( + value: t.types.polkadot_runtime.RuntimeCall.Timestamp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Timestamp { + return { type: "Timestamp", value } + } + export function Indices( + value: t.types.polkadot_runtime.RuntimeCall.Indices["value"], + ): t.types.polkadot_runtime.RuntimeCall.Indices { + return { type: "Indices", value } + } + export function Balances( + value: t.types.polkadot_runtime.RuntimeCall.Balances["value"], + ): t.types.polkadot_runtime.RuntimeCall.Balances { + return { type: "Balances", value } + } + export function Authorship( + value: t.types.polkadot_runtime.RuntimeCall.Authorship["value"], + ): t.types.polkadot_runtime.RuntimeCall.Authorship { + return { type: "Authorship", value } + } + export function Staking( + value: t.types.polkadot_runtime.RuntimeCall.Staking["value"], + ): t.types.polkadot_runtime.RuntimeCall.Staking { + return { type: "Staking", value } + } + export function Session( + value: t.types.polkadot_runtime.RuntimeCall.Session["value"], + ): t.types.polkadot_runtime.RuntimeCall.Session { + return { type: "Session", value } + } + export function Grandpa( + value: t.types.polkadot_runtime.RuntimeCall.Grandpa["value"], + ): t.types.polkadot_runtime.RuntimeCall.Grandpa { + return { type: "Grandpa", value } + } + export function ImOnline( + value: t.types.polkadot_runtime.RuntimeCall.ImOnline["value"], + ): t.types.polkadot_runtime.RuntimeCall.ImOnline { + return { type: "ImOnline", value } + } + export function Democracy( + value: t.types.polkadot_runtime.RuntimeCall.Democracy["value"], + ): t.types.polkadot_runtime.RuntimeCall.Democracy { + return { type: "Democracy", value } + } + export function Council( + value: t.types.polkadot_runtime.RuntimeCall.Council["value"], + ): t.types.polkadot_runtime.RuntimeCall.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function PhragmenElection( + value: t.types.polkadot_runtime.RuntimeCall.PhragmenElection["value"], + ): t.types.polkadot_runtime.RuntimeCall.PhragmenElection { + return { type: "PhragmenElection", value } + } + export function TechnicalMembership( + value: t.types.polkadot_runtime.RuntimeCall.TechnicalMembership["value"], + ): t.types.polkadot_runtime.RuntimeCall.TechnicalMembership { + return { type: "TechnicalMembership", value } + } + export function Treasury( + value: t.types.polkadot_runtime.RuntimeCall.Treasury["value"], + ): t.types.polkadot_runtime.RuntimeCall.Treasury { + return { type: "Treasury", value } + } + export function Claims( + value: t.types.polkadot_runtime.RuntimeCall.Claims["value"], + ): t.types.polkadot_runtime.RuntimeCall.Claims { + return { type: "Claims", value } + } + export function Vesting( + value: t.types.polkadot_runtime.RuntimeCall.Vesting["value"], + ): t.types.polkadot_runtime.RuntimeCall.Vesting { + return { type: "Vesting", value } + } + export function Utility( + value: t.types.polkadot_runtime.RuntimeCall.Utility["value"], + ): t.types.polkadot_runtime.RuntimeCall.Utility { + return { type: "Utility", value } + } + export function Identity( + value: t.types.polkadot_runtime.RuntimeCall.Identity["value"], + ): t.types.polkadot_runtime.RuntimeCall.Identity { + return { type: "Identity", value } + } + export function Proxy( + value: t.types.polkadot_runtime.RuntimeCall.Proxy["value"], + ): t.types.polkadot_runtime.RuntimeCall.Proxy { + return { type: "Proxy", value } + } + export function Multisig( + value: t.types.polkadot_runtime.RuntimeCall.Multisig["value"], + ): t.types.polkadot_runtime.RuntimeCall.Multisig { + return { type: "Multisig", value } + } + export function Bounties( + value: t.types.polkadot_runtime.RuntimeCall.Bounties["value"], + ): t.types.polkadot_runtime.RuntimeCall.Bounties { + return { type: "Bounties", value } + } + export function ChildBounties( + value: t.types.polkadot_runtime.RuntimeCall.ChildBounties["value"], + ): t.types.polkadot_runtime.RuntimeCall.ChildBounties { + return { type: "ChildBounties", value } + } + export function Tips( + value: t.types.polkadot_runtime.RuntimeCall.Tips["value"], + ): t.types.polkadot_runtime.RuntimeCall.Tips { + return { type: "Tips", value } + } + export function ElectionProviderMultiPhase( + value: t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase["value"], + ): t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase { + return { type: "ElectionProviderMultiPhase", value } + } + export function VoterList( + value: t.types.polkadot_runtime.RuntimeCall.VoterList["value"], + ): t.types.polkadot_runtime.RuntimeCall.VoterList { + return { type: "VoterList", value } + } + export function NominationPools( + value: t.types.polkadot_runtime.RuntimeCall.NominationPools["value"], + ): t.types.polkadot_runtime.RuntimeCall.NominationPools { + return { type: "NominationPools", value } + } + export function FastUnstake( + value: t.types.polkadot_runtime.RuntimeCall.FastUnstake["value"], + ): t.types.polkadot_runtime.RuntimeCall.FastUnstake { + return { type: "FastUnstake", value } + } + export function Configuration( + value: t.types.polkadot_runtime.RuntimeCall.Configuration["value"], + ): t.types.polkadot_runtime.RuntimeCall.Configuration { + return { type: "Configuration", value } + } + export function ParasShared( + value: t.types.polkadot_runtime.RuntimeCall.ParasShared["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParasShared { + return { type: "ParasShared", value } + } + export function ParaInclusion( + value: t.types.polkadot_runtime.RuntimeCall.ParaInclusion["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParaInclusion { + return { type: "ParaInclusion", value } + } + export function ParaInherent( + value: t.types.polkadot_runtime.RuntimeCall.ParaInherent["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParaInherent { + return { type: "ParaInherent", value } + } + export function Paras( + value: t.types.polkadot_runtime.RuntimeCall.Paras["value"], + ): t.types.polkadot_runtime.RuntimeCall.Paras { + return { type: "Paras", value } + } + export function Initializer( + value: t.types.polkadot_runtime.RuntimeCall.Initializer["value"], + ): t.types.polkadot_runtime.RuntimeCall.Initializer { + return { type: "Initializer", value } + } + export function Dmp( + value: t.types.polkadot_runtime.RuntimeCall.Dmp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Dmp { + return { type: "Dmp", value } + } + export function Ump( + value: t.types.polkadot_runtime.RuntimeCall.Ump["value"], + ): t.types.polkadot_runtime.RuntimeCall.Ump { + return { type: "Ump", value } + } + export function Hrmp( + value: t.types.polkadot_runtime.RuntimeCall.Hrmp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Hrmp { + return { type: "Hrmp", value } + } + export function ParasDisputes( + value: t.types.polkadot_runtime.RuntimeCall.ParasDisputes["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParasDisputes { + return { type: "ParasDisputes", value } + } + export function Registrar( + value: t.types.polkadot_runtime.RuntimeCall.Registrar["value"], + ): t.types.polkadot_runtime.RuntimeCall.Registrar { + return { type: "Registrar", value } + } + export function Slots( + value: t.types.polkadot_runtime.RuntimeCall.Slots["value"], + ): t.types.polkadot_runtime.RuntimeCall.Slots { + return { type: "Slots", value } + } + export function Auctions( + value: t.types.polkadot_runtime.RuntimeCall.Auctions["value"], + ): t.types.polkadot_runtime.RuntimeCall.Auctions { + return { type: "Auctions", value } + } + export function Crowdloan( + value: t.types.polkadot_runtime.RuntimeCall.Crowdloan["value"], + ): t.types.polkadot_runtime.RuntimeCall.Crowdloan { + return { type: "Crowdloan", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.RuntimeCall.XcmPallet["value"], + ): t.types.polkadot_runtime.RuntimeCall.XcmPallet { + return { type: "XcmPallet", value } + } +} + +export type RuntimeEvent = + | t.types.polkadot_runtime.RuntimeEvent.System + | t.types.polkadot_runtime.RuntimeEvent.Scheduler + | t.types.polkadot_runtime.RuntimeEvent.Preimage + | t.types.polkadot_runtime.RuntimeEvent.Indices + | t.types.polkadot_runtime.RuntimeEvent.Balances + | t.types.polkadot_runtime.RuntimeEvent.TransactionPayment + | t.types.polkadot_runtime.RuntimeEvent.Staking + | t.types.polkadot_runtime.RuntimeEvent.Offences + | t.types.polkadot_runtime.RuntimeEvent.Session + | t.types.polkadot_runtime.RuntimeEvent.Grandpa + | t.types.polkadot_runtime.RuntimeEvent.ImOnline + | t.types.polkadot_runtime.RuntimeEvent.Democracy + | t.types.polkadot_runtime.RuntimeEvent.Council + | t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee + | t.types.polkadot_runtime.RuntimeEvent.PhragmenElection + | t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership + | t.types.polkadot_runtime.RuntimeEvent.Treasury + | t.types.polkadot_runtime.RuntimeEvent.Claims + | t.types.polkadot_runtime.RuntimeEvent.Vesting + | t.types.polkadot_runtime.RuntimeEvent.Utility + | t.types.polkadot_runtime.RuntimeEvent.Identity + | t.types.polkadot_runtime.RuntimeEvent.Proxy + | t.types.polkadot_runtime.RuntimeEvent.Multisig + | t.types.polkadot_runtime.RuntimeEvent.Bounties + | t.types.polkadot_runtime.RuntimeEvent.ChildBounties + | t.types.polkadot_runtime.RuntimeEvent.Tips + | t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase + | t.types.polkadot_runtime.RuntimeEvent.VoterList + | t.types.polkadot_runtime.RuntimeEvent.NominationPools + | t.types.polkadot_runtime.RuntimeEvent.FastUnstake + | t.types.polkadot_runtime.RuntimeEvent.ParaInclusion + | t.types.polkadot_runtime.RuntimeEvent.Paras + | t.types.polkadot_runtime.RuntimeEvent.Ump + | t.types.polkadot_runtime.RuntimeEvent.Hrmp + | t.types.polkadot_runtime.RuntimeEvent.ParasDisputes + | t.types.polkadot_runtime.RuntimeEvent.Registrar + | t.types.polkadot_runtime.RuntimeEvent.Slots + | t.types.polkadot_runtime.RuntimeEvent.Auctions + | t.types.polkadot_runtime.RuntimeEvent.Crowdloan + | t.types.polkadot_runtime.RuntimeEvent.XcmPallet +export namespace RuntimeEvent { + export interface System { + type: "System" + value: t.types.frame_system.pallet.Event + } + export interface Scheduler { + type: "Scheduler" + value: t.types.pallet_scheduler.pallet.Event + } + export interface Preimage { + type: "Preimage" + value: t.types.pallet_preimage.pallet.Event + } + export interface Indices { + type: "Indices" + value: t.types.pallet_indices.pallet.Event + } + export interface Balances { + type: "Balances" + value: t.types.pallet_balances.pallet.Event + } + export interface TransactionPayment { + type: "TransactionPayment" + value: t.types.pallet_transaction_payment.pallet.Event + } + export interface Staking { + type: "Staking" + value: t.types.pallet_staking.pallet.pallet.Event + } + export interface Offences { + type: "Offences" + value: t.types.pallet_offences.pallet.Event + } + export interface Session { + type: "Session" + value: t.types.pallet_session.pallet.Event + } + export interface Grandpa { + type: "Grandpa" + value: t.types.pallet_grandpa.pallet.Event + } + export interface ImOnline { + type: "ImOnline" + value: t.types.pallet_im_online.pallet.Event + } + export interface Democracy { + type: "Democracy" + value: t.types.pallet_democracy.pallet.Event + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.pallet.Event + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.pallet.Event + } + export interface PhragmenElection { + type: "PhragmenElection" + value: t.types.pallet_elections_phragmen.pallet.Event + } + export interface TechnicalMembership { + type: "TechnicalMembership" + value: t.types.pallet_membership.pallet.Event + } + export interface Treasury { + type: "Treasury" + value: t.types.pallet_treasury.pallet.Event + } + export interface Claims { + type: "Claims" + value: t.types.polkadot_runtime_common.claims.pallet.Event + } + export interface Vesting { + type: "Vesting" + value: t.types.pallet_vesting.pallet.Event + } + export interface Utility { + type: "Utility" + value: t.types.pallet_utility.pallet.Event + } + export interface Identity { + type: "Identity" + value: t.types.pallet_identity.pallet.Event + } + export interface Proxy { + type: "Proxy" + value: t.types.pallet_proxy.pallet.Event + } + export interface Multisig { + type: "Multisig" + value: t.types.pallet_multisig.pallet.Event + } + export interface Bounties { + type: "Bounties" + value: t.types.pallet_bounties.pallet.Event + } + export interface ChildBounties { + type: "ChildBounties" + value: t.types.pallet_child_bounties.pallet.Event + } + export interface Tips { + type: "Tips" + value: t.types.pallet_tips.pallet.Event + } + export interface ElectionProviderMultiPhase { + type: "ElectionProviderMultiPhase" + value: t.types.pallet_election_provider_multi_phase.pallet.Event + } + export interface VoterList { + type: "VoterList" + value: t.types.pallet_bags_list.pallet.Event + } + export interface NominationPools { + type: "NominationPools" + value: t.types.pallet_nomination_pools.pallet.Event + } + export interface FastUnstake { + type: "FastUnstake" + value: t.types.pallet_fast_unstake.pallet.Event + } + export interface ParaInclusion { + type: "ParaInclusion" + value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event + } + export interface Paras { + type: "Paras" + value: t.types.polkadot_runtime_parachains.paras.pallet.Event + } + export interface Ump { + type: "Ump" + value: t.types.polkadot_runtime_parachains.ump.pallet.Event + } + export interface Hrmp { + type: "Hrmp" + value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event + } + export interface ParasDisputes { + type: "ParasDisputes" + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event + } + export interface Registrar { + type: "Registrar" + value: t.types.polkadot_runtime_common.paras_registrar.pallet.Event + } + export interface Slots { + type: "Slots" + value: t.types.polkadot_runtime_common.slots.pallet.Event + } + export interface Auctions { + type: "Auctions" + value: t.types.polkadot_runtime_common.auctions.pallet.Event + } + export interface Crowdloan { + type: "Crowdloan" + value: t.types.polkadot_runtime_common.crowdloan.pallet.Event + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Event + } + export function System( + value: t.types.polkadot_runtime.RuntimeEvent.System["value"], + ): t.types.polkadot_runtime.RuntimeEvent.System { + return { type: "System", value } + } + export function Scheduler( + value: t.types.polkadot_runtime.RuntimeEvent.Scheduler["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Scheduler { + return { type: "Scheduler", value } + } + export function Preimage( + value: t.types.polkadot_runtime.RuntimeEvent.Preimage["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Preimage { + return { type: "Preimage", value } + } + export function Indices( + value: t.types.polkadot_runtime.RuntimeEvent.Indices["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Indices { + return { type: "Indices", value } + } + export function Balances( + value: t.types.polkadot_runtime.RuntimeEvent.Balances["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Balances { + return { type: "Balances", value } + } + export function TransactionPayment( + value: t.types.polkadot_runtime.RuntimeEvent.TransactionPayment["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TransactionPayment { + return { type: "TransactionPayment", value } + } + export function Staking( + value: t.types.polkadot_runtime.RuntimeEvent.Staking["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Staking { + return { type: "Staking", value } + } + export function Offences( + value: t.types.polkadot_runtime.RuntimeEvent.Offences["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Offences { + return { type: "Offences", value } + } + export function Session( + value: t.types.polkadot_runtime.RuntimeEvent.Session["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Session { + return { type: "Session", value } + } + export function Grandpa( + value: t.types.polkadot_runtime.RuntimeEvent.Grandpa["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Grandpa { + return { type: "Grandpa", value } + } + export function ImOnline( + value: t.types.polkadot_runtime.RuntimeEvent.ImOnline["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ImOnline { + return { type: "ImOnline", value } + } + export function Democracy( + value: t.types.polkadot_runtime.RuntimeEvent.Democracy["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Democracy { + return { type: "Democracy", value } + } + export function Council( + value: t.types.polkadot_runtime.RuntimeEvent.Council["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function PhragmenElection( + value: t.types.polkadot_runtime.RuntimeEvent.PhragmenElection["value"], + ): t.types.polkadot_runtime.RuntimeEvent.PhragmenElection { + return { type: "PhragmenElection", value } + } + export function TechnicalMembership( + value: t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership { + return { type: "TechnicalMembership", value } + } + export function Treasury( + value: t.types.polkadot_runtime.RuntimeEvent.Treasury["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Treasury { + return { type: "Treasury", value } + } + export function Claims( + value: t.types.polkadot_runtime.RuntimeEvent.Claims["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Claims { + return { type: "Claims", value } + } + export function Vesting( + value: t.types.polkadot_runtime.RuntimeEvent.Vesting["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Vesting { + return { type: "Vesting", value } + } + export function Utility( + value: t.types.polkadot_runtime.RuntimeEvent.Utility["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Utility { + return { type: "Utility", value } + } + export function Identity( + value: t.types.polkadot_runtime.RuntimeEvent.Identity["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Identity { + return { type: "Identity", value } + } + export function Proxy( + value: t.types.polkadot_runtime.RuntimeEvent.Proxy["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Proxy { + return { type: "Proxy", value } + } + export function Multisig( + value: t.types.polkadot_runtime.RuntimeEvent.Multisig["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Multisig { + return { type: "Multisig", value } + } + export function Bounties( + value: t.types.polkadot_runtime.RuntimeEvent.Bounties["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Bounties { + return { type: "Bounties", value } + } + export function ChildBounties( + value: t.types.polkadot_runtime.RuntimeEvent.ChildBounties["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ChildBounties { + return { type: "ChildBounties", value } + } + export function Tips( + value: t.types.polkadot_runtime.RuntimeEvent.Tips["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Tips { + return { type: "Tips", value } + } + export function ElectionProviderMultiPhase( + value: t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase { + return { type: "ElectionProviderMultiPhase", value } + } + export function VoterList( + value: t.types.polkadot_runtime.RuntimeEvent.VoterList["value"], + ): t.types.polkadot_runtime.RuntimeEvent.VoterList { + return { type: "VoterList", value } + } + export function NominationPools( + value: t.types.polkadot_runtime.RuntimeEvent.NominationPools["value"], + ): t.types.polkadot_runtime.RuntimeEvent.NominationPools { + return { type: "NominationPools", value } + } + export function FastUnstake( + value: t.types.polkadot_runtime.RuntimeEvent.FastUnstake["value"], + ): t.types.polkadot_runtime.RuntimeEvent.FastUnstake { + return { type: "FastUnstake", value } + } + export function ParaInclusion( + value: t.types.polkadot_runtime.RuntimeEvent.ParaInclusion["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ParaInclusion { + return { type: "ParaInclusion", value } + } + export function Paras( + value: t.types.polkadot_runtime.RuntimeEvent.Paras["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Paras { + return { type: "Paras", value } + } + export function Ump( + value: t.types.polkadot_runtime.RuntimeEvent.Ump["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Ump { + return { type: "Ump", value } + } + export function Hrmp( + value: t.types.polkadot_runtime.RuntimeEvent.Hrmp["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Hrmp { + return { type: "Hrmp", value } + } + export function ParasDisputes( + value: t.types.polkadot_runtime.RuntimeEvent.ParasDisputes["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ParasDisputes { + return { type: "ParasDisputes", value } + } + export function Registrar( + value: t.types.polkadot_runtime.RuntimeEvent.Registrar["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Registrar { + return { type: "Registrar", value } + } + export function Slots( + value: t.types.polkadot_runtime.RuntimeEvent.Slots["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Slots { + return { type: "Slots", value } + } + export function Auctions( + value: t.types.polkadot_runtime.RuntimeEvent.Auctions["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Auctions { + return { type: "Auctions", value } + } + export function Crowdloan( + value: t.types.polkadot_runtime.RuntimeEvent.Crowdloan["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Crowdloan { + return { type: "Crowdloan", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.RuntimeEvent.XcmPallet["value"], + ): t.types.polkadot_runtime.RuntimeEvent.XcmPallet { + return { type: "XcmPallet", value } + } +} + +export interface SessionKeys { + grandpa: t.types.sp_finality_grandpa.app.Public + babe: t.types.sp_consensus_babe.app.Public + im_online: t.types.pallet_im_online.sr25519.app_sr25519.Public + para_validator: t.types.polkadot_primitives.v2.validator_app.Public + para_assignment: t.types.polkadot_primitives.v2.assignment_app.Public + authority_discovery: t.types.sp_authority_discovery.app.Public +} + +export function SessionKeys(value: t.types.polkadot_runtime.SessionKeys) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_runtime_common/auctions/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/auctions/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_common/auctions/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_common/auctions/mod.ts diff --git a/codegen/_output/westend/polkadot_runtime_common/auctions/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/auctions/pallet.ts similarity index 63% rename from codegen/_output/westend/polkadot_runtime_common/auctions/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_common/auctions/pallet.ts index 4a353fb96..5e8049d64 100644 --- a/codegen/_output/westend/polkadot_runtime_common/auctions/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_common/auctions/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$413 +export const $call: $.Codec = _codec.$413 -export const $error: $.Codec = _codec.$709 +export const $error: $.Codec = _codec.$709 -export const $event: $.Codec = _codec.$119 +export const $event: $.Codec = _codec.$119 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.auctions.pallet.Call.new_auction - | t.polkadot_runtime_common.auctions.pallet.Call.bid - | t.polkadot_runtime_common.auctions.pallet.Call.cancel_auction + | t.types.polkadot_runtime_common.auctions.pallet.Call.new_auction + | t.types.polkadot_runtime_common.auctions.pallet.Call.bid + | t.types.polkadot_runtime_common.auctions.pallet.Call.cancel_auction export namespace Call { /** * Create a new auction. @@ -23,8 +23,8 @@ export namespace Call { */ export interface new_auction { type: "new_auction" - duration: t.Compact - lease_period_index: t.Compact + duration: t.Compact + lease_period_index: t.Compact } /** * Make a new bid from an account (including a parachain account) for deploying a new @@ -46,11 +46,11 @@ export namespace Call { */ export interface bid { type: "bid" - para: t.Compact - auction_index: t.Compact - first_slot: t.Compact - last_slot: t.Compact - amount: t.Compact + para: t.Compact + auction_index: t.Compact + first_slot: t.Compact + last_slot: t.Compact + amount: t.Compact } /** * Cancel an in-progress auction. @@ -68,8 +68,8 @@ export namespace Call { * `lease_period_index` of the initial lease period of the four that are to be auctioned. */ export function new_auction( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Call.new_auction { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Call.new_auction { return { type: "new_auction", ...value } } /** @@ -91,8 +91,8 @@ export namespace Call { * bid win. This amount is held throughout the range. */ export function bid( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Call.bid { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Call.bid { return { type: "bid", ...value } } /** @@ -100,7 +100,7 @@ export namespace Call { * * Can only be called by Root origin. */ - export function cancel_auction(): t.polkadot_runtime_common.auctions.pallet.Call.cancel_auction { + export function cancel_auction(): t.types.polkadot_runtime_common.auctions.pallet.Call.cancel_auction { return { type: "cancel_auction" } } } @@ -117,13 +117,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted - | t.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed - | t.polkadot_runtime_common.auctions.pallet.Event.Reserved - | t.polkadot_runtime_common.auctions.pallet.Event.Unreserved - | t.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated - | t.polkadot_runtime_common.auctions.pallet.Event.BidAccepted - | t.polkadot_runtime_common.auctions.pallet.Event.WinningOffset + | t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted + | t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed + | t.types.polkadot_runtime_common.auctions.pallet.Event.Reserved + | t.types.polkadot_runtime_common.auctions.pallet.Event.Unreserved + | t.types.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated + | t.types.polkadot_runtime_common.auctions.pallet.Event.BidAccepted + | t.types.polkadot_runtime_common.auctions.pallet.Event.WinningOffset export namespace Event { /** * An auction started. Provides its index and the block number where it will begin to @@ -131,14 +131,14 @@ export namespace Event { */ export interface AuctionStarted { type: "AuctionStarted" - auction_index: t.u32 - lease_period: t.u32 - ending: t.u32 + auction_index: t.types.u32 + lease_period: t.types.u32 + ending: t.types.u32 } /** An auction ended. All funds become unreserved. */ export interface AuctionClosed { type: "AuctionClosed" - auction_index: t.u32 + auction_index: t.types.u32 } /** * Funds were reserved for a winning bid. First balance is the extra amount reserved. @@ -146,15 +146,15 @@ export namespace Event { */ export interface Reserved { type: "Reserved" - bidder: t.sp_core.crypto.AccountId32 - extra_reserved: t.u128 - total_amount: t.u128 + bidder: t.types.sp_core.crypto.AccountId32 + extra_reserved: t.types.u128 + total_amount: t.types.u128 } /** Funds were unreserved since bidder is no longer active. `[bidder, amount]` */ export interface Unreserved { type: "Unreserved" - bidder: t.sp_core.crypto.AccountId32 - amount: t.u128 + bidder: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve @@ -162,38 +162,38 @@ export namespace Event { */ export interface ReserveConfiscated { type: "ReserveConfiscated" - para_id: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - amount: t.u128 + para_id: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A new bid has been accepted as the current winner. */ export interface BidAccepted { type: "BidAccepted" - bidder: t.sp_core.crypto.AccountId32 - para_id: t.polkadot_parachain.primitives.Id - amount: t.u128 - first_slot: t.u32 - last_slot: t.u32 + bidder: t.types.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 + first_slot: t.types.u32 + last_slot: t.types.u32 } /** The winning offset was chosen for an auction. This will map into the `Winning` storage map. */ export interface WinningOffset { type: "WinningOffset" - auction_index: t.u32 - block_number: t.u32 + auction_index: t.types.u32 + block_number: t.types.u32 } /** * An auction started. Provides its index and the block number where it will begin to * close and the first lease period of the quadruplet that is auctioned. */ export function AuctionStarted( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted { return { type: "AuctionStarted", ...value } } /** An auction ended. All funds become unreserved. */ export function AuctionClosed( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed { return { type: "AuctionClosed", ...value } } /** @@ -201,14 +201,14 @@ export namespace Event { * Second is the total. */ export function Reserved( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.Reserved { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.Reserved { return { type: "Reserved", ...value } } /** Funds were unreserved since bidder is no longer active. `[bidder, amount]` */ export function Unreserved( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.Unreserved { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.Unreserved { return { type: "Unreserved", ...value } } /** @@ -216,20 +216,20 @@ export namespace Event { * but no parachain slot has been leased. */ export function ReserveConfiscated( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated { return { type: "ReserveConfiscated", ...value } } /** A new bid has been accepted as the current winner. */ export function BidAccepted( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.BidAccepted { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.BidAccepted { return { type: "BidAccepted", ...value } } /** The winning offset was chosen for an auction. This will map into the `Winning` storage map. */ export function WinningOffset( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.WinningOffset { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.WinningOffset { return { type: "WinningOffset", ...value } } } diff --git a/codegen/_output/polkadot/types/polkadot_runtime_common/claims/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/claims/mod.ts new file mode 100644 index 000000000..f49778009 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_common/claims/mod.ts @@ -0,0 +1,38 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $ecdsaSignature: $.Codec = + _codec.$246 + +export const $ethereumAddress: $.Codec = + _codec.$73 + +export const $prevalidateAttests: $.Codec< + t.types.polkadot_runtime_common.claims.PrevalidateAttests +> = _codec.$736 + +export const $statementKind: $.Codec = + _codec.$251 + +export type EcdsaSignature = Uint8Array + +export function EcdsaSignature(value: t.types.polkadot_runtime_common.claims.EcdsaSignature) { + return value +} + +export type EthereumAddress = Uint8Array + +export function EthereumAddress(value: t.types.polkadot_runtime_common.claims.EthereumAddress) { + return value +} + +export function PrevalidateAttests() { + return null +} + +export type PrevalidateAttests = null + +export type StatementKind = "Regular" | "Saft" diff --git a/codegen/_output/rococo/polkadot_runtime_common/claims/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/claims/pallet.ts similarity index 74% rename from codegen/_output/rococo/polkadot_runtime_common/claims/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_common/claims/pallet.ts index 74fb89717..ccd1ddbab 100644 --- a/codegen/_output/rococo/polkadot_runtime_common/claims/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_common/claims/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$245 +export const $call: $.Codec = _codec.$245 -export const $error: $.Codec = _codec.$562 +export const $error: $.Codec = _codec.$562 -export const $event: $.Codec = _codec.$72 +export const $event: $.Codec = _codec.$72 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.claims.pallet.Call.claim - | t.polkadot_runtime_common.claims.pallet.Call.mint_claim - | t.polkadot_runtime_common.claims.pallet.Call.claim_attest - | t.polkadot_runtime_common.claims.pallet.Call.attest - | t.polkadot_runtime_common.claims.pallet.Call.move_claim + | t.types.polkadot_runtime_common.claims.pallet.Call.claim + | t.types.polkadot_runtime_common.claims.pallet.Call.mint_claim + | t.types.polkadot_runtime_common.claims.pallet.Call.claim_attest + | t.types.polkadot_runtime_common.claims.pallet.Call.attest + | t.types.polkadot_runtime_common.claims.pallet.Call.move_claim export namespace Call { /** * Make a claim to collect your DOTs. @@ -44,8 +44,8 @@ export namespace Call { */ export interface claim { type: "claim" - dest: t.sp_core.crypto.AccountId32 - ethereum_signature: t.polkadot_runtime_common.claims.EcdsaSignature + dest: t.types.sp_core.crypto.AccountId32 + ethereum_signature: t.types.polkadot_runtime_common.claims.EcdsaSignature } /** * Mint a new claim to collect DOTs. @@ -66,10 +66,10 @@ export namespace Call { */ export interface mint_claim { type: "mint_claim" - who: t.polkadot_runtime_common.claims.EthereumAddress - value: t.u128 - vesting_schedule: [t.u128, t.u128, t.u32] | undefined - statement: t.polkadot_runtime_common.claims.StatementKind | undefined + who: t.types.polkadot_runtime_common.claims.EthereumAddress + value: t.types.u128 + vesting_schedule: [t.types.u128, t.types.u128, t.types.u32] | undefined + statement: t.types.polkadot_runtime_common.claims.StatementKind | undefined } /** * Make a claim to collect your DOTs by signing a statement. @@ -101,8 +101,8 @@ export namespace Call { */ export interface claim_attest { type: "claim_attest" - dest: t.sp_core.crypto.AccountId32 - ethereum_signature: t.polkadot_runtime_common.claims.EcdsaSignature + dest: t.types.sp_core.crypto.AccountId32 + ethereum_signature: t.types.polkadot_runtime_common.claims.EcdsaSignature statement: Uint8Array } /** @@ -130,9 +130,9 @@ export namespace Call { } export interface move_claim { type: "move_claim" - old: t.polkadot_runtime_common.claims.EthereumAddress - new: t.polkadot_runtime_common.claims.EthereumAddress - maybe_preclaim: t.sp_core.crypto.AccountId32 | undefined + old: t.types.polkadot_runtime_common.claims.EthereumAddress + new: t.types.polkadot_runtime_common.claims.EthereumAddress + maybe_preclaim: t.types.sp_core.crypto.AccountId32 | undefined } /** * Make a claim to collect your DOTs. @@ -161,8 +161,8 @@ export namespace Call { * */ export function claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.claim { return { type: "claim", ...value } } /** @@ -183,8 +183,8 @@ export namespace Call { * */ export function mint_claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.mint_claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.mint_claim { return { type: "mint_claim", ...value } } /** @@ -216,8 +216,8 @@ export namespace Call { * */ export function claim_attest( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.claim_attest { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.claim_attest { return { type: "claim_attest", ...value } } /** @@ -240,13 +240,13 @@ export namespace Call { * */ export function attest( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.attest { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.attest { return { type: "attest", ...value } } export function move_claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.move_claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.move_claim { return { type: "move_claim", ...value } } } @@ -261,19 +261,19 @@ export type Error = | "VestedBalanceExists" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.polkadot_runtime_common.claims.pallet.Event.Claimed +export type Event = t.types.polkadot_runtime_common.claims.pallet.Event.Claimed export namespace Event { /** Someone claimed some DOTs. */ export interface Claimed { type: "Claimed" - who: t.sp_core.crypto.AccountId32 - ethereum_address: t.polkadot_runtime_common.claims.EthereumAddress - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + ethereum_address: t.types.polkadot_runtime_common.claims.EthereumAddress + amount: t.types.u128 } /** Someone claimed some DOTs. */ export function Claimed( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Event.Claimed { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Event.Claimed { return { type: "Claimed", ...value } } } diff --git a/codegen/_output/polkadot/types/polkadot_runtime_common/crowdloan/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/crowdloan/mod.ts new file mode 100644 index 000000000..9879ba1f4 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_common/crowdloan/mod.ts @@ -0,0 +1,59 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $fundInfo: $.Codec = _codec.$710 + +export const $lastContribution: $.Codec< + t.types.polkadot_runtime_common.crowdloan.LastContribution +> = _codec.$711 + +export interface FundInfo { + depositor: t.types.sp_core.crypto.AccountId32 + verifier: t.types.sp_runtime.MultiSigner | undefined + deposit: t.types.u128 + raised: t.types.u128 + end: t.types.u32 + cap: t.types.u128 + last_contribution: t.types.polkadot_runtime_common.crowdloan.LastContribution + first_period: t.types.u32 + last_period: t.types.u32 + fund_index: t.types.u32 +} + +export function FundInfo(value: t.types.polkadot_runtime_common.crowdloan.FundInfo) { + return value +} + +export type LastContribution = + | t.types.polkadot_runtime_common.crowdloan.LastContribution.Never + | t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding + | t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending +export namespace LastContribution { + export interface Never { + type: "Never" + } + export interface PreEnding { + type: "PreEnding" + value: t.types.u32 + } + export interface Ending { + type: "Ending" + value: t.types.u32 + } + export function Never(): t.types.polkadot_runtime_common.crowdloan.LastContribution.Never { + return { type: "Never" } + } + export function PreEnding( + value: t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding["value"], + ): t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding { + return { type: "PreEnding", value } + } + export function Ending( + value: t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending["value"], + ): t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending { + return { type: "Ending", value } + } +} diff --git a/codegen/_output/kusama/polkadot_runtime_common/crowdloan/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/crowdloan/pallet.ts similarity index 57% rename from codegen/_output/kusama/polkadot_runtime_common/crowdloan/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_common/crowdloan/pallet.ts index 1cdbdc4bb..194d2991e 100644 --- a/codegen/_output/kusama/polkadot_runtime_common/crowdloan/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_common/crowdloan/pallet.ts @@ -1,24 +1,24 @@ -import { $, C } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $, C } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$415 +export const $call: $.Codec = _codec.$415 -export const $error: $.Codec = _codec.$712 +export const $error: $.Codec = _codec.$712 -export const $event: $.Codec = _codec.$120 +export const $event: $.Codec = _codec.$120 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.crowdloan.pallet.Call.create - | t.polkadot_runtime_common.crowdloan.pallet.Call.contribute - | t.polkadot_runtime_common.crowdloan.pallet.Call.withdraw - | t.polkadot_runtime_common.crowdloan.pallet.Call.refund - | t.polkadot_runtime_common.crowdloan.pallet.Call.dissolve - | t.polkadot_runtime_common.crowdloan.pallet.Call.edit - | t.polkadot_runtime_common.crowdloan.pallet.Call.add_memo - | t.polkadot_runtime_common.crowdloan.pallet.Call.poke - | t.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.create + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.withdraw + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.refund + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.dissolve + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.edit + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.add_memo + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.poke + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all export namespace Call { /** * Create a new crowdloaning campaign for a parachain slot with the given lease period range. @@ -28,12 +28,12 @@ export namespace Call { */ export interface create { type: "create" - index: t.Compact - cap: t.Compact - first_period: t.Compact - last_period: t.Compact - end: t.Compact - verifier: t.sp_runtime.MultiSigner | undefined + index: t.Compact + cap: t.Compact + first_period: t.Compact + last_period: t.Compact + end: t.Compact + verifier: t.types.sp_runtime.MultiSigner | undefined } /** * Contribute to a crowd sale. This will transfer some balance over to fund a parachain @@ -41,9 +41,9 @@ export namespace Call { */ export interface contribute { type: "contribute" - index: t.Compact - value: t.Compact - signature: t.sp_runtime.MultiSignature | undefined + index: t.Compact + value: t.Compact + signature: t.types.sp_runtime.MultiSignature | undefined } /** * Withdraw full balance of a specific contributor. @@ -66,8 +66,8 @@ export namespace Call { */ export interface withdraw { type: "withdraw" - who: t.sp_core.crypto.AccountId32 - index: t.Compact + who: t.types.sp_core.crypto.AccountId32 + index: t.Compact } /** * Automatically refund contributors of an ended crowdloan. @@ -78,12 +78,12 @@ export namespace Call { */ export interface refund { type: "refund" - index: t.Compact + index: t.Compact } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export interface dissolve { type: "dissolve" - index: t.Compact + index: t.Compact } /** * Edit the configuration for an in-progress crowdloan. @@ -92,12 +92,12 @@ export namespace Call { */ export interface edit { type: "edit" - index: t.Compact - cap: t.Compact - first_period: t.Compact - last_period: t.Compact - end: t.Compact - verifier: t.sp_runtime.MultiSigner | undefined + index: t.Compact + cap: t.Compact + first_period: t.Compact + last_period: t.Compact + end: t.Compact + verifier: t.types.sp_runtime.MultiSigner | undefined } /** * Add an optional memo to an existing crowdloan contribution. @@ -106,7 +106,7 @@ export namespace Call { */ export interface add_memo { type: "add_memo" - index: t.polkadot_parachain.primitives.Id + index: t.types.polkadot_parachain.primitives.Id memo: Uint8Array } /** @@ -116,7 +116,7 @@ export namespace Call { */ export interface poke { type: "poke" - index: t.polkadot_parachain.primitives.Id + index: t.types.polkadot_parachain.primitives.Id } /** * Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain @@ -124,8 +124,8 @@ export namespace Call { */ export interface contribute_all { type: "contribute_all" - index: t.Compact - signature: t.sp_runtime.MultiSignature | undefined + index: t.Compact + signature: t.types.sp_runtime.MultiSignature | undefined } /** * Create a new crowdloaning campaign for a parachain slot with the given lease period range. @@ -134,8 +134,8 @@ export namespace Call { * by the parachain manager. */ export function create( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.create { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.create { return { type: "create", ...value } } /** @@ -143,8 +143,8 @@ export namespace Call { * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.contribute { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute { return { type: "contribute", ...value } } /** @@ -167,8 +167,8 @@ export namespace Call { * - `index`: The parachain to whose crowdloan the contribution was made. */ export function withdraw( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.withdraw { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.withdraw { return { type: "withdraw", ...value } } /** @@ -179,14 +179,14 @@ export namespace Call { * Origin must be signed, but can come from anyone. */ export function refund( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.refund { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.refund { return { type: "refund", ...value } } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export function dissolve( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.dissolve { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.dissolve { return { type: "dissolve", ...value } } /** @@ -195,8 +195,8 @@ export namespace Call { * Can only be called by Root origin. */ export function edit( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.edit { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.edit { return { type: "edit", ...value } } /** @@ -205,8 +205,8 @@ export namespace Call { * Origin must be Signed, and the user must have contributed to the crowdloan. */ export function add_memo( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.add_memo { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.add_memo { return { type: "add_memo", ...value } } /** @@ -215,8 +215,8 @@ export namespace Call { * Origin must be Signed, and the fund has non-zero raise. */ export function poke( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.poke { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.poke { return { type: "poke", ...value } } /** @@ -224,8 +224,8 @@ export namespace Call { * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute_all( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all { return { type: "contribute_all", ...value } } } @@ -258,35 +258,35 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.crowdloan.pallet.Event.Created - | t.polkadot_runtime_common.crowdloan.pallet.Event.Contributed - | t.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew - | t.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded - | t.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded - | t.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved - | t.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult - | t.polkadot_runtime_common.crowdloan.pallet.Event.Edited - | t.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated - | t.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Created + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Contributed + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Edited + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise export namespace Event { /** Create a new crowdloaning campaign. */ export interface Created { type: "Created" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Contributed to a crowd sale. */ export interface Contributed { type: "Contributed" - who: t.sp_core.crypto.AccountId32 - fund_index: t.polkadot_parachain.primitives.Id - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + fund_index: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 } /** Withdrew full balance of a contributor. */ export interface Withdrew { type: "Withdrew" - who: t.sp_core.crypto.AccountId32 - fund_index: t.polkadot_parachain.primitives.Id - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + fund_index: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 } /** * The loans in a fund have been partially dissolved, i.e. there are some left @@ -294,57 +294,57 @@ export namespace Event { */ export interface PartiallyRefunded { type: "PartiallyRefunded" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** All loans in a fund have been refunded. */ export interface AllRefunded { type: "AllRefunded" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Fund is dissolved. */ export interface Dissolved { type: "Dissolved" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** The result of trying to submit a new bid to the Slots pallet. */ export interface HandleBidResult { type: "HandleBidResult" - para_id: t.polkadot_parachain.primitives.Id - result: null | C.ChainError + para_id: t.types.polkadot_parachain.primitives.Id + result: null | C.ChainError } /** The configuration to a crowdloan has been edited. */ export interface Edited { type: "Edited" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** A memo has been updated. */ export interface MemoUpdated { type: "MemoUpdated" - who: t.sp_core.crypto.AccountId32 - para_id: t.polkadot_parachain.primitives.Id + who: t.types.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id memo: Uint8Array } /** A parachain has been moved to `NewRaise` */ export interface AddedToNewRaise { type: "AddedToNewRaise" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Create a new crowdloaning campaign. */ export function Created( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Created { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Created { return { type: "Created", ...value } } /** Contributed to a crowd sale. */ export function Contributed( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Contributed { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Contributed { return { type: "Contributed", ...value } } /** Withdrew full balance of a contributor. */ export function Withdrew( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew { return { type: "Withdrew", ...value } } /** @@ -352,44 +352,44 @@ export namespace Event { * over child keys that still need to be killed. */ export function PartiallyRefunded( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded { return { type: "PartiallyRefunded", ...value } } /** All loans in a fund have been refunded. */ export function AllRefunded( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded { return { type: "AllRefunded", ...value } } /** Fund is dissolved. */ export function Dissolved( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved { return { type: "Dissolved", ...value } } /** The result of trying to submit a new bid to the Slots pallet. */ export function HandleBidResult( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult { return { type: "HandleBidResult", ...value } } /** The configuration to a crowdloan has been edited. */ export function Edited( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Edited { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Edited { return { type: "Edited", ...value } } /** A memo has been updated. */ export function MemoUpdated( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated { return { type: "MemoUpdated", ...value } } /** A parachain has been moved to `NewRaise` */ export function AddedToNewRaise( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise { return { type: "AddedToNewRaise", ...value } } } diff --git a/codegen/_output/polkadot/polkadot_runtime_common/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_common/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_common/mod.ts diff --git a/codegen/_output/polkadot/types/polkadot_runtime_common/paras_registrar/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/paras_registrar/mod.ts new file mode 100644 index 000000000..f6bde2e47 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_common/paras_registrar/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $paraInfo: $.Codec = + _codec.$701 + +export interface ParaInfo { + manager: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + locked: boolean +} + +export function ParaInfo(value: t.types.polkadot_runtime_common.paras_registrar.ParaInfo) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_runtime_common/paras_registrar/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/paras_registrar/pallet.ts similarity index 65% rename from codegen/_output/polkadot/polkadot_runtime_common/paras_registrar/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_common/paras_registrar/pallet.ts index 8dcb503a8..0eee601ee 100644 --- a/codegen/_output/polkadot/polkadot_runtime_common/paras_registrar/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_common/paras_registrar/pallet.ts @@ -1,24 +1,27 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$411 +export const $call: $.Codec = + _codec.$411 -export const $error: $.Codec = _codec.$702 +export const $error: $.Codec = + _codec.$702 -export const $event: $.Codec = _codec.$117 +export const $event: $.Codec = + _codec.$117 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.paras_registrar.pallet.Call.register - | t.polkadot_runtime_common.paras_registrar.pallet.Call.force_register - | t.polkadot_runtime_common.paras_registrar.pallet.Call.deregister - | t.polkadot_runtime_common.paras_registrar.pallet.Call.swap - | t.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock - | t.polkadot_runtime_common.paras_registrar.pallet.Call.reserve - | t.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock - | t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade - | t.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.register + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.force_register + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.deregister + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.swap + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.reserve + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head export namespace Call { /** * Register head data and validation code for a reserved Para Id. @@ -38,9 +41,9 @@ export namespace Call { */ export interface register { type: "register" - id: t.polkadot_parachain.primitives.Id - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode + id: t.types.polkadot_parachain.primitives.Id + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Force the registration of a Para Id on the relay chain. @@ -52,11 +55,11 @@ export namespace Call { */ export interface force_register { type: "force_register" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 - id: t.polkadot_parachain.primitives.Id - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + id: t.types.polkadot_parachain.primitives.Id + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Deregister a Para Id, freeing all data and returning any deposit. @@ -65,7 +68,7 @@ export namespace Call { */ export interface deregister { type: "deregister" - id: t.polkadot_parachain.primitives.Id + id: t.types.polkadot_parachain.primitives.Id } /** * Swap a parachain with another parachain or parathread. @@ -82,8 +85,8 @@ export namespace Call { */ export interface swap { type: "swap" - id: t.polkadot_parachain.primitives.Id - other: t.polkadot_parachain.primitives.Id + id: t.types.polkadot_parachain.primitives.Id + other: t.types.polkadot_parachain.primitives.Id } /** * Remove a manager lock from a para. This will allow the manager of a @@ -93,7 +96,7 @@ export namespace Call { */ export interface remove_lock { type: "remove_lock" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Reserve a Para Id on the relay chain. @@ -122,7 +125,7 @@ export namespace Call { */ export interface add_lock { type: "add_lock" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Schedule a parachain upgrade. @@ -131,8 +134,8 @@ export namespace Call { */ export interface schedule_code_upgrade { type: "schedule_code_upgrade" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Set the parachain's current head. @@ -141,8 +144,8 @@ export namespace Call { */ export interface set_current_head { type: "set_current_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** * Register head data and validation code for a reserved Para Id. @@ -161,8 +164,8 @@ export namespace Call { * The `Registered` event is emitted in case of success. */ export function register( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.register { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.register { return { type: "register", ...value } } /** @@ -174,8 +177,8 @@ export namespace Call { * can be registered, including sub-1000 IDs which are System Parachains. */ export function force_register( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.force_register { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.force_register { return { type: "force_register", ...value } } /** @@ -184,8 +187,8 @@ export namespace Call { * The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread. */ export function deregister( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.deregister { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.deregister { return { type: "deregister", ...value } } /** @@ -202,8 +205,8 @@ export namespace Call { * and the auction deposit are switched. */ export function swap( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.swap { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.swap { return { type: "swap", ...value } } /** @@ -213,8 +216,8 @@ export namespace Call { * Can only be called by the Root origin or the parachain. */ export function remove_lock( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock { return { type: "remove_lock", ...value } } /** @@ -233,7 +236,7 @@ export namespace Call { * ## Events * The `Reserved` event is emitted in case of success, which provides the ID reserved for use. */ - export function reserve(): t.polkadot_runtime_common.paras_registrar.pallet.Call.reserve { + export function reserve(): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.reserve { return { type: "reserve" } } /** @@ -243,8 +246,8 @@ export namespace Call { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function add_lock( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock { return { type: "add_lock", ...value } } /** @@ -254,10 +257,10 @@ export namespace Call { */ export function schedule_code_upgrade( value: Omit< - t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, "type" >, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade { + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade { return { type: "schedule_code_upgrade", ...value } } /** @@ -266,8 +269,11 @@ export namespace Call { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function set_current_head( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head { + value: Omit< + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head, + "type" + >, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head { return { type: "set_current_head", ...value } } } @@ -291,37 +297,37 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Registered - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Registered + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved export namespace Event { export interface Registered { type: "Registered" - para_id: t.polkadot_parachain.primitives.Id - manager: t.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + manager: t.types.sp_core.crypto.AccountId32 } export interface Deregistered { type: "Deregistered" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } export interface Reserved { type: "Reserved" - para_id: t.polkadot_parachain.primitives.Id - who: t.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + who: t.types.sp_core.crypto.AccountId32 } export function Registered( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Registered { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Registered { return { type: "Registered", ...value } } export function Deregistered( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered { return { type: "Deregistered", ...value } } export function Reserved( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved { return { type: "Reserved", ...value } } } diff --git a/codegen/_output/polkadot/polkadot_runtime_common/slots/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/slots/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_common/slots/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_common/slots/mod.ts diff --git a/codegen/_output/rococo/polkadot_runtime_common/slots/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_common/slots/pallet.ts similarity index 61% rename from codegen/_output/rococo/polkadot_runtime_common/slots/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_common/slots/pallet.ts index 9abcf29d1..1887e3651 100644 --- a/codegen/_output/rococo/polkadot_runtime_common/slots/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_common/slots/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$412 +export const $call: $.Codec = _codec.$412 -export const $error: $.Codec = _codec.$704 +export const $error: $.Codec = _codec.$704 -export const $event: $.Codec = _codec.$118 +export const $event: $.Codec = _codec.$118 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.slots.pallet.Call.force_lease - | t.polkadot_runtime_common.slots.pallet.Call.clear_all_leases - | t.polkadot_runtime_common.slots.pallet.Call.trigger_onboard + | t.types.polkadot_runtime_common.slots.pallet.Call.force_lease + | t.types.polkadot_runtime_common.slots.pallet.Call.clear_all_leases + | t.types.polkadot_runtime_common.slots.pallet.Call.trigger_onboard export namespace Call { /** * Just a connect into the `lease_out` call, in case Root wants to force some lease to happen @@ -22,11 +22,11 @@ export namespace Call { */ export interface force_lease { type: "force_lease" - para: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - amount: t.u128 - period_begin: t.u32 - period_count: t.u32 + para: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 + period_begin: t.types.u32 + period_count: t.types.u32 } /** * Clear all leases for a Para Id, refunding any deposits back to the original owners. @@ -35,7 +35,7 @@ export namespace Call { */ export interface clear_all_leases { type: "clear_all_leases" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Try to onboard a parachain that has a lease for the current lease period. @@ -48,7 +48,7 @@ export namespace Call { */ export interface trigger_onboard { type: "trigger_onboard" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Just a connect into the `lease_out` call, in case Root wants to force some lease to happen @@ -57,8 +57,8 @@ export namespace Call { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function force_lease( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.force_lease { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.force_lease { return { type: "force_lease", ...value } } /** @@ -67,8 +67,8 @@ export namespace Call { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function clear_all_leases( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.clear_all_leases { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.clear_all_leases { return { type: "clear_all_leases", ...value } } /** @@ -81,8 +81,8 @@ export namespace Call { * Origin must be signed, but can be called by anyone. */ export function trigger_onboard( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.trigger_onboard { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.trigger_onboard { return { type: "trigger_onboard", ...value } } } @@ -92,13 +92,13 @@ export type Error = "ParaNotOnboarding" | "LeaseError" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod - | t.polkadot_runtime_common.slots.pallet.Event.Leased + | t.types.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod + | t.types.polkadot_runtime_common.slots.pallet.Event.Leased export namespace Event { /** A new `[lease_period]` is beginning. */ export interface NewLeasePeriod { type: "NewLeasePeriod" - lease_period: t.u32 + lease_period: t.types.u32 } /** * A para has won the right to a continuous set of lease periods as a parachain. @@ -107,17 +107,17 @@ export namespace Event { */ export interface Leased { type: "Leased" - para_id: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - period_begin: t.u32 - period_count: t.u32 - extra_reserved: t.u128 - total_amount: t.u128 + para_id: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + period_begin: t.types.u32 + period_count: t.types.u32 + extra_reserved: t.types.u128 + total_amount: t.types.u128 } /** A new `[lease_period]` is beginning. */ export function NewLeasePeriod( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod { return { type: "NewLeasePeriod", ...value } } /** @@ -126,8 +126,8 @@ export namespace Event { * Second balance is the total amount reserved. */ export function Leased( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Event.Leased { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Event.Leased { return { type: "Leased", ...value } } } diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/configuration/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/configuration/mod.ts new file mode 100644 index 000000000..d8267fcbd --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/configuration/mod.ts @@ -0,0 +1,61 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $hostConfiguration: $.Codec< + t.types.polkadot_runtime_parachains.configuration.HostConfiguration +> = _codec.$638 + +export interface HostConfiguration { + max_code_size: t.types.u32 + max_head_data_size: t.types.u32 + max_upward_queue_count: t.types.u32 + max_upward_queue_size: t.types.u32 + max_upward_message_size: t.types.u32 + max_upward_message_num_per_candidate: t.types.u32 + hrmp_max_message_num_per_candidate: t.types.u32 + validation_upgrade_cooldown: t.types.u32 + validation_upgrade_delay: t.types.u32 + max_pov_size: t.types.u32 + max_downward_message_size: t.types.u32 + ump_service_total_weight: t.types.sp_weights.weight_v2.Weight + hrmp_max_parachain_outbound_channels: t.types.u32 + hrmp_max_parathread_outbound_channels: t.types.u32 + hrmp_sender_deposit: t.types.u128 + hrmp_recipient_deposit: t.types.u128 + hrmp_channel_max_capacity: t.types.u32 + hrmp_channel_max_total_size: t.types.u32 + hrmp_max_parachain_inbound_channels: t.types.u32 + hrmp_max_parathread_inbound_channels: t.types.u32 + hrmp_channel_max_message_size: t.types.u32 + code_retention_period: t.types.u32 + parathread_cores: t.types.u32 + parathread_retries: t.types.u32 + group_rotation_frequency: t.types.u32 + chain_availability_period: t.types.u32 + thread_availability_period: t.types.u32 + scheduling_lookahead: t.types.u32 + max_validators_per_core: t.types.u32 | undefined + max_validators: t.types.u32 | undefined + dispute_period: t.types.u32 + dispute_post_conclusion_acceptance_period: t.types.u32 + dispute_max_spam_slots: t.types.u32 + dispute_conclusion_by_time_out_period: t.types.u32 + no_show_slots: t.types.u32 + n_delay_tranches: t.types.u32 + zeroth_delay_tranche_width: t.types.u32 + needed_approvals: t.types.u32 + relay_vrf_modulo_samples: t.types.u32 + ump_max_individual_weight: t.types.sp_weights.weight_v2.Weight + pvf_checking_enabled: boolean + pvf_voting_ttl: t.types.u32 + minimum_validation_upgrade_delay: t.types.u32 +} + +export function HostConfiguration( + value: t.types.polkadot_runtime_parachains.configuration.HostConfiguration, +) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/configuration/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/configuration/pallet.ts similarity index 55% rename from codegen/_output/polkadot/polkadot_runtime_parachains/configuration/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/configuration/pallet.ts index bdc792cc2..ff0b4bbd4 100644 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/configuration/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/configuration/pallet.ts @@ -1,148 +1,150 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$375 +export const $call: $.Codec = + _codec.$375 -export const $error: $.Codec = _codec.$641 +export const $error: $.Codec = + _codec.$641 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check export namespace Call { /** Set the validation upgrade cooldown. */ export interface set_validation_upgrade_cooldown { type: "set_validation_upgrade_cooldown" - new: t.u32 + new: t.types.u32 } /** Set the validation upgrade delay. */ export interface set_validation_upgrade_delay { type: "set_validation_upgrade_delay" - new: t.u32 + new: t.types.u32 } /** Set the acceptance period for an included candidate. */ export interface set_code_retention_period { type: "set_code_retention_period" - new: t.u32 + new: t.types.u32 } /** Set the max validation code size for incoming upgrades. */ export interface set_max_code_size { type: "set_max_code_size" - new: t.u32 + new: t.types.u32 } /** Set the max POV block size for incoming upgrades. */ export interface set_max_pov_size { type: "set_max_pov_size" - new: t.u32 + new: t.types.u32 } /** Set the max head data size for paras. */ export interface set_max_head_data_size { type: "set_max_head_data_size" - new: t.u32 + new: t.types.u32 } /** Set the number of parathread execution cores. */ export interface set_parathread_cores { type: "set_parathread_cores" - new: t.u32 + new: t.types.u32 } /** Set the number of retries for a particular parathread. */ export interface set_parathread_retries { type: "set_parathread_retries" - new: t.u32 + new: t.types.u32 } /** Set the parachain validator-group rotation frequency */ export interface set_group_rotation_frequency { type: "set_group_rotation_frequency" - new: t.u32 + new: t.types.u32 } /** Set the availability period for parachains. */ export interface set_chain_availability_period { type: "set_chain_availability_period" - new: t.u32 + new: t.types.u32 } /** Set the availability period for parathreads. */ export interface set_thread_availability_period { type: "set_thread_availability_period" - new: t.u32 + new: t.types.u32 } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export interface set_scheduling_lookahead { type: "set_scheduling_lookahead" - new: t.u32 + new: t.types.u32 } /** Set the maximum number of validators to assign to any core. */ export interface set_max_validators_per_core { type: "set_max_validators_per_core" - new: t.u32 | undefined + new: t.types.u32 | undefined } /** Set the maximum number of validators to use in parachain consensus. */ export interface set_max_validators { type: "set_max_validators" - new: t.u32 | undefined + new: t.types.u32 | undefined } /** Set the dispute period, in number of sessions to keep for disputes. */ export interface set_dispute_period { type: "set_dispute_period" - new: t.u32 + new: t.types.u32 } /** Set the dispute post conclusion acceptance period. */ export interface set_dispute_post_conclusion_acceptance_period { type: "set_dispute_post_conclusion_acceptance_period" - new: t.u32 + new: t.types.u32 } /** Set the maximum number of dispute spam slots. */ export interface set_dispute_max_spam_slots { type: "set_dispute_max_spam_slots" - new: t.u32 + new: t.types.u32 } /** Set the dispute conclusion by time out period. */ export interface set_dispute_conclusion_by_time_out_period { type: "set_dispute_conclusion_by_time_out_period" - new: t.u32 + new: t.types.u32 } /** * Set the no show slots, in number of number of consensus slots. @@ -150,67 +152,67 @@ export namespace Call { */ export interface set_no_show_slots { type: "set_no_show_slots" - new: t.u32 + new: t.types.u32 } /** Set the total number of delay tranches. */ export interface set_n_delay_tranches { type: "set_n_delay_tranches" - new: t.u32 + new: t.types.u32 } /** Set the zeroth delay tranche width. */ export interface set_zeroth_delay_tranche_width { type: "set_zeroth_delay_tranche_width" - new: t.u32 + new: t.types.u32 } /** Set the number of validators needed to approve a block. */ export interface set_needed_approvals { type: "set_needed_approvals" - new: t.u32 + new: t.types.u32 } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export interface set_relay_vrf_modulo_samples { type: "set_relay_vrf_modulo_samples" - new: t.u32 + new: t.types.u32 } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export interface set_max_upward_queue_count { type: "set_max_upward_queue_count" - new: t.u32 + new: t.types.u32 } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export interface set_max_upward_queue_size { type: "set_max_upward_queue_size" - new: t.u32 + new: t.types.u32 } /** Set the critical downward message size. */ export interface set_max_downward_message_size { type: "set_max_downward_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export interface set_ump_service_total_weight { type: "set_ump_service_total_weight" - new: t.sp_weights.weight_v2.Weight + new: t.types.sp_weights.weight_v2.Weight } /** Sets the maximum size of an upward message that can be sent by a candidate. */ export interface set_max_upward_message_size { type: "set_max_upward_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of messages that a candidate can contain. */ export interface set_max_upward_message_num_per_candidate { type: "set_max_upward_message_num_per_candidate" - new: t.u32 + new: t.types.u32 } /** Sets the number of sessions after which an HRMP open channel request expires. */ export interface set_hrmp_open_request_ttl { type: "set_hrmp_open_request_ttl" - new: t.u32 + new: t.types.u32 } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export interface set_hrmp_sender_deposit { type: "set_hrmp_sender_deposit" - new: t.u128 + new: t.types.u128 } /** * Sets the amount of funds that the recipient should provide for accepting opening an HRMP @@ -218,52 +220,52 @@ export namespace Call { */ export interface set_hrmp_recipient_deposit { type: "set_hrmp_recipient_deposit" - new: t.u128 + new: t.types.u128 } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export interface set_hrmp_channel_max_capacity { type: "set_hrmp_channel_max_capacity" - new: t.u32 + new: t.types.u32 } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export interface set_hrmp_channel_max_total_size { type: "set_hrmp_channel_max_total_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export interface set_hrmp_max_parachain_inbound_channels { type: "set_hrmp_max_parachain_inbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export interface set_hrmp_max_parathread_inbound_channels { type: "set_hrmp_max_parathread_inbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export interface set_hrmp_channel_max_message_size { type: "set_hrmp_channel_max_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export interface set_hrmp_max_parachain_outbound_channels { type: "set_hrmp_max_parachain_outbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export interface set_hrmp_max_parathread_outbound_channels { type: "set_hrmp_max_parathread_outbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export interface set_hrmp_max_message_num_per_candidate { type: "set_hrmp_max_message_num_per_candidate" - new: t.u32 + new: t.types.u32 } /** Sets the maximum amount of weight any individual upward message may consume. */ export interface set_ump_max_individual_weight { type: "set_ump_max_individual_weight" - new: t.sp_weights.weight_v2.Weight + new: t.types.sp_weights.weight_v2.Weight } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export interface set_pvf_checking_enabled { @@ -273,7 +275,7 @@ export namespace Call { /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export interface set_pvf_voting_ttl { type: "set_pvf_voting_ttl" - new: t.u32 + new: t.types.u32 } /** * Sets the minimum delay between announcing the upgrade block for a parachain until the @@ -283,7 +285,7 @@ export namespace Call { */ export interface set_minimum_validation_upgrade_delay { type: "set_minimum_validation_upgrade_delay" - new: t.u32 + new: t.types.u32 } /** * Setting this to true will disable consistency checks for the configuration setters. @@ -296,151 +298,163 @@ export namespace Call { /** Set the validation upgrade cooldown. */ export function set_validation_upgrade_cooldown( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown { return { type: "set_validation_upgrade_cooldown", ...value } } /** Set the validation upgrade delay. */ export function set_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay { return { type: "set_validation_upgrade_delay", ...value } } /** Set the acceptance period for an included candidate. */ export function set_code_retention_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period { return { type: "set_code_retention_period", ...value } } /** Set the max validation code size for incoming upgrades. */ export function set_max_code_size( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size { return { type: "set_max_code_size", ...value } } /** Set the max POV block size for incoming upgrades. */ export function set_max_pov_size( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size { return { type: "set_max_pov_size", ...value } } /** Set the max head data size for paras. */ export function set_max_head_data_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size { return { type: "set_max_head_data_size", ...value } } /** Set the number of parathread execution cores. */ export function set_parathread_cores( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores { return { type: "set_parathread_cores", ...value } } /** Set the number of retries for a particular parathread. */ export function set_parathread_retries( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries { return { type: "set_parathread_retries", ...value } } /** Set the parachain validator-group rotation frequency */ export function set_group_rotation_frequency( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency { return { type: "set_group_rotation_frequency", ...value } } /** Set the availability period for parachains. */ export function set_chain_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period { return { type: "set_chain_availability_period", ...value } } /** Set the availability period for parathreads. */ export function set_thread_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period { return { type: "set_thread_availability_period", ...value } } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export function set_scheduling_lookahead( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead { return { type: "set_scheduling_lookahead", ...value } } /** Set the maximum number of validators to assign to any core. */ export function set_max_validators_per_core( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core { return { type: "set_max_validators_per_core", ...value } } /** Set the maximum number of validators to use in parachain consensus. */ export function set_max_validators( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators { return { type: "set_max_validators", ...value } } /** Set the dispute period, in number of sessions to keep for disputes. */ export function set_dispute_period( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period { return { type: "set_dispute_period", ...value } } /** Set the dispute post conclusion acceptance period. */ export function set_dispute_post_conclusion_acceptance_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period { return { type: "set_dispute_post_conclusion_acceptance_period", ...value } } /** Set the maximum number of dispute spam slots. */ export function set_dispute_max_spam_slots( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots { return { type: "set_dispute_max_spam_slots", ...value } } /** Set the dispute conclusion by time out period. */ export function set_dispute_conclusion_by_time_out_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period { return { type: "set_dispute_conclusion_by_time_out_period", ...value } } /** @@ -448,116 +462,119 @@ export namespace Call { * Must be at least 1. */ export function set_no_show_slots( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots { return { type: "set_no_show_slots", ...value } } /** Set the total number of delay tranches. */ export function set_n_delay_tranches( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches { return { type: "set_n_delay_tranches", ...value } } /** Set the zeroth delay tranche width. */ export function set_zeroth_delay_tranche_width( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width { return { type: "set_zeroth_delay_tranche_width", ...value } } /** Set the number of validators needed to approve a block. */ export function set_needed_approvals( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals { return { type: "set_needed_approvals", ...value } } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export function set_relay_vrf_modulo_samples( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples { return { type: "set_relay_vrf_modulo_samples", ...value } } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_count( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count { return { type: "set_max_upward_queue_count", ...value } } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size { return { type: "set_max_upward_queue_size", ...value } } /** Set the critical downward message size. */ export function set_max_downward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size { return { type: "set_max_downward_message_size", ...value } } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export function set_ump_service_total_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight { return { type: "set_ump_service_total_weight", ...value } } /** Sets the maximum size of an upward message that can be sent by a candidate. */ export function set_max_upward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size { return { type: "set_max_upward_message_size", ...value } } /** Sets the maximum number of messages that a candidate can contain. */ export function set_max_upward_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate { return { type: "set_max_upward_message_num_per_candidate", ...value } } /** Sets the number of sessions after which an HRMP open channel request expires. */ export function set_hrmp_open_request_ttl( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl { return { type: "set_hrmp_open_request_ttl", ...value } } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export function set_hrmp_sender_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit { return { type: "set_hrmp_sender_deposit", ...value } } /** @@ -566,106 +583,109 @@ export namespace Call { */ export function set_hrmp_recipient_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit { return { type: "set_hrmp_recipient_deposit", ...value } } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_capacity( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity { return { type: "set_hrmp_channel_max_capacity", ...value } } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_total_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size { return { type: "set_hrmp_channel_max_total_size", ...value } } /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export function set_hrmp_max_parachain_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels { return { type: "set_hrmp_max_parachain_inbound_channels", ...value } } /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export function set_hrmp_max_parathread_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels { return { type: "set_hrmp_max_parathread_inbound_channels", ...value } } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export function set_hrmp_channel_max_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size { return { type: "set_hrmp_channel_max_message_size", ...value } } /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export function set_hrmp_max_parachain_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels { return { type: "set_hrmp_max_parachain_outbound_channels", ...value } } /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export function set_hrmp_max_parathread_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels { return { type: "set_hrmp_max_parathread_outbound_channels", ...value } } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export function set_hrmp_max_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate { return { type: "set_hrmp_max_message_num_per_candidate", ...value } } /** Sets the maximum amount of weight any individual upward message may consume. */ export function set_ump_max_individual_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight { return { type: "set_ump_max_individual_weight", ...value } } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export function set_pvf_checking_enabled( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled { return { type: "set_pvf_checking_enabled", ...value } } /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export function set_pvf_voting_ttl( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl { return { type: "set_pvf_voting_ttl", ...value } } /** @@ -676,10 +696,10 @@ export namespace Call { */ export function set_minimum_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay { return { type: "set_minimum_validation_upgrade_delay", ...value } } /** @@ -688,10 +708,10 @@ export namespace Call { */ export function set_bypass_consistency_check( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check { return { type: "set_bypass_consistency_check", ...value } } } diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/disputes/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/disputes/mod.ts new file mode 100644 index 000000000..78ba141ad --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/disputes/mod.ts @@ -0,0 +1,16 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $disputeLocation: $.Codec< + t.types.polkadot_runtime_parachains.disputes.DisputeLocation +> = _codec.$115 + +export const $disputeResult: $.Codec = + _codec.$116 + +export type DisputeLocation = "Local" | "Remote" + +export type DisputeResult = "Valid" | "Invalid" diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/disputes/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/disputes/pallet.ts similarity index 57% rename from codegen/_output/kusama/polkadot_runtime_parachains/disputes/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/disputes/pallet.ts index 5c35c65c3..7a45998ea 100644 --- a/codegen/_output/kusama/polkadot_runtime_parachains/disputes/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/disputes/pallet.ts @@ -1,12 +1,14 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$410 +export const $call: $.Codec = _codec.$410 -export const $error: $.Codec = _codec.$700 +export const $error: $.Codec = + _codec.$700 -export const $event: $.Codec = _codec.$113 +export const $event: $.Codec = + _codec.$113 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = "force_unfreeze" @@ -23,17 +25,17 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut - | t.polkadot_runtime_parachains.disputes.pallet.Event.Revert + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert export namespace Event { /** A dispute has been initiated. \[candidate hash, dispute location\] */ export interface DisputeInitiated { type: "DisputeInitiated" value: [ - t.polkadot_core_primitives.CandidateHash, - t.polkadot_runtime_parachains.disputes.DisputeLocation, + t.types.polkadot_core_primitives.CandidateHash, + t.types.polkadot_runtime_parachains.disputes.DisputeLocation, ] } /** @@ -43,8 +45,8 @@ export namespace Event { export interface DisputeConcluded { type: "DisputeConcluded" value: [ - t.polkadot_core_primitives.CandidateHash, - t.polkadot_runtime_parachains.disputes.DisputeResult, + t.types.polkadot_core_primitives.CandidateHash, + t.types.polkadot_runtime_parachains.disputes.DisputeResult, ] } /** @@ -53,7 +55,7 @@ export namespace Event { */ export interface DisputeTimedOut { type: "DisputeTimedOut" - value: t.polkadot_core_primitives.CandidateHash + value: t.types.polkadot_core_primitives.CandidateHash } /** * A dispute has concluded with supermajority against a candidate. @@ -63,12 +65,12 @@ export namespace Event { */ export interface Revert { type: "Revert" - value: t.u32 + value: t.types.u32 } /** A dispute has been initiated. \[candidate hash, dispute location\] */ export function DisputeInitiated( - ...value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated["value"] - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated { + ...value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated["value"] + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated { return { type: "DisputeInitiated", value } } /** @@ -76,8 +78,8 @@ export namespace Event { * `\[para id, candidate hash, dispute result\]` */ export function DisputeConcluded( - ...value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded["value"] - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded { + ...value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded["value"] + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded { return { type: "DisputeConcluded", value } } /** @@ -85,8 +87,8 @@ export namespace Event { * `\[para id, candidate hash\]` */ export function DisputeTimedOut( - value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut["value"], - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut { + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut["value"], + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut { return { type: "DisputeTimedOut", value } } /** @@ -96,8 +98,8 @@ export namespace Event { * number of the child of the last known valid block in the chain. */ export function Revert( - value: t.polkadot_runtime_parachains.disputes.pallet.Event.Revert["value"], - ): t.polkadot_runtime_parachains.disputes.pallet.Event.Revert { + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert["value"], + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert { return { type: "Revert", value } } } diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/dmp/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/dmp/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_parachains/dmp/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/dmp/mod.ts diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/dmp/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/dmp/pallet.ts new file mode 100644 index 000000000..05133e66d --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/dmp/pallet.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $call: $.Codec = _codec.$407 + +/** Contains one variant per dispatchable that can be called by an extrinsic. */ +export type Call = never diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/hrmp/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/hrmp/mod.ts new file mode 100644 index 000000000..b63b5391f --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/hrmp/mod.ts @@ -0,0 +1,42 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $hrmpChannel: $.Codec = + _codec.$688 + +export const $hrmpOpenChannelRequest: $.Codec< + t.types.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest +> = _codec.$686 + +export interface HrmpChannel { + max_capacity: t.types.u32 + max_total_size: t.types.u32 + max_message_size: t.types.u32 + msg_count: t.types.u32 + total_size: t.types.u32 + mqc_head: t.types.primitive_types.H256 | undefined + sender_deposit: t.types.u128 + recipient_deposit: t.types.u128 +} + +export function HrmpChannel(value: t.types.polkadot_runtime_parachains.hrmp.HrmpChannel) { + return value +} + +export interface HrmpOpenChannelRequest { + confirmed: boolean + _age: t.types.u32 + sender_deposit: t.types.u128 + max_message_size: t.types.u32 + max_capacity: t.types.u32 + max_total_size: t.types.u32 +} + +export function HrmpOpenChannelRequest( + value: t.types.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest, +) { + return value +} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/hrmp/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/hrmp/pallet.ts similarity index 64% rename from codegen/_output/kusama/polkadot_runtime_parachains/hrmp/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/hrmp/pallet.ts index e9e897ba8..0c15ec391 100644 --- a/codegen/_output/kusama/polkadot_runtime_parachains/hrmp/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/hrmp/pallet.ts @@ -1,23 +1,23 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$409 +export const $call: $.Codec = _codec.$409 -export const $error: $.Codec = _codec.$694 +export const $error: $.Codec = _codec.$694 -export const $event: $.Codec = _codec.$111 +export const $event: $.Codec = _codec.$111 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel export namespace Call { /** * Initiate opening a channel from a parachain to a given recipient with given channel @@ -33,9 +33,9 @@ export namespace Call { */ export interface hrmp_init_open_channel { type: "hrmp_init_open_channel" - recipient: t.polkadot_parachain.primitives.Id - proposed_max_capacity: t.u32 - proposed_max_message_size: t.u32 + recipient: t.types.polkadot_parachain.primitives.Id + proposed_max_capacity: t.types.u32 + proposed_max_message_size: t.types.u32 } /** * Accept a pending open channel request from the given sender. @@ -44,7 +44,7 @@ export namespace Call { */ export interface hrmp_accept_open_channel { type: "hrmp_accept_open_channel" - sender: t.polkadot_parachain.primitives.Id + sender: t.types.polkadot_parachain.primitives.Id } /** * Initiate unilateral closing of a channel. The origin must be either the sender or the @@ -54,7 +54,7 @@ export namespace Call { */ export interface hrmp_close_channel { type: "hrmp_close_channel" - channel_id: t.polkadot_parachain.primitives.HrmpChannelId + channel_id: t.types.polkadot_parachain.primitives.HrmpChannelId } /** * This extrinsic triggers the cleanup of all the HRMP storage items that @@ -67,9 +67,9 @@ export namespace Call { */ export interface force_clean_hrmp { type: "force_clean_hrmp" - para: t.polkadot_parachain.primitives.Id - inbound: t.u32 - outbound: t.u32 + para: t.types.polkadot_parachain.primitives.Id + inbound: t.types.u32 + outbound: t.types.u32 } /** * Force process HRMP open channel requests. @@ -81,7 +81,7 @@ export namespace Call { */ export interface force_process_hrmp_open { type: "force_process_hrmp_open" - channels: t.u32 + channels: t.types.u32 } /** * Force process HRMP close channel requests. @@ -93,7 +93,7 @@ export namespace Call { */ export interface force_process_hrmp_close { type: "force_process_hrmp_close" - channels: t.u32 + channels: t.types.u32 } /** * This cancels a pending open channel request. It can be canceled by either of the sender @@ -107,8 +107,8 @@ export namespace Call { */ export interface hrmp_cancel_open_request { type: "hrmp_cancel_open_request" - channel_id: t.polkadot_parachain.primitives.HrmpChannelId - open_requests: t.u32 + channel_id: t.types.polkadot_parachain.primitives.HrmpChannelId + open_requests: t.types.u32 } /** * Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although @@ -120,10 +120,10 @@ export namespace Call { */ export interface force_open_hrmp_channel { type: "force_open_hrmp_channel" - sender: t.polkadot_parachain.primitives.Id - recipient: t.polkadot_parachain.primitives.Id - max_capacity: t.u32 - max_message_size: t.u32 + sender: t.types.polkadot_parachain.primitives.Id + recipient: t.types.polkadot_parachain.primitives.Id + max_capacity: t.types.u32 + max_message_size: t.types.u32 } /** * Initiate opening a channel from a parachain to a given recipient with given channel @@ -138,8 +138,11 @@ export namespace Call { * change. */ export function hrmp_init_open_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel { return { type: "hrmp_init_open_channel", ...value } } /** @@ -148,8 +151,11 @@ export namespace Call { * The channel will be opened only on the next session boundary. */ export function hrmp_accept_open_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel { return { type: "hrmp_accept_open_channel", ...value } } /** @@ -159,8 +165,8 @@ export namespace Call { * The closure can only happen on a session change. */ export function hrmp_close_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel { + value: Omit, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel { return { type: "hrmp_close_channel", ...value } } /** @@ -173,8 +179,8 @@ export namespace Call { * Number of inbound and outbound channels for `para` must be provided as witness data of weighing. */ export function force_clean_hrmp( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp { + value: Omit, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp { return { type: "force_clean_hrmp", ...value } } /** @@ -186,8 +192,11 @@ export namespace Call { * Total number of opening channels must be provided as witness data of weighing. */ export function force_process_hrmp_open( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open { return { type: "force_process_hrmp_open", ...value } } /** @@ -199,8 +208,11 @@ export namespace Call { * Total number of closing channels must be provided as witness data of weighing. */ export function force_process_hrmp_close( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close { return { type: "force_process_hrmp_close", ...value } } /** @@ -214,8 +226,11 @@ export namespace Call { * witness data. */ export function hrmp_cancel_open_request( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request { return { type: "hrmp_cancel_open_request", ...value } } /** @@ -227,8 +242,11 @@ export namespace Call { * Relay Chain, e.g. a common good parachain. */ export function force_open_hrmp_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel { return { type: "force_open_hrmp_channel", ...value } } } @@ -257,11 +275,11 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted - | t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed - | t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened export namespace Event { /** * Open HRMP channel requested. @@ -269,7 +287,12 @@ export namespace Event { */ export interface OpenChannelRequested { type: "OpenChannelRequested" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.Id, + t.types.u32, + t.types.u32, + ] } /** * An HRMP channel request sent by the receiver was canceled by either party. @@ -277,17 +300,23 @@ export namespace Event { */ export interface OpenChannelCanceled { type: "OpenChannelCanceled" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.HrmpChannelId] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.HrmpChannelId, + ] } /** Open HRMP channel accepted. `[sender, recipient]` */ export interface OpenChannelAccepted { type: "OpenChannelAccepted" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id] + value: [t.types.polkadot_parachain.primitives.Id, t.types.polkadot_parachain.primitives.Id] } /** HRMP channel closed. `[by_parachain, channel_id]` */ export interface ChannelClosed { type: "ChannelClosed" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.HrmpChannelId] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.HrmpChannelId, + ] } /** * An HRMP channel was opened via Root origin. @@ -295,15 +324,20 @@ export namespace Event { */ export interface HrmpChannelForceOpened { type: "HrmpChannelForceOpened" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.Id, + t.types.u32, + t.types.u32, + ] } /** * Open HRMP channel requested. * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` */ export function OpenChannelRequested( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested { return { type: "OpenChannelRequested", value } } /** @@ -311,20 +345,20 @@ export namespace Event { * `[by_parachain, channel_id]` */ export function OpenChannelCanceled( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled { return { type: "OpenChannelCanceled", value } } /** Open HRMP channel accepted. `[sender, recipient]` */ export function OpenChannelAccepted( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted { return { type: "OpenChannelAccepted", value } } /** HRMP channel closed. `[by_parachain, channel_id]` */ export function ChannelClosed( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed { return { type: "ChannelClosed", value } } /** @@ -332,8 +366,8 @@ export namespace Event { * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` */ export function HrmpChannelForceOpened( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened { return { type: "HrmpChannelForceOpened", value } } } diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/inclusion/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/inclusion/mod.ts new file mode 100644 index 000000000..1045f887b --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/inclusion/mod.ts @@ -0,0 +1,41 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $availabilityBitfieldRecord: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord +> = _codec.$644 + +export const $candidatePendingAvailability: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability +> = _codec.$645 + +export interface AvailabilityBitfieldRecord { + bitfield: t.types.polkadot_primitives.v2.AvailabilityBitfield + submitted_at: t.types.u32 +} + +export function AvailabilityBitfieldRecord( + value: t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord, +) { + return value +} + +export interface CandidatePendingAvailability { + core: t.types.polkadot_primitives.v2.CoreIndex + hash: t.types.polkadot_core_primitives.CandidateHash + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + availability_votes: $.BitSequence + backers: $.BitSequence + relay_parent_number: t.types.u32 + backed_in_number: t.types.u32 + backing_group: t.types.polkadot_primitives.v2.GroupIndex +} + +export function CandidatePendingAvailability( + value: t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability, +) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/inclusion/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/inclusion/pallet.ts similarity index 54% rename from codegen/_output/polkadot/polkadot_runtime_parachains/inclusion/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/inclusion/pallet.ts index fe8870e7c..23c9b26fd 100644 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/inclusion/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/inclusion/pallet.ts @@ -1,12 +1,14 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$377 +export const $call: $.Codec = _codec.$377 -export const $error: $.Codec = _codec.$646 +export const $error: $.Codec = + _codec.$646 -export const $event: $.Codec = _codec.$95 +export const $event: $.Codec = + _codec.$95 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = never @@ -45,55 +47,55 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut export namespace Event { /** A candidate was backed. `[candidate, head_data]` */ export interface CandidateBacked { type: "CandidateBacked" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, - t.polkadot_primitives.v2.GroupIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.GroupIndex, ] } /** A candidate was included. `[candidate, head_data]` */ export interface CandidateIncluded { type: "CandidateIncluded" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, - t.polkadot_primitives.v2.GroupIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.GroupIndex, ] } /** A candidate timed out. `[candidate, head_data]` */ export interface CandidateTimedOut { type: "CandidateTimedOut" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, ] } /** A candidate was backed. `[candidate, head_data]` */ export function CandidateBacked( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked { return { type: "CandidateBacked", value } } /** A candidate was included. `[candidate, head_data]` */ export function CandidateIncluded( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded { return { type: "CandidateIncluded", value } } /** A candidate timed out. `[candidate, head_data]` */ export function CandidateTimedOut( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut { return { type: "CandidateTimedOut", value } } } diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/initializer/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/initializer/mod.ts new file mode 100644 index 000000000..27d90b3d3 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/initializer/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $bufferedSessionChange: $.Codec< + t.types.polkadot_runtime_parachains.initializer.BufferedSessionChange +> = _codec.$681 + +export interface BufferedSessionChange { + validators: Array + queued: Array + session_index: t.types.u32 +} + +export function BufferedSessionChange( + value: t.types.polkadot_runtime_parachains.initializer.BufferedSessionChange, +) { + return value +} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/initializer/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/initializer/pallet.ts similarity index 57% rename from codegen/_output/westend/polkadot_runtime_parachains/initializer/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/initializer/pallet.ts index 339c024f4..03632cb0a 100644 --- a/codegen/_output/westend/polkadot_runtime_parachains/initializer/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/initializer/pallet.ts @@ -1,11 +1,12 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$406 +export const $call: $.Codec = + _codec.$406 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.initializer.pallet.Call.force_approve +export type Call = t.types.polkadot_runtime_parachains.initializer.pallet.Call.force_approve export namespace Call { /** * Issue a signal to the consensus engine to forcibly act as though all parachain @@ -14,7 +15,7 @@ export namespace Call { */ export interface force_approve { type: "force_approve" - up_to: t.u32 + up_to: t.types.u32 } /** * Issue a signal to the consensus engine to forcibly act as though all parachain @@ -22,8 +23,8 @@ export namespace Call { * chain are valid and should be finalized. */ export function force_approve( - value: Omit, - ): t.polkadot_runtime_parachains.initializer.pallet.Call.force_approve { + value: Omit, + ): t.types.polkadot_runtime_parachains.initializer.pallet.Call.force_approve { return { type: "force_approve", ...value } } } diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_parachains/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/mod.ts diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/origin/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/origin/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_parachains/origin/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/origin/mod.ts diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/origin/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/origin/pallet.ts new file mode 100644 index 000000000..6b80987cd --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/origin/pallet.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $origin: $.Codec = + _codec.$260 + +export type Origin = t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain +export namespace Origin { + export interface Parachain { + type: "Parachain" + value: t.types.polkadot_parachain.primitives.Id + } + export function Parachain( + value: t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain["value"], + ): t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain { + return { type: "Parachain", value } + } +} diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/paras/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/paras/mod.ts new file mode 100644 index 000000000..0e4bab946 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/paras/mod.ts @@ -0,0 +1,106 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $paraGenesisArgs: $.Codec = + _codec.$678 + +export const $paraLifecycle: $.Codec = + _codec.$670 + +export const $paraPastCodeMeta: $.Codec< + t.types.polkadot_runtime_parachains.paras.ParaPastCodeMeta +> = _codec.$672 + +export const $pvfCheckActiveVoteState: $.Codec< + t.types.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState +> = _codec.$666 + +export const $pvfCheckCause: $.Codec = + _codec.$668 + +export const $replacementTimes: $.Codec< + t.types.polkadot_runtime_parachains.paras.ReplacementTimes +> = _codec.$674 + +export interface ParaGenesisArgs { + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode + parachain: boolean +} + +export function ParaGenesisArgs(value: t.types.polkadot_runtime_parachains.paras.ParaGenesisArgs) { + return value +} + +export type ParaLifecycle = + | "Onboarding" + | "Parathread" + | "Parachain" + | "UpgradingParathread" + | "DowngradingParachain" + | "OffboardingParathread" + | "OffboardingParachain" + +export interface ParaPastCodeMeta { + upgrade_times: Array + last_pruned: t.types.u32 | undefined +} + +export function ParaPastCodeMeta( + value: t.types.polkadot_runtime_parachains.paras.ParaPastCodeMeta, +) { + return value +} + +export interface PvfCheckActiveVoteState { + votes_accept: $.BitSequence + votes_reject: $.BitSequence + age: t.types.u32 + created_at: t.types.u32 + causes: Array +} + +export function PvfCheckActiveVoteState( + value: t.types.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState, +) { + return value +} + +export type PvfCheckCause = + | t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding + | t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade +export namespace PvfCheckCause { + export interface Onboarding { + type: "Onboarding" + value: t.types.polkadot_parachain.primitives.Id + } + export interface Upgrade { + type: "Upgrade" + id: t.types.polkadot_parachain.primitives.Id + relay_parent_number: t.types.u32 + } + export function Onboarding( + value: t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding["value"], + ): t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding { + return { type: "Onboarding", value } + } + export function Upgrade( + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade { + return { type: "Upgrade", ...value } + } +} + +export interface ReplacementTimes { + expected_at: t.types.u32 + activated_at: t.types.u32 +} + +export function ReplacementTimes( + value: t.types.polkadot_runtime_parachains.paras.ReplacementTimes, +) { + return value +} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/paras/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/paras/pallet.ts similarity index 58% rename from codegen/_output/westend/polkadot_runtime_parachains/paras/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/paras/pallet.ts index fc656fe9e..9bb96a5de 100644 --- a/codegen/_output/westend/polkadot_runtime_parachains/paras/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/paras/pallet.ts @@ -1,48 +1,48 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$404 +export const $call: $.Codec = _codec.$404 -export const $error: $.Codec = _codec.$679 +export const $error: $.Codec = _codec.$679 -export const $event: $.Codec = _codec.$107 +export const $event: $.Codec = _codec.$107 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code - | t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head - | t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade - | t.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head - | t.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action - | t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code - | t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code - | t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action + | t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement export namespace Call { /** Set the storage for the parachain validation code immediately. */ export interface force_set_current_code { type: "force_set_current_code" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode } /** Set the storage for the current parachain head data immediately. */ export interface force_set_current_head { type: "force_set_current_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export interface force_schedule_code_upgrade { type: "force_schedule_code_upgrade" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode - relay_parent_number: t.u32 + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode + relay_parent_number: t.types.u32 } /** Note a new block head for para within the context of the current block. */ export interface force_note_new_head { type: "force_note_new_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** * Put a parachain directly into the next session's action queue. @@ -51,7 +51,7 @@ export namespace Call { */ export interface force_queue_action { type: "force_queue_action" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Adds the validation code to the storage. @@ -70,7 +70,7 @@ export namespace Call { */ export interface add_trusted_validation_code { type: "add_trusted_validation_code" - validation_code: t.polkadot_parachain.primitives.ValidationCode + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Remove the validation code from the storage iff the reference count is 0. @@ -81,7 +81,7 @@ export namespace Call { */ export interface poke_unused_validation_code { type: "poke_unused_validation_code" - validation_code_hash: t.polkadot_parachain.primitives.ValidationCodeHash + validation_code_hash: t.types.polkadot_parachain.primitives.ValidationCodeHash } /** * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and @@ -89,34 +89,40 @@ export namespace Call { */ export interface include_pvf_check_statement { type: "include_pvf_check_statement" - stmt: t.polkadot_primitives.v2.PvfCheckStatement - signature: t.polkadot_primitives.v2.validator_app.Signature + stmt: t.types.polkadot_primitives.v2.PvfCheckStatement + signature: t.types.polkadot_primitives.v2.validator_app.Signature } /** Set the storage for the parachain validation code immediately. */ export function force_set_current_code( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code, + "type" + >, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code { return { type: "force_set_current_code", ...value } } /** Set the storage for the current parachain head data immediately. */ export function force_set_current_head( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head, + "type" + >, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head { return { type: "force_set_current_head", ...value } } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export function force_schedule_code_upgrade( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade { return { type: "force_schedule_code_upgrade", ...value } } /** Note a new block head for para within the context of the current block. */ export function force_note_new_head( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head { return { type: "force_note_new_head", ...value } } /** @@ -125,8 +131,8 @@ export namespace Call { * initializer... */ export function force_queue_action( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action { return { type: "force_queue_action", ...value } } /** @@ -146,10 +152,10 @@ export namespace Call { */ export function add_trusted_validation_code( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, + t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code { return { type: "add_trusted_validation_code", ...value } } /** @@ -161,10 +167,10 @@ export namespace Call { */ export function poke_unused_validation_code( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, + t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code { return { type: "poke_unused_validation_code", ...value } } /** @@ -173,10 +179,10 @@ export namespace Call { */ export function include_pvf_check_statement( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, + t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement { return { type: "include_pvf_check_statement", ...value } } } @@ -199,39 +205,39 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated - | t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated - | t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled - | t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted - | t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled + | t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected export namespace Event { /** Current code has been updated for a Para. `para_id` */ export interface CurrentCodeUpdated { type: "CurrentCodeUpdated" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** Current head has been updated for a Para. `para_id` */ export interface CurrentHeadUpdated { type: "CurrentHeadUpdated" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A code upgrade has been scheduled for a Para. `para_id` */ export interface CodeUpgradeScheduled { type: "CodeUpgradeScheduled" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A new head has been noted for a Para. `para_id` */ export interface NewHeadNoted { type: "NewHeadNoted" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A para has been queued to execute pending actions. `para_id` */ export interface ActionQueued { type: "ActionQueued" - value: [t.polkadot_parachain.primitives.Id, t.u32] + value: [t.types.polkadot_parachain.primitives.Id, t.types.u32] } /** * The given para either initiated or subscribed to a PVF check for the given validation @@ -239,7 +245,10 @@ export namespace Event { */ export interface PvfCheckStarted { type: "PvfCheckStarted" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** * The given validation code was accepted by the PVF pre-checking vote. @@ -247,7 +256,10 @@ export namespace Event { */ export interface PvfCheckAccepted { type: "PvfCheckAccepted" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** * The given validation code was rejected by the PVF pre-checking vote. @@ -255,36 +267,39 @@ export namespace Event { */ export interface PvfCheckRejected { type: "PvfCheckRejected" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** Current code has been updated for a Para. `para_id` */ export function CurrentCodeUpdated( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated { return { type: "CurrentCodeUpdated", value } } /** Current head has been updated for a Para. `para_id` */ export function CurrentHeadUpdated( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated { return { type: "CurrentHeadUpdated", value } } /** A code upgrade has been scheduled for a Para. `para_id` */ export function CodeUpgradeScheduled( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled { return { type: "CodeUpgradeScheduled", value } } /** A new head has been noted for a Para. `para_id` */ export function NewHeadNoted( - value: t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted { return { type: "NewHeadNoted", value } } /** A para has been queued to execute pending actions. `para_id` */ export function ActionQueued( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued { return { type: "ActionQueued", value } } /** @@ -292,8 +307,8 @@ export namespace Event { * code. `code_hash` `para_id` */ export function PvfCheckStarted( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted { return { type: "PvfCheckStarted", value } } /** @@ -301,8 +316,8 @@ export namespace Event { * `code_hash` `para_id` */ export function PvfCheckAccepted( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted { return { type: "PvfCheckAccepted", value } } /** @@ -310,8 +325,8 @@ export namespace Event { * `code_hash` `para_id` */ export function PvfCheckRejected( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected { return { type: "PvfCheckRejected", value } } } diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/paras_inherent/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/paras_inherent/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_parachains/paras_inherent/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/paras_inherent/mod.ts diff --git a/codegen/_output/westend/polkadot_runtime_parachains/paras_inherent/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/paras_inherent/pallet.ts similarity index 52% rename from codegen/_output/westend/polkadot_runtime_parachains/paras_inherent/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/paras_inherent/pallet.ts index 4570ac2fc..b806978aa 100644 --- a/codegen/_output/westend/polkadot_runtime_parachains/paras_inherent/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/paras_inherent/pallet.ts @@ -1,24 +1,25 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$378 +export const $call: $.Codec = + _codec.$378 -export const $error: $.Codec = +export const $error: $.Codec = _codec.$652 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter +export type Call = t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter export namespace Call { /** Enter the paras inherent. This will process bitfields and backed candidates. */ export interface enter { type: "enter" - data: t.polkadot_primitives.v2.InherentData + data: t.types.polkadot_primitives.v2.InherentData } /** Enter the paras inherent. This will process bitfields and backed candidates. */ export function enter( - value: Omit, - ): t.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter { return { type: "enter", ...value } } } diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/scheduler.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/scheduler.ts new file mode 100644 index 000000000..a4b6ffb37 --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/scheduler.ts @@ -0,0 +1,75 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $assignmentKind: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.AssignmentKind +> = _codec.$665 + +export const $coreAssignment: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.CoreAssignment +> = _codec.$664 + +export const $parathreadClaimQueue: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue +> = _codec.$654 + +export const $queuedParathread: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.QueuedParathread +> = _codec.$656 + +export type AssignmentKind = + | t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain + | t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread +export namespace AssignmentKind { + export interface Parachain { + type: "Parachain" + } + export interface Parathread { + type: "Parathread" + value: [t.types.polkadot_primitives.v2.collator_app.Public, t.types.u32] + } + export function Parachain(): t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain { + return { type: "Parachain" } + } + export function Parathread( + ...value: t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread["value"] + ): t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread { + return { type: "Parathread", value } + } +} + +export interface CoreAssignment { + core: t.types.polkadot_primitives.v2.CoreIndex + para_id: t.types.polkadot_parachain.primitives.Id + kind: t.types.polkadot_runtime_parachains.scheduler.AssignmentKind + group_idx: t.types.polkadot_primitives.v2.GroupIndex +} + +export function CoreAssignment( + value: t.types.polkadot_runtime_parachains.scheduler.CoreAssignment, +) { + return value +} + +export interface ParathreadClaimQueue { + queue: Array + next_core_offset: t.types.u32 +} + +export function ParathreadClaimQueue( + value: t.types.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue, +) { + return value +} + +export interface QueuedParathread { + claim: t.types.polkadot_primitives.v2.ParathreadEntry + core_offset: t.types.u32 +} + +export function QueuedParathread( + value: t.types.polkadot_runtime_parachains.scheduler.QueuedParathread, +) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/shared/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/shared/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_parachains/shared/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/shared/mod.ts diff --git a/codegen/_output/polkadot/types/polkadot_runtime_parachains/shared/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/shared/pallet.ts new file mode 100644 index 000000000..64ac9630f --- /dev/null +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/shared/pallet.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $call: $.Codec = _codec.$376 + +/** Contains one variant per dispatchable that can be called by an extrinsic. */ +export type Call = never diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/ump/mod.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/ump/mod.ts similarity index 100% rename from codegen/_output/polkadot/polkadot_runtime_parachains/ump/mod.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/ump/mod.ts diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/ump/pallet.ts b/codegen/_output/polkadot/types/polkadot_runtime_parachains/ump/pallet.ts similarity index 60% rename from codegen/_output/rococo/polkadot_runtime_parachains/ump/pallet.ts rename to codegen/_output/polkadot/types/polkadot_runtime_parachains/ump/pallet.ts index 61ae89bb9..c26129599 100644 --- a/codegen/_output/rococo/polkadot_runtime_parachains/ump/pallet.ts +++ b/codegen/_output/polkadot/types/polkadot_runtime_parachains/ump/pallet.ts @@ -1,15 +1,15 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$408 +export const $call: $.Codec = _codec.$408 -export const $error: $.Codec = _codec.$685 +export const $error: $.Codec = _codec.$685 -export const $event: $.Codec = _codec.$108 +export const $event: $.Codec = _codec.$108 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.ump.pallet.Call.service_overweight +export type Call = t.types.polkadot_runtime_parachains.ump.pallet.Call.service_overweight export namespace Call { /** * Service a single overweight upward message. @@ -27,8 +27,8 @@ export namespace Call { */ export interface service_overweight { type: "service_overweight" - index: t.u64 - weight_limit: t.sp_weights.weight_v2.Weight + index: t.types.u64 + weight_limit: t.types.sp_weights.weight_v2.Weight } /** * Service a single overweight upward message. @@ -45,8 +45,8 @@ export namespace Call { * - `OverweightServiced`: On success. */ export function service_overweight( - value: Omit, - ): t.polkadot_runtime_parachains.ump.pallet.Call.service_overweight { + value: Omit, + ): t.types.polkadot_runtime_parachains.ump.pallet.Call.service_overweight { return { type: "service_overweight", ...value } } } @@ -56,13 +56,13 @@ export type Error = "UnknownMessageIndex" | "WeightOverLimit" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat - | t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion - | t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward - | t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted - | t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived - | t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued - | t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced + | t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat + | t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion + | t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward + | t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted + | t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived + | t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued + | t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced export namespace Event { /** * Upward message is invalid XCM. @@ -86,7 +86,7 @@ export namespace Event { */ export interface ExecutedUpward { type: "ExecutedUpward" - value: [Uint8Array, t.xcm.v2.traits.Outcome] + value: [Uint8Array, t.types.xcm.v2.traits.Outcome] } /** * The weight limit for handling upward messages was reached. @@ -94,7 +94,7 @@ export namespace Event { */ export interface WeightExhausted { type: "WeightExhausted" - value: [Uint8Array, t.sp_weights.weight_v2.Weight, t.sp_weights.weight_v2.Weight] + value: [Uint8Array, t.types.sp_weights.weight_v2.Weight, t.types.sp_weights.weight_v2.Weight] } /** * Some upward messages have been received and will be processed. @@ -102,7 +102,7 @@ export namespace Event { */ export interface UpwardMessagesReceived { type: "UpwardMessagesReceived" - value: [t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [t.types.polkadot_parachain.primitives.Id, t.types.u32, t.types.u32] } /** * The weight budget was exceeded for an individual upward message. @@ -114,7 +114,12 @@ export namespace Event { */ export interface OverweightEnqueued { type: "OverweightEnqueued" - value: [t.polkadot_parachain.primitives.Id, Uint8Array, t.u64, t.sp_weights.weight_v2.Weight] + value: [ + t.types.polkadot_parachain.primitives.Id, + Uint8Array, + t.types.u64, + t.types.sp_weights.weight_v2.Weight, + ] } /** * Upward message from the overweight queue was executed with the given actual weight @@ -124,15 +129,15 @@ export namespace Event { */ export interface OverweightServiced { type: "OverweightServiced" - value: [t.u64, t.sp_weights.weight_v2.Weight] + value: [t.types.u64, t.types.sp_weights.weight_v2.Weight] } /** * Upward message is invalid XCM. * \[ id \] */ export function InvalidFormat( - value: t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat["value"], - ): t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat { + value: t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat["value"], + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat { return { type: "InvalidFormat", value } } /** @@ -140,8 +145,8 @@ export namespace Event { * \[ id \] */ export function UnsupportedVersion( - value: t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion["value"], - ): t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion { + value: t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion["value"], + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion { return { type: "UnsupportedVersion", value } } /** @@ -149,8 +154,8 @@ export namespace Event { * \[ id, outcome \] */ export function ExecutedUpward( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward { return { type: "ExecutedUpward", value } } /** @@ -158,8 +163,8 @@ export namespace Event { * \[ id, remaining, required \] */ export function WeightExhausted( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted { return { type: "WeightExhausted", value } } /** @@ -167,8 +172,8 @@ export namespace Event { * \[ para, count, size \] */ export function UpwardMessagesReceived( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived { return { type: "UpwardMessagesReceived", value } } /** @@ -180,8 +185,8 @@ export namespace Event { * \[ para, id, overweight_index, required \] */ export function OverweightEnqueued( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued { return { type: "OverweightEnqueued", value } } /** @@ -191,8 +196,8 @@ export namespace Event { * \[ overweight_index, used \] */ export function OverweightServiced( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced { return { type: "OverweightServiced", value } } } diff --git a/codegen/_output/polkadot/types/primitive_types.ts b/codegen/_output/polkadot/types/primitive_types.ts new file mode 100644 index 000000000..b7e7a5943 --- /dev/null +++ b/codegen/_output/polkadot/types/primitive_types.ts @@ -0,0 +1,11 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $h256: $.Codec = _codec.$11 + +export type H256 = Uint8Array + +export function H256(value: t.types.primitive_types.H256) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_arithmetic/fixed_point.ts b/codegen/_output/polkadot/types/sp_arithmetic/fixed_point.ts new file mode 100644 index 000000000..232b82ea4 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_arithmetic/fixed_point.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $fixedU128: $.Codec = _codec.$479 + +export type FixedU128 = t.types.u128 + +export function FixedU128(value: t.types.sp_arithmetic.fixed_point.FixedU128) { + return value +} diff --git a/codegen/_output/polkadot/sp_arithmetic/mod.ts b/codegen/_output/polkadot/types/sp_arithmetic/mod.ts similarity index 100% rename from codegen/_output/polkadot/sp_arithmetic/mod.ts rename to codegen/_output/polkadot/types/sp_arithmetic/mod.ts diff --git a/codegen/_output/polkadot/types/sp_arithmetic/per_things.ts b/codegen/_output/polkadot/types/sp_arithmetic/per_things.ts new file mode 100644 index 000000000..f0df80b65 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_arithmetic/per_things.ts @@ -0,0 +1,35 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $perU16: $.Codec = _codec.$320 + +export const $perbill: $.Codec = _codec.$42 + +export const $percent: $.Codec = _codec.$205 + +export const $permill: $.Codec = _codec.$558 + +export type PerU16 = t.types.u16 + +export function PerU16(value: t.types.sp_arithmetic.per_things.PerU16) { + return value +} + +export type Perbill = t.types.u32 + +export function Perbill(value: t.types.sp_arithmetic.per_things.Perbill) { + return value +} + +export type Percent = t.types.u8 + +export function Percent(value: t.types.sp_arithmetic.per_things.Percent) { + return value +} + +export type Permill = t.types.u32 + +export function Permill(value: t.types.sp_arithmetic.per_things.Permill) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_authority_discovery/app.ts b/codegen/_output/polkadot/types/sp_authority_discovery/app.ts new file mode 100644 index 000000000..96cf824f4 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_authority_discovery/app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$215 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.sp_authority_discovery.app.Public) { + return value +} diff --git a/codegen/_output/polkadot/sp_authority_discovery/mod.ts b/codegen/_output/polkadot/types/sp_authority_discovery/mod.ts similarity index 100% rename from codegen/_output/polkadot/sp_authority_discovery/mod.ts rename to codegen/_output/polkadot/types/sp_authority_discovery/mod.ts diff --git a/codegen/_output/polkadot/types/sp_consensus_babe/app.ts b/codegen/_output/polkadot/types/sp_consensus_babe/app.ts new file mode 100644 index 000000000..d3f29bc2c --- /dev/null +++ b/codegen/_output/polkadot/types/sp_consensus_babe/app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$189 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.sp_consensus_babe.app.Public) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_consensus_babe/digests.ts b/codegen/_output/polkadot/types/sp_consensus_babe/digests.ts new file mode 100644 index 000000000..4c4f4cd04 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_consensus_babe/digests.ts @@ -0,0 +1,103 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $nextConfigDescriptor: $.Codec< + t.types.sp_consensus_babe.digests.NextConfigDescriptor +> = _codec.$192 + +export const $preDigest: $.Codec = _codec.$462 + +export const $primaryPreDigest: $.Codec = + _codec.$463 + +export const $secondaryPlainPreDigest: $.Codec< + t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest +> = _codec.$464 + +export const $secondaryVRFPreDigest: $.Codec< + t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest +> = _codec.$465 + +export type NextConfigDescriptor = t.types.sp_consensus_babe.digests.NextConfigDescriptor.V1 +export namespace NextConfigDescriptor { + export interface V1 { + type: "V1" + c: [t.types.u64, t.types.u64] + allowed_slots: t.types.sp_consensus_babe.AllowedSlots + } + export function V1( + value: Omit, + ): t.types.sp_consensus_babe.digests.NextConfigDescriptor.V1 { + return { type: "V1", ...value } + } +} + +export type PreDigest = + | t.types.sp_consensus_babe.digests.PreDigest.Primary + | t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain + | t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF +export namespace PreDigest { + export interface Primary { + type: "Primary" + value: t.types.sp_consensus_babe.digests.PrimaryPreDigest + } + export interface SecondaryPlain { + type: "SecondaryPlain" + value: t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest + } + export interface SecondaryVRF { + type: "SecondaryVRF" + value: t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest + } + export function Primary( + value: t.types.sp_consensus_babe.digests.PreDigest.Primary["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.Primary { + return { type: "Primary", value } + } + export function SecondaryPlain( + value: t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain { + return { type: "SecondaryPlain", value } + } + export function SecondaryVRF( + value: t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF { + return { type: "SecondaryVRF", value } + } +} + +export interface PrimaryPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot + vrf_output: Uint8Array + vrf_proof: Uint8Array +} + +export function PrimaryPreDigest(value: t.types.sp_consensus_babe.digests.PrimaryPreDigest) { + return value +} + +export interface SecondaryPlainPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot +} + +export function SecondaryPlainPreDigest( + value: t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest, +) { + return value +} + +export interface SecondaryVRFPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot + vrf_output: Uint8Array + vrf_proof: Uint8Array +} + +export function SecondaryVRFPreDigest( + value: t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest, +) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_consensus_babe/mod.ts b/codegen/_output/polkadot/types/sp_consensus_babe/mod.ts new file mode 100644 index 000000000..73ea2dcea --- /dev/null +++ b/codegen/_output/polkadot/types/sp_consensus_babe/mod.ts @@ -0,0 +1,25 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as app from "./app.ts" +export * as digests from "./digests.ts" + +export const $allowedSlots: $.Codec = _codec.$194 + +export const $babeEpochConfiguration: $.Codec = + _codec.$466 + +export type AllowedSlots = + | "PrimarySlots" + | "PrimaryAndSecondaryPlainSlots" + | "PrimaryAndSecondaryVRFSlots" + +export interface BabeEpochConfiguration { + c: [t.types.u64, t.types.u64] + allowed_slots: t.types.sp_consensus_babe.AllowedSlots +} + +export function BabeEpochConfiguration(value: t.types.sp_consensus_babe.BabeEpochConfiguration) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_consensus_slots.ts b/codegen/_output/polkadot/types/sp_consensus_slots.ts new file mode 100644 index 000000000..5aae2750c --- /dev/null +++ b/codegen/_output/polkadot/types/sp_consensus_slots.ts @@ -0,0 +1,24 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $equivocationProof: $.Codec = _codec.$186 + +export const $slot: $.Codec = _codec.$190 + +export interface EquivocationProof { + offender: t.types.sp_consensus_babe.app.Public + slot: t.types.sp_consensus_slots.Slot + first_header: t.types.sp_runtime.generic.header.Header + second_header: t.types.sp_runtime.generic.header.Header +} + +export function EquivocationProof(value: t.types.sp_consensus_slots.EquivocationProof) { + return value +} + +export type Slot = t.types.u64 + +export function Slot(value: t.types.sp_consensus_slots.Slot) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_core/crypto.ts b/codegen/_output/polkadot/types/sp_core/crypto.ts new file mode 100644 index 000000000..3fb7caefa --- /dev/null +++ b/codegen/_output/polkadot/types/sp_core/crypto.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $accountId32: $.Codec = _codec.$0 + +export const $keyTypeId: $.Codec = _codec.$514 + +export type AccountId32 = Uint8Array + +export function AccountId32(value: t.types.sp_core.crypto.AccountId32) { + return value +} + +export type KeyTypeId = Uint8Array + +export function KeyTypeId(value: t.types.sp_core.crypto.KeyTypeId) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_core/ecdsa.ts b/codegen/_output/polkadot/types/sp_core/ecdsa.ts new file mode 100644 index 000000000..46fe6ef05 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_core/ecdsa.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$418 + +export const $signature: $.Codec = _codec.$422 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.ecdsa.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.ecdsa.Signature) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_core/ed25519.ts b/codegen/_output/polkadot/types/sp_core/ed25519.ts new file mode 100644 index 000000000..a23064e9b --- /dev/null +++ b/codegen/_output/polkadot/types/sp_core/ed25519.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$51 + +export const $signature: $.Codec = _codec.$222 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.ed25519.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.ed25519.Signature) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_core/mod.ts b/codegen/_output/polkadot/types/sp_core/mod.ts new file mode 100644 index 000000000..76b7c54c9 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_core/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as crypto from "./crypto.ts" +export * as ecdsa from "./ecdsa.ts" +export * as ed25519 from "./ed25519.ts" +export * as offchain from "./offchain.ts" +export * as sr25519 from "./sr25519.ts" + +export const $opaquePeerId: $.Codec = _codec.$230 + +export const $void: $.Codec = _codec.$262 + +export type OpaquePeerId = Uint8Array + +export function OpaquePeerId(value: t.types.sp_core.OpaquePeerId) { + return value +} + +export type Void = never diff --git a/codegen/_output/polkadot/types/sp_core/offchain.ts b/codegen/_output/polkadot/types/sp_core/offchain.ts new file mode 100644 index 000000000..dd675887f --- /dev/null +++ b/codegen/_output/polkadot/types/sp_core/offchain.ts @@ -0,0 +1,22 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $opaqueMultiaddr: $.Codec = _codec.$232 + +export const $opaqueNetworkState: $.Codec = _codec.$229 + +export type OpaqueMultiaddr = Uint8Array + +export function OpaqueMultiaddr(value: t.types.sp_core.offchain.OpaqueMultiaddr) { + return value +} + +export interface OpaqueNetworkState { + peer_id: t.types.sp_core.OpaquePeerId + external_addresses: Array +} + +export function OpaqueNetworkState(value: t.types.sp_core.offchain.OpaqueNetworkState) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_core/sr25519.ts b/codegen/_output/polkadot/types/sp_core/sr25519.ts new file mode 100644 index 000000000..a4e068793 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_core/sr25519.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$54 + +export const $signature: $.Codec = _codec.$101 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.sr25519.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.sr25519.Signature) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_finality_grandpa/app.ts b/codegen/_output/polkadot/types/sp_finality_grandpa/app.ts new file mode 100644 index 000000000..1113934c6 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_finality_grandpa/app.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$50 + +export const $signature: $.Codec = _codec.$221 + +export type Public = t.types.sp_core.ed25519.Public + +export function Public(value: t.types.sp_finality_grandpa.app.Public) { + return value +} + +export type Signature = t.types.sp_core.ed25519.Signature + +export function Signature(value: t.types.sp_finality_grandpa.app.Signature) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_finality_grandpa/mod.ts b/codegen/_output/polkadot/types/sp_finality_grandpa/mod.ts new file mode 100644 index 000000000..f120dbf22 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_finality_grandpa/mod.ts @@ -0,0 +1,43 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as app from "./app.ts" + +export const $equivocation: $.Codec = _codec.$218 + +export const $equivocationProof: $.Codec = + _codec.$217 + +export type Equivocation = + | t.types.sp_finality_grandpa.Equivocation.Prevote + | t.types.sp_finality_grandpa.Equivocation.Precommit +export namespace Equivocation { + export interface Prevote { + type: "Prevote" + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Prevote + } + export interface Precommit { + type: "Precommit" + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit + } + export function Prevote( + value: t.types.sp_finality_grandpa.Equivocation.Prevote["value"], + ): t.types.sp_finality_grandpa.Equivocation.Prevote { + return { type: "Prevote", value } + } + export function Precommit( + value: t.types.sp_finality_grandpa.Equivocation.Precommit["value"], + ): t.types.sp_finality_grandpa.Equivocation.Precommit { + return { type: "Precommit", value } + } +} + +export interface EquivocationProof { + set_id: t.types.u64 + equivocation: t.types.sp_finality_grandpa.Equivocation +} + +export function EquivocationProof(value: t.types.sp_finality_grandpa.EquivocationProof) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_npos_elections.ts b/codegen/_output/polkadot/types/sp_npos_elections.ts new file mode 100644 index 000000000..de5eb30ab --- /dev/null +++ b/codegen/_output/polkadot/types/sp_npos_elections.ts @@ -0,0 +1,26 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $electionScore: $.Codec = _codec.$88 + +export const $support: $.Codec = _codec.$367 + +export interface ElectionScore { + minimal_stake: t.types.u128 + sum_stake: t.types.u128 + sum_stake_squared: t.types.u128 +} + +export function ElectionScore(value: t.types.sp_npos_elections.ElectionScore) { + return value +} + +export interface Support { + total: t.types.u128 + voters: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> +} + +export function Support(value: t.types.sp_npos_elections.Support) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_runtime/generic/digest.ts b/codegen/_output/polkadot/types/sp_runtime/generic/digest.ts new file mode 100644 index 000000000..82a236b97 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_runtime/generic/digest.ts @@ -0,0 +1,66 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $digest: $.Codec = _codec.$13 + +export const $digestItem: $.Codec = _codec.$15 + +export interface Digest { + logs: Array +} + +export function Digest(value: t.types.sp_runtime.generic.digest.Digest) { + return value +} + +export type DigestItem = + | t.types.sp_runtime.generic.digest.DigestItem.PreRuntime + | t.types.sp_runtime.generic.digest.DigestItem.Consensus + | t.types.sp_runtime.generic.digest.DigestItem.Seal + | t.types.sp_runtime.generic.digest.DigestItem.Other + | t.types.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated +export namespace DigestItem { + export interface PreRuntime { + type: "PreRuntime" + value: [Uint8Array, Uint8Array] + } + export interface Consensus { + type: "Consensus" + value: [Uint8Array, Uint8Array] + } + export interface Seal { + type: "Seal" + value: [Uint8Array, Uint8Array] + } + export interface Other { + type: "Other" + value: Uint8Array + } + export interface RuntimeEnvironmentUpdated { + type: "RuntimeEnvironmentUpdated" + } + export function PreRuntime( + ...value: t.types.sp_runtime.generic.digest.DigestItem.PreRuntime["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.PreRuntime { + return { type: "PreRuntime", value } + } + export function Consensus( + ...value: t.types.sp_runtime.generic.digest.DigestItem.Consensus["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.Consensus { + return { type: "Consensus", value } + } + export function Seal( + ...value: t.types.sp_runtime.generic.digest.DigestItem.Seal["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.Seal { + return { type: "Seal", value } + } + export function Other( + value: t.types.sp_runtime.generic.digest.DigestItem.Other["value"], + ): t.types.sp_runtime.generic.digest.DigestItem.Other { + return { type: "Other", value } + } + export function RuntimeEnvironmentUpdated(): t.types.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated { + return { type: "RuntimeEnvironmentUpdated" } + } +} diff --git a/codegen/_output/polkadot/types/sp_runtime/generic/header.ts b/codegen/_output/polkadot/types/sp_runtime/generic/header.ts new file mode 100644 index 000000000..1d9deba5b --- /dev/null +++ b/codegen/_output/polkadot/types/sp_runtime/generic/header.ts @@ -0,0 +1,17 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $header: $.Codec = _codec.$187 + +export interface Header { + parent_hash: t.types.primitive_types.H256 + number: t.Compact + state_root: t.types.primitive_types.H256 + extrinsics_root: t.types.primitive_types.H256 + digest: t.types.sp_runtime.generic.digest.Digest +} + +export function Header(value: t.types.sp_runtime.generic.header.Header) { + return value +} diff --git a/codegen/_output/polkadot/sp_runtime/generic/mod.ts b/codegen/_output/polkadot/types/sp_runtime/generic/mod.ts similarity index 100% rename from codegen/_output/polkadot/sp_runtime/generic/mod.ts rename to codegen/_output/polkadot/types/sp_runtime/generic/mod.ts diff --git a/codegen/_output/polkadot/types/sp_runtime/mod.ts b/codegen/_output/polkadot/types/sp_runtime/mod.ts new file mode 100644 index 000000000..d17725156 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_runtime/mod.ts @@ -0,0 +1,218 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as generic from "./generic/mod.ts" +export * as multiaddress from "./multiaddress.ts" +export * as traits from "./traits.ts" + +export const $arithmeticError: $.Codec = _codec.$27 + +export const $dispatchError: $.Codec = _codec.$24 + +export const $moduleError: $.Codec = _codec.$25 + +export const $multiSignature: $.Codec = _codec.$421 + +export const $multiSigner: $.Codec = _codec.$417 + +export const $tokenError: $.Codec = _codec.$26 + +export const $transactionalError: $.Codec = _codec.$28 + +export type ArithmeticError = "Underflow" | "Overflow" | "DivisionByZero" + +export type DispatchError = + | t.types.sp_runtime.DispatchError.Other + | t.types.sp_runtime.DispatchError.CannotLookup + | t.types.sp_runtime.DispatchError.BadOrigin + | t.types.sp_runtime.DispatchError.Module + | t.types.sp_runtime.DispatchError.ConsumerRemaining + | t.types.sp_runtime.DispatchError.NoProviders + | t.types.sp_runtime.DispatchError.TooManyConsumers + | t.types.sp_runtime.DispatchError.Token + | t.types.sp_runtime.DispatchError.Arithmetic + | t.types.sp_runtime.DispatchError.Transactional + | t.types.sp_runtime.DispatchError.Exhausted + | t.types.sp_runtime.DispatchError.Corruption + | t.types.sp_runtime.DispatchError.Unavailable +export namespace DispatchError { + export interface Other { + type: "Other" + } + export interface CannotLookup { + type: "CannotLookup" + } + export interface BadOrigin { + type: "BadOrigin" + } + export interface Module { + type: "Module" + value: t.types.sp_runtime.ModuleError + } + export interface ConsumerRemaining { + type: "ConsumerRemaining" + } + export interface NoProviders { + type: "NoProviders" + } + export interface TooManyConsumers { + type: "TooManyConsumers" + } + export interface Token { + type: "Token" + value: t.types.sp_runtime.TokenError + } + export interface Arithmetic { + type: "Arithmetic" + value: t.types.sp_runtime.ArithmeticError + } + export interface Transactional { + type: "Transactional" + value: t.types.sp_runtime.TransactionalError + } + export interface Exhausted { + type: "Exhausted" + } + export interface Corruption { + type: "Corruption" + } + export interface Unavailable { + type: "Unavailable" + } + export function Other(): t.types.sp_runtime.DispatchError.Other { + return { type: "Other" } + } + export function CannotLookup(): t.types.sp_runtime.DispatchError.CannotLookup { + return { type: "CannotLookup" } + } + export function BadOrigin(): t.types.sp_runtime.DispatchError.BadOrigin { + return { type: "BadOrigin" } + } + export function Module( + value: t.types.sp_runtime.DispatchError.Module["value"], + ): t.types.sp_runtime.DispatchError.Module { + return { type: "Module", value } + } + export function ConsumerRemaining(): t.types.sp_runtime.DispatchError.ConsumerRemaining { + return { type: "ConsumerRemaining" } + } + export function NoProviders(): t.types.sp_runtime.DispatchError.NoProviders { + return { type: "NoProviders" } + } + export function TooManyConsumers(): t.types.sp_runtime.DispatchError.TooManyConsumers { + return { type: "TooManyConsumers" } + } + export function Token( + value: t.types.sp_runtime.DispatchError.Token["value"], + ): t.types.sp_runtime.DispatchError.Token { + return { type: "Token", value } + } + export function Arithmetic( + value: t.types.sp_runtime.DispatchError.Arithmetic["value"], + ): t.types.sp_runtime.DispatchError.Arithmetic { + return { type: "Arithmetic", value } + } + export function Transactional( + value: t.types.sp_runtime.DispatchError.Transactional["value"], + ): t.types.sp_runtime.DispatchError.Transactional { + return { type: "Transactional", value } + } + export function Exhausted(): t.types.sp_runtime.DispatchError.Exhausted { + return { type: "Exhausted" } + } + export function Corruption(): t.types.sp_runtime.DispatchError.Corruption { + return { type: "Corruption" } + } + export function Unavailable(): t.types.sp_runtime.DispatchError.Unavailable { + return { type: "Unavailable" } + } +} + +export interface ModuleError { + index: t.types.u8 + error: Uint8Array +} + +export function ModuleError(value: t.types.sp_runtime.ModuleError) { + return value +} + +export type MultiSignature = + | t.types.sp_runtime.MultiSignature.Ed25519 + | t.types.sp_runtime.MultiSignature.Sr25519 + | t.types.sp_runtime.MultiSignature.Ecdsa +export namespace MultiSignature { + export interface Ed25519 { + type: "Ed25519" + value: t.types.sp_core.ed25519.Signature + } + export interface Sr25519 { + type: "Sr25519" + value: t.types.sp_core.sr25519.Signature + } + export interface Ecdsa { + type: "Ecdsa" + value: t.types.sp_core.ecdsa.Signature + } + export function Ed25519( + value: t.types.sp_runtime.MultiSignature.Ed25519["value"], + ): t.types.sp_runtime.MultiSignature.Ed25519 { + return { type: "Ed25519", value } + } + export function Sr25519( + value: t.types.sp_runtime.MultiSignature.Sr25519["value"], + ): t.types.sp_runtime.MultiSignature.Sr25519 { + return { type: "Sr25519", value } + } + export function Ecdsa( + value: t.types.sp_runtime.MultiSignature.Ecdsa["value"], + ): t.types.sp_runtime.MultiSignature.Ecdsa { + return { type: "Ecdsa", value } + } +} + +export type MultiSigner = + | t.types.sp_runtime.MultiSigner.Ed25519 + | t.types.sp_runtime.MultiSigner.Sr25519 + | t.types.sp_runtime.MultiSigner.Ecdsa +export namespace MultiSigner { + export interface Ed25519 { + type: "Ed25519" + value: t.types.sp_core.ed25519.Public + } + export interface Sr25519 { + type: "Sr25519" + value: t.types.sp_core.sr25519.Public + } + export interface Ecdsa { + type: "Ecdsa" + value: t.types.sp_core.ecdsa.Public + } + export function Ed25519( + value: t.types.sp_runtime.MultiSigner.Ed25519["value"], + ): t.types.sp_runtime.MultiSigner.Ed25519 { + return { type: "Ed25519", value } + } + export function Sr25519( + value: t.types.sp_runtime.MultiSigner.Sr25519["value"], + ): t.types.sp_runtime.MultiSigner.Sr25519 { + return { type: "Sr25519", value } + } + export function Ecdsa( + value: t.types.sp_runtime.MultiSigner.Ecdsa["value"], + ): t.types.sp_runtime.MultiSigner.Ecdsa { + return { type: "Ecdsa", value } + } +} + +export type TokenError = + | "NoFunds" + | "WouldDie" + | "BelowMinimum" + | "CannotCreate" + | "UnknownAsset" + | "Frozen" + | "Unsupported" + +export type TransactionalError = "LimitReached" | "NoLayer" diff --git a/codegen/_output/polkadot/types/sp_runtime/multiaddress.ts b/codegen/_output/polkadot/types/sp_runtime/multiaddress.ts new file mode 100644 index 000000000..cef3e56ce --- /dev/null +++ b/codegen/_output/polkadot/types/sp_runtime/multiaddress.ts @@ -0,0 +1,59 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $multiAddress: $.Codec = _codec.$197 + +export type MultiAddress = + | t.types.sp_runtime.multiaddress.MultiAddress.Id + | t.types.sp_runtime.multiaddress.MultiAddress.Index + | t.types.sp_runtime.multiaddress.MultiAddress.Raw + | t.types.sp_runtime.multiaddress.MultiAddress.Address32 + | t.types.sp_runtime.multiaddress.MultiAddress.Address20 +export namespace MultiAddress { + export interface Id { + type: "Id" + value: t.types.sp_core.crypto.AccountId32 + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Raw { + type: "Raw" + value: Uint8Array + } + export interface Address32 { + type: "Address32" + value: Uint8Array + } + export interface Address20 { + type: "Address20" + value: Uint8Array + } + export function Id( + value: t.types.sp_runtime.multiaddress.MultiAddress.Id["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Id { + return { type: "Id", value } + } + export function Index( + value: t.types.sp_runtime.multiaddress.MultiAddress.Index["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Index { + return { type: "Index", value } + } + export function Raw( + value: t.types.sp_runtime.multiaddress.MultiAddress.Raw["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Raw { + return { type: "Raw", value } + } + export function Address32( + value: t.types.sp_runtime.multiaddress.MultiAddress.Address32["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Address32 { + return { type: "Address32", value } + } + export function Address20( + value: t.types.sp_runtime.multiaddress.MultiAddress.Address20["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Address20 { + return { type: "Address20", value } + } +} diff --git a/codegen/_output/polkadot/types/sp_runtime/traits.ts b/codegen/_output/polkadot/types/sp_runtime/traits.ts new file mode 100644 index 000000000..71293ed25 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_runtime/traits.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $blakeTwo256: $.Codec = _codec.$188 + +export function BlakeTwo256() { + return null +} + +export type BlakeTwo256 = null diff --git a/codegen/_output/polkadot/types/sp_session.ts b/codegen/_output/polkadot/types/sp_session.ts new file mode 100644 index 000000000..0d1cce46f --- /dev/null +++ b/codegen/_output/polkadot/types/sp_session.ts @@ -0,0 +1,15 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $membershipProof: $.Codec = _codec.$191 + +export interface MembershipProof { + session: t.types.u32 + trie_nodes: Array + validator_count: t.types.u32 +} + +export function MembershipProof(value: t.types.sp_session.MembershipProof) { + return value +} diff --git a/codegen/_output/polkadot/sp_staking/mod.ts b/codegen/_output/polkadot/types/sp_staking/mod.ts similarity index 100% rename from codegen/_output/polkadot/sp_staking/mod.ts rename to codegen/_output/polkadot/types/sp_staking/mod.ts diff --git a/codegen/_output/polkadot/types/sp_staking/offence.ts b/codegen/_output/polkadot/types/sp_staking/offence.ts new file mode 100644 index 000000000..b040fad84 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_staking/offence.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $offenceDetails: $.Codec = _codec.$509 + +export interface OffenceDetails { + offender: [t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure] + reporters: Array +} + +export function OffenceDetails(value: t.types.sp_staking.offence.OffenceDetails) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_version.ts b/codegen/_output/polkadot/types/sp_version.ts new file mode 100644 index 000000000..6d5fd37d2 --- /dev/null +++ b/codegen/_output/polkadot/types/sp_version.ts @@ -0,0 +1,20 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $runtimeVersion: $.Codec = _codec.$172 + +export interface RuntimeVersion { + spec_name: string + impl_name: string + authoring_version: t.types.u32 + spec_version: t.types.u32 + impl_version: t.types.u32 + apis: Array<[Uint8Array, t.types.u32]> + transaction_version: t.types.u32 + state_version: t.types.u8 +} + +export function RuntimeVersion(value: t.types.sp_version.RuntimeVersion) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_weights/mod.ts b/codegen/_output/polkadot/types/sp_weights/mod.ts new file mode 100644 index 000000000..6c71df30c --- /dev/null +++ b/codegen/_output/polkadot/types/sp_weights/mod.ts @@ -0,0 +1,24 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as weight_v2 from "./weight_v2.ts" + +export const $oldWeight: $.Codec = _codec.$239 + +export const $runtimeDbWeight: $.Codec = _codec.$171 + +export type OldWeight = t.types.u64 + +export function OldWeight(value: t.types.sp_weights.OldWeight) { + return value +} + +export interface RuntimeDbWeight { + read: t.types.u64 + write: t.types.u64 +} + +export function RuntimeDbWeight(value: t.types.sp_weights.RuntimeDbWeight) { + return value +} diff --git a/codegen/_output/polkadot/types/sp_weights/weight_v2.ts b/codegen/_output/polkadot/types/sp_weights/weight_v2.ts new file mode 100644 index 000000000..16e7987be --- /dev/null +++ b/codegen/_output/polkadot/types/sp_weights/weight_v2.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $weight: $.Codec = _codec.$8 + +export interface Weight { + ref_time: t.Compact + proof_size: t.Compact +} + +export function Weight(value: t.types.sp_weights.weight_v2.Weight) { + return value +} diff --git a/codegen/_output/polkadot/types/xcm/mod.ts b/codegen/_output/polkadot/types/xcm/mod.ts new file mode 100644 index 000000000..2b0075cda --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/mod.ts @@ -0,0 +1,125 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as v0 from "./v0/mod.ts" +export * as v1 from "./v1/mod.ts" +export * as v2 from "./v2/mod.ts" + +export const $versionedMultiAssets: $.Codec = _codec.$150 + +export const $versionedMultiLocation: $.Codec = _codec.$155 + +export const $versionedResponse: $.Codec = _codec.$716 + +export const $versionedXcm: $.Codec = _codec.$424 + +export type VersionedMultiAssets = + | t.types.xcm.VersionedMultiAssets.V0 + | t.types.xcm.VersionedMultiAssets.V1 +export namespace VersionedMultiAssets { + export interface V0 { + type: "V0" + value: Array + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export function V0( + value: t.types.xcm.VersionedMultiAssets.V0["value"], + ): t.types.xcm.VersionedMultiAssets.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedMultiAssets.V1["value"], + ): t.types.xcm.VersionedMultiAssets.V1 { + return { type: "V1", value } + } +} + +export type VersionedMultiLocation = + | t.types.xcm.VersionedMultiLocation.V0 + | t.types.xcm.VersionedMultiLocation.V1 +export namespace VersionedMultiLocation { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.multi_location.MultiLocation + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.multilocation.MultiLocation + } + export function V0( + value: t.types.xcm.VersionedMultiLocation.V0["value"], + ): t.types.xcm.VersionedMultiLocation.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedMultiLocation.V1["value"], + ): t.types.xcm.VersionedMultiLocation.V1 { + return { type: "V1", value } + } +} + +export type VersionedResponse = + | t.types.xcm.VersionedResponse.V0 + | t.types.xcm.VersionedResponse.V1 + | t.types.xcm.VersionedResponse.V2 +export namespace VersionedResponse { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.Response + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.Response + } + export interface V2 { + type: "V2" + value: t.types.xcm.v2.Response + } + export function V0( + value: t.types.xcm.VersionedResponse.V0["value"], + ): t.types.xcm.VersionedResponse.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedResponse.V1["value"], + ): t.types.xcm.VersionedResponse.V1 { + return { type: "V1", value } + } + export function V2( + value: t.types.xcm.VersionedResponse.V2["value"], + ): t.types.xcm.VersionedResponse.V2 { + return { type: "V2", value } + } +} + +export type VersionedXcm = + | t.types.xcm.VersionedXcm.V0 + | t.types.xcm.VersionedXcm.V1 + | t.types.xcm.VersionedXcm.V2 +export namespace VersionedXcm { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.Xcm + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.Xcm + } + export interface V2 { + type: "V2" + value: Array + } + export function V0(value: t.types.xcm.VersionedXcm.V0["value"]): t.types.xcm.VersionedXcm.V0 { + return { type: "V0", value } + } + export function V1(value: t.types.xcm.VersionedXcm.V1["value"]): t.types.xcm.VersionedXcm.V1 { + return { type: "V1", value } + } + export function V2(value: t.types.xcm.VersionedXcm.V2["value"]): t.types.xcm.VersionedXcm.V2 { + return { type: "V2", value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v0/junction.ts b/codegen/_output/polkadot/types/xcm/v0/junction.ts new file mode 100644 index 000000000..8d6d89a84 --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v0/junction.ts @@ -0,0 +1,261 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $bodyId: $.Codec = _codec.$128 + +export const $bodyPart: $.Codec = _codec.$129 + +export const $junction: $.Codec = _codec.$154 + +export const $networkId: $.Codec = _codec.$126 + +export type BodyId = + | t.types.xcm.v0.junction.BodyId.Unit + | t.types.xcm.v0.junction.BodyId.Named + | t.types.xcm.v0.junction.BodyId.Index + | t.types.xcm.v0.junction.BodyId.Executive + | t.types.xcm.v0.junction.BodyId.Technical + | t.types.xcm.v0.junction.BodyId.Legislative + | t.types.xcm.v0.junction.BodyId.Judicial +export namespace BodyId { + export interface Unit { + type: "Unit" + } + export interface Named { + type: "Named" + value: Uint8Array + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Executive { + type: "Executive" + } + export interface Technical { + type: "Technical" + } + export interface Legislative { + type: "Legislative" + } + export interface Judicial { + type: "Judicial" + } + export function Unit(): t.types.xcm.v0.junction.BodyId.Unit { + return { type: "Unit" } + } + export function Named( + value: t.types.xcm.v0.junction.BodyId.Named["value"], + ): t.types.xcm.v0.junction.BodyId.Named { + return { type: "Named", value } + } + export function Index( + value: t.types.xcm.v0.junction.BodyId.Index["value"], + ): t.types.xcm.v0.junction.BodyId.Index { + return { type: "Index", value } + } + export function Executive(): t.types.xcm.v0.junction.BodyId.Executive { + return { type: "Executive" } + } + export function Technical(): t.types.xcm.v0.junction.BodyId.Technical { + return { type: "Technical" } + } + export function Legislative(): t.types.xcm.v0.junction.BodyId.Legislative { + return { type: "Legislative" } + } + export function Judicial(): t.types.xcm.v0.junction.BodyId.Judicial { + return { type: "Judicial" } + } +} + +export type BodyPart = + | t.types.xcm.v0.junction.BodyPart.Voice + | t.types.xcm.v0.junction.BodyPart.Members + | t.types.xcm.v0.junction.BodyPart.Fraction + | t.types.xcm.v0.junction.BodyPart.AtLeastProportion + | t.types.xcm.v0.junction.BodyPart.MoreThanProportion +export namespace BodyPart { + export interface Voice { + type: "Voice" + } + export interface Members { + type: "Members" + count: t.Compact + } + export interface Fraction { + type: "Fraction" + nom: t.Compact + denom: t.Compact + } + export interface AtLeastProportion { + type: "AtLeastProportion" + nom: t.Compact + denom: t.Compact + } + export interface MoreThanProportion { + type: "MoreThanProportion" + nom: t.Compact + denom: t.Compact + } + export function Voice(): t.types.xcm.v0.junction.BodyPart.Voice { + return { type: "Voice" } + } + export function Members( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.Members { + return { type: "Members", ...value } + } + export function Fraction( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.Fraction { + return { type: "Fraction", ...value } + } + export function AtLeastProportion( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.AtLeastProportion { + return { type: "AtLeastProportion", ...value } + } + export function MoreThanProportion( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.MoreThanProportion { + return { type: "MoreThanProportion", ...value } + } +} + +export type Junction = + | t.types.xcm.v0.junction.Junction.Parent + | t.types.xcm.v0.junction.Junction.Parachain + | t.types.xcm.v0.junction.Junction.AccountId32 + | t.types.xcm.v0.junction.Junction.AccountIndex64 + | t.types.xcm.v0.junction.Junction.AccountKey20 + | t.types.xcm.v0.junction.Junction.PalletInstance + | t.types.xcm.v0.junction.Junction.GeneralIndex + | t.types.xcm.v0.junction.Junction.GeneralKey + | t.types.xcm.v0.junction.Junction.OnlyChild + | t.types.xcm.v0.junction.Junction.Plurality +export namespace Junction { + export interface Parent { + type: "Parent" + } + export interface Parachain { + type: "Parachain" + value: t.Compact + } + export interface AccountId32 { + type: "AccountId32" + network: t.types.xcm.v0.junction.NetworkId + id: Uint8Array + } + export interface AccountIndex64 { + type: "AccountIndex64" + network: t.types.xcm.v0.junction.NetworkId + index: t.Compact + } + export interface AccountKey20 { + type: "AccountKey20" + network: t.types.xcm.v0.junction.NetworkId + key: Uint8Array + } + export interface PalletInstance { + type: "PalletInstance" + value: t.types.u8 + } + export interface GeneralIndex { + type: "GeneralIndex" + value: t.Compact + } + export interface GeneralKey { + type: "GeneralKey" + value: Uint8Array + } + export interface OnlyChild { + type: "OnlyChild" + } + export interface Plurality { + type: "Plurality" + id: t.types.xcm.v0.junction.BodyId + part: t.types.xcm.v0.junction.BodyPart + } + export function Parent(): t.types.xcm.v0.junction.Junction.Parent { + return { type: "Parent" } + } + export function Parachain( + value: t.types.xcm.v0.junction.Junction.Parachain["value"], + ): t.types.xcm.v0.junction.Junction.Parachain { + return { type: "Parachain", value } + } + export function AccountId32( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountId32 { + return { type: "AccountId32", ...value } + } + export function AccountIndex64( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountIndex64 { + return { type: "AccountIndex64", ...value } + } + export function AccountKey20( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountKey20 { + return { type: "AccountKey20", ...value } + } + export function PalletInstance( + value: t.types.xcm.v0.junction.Junction.PalletInstance["value"], + ): t.types.xcm.v0.junction.Junction.PalletInstance { + return { type: "PalletInstance", value } + } + export function GeneralIndex( + value: t.types.xcm.v0.junction.Junction.GeneralIndex["value"], + ): t.types.xcm.v0.junction.Junction.GeneralIndex { + return { type: "GeneralIndex", value } + } + export function GeneralKey( + value: t.types.xcm.v0.junction.Junction.GeneralKey["value"], + ): t.types.xcm.v0.junction.Junction.GeneralKey { + return { type: "GeneralKey", value } + } + export function OnlyChild(): t.types.xcm.v0.junction.Junction.OnlyChild { + return { type: "OnlyChild" } + } + export function Plurality( + value: Omit, + ): t.types.xcm.v0.junction.Junction.Plurality { + return { type: "Plurality", ...value } + } +} + +export type NetworkId = + | t.types.xcm.v0.junction.NetworkId.Any + | t.types.xcm.v0.junction.NetworkId.Named + | t.types.xcm.v0.junction.NetworkId.Polkadot + | t.types.xcm.v0.junction.NetworkId.Kusama +export namespace NetworkId { + export interface Any { + type: "Any" + } + export interface Named { + type: "Named" + value: Uint8Array + } + export interface Polkadot { + type: "Polkadot" + } + export interface Kusama { + type: "Kusama" + } + export function Any(): t.types.xcm.v0.junction.NetworkId.Any { + return { type: "Any" } + } + export function Named( + value: t.types.xcm.v0.junction.NetworkId.Named["value"], + ): t.types.xcm.v0.junction.NetworkId.Named { + return { type: "Named", value } + } + export function Polkadot(): t.types.xcm.v0.junction.NetworkId.Polkadot { + return { type: "Polkadot" } + } + export function Kusama(): t.types.xcm.v0.junction.NetworkId.Kusama { + return { type: "Kusama" } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v0/mod.ts b/codegen/_output/polkadot/types/xcm/v0/mod.ts new file mode 100644 index 000000000..44faf4b53 --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v0/mod.ts @@ -0,0 +1,157 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as junction from "./junction.ts" +export * as multi_asset from "./multi_asset.ts" +export * as multi_location from "./multi_location.ts" +export * as order from "./order.ts" + +export const $originKind: $.Codec = _codec.$143 + +export const $response: $.Codec = _codec.$429 + +export const $xcm: $.Codec = _codec.$425 + +export type OriginKind = "Native" | "SovereignAccount" | "Superuser" | "Xcm" + +export type Response = t.types.xcm.v0.Response.Assets +export namespace Response { + export interface Assets { + type: "Assets" + value: Array + } + export function Assets( + value: t.types.xcm.v0.Response.Assets["value"], + ): t.types.xcm.v0.Response.Assets { + return { type: "Assets", value } + } +} + +export type Xcm = + | t.types.xcm.v0.Xcm.WithdrawAsset + | t.types.xcm.v0.Xcm.ReserveAssetDeposit + | t.types.xcm.v0.Xcm.TeleportAsset + | t.types.xcm.v0.Xcm.QueryResponse + | t.types.xcm.v0.Xcm.TransferAsset + | t.types.xcm.v0.Xcm.TransferReserveAsset + | t.types.xcm.v0.Xcm.Transact + | t.types.xcm.v0.Xcm.HrmpNewChannelOpenRequest + | t.types.xcm.v0.Xcm.HrmpChannelAccepted + | t.types.xcm.v0.Xcm.HrmpChannelClosing + | t.types.xcm.v0.Xcm.RelayedFrom +export namespace Xcm { + export interface WithdrawAsset { + type: "WithdrawAsset" + assets: Array + effects: Array + } + export interface ReserveAssetDeposit { + type: "ReserveAssetDeposit" + assets: Array + effects: Array + } + export interface TeleportAsset { + type: "TeleportAsset" + assets: Array + effects: Array + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v0.Response + } + export interface TransferAsset { + type: "TransferAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.types.u64 + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface RelayedFrom { + type: "RelayedFrom" + who: t.types.xcm.v0.multi_location.MultiLocation + message: t.types.xcm.v0.Xcm + } + export function WithdrawAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.WithdrawAsset { + return { type: "WithdrawAsset", ...value } + } + export function ReserveAssetDeposit( + value: Omit, + ): t.types.xcm.v0.Xcm.ReserveAssetDeposit { + return { type: "ReserveAssetDeposit", ...value } + } + export function TeleportAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TeleportAsset { + return { type: "TeleportAsset", ...value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v0.Xcm.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v0.Xcm.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function RelayedFrom( + value: Omit, + ): t.types.xcm.v0.Xcm.RelayedFrom { + return { type: "RelayedFrom", ...value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v0/multi_asset.ts b/codegen/_output/polkadot/types/xcm/v0/multi_asset.ts new file mode 100644 index 000000000..d5cc676ee --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v0/multi_asset.ts @@ -0,0 +1,121 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $multiAsset: $.Codec = _codec.$152 + +export type MultiAsset = + | t.types.xcm.v0.multi_asset.MultiAsset.None + | t.types.xcm.v0.multi_asset.MultiAsset.All + | t.types.xcm.v0.multi_asset.MultiAsset.AllFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AbstractFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.ConcreteFungible + | t.types.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible +export namespace MultiAsset { + export interface None { + type: "None" + } + export interface All { + type: "All" + } + export interface AllFungible { + type: "AllFungible" + } + export interface AllNonFungible { + type: "AllNonFungible" + } + export interface AllAbstractFungible { + type: "AllAbstractFungible" + id: Uint8Array + } + export interface AllAbstractNonFungible { + type: "AllAbstractNonFungible" + class: Uint8Array + } + export interface AllConcreteFungible { + type: "AllConcreteFungible" + id: t.types.xcm.v0.multi_location.MultiLocation + } + export interface AllConcreteNonFungible { + type: "AllConcreteNonFungible" + class: t.types.xcm.v0.multi_location.MultiLocation + } + export interface AbstractFungible { + type: "AbstractFungible" + id: Uint8Array + amount: t.Compact + } + export interface AbstractNonFungible { + type: "AbstractNonFungible" + class: Uint8Array + instance: t.types.xcm.v1.multiasset.AssetInstance + } + export interface ConcreteFungible { + type: "ConcreteFungible" + id: t.types.xcm.v0.multi_location.MultiLocation + amount: t.Compact + } + export interface ConcreteNonFungible { + type: "ConcreteNonFungible" + class: t.types.xcm.v0.multi_location.MultiLocation + instance: t.types.xcm.v1.multiasset.AssetInstance + } + export function None(): t.types.xcm.v0.multi_asset.MultiAsset.None { + return { type: "None" } + } + export function All(): t.types.xcm.v0.multi_asset.MultiAsset.All { + return { type: "All" } + } + export function AllFungible(): t.types.xcm.v0.multi_asset.MultiAsset.AllFungible { + return { type: "AllFungible" } + } + export function AllNonFungible(): t.types.xcm.v0.multi_asset.MultiAsset.AllNonFungible { + return { type: "AllNonFungible" } + } + export function AllAbstractFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible { + return { type: "AllAbstractFungible", ...value } + } + export function AllAbstractNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible { + return { type: "AllAbstractNonFungible", ...value } + } + export function AllConcreteFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible { + return { type: "AllConcreteFungible", ...value } + } + export function AllConcreteNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible { + return { type: "AllConcreteNonFungible", ...value } + } + export function AbstractFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AbstractFungible { + return { type: "AbstractFungible", ...value } + } + export function AbstractNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible { + return { type: "AbstractNonFungible", ...value } + } + export function ConcreteFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.ConcreteFungible { + return { type: "ConcreteFungible", ...value } + } + export function ConcreteNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible { + return { type: "ConcreteNonFungible", ...value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v0/multi_location.ts b/codegen/_output/polkadot/types/xcm/v0/multi_location.ts new file mode 100644 index 000000000..3a52363c6 --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v0/multi_location.ts @@ -0,0 +1,135 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $multiLocation: $.Codec = _codec.$153 + +export type MultiLocation = + | t.types.xcm.v0.multi_location.MultiLocation.Null + | t.types.xcm.v0.multi_location.MultiLocation.X1 + | t.types.xcm.v0.multi_location.MultiLocation.X2 + | t.types.xcm.v0.multi_location.MultiLocation.X3 + | t.types.xcm.v0.multi_location.MultiLocation.X4 + | t.types.xcm.v0.multi_location.MultiLocation.X5 + | t.types.xcm.v0.multi_location.MultiLocation.X6 + | t.types.xcm.v0.multi_location.MultiLocation.X7 + | t.types.xcm.v0.multi_location.MultiLocation.X8 +export namespace MultiLocation { + export interface Null { + type: "Null" + } + export interface X1 { + type: "X1" + value: t.types.xcm.v0.junction.Junction + } + export interface X2 { + type: "X2" + value: [t.types.xcm.v0.junction.Junction, t.types.xcm.v0.junction.Junction] + } + export interface X3 { + type: "X3" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X4 { + type: "X4" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X5 { + type: "X5" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X6 { + type: "X6" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X7 { + type: "X7" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X8 { + type: "X8" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export function Null(): t.types.xcm.v0.multi_location.MultiLocation.Null { + return { type: "Null" } + } + export function X1( + value: t.types.xcm.v0.multi_location.MultiLocation.X1["value"], + ): t.types.xcm.v0.multi_location.MultiLocation.X1 { + return { type: "X1", value } + } + export function X2( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X2["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X2 { + return { type: "X2", value } + } + export function X3( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X3["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X3 { + return { type: "X3", value } + } + export function X4( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X4["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X4 { + return { type: "X4", value } + } + export function X5( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X5["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X5 { + return { type: "X5", value } + } + export function X6( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X6["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X6 { + return { type: "X6", value } + } + export function X7( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X7["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X7 { + return { type: "X7", value } + } + export function X8( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X8["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X8 { + return { type: "X8", value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v0/order.ts b/codegen/_output/polkadot/types/xcm/v0/order.ts new file mode 100644 index 000000000..e5f60587d --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v0/order.ts @@ -0,0 +1,100 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $order: $.Codec = _codec.$427 + +export type Order = + | t.types.xcm.v0.order.Order.Null + | t.types.xcm.v0.order.Order.DepositAsset + | t.types.xcm.v0.order.Order.DepositReserveAsset + | t.types.xcm.v0.order.Order.ExchangeAsset + | t.types.xcm.v0.order.Order.InitiateReserveWithdraw + | t.types.xcm.v0.order.Order.InitiateTeleport + | t.types.xcm.v0.order.Order.QueryHolding + | t.types.xcm.v0.order.Order.BuyExecution +export namespace Order { + export interface Null { + type: "Null" + } + export interface DepositAsset { + type: "DepositAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: Array + receive: Array + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: Array + reserve: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v0.multi_location.MultiLocation + assets: Array + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v0.multi_asset.MultiAsset + weight: t.types.u64 + debt: t.types.u64 + halt_on_error: boolean + xcm: Array + } + export function Null(): t.types.xcm.v0.order.Order.Null { + return { type: "Null" } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v0.order.Order.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v0.order.Order.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v0.order.Order.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v0.order.Order.BuyExecution { + return { type: "BuyExecution", ...value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v1/junction.ts b/codegen/_output/polkadot/types/xcm/v1/junction.ts new file mode 100644 index 000000000..f1b0cb62f --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v1/junction.ts @@ -0,0 +1,100 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $junction: $.Codec = _codec.$124 + +export type Junction = + | t.types.xcm.v1.junction.Junction.Parachain + | t.types.xcm.v1.junction.Junction.AccountId32 + | t.types.xcm.v1.junction.Junction.AccountIndex64 + | t.types.xcm.v1.junction.Junction.AccountKey20 + | t.types.xcm.v1.junction.Junction.PalletInstance + | t.types.xcm.v1.junction.Junction.GeneralIndex + | t.types.xcm.v1.junction.Junction.GeneralKey + | t.types.xcm.v1.junction.Junction.OnlyChild + | t.types.xcm.v1.junction.Junction.Plurality +export namespace Junction { + export interface Parachain { + type: "Parachain" + value: t.Compact + } + export interface AccountId32 { + type: "AccountId32" + network: t.types.xcm.v0.junction.NetworkId + id: Uint8Array + } + export interface AccountIndex64 { + type: "AccountIndex64" + network: t.types.xcm.v0.junction.NetworkId + index: t.Compact + } + export interface AccountKey20 { + type: "AccountKey20" + network: t.types.xcm.v0.junction.NetworkId + key: Uint8Array + } + export interface PalletInstance { + type: "PalletInstance" + value: t.types.u8 + } + export interface GeneralIndex { + type: "GeneralIndex" + value: t.Compact + } + export interface GeneralKey { + type: "GeneralKey" + value: Uint8Array + } + export interface OnlyChild { + type: "OnlyChild" + } + export interface Plurality { + type: "Plurality" + id: t.types.xcm.v0.junction.BodyId + part: t.types.xcm.v0.junction.BodyPart + } + export function Parachain( + value: t.types.xcm.v1.junction.Junction.Parachain["value"], + ): t.types.xcm.v1.junction.Junction.Parachain { + return { type: "Parachain", value } + } + export function AccountId32( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountId32 { + return { type: "AccountId32", ...value } + } + export function AccountIndex64( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountIndex64 { + return { type: "AccountIndex64", ...value } + } + export function AccountKey20( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountKey20 { + return { type: "AccountKey20", ...value } + } + export function PalletInstance( + value: t.types.xcm.v1.junction.Junction.PalletInstance["value"], + ): t.types.xcm.v1.junction.Junction.PalletInstance { + return { type: "PalletInstance", value } + } + export function GeneralIndex( + value: t.types.xcm.v1.junction.Junction.GeneralIndex["value"], + ): t.types.xcm.v1.junction.Junction.GeneralIndex { + return { type: "GeneralIndex", value } + } + export function GeneralKey( + value: t.types.xcm.v1.junction.Junction.GeneralKey["value"], + ): t.types.xcm.v1.junction.Junction.GeneralKey { + return { type: "GeneralKey", value } + } + export function OnlyChild(): t.types.xcm.v1.junction.Junction.OnlyChild { + return { type: "OnlyChild" } + } + export function Plurality( + value: Omit, + ): t.types.xcm.v1.junction.Junction.Plurality { + return { type: "Plurality", ...value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v1/mod.ts b/codegen/_output/polkadot/types/xcm/v1/mod.ts new file mode 100644 index 000000000..22e161792 --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v1/mod.ts @@ -0,0 +1,180 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as junction from "./junction.ts" +export * as multiasset from "./multiasset.ts" +export * as multilocation from "./multilocation.ts" +export * as order from "./order.ts" + +export const $response: $.Codec = _codec.$434 + +export const $xcm: $.Codec = _codec.$430 + +export type Response = t.types.xcm.v1.Response.Assets | t.types.xcm.v1.Response.Version +export namespace Response { + export interface Assets { + type: "Assets" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface Version { + type: "Version" + value: t.types.u32 + } + export function Assets( + value: t.types.xcm.v1.Response.Assets["value"], + ): t.types.xcm.v1.Response.Assets { + return { type: "Assets", value } + } + export function Version( + value: t.types.xcm.v1.Response.Version["value"], + ): t.types.xcm.v1.Response.Version { + return { type: "Version", value } + } +} + +export type Xcm = + | t.types.xcm.v1.Xcm.WithdrawAsset + | t.types.xcm.v1.Xcm.ReserveAssetDeposited + | t.types.xcm.v1.Xcm.ReceiveTeleportedAsset + | t.types.xcm.v1.Xcm.QueryResponse + | t.types.xcm.v1.Xcm.TransferAsset + | t.types.xcm.v1.Xcm.TransferReserveAsset + | t.types.xcm.v1.Xcm.Transact + | t.types.xcm.v1.Xcm.HrmpNewChannelOpenRequest + | t.types.xcm.v1.Xcm.HrmpChannelAccepted + | t.types.xcm.v1.Xcm.HrmpChannelClosing + | t.types.xcm.v1.Xcm.RelayedFrom + | t.types.xcm.v1.Xcm.SubscribeVersion + | t.types.xcm.v1.Xcm.UnsubscribeVersion +export namespace Xcm { + export interface WithdrawAsset { + type: "WithdrawAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface ReserveAssetDeposited { + type: "ReserveAssetDeposited" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface ReceiveTeleportedAsset { + type: "ReceiveTeleportedAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v1.Response + } + export interface TransferAsset { + type: "TransferAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.types.u64 + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface RelayedFrom { + type: "RelayedFrom" + who: t.types.xcm.v1.multilocation.Junctions + message: t.types.xcm.v1.Xcm + } + export interface SubscribeVersion { + type: "SubscribeVersion" + query_id: t.Compact + max_response_weight: t.Compact + } + export interface UnsubscribeVersion { + type: "UnsubscribeVersion" + } + export function WithdrawAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.WithdrawAsset { + return { type: "WithdrawAsset", ...value } + } + export function ReserveAssetDeposited( + value: Omit, + ): t.types.xcm.v1.Xcm.ReserveAssetDeposited { + return { type: "ReserveAssetDeposited", ...value } + } + export function ReceiveTeleportedAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.ReceiveTeleportedAsset { + return { type: "ReceiveTeleportedAsset", ...value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v1.Xcm.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v1.Xcm.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function RelayedFrom( + value: Omit, + ): t.types.xcm.v1.Xcm.RelayedFrom { + return { type: "RelayedFrom", ...value } + } + export function SubscribeVersion( + value: Omit, + ): t.types.xcm.v1.Xcm.SubscribeVersion { + return { type: "SubscribeVersion", ...value } + } + export function UnsubscribeVersion(): t.types.xcm.v1.Xcm.UnsubscribeVersion { + return { type: "UnsubscribeVersion" } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v1/multiasset.ts b/codegen/_output/polkadot/types/xcm/v1/multiasset.ts new file mode 100644 index 000000000..a11443466 --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v1/multiasset.ts @@ -0,0 +1,201 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $assetId: $.Codec = _codec.$136 + +export const $assetInstance: $.Codec = _codec.$138 + +export const $fungibility: $.Codec = _codec.$137 + +export const $multiAsset: $.Codec = _codec.$135 + +export const $multiAssetFilter: $.Codec = _codec.$145 + +export const $multiAssets: $.Codec = _codec.$133 + +export const $wildFungibility: $.Codec = _codec.$147 + +export const $wildMultiAsset: $.Codec = _codec.$146 + +export type AssetId = + | t.types.xcm.v1.multiasset.AssetId.Concrete + | t.types.xcm.v1.multiasset.AssetId.Abstract +export namespace AssetId { + export interface Concrete { + type: "Concrete" + value: t.types.xcm.v1.multilocation.MultiLocation + } + export interface Abstract { + type: "Abstract" + value: Uint8Array + } + export function Concrete( + value: t.types.xcm.v1.multiasset.AssetId.Concrete["value"], + ): t.types.xcm.v1.multiasset.AssetId.Concrete { + return { type: "Concrete", value } + } + export function Abstract( + value: t.types.xcm.v1.multiasset.AssetId.Abstract["value"], + ): t.types.xcm.v1.multiasset.AssetId.Abstract { + return { type: "Abstract", value } + } +} + +export type AssetInstance = + | t.types.xcm.v1.multiasset.AssetInstance.Undefined + | t.types.xcm.v1.multiasset.AssetInstance.Index + | t.types.xcm.v1.multiasset.AssetInstance.Array4 + | t.types.xcm.v1.multiasset.AssetInstance.Array8 + | t.types.xcm.v1.multiasset.AssetInstance.Array16 + | t.types.xcm.v1.multiasset.AssetInstance.Array32 + | t.types.xcm.v1.multiasset.AssetInstance.Blob +export namespace AssetInstance { + export interface Undefined { + type: "Undefined" + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Array4 { + type: "Array4" + value: Uint8Array + } + export interface Array8 { + type: "Array8" + value: Uint8Array + } + export interface Array16 { + type: "Array16" + value: Uint8Array + } + export interface Array32 { + type: "Array32" + value: Uint8Array + } + export interface Blob { + type: "Blob" + value: Uint8Array + } + export function Undefined(): t.types.xcm.v1.multiasset.AssetInstance.Undefined { + return { type: "Undefined" } + } + export function Index( + value: t.types.xcm.v1.multiasset.AssetInstance.Index["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Index { + return { type: "Index", value } + } + export function Array4( + value: t.types.xcm.v1.multiasset.AssetInstance.Array4["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array4 { + return { type: "Array4", value } + } + export function Array8( + value: t.types.xcm.v1.multiasset.AssetInstance.Array8["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array8 { + return { type: "Array8", value } + } + export function Array16( + value: t.types.xcm.v1.multiasset.AssetInstance.Array16["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array16 { + return { type: "Array16", value } + } + export function Array32( + value: t.types.xcm.v1.multiasset.AssetInstance.Array32["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array32 { + return { type: "Array32", value } + } + export function Blob( + value: t.types.xcm.v1.multiasset.AssetInstance.Blob["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Blob { + return { type: "Blob", value } + } +} + +export type Fungibility = + | t.types.xcm.v1.multiasset.Fungibility.Fungible + | t.types.xcm.v1.multiasset.Fungibility.NonFungible +export namespace Fungibility { + export interface Fungible { + type: "Fungible" + value: t.Compact + } + export interface NonFungible { + type: "NonFungible" + value: t.types.xcm.v1.multiasset.AssetInstance + } + export function Fungible( + value: t.types.xcm.v1.multiasset.Fungibility.Fungible["value"], + ): t.types.xcm.v1.multiasset.Fungibility.Fungible { + return { type: "Fungible", value } + } + export function NonFungible( + value: t.types.xcm.v1.multiasset.Fungibility.NonFungible["value"], + ): t.types.xcm.v1.multiasset.Fungibility.NonFungible { + return { type: "NonFungible", value } + } +} + +export interface MultiAsset { + id: t.types.xcm.v1.multiasset.AssetId + fun: t.types.xcm.v1.multiasset.Fungibility +} + +export function MultiAsset(value: t.types.xcm.v1.multiasset.MultiAsset) { + return value +} + +export type MultiAssetFilter = + | t.types.xcm.v1.multiasset.MultiAssetFilter.Definite + | t.types.xcm.v1.multiasset.MultiAssetFilter.Wild +export namespace MultiAssetFilter { + export interface Definite { + type: "Definite" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface Wild { + type: "Wild" + value: t.types.xcm.v1.multiasset.WildMultiAsset + } + export function Definite( + value: t.types.xcm.v1.multiasset.MultiAssetFilter.Definite["value"], + ): t.types.xcm.v1.multiasset.MultiAssetFilter.Definite { + return { type: "Definite", value } + } + export function Wild( + value: t.types.xcm.v1.multiasset.MultiAssetFilter.Wild["value"], + ): t.types.xcm.v1.multiasset.MultiAssetFilter.Wild { + return { type: "Wild", value } + } +} + +export type MultiAssets = Array + +export function MultiAssets(value: t.types.xcm.v1.multiasset.MultiAssets) { + return value +} + +export type WildFungibility = "Fungible" | "NonFungible" + +export type WildMultiAsset = + | t.types.xcm.v1.multiasset.WildMultiAsset.All + | t.types.xcm.v1.multiasset.WildMultiAsset.AllOf +export namespace WildMultiAsset { + export interface All { + type: "All" + } + export interface AllOf { + type: "AllOf" + id: t.types.xcm.v1.multiasset.AssetId + fun: t.types.xcm.v1.multiasset.WildFungibility + } + export function All(): t.types.xcm.v1.multiasset.WildMultiAsset.All { + return { type: "All" } + } + export function AllOf( + value: Omit, + ): t.types.xcm.v1.multiasset.WildMultiAsset.AllOf { + return { type: "AllOf", ...value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v1/multilocation.ts b/codegen/_output/polkadot/types/xcm/v1/multilocation.ts new file mode 100644 index 000000000..1764b59af --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v1/multilocation.ts @@ -0,0 +1,146 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $junctions: $.Codec = _codec.$123 + +export const $multiLocation: $.Codec = _codec.$122 + +export type Junctions = + | t.types.xcm.v1.multilocation.Junctions.Here + | t.types.xcm.v1.multilocation.Junctions.X1 + | t.types.xcm.v1.multilocation.Junctions.X2 + | t.types.xcm.v1.multilocation.Junctions.X3 + | t.types.xcm.v1.multilocation.Junctions.X4 + | t.types.xcm.v1.multilocation.Junctions.X5 + | t.types.xcm.v1.multilocation.Junctions.X6 + | t.types.xcm.v1.multilocation.Junctions.X7 + | t.types.xcm.v1.multilocation.Junctions.X8 +export namespace Junctions { + export interface Here { + type: "Here" + } + export interface X1 { + type: "X1" + value: t.types.xcm.v1.junction.Junction + } + export interface X2 { + type: "X2" + value: [t.types.xcm.v1.junction.Junction, t.types.xcm.v1.junction.Junction] + } + export interface X3 { + type: "X3" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X4 { + type: "X4" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X5 { + type: "X5" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X6 { + type: "X6" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X7 { + type: "X7" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X8 { + type: "X8" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export function Here(): t.types.xcm.v1.multilocation.Junctions.Here { + return { type: "Here" } + } + export function X1( + value: t.types.xcm.v1.multilocation.Junctions.X1["value"], + ): t.types.xcm.v1.multilocation.Junctions.X1 { + return { type: "X1", value } + } + export function X2( + ...value: t.types.xcm.v1.multilocation.Junctions.X2["value"] + ): t.types.xcm.v1.multilocation.Junctions.X2 { + return { type: "X2", value } + } + export function X3( + ...value: t.types.xcm.v1.multilocation.Junctions.X3["value"] + ): t.types.xcm.v1.multilocation.Junctions.X3 { + return { type: "X3", value } + } + export function X4( + ...value: t.types.xcm.v1.multilocation.Junctions.X4["value"] + ): t.types.xcm.v1.multilocation.Junctions.X4 { + return { type: "X4", value } + } + export function X5( + ...value: t.types.xcm.v1.multilocation.Junctions.X5["value"] + ): t.types.xcm.v1.multilocation.Junctions.X5 { + return { type: "X5", value } + } + export function X6( + ...value: t.types.xcm.v1.multilocation.Junctions.X6["value"] + ): t.types.xcm.v1.multilocation.Junctions.X6 { + return { type: "X6", value } + } + export function X7( + ...value: t.types.xcm.v1.multilocation.Junctions.X7["value"] + ): t.types.xcm.v1.multilocation.Junctions.X7 { + return { type: "X7", value } + } + export function X8( + ...value: t.types.xcm.v1.multilocation.Junctions.X8["value"] + ): t.types.xcm.v1.multilocation.Junctions.X8 { + return { type: "X8", value } + } +} + +export interface MultiLocation { + parents: t.types.u8 + interior: t.types.xcm.v1.multilocation.Junctions +} + +export function MultiLocation(value: t.types.xcm.v1.multilocation.MultiLocation) { + return value +} diff --git a/codegen/_output/polkadot/types/xcm/v1/order.ts b/codegen/_output/polkadot/types/xcm/v1/order.ts new file mode 100644 index 000000000..9337ba623 --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v1/order.ts @@ -0,0 +1,102 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $order: $.Codec = _codec.$432 + +export type Order = + | t.types.xcm.v1.order.Order.Noop + | t.types.xcm.v1.order.Order.DepositAsset + | t.types.xcm.v1.order.Order.DepositReserveAsset + | t.types.xcm.v1.order.Order.ExchangeAsset + | t.types.xcm.v1.order.Order.InitiateReserveWithdraw + | t.types.xcm.v1.order.Order.InitiateTeleport + | t.types.xcm.v1.order.Order.QueryHolding + | t.types.xcm.v1.order.Order.BuyExecution +export namespace Order { + export interface Noop { + type: "Noop" + } + export interface DepositAsset { + type: "DepositAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.types.u32 + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.types.u32 + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: t.types.xcm.v1.multiasset.MultiAssetFilter + receive: t.types.xcm.v1.multiasset.MultiAssets + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + reserve: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v1.multiasset.MultiAsset + weight: t.types.u64 + debt: t.types.u64 + halt_on_error: boolean + instructions: Array + } + export function Noop(): t.types.xcm.v1.order.Order.Noop { + return { type: "Noop" } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v1.order.Order.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v1.order.Order.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v1.order.Order.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v1.order.Order.BuyExecution { + return { type: "BuyExecution", ...value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v2/mod.ts b/codegen/_output/polkadot/types/xcm/v2/mod.ts new file mode 100644 index 000000000..c91c6d027 --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v2/mod.ts @@ -0,0 +1,372 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as traits from "./traits.ts" + +export const $instruction: $.Codec = _codec.$132 + +export const $response: $.Codec = _codec.$140 + +export const $weightLimit: $.Codec = _codec.$148 + +export type Instruction = + | t.types.xcm.v2.Instruction.WithdrawAsset + | t.types.xcm.v2.Instruction.ReserveAssetDeposited + | t.types.xcm.v2.Instruction.ReceiveTeleportedAsset + | t.types.xcm.v2.Instruction.QueryResponse + | t.types.xcm.v2.Instruction.TransferAsset + | t.types.xcm.v2.Instruction.TransferReserveAsset + | t.types.xcm.v2.Instruction.Transact + | t.types.xcm.v2.Instruction.HrmpNewChannelOpenRequest + | t.types.xcm.v2.Instruction.HrmpChannelAccepted + | t.types.xcm.v2.Instruction.HrmpChannelClosing + | t.types.xcm.v2.Instruction.ClearOrigin + | t.types.xcm.v2.Instruction.DescendOrigin + | t.types.xcm.v2.Instruction.ReportError + | t.types.xcm.v2.Instruction.DepositAsset + | t.types.xcm.v2.Instruction.DepositReserveAsset + | t.types.xcm.v2.Instruction.ExchangeAsset + | t.types.xcm.v2.Instruction.InitiateReserveWithdraw + | t.types.xcm.v2.Instruction.InitiateTeleport + | t.types.xcm.v2.Instruction.QueryHolding + | t.types.xcm.v2.Instruction.BuyExecution + | t.types.xcm.v2.Instruction.RefundSurplus + | t.types.xcm.v2.Instruction.SetErrorHandler + | t.types.xcm.v2.Instruction.SetAppendix + | t.types.xcm.v2.Instruction.ClearError + | t.types.xcm.v2.Instruction.ClaimAsset + | t.types.xcm.v2.Instruction.Trap + | t.types.xcm.v2.Instruction.SubscribeVersion + | t.types.xcm.v2.Instruction.UnsubscribeVersion +export namespace Instruction { + export interface WithdrawAsset { + type: "WithdrawAsset" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ReserveAssetDeposited { + type: "ReserveAssetDeposited" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ReceiveTeleportedAsset { + type: "ReceiveTeleportedAsset" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v2.Response + max_weight: t.Compact + } + export interface TransferAsset { + type: "TransferAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.Compact + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface ClearOrigin { + type: "ClearOrigin" + } + export interface DescendOrigin { + type: "DescendOrigin" + value: t.types.xcm.v1.multilocation.Junctions + } + export interface ReportError { + type: "ReportError" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + max_response_weight: t.Compact + } + export interface DepositAsset { + type: "DepositAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.Compact + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: t.types.xcm.v1.multiasset.MultiAssetFilter + receive: t.types.xcm.v1.multiasset.MultiAssets + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + reserve: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_response_weight: t.Compact + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v1.multiasset.MultiAsset + weight_limit: t.types.xcm.v2.WeightLimit + } + export interface RefundSurplus { + type: "RefundSurplus" + } + export interface SetErrorHandler { + type: "SetErrorHandler" + value: Array + } + export interface SetAppendix { + type: "SetAppendix" + value: Array + } + export interface ClearError { + type: "ClearError" + } + export interface ClaimAsset { + type: "ClaimAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + ticket: t.types.xcm.v1.multilocation.MultiLocation + } + export interface Trap { + type: "Trap" + value: t.Compact + } + export interface SubscribeVersion { + type: "SubscribeVersion" + query_id: t.Compact + max_response_weight: t.Compact + } + export interface UnsubscribeVersion { + type: "UnsubscribeVersion" + } + export function WithdrawAsset( + value: t.types.xcm.v2.Instruction.WithdrawAsset["value"], + ): t.types.xcm.v2.Instruction.WithdrawAsset { + return { type: "WithdrawAsset", value } + } + export function ReserveAssetDeposited( + value: t.types.xcm.v2.Instruction.ReserveAssetDeposited["value"], + ): t.types.xcm.v2.Instruction.ReserveAssetDeposited { + return { type: "ReserveAssetDeposited", value } + } + export function ReceiveTeleportedAsset( + value: t.types.xcm.v2.Instruction.ReceiveTeleportedAsset["value"], + ): t.types.xcm.v2.Instruction.ReceiveTeleportedAsset { + return { type: "ReceiveTeleportedAsset", value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v2.Instruction.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v2.Instruction.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function ClearOrigin(): t.types.xcm.v2.Instruction.ClearOrigin { + return { type: "ClearOrigin" } + } + export function DescendOrigin( + value: t.types.xcm.v2.Instruction.DescendOrigin["value"], + ): t.types.xcm.v2.Instruction.DescendOrigin { + return { type: "DescendOrigin", value } + } + export function ReportError( + value: Omit, + ): t.types.xcm.v2.Instruction.ReportError { + return { type: "ReportError", ...value } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v2.Instruction.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v2.Instruction.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v2.Instruction.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v2.Instruction.BuyExecution { + return { type: "BuyExecution", ...value } + } + export function RefundSurplus(): t.types.xcm.v2.Instruction.RefundSurplus { + return { type: "RefundSurplus" } + } + export function SetErrorHandler( + value: t.types.xcm.v2.Instruction.SetErrorHandler["value"], + ): t.types.xcm.v2.Instruction.SetErrorHandler { + return { type: "SetErrorHandler", value } + } + export function SetAppendix( + value: t.types.xcm.v2.Instruction.SetAppendix["value"], + ): t.types.xcm.v2.Instruction.SetAppendix { + return { type: "SetAppendix", value } + } + export function ClearError(): t.types.xcm.v2.Instruction.ClearError { + return { type: "ClearError" } + } + export function ClaimAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.ClaimAsset { + return { type: "ClaimAsset", ...value } + } + export function Trap( + value: t.types.xcm.v2.Instruction.Trap["value"], + ): t.types.xcm.v2.Instruction.Trap { + return { type: "Trap", value } + } + export function SubscribeVersion( + value: Omit, + ): t.types.xcm.v2.Instruction.SubscribeVersion { + return { type: "SubscribeVersion", ...value } + } + export function UnsubscribeVersion(): t.types.xcm.v2.Instruction.UnsubscribeVersion { + return { type: "UnsubscribeVersion" } + } +} + +export type Response = + | t.types.xcm.v2.Response.Null + | t.types.xcm.v2.Response.Assets + | t.types.xcm.v2.Response.ExecutionResult + | t.types.xcm.v2.Response.Version +export namespace Response { + export interface Null { + type: "Null" + } + export interface Assets { + type: "Assets" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ExecutionResult { + type: "ExecutionResult" + value: [t.types.u32, t.types.xcm.v2.traits.Error] | undefined + } + export interface Version { + type: "Version" + value: t.types.u32 + } + export function Null(): t.types.xcm.v2.Response.Null { + return { type: "Null" } + } + export function Assets( + value: t.types.xcm.v2.Response.Assets["value"], + ): t.types.xcm.v2.Response.Assets { + return { type: "Assets", value } + } + export function ExecutionResult( + value: t.types.xcm.v2.Response.ExecutionResult["value"], + ): t.types.xcm.v2.Response.ExecutionResult { + return { type: "ExecutionResult", value } + } + export function Version( + value: t.types.xcm.v2.Response.Version["value"], + ): t.types.xcm.v2.Response.Version { + return { type: "Version", value } + } +} + +export type WeightLimit = t.types.xcm.v2.WeightLimit.Unlimited | t.types.xcm.v2.WeightLimit.Limited +export namespace WeightLimit { + export interface Unlimited { + type: "Unlimited" + } + export interface Limited { + type: "Limited" + value: t.Compact + } + export function Unlimited(): t.types.xcm.v2.WeightLimit.Unlimited { + return { type: "Unlimited" } + } + export function Limited( + value: t.types.xcm.v2.WeightLimit.Limited["value"], + ): t.types.xcm.v2.WeightLimit.Limited { + return { type: "Limited", value } + } +} diff --git a/codegen/_output/polkadot/types/xcm/v2/traits.ts b/codegen/_output/polkadot/types/xcm/v2/traits.ts new file mode 100644 index 000000000..2b2bc95e6 --- /dev/null +++ b/codegen/_output/polkadot/types/xcm/v2/traits.ts @@ -0,0 +1,233 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $error: $.Codec = _codec.$110 + +export const $outcome: $.Codec = _codec.$109 + +export type Error = + | t.types.xcm.v2.traits.Error.Overflow + | t.types.xcm.v2.traits.Error.Unimplemented + | t.types.xcm.v2.traits.Error.UntrustedReserveLocation + | t.types.xcm.v2.traits.Error.UntrustedTeleportLocation + | t.types.xcm.v2.traits.Error.MultiLocationFull + | t.types.xcm.v2.traits.Error.MultiLocationNotInvertible + | t.types.xcm.v2.traits.Error.BadOrigin + | t.types.xcm.v2.traits.Error.InvalidLocation + | t.types.xcm.v2.traits.Error.AssetNotFound + | t.types.xcm.v2.traits.Error.FailedToTransactAsset + | t.types.xcm.v2.traits.Error.NotWithdrawable + | t.types.xcm.v2.traits.Error.LocationCannotHold + | t.types.xcm.v2.traits.Error.ExceedsMaxMessageSize + | t.types.xcm.v2.traits.Error.DestinationUnsupported + | t.types.xcm.v2.traits.Error.Transport + | t.types.xcm.v2.traits.Error.Unroutable + | t.types.xcm.v2.traits.Error.UnknownClaim + | t.types.xcm.v2.traits.Error.FailedToDecode + | t.types.xcm.v2.traits.Error.MaxWeightInvalid + | t.types.xcm.v2.traits.Error.NotHoldingFees + | t.types.xcm.v2.traits.Error.TooExpensive + | t.types.xcm.v2.traits.Error.Trap + | t.types.xcm.v2.traits.Error.UnhandledXcmVersion + | t.types.xcm.v2.traits.Error.WeightLimitReached + | t.types.xcm.v2.traits.Error.Barrier + | t.types.xcm.v2.traits.Error.WeightNotComputable +export namespace Error { + export interface Overflow { + type: "Overflow" + } + export interface Unimplemented { + type: "Unimplemented" + } + export interface UntrustedReserveLocation { + type: "UntrustedReserveLocation" + } + export interface UntrustedTeleportLocation { + type: "UntrustedTeleportLocation" + } + export interface MultiLocationFull { + type: "MultiLocationFull" + } + export interface MultiLocationNotInvertible { + type: "MultiLocationNotInvertible" + } + export interface BadOrigin { + type: "BadOrigin" + } + export interface InvalidLocation { + type: "InvalidLocation" + } + export interface AssetNotFound { + type: "AssetNotFound" + } + export interface FailedToTransactAsset { + type: "FailedToTransactAsset" + } + export interface NotWithdrawable { + type: "NotWithdrawable" + } + export interface LocationCannotHold { + type: "LocationCannotHold" + } + export interface ExceedsMaxMessageSize { + type: "ExceedsMaxMessageSize" + } + export interface DestinationUnsupported { + type: "DestinationUnsupported" + } + export interface Transport { + type: "Transport" + } + export interface Unroutable { + type: "Unroutable" + } + export interface UnknownClaim { + type: "UnknownClaim" + } + export interface FailedToDecode { + type: "FailedToDecode" + } + export interface MaxWeightInvalid { + type: "MaxWeightInvalid" + } + export interface NotHoldingFees { + type: "NotHoldingFees" + } + export interface TooExpensive { + type: "TooExpensive" + } + export interface Trap { + type: "Trap" + value: t.types.u64 + } + export interface UnhandledXcmVersion { + type: "UnhandledXcmVersion" + } + export interface WeightLimitReached { + type: "WeightLimitReached" + value: t.types.u64 + } + export interface Barrier { + type: "Barrier" + } + export interface WeightNotComputable { + type: "WeightNotComputable" + } + export function Overflow(): t.types.xcm.v2.traits.Error.Overflow { + return { type: "Overflow" } + } + export function Unimplemented(): t.types.xcm.v2.traits.Error.Unimplemented { + return { type: "Unimplemented" } + } + export function UntrustedReserveLocation(): t.types.xcm.v2.traits.Error.UntrustedReserveLocation { + return { type: "UntrustedReserveLocation" } + } + export function UntrustedTeleportLocation(): t.types.xcm.v2.traits.Error.UntrustedTeleportLocation { + return { type: "UntrustedTeleportLocation" } + } + export function MultiLocationFull(): t.types.xcm.v2.traits.Error.MultiLocationFull { + return { type: "MultiLocationFull" } + } + export function MultiLocationNotInvertible(): t.types.xcm.v2.traits.Error.MultiLocationNotInvertible { + return { type: "MultiLocationNotInvertible" } + } + export function BadOrigin(): t.types.xcm.v2.traits.Error.BadOrigin { + return { type: "BadOrigin" } + } + export function InvalidLocation(): t.types.xcm.v2.traits.Error.InvalidLocation { + return { type: "InvalidLocation" } + } + export function AssetNotFound(): t.types.xcm.v2.traits.Error.AssetNotFound { + return { type: "AssetNotFound" } + } + export function FailedToTransactAsset(): t.types.xcm.v2.traits.Error.FailedToTransactAsset { + return { type: "FailedToTransactAsset" } + } + export function NotWithdrawable(): t.types.xcm.v2.traits.Error.NotWithdrawable { + return { type: "NotWithdrawable" } + } + export function LocationCannotHold(): t.types.xcm.v2.traits.Error.LocationCannotHold { + return { type: "LocationCannotHold" } + } + export function ExceedsMaxMessageSize(): t.types.xcm.v2.traits.Error.ExceedsMaxMessageSize { + return { type: "ExceedsMaxMessageSize" } + } + export function DestinationUnsupported(): t.types.xcm.v2.traits.Error.DestinationUnsupported { + return { type: "DestinationUnsupported" } + } + export function Transport(): t.types.xcm.v2.traits.Error.Transport { + return { type: "Transport" } + } + export function Unroutable(): t.types.xcm.v2.traits.Error.Unroutable { + return { type: "Unroutable" } + } + export function UnknownClaim(): t.types.xcm.v2.traits.Error.UnknownClaim { + return { type: "UnknownClaim" } + } + export function FailedToDecode(): t.types.xcm.v2.traits.Error.FailedToDecode { + return { type: "FailedToDecode" } + } + export function MaxWeightInvalid(): t.types.xcm.v2.traits.Error.MaxWeightInvalid { + return { type: "MaxWeightInvalid" } + } + export function NotHoldingFees(): t.types.xcm.v2.traits.Error.NotHoldingFees { + return { type: "NotHoldingFees" } + } + export function TooExpensive(): t.types.xcm.v2.traits.Error.TooExpensive { + return { type: "TooExpensive" } + } + export function Trap( + value: t.types.xcm.v2.traits.Error.Trap["value"], + ): t.types.xcm.v2.traits.Error.Trap { + return { type: "Trap", value } + } + export function UnhandledXcmVersion(): t.types.xcm.v2.traits.Error.UnhandledXcmVersion { + return { type: "UnhandledXcmVersion" } + } + export function WeightLimitReached( + value: t.types.xcm.v2.traits.Error.WeightLimitReached["value"], + ): t.types.xcm.v2.traits.Error.WeightLimitReached { + return { type: "WeightLimitReached", value } + } + export function Barrier(): t.types.xcm.v2.traits.Error.Barrier { + return { type: "Barrier" } + } + export function WeightNotComputable(): t.types.xcm.v2.traits.Error.WeightNotComputable { + return { type: "WeightNotComputable" } + } +} + +export type Outcome = + | t.types.xcm.v2.traits.Outcome.Complete + | t.types.xcm.v2.traits.Outcome.Incomplete + | t.types.xcm.v2.traits.Outcome.Error +export namespace Outcome { + export interface Complete { + type: "Complete" + value: t.types.u64 + } + export interface Incomplete { + type: "Incomplete" + value: [t.types.u64, t.types.xcm.v2.traits.Error] + } + export interface Error { + type: "Error" + value: t.types.xcm.v2.traits.Error + } + export function Complete( + value: t.types.xcm.v2.traits.Outcome.Complete["value"], + ): t.types.xcm.v2.traits.Outcome.Complete { + return { type: "Complete", value } + } + export function Incomplete( + ...value: t.types.xcm.v2.traits.Outcome.Incomplete["value"] + ): t.types.xcm.v2.traits.Outcome.Incomplete { + return { type: "Incomplete", value } + } + export function Error( + value: t.types.xcm.v2.traits.Outcome.Error["value"], + ): t.types.xcm.v2.traits.Outcome.Error { + return { type: "Error", value } + } +} diff --git a/codegen/_output/polkadot/xcm/mod.ts b/codegen/_output/polkadot/xcm/mod.ts deleted file mode 100644 index 1752da8bf..000000000 --- a/codegen/_output/polkadot/xcm/mod.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as v0 from "./v0/mod.ts" -export * as v1 from "./v1/mod.ts" -export * as v2 from "./v2/mod.ts" - -export const $versionedMultiAssets: $.Codec = _codec.$150 - -export const $versionedMultiLocation: $.Codec = _codec.$155 - -export const $versionedResponse: $.Codec = _codec.$716 - -export const $versionedXcm: $.Codec = _codec.$424 - -export type VersionedMultiAssets = t.xcm.VersionedMultiAssets.V0 | t.xcm.VersionedMultiAssets.V1 -export namespace VersionedMultiAssets { - export interface V0 { - type: "V0" - value: Array - } - export interface V1 { - type: "V1" - value: t.xcm.v1.multiasset.MultiAssets - } - export function V0(value: t.xcm.VersionedMultiAssets.V0["value"]): t.xcm.VersionedMultiAssets.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedMultiAssets.V1["value"]): t.xcm.VersionedMultiAssets.V1 { - return { type: "V1", value } - } -} - -export type VersionedMultiLocation = - | t.xcm.VersionedMultiLocation.V0 - | t.xcm.VersionedMultiLocation.V1 -export namespace VersionedMultiLocation { - export interface V0 { - type: "V0" - value: t.xcm.v0.multi_location.MultiLocation - } - export interface V1 { - type: "V1" - value: t.xcm.v1.multilocation.MultiLocation - } - export function V0( - value: t.xcm.VersionedMultiLocation.V0["value"], - ): t.xcm.VersionedMultiLocation.V0 { - return { type: "V0", value } - } - export function V1( - value: t.xcm.VersionedMultiLocation.V1["value"], - ): t.xcm.VersionedMultiLocation.V1 { - return { type: "V1", value } - } -} - -export type VersionedResponse = - | t.xcm.VersionedResponse.V0 - | t.xcm.VersionedResponse.V1 - | t.xcm.VersionedResponse.V2 -export namespace VersionedResponse { - export interface V0 { - type: "V0" - value: t.xcm.v0.Response - } - export interface V1 { - type: "V1" - value: t.xcm.v1.Response - } - export interface V2 { - type: "V2" - value: t.xcm.v2.Response - } - export function V0(value: t.xcm.VersionedResponse.V0["value"]): t.xcm.VersionedResponse.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedResponse.V1["value"]): t.xcm.VersionedResponse.V1 { - return { type: "V1", value } - } - export function V2(value: t.xcm.VersionedResponse.V2["value"]): t.xcm.VersionedResponse.V2 { - return { type: "V2", value } - } -} - -export type VersionedXcm = t.xcm.VersionedXcm.V0 | t.xcm.VersionedXcm.V1 | t.xcm.VersionedXcm.V2 -export namespace VersionedXcm { - export interface V0 { - type: "V0" - value: t.xcm.v0.Xcm - } - export interface V1 { - type: "V1" - value: t.xcm.v1.Xcm - } - export interface V2 { - type: "V2" - value: Array - } - export function V0(value: t.xcm.VersionedXcm.V0["value"]): t.xcm.VersionedXcm.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedXcm.V1["value"]): t.xcm.VersionedXcm.V1 { - return { type: "V1", value } - } - export function V2(value: t.xcm.VersionedXcm.V2["value"]): t.xcm.VersionedXcm.V2 { - return { type: "V2", value } - } -} diff --git a/codegen/_output/polkadot/xcm/v0/junction.ts b/codegen/_output/polkadot/xcm/v0/junction.ts deleted file mode 100644 index 12f14f979..000000000 --- a/codegen/_output/polkadot/xcm/v0/junction.ts +++ /dev/null @@ -1,261 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $bodyId: $.Codec = _codec.$128 - -export const $bodyPart: $.Codec = _codec.$129 - -export const $junction: $.Codec = _codec.$154 - -export const $networkId: $.Codec = _codec.$126 - -export type BodyId = - | t.xcm.v0.junction.BodyId.Unit - | t.xcm.v0.junction.BodyId.Named - | t.xcm.v0.junction.BodyId.Index - | t.xcm.v0.junction.BodyId.Executive - | t.xcm.v0.junction.BodyId.Technical - | t.xcm.v0.junction.BodyId.Legislative - | t.xcm.v0.junction.BodyId.Judicial -export namespace BodyId { - export interface Unit { - type: "Unit" - } - export interface Named { - type: "Named" - value: Uint8Array - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Executive { - type: "Executive" - } - export interface Technical { - type: "Technical" - } - export interface Legislative { - type: "Legislative" - } - export interface Judicial { - type: "Judicial" - } - export function Unit(): t.xcm.v0.junction.BodyId.Unit { - return { type: "Unit" } - } - export function Named( - value: t.xcm.v0.junction.BodyId.Named["value"], - ): t.xcm.v0.junction.BodyId.Named { - return { type: "Named", value } - } - export function Index( - value: t.xcm.v0.junction.BodyId.Index["value"], - ): t.xcm.v0.junction.BodyId.Index { - return { type: "Index", value } - } - export function Executive(): t.xcm.v0.junction.BodyId.Executive { - return { type: "Executive" } - } - export function Technical(): t.xcm.v0.junction.BodyId.Technical { - return { type: "Technical" } - } - export function Legislative(): t.xcm.v0.junction.BodyId.Legislative { - return { type: "Legislative" } - } - export function Judicial(): t.xcm.v0.junction.BodyId.Judicial { - return { type: "Judicial" } - } -} - -export type BodyPart = - | t.xcm.v0.junction.BodyPart.Voice - | t.xcm.v0.junction.BodyPart.Members - | t.xcm.v0.junction.BodyPart.Fraction - | t.xcm.v0.junction.BodyPart.AtLeastProportion - | t.xcm.v0.junction.BodyPart.MoreThanProportion -export namespace BodyPart { - export interface Voice { - type: "Voice" - } - export interface Members { - type: "Members" - count: t.Compact - } - export interface Fraction { - type: "Fraction" - nom: t.Compact - denom: t.Compact - } - export interface AtLeastProportion { - type: "AtLeastProportion" - nom: t.Compact - denom: t.Compact - } - export interface MoreThanProportion { - type: "MoreThanProportion" - nom: t.Compact - denom: t.Compact - } - export function Voice(): t.xcm.v0.junction.BodyPart.Voice { - return { type: "Voice" } - } - export function Members( - value: Omit, - ): t.xcm.v0.junction.BodyPart.Members { - return { type: "Members", ...value } - } - export function Fraction( - value: Omit, - ): t.xcm.v0.junction.BodyPart.Fraction { - return { type: "Fraction", ...value } - } - export function AtLeastProportion( - value: Omit, - ): t.xcm.v0.junction.BodyPart.AtLeastProportion { - return { type: "AtLeastProportion", ...value } - } - export function MoreThanProportion( - value: Omit, - ): t.xcm.v0.junction.BodyPart.MoreThanProportion { - return { type: "MoreThanProportion", ...value } - } -} - -export type Junction = - | t.xcm.v0.junction.Junction.Parent - | t.xcm.v0.junction.Junction.Parachain - | t.xcm.v0.junction.Junction.AccountId32 - | t.xcm.v0.junction.Junction.AccountIndex64 - | t.xcm.v0.junction.Junction.AccountKey20 - | t.xcm.v0.junction.Junction.PalletInstance - | t.xcm.v0.junction.Junction.GeneralIndex - | t.xcm.v0.junction.Junction.GeneralKey - | t.xcm.v0.junction.Junction.OnlyChild - | t.xcm.v0.junction.Junction.Plurality -export namespace Junction { - export interface Parent { - type: "Parent" - } - export interface Parachain { - type: "Parachain" - value: t.Compact - } - export interface AccountId32 { - type: "AccountId32" - network: t.xcm.v0.junction.NetworkId - id: Uint8Array - } - export interface AccountIndex64 { - type: "AccountIndex64" - network: t.xcm.v0.junction.NetworkId - index: t.Compact - } - export interface AccountKey20 { - type: "AccountKey20" - network: t.xcm.v0.junction.NetworkId - key: Uint8Array - } - export interface PalletInstance { - type: "PalletInstance" - value: t.u8 - } - export interface GeneralIndex { - type: "GeneralIndex" - value: t.Compact - } - export interface GeneralKey { - type: "GeneralKey" - value: Uint8Array - } - export interface OnlyChild { - type: "OnlyChild" - } - export interface Plurality { - type: "Plurality" - id: t.xcm.v0.junction.BodyId - part: t.xcm.v0.junction.BodyPart - } - export function Parent(): t.xcm.v0.junction.Junction.Parent { - return { type: "Parent" } - } - export function Parachain( - value: t.xcm.v0.junction.Junction.Parachain["value"], - ): t.xcm.v0.junction.Junction.Parachain { - return { type: "Parachain", value } - } - export function AccountId32( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountId32 { - return { type: "AccountId32", ...value } - } - export function AccountIndex64( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountIndex64 { - return { type: "AccountIndex64", ...value } - } - export function AccountKey20( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountKey20 { - return { type: "AccountKey20", ...value } - } - export function PalletInstance( - value: t.xcm.v0.junction.Junction.PalletInstance["value"], - ): t.xcm.v0.junction.Junction.PalletInstance { - return { type: "PalletInstance", value } - } - export function GeneralIndex( - value: t.xcm.v0.junction.Junction.GeneralIndex["value"], - ): t.xcm.v0.junction.Junction.GeneralIndex { - return { type: "GeneralIndex", value } - } - export function GeneralKey( - value: t.xcm.v0.junction.Junction.GeneralKey["value"], - ): t.xcm.v0.junction.Junction.GeneralKey { - return { type: "GeneralKey", value } - } - export function OnlyChild(): t.xcm.v0.junction.Junction.OnlyChild { - return { type: "OnlyChild" } - } - export function Plurality( - value: Omit, - ): t.xcm.v0.junction.Junction.Plurality { - return { type: "Plurality", ...value } - } -} - -export type NetworkId = - | t.xcm.v0.junction.NetworkId.Any - | t.xcm.v0.junction.NetworkId.Named - | t.xcm.v0.junction.NetworkId.Polkadot - | t.xcm.v0.junction.NetworkId.Kusama -export namespace NetworkId { - export interface Any { - type: "Any" - } - export interface Named { - type: "Named" - value: Uint8Array - } - export interface Polkadot { - type: "Polkadot" - } - export interface Kusama { - type: "Kusama" - } - export function Any(): t.xcm.v0.junction.NetworkId.Any { - return { type: "Any" } - } - export function Named( - value: t.xcm.v0.junction.NetworkId.Named["value"], - ): t.xcm.v0.junction.NetworkId.Named { - return { type: "Named", value } - } - export function Polkadot(): t.xcm.v0.junction.NetworkId.Polkadot { - return { type: "Polkadot" } - } - export function Kusama(): t.xcm.v0.junction.NetworkId.Kusama { - return { type: "Kusama" } - } -} diff --git a/codegen/_output/polkadot/xcm/v0/mod.ts b/codegen/_output/polkadot/xcm/v0/mod.ts deleted file mode 100644 index b0db8212b..000000000 --- a/codegen/_output/polkadot/xcm/v0/mod.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as junction from "./junction.ts" -export * as multi_asset from "./multi_asset.ts" -export * as multi_location from "./multi_location.ts" -export * as order from "./order.ts" - -export const $originKind: $.Codec = _codec.$143 - -export const $response: $.Codec = _codec.$429 - -export const $xcm: $.Codec = _codec.$425 - -export type OriginKind = "Native" | "SovereignAccount" | "Superuser" | "Xcm" - -export type Response = t.xcm.v0.Response.Assets -export namespace Response { - export interface Assets { - type: "Assets" - value: Array - } - export function Assets(value: t.xcm.v0.Response.Assets["value"]): t.xcm.v0.Response.Assets { - return { type: "Assets", value } - } -} - -export type Xcm = - | t.xcm.v0.Xcm.WithdrawAsset - | t.xcm.v0.Xcm.ReserveAssetDeposit - | t.xcm.v0.Xcm.TeleportAsset - | t.xcm.v0.Xcm.QueryResponse - | t.xcm.v0.Xcm.TransferAsset - | t.xcm.v0.Xcm.TransferReserveAsset - | t.xcm.v0.Xcm.Transact - | t.xcm.v0.Xcm.HrmpNewChannelOpenRequest - | t.xcm.v0.Xcm.HrmpChannelAccepted - | t.xcm.v0.Xcm.HrmpChannelClosing - | t.xcm.v0.Xcm.RelayedFrom -export namespace Xcm { - export interface WithdrawAsset { - type: "WithdrawAsset" - assets: Array - effects: Array - } - export interface ReserveAssetDeposit { - type: "ReserveAssetDeposit" - assets: Array - effects: Array - } - export interface TeleportAsset { - type: "TeleportAsset" - assets: Array - effects: Array - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v0.Response - } - export interface TransferAsset { - type: "TransferAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.u64 - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface RelayedFrom { - type: "RelayedFrom" - who: t.xcm.v0.multi_location.MultiLocation - message: t.xcm.v0.Xcm - } - export function WithdrawAsset( - value: Omit, - ): t.xcm.v0.Xcm.WithdrawAsset { - return { type: "WithdrawAsset", ...value } - } - export function ReserveAssetDeposit( - value: Omit, - ): t.xcm.v0.Xcm.ReserveAssetDeposit { - return { type: "ReserveAssetDeposit", ...value } - } - export function TeleportAsset( - value: Omit, - ): t.xcm.v0.Xcm.TeleportAsset { - return { type: "TeleportAsset", ...value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v0.Xcm.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v0.Xcm.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v0.Xcm.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact(value: Omit): t.xcm.v0.Xcm.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v0.Xcm.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v0.Xcm.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v0.Xcm.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function RelayedFrom( - value: Omit, - ): t.xcm.v0.Xcm.RelayedFrom { - return { type: "RelayedFrom", ...value } - } -} diff --git a/codegen/_output/polkadot/xcm/v0/multi_asset.ts b/codegen/_output/polkadot/xcm/v0/multi_asset.ts deleted file mode 100644 index a101adce2..000000000 --- a/codegen/_output/polkadot/xcm/v0/multi_asset.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $multiAsset: $.Codec = _codec.$152 - -export type MultiAsset = - | t.xcm.v0.multi_asset.MultiAsset.None - | t.xcm.v0.multi_asset.MultiAsset.All - | t.xcm.v0.multi_asset.MultiAsset.AllFungible - | t.xcm.v0.multi_asset.MultiAsset.AllNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible - | t.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible - | t.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AbstractFungible - | t.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible - | t.xcm.v0.multi_asset.MultiAsset.ConcreteFungible - | t.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible -export namespace MultiAsset { - export interface None { - type: "None" - } - export interface All { - type: "All" - } - export interface AllFungible { - type: "AllFungible" - } - export interface AllNonFungible { - type: "AllNonFungible" - } - export interface AllAbstractFungible { - type: "AllAbstractFungible" - id: Uint8Array - } - export interface AllAbstractNonFungible { - type: "AllAbstractNonFungible" - class: Uint8Array - } - export interface AllConcreteFungible { - type: "AllConcreteFungible" - id: t.xcm.v0.multi_location.MultiLocation - } - export interface AllConcreteNonFungible { - type: "AllConcreteNonFungible" - class: t.xcm.v0.multi_location.MultiLocation - } - export interface AbstractFungible { - type: "AbstractFungible" - id: Uint8Array - amount: t.Compact - } - export interface AbstractNonFungible { - type: "AbstractNonFungible" - class: Uint8Array - instance: t.xcm.v1.multiasset.AssetInstance - } - export interface ConcreteFungible { - type: "ConcreteFungible" - id: t.xcm.v0.multi_location.MultiLocation - amount: t.Compact - } - export interface ConcreteNonFungible { - type: "ConcreteNonFungible" - class: t.xcm.v0.multi_location.MultiLocation - instance: t.xcm.v1.multiasset.AssetInstance - } - export function None(): t.xcm.v0.multi_asset.MultiAsset.None { - return { type: "None" } - } - export function All(): t.xcm.v0.multi_asset.MultiAsset.All { - return { type: "All" } - } - export function AllFungible(): t.xcm.v0.multi_asset.MultiAsset.AllFungible { - return { type: "AllFungible" } - } - export function AllNonFungible(): t.xcm.v0.multi_asset.MultiAsset.AllNonFungible { - return { type: "AllNonFungible" } - } - export function AllAbstractFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible { - return { type: "AllAbstractFungible", ...value } - } - export function AllAbstractNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible { - return { type: "AllAbstractNonFungible", ...value } - } - export function AllConcreteFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible { - return { type: "AllConcreteFungible", ...value } - } - export function AllConcreteNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible { - return { type: "AllConcreteNonFungible", ...value } - } - export function AbstractFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AbstractFungible { - return { type: "AbstractFungible", ...value } - } - export function AbstractNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible { - return { type: "AbstractNonFungible", ...value } - } - export function ConcreteFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.ConcreteFungible { - return { type: "ConcreteFungible", ...value } - } - export function ConcreteNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible { - return { type: "ConcreteNonFungible", ...value } - } -} diff --git a/codegen/_output/polkadot/xcm/v0/multi_location.ts b/codegen/_output/polkadot/xcm/v0/multi_location.ts deleted file mode 100644 index 327600e00..000000000 --- a/codegen/_output/polkadot/xcm/v0/multi_location.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $multiLocation: $.Codec = _codec.$153 - -export type MultiLocation = - | t.xcm.v0.multi_location.MultiLocation.Null - | t.xcm.v0.multi_location.MultiLocation.X1 - | t.xcm.v0.multi_location.MultiLocation.X2 - | t.xcm.v0.multi_location.MultiLocation.X3 - | t.xcm.v0.multi_location.MultiLocation.X4 - | t.xcm.v0.multi_location.MultiLocation.X5 - | t.xcm.v0.multi_location.MultiLocation.X6 - | t.xcm.v0.multi_location.MultiLocation.X7 - | t.xcm.v0.multi_location.MultiLocation.X8 -export namespace MultiLocation { - export interface Null { - type: "Null" - } - export interface X1 { - type: "X1" - value: t.xcm.v0.junction.Junction - } - export interface X2 { - type: "X2" - value: [t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction] - } - export interface X3 { - type: "X3" - value: [t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction] - } - export interface X4 { - type: "X4" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X5 { - type: "X5" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X6 { - type: "X6" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X7 { - type: "X7" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X8 { - type: "X8" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export function Null(): t.xcm.v0.multi_location.MultiLocation.Null { - return { type: "Null" } - } - export function X1( - value: t.xcm.v0.multi_location.MultiLocation.X1["value"], - ): t.xcm.v0.multi_location.MultiLocation.X1 { - return { type: "X1", value } - } - export function X2( - ...value: t.xcm.v0.multi_location.MultiLocation.X2["value"] - ): t.xcm.v0.multi_location.MultiLocation.X2 { - return { type: "X2", value } - } - export function X3( - ...value: t.xcm.v0.multi_location.MultiLocation.X3["value"] - ): t.xcm.v0.multi_location.MultiLocation.X3 { - return { type: "X3", value } - } - export function X4( - ...value: t.xcm.v0.multi_location.MultiLocation.X4["value"] - ): t.xcm.v0.multi_location.MultiLocation.X4 { - return { type: "X4", value } - } - export function X5( - ...value: t.xcm.v0.multi_location.MultiLocation.X5["value"] - ): t.xcm.v0.multi_location.MultiLocation.X5 { - return { type: "X5", value } - } - export function X6( - ...value: t.xcm.v0.multi_location.MultiLocation.X6["value"] - ): t.xcm.v0.multi_location.MultiLocation.X6 { - return { type: "X6", value } - } - export function X7( - ...value: t.xcm.v0.multi_location.MultiLocation.X7["value"] - ): t.xcm.v0.multi_location.MultiLocation.X7 { - return { type: "X7", value } - } - export function X8( - ...value: t.xcm.v0.multi_location.MultiLocation.X8["value"] - ): t.xcm.v0.multi_location.MultiLocation.X8 { - return { type: "X8", value } - } -} diff --git a/codegen/_output/polkadot/xcm/v0/order.ts b/codegen/_output/polkadot/xcm/v0/order.ts deleted file mode 100644 index 137060d46..000000000 --- a/codegen/_output/polkadot/xcm/v0/order.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $order: $.Codec = _codec.$427 - -export type Order = - | t.xcm.v0.order.Order.Null - | t.xcm.v0.order.Order.DepositAsset - | t.xcm.v0.order.Order.DepositReserveAsset - | t.xcm.v0.order.Order.ExchangeAsset - | t.xcm.v0.order.Order.InitiateReserveWithdraw - | t.xcm.v0.order.Order.InitiateTeleport - | t.xcm.v0.order.Order.QueryHolding - | t.xcm.v0.order.Order.BuyExecution -export namespace Order { - export interface Null { - type: "Null" - } - export interface DepositAsset { - type: "DepositAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: Array - receive: Array - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: Array - reserve: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v0.multi_location.MultiLocation - assets: Array - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v0.multi_asset.MultiAsset - weight: t.u64 - debt: t.u64 - halt_on_error: boolean - xcm: Array - } - export function Null(): t.xcm.v0.order.Order.Null { - return { type: "Null" } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v0.order.Order.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v0.order.Order.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v0.order.Order.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v0.order.Order.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v0.order.Order.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v0.order.Order.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v0.order.Order.BuyExecution { - return { type: "BuyExecution", ...value } - } -} diff --git a/codegen/_output/polkadot/xcm/v1/junction.ts b/codegen/_output/polkadot/xcm/v1/junction.ts deleted file mode 100644 index 7bbbad54c..000000000 --- a/codegen/_output/polkadot/xcm/v1/junction.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $junction: $.Codec = _codec.$124 - -export type Junction = - | t.xcm.v1.junction.Junction.Parachain - | t.xcm.v1.junction.Junction.AccountId32 - | t.xcm.v1.junction.Junction.AccountIndex64 - | t.xcm.v1.junction.Junction.AccountKey20 - | t.xcm.v1.junction.Junction.PalletInstance - | t.xcm.v1.junction.Junction.GeneralIndex - | t.xcm.v1.junction.Junction.GeneralKey - | t.xcm.v1.junction.Junction.OnlyChild - | t.xcm.v1.junction.Junction.Plurality -export namespace Junction { - export interface Parachain { - type: "Parachain" - value: t.Compact - } - export interface AccountId32 { - type: "AccountId32" - network: t.xcm.v0.junction.NetworkId - id: Uint8Array - } - export interface AccountIndex64 { - type: "AccountIndex64" - network: t.xcm.v0.junction.NetworkId - index: t.Compact - } - export interface AccountKey20 { - type: "AccountKey20" - network: t.xcm.v0.junction.NetworkId - key: Uint8Array - } - export interface PalletInstance { - type: "PalletInstance" - value: t.u8 - } - export interface GeneralIndex { - type: "GeneralIndex" - value: t.Compact - } - export interface GeneralKey { - type: "GeneralKey" - value: Uint8Array - } - export interface OnlyChild { - type: "OnlyChild" - } - export interface Plurality { - type: "Plurality" - id: t.xcm.v0.junction.BodyId - part: t.xcm.v0.junction.BodyPart - } - export function Parachain( - value: t.xcm.v1.junction.Junction.Parachain["value"], - ): t.xcm.v1.junction.Junction.Parachain { - return { type: "Parachain", value } - } - export function AccountId32( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountId32 { - return { type: "AccountId32", ...value } - } - export function AccountIndex64( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountIndex64 { - return { type: "AccountIndex64", ...value } - } - export function AccountKey20( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountKey20 { - return { type: "AccountKey20", ...value } - } - export function PalletInstance( - value: t.xcm.v1.junction.Junction.PalletInstance["value"], - ): t.xcm.v1.junction.Junction.PalletInstance { - return { type: "PalletInstance", value } - } - export function GeneralIndex( - value: t.xcm.v1.junction.Junction.GeneralIndex["value"], - ): t.xcm.v1.junction.Junction.GeneralIndex { - return { type: "GeneralIndex", value } - } - export function GeneralKey( - value: t.xcm.v1.junction.Junction.GeneralKey["value"], - ): t.xcm.v1.junction.Junction.GeneralKey { - return { type: "GeneralKey", value } - } - export function OnlyChild(): t.xcm.v1.junction.Junction.OnlyChild { - return { type: "OnlyChild" } - } - export function Plurality( - value: Omit, - ): t.xcm.v1.junction.Junction.Plurality { - return { type: "Plurality", ...value } - } -} diff --git a/codegen/_output/polkadot/xcm/v1/mod.ts b/codegen/_output/polkadot/xcm/v1/mod.ts deleted file mode 100644 index 6630501ad..000000000 --- a/codegen/_output/polkadot/xcm/v1/mod.ts +++ /dev/null @@ -1,174 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as junction from "./junction.ts" -export * as multiasset from "./multiasset.ts" -export * as multilocation from "./multilocation.ts" -export * as order from "./order.ts" - -export const $response: $.Codec = _codec.$434 - -export const $xcm: $.Codec = _codec.$430 - -export type Response = t.xcm.v1.Response.Assets | t.xcm.v1.Response.Version -export namespace Response { - export interface Assets { - type: "Assets" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface Version { - type: "Version" - value: t.u32 - } - export function Assets(value: t.xcm.v1.Response.Assets["value"]): t.xcm.v1.Response.Assets { - return { type: "Assets", value } - } - export function Version(value: t.xcm.v1.Response.Version["value"]): t.xcm.v1.Response.Version { - return { type: "Version", value } - } -} - -export type Xcm = - | t.xcm.v1.Xcm.WithdrawAsset - | t.xcm.v1.Xcm.ReserveAssetDeposited - | t.xcm.v1.Xcm.ReceiveTeleportedAsset - | t.xcm.v1.Xcm.QueryResponse - | t.xcm.v1.Xcm.TransferAsset - | t.xcm.v1.Xcm.TransferReserveAsset - | t.xcm.v1.Xcm.Transact - | t.xcm.v1.Xcm.HrmpNewChannelOpenRequest - | t.xcm.v1.Xcm.HrmpChannelAccepted - | t.xcm.v1.Xcm.HrmpChannelClosing - | t.xcm.v1.Xcm.RelayedFrom - | t.xcm.v1.Xcm.SubscribeVersion - | t.xcm.v1.Xcm.UnsubscribeVersion -export namespace Xcm { - export interface WithdrawAsset { - type: "WithdrawAsset" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface ReserveAssetDeposited { - type: "ReserveAssetDeposited" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface ReceiveTeleportedAsset { - type: "ReceiveTeleportedAsset" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v1.Response - } - export interface TransferAsset { - type: "TransferAsset" - assets: t.xcm.v1.multiasset.MultiAssets - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssets - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.u64 - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface RelayedFrom { - type: "RelayedFrom" - who: t.xcm.v1.multilocation.Junctions - message: t.xcm.v1.Xcm - } - export interface SubscribeVersion { - type: "SubscribeVersion" - query_id: t.Compact - max_response_weight: t.Compact - } - export interface UnsubscribeVersion { - type: "UnsubscribeVersion" - } - export function WithdrawAsset( - value: Omit, - ): t.xcm.v1.Xcm.WithdrawAsset { - return { type: "WithdrawAsset", ...value } - } - export function ReserveAssetDeposited( - value: Omit, - ): t.xcm.v1.Xcm.ReserveAssetDeposited { - return { type: "ReserveAssetDeposited", ...value } - } - export function ReceiveTeleportedAsset( - value: Omit, - ): t.xcm.v1.Xcm.ReceiveTeleportedAsset { - return { type: "ReceiveTeleportedAsset", ...value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v1.Xcm.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v1.Xcm.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v1.Xcm.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact(value: Omit): t.xcm.v1.Xcm.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v1.Xcm.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v1.Xcm.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v1.Xcm.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function RelayedFrom( - value: Omit, - ): t.xcm.v1.Xcm.RelayedFrom { - return { type: "RelayedFrom", ...value } - } - export function SubscribeVersion( - value: Omit, - ): t.xcm.v1.Xcm.SubscribeVersion { - return { type: "SubscribeVersion", ...value } - } - export function UnsubscribeVersion(): t.xcm.v1.Xcm.UnsubscribeVersion { - return { type: "UnsubscribeVersion" } - } -} diff --git a/codegen/_output/polkadot/xcm/v1/multiasset.ts b/codegen/_output/polkadot/xcm/v1/multiasset.ts deleted file mode 100644 index f73749dc2..000000000 --- a/codegen/_output/polkadot/xcm/v1/multiasset.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $assetId: $.Codec = _codec.$136 - -export const $assetInstance: $.Codec = _codec.$138 - -export const $fungibility: $.Codec = _codec.$137 - -export const $multiAsset: $.Codec = _codec.$135 - -export const $multiAssetFilter: $.Codec = _codec.$145 - -export const $multiAssets: $.Codec = _codec.$133 - -export const $wildFungibility: $.Codec = _codec.$147 - -export const $wildMultiAsset: $.Codec = _codec.$146 - -export type AssetId = t.xcm.v1.multiasset.AssetId.Concrete | t.xcm.v1.multiasset.AssetId.Abstract -export namespace AssetId { - export interface Concrete { - type: "Concrete" - value: t.xcm.v1.multilocation.MultiLocation - } - export interface Abstract { - type: "Abstract" - value: Uint8Array - } - export function Concrete( - value: t.xcm.v1.multiasset.AssetId.Concrete["value"], - ): t.xcm.v1.multiasset.AssetId.Concrete { - return { type: "Concrete", value } - } - export function Abstract( - value: t.xcm.v1.multiasset.AssetId.Abstract["value"], - ): t.xcm.v1.multiasset.AssetId.Abstract { - return { type: "Abstract", value } - } -} - -export type AssetInstance = - | t.xcm.v1.multiasset.AssetInstance.Undefined - | t.xcm.v1.multiasset.AssetInstance.Index - | t.xcm.v1.multiasset.AssetInstance.Array4 - | t.xcm.v1.multiasset.AssetInstance.Array8 - | t.xcm.v1.multiasset.AssetInstance.Array16 - | t.xcm.v1.multiasset.AssetInstance.Array32 - | t.xcm.v1.multiasset.AssetInstance.Blob -export namespace AssetInstance { - export interface Undefined { - type: "Undefined" - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Array4 { - type: "Array4" - value: Uint8Array - } - export interface Array8 { - type: "Array8" - value: Uint8Array - } - export interface Array16 { - type: "Array16" - value: Uint8Array - } - export interface Array32 { - type: "Array32" - value: Uint8Array - } - export interface Blob { - type: "Blob" - value: Uint8Array - } - export function Undefined(): t.xcm.v1.multiasset.AssetInstance.Undefined { - return { type: "Undefined" } - } - export function Index( - value: t.xcm.v1.multiasset.AssetInstance.Index["value"], - ): t.xcm.v1.multiasset.AssetInstance.Index { - return { type: "Index", value } - } - export function Array4( - value: t.xcm.v1.multiasset.AssetInstance.Array4["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array4 { - return { type: "Array4", value } - } - export function Array8( - value: t.xcm.v1.multiasset.AssetInstance.Array8["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array8 { - return { type: "Array8", value } - } - export function Array16( - value: t.xcm.v1.multiasset.AssetInstance.Array16["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array16 { - return { type: "Array16", value } - } - export function Array32( - value: t.xcm.v1.multiasset.AssetInstance.Array32["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array32 { - return { type: "Array32", value } - } - export function Blob( - value: t.xcm.v1.multiasset.AssetInstance.Blob["value"], - ): t.xcm.v1.multiasset.AssetInstance.Blob { - return { type: "Blob", value } - } -} - -export type Fungibility = - | t.xcm.v1.multiasset.Fungibility.Fungible - | t.xcm.v1.multiasset.Fungibility.NonFungible -export namespace Fungibility { - export interface Fungible { - type: "Fungible" - value: t.Compact - } - export interface NonFungible { - type: "NonFungible" - value: t.xcm.v1.multiasset.AssetInstance - } - export function Fungible( - value: t.xcm.v1.multiasset.Fungibility.Fungible["value"], - ): t.xcm.v1.multiasset.Fungibility.Fungible { - return { type: "Fungible", value } - } - export function NonFungible( - value: t.xcm.v1.multiasset.Fungibility.NonFungible["value"], - ): t.xcm.v1.multiasset.Fungibility.NonFungible { - return { type: "NonFungible", value } - } -} - -export interface MultiAsset { - id: t.xcm.v1.multiasset.AssetId - fun: t.xcm.v1.multiasset.Fungibility -} - -export function MultiAsset(value: t.xcm.v1.multiasset.MultiAsset) { - return value -} - -export type MultiAssetFilter = - | t.xcm.v1.multiasset.MultiAssetFilter.Definite - | t.xcm.v1.multiasset.MultiAssetFilter.Wild -export namespace MultiAssetFilter { - export interface Definite { - type: "Definite" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface Wild { - type: "Wild" - value: t.xcm.v1.multiasset.WildMultiAsset - } - export function Definite( - value: t.xcm.v1.multiasset.MultiAssetFilter.Definite["value"], - ): t.xcm.v1.multiasset.MultiAssetFilter.Definite { - return { type: "Definite", value } - } - export function Wild( - value: t.xcm.v1.multiasset.MultiAssetFilter.Wild["value"], - ): t.xcm.v1.multiasset.MultiAssetFilter.Wild { - return { type: "Wild", value } - } -} - -export type MultiAssets = Array - -export function MultiAssets(value: t.xcm.v1.multiasset.MultiAssets) { - return value -} - -export type WildFungibility = "Fungible" | "NonFungible" - -export type WildMultiAsset = - | t.xcm.v1.multiasset.WildMultiAsset.All - | t.xcm.v1.multiasset.WildMultiAsset.AllOf -export namespace WildMultiAsset { - export interface All { - type: "All" - } - export interface AllOf { - type: "AllOf" - id: t.xcm.v1.multiasset.AssetId - fun: t.xcm.v1.multiasset.WildFungibility - } - export function All(): t.xcm.v1.multiasset.WildMultiAsset.All { - return { type: "All" } - } - export function AllOf( - value: Omit, - ): t.xcm.v1.multiasset.WildMultiAsset.AllOf { - return { type: "AllOf", ...value } - } -} diff --git a/codegen/_output/polkadot/xcm/v1/multilocation.ts b/codegen/_output/polkadot/xcm/v1/multilocation.ts deleted file mode 100644 index 59749c32f..000000000 --- a/codegen/_output/polkadot/xcm/v1/multilocation.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $junctions: $.Codec = _codec.$123 - -export const $multiLocation: $.Codec = _codec.$122 - -export type Junctions = - | t.xcm.v1.multilocation.Junctions.Here - | t.xcm.v1.multilocation.Junctions.X1 - | t.xcm.v1.multilocation.Junctions.X2 - | t.xcm.v1.multilocation.Junctions.X3 - | t.xcm.v1.multilocation.Junctions.X4 - | t.xcm.v1.multilocation.Junctions.X5 - | t.xcm.v1.multilocation.Junctions.X6 - | t.xcm.v1.multilocation.Junctions.X7 - | t.xcm.v1.multilocation.Junctions.X8 -export namespace Junctions { - export interface Here { - type: "Here" - } - export interface X1 { - type: "X1" - value: t.xcm.v1.junction.Junction - } - export interface X2 { - type: "X2" - value: [t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction] - } - export interface X3 { - type: "X3" - value: [t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction] - } - export interface X4 { - type: "X4" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X5 { - type: "X5" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X6 { - type: "X6" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X7 { - type: "X7" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X8 { - type: "X8" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export function Here(): t.xcm.v1.multilocation.Junctions.Here { - return { type: "Here" } - } - export function X1( - value: t.xcm.v1.multilocation.Junctions.X1["value"], - ): t.xcm.v1.multilocation.Junctions.X1 { - return { type: "X1", value } - } - export function X2( - ...value: t.xcm.v1.multilocation.Junctions.X2["value"] - ): t.xcm.v1.multilocation.Junctions.X2 { - return { type: "X2", value } - } - export function X3( - ...value: t.xcm.v1.multilocation.Junctions.X3["value"] - ): t.xcm.v1.multilocation.Junctions.X3 { - return { type: "X3", value } - } - export function X4( - ...value: t.xcm.v1.multilocation.Junctions.X4["value"] - ): t.xcm.v1.multilocation.Junctions.X4 { - return { type: "X4", value } - } - export function X5( - ...value: t.xcm.v1.multilocation.Junctions.X5["value"] - ): t.xcm.v1.multilocation.Junctions.X5 { - return { type: "X5", value } - } - export function X6( - ...value: t.xcm.v1.multilocation.Junctions.X6["value"] - ): t.xcm.v1.multilocation.Junctions.X6 { - return { type: "X6", value } - } - export function X7( - ...value: t.xcm.v1.multilocation.Junctions.X7["value"] - ): t.xcm.v1.multilocation.Junctions.X7 { - return { type: "X7", value } - } - export function X8( - ...value: t.xcm.v1.multilocation.Junctions.X8["value"] - ): t.xcm.v1.multilocation.Junctions.X8 { - return { type: "X8", value } - } -} - -export interface MultiLocation { - parents: t.u8 - interior: t.xcm.v1.multilocation.Junctions -} - -export function MultiLocation(value: t.xcm.v1.multilocation.MultiLocation) { - return value -} diff --git a/codegen/_output/polkadot/xcm/v1/order.ts b/codegen/_output/polkadot/xcm/v1/order.ts deleted file mode 100644 index 84d718dd5..000000000 --- a/codegen/_output/polkadot/xcm/v1/order.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $order: $.Codec = _codec.$432 - -export type Order = - | t.xcm.v1.order.Order.Noop - | t.xcm.v1.order.Order.DepositAsset - | t.xcm.v1.order.Order.DepositReserveAsset - | t.xcm.v1.order.Order.ExchangeAsset - | t.xcm.v1.order.Order.InitiateReserveWithdraw - | t.xcm.v1.order.Order.InitiateTeleport - | t.xcm.v1.order.Order.QueryHolding - | t.xcm.v1.order.Order.BuyExecution -export namespace Order { - export interface Noop { - type: "Noop" - } - export interface DepositAsset { - type: "DepositAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.u32 - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.u32 - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: t.xcm.v1.multiasset.MultiAssetFilter - receive: t.xcm.v1.multiasset.MultiAssets - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: t.xcm.v1.multiasset.MultiAssetFilter - reserve: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: t.xcm.v1.multiasset.MultiAssetFilter - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - assets: t.xcm.v1.multiasset.MultiAssetFilter - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v1.multiasset.MultiAsset - weight: t.u64 - debt: t.u64 - halt_on_error: boolean - instructions: Array - } - export function Noop(): t.xcm.v1.order.Order.Noop { - return { type: "Noop" } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v1.order.Order.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v1.order.Order.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v1.order.Order.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v1.order.Order.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v1.order.Order.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v1.order.Order.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v1.order.Order.BuyExecution { - return { type: "BuyExecution", ...value } - } -} diff --git a/codegen/_output/polkadot/xcm/v2/mod.ts b/codegen/_output/polkadot/xcm/v2/mod.ts deleted file mode 100644 index d0e939e3e..000000000 --- a/codegen/_output/polkadot/xcm/v2/mod.ts +++ /dev/null @@ -1,366 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as traits from "./traits.ts" - -export const $instruction: $.Codec = _codec.$132 - -export const $response: $.Codec = _codec.$140 - -export const $weightLimit: $.Codec = _codec.$148 - -export type Instruction = - | t.xcm.v2.Instruction.WithdrawAsset - | t.xcm.v2.Instruction.ReserveAssetDeposited - | t.xcm.v2.Instruction.ReceiveTeleportedAsset - | t.xcm.v2.Instruction.QueryResponse - | t.xcm.v2.Instruction.TransferAsset - | t.xcm.v2.Instruction.TransferReserveAsset - | t.xcm.v2.Instruction.Transact - | t.xcm.v2.Instruction.HrmpNewChannelOpenRequest - | t.xcm.v2.Instruction.HrmpChannelAccepted - | t.xcm.v2.Instruction.HrmpChannelClosing - | t.xcm.v2.Instruction.ClearOrigin - | t.xcm.v2.Instruction.DescendOrigin - | t.xcm.v2.Instruction.ReportError - | t.xcm.v2.Instruction.DepositAsset - | t.xcm.v2.Instruction.DepositReserveAsset - | t.xcm.v2.Instruction.ExchangeAsset - | t.xcm.v2.Instruction.InitiateReserveWithdraw - | t.xcm.v2.Instruction.InitiateTeleport - | t.xcm.v2.Instruction.QueryHolding - | t.xcm.v2.Instruction.BuyExecution - | t.xcm.v2.Instruction.RefundSurplus - | t.xcm.v2.Instruction.SetErrorHandler - | t.xcm.v2.Instruction.SetAppendix - | t.xcm.v2.Instruction.ClearError - | t.xcm.v2.Instruction.ClaimAsset - | t.xcm.v2.Instruction.Trap - | t.xcm.v2.Instruction.SubscribeVersion - | t.xcm.v2.Instruction.UnsubscribeVersion -export namespace Instruction { - export interface WithdrawAsset { - type: "WithdrawAsset" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ReserveAssetDeposited { - type: "ReserveAssetDeposited" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ReceiveTeleportedAsset { - type: "ReceiveTeleportedAsset" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v2.Response - max_weight: t.Compact - } - export interface TransferAsset { - type: "TransferAsset" - assets: t.xcm.v1.multiasset.MultiAssets - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssets - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.Compact - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface ClearOrigin { - type: "ClearOrigin" - } - export interface DescendOrigin { - type: "DescendOrigin" - value: t.xcm.v1.multilocation.Junctions - } - export interface ReportError { - type: "ReportError" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - max_response_weight: t.Compact - } - export interface DepositAsset { - type: "DepositAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.Compact - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: t.xcm.v1.multiasset.MultiAssetFilter - receive: t.xcm.v1.multiasset.MultiAssets - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: t.xcm.v1.multiasset.MultiAssetFilter - reserve: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: t.xcm.v1.multiasset.MultiAssetFilter - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_response_weight: t.Compact - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v1.multiasset.MultiAsset - weight_limit: t.xcm.v2.WeightLimit - } - export interface RefundSurplus { - type: "RefundSurplus" - } - export interface SetErrorHandler { - type: "SetErrorHandler" - value: Array - } - export interface SetAppendix { - type: "SetAppendix" - value: Array - } - export interface ClearError { - type: "ClearError" - } - export interface ClaimAsset { - type: "ClaimAsset" - assets: t.xcm.v1.multiasset.MultiAssets - ticket: t.xcm.v1.multilocation.MultiLocation - } - export interface Trap { - type: "Trap" - value: t.Compact - } - export interface SubscribeVersion { - type: "SubscribeVersion" - query_id: t.Compact - max_response_weight: t.Compact - } - export interface UnsubscribeVersion { - type: "UnsubscribeVersion" - } - export function WithdrawAsset( - value: t.xcm.v2.Instruction.WithdrawAsset["value"], - ): t.xcm.v2.Instruction.WithdrawAsset { - return { type: "WithdrawAsset", value } - } - export function ReserveAssetDeposited( - value: t.xcm.v2.Instruction.ReserveAssetDeposited["value"], - ): t.xcm.v2.Instruction.ReserveAssetDeposited { - return { type: "ReserveAssetDeposited", value } - } - export function ReceiveTeleportedAsset( - value: t.xcm.v2.Instruction.ReceiveTeleportedAsset["value"], - ): t.xcm.v2.Instruction.ReceiveTeleportedAsset { - return { type: "ReceiveTeleportedAsset", value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v2.Instruction.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v2.Instruction.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v2.Instruction.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact( - value: Omit, - ): t.xcm.v2.Instruction.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v2.Instruction.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v2.Instruction.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v2.Instruction.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function ClearOrigin(): t.xcm.v2.Instruction.ClearOrigin { - return { type: "ClearOrigin" } - } - export function DescendOrigin( - value: t.xcm.v2.Instruction.DescendOrigin["value"], - ): t.xcm.v2.Instruction.DescendOrigin { - return { type: "DescendOrigin", value } - } - export function ReportError( - value: Omit, - ): t.xcm.v2.Instruction.ReportError { - return { type: "ReportError", ...value } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v2.Instruction.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v2.Instruction.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v2.Instruction.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v2.Instruction.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v2.Instruction.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v2.Instruction.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v2.Instruction.BuyExecution { - return { type: "BuyExecution", ...value } - } - export function RefundSurplus(): t.xcm.v2.Instruction.RefundSurplus { - return { type: "RefundSurplus" } - } - export function SetErrorHandler( - value: t.xcm.v2.Instruction.SetErrorHandler["value"], - ): t.xcm.v2.Instruction.SetErrorHandler { - return { type: "SetErrorHandler", value } - } - export function SetAppendix( - value: t.xcm.v2.Instruction.SetAppendix["value"], - ): t.xcm.v2.Instruction.SetAppendix { - return { type: "SetAppendix", value } - } - export function ClearError(): t.xcm.v2.Instruction.ClearError { - return { type: "ClearError" } - } - export function ClaimAsset( - value: Omit, - ): t.xcm.v2.Instruction.ClaimAsset { - return { type: "ClaimAsset", ...value } - } - export function Trap(value: t.xcm.v2.Instruction.Trap["value"]): t.xcm.v2.Instruction.Trap { - return { type: "Trap", value } - } - export function SubscribeVersion( - value: Omit, - ): t.xcm.v2.Instruction.SubscribeVersion { - return { type: "SubscribeVersion", ...value } - } - export function UnsubscribeVersion(): t.xcm.v2.Instruction.UnsubscribeVersion { - return { type: "UnsubscribeVersion" } - } -} - -export type Response = - | t.xcm.v2.Response.Null - | t.xcm.v2.Response.Assets - | t.xcm.v2.Response.ExecutionResult - | t.xcm.v2.Response.Version -export namespace Response { - export interface Null { - type: "Null" - } - export interface Assets { - type: "Assets" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ExecutionResult { - type: "ExecutionResult" - value: [t.u32, t.xcm.v2.traits.Error] | undefined - } - export interface Version { - type: "Version" - value: t.u32 - } - export function Null(): t.xcm.v2.Response.Null { - return { type: "Null" } - } - export function Assets(value: t.xcm.v2.Response.Assets["value"]): t.xcm.v2.Response.Assets { - return { type: "Assets", value } - } - export function ExecutionResult( - value: t.xcm.v2.Response.ExecutionResult["value"], - ): t.xcm.v2.Response.ExecutionResult { - return { type: "ExecutionResult", value } - } - export function Version(value: t.xcm.v2.Response.Version["value"]): t.xcm.v2.Response.Version { - return { type: "Version", value } - } -} - -export type WeightLimit = t.xcm.v2.WeightLimit.Unlimited | t.xcm.v2.WeightLimit.Limited -export namespace WeightLimit { - export interface Unlimited { - type: "Unlimited" - } - export interface Limited { - type: "Limited" - value: t.Compact - } - export function Unlimited(): t.xcm.v2.WeightLimit.Unlimited { - return { type: "Unlimited" } - } - export function Limited( - value: t.xcm.v2.WeightLimit.Limited["value"], - ): t.xcm.v2.WeightLimit.Limited { - return { type: "Limited", value } - } -} diff --git a/codegen/_output/polkadot/xcm/v2/traits.ts b/codegen/_output/polkadot/xcm/v2/traits.ts deleted file mode 100644 index a2a5901e8..000000000 --- a/codegen/_output/polkadot/xcm/v2/traits.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $error: $.Codec = _codec.$110 - -export const $outcome: $.Codec = _codec.$109 - -export type Error = - | t.xcm.v2.traits.Error.Overflow - | t.xcm.v2.traits.Error.Unimplemented - | t.xcm.v2.traits.Error.UntrustedReserveLocation - | t.xcm.v2.traits.Error.UntrustedTeleportLocation - | t.xcm.v2.traits.Error.MultiLocationFull - | t.xcm.v2.traits.Error.MultiLocationNotInvertible - | t.xcm.v2.traits.Error.BadOrigin - | t.xcm.v2.traits.Error.InvalidLocation - | t.xcm.v2.traits.Error.AssetNotFound - | t.xcm.v2.traits.Error.FailedToTransactAsset - | t.xcm.v2.traits.Error.NotWithdrawable - | t.xcm.v2.traits.Error.LocationCannotHold - | t.xcm.v2.traits.Error.ExceedsMaxMessageSize - | t.xcm.v2.traits.Error.DestinationUnsupported - | t.xcm.v2.traits.Error.Transport - | t.xcm.v2.traits.Error.Unroutable - | t.xcm.v2.traits.Error.UnknownClaim - | t.xcm.v2.traits.Error.FailedToDecode - | t.xcm.v2.traits.Error.MaxWeightInvalid - | t.xcm.v2.traits.Error.NotHoldingFees - | t.xcm.v2.traits.Error.TooExpensive - | t.xcm.v2.traits.Error.Trap - | t.xcm.v2.traits.Error.UnhandledXcmVersion - | t.xcm.v2.traits.Error.WeightLimitReached - | t.xcm.v2.traits.Error.Barrier - | t.xcm.v2.traits.Error.WeightNotComputable -export namespace Error { - export interface Overflow { - type: "Overflow" - } - export interface Unimplemented { - type: "Unimplemented" - } - export interface UntrustedReserveLocation { - type: "UntrustedReserveLocation" - } - export interface UntrustedTeleportLocation { - type: "UntrustedTeleportLocation" - } - export interface MultiLocationFull { - type: "MultiLocationFull" - } - export interface MultiLocationNotInvertible { - type: "MultiLocationNotInvertible" - } - export interface BadOrigin { - type: "BadOrigin" - } - export interface InvalidLocation { - type: "InvalidLocation" - } - export interface AssetNotFound { - type: "AssetNotFound" - } - export interface FailedToTransactAsset { - type: "FailedToTransactAsset" - } - export interface NotWithdrawable { - type: "NotWithdrawable" - } - export interface LocationCannotHold { - type: "LocationCannotHold" - } - export interface ExceedsMaxMessageSize { - type: "ExceedsMaxMessageSize" - } - export interface DestinationUnsupported { - type: "DestinationUnsupported" - } - export interface Transport { - type: "Transport" - } - export interface Unroutable { - type: "Unroutable" - } - export interface UnknownClaim { - type: "UnknownClaim" - } - export interface FailedToDecode { - type: "FailedToDecode" - } - export interface MaxWeightInvalid { - type: "MaxWeightInvalid" - } - export interface NotHoldingFees { - type: "NotHoldingFees" - } - export interface TooExpensive { - type: "TooExpensive" - } - export interface Trap { - type: "Trap" - value: t.u64 - } - export interface UnhandledXcmVersion { - type: "UnhandledXcmVersion" - } - export interface WeightLimitReached { - type: "WeightLimitReached" - value: t.u64 - } - export interface Barrier { - type: "Barrier" - } - export interface WeightNotComputable { - type: "WeightNotComputable" - } - export function Overflow(): t.xcm.v2.traits.Error.Overflow { - return { type: "Overflow" } - } - export function Unimplemented(): t.xcm.v2.traits.Error.Unimplemented { - return { type: "Unimplemented" } - } - export function UntrustedReserveLocation(): t.xcm.v2.traits.Error.UntrustedReserveLocation { - return { type: "UntrustedReserveLocation" } - } - export function UntrustedTeleportLocation(): t.xcm.v2.traits.Error.UntrustedTeleportLocation { - return { type: "UntrustedTeleportLocation" } - } - export function MultiLocationFull(): t.xcm.v2.traits.Error.MultiLocationFull { - return { type: "MultiLocationFull" } - } - export function MultiLocationNotInvertible(): t.xcm.v2.traits.Error.MultiLocationNotInvertible { - return { type: "MultiLocationNotInvertible" } - } - export function BadOrigin(): t.xcm.v2.traits.Error.BadOrigin { - return { type: "BadOrigin" } - } - export function InvalidLocation(): t.xcm.v2.traits.Error.InvalidLocation { - return { type: "InvalidLocation" } - } - export function AssetNotFound(): t.xcm.v2.traits.Error.AssetNotFound { - return { type: "AssetNotFound" } - } - export function FailedToTransactAsset(): t.xcm.v2.traits.Error.FailedToTransactAsset { - return { type: "FailedToTransactAsset" } - } - export function NotWithdrawable(): t.xcm.v2.traits.Error.NotWithdrawable { - return { type: "NotWithdrawable" } - } - export function LocationCannotHold(): t.xcm.v2.traits.Error.LocationCannotHold { - return { type: "LocationCannotHold" } - } - export function ExceedsMaxMessageSize(): t.xcm.v2.traits.Error.ExceedsMaxMessageSize { - return { type: "ExceedsMaxMessageSize" } - } - export function DestinationUnsupported(): t.xcm.v2.traits.Error.DestinationUnsupported { - return { type: "DestinationUnsupported" } - } - export function Transport(): t.xcm.v2.traits.Error.Transport { - return { type: "Transport" } - } - export function Unroutable(): t.xcm.v2.traits.Error.Unroutable { - return { type: "Unroutable" } - } - export function UnknownClaim(): t.xcm.v2.traits.Error.UnknownClaim { - return { type: "UnknownClaim" } - } - export function FailedToDecode(): t.xcm.v2.traits.Error.FailedToDecode { - return { type: "FailedToDecode" } - } - export function MaxWeightInvalid(): t.xcm.v2.traits.Error.MaxWeightInvalid { - return { type: "MaxWeightInvalid" } - } - export function NotHoldingFees(): t.xcm.v2.traits.Error.NotHoldingFees { - return { type: "NotHoldingFees" } - } - export function TooExpensive(): t.xcm.v2.traits.Error.TooExpensive { - return { type: "TooExpensive" } - } - export function Trap(value: t.xcm.v2.traits.Error.Trap["value"]): t.xcm.v2.traits.Error.Trap { - return { type: "Trap", value } - } - export function UnhandledXcmVersion(): t.xcm.v2.traits.Error.UnhandledXcmVersion { - return { type: "UnhandledXcmVersion" } - } - export function WeightLimitReached( - value: t.xcm.v2.traits.Error.WeightLimitReached["value"], - ): t.xcm.v2.traits.Error.WeightLimitReached { - return { type: "WeightLimitReached", value } - } - export function Barrier(): t.xcm.v2.traits.Error.Barrier { - return { type: "Barrier" } - } - export function WeightNotComputable(): t.xcm.v2.traits.Error.WeightNotComputable { - return { type: "WeightNotComputable" } - } -} - -export type Outcome = - | t.xcm.v2.traits.Outcome.Complete - | t.xcm.v2.traits.Outcome.Incomplete - | t.xcm.v2.traits.Outcome.Error -export namespace Outcome { - export interface Complete { - type: "Complete" - value: t.u64 - } - export interface Incomplete { - type: "Incomplete" - value: [t.u64, t.xcm.v2.traits.Error] - } - export interface Error { - type: "Error" - value: t.xcm.v2.traits.Error - } - export function Complete( - value: t.xcm.v2.traits.Outcome.Complete["value"], - ): t.xcm.v2.traits.Outcome.Complete { - return { type: "Complete", value } - } - export function Incomplete( - ...value: t.xcm.v2.traits.Outcome.Incomplete["value"] - ): t.xcm.v2.traits.Outcome.Incomplete { - return { type: "Incomplete", value } - } - export function Error( - value: t.xcm.v2.traits.Outcome.Error["value"], - ): t.xcm.v2.traits.Outcome.Error { - return { type: "Error", value } - } -} diff --git a/codegen/_output/rococo/bitvec/order.ts b/codegen/_output/rococo/bitvec/order.ts deleted file mode 100644 index d11f4895b..000000000 --- a/codegen/_output/rococo/bitvec/order.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $lsb0: $.Codec = _codec.$384 - -export function Lsb0() { - return null -} - -export type Lsb0 = null diff --git a/codegen/_output/rococo/codecs.ts b/codegen/_output/rococo/codecs.ts index ec0089ee3..0d6bf21bf 100644 --- a/codegen/_output/rococo/codecs.ts +++ b/codegen/_output/rococo/codecs.ts @@ -3,20 +3,22 @@ import type * as t from "./mod.ts" export const $1: $.Codec = $.sizedUint8Array(32) -export const $0: $.Codec = $1 +export const $0: $.Codec = $1 -export const $2: $.Codec = $.u8 +export const $2: $.Codec = $.u8 -export const $4: $.Codec = $.u32 +export const $4: $.Codec = $.u32 -export const $6: $.Codec = $.u128 +export const $6: $.Codec = $.u128 -export const $5: $.Codec = $.object(["free", $6], ["reserved", $6], [ - "misc_frozen", - $6, -], ["fee_frozen", $6]) +export const $5: $.Codec = $.object( + ["free", $6], + ["reserved", $6], + ["misc_frozen", $6], + ["fee_frozen", $6], +) -export const $3: $.Codec = $.object( +export const $3: $.Codec = $.object( ["nonce", $4], ["consumers", $4], ["providers", $4], @@ -24,25 +26,26 @@ export const $3: $.Codec = $.object( ["data", $5], ) -export const $10: $.Codec = $.u64 +export const $10: $.Codec = $.u64 -export const $9: $.Codec> = $.compact($10) +export const $9: $.Codec> = $.compact($10) -export const $8: $.Codec = $.object(["ref_time", $9], [ +export const $8: $.Codec = $.object(["ref_time", $9], [ "proof_size", $9, ]) -export const $7: $.Codec = - $.object(["normal", $8], ["operational", $8], ["mandatory", $8]) +export const $7: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight +> = $.object(["normal", $8], ["operational", $8], ["mandatory", $8]) -export const $11: $.Codec = $1 +export const $11: $.Codec = $1 export const $12: $.Codec = $.uint8Array export const $16: $.Codec = $.sizedUint8Array(4) -export const $15: $.Codec = $.taggedUnion("type", { +export const $15: $.Codec = $.taggedUnion("type", { 6: ["PreRuntime", ["value", $.tuple($16, $12)]], 4: ["Consensus", ["value", $.tuple($16, $12)]], 5: ["Seal", ["value", $.tuple($16, $12)]], @@ -50,32 +53,35 @@ export const $15: $.Codec = $.taggedUnio 8: ["RuntimeEnvironmentUpdated"], }) -export const $14: $.Codec> = $.array($15) +export const $14: $.Codec> = $.array($15) -export const $13: $.Codec = $.object(["logs", $14]) +export const $13: $.Codec = $.object(["logs", $14]) -export const $156: $.Codec = $.taggedUnion("type", { +export const $156: $.Codec = $.taggedUnion("type", { 0: ["ApplyExtrinsic", ["value", $4]], 1: ["Finalization"], 2: ["Initialization"], }) -export const $22: $.Codec = $.stringUnion({ +export const $22: $.Codec = $.stringUnion({ 0: "Normal", 1: "Operational", 2: "Mandatory", }) -export const $23: $.Codec = $.stringUnion({ 0: "Yes", 1: "No" }) +export const $23: $.Codec = $.stringUnion({ + 0: "Yes", + 1: "No", +}) -export const $21: $.Codec = $.object(["weight", $8], [ +export const $21: $.Codec = $.object(["weight", $8], [ "class", $22, ], ["pays_fee", $23]) -export const $25: $.Codec = $.object(["index", $2], ["error", $16]) +export const $25: $.Codec = $.object(["index", $2], ["error", $16]) -export const $26: $.Codec = $.stringUnion({ +export const $26: $.Codec = $.stringUnion({ 0: "NoFunds", 1: "WouldDie", 2: "BelowMinimum", @@ -85,18 +91,18 @@ export const $26: $.Codec = $.stringUnion({ 6: "Unsupported", }) -export const $27: $.Codec = $.stringUnion({ +export const $27: $.Codec = $.stringUnion({ 0: "Underflow", 1: "Overflow", 2: "DivisionByZero", }) -export const $28: $.Codec = $.stringUnion({ +export const $28: $.Codec = $.stringUnion({ 0: "LimitReached", 1: "NoLayer", }) -export const $24: $.Codec = $.taggedUnion("type", { +export const $24: $.Codec = $.taggedUnion("type", { 0: ["Other"], 1: ["CannotLookup"], 2: ["BadOrigin"], @@ -112,7 +118,7 @@ export const $24: $.Codec = $.taggedUnion("type", { 12: ["Unavailable"], }) -export const $20: $.Codec = $.taggedUnion("type", { +export const $20: $.Codec = $.taggedUnion("type", { 0: ["ExtrinsicSuccess", ["dispatch_info", $21]], 1: ["ExtrinsicFailed", ["dispatch_error", $24], ["dispatch_info", $21]], 2: ["CodeUpdated"], @@ -121,18 +127,18 @@ export const $20: $.Codec = $.taggedUnion("type", { 5: ["Remarked", ["sender", $0], ["hash", $11]], }) -export const $30: $.Codec<[t.u32, t.u32]> = $.tuple($4, $4) +export const $30: $.Codec<[t.types.u32, t.types.u32]> = $.tuple($4, $4) export const $31: $.Codec = $.option($1) export const $33: $.Codec = C.$null -export const $32: $.Codec> = $.result( +export const $32: $.Codec> = $.result( $33, - $.instance(C.ChainError, ["value", $24]), + $.instance(C.ChainError, ["value", $24]), ) -export const $29: $.Codec = $.taggedUnion("type", { +export const $29: $.Codec = $.taggedUnion("type", { 0: ["Scheduled", ["when", $4], ["index", $4]], 1: ["Canceled", ["when", $4], ["index", $4]], 2: ["Dispatched", ["task", $30], ["id", $31], ["result", $32]], @@ -141,24 +147,24 @@ export const $29: $.Codec = $.taggedUnion("type 5: ["PermanentlyOverweight", ["task", $30], ["id", $31]], }) -export const $34: $.Codec = $.taggedUnion("type", { +export const $34: $.Codec = $.taggedUnion("type", { 0: ["Noted", ["hash", $11]], 1: ["Requested", ["hash", $11]], 2: ["Cleared", ["hash", $11]], }) -export const $35: $.Codec = $.taggedUnion("type", { +export const $35: $.Codec = $.taggedUnion("type", { 0: ["IndexAssigned", ["who", $0], ["index", $4]], 1: ["IndexFreed", ["index", $4]], 2: ["IndexFrozen", ["index", $4], ["who", $0]], }) -export const $37: $.Codec = $.stringUnion({ +export const $37: $.Codec = $.stringUnion({ 0: "Free", 1: "Reserved", }) -export const $36: $.Codec = $.taggedUnion("type", { +export const $36: $.Codec = $.taggedUnion("type", { 0: ["Endowed", ["account", $0], ["free_balance", $6]], 1: ["DustLost", ["account", $0], ["amount", $6]], 2: ["Transfer", ["from", $0], ["to", $0], ["amount", $6]], @@ -171,22 +177,22 @@ export const $36: $.Codec = $.taggedUnion("type" 9: ["Slashed", ["who", $0], ["amount", $6]], }) -export const $38: $.Codec = $.taggedUnion("type", { +export const $38: $.Codec = $.taggedUnion("type", { 0: ["TransactionFeePaid", ["who", $0], ["actual_fee", $6], ["tip", $6]], }) -export const $42: $.Codec = $4 +export const $42: $.Codec = $4 -export const $41: $.Codec> = $.compact($42) +export const $41: $.Codec> = $.compact($42) export const $43: $.Codec = $.bool -export const $40: $.Codec = $.object(["commission", $41], [ +export const $40: $.Codec = $.object(["commission", $41], [ "blocked", $43, ]) -export const $39: $.Codec = $.taggedUnion("type", { +export const $39: $.Codec = $.taggedUnion("type", { 0: ["EraPaid", ["era_index", $4], ["validator_payout", $6], ["remainder", $6]], 1: ["Rewarded", ["stash", $0], ["amount", $6]], 2: ["Slashed", ["staker", $0], ["amount", $6]], @@ -204,74 +210,79 @@ export const $39: $.Codec = $.taggedUnion( export const $45: $.Codec = $.sizedUint8Array(16) -export const $44: $.Codec = $.taggedUnion("type", { +export const $44: $.Codec = $.taggedUnion("type", { 0: ["Offence", ["kind", $45], ["timeslot", $12]], }) -export const $46: $.Codec = $.taggedUnion("type", { +export const $46: $.Codec = $.taggedUnion("type", { 0: ["NewSession", ["session_index", $4]], }) -export const $51: $.Codec = $1 +export const $51: $.Codec = $1 -export const $50: $.Codec = $51 +export const $50: $.Codec = $51 -export const $49: $.Codec<[t.sp_finality_grandpa.app.Public, t.u64]> = $.tuple($50, $10) +export const $49: $.Codec<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> = $.tuple( + $50, + $10, +) -export const $48: $.Codec> = $.array($49) +export const $48: $.Codec> = $.array( + $49, +) -export const $47: $.Codec = $.taggedUnion("type", { +export const $47: $.Codec = $.taggedUnion("type", { 0: ["NewAuthorities", ["authority_set", $48]], 1: ["Paused"], 2: ["Resumed"], }) -export const $54: $.Codec = $1 +export const $54: $.Codec = $1 -export const $53: $.Codec = $54 +export const $53: $.Codec = $54 -export const $58: $.Codec> = $.compact($6) +export const $58: $.Codec> = $.compact($6) -export const $60: $.Codec = $.object(["who", $0], [ +export const $60: $.Codec = $.object(["who", $0], [ "value", $58, ]) -export const $59: $.Codec> = $.array($60) - -export const $57: $.Codec = $.object(["total", $58], ["own", $58], [ - "others", - $59, -]) +export const $59: $.Codec> = $.array($60) -export const $56: $.Codec<[t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure]> = $.tuple( - $0, - $57, +export const $57: $.Codec = $.object( + ["total", $58], + ["own", $58], + ["others", $59], ) -export const $55: $.Codec> = $ - .array($56) +export const $56: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> = $ + .tuple($0, $57) + +export const $55: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> +> = $.array($56) -export const $52: $.Codec = $.taggedUnion("type", { +export const $52: $.Codec = $.taggedUnion("type", { 0: ["HeartbeatReceived", ["authority_id", $53]], 1: ["AllGood"], 2: ["SomeOffline", ["offline", $55]], }) -export const $62: $.Codec = $.stringUnion({ +export const $62: $.Codec = $.stringUnion({ 0: "SuperMajorityApprove", 1: "SuperMajorityAgainst", 2: "SimpleMajority", }) -export const $64: $.Codec = $2 +export const $64: $.Codec = $2 -export const $63: $.Codec = $.taggedUnion("type", { +export const $63: $.Codec = $.taggedUnion("type", { 0: ["Standard", ["vote", $64], ["balance", $6]], 1: ["Split", ["aye", $6], ["nay", $6]], }) -export const $61: $.Codec = $.taggedUnion("type", { +export const $61: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["proposal_index", $4], ["deposit", $6]], 1: ["Tabled", ["proposal_index", $4], ["deposit", $6]], 2: ["ExternalTabled"], @@ -288,7 +299,7 @@ export const $61: $.Codec = $.taggedUnion("type 13: ["ProposalCanceled", ["prop_index", $4]], }) -export const $65: $.Codec = $.taggedUnion("type", { +export const $65: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["account", $0], ["proposal_index", $4], ["proposal_hash", $11], [ "threshold", $4, @@ -301,7 +312,7 @@ export const $65: $.Codec = $.taggedUnion("typ 6: ["Closed", ["proposal_hash", $11], ["yes", $4], ["no", $4]], }) -export const $66: $.Codec = $.taggedUnion("type", { +export const $66: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["account", $0], ["proposal_index", $4], ["proposal_hash", $11], [ "threshold", $4, @@ -314,11 +325,11 @@ export const $66: $.Codec = $.taggedUnion("typ 6: ["Closed", ["proposal_hash", $11], ["yes", $4], ["no", $4]], }) -export const $69: $.Codec<[t.sp_core.crypto.AccountId32, t.u128]> = $.tuple($0, $6) +export const $69: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128]> = $.tuple($0, $6) -export const $68: $.Codec> = $.array($69) +export const $68: $.Codec> = $.array($69) -export const $67: $.Codec = $.taggedUnion("type", { +export const $67: $.Codec = $.taggedUnion("type", { 0: ["NewTerm", ["new_members", $68]], 1: ["EmptyTerm"], 2: ["ElectionError"], @@ -328,7 +339,7 @@ export const $67: $.Codec = $.taggedUn 6: ["SeatHolderSlashed", ["seat_holder", $0], ["amount", $6]], }) -export const $70: $.Codec = $.stringUnion({ +export const $70: $.Codec = $.stringUnion({ 0: "MemberAdded", 1: "MemberRemoved", 2: "MembersSwapped", @@ -337,7 +348,7 @@ export const $70: $.Codec = $.stringUnion({ 5: "Dummy", }) -export const $71: $.Codec = $.taggedUnion("type", { +export const $71: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["proposal_index", $4]], 1: ["Spending", ["budget_remaining", $6]], 2: ["Awarded", ["proposal_index", $4], ["award", $6], ["account", $0]], @@ -350,18 +361,19 @@ export const $71: $.Codec = $.taggedUnion("type" export const $74: $.Codec = $.sizedUint8Array(20) -export const $73: $.Codec = $74 +export const $73: $.Codec = $74 -export const $72: $.Codec = $.taggedUnion("type", { - 0: ["Claimed", ["who", $0], ["ethereum_address", $73], ["amount", $6]], -}) +export const $72: $.Codec = $.taggedUnion( + "type", + { 0: ["Claimed", ["who", $0], ["ethereum_address", $73], ["amount", $6]] }, +) -export const $75: $.Codec = $.taggedUnion("type", { +export const $75: $.Codec = $.taggedUnion("type", { 0: ["VestingUpdated", ["account", $0], ["unvested", $6]], 1: ["VestingCompleted", ["account", $0]], }) -export const $76: $.Codec = $.taggedUnion("type", { +export const $76: $.Codec = $.taggedUnion("type", { 0: ["BatchInterrupted", ["index", $4], ["error", $24]], 1: ["BatchCompleted"], 2: ["BatchCompletedWithErrors"], @@ -370,7 +382,7 @@ export const $76: $.Codec = $.taggedUnion("type", 5: ["DispatchedAs", ["result", $32]], }) -export const $77: $.Codec = $.taggedUnion("type", { +export const $77: $.Codec = $.taggedUnion("type", { 0: ["IdentitySet", ["who", $0]], 1: ["IdentityCleared", ["who", $0], ["deposit", $6]], 2: ["IdentityKilled", ["who", $0], ["deposit", $6]], @@ -383,7 +395,7 @@ export const $77: $.Codec = $.taggedUnion("type" 9: ["SubIdentityRevoked", ["sub", $0], ["main", $0], ["deposit", $6]], }) -export const $79: $.Codec = $.stringUnion({ +export const $79: $.Codec = $.stringUnion({ 0: "Any", 1: "NonTransfer", 2: "Governance", @@ -393,9 +405,9 @@ export const $79: $.Codec = $.stringUnion({ 7: "Auction", }) -export const $80: $.Codec = $.u16 +export const $80: $.Codec = $.u16 -export const $78: $.Codec = $.taggedUnion("type", { +export const $78: $.Codec = $.taggedUnion("type", { 0: ["ProxyExecuted", ["result", $32]], 1: ["PureCreated", ["pure", $0], ["who", $0], ["proxy_type", $79], ["disambiguation_index", $80]], 2: ["Announced", ["real", $0], ["proxy", $0], ["call_hash", $11]], @@ -403,9 +415,12 @@ export const $78: $.Codec = $.taggedUnion("type", { 4: ["ProxyRemoved", ["delegator", $0], ["delegatee", $0], ["proxy_type", $79], ["delay", $4]], }) -export const $82: $.Codec = $.object(["height", $4], ["index", $4]) +export const $82: $.Codec = $.object(["height", $4], [ + "index", + $4, +]) -export const $81: $.Codec = $.taggedUnion("type", { +export const $81: $.Codec = $.taggedUnion("type", { 0: ["NewMultisig", ["approving", $0], ["multisig", $0], ["call_hash", $1]], 1: ["MultisigApproval", ["approving", $0], ["timepoint", $82], ["multisig", $0], [ "call_hash", @@ -421,7 +436,7 @@ export const $81: $.Codec = $.taggedUnion("type" ]], }) -export const $83: $.Codec = $.taggedUnion("type", { +export const $83: $.Codec = $.taggedUnion("type", { 0: ["BountyProposed", ["index", $4]], 1: ["BountyRejected", ["index", $4], ["bond", $6]], 2: ["BountyBecameActive", ["index", $4]], @@ -431,14 +446,14 @@ export const $83: $.Codec = $.taggedUnion("type" 6: ["BountyExtended", ["index", $4]], }) -export const $84: $.Codec = $.taggedUnion("type", { +export const $84: $.Codec = $.taggedUnion("type", { 0: ["Added", ["index", $4], ["child_index", $4]], 1: ["Awarded", ["index", $4], ["child_index", $4], ["beneficiary", $0]], 2: ["Claimed", ["index", $4], ["child_index", $4], ["payout", $6], ["beneficiary", $0]], 3: ["Canceled", ["index", $4], ["child_index", $4]], }) -export const $85: $.Codec = $.taggedUnion("type", { +export const $85: $.Codec = $.taggedUnion("type", { 0: ["NewTip", ["tip_hash", $11]], 1: ["TipClosing", ["tip_hash", $11]], 2: ["TipClosed", ["tip_hash", $11], ["who", $0], ["payout", $6]], @@ -446,22 +461,17 @@ export const $85: $.Codec = $.taggedUnion("type", { 4: ["TipSlashed", ["tip_hash", $11], ["finder", $0], ["deposit", $6]], }) -export const $87: $.Codec = $.stringUnion({ - 0: "OnChain", - 1: "Signed", - 2: "Unsigned", - 3: "Fallback", - 4: "Emergency", -}) +export const $87: $.Codec = $ + .stringUnion({ 0: "OnChain", 1: "Signed", 2: "Unsigned", 3: "Fallback", 4: "Emergency" }) -export const $88: $.Codec = $.object(["minimal_stake", $6], [ - "sum_stake", - $6, -], ["sum_stake_squared", $6]) +export const $88: $.Codec = $.object( + ["minimal_stake", $6], + ["sum_stake", $6], + ["sum_stake_squared", $6], +) -export const $86: $.Codec = $.taggedUnion( - "type", - { +export const $86: $.Codec = $ + .taggedUnion("type", { 0: ["SolutionStored", ["compute", $87], ["prev_ejected", $43]], 1: ["ElectionFinalized", ["compute", $87], ["score", $88]], 2: ["ElectionFailed"], @@ -469,23 +479,22 @@ export const $86: $.Codec = 4: ["Slashed", ["account", $0], ["value", $6]], 5: ["SignedPhaseStarted", ["round", $4]], 6: ["UnsignedPhaseStarted", ["round", $4]], - }, -) + }) -export const $89: $.Codec = $.taggedUnion("type", { +export const $89: $.Codec = $.taggedUnion("type", { 0: ["Rebagged", ["who", $0], ["from", $10], ["to", $10]], 1: ["ScoreUpdated", ["who", $0], ["new_score", $10]], }) -export const $91: $.Codec = $.stringUnion({ +export const $91: $.Codec = $.stringUnion({ 0: "Open", 1: "Blocked", 2: "Destroying", }) -export const $92: $.Codec = $.option($0) +export const $92: $.Codec = $.option($0) -export const $90: $.Codec = $.taggedUnion("type", { +export const $90: $.Codec = $.taggedUnion("type", { 0: ["Created", ["depositor", $0], ["pool_id", $4]], 1: ["Bonded", ["member", $0], ["pool_id", $4], ["bonded", $6], ["joined", $43]], 2: ["PaidOut", ["member", $0], ["pool_id", $4], ["payout", $6]], @@ -499,9 +508,9 @@ export const $90: $.Codec = $.taggedUnio 10: ["UnbondingPoolSlashed", ["pool_id", $4], ["era", $4], ["balance", $6]], }) -export const $94: $.Codec> = $.array($4) +export const $94: $.Codec> = $.array($4) -export const $93: $.Codec = $.taggedUnion("type", { +export const $93: $.Codec = $.taggedUnion("type", { 0: ["Unstaked", ["stash", $0], ["result", $32]], 1: ["Slashed", ["stash", $0], ["amount", $6]], 2: ["Checking", ["stash", $0], ["eras", $94]], @@ -509,19 +518,19 @@ export const $93: $.Codec = $.taggedUnion("t 4: ["InternalError"], }) -export const $98: $.Codec = $4 +export const $98: $.Codec = $4 -export const $99: $.Codec = $54 +export const $99: $.Codec = $54 export const $102: $.Codec = $.sizedUint8Array(64) -export const $101: $.Codec = $102 +export const $101: $.Codec = $102 -export const $100: $.Codec = $101 +export const $100: $.Codec = $101 -export const $103: $.Codec = $11 +export const $103: $.Codec = $11 -export const $97: $.Codec = $.object( +export const $97: $.Codec = $.object( ["para_id", $98], ["relay_parent", $11], ["collator", $99], @@ -533,27 +542,25 @@ export const $97: $.Codec = $.obje ["validation_code_hash", $103], ) -export const $96: $.Codec = $.object( - ["descriptor", $97], - ["commitments_hash", $11], -) +export const $96: $.Codec = $.object([ + "descriptor", + $97, +], ["commitments_hash", $11]) -export const $104: $.Codec = $12 +export const $104: $.Codec = $12 -export const $105: $.Codec = $4 +export const $105: $.Codec = $4 -export const $106: $.Codec = $4 +export const $106: $.Codec = $4 -export const $95: $.Codec = $.taggedUnion( - "type", - { +export const $95: $.Codec = $ + .taggedUnion("type", { 0: ["CandidateBacked", ["value", $.tuple($96, $104, $105, $106)]], 1: ["CandidateIncluded", ["value", $.tuple($96, $104, $105, $106)]], 2: ["CandidateTimedOut", ["value", $.tuple($96, $104, $105)]], - }, -) + }) -export const $107: $.Codec = $.taggedUnion( +export const $107: $.Codec = $.taggedUnion( "type", { 0: ["CurrentCodeUpdated", ["value", $98]], @@ -567,7 +574,7 @@ export const $107: $.Codec = $ }, ) -export const $110: $.Codec = $.taggedUnion("type", { +export const $110: $.Codec = $.taggedUnion("type", { 0: ["Overflow"], 1: ["Unimplemented"], 2: ["UntrustedReserveLocation"], @@ -596,28 +603,31 @@ export const $110: $.Codec = $.taggedUnion("type", { 25: ["WeightNotComputable"], }) -export const $109: $.Codec = $.taggedUnion("type", { +export const $109: $.Codec = $.taggedUnion("type", { 0: ["Complete", ["value", $10]], 1: ["Incomplete", ["value", $.tuple($10, $110)]], 2: ["Error", ["value", $110]], }) -export const $108: $.Codec = $.taggedUnion("type", { - 0: ["InvalidFormat", ["value", $1]], - 1: ["UnsupportedVersion", ["value", $1]], - 2: ["ExecutedUpward", ["value", $.tuple($1, $109)]], - 3: ["WeightExhausted", ["value", $.tuple($1, $8, $8)]], - 4: ["UpwardMessagesReceived", ["value", $.tuple($98, $4, $4)]], - 5: ["OverweightEnqueued", ["value", $.tuple($98, $1, $10, $8)]], - 6: ["OverweightServiced", ["value", $.tuple($10, $8)]], -}) +export const $108: $.Codec = $.taggedUnion( + "type", + { + 0: ["InvalidFormat", ["value", $1]], + 1: ["UnsupportedVersion", ["value", $1]], + 2: ["ExecutedUpward", ["value", $.tuple($1, $109)]], + 3: ["WeightExhausted", ["value", $.tuple($1, $8, $8)]], + 4: ["UpwardMessagesReceived", ["value", $.tuple($98, $4, $4)]], + 5: ["OverweightEnqueued", ["value", $.tuple($98, $1, $10, $8)]], + 6: ["OverweightServiced", ["value", $.tuple($10, $8)]], + }, +) -export const $112: $.Codec = $.object([ +export const $112: $.Codec = $.object([ "sender", $98, ], ["recipient", $98]) -export const $111: $.Codec = $.taggedUnion( +export const $111: $.Codec = $.taggedUnion( "type", { 0: ["OpenChannelRequested", ["value", $.tuple($98, $98, $4, $4)]], @@ -628,46 +638,41 @@ export const $111: $.Codec = $. }, ) -export const $114: $.Codec = $11 +export const $114: $.Codec = $11 -export const $115: $.Codec = $.stringUnion({ - 0: "Local", - 1: "Remote", -}) +export const $115: $.Codec = $ + .stringUnion({ 0: "Local", 1: "Remote" }) -export const $116: $.Codec = $.stringUnion({ - 0: "Valid", - 1: "Invalid", -}) +export const $116: $.Codec = $ + .stringUnion({ 0: "Valid", 1: "Invalid" }) -export const $113: $.Codec = $.taggedUnion( - "type", - { +export const $113: $.Codec = $ + .taggedUnion("type", { 0: ["DisputeInitiated", ["value", $.tuple($114, $115)]], 1: ["DisputeConcluded", ["value", $.tuple($114, $116)]], 2: ["DisputeTimedOut", ["value", $114]], 3: ["Revert", ["value", $4]], - }, -) + }) -export const $117: $.Codec = $.taggedUnion( - "type", - { +export const $117: $.Codec = $ + .taggedUnion("type", { 0: ["Registered", ["para_id", $98], ["manager", $0]], 1: ["Deregistered", ["para_id", $98]], 2: ["Reserved", ["para_id", $98], ["who", $0]], + }) + +export const $118: $.Codec = $.taggedUnion( + "type", + { + 0: ["NewLeasePeriod", ["lease_period", $4]], + 1: ["Leased", ["para_id", $98], ["leaser", $0], ["period_begin", $4], ["period_count", $4], [ + "extra_reserved", + $6, + ], ["total_amount", $6]], }, ) -export const $118: $.Codec = $.taggedUnion("type", { - 0: ["NewLeasePeriod", ["lease_period", $4]], - 1: ["Leased", ["para_id", $98], ["leaser", $0], ["period_begin", $4], ["period_count", $4], [ - "extra_reserved", - $6, - ], ["total_amount", $6]], -}) - -export const $119: $.Codec = $.taggedUnion( +export const $119: $.Codec = $.taggedUnion( "type", { 0: ["AuctionStarted", ["auction_index", $4], ["lease_period", $4], ["ending", $4]], @@ -683,7 +688,7 @@ export const $119: $.Codec = $. }, ) -export const $120: $.Codec = $.taggedUnion( +export const $120: $.Codec = $.taggedUnion( "type", { 0: ["Created", ["para_id", $98]], @@ -699,18 +704,18 @@ export const $120: $.Codec = $ }, ) -export const $125: $.Codec> = $.compact($4) +export const $125: $.Codec> = $.compact($4) export const $127: $.Codec = $12 -export const $126: $.Codec = $.taggedUnion("type", { +export const $126: $.Codec = $.taggedUnion("type", { 0: ["Any"], 1: ["Named", ["value", $127]], 2: ["Polkadot"], 3: ["Kusama"], }) -export const $128: $.Codec = $.taggedUnion("type", { +export const $128: $.Codec = $.taggedUnion("type", { 0: ["Unit"], 1: ["Named", ["value", $127]], 2: ["Index", ["value", $125]], @@ -720,7 +725,7 @@ export const $128: $.Codec = $.taggedUnion("type", { 6: ["Judicial"], }) -export const $129: $.Codec = $.taggedUnion("type", { +export const $129: $.Codec = $.taggedUnion("type", { 0: ["Voice"], 1: ["Members", ["count", $125]], 2: ["Fraction", ["nom", $125], ["denom", $125]], @@ -728,7 +733,7 @@ export const $129: $.Codec = $.taggedUnion("type", { 4: ["MoreThanProportion", ["nom", $125], ["denom", $125]], }) -export const $124: $.Codec = $.taggedUnion("type", { +export const $124: $.Codec = $.taggedUnion("type", { 0: ["Parachain", ["value", $125]], 1: ["AccountId32", ["network", $126], ["id", $1]], 2: ["AccountIndex64", ["network", $126], ["index", $9]], @@ -740,7 +745,7 @@ export const $124: $.Codec = $.taggedUnion("type", { 8: ["Plurality", ["id", $128], ["part", $129]], }) -export const $123: $.Codec = $.taggedUnion("type", { +export const $123: $.Codec = $.taggedUnion("type", { 0: ["Here"], 1: ["X1", ["value", $124]], 2: ["X2", ["value", $.tuple($124, $124)]], @@ -752,19 +757,19 @@ export const $123: $.Codec = $.taggedUnion("ty 8: ["X8", ["value", $.tuple($124, $124, $124, $124, $124, $124, $124, $124)]], }) -export const $122: $.Codec = $.object(["parents", $2], [ +export const $122: $.Codec = $.object(["parents", $2], [ "interior", $123, ]) -export const $136: $.Codec = $.taggedUnion("type", { +export const $136: $.Codec = $.taggedUnion("type", { 0: ["Concrete", ["value", $122]], 1: ["Abstract", ["value", $12]], }) export const $139: $.Codec = $.sizedUint8Array(8) -export const $138: $.Codec = $.taggedUnion("type", { +export const $138: $.Codec = $.taggedUnion("type", { 0: ["Undefined"], 1: ["Index", ["value", $58]], 2: ["Array4", ["value", $16]], @@ -774,29 +779,32 @@ export const $138: $.Codec = $.taggedUnion("t 6: ["Blob", ["value", $12]], }) -export const $137: $.Codec = $.taggedUnion("type", { +export const $137: $.Codec = $.taggedUnion("type", { 0: ["Fungible", ["value", $58]], 1: ["NonFungible", ["value", $138]], }) -export const $135: $.Codec = $.object(["id", $136], ["fun", $137]) +export const $135: $.Codec = $.object(["id", $136], [ + "fun", + $137, +]) -export const $134: $.Codec> = $.array($135) +export const $134: $.Codec> = $.array($135) -export const $133: $.Codec = $134 +export const $133: $.Codec = $134 -export const $142: $.Codec<[t.u32, t.xcm.v2.traits.Error]> = $.tuple($4, $110) +export const $142: $.Codec<[t.types.u32, t.types.xcm.v2.traits.Error]> = $.tuple($4, $110) -export const $141: $.Codec<[t.u32, t.xcm.v2.traits.Error] | undefined> = $.option($142) +export const $141: $.Codec<[t.types.u32, t.types.xcm.v2.traits.Error] | undefined> = $.option($142) -export const $140: $.Codec = $.taggedUnion("type", { +export const $140: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["Assets", ["value", $133]], 2: ["ExecutionResult", ["value", $141]], 3: ["Version", ["value", $4]], }) -export const $143: $.Codec = $.stringUnion({ +export const $143: $.Codec = $.stringUnion({ 0: "Native", 1: "SovereignAccount", 2: "Superuser", @@ -805,27 +813,27 @@ export const $143: $.Codec = $.stringUnion({ export const $144: $.Codec<{ encoded: Uint8Array }> = $.object(["encoded", $12]) -export const $147: $.Codec = $.stringUnion({ +export const $147: $.Codec = $.stringUnion({ 0: "Fungible", 1: "NonFungible", }) -export const $146: $.Codec = $.taggedUnion("type", { +export const $146: $.Codec = $.taggedUnion("type", { 0: ["All"], 1: ["AllOf", ["id", $136], ["fun", $147]], }) -export const $145: $.Codec = $.taggedUnion("type", { +export const $145: $.Codec = $.taggedUnion("type", { 0: ["Definite", ["value", $133]], 1: ["Wild", ["value", $146]], }) -export const $148: $.Codec = $.taggedUnion("type", { +export const $148: $.Codec = $.taggedUnion("type", { 0: ["Unlimited"], 1: ["Limited", ["value", $9]], }) -export const $132: $.Codec = $.taggedUnion("type", { +export const $132: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["value", $133]], 1: ["ReserveAssetDeposited", ["value", $133]], 2: ["ReceiveTeleportedAsset", ["value", $133]], @@ -868,13 +876,13 @@ export const $132: $.Codec = $.taggedUnion("type", { 27: ["UnsubscribeVersion"], }) -export const $131: $.Codec> = $.array($132) +export const $131: $.Codec> = $.array($132) -export const $130: $.Codec> = $131 +export const $130: $.Codec> = $131 -export const $149: $.Codec = $.option($122) +export const $149: $.Codec = $.option($122) -export const $154: $.Codec = $.taggedUnion("type", { +export const $154: $.Codec = $.taggedUnion("type", { 0: ["Parent"], 1: ["Parachain", ["value", $125]], 2: ["AccountId32", ["network", $126], ["id", $1]], @@ -887,7 +895,7 @@ export const $154: $.Codec = $.taggedUnion("type", { 9: ["Plurality", ["id", $128], ["part", $129]], }) -export const $153: $.Codec = $.taggedUnion("type", { +export const $153: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["X1", ["value", $154]], 2: ["X2", ["value", $.tuple($154, $154)]], @@ -899,7 +907,7 @@ export const $153: $.Codec = $.taggedUnio 8: ["X8", ["value", $.tuple($154, $154, $154, $154, $154, $154, $154, $154)]], }) -export const $152: $.Codec = $.taggedUnion("type", { +export const $152: $.Codec = $.taggedUnion("type", { 0: ["None"], 1: ["All"], 2: ["AllFungible"], @@ -914,19 +922,19 @@ export const $152: $.Codec = $.taggedUnion("typ 11: ["ConcreteNonFungible", ["class", $153], ["instance", $138]], }) -export const $151: $.Codec> = $.array($152) +export const $151: $.Codec> = $.array($152) -export const $150: $.Codec = $.taggedUnion("type", { +export const $150: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $151]], 1: ["V1", ["value", $133]], }) -export const $155: $.Codec = $.taggedUnion("type", { +export const $155: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $153]], 1: ["V1", ["value", $122]], }) -export const $121: $.Codec = $.taggedUnion("type", { +export const $121: $.Codec = $.taggedUnion("type", { 0: ["Attempted", ["value", $109]], 1: ["Sent", ["value", $.tuple($122, $122, $130)]], 2: ["UnexpectedResponse", ["value", $.tuple($122, $10)]], @@ -946,7 +954,7 @@ export const $121: $.Codec = $.taggedUnion("type", { 16: ["AssetsClaimed", ["value", $.tuple($11, $122, $150)]], }) -export const $19: $.Codec = $.taggedUnion("type", { +export const $19: $.Codec = $.taggedUnion("type", { 0: ["System", ["value", $20]], 1: ["Scheduler", ["value", $29]], 10: ["Preimage", ["value", $34]], @@ -989,23 +997,23 @@ export const $19: $.Codec = $.taggedUnion("type 99: ["XcmPallet", ["value", $121]], }) -export const $157: $.Codec> = $.array($11) +export const $157: $.Codec> = $.array($11) -export const $18: $.Codec = $.object(["phase", $156], ["event", $19], [ - "topics", - $157, -]) +export const $18: $.Codec = $.object(["phase", $156], [ + "event", + $19, +], ["topics", $157]) -export const $17: $.Codec> = $.array($18) +export const $17: $.Codec> = $.array($18) -export const $158: $.Codec> = $.array($30) +export const $158: $.Codec> = $.array($30) export const $160: $.Codec = $.str -export const $159: $.Codec = $.object( - ["spec_version", $125], - ["spec_name", $160], -) +export const $159: $.Codec = $.object([ + "spec_version", + $125, +], ["spec_name", $160]) export const $163: $.Codec<[Uint8Array, Uint8Array]> = $.tuple($12, $12) @@ -1013,7 +1021,7 @@ export const $162: $.Codec> = $.array($163) export const $164: $.Codec> = $.array($12) -export const $161: $.Codec = $.taggedUnion("type", { +export const $161: $.Codec = $.taggedUnion("type", { 0: ["fill_block", ["ratio", $42]], 1: ["remark", ["remark", $12]], 2: ["set_heap_pages", ["pages", $10]], @@ -1025,9 +1033,9 @@ export const $161: $.Codec = $.taggedUnion("type", { 8: ["remark_with_event", ["remark", $12]], }) -export const $168: $.Codec = $.option($8) +export const $168: $.Codec = $.option($8) -export const $167: $.Codec = $.object( +export const $167: $.Codec = $.object( ["base_extrinsic", $8], ["max_extrinsic", $168], ["max_total", $168], @@ -1035,31 +1043,35 @@ export const $167: $.Codec = $.object( ) export const $166: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass + t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass > = $.object(["normal", $167], ["operational", $167], ["mandatory", $167]) -export const $165: $.Codec = $.object(["base_block", $8], [ - "max_block", - $8, -], ["per_class", $166]) +export const $165: $.Codec = $.object( + ["base_block", $8], + ["max_block", $8], + ["per_class", $166], +) -export const $170: $.Codec = $.object( +export const $170: $.Codec = $.object( ["normal", $4], ["operational", $4], ["mandatory", $4], ) -export const $169: $.Codec = $.object(["max", $170]) +export const $169: $.Codec = $.object(["max", $170]) -export const $171: $.Codec = $.object(["read", $10], ["write", $10]) +export const $171: $.Codec = $.object(["read", $10], [ + "write", + $10, +]) -export const $175: $.Codec<[Uint8Array, t.u32]> = $.tuple($139, $4) +export const $175: $.Codec<[Uint8Array, t.types.u32]> = $.tuple($139, $4) -export const $174: $.Codec> = $.array($175) +export const $174: $.Codec> = $.array($175) -export const $173: $.Codec> = $174 +export const $173: $.Codec> = $174 -export const $172: $.Codec = $.object( +export const $172: $.Codec = $.object( ["spec_name", $160], ["impl_name", $160], ["authoring_version", $4], @@ -1070,7 +1082,7 @@ export const $172: $.Codec = $.object( ["state_version", $2], ) -export const $176: $.Codec = $.stringUnion({ +export const $176: $.Codec = $.stringUnion({ 0: "InvalidSpecName", 1: "SpecVersionNeedsToIncrease", 2: "FailedToExtractRuntimeVersion", @@ -1081,45 +1093,43 @@ export const $176: $.Codec = $.stringUnion({ export const $448: $.Codec = $12 -export const $180: $.Codec = $.taggedUnion("type", { +export const $180: $.Codec = $.taggedUnion("type", { 0: ["Legacy", ["hash", $11]], 1: ["Inline", ["value", $448]], 2: ["Lookup", ["hash", $11], ["len", $4]], }) -export const $183: $.Codec<[t.u32, t.u32] | undefined> = $.option($30) +export const $183: $.Codec<[t.types.u32, t.types.u32] | undefined> = $.option($30) -export const $257: $.Codec = $.taggedUnion("type", { +export const $257: $.Codec = $.taggedUnion("type", { 0: ["Root"], 1: ["Signed", ["value", $0]], 2: ["None"], }) -export const $258: $.Codec = $.taggedUnion("type", { +export const $258: $.Codec = $.taggedUnion("type", { 0: ["Members", ["value", $.tuple($4, $4)]], 1: ["Member", ["value", $0]], 2: ["_Phantom"], }) -export const $259: $.Codec = $.taggedUnion("type", { +export const $259: $.Codec = $.taggedUnion("type", { 0: ["Members", ["value", $.tuple($4, $4)]], 1: ["Member", ["value", $0]], 2: ["_Phantom"], }) -export const $260: $.Codec = $.taggedUnion( - "type", - { 0: ["Parachain", ["value", $98]] }, -) +export const $260: $.Codec = $ + .taggedUnion("type", { 0: ["Parachain", ["value", $98]] }) -export const $261: $.Codec = $.taggedUnion("type", { +export const $261: $.Codec = $.taggedUnion("type", { 0: ["Xcm", ["value", $122]], 1: ["Response", ["value", $122]], }) -export const $262: $.Codec = $.never +export const $262: $.Codec = $.never -export const $256: $.Codec = $.taggedUnion("type", { +export const $256: $.Codec = $.taggedUnion("type", { 0: ["system", ["value", $257]], 15: ["Council", ["value", $258]], 16: ["TechnicalCommittee", ["value", $259]], @@ -1128,7 +1138,7 @@ export const $256: $.Codec = $.taggedUnion("typ 5: ["Void", ["value", $262]], }) -export const $179: $.Codec = $.object( +export const $179: $.Codec = $.object( ["maybe_id", $31], ["priority", $2], ["call", $180], @@ -1136,13 +1146,13 @@ export const $179: $.Codec = $.object( ["origin", $256], ) -export const $178: $.Codec = $.option($179) +export const $178: $.Codec = $.option($179) -export const $449: $.Codec> = $.array($178) +export const $449: $.Codec> = $.array($178) -export const $177: $.Codec> = $449 +export const $177: $.Codec> = $449 -export const $182: $.Codec = $.taggedUnion("type", { +export const $182: $.Codec = $.taggedUnion("type", { 0: ["schedule", ["when", $4], ["maybe_periodic", $183], ["priority", $2], [ "call", $.deferred(() => $181), @@ -1167,18 +1177,18 @@ export const $182: $.Codec = $.taggedUnion("type ], }) -export const $184: $.Codec = $.taggedUnion("type", { +export const $184: $.Codec = $.taggedUnion("type", { 0: ["note_preimage", ["bytes", $12]], 1: ["unnote_preimage", ["hash", $11]], 2: ["request_preimage", ["hash", $11]], 3: ["unrequest_preimage", ["hash", $11]], }) -export const $189: $.Codec = $54 +export const $189: $.Codec = $54 -export const $190: $.Codec = $10 +export const $190: $.Codec = $10 -export const $187: $.Codec = $.object( +export const $187: $.Codec = $.object( ["parent_hash", $11], ["number", $125], ["state_root", $11], @@ -1186,44 +1196,44 @@ export const $187: $.Codec = $.object( ["digest", $13], ) -export const $186: $.Codec = $.object( +export const $186: $.Codec = $.object( ["offender", $189], ["slot", $190], ["first_header", $187], ["second_header", $187], ) -export const $191: $.Codec = $.object(["session", $4], [ +export const $191: $.Codec = $.object(["session", $4], [ "trie_nodes", $164, ], ["validator_count", $4]) -export const $193: $.Codec<[t.u64, t.u64]> = $.tuple($10, $10) +export const $193: $.Codec<[t.types.u64, t.types.u64]> = $.tuple($10, $10) -export const $194: $.Codec = $.stringUnion({ +export const $194: $.Codec = $.stringUnion({ 0: "PrimarySlots", 1: "PrimaryAndSecondaryPlainSlots", 2: "PrimaryAndSecondaryVRFSlots", }) -export const $192: $.Codec = $.taggedUnion( +export const $192: $.Codec = $.taggedUnion( "type", { 1: ["V1", ["c", $193], ["allowed_slots", $194]] }, ) -export const $185: $.Codec = $.taggedUnion("type", { +export const $185: $.Codec = $.taggedUnion("type", { 0: ["report_equivocation", ["equivocation_proof", $186], ["key_owner_proof", $191]], 1: ["report_equivocation_unsigned", ["equivocation_proof", $186], ["key_owner_proof", $191]], 2: ["plan_config_change", ["config", $192]], }) -export const $195: $.Codec = $.taggedUnion("type", { +export const $195: $.Codec = $.taggedUnion("type", { 0: ["set", ["now", $9]], }) export const $198: $.Codec> = $.compact($33) -export const $197: $.Codec = $.taggedUnion("type", { +export const $197: $.Codec = $.taggedUnion("type", { 0: ["Id", ["value", $0]], 1: ["Index", ["value", $198]], 2: ["Raw", ["value", $12]], @@ -1231,7 +1241,7 @@ export const $197: $.Codec = $.taggedUni 4: ["Address20", ["value", $74]], }) -export const $196: $.Codec = $.taggedUnion("type", { +export const $196: $.Codec = $.taggedUnion("type", { 0: ["claim", ["index", $4]], 1: ["transfer", ["new", $197], ["index", $4]], 2: ["free", ["index", $4]], @@ -1239,7 +1249,7 @@ export const $196: $.Codec = $.taggedUnion("type", 4: ["freeze", ["index", $4]], }) -export const $199: $.Codec = $.taggedUnion("type", { +export const $199: $.Codec = $.taggedUnion("type", { 0: ["transfer", ["dest", $197], ["value", $58]], 1: ["set_balance", ["who", $197], ["new_free", $58], ["new_reserved", $58]], 2: ["force_transfer", ["source", $197], ["dest", $197], ["value", $58]], @@ -1248,13 +1258,13 @@ export const $199: $.Codec = $.taggedUnion("type" 5: ["force_unreserve", ["who", $197], ["amount", $6]], }) -export const $201: $.Codec> = $.array($187) +export const $201: $.Codec> = $.array($187) -export const $200: $.Codec = $.taggedUnion("type", { +export const $200: $.Codec = $.taggedUnion("type", { 0: ["set_uncles", ["new_uncles", $201]], }) -export const $203: $.Codec = $.taggedUnion("type", { +export const $203: $.Codec = $.taggedUnion("type", { 0: ["Staked"], 1: ["Stash"], 2: ["Controller"], @@ -1262,33 +1272,31 @@ export const $203: $.Codec = $.taggedUnion(" 4: ["None"], }) -export const $204: $.Codec> = $.array($197) +export const $204: $.Codec> = $.array($197) -export const $205: $.Codec = $2 +export const $205: $.Codec = $2 -export const $206: $.Codec> = $.array($0) +export const $206: $.Codec> = $.array($0) -export const $207: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $6]], - 2: ["Remove"], -}) +export const $207: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $6]], 2: ["Remove"] }, +) -export const $208: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $4]], - 2: ["Remove"], -}) +export const $208: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $4]], 2: ["Remove"] }, +) export const $209: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent > = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $205]], 2: ["Remove"] }) export const $210: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill > = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $42]], 2: ["Remove"] }) -export const $202: $.Codec = $.taggedUnion("type", { +export const $202: $.Codec = $.taggedUnion("type", { 0: ["bond", ["controller", $197], ["value", $58], ["payee", $203]], 1: ["bond_extra", ["max_additional", $58]], 2: ["unbond", ["value", $58]], @@ -1324,13 +1332,13 @@ export const $202: $.Codec = $.taggedUnion( 24: ["force_apply_min_commission", ["validator_stash", $0]], }) -export const $213: $.Codec = $54 +export const $213: $.Codec = $54 -export const $214: $.Codec = $54 +export const $214: $.Codec = $54 -export const $215: $.Codec = $54 +export const $215: $.Codec = $54 -export const $212: $.Codec = $.object( +export const $212: $.Codec = $.object( ["grandpa", $50], ["babe", $189], ["im_online", $53], @@ -1339,73 +1347,67 @@ export const $212: $.Codec = $.object( ["authority_discovery", $215], ) -export const $211: $.Codec = $.taggedUnion("type", { +export const $211: $.Codec = $.taggedUnion("type", { 0: ["set_keys", ["keys", $212], ["proof", $12]], 1: ["purge_keys"], }) -export const $220: $.Codec = $.object(["target_hash", $11], [ +export const $220: $.Codec = $.object(["target_hash", $11], [ "target_number", $4, ]) -export const $222: $.Codec = $102 +export const $222: $.Codec = $102 -export const $221: $.Codec = $222 +export const $221: $.Codec = $222 -export const $223: $.Codec<[t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature]> = $ - .tuple($220, $221) +export const $223: $.Codec< + [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] +> = $.tuple($220, $221) -export const $219: $.Codec = $.object( - ["round_number", $10], - ["identity", $50], - ["first", $223], - ["second", $223], -) +export const $219: $.Codec = $ + .object(["round_number", $10], ["identity", $50], ["first", $223], ["second", $223]) -export const $225: $.Codec = $.object(["target_hash", $11], [ +export const $225: $.Codec = $.object(["target_hash", $11], [ "target_number", $4, ]) -export const $226: $.Codec<[t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature]> = $ - .tuple($225, $221) +export const $226: $.Codec< + [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] +> = $.tuple($225, $221) -export const $224: $.Codec = $.object( - ["round_number", $10], - ["identity", $50], - ["first", $226], - ["second", $226], -) +export const $224: $.Codec = $ + .object(["round_number", $10], ["identity", $50], ["first", $226], ["second", $226]) -export const $218: $.Codec = $.taggedUnion("type", { +export const $218: $.Codec = $.taggedUnion("type", { 0: ["Prevote", ["value", $219]], 1: ["Precommit", ["value", $224]], }) -export const $217: $.Codec = $.object(["set_id", $10], [ - "equivocation", - $218, -]) +export const $217: $.Codec = $.object([ + "set_id", + $10, +], ["equivocation", $218]) -export const $216: $.Codec = $.taggedUnion("type", { +export const $216: $.Codec = $.taggedUnion("type", { 0: ["report_equivocation", ["equivocation_proof", $217], ["key_owner_proof", $191]], 1: ["report_equivocation_unsigned", ["equivocation_proof", $217], ["key_owner_proof", $191]], 2: ["note_stalled", ["delay", $4], ["best_finalized_block_number", $4]], }) -export const $230: $.Codec = $12 +export const $230: $.Codec = $12 -export const $232: $.Codec = $12 +export const $232: $.Codec = $12 -export const $231: $.Codec> = $.array($232) +export const $231: $.Codec> = $.array($232) -export const $229: $.Codec = $.object(["peer_id", $230], [ - "external_addresses", - $231, -]) +export const $229: $.Codec = $.object([ + "peer_id", + $230, +], ["external_addresses", $231]) -export const $228: $.Codec = $.object( +export const $228: $.Codec = $.object( ["block_number", $4], ["network_state", $229], ["session_index", $4], @@ -1413,13 +1415,13 @@ export const $228: $.Codec = $.object( ["validators_len", $4], ) -export const $233: $.Codec = $101 +export const $233: $.Codec = $101 -export const $227: $.Codec = $.taggedUnion("type", { +export const $227: $.Codec = $.taggedUnion("type", { 0: ["heartbeat", ["heartbeat", $228], ["signature", $233]], }) -export const $235: $.Codec = $.stringUnion({ +export const $235: $.Codec = $.stringUnion({ 0: "None", 1: "Locked1x", 2: "Locked2x", @@ -1429,9 +1431,9 @@ export const $235: $.Codec = $.stringU 6: "Locked6x", }) -export const $236: $.Codec = $.option($4) +export const $236: $.Codec = $.option($4) -export const $234: $.Codec = $.taggedUnion("type", { +export const $234: $.Codec = $.taggedUnion("type", { 0: ["propose", ["proposal", $180], ["value", $58]], 1: ["second", ["proposal", $125]], 2: ["vote", ["ref_index", $125], ["vote", $63]], @@ -1452,11 +1454,11 @@ export const $234: $.Codec = $.taggedUnion("type 17: ["cancel_proposal", ["prop_index", $125]], }) -export const $239: $.Codec = $10 +export const $239: $.Codec = $10 -export const $238: $.Codec> = $.compact($239) +export const $238: $.Codec> = $.compact($239) -export const $237: $.Codec = $.taggedUnion("type", { +export const $237: $.Codec = $.taggedUnion("type", { 0: ["set_members", ["new_members", $206], ["prime", $92], ["old_count", $4]], 1: ["execute", ["proposal", $.deferred(() => $181)], ["length_bound", $125]], 2: ["propose", ["threshold", $125], ["proposal", $.deferred(() => $181)], ["length_bound", $125]], @@ -1475,7 +1477,7 @@ export const $237: $.Codec = $.taggedUnion("typ ]], }) -export const $240: $.Codec = $.taggedUnion("type", { +export const $240: $.Codec = $.taggedUnion("type", { 0: ["set_members", ["new_members", $206], ["prime", $92], ["old_count", $4]], 1: ["execute", ["proposal", $.deferred(() => $181)], ["length_bound", $125]], 2: ["propose", ["threshold", $125], ["proposal", $.deferred(() => $181)], ["length_bound", $125]], @@ -1494,13 +1496,13 @@ export const $240: $.Codec = $.taggedUnion("typ ]], }) -export const $242: $.Codec = $.taggedUnion("type", { +export const $242: $.Codec = $.taggedUnion("type", { 0: ["Member"], 1: ["RunnerUp"], 2: ["Candidate", ["value", $125]], }) -export const $241: $.Codec = $.taggedUnion("type", { +export const $241: $.Codec = $.taggedUnion("type", { 0: ["vote", ["votes", $206], ["value", $58]], 1: ["remove_voter"], 2: ["submit_candidacy", ["candidate_count", $125]], @@ -1509,7 +1511,7 @@ export const $241: $.Codec = $.taggedUn 5: ["clean_defunct_voters", ["num_voters", $4], ["num_defunct", $4]], }) -export const $243: $.Codec = $.taggedUnion("type", { +export const $243: $.Codec = $.taggedUnion("type", { 0: ["add_member", ["who", $197]], 1: ["remove_member", ["who", $197]], 2: ["swap_member", ["remove", $197], ["add", $197]], @@ -1519,7 +1521,7 @@ export const $243: $.Codec = $.taggedUnion("typ 6: ["clear_prime"], }) -export const $244: $.Codec = $.taggedUnion("type", { +export const $244: $.Codec = $.taggedUnion("type", { 0: ["propose_spend", ["value", $58], ["beneficiary", $197]], 1: ["reject_proposal", ["proposal_id", $125]], 2: ["approve_proposal", ["proposal_id", $125]], @@ -1529,35 +1531,38 @@ export const $244: $.Codec = $.taggedUnion("type" export const $247: $.Codec = $.sizedUint8Array(65) -export const $246: $.Codec = $247 +export const $246: $.Codec = $247 -export const $249: $.Codec<[t.u128, t.u128, t.u32]> = $.tuple($6, $6, $4) +export const $249: $.Codec<[t.types.u128, t.types.u128, t.types.u32]> = $.tuple($6, $6, $4) -export const $248: $.Codec<[t.u128, t.u128, t.u32] | undefined> = $.option($249) +export const $248: $.Codec<[t.types.u128, t.types.u128, t.types.u32] | undefined> = $.option($249) -export const $251: $.Codec = $.stringUnion({ +export const $251: $.Codec = $.stringUnion({ 0: "Regular", 1: "Saft", }) -export const $250: $.Codec = $.option( - $251, -) +export const $250: $.Codec = $ + .option($251) -export const $245: $.Codec = $.taggedUnion("type", { - 0: ["claim", ["dest", $0], ["ethereum_signature", $246]], - 1: ["mint_claim", ["who", $73], ["value", $6], ["vesting_schedule", $248], ["statement", $250]], - 2: ["claim_attest", ["dest", $0], ["ethereum_signature", $246], ["statement", $12]], - 3: ["attest", ["statement", $12]], - 4: ["move_claim", ["old", $73], ["new", $73], ["maybe_preclaim", $92]], -}) +export const $245: $.Codec = $.taggedUnion( + "type", + { + 0: ["claim", ["dest", $0], ["ethereum_signature", $246]], + 1: ["mint_claim", ["who", $73], ["value", $6], ["vesting_schedule", $248], ["statement", $250]], + 2: ["claim_attest", ["dest", $0], ["ethereum_signature", $246], ["statement", $12]], + 3: ["attest", ["statement", $12]], + 4: ["move_claim", ["old", $73], ["new", $73], ["maybe_preclaim", $92]], + }, +) -export const $253: $.Codec = $.object(["locked", $6], [ - "per_block", - $6, -], ["starting_block", $4]) +export const $253: $.Codec = $.object( + ["locked", $6], + ["per_block", $6], + ["starting_block", $4], +) -export const $252: $.Codec = $.taggedUnion("type", { +export const $252: $.Codec = $.taggedUnion("type", { 0: ["vest"], 1: ["vest_other", ["target", $197]], 2: ["vested_transfer", ["target", $197], ["schedule", $253]], @@ -1565,9 +1570,11 @@ export const $252: $.Codec = $.taggedUnion("type", 4: ["merge_schedules", ["schedule1_index", $4], ["schedule2_index", $4]], }) -export const $255: $.Codec> = $.array($.deferred(() => $181)) +export const $255: $.Codec> = $.array( + $.deferred(() => $181), +) -export const $254: $.Codec = $.taggedUnion("type", { +export const $254: $.Codec = $.taggedUnion("type", { 0: ["batch", ["calls", $255]], 1: ["as_derivative", ["index", $80], ["call", $.deferred(() => $181)]], 2: ["batch_all", ["calls", $255]], @@ -1631,7 +1638,7 @@ export const $294: $.Codec = $.sizedUint8Array(30) export const $295: $.Codec = $.sizedUint8Array(31) -export const $267: $.Codec = $.taggedUnion("type", { +export const $267: $.Codec = $.taggedUnion("type", { 0: ["None"], 1: ["Raw0", ["value", $268]], 2: ["Raw1", ["value", $269]], @@ -1672,20 +1679,21 @@ export const $267: $.Codec = $.taggedUnion("type", 37: ["ShaThree256", ["value", $1]], }) -export const $266: $.Codec<[t.pallet_identity.types.Data, t.pallet_identity.types.Data]> = $.tuple( - $267, - $267, -) +export const $266: $.Codec< + [t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data] +> = $.tuple($267, $267) -export const $296: $.Codec> = $ - .array($266) +export const $296: $.Codec< + Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> +> = $.array($266) -export const $265: $.Codec> = - $296 +export const $265: $.Codec< + Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> +> = $296 export const $297: $.Codec = $.option($74) -export const $264: $.Codec = $.object( +export const $264: $.Codec = $.object( ["additional", $265], ["display", $267], ["legal", $267], @@ -1697,17 +1705,17 @@ export const $264: $.Codec = $.object( ["twitter", $267], ) -export const $299: $.Codec<[t.sp_core.crypto.AccountId32, t.pallet_identity.types.Data]> = $.tuple( - $0, - $267, -) +export const $299: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data] +> = $.tuple($0, $267) -export const $298: $.Codec> = $ - .array($299) +export const $298: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data]> +> = $.array($299) -export const $300: $.Codec = $10 +export const $300: $.Codec = $10 -export const $302: $.Codec = $.taggedUnion("type", { +export const $302: $.Codec = $.taggedUnion("type", { 0: ["Unknown"], 1: ["FeePaid", ["value", $6]], 2: ["Reasonable"], @@ -1717,7 +1725,7 @@ export const $302: $.Codec = $.taggedUnion("t 6: ["Erroneous"], }) -export const $263: $.Codec = $.taggedUnion("type", { +export const $263: $.Codec = $.taggedUnion("type", { 0: ["add_registrar", ["account", $197]], 1: ["set_identity", ["info", $264]], 2: ["set_subs", ["subs", $298]], @@ -1738,9 +1746,9 @@ export const $263: $.Codec = $.taggedUnion("type" 14: ["quit_sub"], }) -export const $304: $.Codec = $.option($79) +export const $304: $.Codec = $.option($79) -export const $303: $.Codec = $.taggedUnion("type", { +export const $303: $.Codec = $.taggedUnion("type", { 0: ["proxy", ["real", $197], ["force_proxy_type", $304], ["call", $.deferred(() => $181)]], 1: ["add_proxy", ["delegate", $197], ["proxy_type", $79], ["delay", $4]], 2: ["remove_proxy", ["delegate", $197], ["proxy_type", $79], ["delay", $4]], @@ -1759,9 +1767,9 @@ export const $303: $.Codec = $.taggedUnion("type", { ]], }) -export const $306: $.Codec = $.option($82) +export const $306: $.Codec = $.option($82) -export const $305: $.Codec = $.taggedUnion("type", { +export const $305: $.Codec = $.taggedUnion("type", { 0: ["as_multi_threshold_1", ["other_signatories", $206], ["call", $.deferred(() => $181)]], 1: ["as_multi", ["threshold", $80], ["other_signatories", $206], ["maybe_timepoint", $306], [ "call", @@ -1781,7 +1789,7 @@ export const $305: $.Codec = $.taggedUnion("type" ]], }) -export const $307: $.Codec = $.taggedUnion("type", { +export const $307: $.Codec = $.taggedUnion("type", { 0: ["propose_bounty", ["value", $58], ["description", $12]], 1: ["approve_bounty", ["bounty_id", $125]], 2: ["propose_curator", ["bounty_id", $125], ["curator", $197], ["fee", $58]], @@ -1793,7 +1801,7 @@ export const $307: $.Codec = $.taggedUnion("type" 8: ["extend_bounty_expiry", ["bounty_id", $125], ["remark", $12]], }) -export const $308: $.Codec = $.taggedUnion("type", { +export const $308: $.Codec = $.taggedUnion("type", { 0: ["add_child_bounty", ["parent_bounty_id", $125], ["value", $58], ["description", $12]], 1: ["propose_curator", ["parent_bounty_id", $125], ["child_bounty_id", $125], ["curator", $197], [ "fee", @@ -1809,7 +1817,7 @@ export const $308: $.Codec = $.taggedUnion( 6: ["close_child_bounty", ["parent_bounty_id", $125], ["child_bounty_id", $125]], }) -export const $309: $.Codec = $.taggedUnion("type", { +export const $309: $.Codec = $.taggedUnion("type", { 0: ["report_awesome", ["reason", $12], ["who", $197]], 1: ["retract_tip", ["hash", $11]], 2: ["tip_new", ["reason", $12], ["who", $197], ["tip_value", $58]], @@ -1818,745 +1826,746 @@ export const $309: $.Codec = $.taggedUnion("type", { 5: ["slash_tip", ["hash", $11]], }) -export const $315: $.Codec> = $.compact($80) +export const $315: $.Codec> = $.compact($80) -export const $314: $.Codec<[t.Compact, t.Compact]> = $.tuple($125, $315) +export const $314: $.Codec<[t.Compact, t.Compact]> = $.tuple($125, $315) -export const $313: $.Codec, t.Compact]>> = $.array($314) +export const $313: $.Codec, t.Compact]>> = $.array($314) -export const $320: $.Codec = $80 +export const $320: $.Codec = $80 -export const $319: $.Codec> = $.compact($320) +export const $319: $.Codec> = $.compact($320) -export const $318: $.Codec<[t.Compact, t.Compact]> = $ - .tuple($315, $319) +export const $318: $.Codec< + [t.Compact, t.Compact] +> = $.tuple($315, $319) export const $317: $.Codec< [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, + t.Compact, + [t.Compact, t.Compact], + t.Compact, ] > = $.tuple($125, $318, $315) export const $316: $.Codec< Array< [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, + t.Compact, + [t.Compact, t.Compact], + t.Compact, ] > > = $.array($317) export const $323: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 2) export const $322: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $323, $315) export const $321: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($322) export const $326: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 3) export const $325: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $326, $315) export const $324: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($325) export const $329: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 4) export const $328: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $329, $315) export const $327: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($328) export const $332: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 5) export const $331: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $332, $315) export const $330: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($331) export const $335: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 6) export const $334: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $335, $315) export const $333: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($334) export const $338: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 7) export const $337: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $338, $315) export const $336: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($337) export const $341: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 8) export const $340: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $341, $315) export const $339: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($340) export const $344: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 9) export const $343: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $344, $315) export const $342: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($343) export const $347: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 10) export const $346: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $347, $315) export const $345: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($346) export const $350: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 11) export const $349: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $350, $315) export const $348: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($349) export const $353: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 12) export const $352: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $353, $315) export const $351: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($352) export const $356: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 13) export const $355: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $356, $315) export const $354: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($355) export const $359: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 14) export const $358: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $359, $315) export const $357: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($358) export const $362: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 15) export const $361: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $362, $315) export const $360: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($361) -export const $312: $.Codec = $.object( +export const $312: $.Codec = $.object( ["votes1", $313], ["votes2", $316], ["votes3", $321], @@ -2575,64 +2584,64 @@ export const $312: $.Codec = $.object( ["votes16", $360], ) -export const $311: $.Codec = $.object( +export const $311: $.Codec = $.object( ["solution", $312], ["score", $88], ["round", $4], ) -export const $363: $.Codec = $ +export const $363: $.Codec = $ .object(["voters", $125], ["targets", $125]) -export const $364: $.Codec = $.option($88) +export const $364: $.Codec = $.option($88) -export const $367: $.Codec = $.object(["total", $6], ["voters", $68]) +export const $367: $.Codec = $.object(["total", $6], [ + "voters", + $68, +]) -export const $366: $.Codec<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> = $.tuple( - $0, - $367, -) +export const $366: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support] +> = $.tuple($0, $367) -export const $365: $.Codec> = $ - .array($366) +export const $365: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> +> = $.array($366) -export const $310: $.Codec = $.taggedUnion( - "type", - { +export const $310: $.Codec = $ + .taggedUnion("type", { 0: ["submit_unsigned", ["raw_solution", $311], ["witness", $363]], 1: ["set_minimum_untrusted_score", ["maybe_next_score", $364]], 2: ["set_emergency_election_result", ["supports", $365]], 3: ["submit", ["raw_solution", $311]], 4: ["governance_fallback", ["maybe_max_voters", $236], ["maybe_max_targets", $236]], - }, -) + }) -export const $368: $.Codec = $.taggedUnion("type", { +export const $368: $.Codec = $.taggedUnion("type", { 0: ["rebag", ["dislocated", $197]], 1: ["put_in_front_of", ["lighter", $197]], }) -export const $370: $.Codec = $.taggedUnion("type", { +export const $370: $.Codec = $.taggedUnion("type", { 0: ["FreeBalance", ["value", $6]], 1: ["Rewards"], }) -export const $371: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $6]], - 2: ["Remove"], -}) +export const $371: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $6]], 2: ["Remove"] }, +) -export const $372: $.Codec = $.taggedUnion("type", { +export const $372: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $4]], 2: ["Remove"], }) -export const $373: $.Codec = $ - .taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $0]], 2: ["Remove"] }) +export const $373: $.Codec = + $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $0]], 2: ["Remove"] }) -export const $369: $.Codec = $.taggedUnion("type", { +export const $369: $.Codec = $.taggedUnion("type", { 0: ["join", ["amount", $58], ["pool_id", $4]], 1: ["bond_extra", ["extra", $370]], 2: ["claim_payout"], @@ -2654,15 +2663,14 @@ export const $369: $.Codec = $.taggedUnio 12: ["chill", ["pool_id", $4]], }) -export const $374: $.Codec = $.taggedUnion("type", { +export const $374: $.Codec = $.taggedUnion("type", { 0: ["register_fast_unstake"], 1: ["deregister"], 2: ["control", ["unchecked_eras_to_check", $4]], }) -export const $375: $.Codec = $.taggedUnion( - "type", - { +export const $375: $.Codec = $ + .taggedUnion("type", { 0: ["set_validation_upgrade_cooldown", ["new", $4]], 1: ["set_validation_upgrade_delay", ["new", $4]], 2: ["set_code_retention_period", ["new", $4]], @@ -2708,43 +2716,45 @@ export const $375: $.Codec = $.never +export const $376: $.Codec = $.never -export const $377: $.Codec = $.never +export const $377: $.Codec = $.never export const $383: $.Codec<$.BitSequence> = $.bitSequence -export const $382: $.Codec = $383 +export const $382: $.Codec = $383 -export const $385: $.Codec = $4 +export const $385: $.Codec = $4 -export const $386: $.Codec = $101 +export const $386: $.Codec = $101 -export const $381: $.Codec = $.object( +export const $381: $.Codec = $.object( ["payload", $382], ["validator_index", $385], ["signature", $386], ) -export const $380: $.Codec> = $.array($381) +export const $380: $.Codec> = $.array( + $381, +) -export const $392: $.Codec = $.object([ +export const $392: $.Codec = $.object([ "recipient", $98, ], ["data", $12]) -export const $391: $.Codec> = $.array($392) +export const $391: $.Codec> = $.array( + $392, +) -export const $394: $.Codec = $12 +export const $394: $.Codec = $12 -export const $393: $.Codec = $.option( - $394, -) +export const $393: $.Codec = $ + .option($394) -export const $390: $.Codec = $.object( +export const $390: $.Codec = $.object( ["upward_messages", $164], ["horizontal_messages", $391], ["new_validation_code", $393], @@ -2753,89 +2763,90 @@ export const $390: $.Codec = $.ob ["hrmp_watermark", $4], ) -export const $389: $.Codec = $.object([ +export const $389: $.Codec = $.object([ "descriptor", $97, ], ["commitments", $390]) -export const $396: $.Codec = $.taggedUnion("type", { - 1: ["Implicit", ["value", $386]], - 2: ["Explicit", ["value", $386]], -}) +export const $396: $.Codec = $.taggedUnion( + "type", + { 1: ["Implicit", ["value", $386]], 2: ["Explicit", ["value", $386]] }, +) -export const $395: $.Codec> = $.array($396) +export const $395: $.Codec> = $.array( + $396, +) -export const $388: $.Codec = $.object( +export const $388: $.Codec = $.object( ["candidate", $389], ["validity_votes", $395], ["validator_indices", $383], ) -export const $387: $.Codec> = $.array($388) +export const $387: $.Codec> = $.array($388) -export const $402: $.Codec = $.taggedUnion( - "type", - { +export const $402: $.Codec = $ + .taggedUnion("type", { 0: ["Explicit"], 1: ["BackingSeconded", ["value", $11]], 2: ["BackingValid", ["value", $11]], 3: ["ApprovalChecking"], - }, -) + }) -export const $403: $.Codec = $.stringUnion({ - 0: "Explicit", -}) +export const $403: $.Codec = $ + .stringUnion({ 0: "Explicit" }) -export const $401: $.Codec = $.taggedUnion("type", { - 0: ["Valid", ["value", $402]], - 1: ["Invalid", ["value", $403]], -}) +export const $401: $.Codec = $.taggedUnion( + "type", + { 0: ["Valid", ["value", $402]], 1: ["Invalid", ["value", $403]] }, +) export const $400: $.Codec< [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, ] > = $.tuple($401, $385, $386) export const $399: $.Codec< Array< [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, ] > > = $.array($400) -export const $398: $.Codec = $.object( +export const $398: $.Codec = $.object( ["candidate_hash", $114], ["session", $4], ["statements", $399], ) -export const $397: $.Codec> = $.array($398) +export const $397: $.Codec> = $.array( + $398, +) -export const $379: $.Codec = $.object( +export const $379: $.Codec = $.object( ["bitfields", $380], ["backed_candidates", $387], ["disputes", $397], ["parent_header", $187], ) -export const $378: $.Codec = $ +export const $378: $.Codec = $ .taggedUnion("type", { 0: ["enter", ["data", $379]] }) -export const $405: $.Codec = $.object( +export const $405: $.Codec = $.object( ["accept", $43], ["subject", $103], ["session_index", $4], ["validator_index", $385], ) -export const $404: $.Codec = $.taggedUnion( +export const $404: $.Codec = $.taggedUnion( "type", { 0: ["force_set_current_code", ["para", $98], ["new_code", $394]], @@ -2852,41 +2863,41 @@ export const $404: $.Codec = $. }, ) -export const $406: $.Codec = $.taggedUnion( - "type", - { 0: ["force_approve", ["up_to", $4]] }, -) +export const $406: $.Codec = $ + .taggedUnion("type", { 0: ["force_approve", ["up_to", $4]] }) -export const $407: $.Codec = $.never +export const $407: $.Codec = $.never -export const $408: $.Codec = $.taggedUnion("type", { - 0: ["service_overweight", ["index", $10], ["weight_limit", $8]], -}) - -export const $409: $.Codec = $.taggedUnion("type", { - 0: ["hrmp_init_open_channel", ["recipient", $98], ["proposed_max_capacity", $4], [ - "proposed_max_message_size", - $4, - ]], - 1: ["hrmp_accept_open_channel", ["sender", $98]], - 2: ["hrmp_close_channel", ["channel_id", $112]], - 3: ["force_clean_hrmp", ["para", $98], ["inbound", $4], ["outbound", $4]], - 4: ["force_process_hrmp_open", ["channels", $4]], - 5: ["force_process_hrmp_close", ["channels", $4]], - 6: ["hrmp_cancel_open_request", ["channel_id", $112], ["open_requests", $4]], - 7: ["force_open_hrmp_channel", ["sender", $98], ["recipient", $98], ["max_capacity", $4], [ - "max_message_size", - $4, - ]], -}) - -export const $410: $.Codec = $.stringUnion({ - 0: "force_unfreeze", -}) +export const $408: $.Codec = $.taggedUnion( + "type", + { 0: ["service_overweight", ["index", $10], ["weight_limit", $8]] }, +) -export const $411: $.Codec = $.taggedUnion( +export const $409: $.Codec = $.taggedUnion( "type", { + 0: ["hrmp_init_open_channel", ["recipient", $98], ["proposed_max_capacity", $4], [ + "proposed_max_message_size", + $4, + ]], + 1: ["hrmp_accept_open_channel", ["sender", $98]], + 2: ["hrmp_close_channel", ["channel_id", $112]], + 3: ["force_clean_hrmp", ["para", $98], ["inbound", $4], ["outbound", $4]], + 4: ["force_process_hrmp_open", ["channels", $4]], + 5: ["force_process_hrmp_close", ["channels", $4]], + 6: ["hrmp_cancel_open_request", ["channel_id", $112], ["open_requests", $4]], + 7: ["force_open_hrmp_channel", ["sender", $98], ["recipient", $98], ["max_capacity", $4], [ + "max_message_size", + $4, + ]], + }, +) + +export const $410: $.Codec = $ + .stringUnion({ 0: "force_unfreeze" }) + +export const $411: $.Codec = $ + .taggedUnion("type", { 0: ["register", ["id", $98], ["genesis_head", $104], ["validation_code", $394]], 1: ["force_register", ["who", $0], ["deposit", $6], ["id", $98], ["genesis_head", $104], [ "validation_code", @@ -2899,52 +2910,57 @@ export const $411: $.Codec = $.taggedUnion( + "type", + { + 0: ["force_lease", ["para", $98], ["leaser", $0], ["amount", $6], ["period_begin", $4], [ + "period_count", + $4, + ]], + 1: ["clear_all_leases", ["para", $98]], + 2: ["trigger_onboard", ["para", $98]], }, ) -export const $412: $.Codec = $.taggedUnion("type", { - 0: ["force_lease", ["para", $98], ["leaser", $0], ["amount", $6], ["period_begin", $4], [ - "period_count", - $4, - ]], - 1: ["clear_all_leases", ["para", $98]], - 2: ["trigger_onboard", ["para", $98]], -}) - -export const $414: $.Codec> = $.compact($98) +export const $414: $.Codec> = $.compact($98) -export const $413: $.Codec = $.taggedUnion("type", { - 0: ["new_auction", ["duration", $125], ["lease_period_index", $125]], - 1: ["bid", ["para", $414], ["auction_index", $125], ["first_slot", $125], ["last_slot", $125], [ - "amount", - $58, - ]], - 2: ["cancel_auction"], -}) +export const $413: $.Codec = $.taggedUnion( + "type", + { + 0: ["new_auction", ["duration", $125], ["lease_period_index", $125]], + 1: ["bid", ["para", $414], ["auction_index", $125], ["first_slot", $125], ["last_slot", $125], [ + "amount", + $58, + ]], + 2: ["cancel_auction"], + }, +) export const $419: $.Codec = $.sizedUint8Array(33) -export const $418: $.Codec = $419 +export const $418: $.Codec = $419 -export const $417: $.Codec = $.taggedUnion("type", { +export const $417: $.Codec = $.taggedUnion("type", { 0: ["Ed25519", ["value", $51]], 1: ["Sr25519", ["value", $54]], 2: ["Ecdsa", ["value", $418]], }) -export const $416: $.Codec = $.option($417) +export const $416: $.Codec = $.option($417) -export const $422: $.Codec = $247 +export const $422: $.Codec = $247 -export const $421: $.Codec = $.taggedUnion("type", { +export const $421: $.Codec = $.taggedUnion("type", { 0: ["Ed25519", ["value", $222]], 1: ["Sr25519", ["value", $101]], 2: ["Ecdsa", ["value", $422]], }) -export const $420: $.Codec = $.option($421) +export const $420: $.Codec = $.option($421) -export const $415: $.Codec = $.taggedUnion( +export const $415: $.Codec = $.taggedUnion( "type", { 0: ["create", ["index", $414], ["cap", $58], ["first_period", $125], ["last_period", $125], [ @@ -2965,9 +2981,9 @@ export const $415: $.Codec = $. }, ) -export const $428: $.Codec> = $.array($.deferred(() => $425)) +export const $428: $.Codec> = $.array($.deferred(() => $425)) -export const $427: $.Codec = $.taggedUnion("type", { +export const $427: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["DepositAsset", ["assets", $151], ["dest", $153]], 2: ["DepositReserveAsset", ["assets", $151], ["dest", $153], ["effects", $.deferred(() => $426)]], @@ -2984,13 +3000,13 @@ export const $427: $.Codec = $.taggedUnion("type", { ]], }) -export const $426: $.Codec> = $.array($427) +export const $426: $.Codec> = $.array($427) -export const $429: $.Codec = $.taggedUnion("type", { +export const $429: $.Codec = $.taggedUnion("type", { 0: ["Assets", ["value", $151]], }) -export const $425: $.Codec = $.taggedUnion("type", { +export const $425: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $151], ["effects", $426]], 1: ["ReserveAssetDeposit", ["assets", $151], ["effects", $426]], 2: ["TeleportAsset", ["assets", $151], ["effects", $426]], @@ -3007,9 +3023,9 @@ export const $425: $.Codec = $.taggedUnion("type", { 10: ["RelayedFrom", ["who", $153], ["message", $.deferred(() => $425)]], }) -export const $433: $.Codec> = $.array($.deferred(() => $430)) +export const $433: $.Codec> = $.array($.deferred(() => $430)) -export const $432: $.Codec = $.taggedUnion("type", { +export const $432: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["DepositAsset", ["assets", $145], ["max_assets", $4], ["beneficiary", $122]], 2: ["DepositReserveAsset", ["assets", $145], ["max_assets", $4], ["dest", $122], [ @@ -3029,14 +3045,14 @@ export const $432: $.Codec = $.taggedUnion("type", { ]], }) -export const $431: $.Codec> = $.array($432) +export const $431: $.Codec> = $.array($432) -export const $434: $.Codec = $.taggedUnion("type", { +export const $434: $.Codec = $.taggedUnion("type", { 0: ["Assets", ["value", $133]], 1: ["Version", ["value", $4]], }) -export const $430: $.Codec = $.taggedUnion("type", { +export const $430: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $133], ["effects", $431]], 1: ["ReserveAssetDeposited", ["assets", $133], ["effects", $431]], 2: ["ReceiveTeleportedAsset", ["assets", $133], ["effects", $431]], @@ -3055,15 +3071,15 @@ export const $430: $.Codec = $.taggedUnion("type", { 12: ["UnsubscribeVersion"], }) -export const $424: $.Codec = $.taggedUnion("type", { +export const $424: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $425]], 1: ["V1", ["value", $430]], 2: ["V2", ["value", $130]], }) -export const $439: $.Codec> = $.array($.deferred(() => $436)) +export const $439: $.Codec> = $.array($.deferred(() => $436)) -export const $438: $.Codec = $.taggedUnion("type", { +export const $438: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["DepositAsset", ["assets", $151], ["dest", $153]], 2: ["DepositReserveAsset", ["assets", $151], ["dest", $153], ["effects", $426]], @@ -3077,11 +3093,11 @@ export const $438: $.Codec = $.taggedUnion("type", { ]], }) -export const $437: $.Codec> = $.array($438) +export const $437: $.Codec> = $.array($438) export const $440: $.Codec<{ encoded: Uint8Array }> = $.object(["encoded", $12]) -export const $436: $.Codec = $.taggedUnion("type", { +export const $436: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $151], ["effects", $437]], 1: ["ReserveAssetDeposit", ["assets", $151], ["effects", $437]], 2: ["TeleportAsset", ["assets", $151], ["effects", $437]], @@ -3098,9 +3114,9 @@ export const $436: $.Codec = $.taggedUnion("type", { 10: ["RelayedFrom", ["who", $153], ["message", $.deferred(() => $436)]], }) -export const $444: $.Codec> = $.array($.deferred(() => $441)) +export const $444: $.Codec> = $.array($.deferred(() => $441)) -export const $443: $.Codec = $.taggedUnion("type", { +export const $443: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["DepositAsset", ["assets", $145], ["max_assets", $4], ["beneficiary", $122]], 2: ["DepositReserveAsset", ["assets", $145], ["max_assets", $4], ["dest", $122], [ @@ -3117,9 +3133,9 @@ export const $443: $.Codec = $.taggedUnion("type", { ]], }) -export const $442: $.Codec> = $.array($443) +export const $442: $.Codec> = $.array($443) -export const $441: $.Codec = $.taggedUnion("type", { +export const $441: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $133], ["effects", $442]], 1: ["ReserveAssetDeposited", ["assets", $133], ["effects", $442]], 2: ["ReceiveTeleportedAsset", ["assets", $133], ["effects", $442]], @@ -3138,7 +3154,7 @@ export const $441: $.Codec = $.taggedUnion("type", { 12: ["UnsubscribeVersion"], }) -export const $447: $.Codec = $.taggedUnion("type", { +export const $447: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["value", $133]], 1: ["ReserveAssetDeposited", ["value", $133]], 2: ["ReceiveTeleportedAsset", ["value", $133]], @@ -3178,17 +3194,17 @@ export const $447: $.Codec = $.taggedUnion("type", { 27: ["UnsubscribeVersion"], }) -export const $446: $.Codec> = $.array($447) +export const $446: $.Codec> = $.array($447) -export const $445: $.Codec> = $446 +export const $445: $.Codec> = $446 -export const $435: $.Codec = $.taggedUnion("type", { +export const $435: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $436]], 1: ["V1", ["value", $441]], 2: ["V2", ["value", $445]], }) -export const $423: $.Codec = $.taggedUnion("type", { +export const $423: $.Codec = $.taggedUnion("type", { 0: ["send", ["dest", $155], ["message", $424]], 1: ["teleport_assets", ["dest", $155], ["beneficiary", $155], ["assets", $150], [ "fee_asset_item", @@ -3213,7 +3229,7 @@ export const $423: $.Codec = $.taggedUnion("type", { ], ["weight_limit", $148]], }) -export const $181: $.Codec = $.taggedUnion("type", { +export const $181: $.Codec = $.taggedUnion("type", { 0: ["System", ["value", $161]], 1: ["Scheduler", ["value", $182]], 10: ["Preimage", ["value", $184]], @@ -3262,9 +3278,9 @@ export const $181: $.Codec = $.taggedUnion("type 99: ["XcmPallet", ["value", $423]], }) -export const $188: $.Codec = C.$null +export const $188: $.Codec = C.$null -export const $301: $.Codec = $.stringUnion({ +export const $301: $.Codec = $.stringUnion({ 1: "Display", 2: "Legal", 4: "Web", @@ -3275,9 +3291,9 @@ export const $301: $.Codec = $.stringUnio 128: "Twitter", }) -export const $384: $.Codec = C.$null +export const $384: $.Codec = C.$null -export const $450: $.Codec = $.stringUnion({ +export const $450: $.Codec = $.stringUnion({ 0: "FailedToSchedule", 1: "NotFound", 2: "TargetBlockNumberInPast", @@ -3285,18 +3301,19 @@ export const $450: $.Codec = $.stringUnion({ 4: "Named", }) -export const $452: $.Codec<[t.sp_core.crypto.AccountId32, t.u128] | undefined> = $.option($69) +export const $452: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128] | undefined> = $ + .option($69) -export const $451: $.Codec = $.taggedUnion("type", { +export const $451: $.Codec = $.taggedUnion("type", { 0: ["Unrequested", ["deposit", $69], ["len", $4]], 1: ["Requested", ["deposit", $452], ["count", $4], ["len", $236]], }) -export const $453: $.Codec<[t.primitive_types.H256, t.u32]> = $.tuple($11, $4) +export const $453: $.Codec<[t.types.primitive_types.H256, t.types.u32]> = $.tuple($11, $4) export const $454: $.Codec = $12 -export const $455: $.Codec = $.stringUnion({ +export const $455: $.Codec = $.stringUnion({ 0: "TooBig", 1: "AlreadyNoted", 2: "NotAuthorized", @@ -3305,58 +3322,69 @@ export const $455: $.Codec = $.stringUnion({ 5: "NotRequested", }) -export const $457: $.Codec<[t.sp_consensus_babe.app.Public, t.u64]> = $.tuple($189, $10) +export const $457: $.Codec<[t.types.sp_consensus_babe.app.Public, t.types.u64]> = $.tuple( + $189, + $10, +) -export const $458: $.Codec> = $.array($457) +export const $458: $.Codec> = $.array( + $457, +) -export const $456: $.Codec> = $458 +export const $456: $.Codec> = $458 export const $460: $.Codec> = $.array($1) export const $459: $.Codec> = $460 -export const $463: $.Codec = $.object( +export const $463: $.Codec = $.object( ["authority_index", $4], ["slot", $190], ["vrf_output", $1], ["vrf_proof", $102], ) -export const $464: $.Codec = $.object([ +export const $464: $.Codec = $.object([ "authority_index", $4, ], ["slot", $190]) -export const $465: $.Codec = $.object( +export const $465: $.Codec = $.object( ["authority_index", $4], ["slot", $190], ["vrf_output", $1], ["vrf_proof", $102], ) -export const $462: $.Codec = $.taggedUnion("type", { +export const $462: $.Codec = $.taggedUnion("type", { 1: ["Primary", ["value", $463]], 2: ["SecondaryPlain", ["value", $464]], 3: ["SecondaryVRF", ["value", $465]], }) -export const $461: $.Codec = $.option($462) +export const $461: $.Codec = $.option( + $462, +) -export const $466: $.Codec = $.object(["c", $193], [ - "allowed_slots", - $194, -]) +export const $466: $.Codec = $.object( + ["c", $193], + ["allowed_slots", $194], +) -export const $467: $.Codec = $.stringUnion({ +export const $467: $.Codec = $.stringUnion({ 0: "InvalidEquivocationProof", 1: "InvalidKeyOwnershipProof", 2: "DuplicateOffenceReport", 3: "InvalidConfiguration", }) -export const $468: $.Codec<[t.sp_core.crypto.AccountId32, t.u128, boolean]> = $.tuple($0, $6, $43) +export const $468: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128, boolean]> = $.tuple( + $0, + $6, + $43, +) -export const $469: $.Codec = $.stringUnion({ +export const $469: $.Codec = $.stringUnion({ 0: "NotAssigned", 1: "NotOwner", 2: "InUse", @@ -3364,33 +3392,36 @@ export const $469: $.Codec = $.stringUnion({ 4: "Permanent", }) -export const $472: $.Codec = $.stringUnion({ +export const $472: $.Codec = $.stringUnion({ 0: "Fee", 1: "Misc", 2: "All", }) -export const $471: $.Codec = $.object(["id", $139], ["amount", $6], [ - "reasons", - $472, -]) +export const $471: $.Codec = $.object(["id", $139], [ + "amount", + $6, +], ["reasons", $472]) -export const $473: $.Codec> = $.array($471) +export const $473: $.Codec> = $.array($471) -export const $470: $.Codec> = $473 +export const $470: $.Codec> = $473 -export const $475: $.Codec = $.object(["id", $139], ["amount", $6]) +export const $475: $.Codec = $.object(["id", $139], [ + "amount", + $6, +]) -export const $476: $.Codec> = $.array($475) +export const $476: $.Codec> = $.array($475) -export const $474: $.Codec> = $476 +export const $474: $.Codec> = $476 -export const $477: $.Codec = $.stringUnion({ +export const $477: $.Codec = $.stringUnion({ 0: "V1_0_0", 1: "V2_0_0", }) -export const $478: $.Codec = $.stringUnion({ +export const $478: $.Codec = $.stringUnion({ 0: "VestingBalance", 1: "LiquidityRestrictions", 2: "InsufficientBalance", @@ -3401,23 +3432,23 @@ export const $478: $.Codec = $.stringUnion({ 7: "TooManyReserves", }) -export const $479: $.Codec = $6 +export const $479: $.Codec = $6 -export const $480: $.Codec = $.stringUnion({ +export const $480: $.Codec = $.stringUnion({ 0: "V1Ancient", 1: "V2", }) -export const $482: $.Codec = $.taggedUnion("type", { +export const $482: $.Codec = $.taggedUnion("type", { 0: ["InclusionHeight", ["value", $4]], 1: ["Uncle", ["value", $.tuple($11, $92)]], }) -export const $483: $.Codec> = $.array($482) +export const $483: $.Codec> = $.array($482) -export const $481: $.Codec> = $483 +export const $481: $.Codec> = $483 -export const $484: $.Codec = $.stringUnion({ +export const $484: $.Codec = $.stringUnion({ 0: "InvalidUncleParent", 1: "UnclesAlreadySet", 2: "TooManyUncles", @@ -3427,15 +3458,18 @@ export const $484: $.Codec = $.stringUnion({ 6: "OldUncle", }) -export const $487: $.Codec = $.object(["value", $58], ["era", $125]) +export const $487: $.Codec = $.object(["value", $58], [ + "era", + $125, +]) -export const $488: $.Codec> = $.array($487) +export const $488: $.Codec> = $.array($487) -export const $486: $.Codec> = $488 +export const $486: $.Codec> = $488 -export const $489: $.Codec> = $94 +export const $489: $.Codec> = $94 -export const $485: $.Codec = $.object( +export const $485: $.Codec = $.object( ["stash", $0], ["total", $58], ["active", $58], @@ -3443,41 +3477,43 @@ export const $485: $.Codec = $.object( ["claimed_rewards", $489], ) -export const $491: $.Codec> = $206 +export const $491: $.Codec> = $206 -export const $490: $.Codec = $.object(["targets", $491], [ +export const $490: $.Codec = $.object(["targets", $491], [ "submitted_in", $4, ], ["suppressed", $43]) -export const $493: $.Codec = $.option($10) +export const $493: $.Codec = $.option($10) -export const $492: $.Codec = $.object(["index", $4], [ +export const $492: $.Codec = $.object(["index", $4], [ "start", $493, ]) -export const $494: $.Codec<[t.u32, t.sp_core.crypto.AccountId32]> = $.tuple($4, $0) +export const $494: $.Codec<[t.types.u32, t.types.sp_core.crypto.AccountId32]> = $.tuple($4, $0) -export const $496: $.Codec> = $.map($0, $4) +export const $496: $.Codec> = $.map($0, $4) -export const $495: $.Codec = $.object(["total", $4], [ +export const $495: $.Codec = $.object(["total", $4], [ "individual", $496, ]) -export const $498: $.Codec<[t.sp_core.crypto.AccountId32, t.u32]> = $.tuple($0, $4) +export const $498: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u32]> = $.tuple($0, $4) -export const $497: $.Codec> = $.array($498) +export const $497: $.Codec> = $.array( + $498, +) -export const $499: $.Codec = $.stringUnion({ +export const $499: $.Codec = $.stringUnion({ 0: "NotForcing", 1: "ForceNew", 2: "ForceNone", 3: "ForceAlways", }) -export const $501: $.Codec = $.object( +export const $501: $.Codec = $.object( ["validator", $0], ["own", $6], ["others", $68], @@ -3485,27 +3521,30 @@ export const $501: $.Codec = $.object( ["payout", $6], ) -export const $500: $.Codec> = $.array($501) +export const $500: $.Codec> = $.array($501) -export const $502: $.Codec<[t.sp_arithmetic.per_things.Perbill, t.u128]> = $.tuple($42, $6) +export const $502: $.Codec<[t.types.sp_arithmetic.per_things.Perbill, t.types.u128]> = $.tuple( + $42, + $6, +) -export const $503: $.Codec = $.object( +export const $503: $.Codec = $.object( ["span_index", $4], ["last_start", $4], ["last_nonzero_slash", $4], ["prior", $94], ) -export const $504: $.Codec = $.object(["slashed", $6], [ +export const $504: $.Codec = $.object(["slashed", $6], [ "paid_out", $6, ]) -export const $506: $.Codec<[t.u32, boolean]> = $.tuple($4, $43) +export const $506: $.Codec<[t.types.u32, boolean]> = $.tuple($4, $43) -export const $505: $.Codec> = $.array($506) +export const $505: $.Codec> = $.array($506) -export const $507: $.Codec = $.stringUnion({ +export const $507: $.Codec = $.stringUnion({ 0: "V1_0_0Ancient", 1: "V2_0_0", 2: "V3_0_0", @@ -3520,7 +3559,7 @@ export const $507: $.Codec = $.stringUnion({ 11: "V12_0_0", }) -export const $508: $.Codec = $.stringUnion({ +export const $508: $.Codec = $.stringUnion({ 0: "NotController", 1: "NotStash", 2: "AlreadyBonded", @@ -3548,24 +3587,26 @@ export const $508: $.Codec = $.stringUnion 24: "BoundNotMet", }) -export const $509: $.Codec = $.object(["offender", $56], [ - "reporters", - $206, -]) +export const $509: $.Codec = $.object( + ["offender", $56], + ["reporters", $206], +) export const $510: $.Codec<[Uint8Array, Uint8Array]> = $.tuple($45, $12) -export const $512: $.Codec<[t.sp_core.crypto.AccountId32, t.polkadot_runtime.SessionKeys]> = $ - .tuple($0, $212) +export const $512: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_runtime.SessionKeys] +> = $.tuple($0, $212) -export const $511: $.Codec> = - $.array($512) +export const $511: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.polkadot_runtime.SessionKeys]> +> = $.array($512) -export const $514: $.Codec = $16 +export const $514: $.Codec = $16 -export const $513: $.Codec<[t.sp_core.crypto.KeyTypeId, Uint8Array]> = $.tuple($514, $12) +export const $513: $.Codec<[t.types.sp_core.crypto.KeyTypeId, Uint8Array]> = $.tuple($514, $12) -export const $515: $.Codec = $.stringUnion({ +export const $515: $.Codec = $.stringUnion({ 0: "InvalidProof", 1: "NoAssociatedValidatorId", 2: "DuplicatedKey", @@ -3573,23 +3614,23 @@ export const $515: $.Codec = $.stringUnion({ 4: "NoAccount", }) -export const $516: $.Codec = $.taggedUnion("type", { +export const $516: $.Codec = $.taggedUnion("type", { 0: ["Live"], 1: ["PendingPause", ["scheduled_at", $4], ["delay", $4]], 2: ["Paused"], 3: ["PendingResume", ["scheduled_at", $4], ["delay", $4]], }) -export const $518: $.Codec> = $48 +export const $518: $.Codec> = $48 -export const $517: $.Codec = $.object( +export const $517: $.Codec = $.object( ["scheduled_at", $4], ["delay", $4], ["next_authorities", $518], ["forced", $236], ) -export const $519: $.Codec = $.stringUnion({ +export const $519: $.Codec = $.stringUnion({ 0: "PauseFailed", 1: "ResumeFailed", 2: "ChangePending", @@ -3599,9 +3640,11 @@ export const $519: $.Codec = $.stringUnion({ 6: "DuplicateOffenceReport", }) -export const $521: $.Codec> = $.array($53) +export const $521: $.Codec> = $.array( + $53, +) -export const $520: $.Codec> = $521 +export const $520: $.Codec> = $521 export const $524: $.Codec = $12 @@ -3609,40 +3652,57 @@ export const $526: $.Codec> = $.array($524) export const $525: $.Codec> = $526 -export const $523: $.Codec = $.object([ +export const $523: $.Codec = $.object([ "peer_id", $524, ], ["external_addresses", $525]) -export const $522: $.Codec = $.lenPrefixed($523) +export const $522: $.Codec = $.lenPrefixed( + $523, +) -export const $527: $.Codec = $.stringUnion({ +export const $527: $.Codec = $.stringUnion({ 0: "InvalidKey", 1: "DuplicatedHeartbeat", }) export const $529: $.Codec< - [t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32] + [t.types.u32, t.types.frame_support.traits.preimages.Bounded, t.types.sp_core.crypto.AccountId32] > = $.tuple($4, $180, $0) export const $530: $.Codec< - Array<[t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32]> + Array< + [ + t.types.u32, + t.types.frame_support.traits.preimages.Bounded, + t.types.sp_core.crypto.AccountId32, + ] + > > = $.array($529) export const $528: $.Codec< - Array<[t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32]> + Array< + [ + t.types.u32, + t.types.frame_support.traits.preimages.Bounded, + t.types.sp_core.crypto.AccountId32, + ] + > > = $530 -export const $532: $.Codec> = $206 +export const $532: $.Codec> = $206 -export const $531: $.Codec<[Array, t.u128]> = $.tuple($532, $6) +export const $531: $.Codec<[Array, t.types.u128]> = $.tuple( + $532, + $6, +) -export const $535: $.Codec = $.object(["ayes", $6], ["nays", $6], [ - "turnout", +export const $535: $.Codec = $.object(["ayes", $6], [ + "nays", $6, -]) +], ["turnout", $6]) -export const $534: $.Codec = $.object( +export const $534: $.Codec = $.object( ["end", $4], ["proposal", $180], ["threshold", $62], @@ -3650,25 +3710,29 @@ export const $534: $.Codec = $.object ["tally", $535], ) -export const $533: $.Codec = $.taggedUnion("type", { +export const $533: $.Codec = $.taggedUnion("type", { 0: ["Ongoing", ["value", $534]], 1: ["Finished", ["approved", $43], ["end", $4]], }) -export const $538: $.Codec<[t.u32, t.pallet_democracy.vote.AccountVote]> = $.tuple($4, $63) +export const $538: $.Codec<[t.types.u32, t.types.pallet_democracy.vote.AccountVote]> = $.tuple( + $4, + $63, +) -export const $539: $.Codec> = $.array($538) +export const $539: $.Codec> = $ + .array($538) -export const $537: $.Codec> = $539 +export const $537: $.Codec> = $539 -export const $540: $.Codec = $.object(["votes", $6], [ +export const $540: $.Codec = $.object(["votes", $6], [ "capital", $6, ]) -export const $541: $.Codec = $.tuple($4, $6) +export const $541: $.Codec = $.tuple($4, $6) -export const $536: $.Codec = $.taggedUnion("type", { +export const $536: $.Codec = $.taggedUnion("type", { 0: ["Direct", ["votes", $537], ["delegations", $540], ["prior", $541]], 1: ["Delegating", ["balance", $6], ["target", $0], ["conviction", $235], ["delegations", $540], [ "prior", @@ -3677,12 +3741,18 @@ export const $536: $.Codec = $.taggedUnion("type }) export const $542: $.Codec< - [t.frame_support.traits.preimages.Bounded, t.pallet_democracy.vote_threshold.VoteThreshold] + [ + t.types.frame_support.traits.preimages.Bounded, + t.types.pallet_democracy.vote_threshold.VoteThreshold, + ] > = $.tuple($180, $62) -export const $543: $.Codec<[t.u32, Array]> = $.tuple($4, $532) +export const $543: $.Codec<[t.types.u32, Array]> = $.tuple( + $4, + $532, +) -export const $544: $.Codec = $.stringUnion({ +export const $544: $.Codec = $.stringUnion({ 0: "ValueLow", 1: "ProposalMissing", 2: "AlreadyCanceled", @@ -3708,9 +3778,9 @@ export const $544: $.Codec = $.stringUnion({ 22: "VotingPeriodLow", }) -export const $545: $.Codec> = $157 +export const $545: $.Codec> = $157 -export const $546: $.Codec = $.object( +export const $546: $.Codec = $.object( ["index", $4], ["threshold", $4], ["ayes", $206], @@ -3718,7 +3788,7 @@ export const $546: $.Codec = $.object( ["end", $4], ) -export const $547: $.Codec = $.stringUnion({ +export const $547: $.Codec = $.stringUnion({ 0: "NotMember", 1: "DuplicateProposal", 2: "ProposalMissing", @@ -3731,9 +3801,9 @@ export const $547: $.Codec = $.stringUnion({ 9: "WrongProposalLength", }) -export const $548: $.Codec> = $157 +export const $548: $.Codec> = $157 -export const $549: $.Codec = $.stringUnion({ +export const $549: $.Codec = $.stringUnion({ 0: "NotMember", 1: "DuplicateProposal", 2: "ProposalMissing", @@ -3746,19 +3816,19 @@ export const $549: $.Codec = $.stringUnion({ 9: "WrongProposalLength", }) -export const $551: $.Codec = $.object(["who", $0], [ +export const $551: $.Codec = $.object(["who", $0], [ "stake", $6, ], ["deposit", $6]) -export const $550: $.Codec> = $.array($551) +export const $550: $.Codec> = $.array($551) -export const $552: $.Codec = $.object(["votes", $206], [ +export const $552: $.Codec = $.object(["votes", $206], [ "stake", $6, ], ["deposit", $6]) -export const $553: $.Codec = $.stringUnion({ +export const $553: $.Codec = $.stringUnion({ 0: "UnableToVote", 1: "NoVotes", 2: "TooManyVotes", @@ -3778,28 +3848,30 @@ export const $553: $.Codec = $.stringU 16: "InvalidReplacement", }) -export const $554: $.Codec> = $206 +export const $554: $.Codec> = $206 -export const $555: $.Codec = $.stringUnion({ +export const $555: $.Codec = $.stringUnion({ 0: "AlreadyMember", 1: "NotMember", 2: "TooManyMembers", }) -export const $556: $.Codec = $.object(["proposer", $0], ["value", $6], [ - "beneficiary", - $0, -], ["bond", $6]) +export const $556: $.Codec = $.object( + ["proposer", $0], + ["value", $6], + ["beneficiary", $0], + ["bond", $6], +) -export const $557: $.Codec> = $94 +export const $557: $.Codec> = $94 -export const $558: $.Codec = $4 +export const $558: $.Codec = $4 -export const $559: $.Codec = $.option($6) +export const $559: $.Codec = $.option($6) -export const $560: $.Codec = $139 +export const $560: $.Codec = $139 -export const $561: $.Codec = $.stringUnion({ +export const $561: $.Codec = $.stringUnion({ 0: "InsufficientProposersBalance", 1: "InvalidIndex", 2: "TooManyApprovals", @@ -3807,7 +3879,7 @@ export const $561: $.Codec = $.stringUnion({ 4: "ProposalNotApproved", }) -export const $562: $.Codec = $.stringUnion({ +export const $562: $.Codec = $.stringUnion({ 0: "InvalidEthereumSignature", 1: "SignerHasNoClaim", 2: "SenderHasNoClaim", @@ -3816,13 +3888,13 @@ export const $562: $.Codec = $.st 5: "VestedBalanceExists", }) -export const $564: $.Codec> = $.array($253) +export const $564: $.Codec> = $.array($253) -export const $563: $.Codec> = $564 +export const $563: $.Codec> = $564 -export const $565: $.Codec = $.stringUnion({ 0: "V0", 1: "V1" }) +export const $565: $.Codec = $.stringUnion({ 0: "V0", 1: "V1" }) -export const $566: $.Codec = $.stringUnion({ +export const $566: $.Codec = $.stringUnion({ 0: "NotVesting", 1: "AtMaxVestingSchedules", 2: "AmountLow", @@ -3830,37 +3902,50 @@ export const $566: $.Codec = $.stringUnion({ 4: "InvalidScheduleParams", }) -export const $567: $.Codec = $.stringUnion({ 0: "TooManyCalls" }) - -export const $570: $.Codec<[t.u32, t.pallet_identity.types.Judgement]> = $.tuple($4, $302) +export const $567: $.Codec = $.stringUnion({ + 0: "TooManyCalls", +}) -export const $571: $.Codec> = $.array($570) +export const $570: $.Codec<[t.types.u32, t.types.pallet_identity.types.Judgement]> = $.tuple( + $4, + $302, +) -export const $569: $.Codec> = $571 +export const $571: $.Codec> = $.array( + $570, +) -export const $568: $.Codec = $.object(["judgements", $569], [ - "deposit", - $6, -], ["info", $264]) +export const $569: $.Codec> = $571 -export const $573: $.Codec> = $206 +export const $568: $.Codec = $.object( + ["judgements", $569], + ["deposit", $6], + ["info", $264], +) -export const $572: $.Codec<[t.u128, Array]> = $.tuple($6, $573) +export const $573: $.Codec> = $206 -export const $576: $.Codec = $.object(["account", $0], [ - "fee", +export const $572: $.Codec<[t.types.u128, Array]> = $.tuple( $6, -], ["fields", $300]) + $573, +) -export const $575: $.Codec = $.option($576) +export const $576: $.Codec = $.object( + ["account", $0], + ["fee", $6], + ["fields", $300], +) -export const $577: $.Codec> = $.array( - $575, +export const $575: $.Codec = $.option( + $576, ) -export const $574: $.Codec> = $577 +export const $577: $.Codec> = $ + .array($575) + +export const $574: $.Codec> = $577 -export const $578: $.Codec = $.stringUnion({ +export const $578: $.Codec = $.stringUnion({ 0: "TooManySubAccounts", 1: "NotFound", 2: "NotNamed", @@ -3880,30 +3965,35 @@ export const $578: $.Codec = $.stringUnion({ 16: "JudgementForDifferentIdentity", }) -export const $581: $.Codec = $.object(["delegate", $0], [ +export const $581: $.Codec = $.object(["delegate", $0], [ "proxy_type", $79, ], ["delay", $4]) -export const $582: $.Codec> = $.array($581) - -export const $580: $.Codec> = $582 +export const $582: $.Codec> = $.array($581) -export const $579: $.Codec<[Array, t.u128]> = $.tuple($580, $6) +export const $580: $.Codec> = $582 -export const $585: $.Codec = $.object( - ["real", $0], - ["call_hash", $11], - ["height", $4], +export const $579: $.Codec<[Array, t.types.u128]> = $.tuple( + $580, + $6, ) -export const $586: $.Codec> = $.array($585) +export const $585: $.Codec = $.object(["real", $0], [ + "call_hash", + $11, +], ["height", $4]) + +export const $586: $.Codec> = $.array($585) -export const $584: $.Codec> = $586 +export const $584: $.Codec> = $586 -export const $583: $.Codec<[Array, t.u128]> = $.tuple($584, $6) +export const $583: $.Codec<[Array, t.types.u128]> = $.tuple( + $584, + $6, +) -export const $587: $.Codec = $.stringUnion({ +export const $587: $.Codec = $.stringUnion({ 0: "TooMany", 1: "NotFound", 2: "NotProxy", @@ -3914,14 +4004,16 @@ export const $587: $.Codec = $.stringUnion({ 7: "NoSelfProxy", }) -export const $588: $.Codec<[t.sp_core.crypto.AccountId32, Uint8Array]> = $.tuple($0, $1) +export const $588: $.Codec<[t.types.sp_core.crypto.AccountId32, Uint8Array]> = $.tuple($0, $1) -export const $589: $.Codec = $.object(["when", $82], ["deposit", $6], [ - "depositor", - $0, -], ["approvals", $206]) +export const $589: $.Codec = $.object( + ["when", $82], + ["deposit", $6], + ["depositor", $0], + ["approvals", $206], +) -export const $590: $.Codec = $.stringUnion({ +export const $590: $.Codec = $.stringUnion({ 0: "MinimumThreshold", 1: "AlreadyApproved", 2: "NoApprovalsNeeded", @@ -3938,7 +4030,7 @@ export const $590: $.Codec = $.stringUnion({ 13: "AlreadyStored", }) -export const $592: $.Codec = $.taggedUnion("type", { +export const $592: $.Codec = $.taggedUnion("type", { 0: ["Proposed"], 1: ["Approved"], 2: ["Funded"], @@ -3947,7 +4039,7 @@ export const $592: $.Codec = $.taggedUnion("type 5: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], }) -export const $591: $.Codec = $.object( +export const $591: $.Codec = $.object( ["proposer", $0], ["value", $6], ["fee", $6], @@ -3958,7 +4050,7 @@ export const $591: $.Codec = $.object( export const $593: $.Codec = $12 -export const $594: $.Codec = $.stringUnion({ +export const $594: $.Codec = $.stringUnion({ 0: "InsufficientProposersBalance", 1: "InvalidIndex", 2: "ReasonTooBig", @@ -3972,14 +4064,17 @@ export const $594: $.Codec = $.stringUnion({ 10: "TooManyQueued", }) -export const $596: $.Codec = $.taggedUnion("type", { - 0: ["Added"], - 1: ["CuratorProposed", ["curator", $0]], - 2: ["Active", ["curator", $0]], - 3: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], -}) +export const $596: $.Codec = $.taggedUnion( + "type", + { + 0: ["Added"], + 1: ["CuratorProposed", ["curator", $0]], + 2: ["Active", ["curator", $0]], + 3: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], + }, +) -export const $595: $.Codec = $.object( +export const $595: $.Codec = $.object( ["parent_bounty", $4], ["value", $6], ["fee", $6], @@ -3987,13 +4082,13 @@ export const $595: $.Codec = $.object( ["status", $596], ) -export const $597: $.Codec = $.stringUnion({ +export const $597: $.Codec = $.stringUnion({ 0: "ParentBountyNotActive", 1: "InsufficientBountyBalance", 2: "TooManyChildBounties", }) -export const $598: $.Codec = $.object( +export const $598: $.Codec = $.object( ["reason", $11], ["who", $0], ["finder", $0], @@ -4003,7 +4098,7 @@ export const $598: $.Codec = $.object( ["finders_fee", $43], ) -export const $599: $.Codec = $.stringUnion({ +export const $599: $.Codec = $.stringUnion({ 0: "ReasonTooBig", 1: "AlreadyKnown", 2: "UnknownTip", @@ -4012,61 +4107,70 @@ export const $599: $.Codec = $.stringUnion({ 5: "Premature", }) -export const $601: $.Codec<[boolean, t.u32]> = $.tuple($43, $4) +export const $601: $.Codec<[boolean, t.types.u32]> = $.tuple($43, $4) -export const $600: $.Codec = $.taggedUnion("type", { - 0: ["Off"], - 1: ["Signed"], - 2: ["Unsigned", ["value", $601]], - 3: ["Emergency"], -}) +export const $600: $.Codec = $.taggedUnion( + "type", + { 0: ["Off"], 1: ["Signed"], 2: ["Unsigned", ["value", $601]], 3: ["Emergency"] }, +) -export const $602: $.Codec = $.object( +export const $602: $.Codec = $.object( ["supports", $365], ["score", $88], ["compute", $87], ) export const $605: $.Codec< - [t.sp_core.crypto.AccountId32, t.u64, Array] + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] > = $.tuple($0, $10, $491) export const $604: $.Codec< - Array<[t.sp_core.crypto.AccountId32, t.u64, Array]> + Array< + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] + > > = $.array($605) -export const $603: $.Codec = $.object([ +export const $603: $.Codec = $.object([ "voters", $604, ], ["targets", $206]) -export const $607: $.Codec> = $.map($88, $4) +export const $607: $.Codec> = $.map( + $88, + $4, +) -export const $606: $.Codec> = $607 +export const $606: $.Codec> = $607 -export const $609: $.Codec<[t.sp_npos_elections.ElectionScore, t.u32]> = $.tuple($88, $4) +export const $609: $.Codec<[t.types.sp_npos_elections.ElectionScore, t.types.u32]> = $.tuple( + $88, + $4, +) -export const $608: $.Codec> = $.array($609) +export const $608: $.Codec> = $.array( + $609, +) -export const $610: $.Codec = $ +export const $610: $.Codec = $ .object(["who", $0], ["deposit", $6], ["raw_solution", $311], ["call_fee", $6]) -export const $611: $.Codec = $.stringUnion({ - 0: "PreDispatchEarlySubmission", - 1: "PreDispatchWrongWinnerCount", - 2: "PreDispatchWeakSubmission", - 3: "SignedQueueFull", - 4: "SignedCannotPayDeposit", - 5: "SignedInvalidWitness", - 6: "SignedTooMuchWeight", - 7: "OcwCallWrongEra", - 8: "MissingSnapshotMetadata", - 9: "InvalidSubmissionIndex", - 10: "CallNotAllowed", - 11: "FallbackFailed", -}) - -export const $612: $.Codec = $.object( +export const $611: $.Codec = $ + .stringUnion({ + 0: "PreDispatchEarlySubmission", + 1: "PreDispatchWrongWinnerCount", + 2: "PreDispatchWeakSubmission", + 3: "SignedQueueFull", + 4: "SignedCannotPayDeposit", + 5: "SignedInvalidWitness", + 6: "SignedTooMuchWeight", + 7: "OcwCallWrongEra", + 8: "MissingSnapshotMetadata", + 9: "InvalidSubmissionIndex", + 10: "CallNotAllowed", + 11: "FallbackFailed", + }) + +export const $612: $.Codec = $.object( ["id", $0], ["prev", $92], ["next", $92], @@ -4074,77 +4178,87 @@ export const $612: $.Codec = $.object( ["score", $10], ) -export const $613: $.Codec = $.object(["head", $92], ["tail", $92]) +export const $613: $.Codec = $.object(["head", $92], [ + "tail", + $92, +]) -export const $614: $.Codec> = $.array($10) +export const $614: $.Codec> = $.array($10) -export const $616: $.Codec = $.stringUnion({ +export const $616: $.Codec = $.stringUnion({ 0: "Duplicate", 1: "NotHeavier", 2: "NotInSameBag", 3: "NodeNotFound", }) -export const $615: $.Codec = $.taggedUnion("type", { +export const $615: $.Codec = $.taggedUnion("type", { 0: ["List", ["value", $616]], }) -export const $619: $.Codec> = $.map($4, $6) +export const $619: $.Codec> = $.map($4, $6) -export const $618: $.Codec> = $619 +export const $618: $.Codec> = $619 -export const $617: $.Codec = $.object( +export const $617: $.Codec = $.object( ["pool_id", $4], ["points", $6], ["last_recorded_reward_counter", $479], ["unbonding_eras", $618], ) -export const $621: $.Codec<[t.u32, t.u128]> = $.tuple($4, $6) +export const $621: $.Codec<[t.types.u32, t.types.u128]> = $.tuple($4, $6) -export const $620: $.Codec> = $.array($621) +export const $620: $.Codec> = $.array($621) -export const $623: $.Codec = $.object( +export const $623: $.Codec = $.object( ["depositor", $0], ["root", $92], ["nominator", $92], ["state_toggler", $92], ) -export const $622: $.Codec = $.object( +export const $622: $.Codec = $.object( ["points", $6], ["state", $91], ["member_counter", $4], ["roles", $623], ) -export const $624: $.Codec = $.object( +export const $624: $.Codec = $.object( ["last_recorded_reward_counter", $479], ["last_recorded_total_payouts", $6], ["total_rewards_claimed", $6], ) -export const $626: $.Codec = $.object(["points", $6], [ +export const $626: $.Codec = $.object(["points", $6], [ "balance", $6, ]) -export const $628: $.Codec> = $.map($4, $626) +export const $628: $.Codec> = $.map( + $4, + $626, +) -export const $627: $.Codec> = $628 +export const $627: $.Codec> = $628 -export const $625: $.Codec = $.object(["no_era", $626], [ +export const $625: $.Codec = $.object(["no_era", $626], [ "with_era", $627, ]) -export const $630: $.Codec<[t.u32, t.pallet_nomination_pools.UnbondPool]> = $.tuple($4, $626) +export const $630: $.Codec<[t.types.u32, t.types.pallet_nomination_pools.UnbondPool]> = $.tuple( + $4, + $626, +) -export const $629: $.Codec> = $.array($630) +export const $629: $.Codec> = $ + .array($630) export const $631: $.Codec = $12 -export const $633: $.Codec = $.stringUnion({ +export const $633: $.Codec = $.stringUnion({ 0: "NotEnoughSpaceInUnbondPool", 1: "PoolNotFound", 2: "RewardPoolNotFound", @@ -4152,7 +4266,7 @@ export const $633: $.Codec = $. 4: "BondedStashKilledPrematurely", }) -export const $632: $.Codec = $.taggedUnion("type", { +export const $632: $.Codec = $.taggedUnion("type", { 0: ["PoolNotFound"], 1: ["PoolMemberNotFound"], 2: ["RewardPoolNotFound"], @@ -4176,16 +4290,17 @@ export const $632: $.Codec = $.taggedUni 20: ["PartialUnbondNotAllowedPermissionlessly"], }) -export const $636: $.Codec> = $94 +export const $636: $.Codec> = $94 -export const $634: $.Codec = $.object(["stash", $0], [ - "checked", - $636, -], ["deposit", $6]) +export const $634: $.Codec = $.object( + ["stash", $0], + ["checked", $636], + ["deposit", $6], +) -export const $635: $.Codec = C.$null +export const $635: $.Codec = C.$null -export const $637: $.Codec = $.stringUnion({ +export const $637: $.Codec = $.stringUnion({ 0: "NotController", 1: "AlreadyQueued", 2: "NotFullyBonded", @@ -4194,7 +4309,7 @@ export const $637: $.Codec = $.stringUnion({ 5: "CallNotAllowed", }) -export const $638: $.Codec = $ +export const $638: $.Codec = $ .object( ["max_code_size", $4], ["max_head_data_size", $4], @@ -4241,100 +4356,122 @@ export const $638: $.Codec = - $.tuple($4, $638) +export const $640: $.Codec< + [t.types.u32, t.types.polkadot_runtime_parachains.configuration.HostConfiguration] +> = $.tuple($4, $638) export const $639: $.Codec< - Array<[t.u32, t.polkadot_runtime_parachains.configuration.HostConfiguration]> + Array<[t.types.u32, t.types.polkadot_runtime_parachains.configuration.HostConfiguration]> > = $.array($640) -export const $641: $.Codec = $ +export const $641: $.Codec = $ .stringUnion({ 0: "InvalidNewValue" }) -export const $642: $.Codec> = $.array($385) +export const $642: $.Codec> = $.array($385) -export const $643: $.Codec> = $.array($213) +export const $643: $.Codec> = $.array( + $213, +) -export const $644: $.Codec = $ - .object(["bitfield", $382], ["submitted_at", $4]) +export const $644: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord +> = $.object(["bitfield", $382], ["submitted_at", $4]) -export const $645: $.Codec = $ - .object( - ["core", $105], - ["hash", $114], - ["descriptor", $97], - ["availability_votes", $383], - ["backers", $383], - ["relay_parent_number", $4], - ["backed_in_number", $4], - ["backing_group", $106], - ) +export const $645: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability +> = $.object( + ["core", $105], + ["hash", $114], + ["descriptor", $97], + ["availability_votes", $383], + ["backers", $383], + ["relay_parent_number", $4], + ["backed_in_number", $4], + ["backing_group", $106], +) -export const $646: $.Codec = $.stringUnion({ - 0: "UnsortedOrDuplicateValidatorIndices", - 1: "UnsortedOrDuplicateDisputeStatementSet", - 2: "UnsortedOrDuplicateBackedCandidates", - 3: "UnexpectedRelayParent", - 4: "WrongBitfieldSize", - 5: "BitfieldAllZeros", - 6: "BitfieldDuplicateOrUnordered", - 7: "ValidatorIndexOutOfBounds", - 8: "InvalidBitfieldSignature", - 9: "UnscheduledCandidate", - 10: "CandidateScheduledBeforeParaFree", - 11: "WrongCollator", - 12: "ScheduledOutOfOrder", - 13: "HeadDataTooLarge", - 14: "PrematureCodeUpgrade", - 15: "NewCodeTooLarge", - 16: "CandidateNotInParentContext", - 17: "InvalidGroupIndex", - 18: "InsufficientBacking", - 19: "InvalidBacking", - 20: "NotCollatorSigned", - 21: "ValidationDataHashMismatch", - 22: "IncorrectDownwardMessageHandling", - 23: "InvalidUpwardMessages", - 24: "HrmpWatermarkMishandling", - 25: "InvalidOutboundHrmp", - 26: "InvalidValidationCodeHash", - 27: "ParaHeadMismatch", - 28: "BitfieldReferencesFreedCore", -}) +export const $646: $.Codec = $ + .stringUnion({ + 0: "UnsortedOrDuplicateValidatorIndices", + 1: "UnsortedOrDuplicateDisputeStatementSet", + 2: "UnsortedOrDuplicateBackedCandidates", + 3: "UnexpectedRelayParent", + 4: "WrongBitfieldSize", + 5: "BitfieldAllZeros", + 6: "BitfieldDuplicateOrUnordered", + 7: "ValidatorIndexOutOfBounds", + 8: "InvalidBitfieldSignature", + 9: "UnscheduledCandidate", + 10: "CandidateScheduledBeforeParaFree", + 11: "WrongCollator", + 12: "ScheduledOutOfOrder", + 13: "HeadDataTooLarge", + 14: "PrematureCodeUpgrade", + 15: "NewCodeTooLarge", + 16: "CandidateNotInParentContext", + 17: "InvalidGroupIndex", + 18: "InsufficientBacking", + 19: "InvalidBacking", + 20: "NotCollatorSigned", + 21: "ValidationDataHashMismatch", + 22: "IncorrectDownwardMessageHandling", + 23: "InvalidUpwardMessages", + 24: "HrmpWatermarkMishandling", + 25: "InvalidOutboundHrmp", + 26: "InvalidValidationCodeHash", + 27: "ParaHeadMismatch", + 28: "BitfieldReferencesFreedCore", + }) export const $651: $.Codec< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] > = $.tuple($385, $396) export const $650: $.Codec< - Array<[t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation]> + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + > > = $.array($651) export const $649: $.Codec< [ - t.polkadot_primitives.v2.CandidateReceipt, - Array<[t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation]>, + t.types.polkadot_primitives.v2.CandidateReceipt, + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + >, ] > = $.tuple($96, $650) export const $648: $.Codec< Array< [ - t.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_primitives.v2.CandidateReceipt, Array< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] >, ] > > = $.array($649) -export const $647: $.Codec = $.object( +export const $647: $.Codec = $.object( ["session", $4], ["backing_validators_per_candidate", $648], ["disputes", $397], ) -export const $652: $.Codec = $ +export const $652: $.Codec = $ .stringUnion({ 0: "TooManyInclusionInherents", 1: "InvalidParentHeader", @@ -4344,122 +4481,119 @@ export const $652: $.Codec>> = $.array($642) - -export const $658: $.Codec = $.tuple($98, $99) +export const $653: $.Codec>> = $.array( + $642, +) -export const $657: $.Codec = $.object(["claim", $658], [ - "retries", - $4, -]) +export const $658: $.Codec = $.tuple($98, $99) -export const $656: $.Codec = $.object([ +export const $657: $.Codec = $.object([ "claim", - $657, -], ["core_offset", $4]) + $658, +], ["retries", $4]) -export const $655: $.Codec> = $ - .array($656) +export const $656: $.Codec = $ + .object(["claim", $657], ["core_offset", $4]) -export const $654: $.Codec = $.object( - ["queue", $655], - ["next_core_offset", $4], -) +export const $655: $.Codec> = + $.array($656) -export const $661: $.Codec = $.taggedUnion("type", { +export const $654: $.Codec = $ + .object(["queue", $655], ["next_core_offset", $4]) + +export const $661: $.Codec = $.taggedUnion("type", { 0: ["Parathread", ["value", $657]], 1: ["Parachain"], }) -export const $660: $.Codec = $.option($661) - -export const $659: $.Codec> = $.array( - $660, +export const $660: $.Codec = $.option( + $661, ) -export const $662: $.Codec> = $.array($98) +export const $659: $.Codec> = $ + .array($660) -export const $665: $.Codec = $.taggedUnion( - "type", - { 0: ["Parachain"], 1: ["Parathread", ["value", $.tuple($99, $4)]] }, -) +export const $662: $.Codec> = $.array($98) -export const $664: $.Codec = $.object( +export const $665: $.Codec = $ + .taggedUnion("type", { 0: ["Parachain"], 1: ["Parathread", ["value", $.tuple($99, $4)]] }) + +export const $664: $.Codec = $.object( ["core", $105], ["para_id", $98], ["kind", $665], ["group_idx", $106], ) -export const $663: $.Codec> = $.array( - $664, -) +export const $663: $.Codec> = $ + .array($664) -export const $668: $.Codec = $.taggedUnion( +export const $668: $.Codec = $.taggedUnion( "type", { 0: ["Onboarding", ["value", $98]], 1: ["Upgrade", ["id", $98], ["relay_parent_number", $4]] }, ) -export const $667: $.Codec> = $.array( - $668, -) +export const $667: $.Codec> = $ + .array($668) -export const $666: $.Codec = $.object( - ["votes_accept", $383], - ["votes_reject", $383], - ["age", $4], - ["created_at", $4], - ["causes", $667], -) +export const $666: $.Codec = $ + .object(["votes_accept", $383], ["votes_reject", $383], ["age", $4], ["created_at", $4], [ + "causes", + $667, + ]) -export const $669: $.Codec> = $.array( - $103, -) +export const $669: $.Codec> = $ + .array($103) -export const $670: $.Codec = $.stringUnion({ - 0: "Onboarding", - 1: "Parathread", - 2: "Parachain", - 3: "UpgradingParathread", - 4: "DowngradingParachain", - 5: "OffboardingParathread", - 6: "OffboardingParachain", -}) +export const $670: $.Codec = $.stringUnion( + { + 0: "Onboarding", + 1: "Parathread", + 2: "Parachain", + 3: "UpgradingParathread", + 4: "DowngradingParachain", + 5: "OffboardingParathread", + 6: "OffboardingParachain", + }, +) -export const $671: $.Codec<[t.polkadot_parachain.primitives.Id, t.u32]> = $.tuple($98, $4) +export const $671: $.Codec<[t.types.polkadot_parachain.primitives.Id, t.types.u32]> = $.tuple( + $98, + $4, +) -export const $674: $.Codec = $.object([ +export const $674: $.Codec = $.object([ "expected_at", $4, ], ["activated_at", $4]) -export const $673: $.Codec> = $.array( - $674, -) +export const $673: $.Codec> = $ + .array($674) -export const $672: $.Codec = $.object([ +export const $672: $.Codec = $.object([ "upgrade_times", $673, ], ["last_pruned", $236]) -export const $675: $.Codec> = $.array($671) +export const $675: $.Codec> = $ + .array($671) -export const $676: $.Codec = $.stringUnion({ +export const $676: $.Codec = $.stringUnion({ 0: "Abort", 1: "GoAhead", }) -export const $677: $.Codec = $.stringUnion({ +export const $677: $.Codec = $.stringUnion({ 0: "Present", }) -export const $678: $.Codec = $.object( +export const $678: $.Codec = $.object( ["genesis_head", $104], ["validation_code", $394], ["parachain", $43], ) -export const $679: $.Codec = $.stringUnion({ +export const $679: $.Codec = $.stringUnion({ 0: "NotRegistered", 1: "CannotOnboard", 2: "CannotOffboard", @@ -4475,42 +4609,44 @@ export const $679: $.Codec = $ 12: "CannotUpgradeCode", }) -export const $681: $.Codec = $ - .object(["validators", $643], ["queued", $643], ["session_index", $4]) +export const $681: $.Codec = + $.object(["validators", $643], ["queued", $643], ["session_index", $4]) -export const $680: $.Codec> = - $.array($681) +export const $680: $.Codec< + Array +> = $.array($681) -export const $683: $.Codec = $.object([ +export const $683: $.Codec = $.object([ "sent_at", $4, ], ["msg", $12]) -export const $682: $.Codec> = $.array( - $683, -) +export const $682: $.Codec> = $ + .array($683) -export const $684: $.Codec<[t.polkadot_parachain.primitives.Id, Uint8Array]> = $.tuple($98, $12) +export const $684: $.Codec<[t.types.polkadot_parachain.primitives.Id, Uint8Array]> = $.tuple( + $98, + $12, +) -export const $685: $.Codec = $.stringUnion({ +export const $685: $.Codec = $.stringUnion({ 0: "UnknownMessageIndex", 1: "WeightOverLimit", }) -export const $686: $.Codec = $.object( - ["confirmed", $43], - ["_age", $4], - ["sender_deposit", $6], - ["max_message_size", $4], - ["max_capacity", $4], - ["max_total_size", $4], -) +export const $686: $.Codec = $ + .object(["confirmed", $43], ["_age", $4], ["sender_deposit", $6], ["max_message_size", $4], [ + "max_capacity", + $4, + ], ["max_total_size", $4]) -export const $687: $.Codec> = $.array($112) +export const $687: $.Codec> = $.array( + $112, +) -export const $689: $.Codec = $.option($11) +export const $689: $.Codec = $.option($11) -export const $688: $.Codec = $.object( +export const $688: $.Codec = $.object( ["max_capacity", $4], ["max_total_size", $4], ["max_message_size", $4], @@ -4521,20 +4657,22 @@ export const $688: $.Codec = $.o ["recipient_deposit", $6], ) -export const $691: $.Codec = $.object([ +export const $691: $.Codec = $.object([ "sent_at", $4, ], ["data", $12]) -export const $690: $.Codec> = $.array($691) +export const $690: $.Codec> = $.array( + $691, +) -export const $693: $.Codec<[t.u32, Array]> = $.tuple($4, $662) +export const $693: $.Codec<[t.types.u32, Array]> = $ + .tuple($4, $662) -export const $692: $.Codec]>> = $.array( - $693, -) +export const $692: $.Codec]>> = + $.array($693) -export const $694: $.Codec = $.stringUnion({ +export const $694: $.Codec = $.stringUnion({ 0: "OpenHrmpChannelToSelf", 1: "OpenHrmpChannelInvalidRecipient", 2: "OpenHrmpChannelZeroCapacity", @@ -4556,11 +4694,13 @@ export const $694: $.Codec = $. 18: "WrongWitness", }) -export const $695: $.Codec> = $.array($214) +export const $695: $.Codec> = $.array( + $214, +) -export const $697: $.Codec> = $.array($215) +export const $697: $.Codec> = $.array($215) -export const $696: $.Codec = $.object( +export const $696: $.Codec = $.object( ["active_validator_indices", $642], ["random_seed", $1], ["dispute_period", $4], @@ -4576,110 +4716,152 @@ export const $696: $.Codec = $.object( ["needed_approvals", $4], ) -export const $698: $.Codec<[t.u32, t.polkadot_core_primitives.CandidateHash]> = $.tuple($4, $114) +export const $698: $.Codec<[t.types.u32, t.types.polkadot_core_primitives.CandidateHash]> = $.tuple( + $4, + $114, +) -export const $699: $.Codec = $.object( +export const $699: $.Codec = $.object( ["validators_for", $383], ["validators_against", $383], ["start", $4], ["concluded_at", $236], ) -export const $700: $.Codec = $.stringUnion({ - 0: "DuplicateDisputeStatementSets", - 1: "AncientDisputeStatement", - 2: "ValidatorIndexOutOfBounds", - 3: "InvalidSignature", - 4: "DuplicateStatement", - 5: "PotentialSpam", - 6: "SingleSidedDispute", -}) +export const $700: $.Codec = $ + .stringUnion({ + 0: "DuplicateDisputeStatementSets", + 1: "AncientDisputeStatement", + 2: "ValidatorIndexOutOfBounds", + 3: "InvalidSignature", + 4: "DuplicateStatement", + 5: "PotentialSpam", + 6: "SingleSidedDispute", + }) -export const $701: $.Codec = $.object( +export const $701: $.Codec = $.object( ["manager", $0], ["deposit", $6], ["locked", $43], ) -export const $702: $.Codec = $.stringUnion({ - 0: "NotRegistered", - 1: "AlreadyRegistered", - 2: "NotOwner", - 3: "CodeTooLarge", - 4: "HeadDataTooLarge", - 5: "NotParachain", - 6: "NotParathread", - 7: "CannotDeregister", - 8: "CannotDowngrade", - 9: "CannotUpgrade", - 10: "ParaLocked", - 11: "NotReserved", - 12: "EmptyCode", - 13: "CannotSwap", -}) - -export const $703: $.Codec> = $.array( - $452, -) +export const $702: $.Codec = $ + .stringUnion({ + 0: "NotRegistered", + 1: "AlreadyRegistered", + 2: "NotOwner", + 3: "CodeTooLarge", + 4: "HeadDataTooLarge", + 5: "NotParachain", + 6: "NotParathread", + 7: "CannotDeregister", + 8: "CannotDowngrade", + 9: "CannotUpgrade", + 10: "ParaLocked", + 11: "NotReserved", + 12: "EmptyCode", + 13: "CannotSwap", + }) + +export const $703: $.Codec> = + $.array($452) -export const $704: $.Codec = $.stringUnion({ +export const $704: $.Codec = $.stringUnion({ 0: "ParaNotOnboarding", 1: "LeaseError", }) -export const $705: $.Codec<[t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id]> = $ - .tuple($0, $98) +export const $705: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id] +> = $.tuple($0, $98) export const $708: $.Codec< - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] > = $.tuple($0, $98, $6) export const $707: $.Codec< - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined > = $.option($708) export const $706: $.Codec< [ - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, ] > = $.sizedArray($707, 36) -export const $709: $.Codec = $.stringUnion({ +export const $709: $.Codec = $.stringUnion({ 0: "AuctionInProgress", 1: "LeasePeriodInPast", 2: "ParaNotRegistered", @@ -4689,12 +4871,14 @@ export const $709: $.Codec = $. 6: "AlreadyLeasedOut", }) -export const $711: $.Codec = $.taggedUnion( - "type", - { 0: ["Never"], 1: ["PreEnding", ["value", $4]], 2: ["Ending", ["value", $4]] }, -) +export const $711: $.Codec = $ + .taggedUnion("type", { + 0: ["Never"], + 1: ["PreEnding", ["value", $4]], + 2: ["Ending", ["value", $4]], + }) -export const $710: $.Codec = $.object( +export const $710: $.Codec = $.object( ["depositor", $0], ["verifier", $416], ["deposit", $6], @@ -4707,7 +4891,7 @@ export const $710: $.Codec = $.obj ["fund_index", $4], ) -export const $712: $.Codec = $.stringUnion({ +export const $712: $.Codec = $.stringUnion({ 0: "FirstPeriodInPast", 1: "FirstPeriodTooFarInFuture", 2: "LastPeriodBeforeFirstPeriod", @@ -4733,42 +4917,47 @@ export const $712: $.Codec = $ 22: "NoLeasePeriod", }) -export const $715: $.Codec<[t.u8, t.u8]> = $.tuple($2, $2) +export const $715: $.Codec<[t.types.u8, t.types.u8]> = $.tuple($2, $2) -export const $714: $.Codec<[t.u8, t.u8] | undefined> = $.option($715) +export const $714: $.Codec<[t.types.u8, t.types.u8] | undefined> = $.option($715) -export const $716: $.Codec = $.taggedUnion("type", { +export const $716: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $429]], 1: ["V1", ["value", $434]], 2: ["V2", ["value", $140]], }) -export const $713: $.Codec = $.taggedUnion("type", { +export const $713: $.Codec = $.taggedUnion("type", { 0: ["Pending", ["responder", $155], ["maybe_notify", $714], ["timeout", $4]], 1: ["VersionNotifier", ["origin", $155], ["is_active", $43]], 2: ["Ready", ["response", $716], ["at", $4]], }) -export const $717: $.Codec<[t.u32, t.xcm.VersionedMultiLocation]> = $.tuple($4, $155) +export const $717: $.Codec<[t.types.u32, t.types.xcm.VersionedMultiLocation]> = $.tuple($4, $155) -export const $718: $.Codec<[t.u64, t.u64, t.u32]> = $.tuple($10, $10, $4) +export const $718: $.Codec<[t.types.u64, t.types.u64, t.types.u32]> = $.tuple($10, $10, $4) -export const $720: $.Codec<[t.xcm.VersionedMultiLocation, t.u32]> = $.tuple($155, $4) +export const $720: $.Codec<[t.types.xcm.VersionedMultiLocation, t.types.u32]> = $.tuple($155, $4) -export const $721: $.Codec> = $.array($720) +export const $721: $.Codec> = $.array( + $720, +) -export const $719: $.Codec> = $721 +export const $719: $.Codec> = $721 export const $723: $.Codec = $.option($12) -export const $722: $.Codec = $.taggedUnion("type", { - 0: ["MigrateSupportedVersion"], - 1: ["MigrateVersionNotifiers"], - 2: ["NotifyCurrentTargets", ["value", $723]], - 3: ["MigrateAndNotifyOldTargets"], -}) +export const $722: $.Codec = $.taggedUnion( + "type", + { + 0: ["MigrateSupportedVersion"], + 1: ["MigrateVersionNotifiers"], + 2: ["NotifyCurrentTargets", ["value", $723]], + 3: ["MigrateAndNotifyOldTargets"], + }, +) -export const $724: $.Codec = $.stringUnion({ +export const $724: $.Codec = $.stringUnion({ 0: "Unreachable", 1: "SendFailure", 2: "Filtered", @@ -4786,42 +4975,45 @@ export const $724: $.Codec = $.stringUnion({ export const $725: $.Codec = $12 -export const $727: $.Codec = - C.$null +export const $727: $.Codec< + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender +> = C.$null -export const $728: $.Codec = C.$null +export const $728: $.Codec = + C.$null -export const $729: $.Codec = C.$null +export const $729: $.Codec = + C.$null -export const $730: $.Codec = C.$null +export const $730: $.Codec = C.$null export const $732: $.Codec = C.$era export const $731: $.Codec = $732 -export const $733: $.Codec> = $125 +export const $733: $.Codec> = $125 -export const $734: $.Codec = C.$null +export const $734: $.Codec = C.$null -export const $735: $.Codec> = $58 +export const $735: $.Codec> = $58 -export const $736: $.Codec = C.$null +export const $736: $.Codec = C.$null export const $726: $.Codec< [ - t.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender, - t.frame_system.extensions.check_spec_version.CheckSpecVersion, - t.frame_system.extensions.check_tx_version.CheckTxVersion, - t.frame_system.extensions.check_genesis.CheckGenesis, + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender, + t.types.frame_system.extensions.check_spec_version.CheckSpecVersion, + t.types.frame_system.extensions.check_tx_version.CheckTxVersion, + t.types.frame_system.extensions.check_genesis.CheckGenesis, C.Era, - t.Compact, - t.frame_system.extensions.check_weight.CheckWeight, - t.Compact, - t.polkadot_runtime_common.claims.PrevalidateAttests, + t.Compact, + t.types.frame_system.extensions.check_weight.CheckWeight, + t.Compact, + t.types.polkadot_runtime_common.claims.PrevalidateAttests, ] > = $.tuple($727, $728, $729, $730, $731, $733, $734, $735, $736) -export const $737: $.Codec = C.$null +export const $737: $.Codec = C.$null export const _all: $.AnyCodec[] = [ $0, diff --git a/codegen/_output/rococo/finality_grandpa/Equivocation/$$finality_grandpa.ts b/codegen/_output/rococo/finality_grandpa/Equivocation/$$finality_grandpa.ts deleted file mode 100644 index 45ab3cd8b..000000000 --- a/codegen/_output/rococo/finality_grandpa/Equivocation/$$finality_grandpa.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $precommit: $.Codec = - _codec.$224 - -export const $prevote: $.Codec = - _codec.$219 - -export interface Precommit { - round_number: t.u64 - identity: t.sp_finality_grandpa.app.Public - first: [t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature] - second: [t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature] -} - -export function Precommit(value: t.finality_grandpa.Equivocation.$$finality_grandpa.Precommit) { - return value -} - -export interface Prevote { - round_number: t.u64 - identity: t.sp_finality_grandpa.app.Public - first: [t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature] - second: [t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature] -} - -export function Prevote(value: t.finality_grandpa.Equivocation.$$finality_grandpa.Prevote) { - return value -} diff --git a/codegen/_output/rococo/finality_grandpa/mod.ts b/codegen/_output/rococo/finality_grandpa/mod.ts deleted file mode 100644 index 42e157d96..000000000 --- a/codegen/_output/rococo/finality_grandpa/mod.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as Equivocation from "./Equivocation/mod.ts" - -export const $precommit: $.Codec = _codec.$225 - -export const $prevote: $.Codec = _codec.$220 - -export interface Precommit { - target_hash: t.primitive_types.H256 - target_number: t.u32 -} - -export function Precommit(value: t.finality_grandpa.Precommit) { - return value -} - -export interface Prevote { - target_hash: t.primitive_types.H256 - target_number: t.u32 -} - -export function Prevote(value: t.finality_grandpa.Prevote) { - return value -} diff --git a/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts b/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts deleted file mode 100644 index 0b7ef13b1..000000000 --- a/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export const $weightsPerClass: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass -> = _codec.$166 - -export interface WeightsPerClass { - normal: t.frame_system.limits.WeightsPerClass - operational: t.frame_system.limits.WeightsPerClass - mandatory: t.frame_system.limits.WeightsPerClass -} - -export function WeightsPerClass( - value: t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass, -) { - return value -} diff --git a/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts b/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts deleted file mode 100644 index 70b4175fe..000000000 --- a/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export const $weight: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight -> = _codec.$7 - -export interface Weight { - normal: t.sp_weights.weight_v2.Weight - operational: t.sp_weights.weight_v2.Weight - mandatory: t.sp_weights.weight_v2.Weight -} - -export function Weight( - value: t.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight, -) { - return value -} diff --git a/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/mod.ts b/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/mod.ts deleted file mode 100644 index f17c65ea6..000000000 --- a/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/mod.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export * as $$frame_system from "./$$frame_system/mod.ts" -export * as $$sp_weights from "./$$sp_weights/mod.ts" - -export const $$$u32: $.Codec = _codec.$170 - -export interface $$u32 { - normal: t.u32 - operational: t.u32 - mandatory: t.u32 -} - -export function $$u32(value: t.frame_support.dispatch.PerDispatchClass.$$u32) { - return value -} diff --git a/codegen/_output/rococo/frame_support/dispatch/mod.ts b/codegen/_output/rococo/frame_support/dispatch/mod.ts deleted file mode 100644 index 41e096b5d..000000000 --- a/codegen/_output/rococo/frame_support/dispatch/mod.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as PerDispatchClass from "./PerDispatchClass/mod.ts" - -export const $dispatchClass: $.Codec = _codec.$22 - -export const $dispatchInfo: $.Codec = _codec.$21 - -export const $pays: $.Codec = _codec.$23 - -export const $rawOrigin: $.Codec = _codec.$257 - -export type DispatchClass = "Normal" | "Operational" | "Mandatory" - -export interface DispatchInfo { - weight: t.sp_weights.weight_v2.Weight - class: t.frame_support.dispatch.DispatchClass - pays_fee: t.frame_support.dispatch.Pays -} - -export function DispatchInfo(value: t.frame_support.dispatch.DispatchInfo) { - return value -} - -export type Pays = "Yes" | "No" - -export type RawOrigin = - | t.frame_support.dispatch.RawOrigin.Root - | t.frame_support.dispatch.RawOrigin.Signed - | t.frame_support.dispatch.RawOrigin.None -export namespace RawOrigin { - export interface Root { - type: "Root" - } - export interface Signed { - type: "Signed" - value: t.sp_core.crypto.AccountId32 - } - export interface None { - type: "None" - } - export function Root(): t.frame_support.dispatch.RawOrigin.Root { - return { type: "Root" } - } - export function Signed( - value: t.frame_support.dispatch.RawOrigin.Signed["value"], - ): t.frame_support.dispatch.RawOrigin.Signed { - return { type: "Signed", value } - } - export function None(): t.frame_support.dispatch.RawOrigin.None { - return { type: "None" } - } -} diff --git a/codegen/_output/rococo/frame_support/mod.ts b/codegen/_output/rococo/frame_support/mod.ts deleted file mode 100644 index e3c066b58..000000000 --- a/codegen/_output/rococo/frame_support/mod.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as dispatch from "./dispatch/mod.ts" -export * as traits from "./traits/mod.ts" - -export const $palletId: $.Codec = _codec.$560 - -export type PalletId = Uint8Array - -export function PalletId(value: t.frame_support.PalletId) { - return value -} diff --git a/codegen/_output/rococo/frame_support/traits/misc.ts b/codegen/_output/rococo/frame_support/traits/misc.ts deleted file mode 100644 index 9aeb1612a..000000000 --- a/codegen/_output/rococo/frame_support/traits/misc.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $wrapperOpaque: $.Codec = _codec.$522 diff --git a/codegen/_output/rococo/frame_support/traits/preimages.ts b/codegen/_output/rococo/frame_support/traits/preimages.ts deleted file mode 100644 index f7b6cd24a..000000000 --- a/codegen/_output/rococo/frame_support/traits/preimages.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $bounded: $.Codec = _codec.$180 - -export type Bounded = - | t.frame_support.traits.preimages.Bounded.Legacy - | t.frame_support.traits.preimages.Bounded.Inline - | t.frame_support.traits.preimages.Bounded.Lookup -export namespace Bounded { - export interface Legacy { - type: "Legacy" - hash: t.primitive_types.H256 - } - export interface Inline { - type: "Inline" - value: Uint8Array - } - export interface Lookup { - type: "Lookup" - hash: t.primitive_types.H256 - len: t.u32 - } - export function Legacy( - value: Omit, - ): t.frame_support.traits.preimages.Bounded.Legacy { - return { type: "Legacy", ...value } - } - export function Inline( - value: t.frame_support.traits.preimages.Bounded.Inline["value"], - ): t.frame_support.traits.preimages.Bounded.Inline { - return { type: "Inline", value } - } - export function Lookup( - value: Omit, - ): t.frame_support.traits.preimages.Bounded.Lookup { - return { type: "Lookup", ...value } - } -} diff --git a/codegen/_output/rococo/frame_support/traits/tokens/misc.ts b/codegen/_output/rococo/frame_support/traits/tokens/misc.ts deleted file mode 100644 index ee5be5d4b..000000000 --- a/codegen/_output/rococo/frame_support/traits/tokens/misc.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export const $balanceStatus: $.Codec = _codec.$37 - -export type BalanceStatus = "Free" | "Reserved" diff --git a/codegen/_output/rococo/frame_system/extensions/check_genesis.ts b/codegen/_output/rococo/frame_system/extensions/check_genesis.ts deleted file mode 100644 index 558e0306a..000000000 --- a/codegen/_output/rococo/frame_system/extensions/check_genesis.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkGenesis: $.Codec = - _codec.$730 - -export function CheckGenesis() { - return null -} - -export type CheckGenesis = null diff --git a/codegen/_output/rococo/frame_system/extensions/check_non_zero_sender.ts b/codegen/_output/rococo/frame_system/extensions/check_non_zero_sender.ts deleted file mode 100644 index 6400ed748..000000000 --- a/codegen/_output/rococo/frame_system/extensions/check_non_zero_sender.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkNonZeroSender: $.Codec< - t.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender -> = _codec.$727 - -export function CheckNonZeroSender() { - return null -} - -export type CheckNonZeroSender = null diff --git a/codegen/_output/rococo/frame_system/extensions/check_spec_version.ts b/codegen/_output/rococo/frame_system/extensions/check_spec_version.ts deleted file mode 100644 index e692bdc9e..000000000 --- a/codegen/_output/rococo/frame_system/extensions/check_spec_version.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkSpecVersion: $.Codec< - t.frame_system.extensions.check_spec_version.CheckSpecVersion -> = _codec.$728 - -export function CheckSpecVersion() { - return null -} - -export type CheckSpecVersion = null diff --git a/codegen/_output/rococo/frame_system/extensions/check_tx_version.ts b/codegen/_output/rococo/frame_system/extensions/check_tx_version.ts deleted file mode 100644 index d2ddd0d49..000000000 --- a/codegen/_output/rococo/frame_system/extensions/check_tx_version.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkTxVersion: $.Codec = - _codec.$729 - -export function CheckTxVersion() { - return null -} - -export type CheckTxVersion = null diff --git a/codegen/_output/rococo/frame_system/extensions/check_weight.ts b/codegen/_output/rococo/frame_system/extensions/check_weight.ts deleted file mode 100644 index acb4a106e..000000000 --- a/codegen/_output/rococo/frame_system/extensions/check_weight.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkWeight: $.Codec = _codec.$734 - -export function CheckWeight() { - return null -} - -export type CheckWeight = null diff --git a/codegen/_output/rococo/frame_system/limits.ts b/codegen/_output/rococo/frame_system/limits.ts deleted file mode 100644 index 1448f520d..000000000 --- a/codegen/_output/rococo/frame_system/limits.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $blockLength: $.Codec = _codec.$169 - -export const $blockWeights: $.Codec = _codec.$165 - -export const $weightsPerClass: $.Codec = _codec.$167 - -export interface BlockLength { - max: t.frame_support.dispatch.PerDispatchClass.$$u32 -} - -export function BlockLength(value: t.frame_system.limits.BlockLength) { - return value -} - -export interface BlockWeights { - base_block: t.sp_weights.weight_v2.Weight - max_block: t.sp_weights.weight_v2.Weight - per_class: t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass -} - -export function BlockWeights(value: t.frame_system.limits.BlockWeights) { - return value -} - -export interface WeightsPerClass { - base_extrinsic: t.sp_weights.weight_v2.Weight - max_extrinsic: t.sp_weights.weight_v2.Weight | undefined - max_total: t.sp_weights.weight_v2.Weight | undefined - reserved: t.sp_weights.weight_v2.Weight | undefined -} - -export function WeightsPerClass(value: t.frame_system.limits.WeightsPerClass) { - return value -} diff --git a/codegen/_output/rococo/frame_system/mod.ts b/codegen/_output/rococo/frame_system/mod.ts deleted file mode 100644 index fad2eca0c..000000000 --- a/codegen/_output/rococo/frame_system/mod.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as extensions from "./extensions/mod.ts" -export * as limits from "./limits.ts" -export * as pallet from "./pallet.ts" - -export const $accountInfo: $.Codec = _codec.$3 - -export const $eventRecord: $.Codec = _codec.$18 - -export const $lastRuntimeUpgradeInfo: $.Codec = _codec.$159 - -export const $phase: $.Codec = _codec.$156 - -export interface AccountInfo { - nonce: t.u32 - consumers: t.u32 - providers: t.u32 - sufficients: t.u32 - data: t.pallet_balances.AccountData -} - -export function AccountInfo(value: t.frame_system.AccountInfo) { - return value -} - -export interface EventRecord { - phase: t.frame_system.Phase - event: t.polkadot_runtime.RuntimeEvent - topics: Array -} - -export function EventRecord(value: t.frame_system.EventRecord) { - return value -} - -export interface LastRuntimeUpgradeInfo { - spec_version: t.Compact - spec_name: string -} - -export function LastRuntimeUpgradeInfo(value: t.frame_system.LastRuntimeUpgradeInfo) { - return value -} - -export type Phase = - | t.frame_system.Phase.ApplyExtrinsic - | t.frame_system.Phase.Finalization - | t.frame_system.Phase.Initialization -export namespace Phase { - export interface ApplyExtrinsic { - type: "ApplyExtrinsic" - value: t.u32 - } - export interface Finalization { - type: "Finalization" - } - export interface Initialization { - type: "Initialization" - } - export function ApplyExtrinsic( - value: t.frame_system.Phase.ApplyExtrinsic["value"], - ): t.frame_system.Phase.ApplyExtrinsic { - return { type: "ApplyExtrinsic", value } - } - export function Finalization(): t.frame_system.Phase.Finalization { - return { type: "Finalization" } - } - export function Initialization(): t.frame_system.Phase.Initialization { - return { type: "Initialization" } - } -} diff --git a/codegen/_output/rococo/mod.ts b/codegen/_output/rococo/mod.ts index badbc43c5..621c80dbf 100644 --- a/codegen/_output/rococo/mod.ts +++ b/codegen/_output/rococo/mod.ts @@ -1,74 +1,5 @@ -import { $, C } from "./capi.ts" -import * as _codec from "./codecs.ts" - export * as _metadata from "./_metadata.ts" -export * as bitvec from "./bitvec/mod.ts" -export * as finality_grandpa from "./finality_grandpa/mod.ts" -export * as frame_support from "./frame_support/mod.ts" -export * as frame_system from "./frame_system/mod.ts" -export * as pallet_authorship from "./pallet_authorship/mod.ts" -export * as pallet_babe from "./pallet_babe/mod.ts" -export * as pallet_bags_list from "./pallet_bags_list/mod.ts" -export * as pallet_balances from "./pallet_balances/mod.ts" -export * as pallet_bounties from "./pallet_bounties/mod.ts" -export * as pallet_child_bounties from "./pallet_child_bounties/mod.ts" -export * as pallet_collective from "./pallet_collective/mod.ts" -export * as pallet_democracy from "./pallet_democracy/mod.ts" -export * as pallet_election_provider_multi_phase from "./pallet_election_provider_multi_phase/mod.ts" -export * as pallet_elections_phragmen from "./pallet_elections_phragmen/mod.ts" -export * as pallet_fast_unstake from "./pallet_fast_unstake/mod.ts" -export * as pallet_grandpa from "./pallet_grandpa/mod.ts" -export * as pallet_identity from "./pallet_identity/mod.ts" -export * as pallet_im_online from "./pallet_im_online/mod.ts" -export * as pallet_indices from "./pallet_indices/mod.ts" -export * as pallet_membership from "./pallet_membership/mod.ts" -export * as pallet_multisig from "./pallet_multisig/mod.ts" -export * as pallet_nomination_pools from "./pallet_nomination_pools/mod.ts" -export * as pallet_offences from "./pallet_offences/mod.ts" -export * as pallet_preimage from "./pallet_preimage/mod.ts" -export * as pallet_proxy from "./pallet_proxy/mod.ts" -export * as pallet_scheduler from "./pallet_scheduler/mod.ts" -export * as pallet_session from "./pallet_session/mod.ts" -export * as pallet_staking from "./pallet_staking/mod.ts" -export * as pallet_timestamp from "./pallet_timestamp/mod.ts" -export * as pallet_tips from "./pallet_tips/mod.ts" -export * as pallet_transaction_payment from "./pallet_transaction_payment/mod.ts" -export * as pallet_treasury from "./pallet_treasury/mod.ts" -export * as pallet_utility from "./pallet_utility/mod.ts" -export * as pallet_vesting from "./pallet_vesting/mod.ts" -export * as pallet_xcm from "./pallet_xcm/mod.ts" export * as pallets from "./pallets/mod.ts" -export * as polkadot_core_primitives from "./polkadot_core_primitives.ts" -export * as polkadot_parachain from "./polkadot_parachain/mod.ts" -export * as polkadot_primitives from "./polkadot_primitives/mod.ts" -export * as polkadot_runtime from "./polkadot_runtime.ts" -export * as polkadot_runtime_common from "./polkadot_runtime_common/mod.ts" -export * as polkadot_runtime_parachains from "./polkadot_runtime_parachains/mod.ts" -export * as primitive_types from "./primitive_types.ts" -export * as sp_arithmetic from "./sp_arithmetic/mod.ts" -export * as sp_authority_discovery from "./sp_authority_discovery/mod.ts" -export * as sp_consensus_babe from "./sp_consensus_babe/mod.ts" -export * as sp_consensus_slots from "./sp_consensus_slots.ts" -export * as sp_core from "./sp_core/mod.ts" -export * as sp_finality_grandpa from "./sp_finality_grandpa/mod.ts" -export * as sp_npos_elections from "./sp_npos_elections.ts" -export * as sp_runtime from "./sp_runtime/mod.ts" -export * as sp_session from "./sp_session.ts" -export * as sp_staking from "./sp_staking/mod.ts" -export * as sp_version from "./sp_version.ts" -export * as sp_weights from "./sp_weights/mod.ts" -export * as xcm from "./xcm/mod.ts" - -export const $era: $.Codec = _codec.$732 +export * as types from "./types/mod.ts" export type Compact = T - -export type u128 = bigint - -export type u16 = number - -export type u32 = number - -export type u64 = bigint - -export type u8 = number diff --git a/codegen/_output/rococo/pallet_authorship/mod.ts b/codegen/_output/rococo/pallet_authorship/mod.ts deleted file mode 100644 index a2e6949b9..000000000 --- a/codegen/_output/rococo/pallet_authorship/mod.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $uncleEntryItem: $.Codec = _codec.$482 - -export type UncleEntryItem = - | t.pallet_authorship.UncleEntryItem.InclusionHeight - | t.pallet_authorship.UncleEntryItem.Uncle -export namespace UncleEntryItem { - export interface InclusionHeight { - type: "InclusionHeight" - value: t.u32 - } - export interface Uncle { - type: "Uncle" - value: [t.primitive_types.H256, t.sp_core.crypto.AccountId32 | undefined] - } - export function InclusionHeight( - value: t.pallet_authorship.UncleEntryItem.InclusionHeight["value"], - ): t.pallet_authorship.UncleEntryItem.InclusionHeight { - return { type: "InclusionHeight", value } - } - export function Uncle( - ...value: t.pallet_authorship.UncleEntryItem.Uncle["value"] - ): t.pallet_authorship.UncleEntryItem.Uncle { - return { type: "Uncle", value } - } -} diff --git a/codegen/_output/rococo/pallet_bags_list/list.ts b/codegen/_output/rococo/pallet_bags_list/list.ts deleted file mode 100644 index 2c7ff3b65..000000000 --- a/codegen/_output/rococo/pallet_bags_list/list.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $bag: $.Codec = _codec.$613 - -export const $listError: $.Codec = _codec.$616 - -export const $node: $.Codec = _codec.$612 - -export interface Bag { - head: t.sp_core.crypto.AccountId32 | undefined - tail: t.sp_core.crypto.AccountId32 | undefined -} - -export function Bag(value: t.pallet_bags_list.list.Bag) { - return value -} - -export type ListError = "Duplicate" | "NotHeavier" | "NotInSameBag" | "NodeNotFound" - -export interface Node { - id: t.sp_core.crypto.AccountId32 - prev: t.sp_core.crypto.AccountId32 | undefined - next: t.sp_core.crypto.AccountId32 | undefined - bag_upper: t.u64 - score: t.u64 -} - -export function Node(value: t.pallet_bags_list.list.Node) { - return value -} diff --git a/codegen/_output/rococo/pallet_balances/mod.ts b/codegen/_output/rococo/pallet_balances/mod.ts deleted file mode 100644 index 4f241fc40..000000000 --- a/codegen/_output/rococo/pallet_balances/mod.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $accountData: $.Codec = _codec.$5 - -export const $balanceLock: $.Codec = _codec.$471 - -export const $reasons: $.Codec = _codec.$472 - -export const $releases: $.Codec = _codec.$477 - -export const $reserveData: $.Codec = _codec.$475 - -export interface AccountData { - free: t.u128 - reserved: t.u128 - misc_frozen: t.u128 - fee_frozen: t.u128 -} - -export function AccountData(value: t.pallet_balances.AccountData) { - return value -} - -export interface BalanceLock { - id: Uint8Array - amount: t.u128 - reasons: t.pallet_balances.Reasons -} - -export function BalanceLock(value: t.pallet_balances.BalanceLock) { - return value -} - -export type Reasons = "Fee" | "Misc" | "All" - -export type Releases = "V1_0_0" | "V2_0_0" - -export interface ReserveData { - id: Uint8Array - amount: t.u128 -} - -export function ReserveData(value: t.pallet_balances.ReserveData) { - return value -} diff --git a/codegen/_output/rococo/pallet_bounties/mod.ts b/codegen/_output/rococo/pallet_bounties/mod.ts deleted file mode 100644 index 69d0638db..000000000 --- a/codegen/_output/rococo/pallet_bounties/mod.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $bounty: $.Codec = _codec.$591 - -export const $bountyStatus: $.Codec = _codec.$592 - -export interface Bounty { - proposer: t.sp_core.crypto.AccountId32 - value: t.u128 - fee: t.u128 - curator_deposit: t.u128 - bond: t.u128 - status: t.pallet_bounties.BountyStatus -} - -export function Bounty(value: t.pallet_bounties.Bounty) { - return value -} - -export type BountyStatus = - | t.pallet_bounties.BountyStatus.Proposed - | t.pallet_bounties.BountyStatus.Approved - | t.pallet_bounties.BountyStatus.Funded - | t.pallet_bounties.BountyStatus.CuratorProposed - | t.pallet_bounties.BountyStatus.Active - | t.pallet_bounties.BountyStatus.PendingPayout -export namespace BountyStatus { - export interface Proposed { - type: "Proposed" - } - export interface Approved { - type: "Approved" - } - export interface Funded { - type: "Funded" - } - export interface CuratorProposed { - type: "CuratorProposed" - curator: t.sp_core.crypto.AccountId32 - } - export interface Active { - type: "Active" - curator: t.sp_core.crypto.AccountId32 - update_due: t.u32 - } - export interface PendingPayout { - type: "PendingPayout" - curator: t.sp_core.crypto.AccountId32 - beneficiary: t.sp_core.crypto.AccountId32 - unlock_at: t.u32 - } - export function Proposed(): t.pallet_bounties.BountyStatus.Proposed { - return { type: "Proposed" } - } - export function Approved(): t.pallet_bounties.BountyStatus.Approved { - return { type: "Approved" } - } - export function Funded(): t.pallet_bounties.BountyStatus.Funded { - return { type: "Funded" } - } - export function CuratorProposed( - value: Omit, - ): t.pallet_bounties.BountyStatus.CuratorProposed { - return { type: "CuratorProposed", ...value } - } - export function Active( - value: Omit, - ): t.pallet_bounties.BountyStatus.Active { - return { type: "Active", ...value } - } - export function PendingPayout( - value: Omit, - ): t.pallet_bounties.BountyStatus.PendingPayout { - return { type: "PendingPayout", ...value } - } -} diff --git a/codegen/_output/rococo/pallet_child_bounties/mod.ts b/codegen/_output/rococo/pallet_child_bounties/mod.ts deleted file mode 100644 index 73ae5cafd..000000000 --- a/codegen/_output/rococo/pallet_child_bounties/mod.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $childBounty: $.Codec = _codec.$595 - -export const $childBountyStatus: $.Codec = _codec.$596 - -export interface ChildBounty { - parent_bounty: t.u32 - value: t.u128 - fee: t.u128 - curator_deposit: t.u128 - status: t.pallet_child_bounties.ChildBountyStatus -} - -export function ChildBounty(value: t.pallet_child_bounties.ChildBounty) { - return value -} - -export type ChildBountyStatus = - | t.pallet_child_bounties.ChildBountyStatus.Added - | t.pallet_child_bounties.ChildBountyStatus.CuratorProposed - | t.pallet_child_bounties.ChildBountyStatus.Active - | t.pallet_child_bounties.ChildBountyStatus.PendingPayout -export namespace ChildBountyStatus { - export interface Added { - type: "Added" - } - export interface CuratorProposed { - type: "CuratorProposed" - curator: t.sp_core.crypto.AccountId32 - } - export interface Active { - type: "Active" - curator: t.sp_core.crypto.AccountId32 - } - export interface PendingPayout { - type: "PendingPayout" - curator: t.sp_core.crypto.AccountId32 - beneficiary: t.sp_core.crypto.AccountId32 - unlock_at: t.u32 - } - export function Added(): t.pallet_child_bounties.ChildBountyStatus.Added { - return { type: "Added" } - } - export function CuratorProposed( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.CuratorProposed { - return { type: "CuratorProposed", ...value } - } - export function Active( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.Active { - return { type: "Active", ...value } - } - export function PendingPayout( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.PendingPayout { - return { type: "PendingPayout", ...value } - } -} diff --git a/codegen/_output/rococo/pallet_collective/mod.ts b/codegen/_output/rococo/pallet_collective/mod.ts deleted file mode 100644 index d3ddd8c32..000000000 --- a/codegen/_output/rococo/pallet_collective/mod.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $rawOrigin: $.Codec = _codec.$258 - -export const $votes: $.Codec = _codec.$546 - -export type RawOrigin = - | t.pallet_collective.RawOrigin.Members - | t.pallet_collective.RawOrigin.Member - | t.pallet_collective.RawOrigin._Phantom -export namespace RawOrigin { - export interface Members { - type: "Members" - value: [t.u32, t.u32] - } - export interface Member { - type: "Member" - value: t.sp_core.crypto.AccountId32 - } - export interface _Phantom { - type: "_Phantom" - } - export function Members( - ...value: t.pallet_collective.RawOrigin.Members["value"] - ): t.pallet_collective.RawOrigin.Members { - return { type: "Members", value } - } - export function Member( - value: t.pallet_collective.RawOrigin.Member["value"], - ): t.pallet_collective.RawOrigin.Member { - return { type: "Member", value } - } - export function _Phantom(): t.pallet_collective.RawOrigin._Phantom { - return { type: "_Phantom" } - } -} - -export interface Votes { - index: t.u32 - threshold: t.u32 - ayes: Array - nays: Array - end: t.u32 -} - -export function Votes(value: t.pallet_collective.Votes) { - return value -} diff --git a/codegen/_output/rococo/pallet_democracy/conviction.ts b/codegen/_output/rococo/pallet_democracy/conviction.ts deleted file mode 100644 index dd2c491bb..000000000 --- a/codegen/_output/rococo/pallet_democracy/conviction.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $conviction: $.Codec = _codec.$235 - -export type Conviction = - | "None" - | "Locked1x" - | "Locked2x" - | "Locked3x" - | "Locked4x" - | "Locked5x" - | "Locked6x" diff --git a/codegen/_output/rococo/pallet_democracy/types.ts b/codegen/_output/rococo/pallet_democracy/types.ts deleted file mode 100644 index 3c2087e74..000000000 --- a/codegen/_output/rococo/pallet_democracy/types.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $delegations: $.Codec = _codec.$540 - -export const $referendumInfo: $.Codec = _codec.$533 - -export const $referendumStatus: $.Codec = _codec.$534 - -export const $tally: $.Codec = _codec.$535 - -export interface Delegations { - votes: t.u128 - capital: t.u128 -} - -export function Delegations(value: t.pallet_democracy.types.Delegations) { - return value -} - -export type ReferendumInfo = - | t.pallet_democracy.types.ReferendumInfo.Ongoing - | t.pallet_democracy.types.ReferendumInfo.Finished -export namespace ReferendumInfo { - export interface Ongoing { - type: "Ongoing" - value: t.pallet_democracy.types.ReferendumStatus - } - export interface Finished { - type: "Finished" - approved: boolean - end: t.u32 - } - export function Ongoing( - value: t.pallet_democracy.types.ReferendumInfo.Ongoing["value"], - ): t.pallet_democracy.types.ReferendumInfo.Ongoing { - return { type: "Ongoing", value } - } - export function Finished( - value: Omit, - ): t.pallet_democracy.types.ReferendumInfo.Finished { - return { type: "Finished", ...value } - } -} - -export interface ReferendumStatus { - end: t.u32 - proposal: t.frame_support.traits.preimages.Bounded - threshold: t.pallet_democracy.vote_threshold.VoteThreshold - delay: t.u32 - tally: t.pallet_democracy.types.Tally -} - -export function ReferendumStatus(value: t.pallet_democracy.types.ReferendumStatus) { - return value -} - -export interface Tally { - ayes: t.u128 - nays: t.u128 - turnout: t.u128 -} - -export function Tally(value: t.pallet_democracy.types.Tally) { - return value -} diff --git a/codegen/_output/rococo/pallet_democracy/vote.ts b/codegen/_output/rococo/pallet_democracy/vote.ts deleted file mode 100644 index 1125141fe..000000000 --- a/codegen/_output/rococo/pallet_democracy/vote.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $accountVote: $.Codec = _codec.$63 - -export const $priorLock: $.Codec = _codec.$541 - -export const $vote: $.Codec = _codec.$64 - -export const $voting: $.Codec = _codec.$536 - -export type AccountVote = - | t.pallet_democracy.vote.AccountVote.Standard - | t.pallet_democracy.vote.AccountVote.Split -export namespace AccountVote { - export interface Standard { - type: "Standard" - vote: t.pallet_democracy.vote.Vote - balance: t.u128 - } - export interface Split { - type: "Split" - aye: t.u128 - nay: t.u128 - } - export function Standard( - value: Omit, - ): t.pallet_democracy.vote.AccountVote.Standard { - return { type: "Standard", ...value } - } - export function Split( - value: Omit, - ): t.pallet_democracy.vote.AccountVote.Split { - return { type: "Split", ...value } - } -} - -export type PriorLock = [t.u32, t.u128] - -export function PriorLock(...value: t.pallet_democracy.vote.PriorLock) { - return value -} - -export type Vote = t.u8 - -export function Vote(value: t.pallet_democracy.vote.Vote) { - return value -} - -export type Voting = - | t.pallet_democracy.vote.Voting.Direct - | t.pallet_democracy.vote.Voting.Delegating -export namespace Voting { - export interface Direct { - type: "Direct" - votes: Array<[t.u32, t.pallet_democracy.vote.AccountVote]> - delegations: t.pallet_democracy.types.Delegations - prior: t.pallet_democracy.vote.PriorLock - } - export interface Delegating { - type: "Delegating" - balance: t.u128 - target: t.sp_core.crypto.AccountId32 - conviction: t.pallet_democracy.conviction.Conviction - delegations: t.pallet_democracy.types.Delegations - prior: t.pallet_democracy.vote.PriorLock - } - export function Direct( - value: Omit, - ): t.pallet_democracy.vote.Voting.Direct { - return { type: "Direct", ...value } - } - export function Delegating( - value: Omit, - ): t.pallet_democracy.vote.Voting.Delegating { - return { type: "Delegating", ...value } - } -} diff --git a/codegen/_output/rococo/pallet_democracy/vote_threshold.ts b/codegen/_output/rococo/pallet_democracy/vote_threshold.ts deleted file mode 100644 index 336aa57c0..000000000 --- a/codegen/_output/rococo/pallet_democracy/vote_threshold.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $voteThreshold: $.Codec = _codec.$62 - -export type VoteThreshold = "SuperMajorityApprove" | "SuperMajorityAgainst" | "SimpleMajority" diff --git a/codegen/_output/rococo/pallet_election_provider_multi_phase/mod.ts b/codegen/_output/rococo/pallet_election_provider_multi_phase/mod.ts deleted file mode 100644 index ab4732a0f..000000000 --- a/codegen/_output/rococo/pallet_election_provider_multi_phase/mod.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as signed from "./signed.ts" - -export const $electionCompute: $.Codec = - _codec.$87 - -export const $phase: $.Codec = _codec.$600 - -export const $rawSolution: $.Codec = _codec.$311 - -export const $readySolution: $.Codec = - _codec.$602 - -export const $roundSnapshot: $.Codec = - _codec.$603 - -export const $solutionOrSnapshotSize: $.Codec< - t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize -> = _codec.$363 - -export type ElectionCompute = "OnChain" | "Signed" | "Unsigned" | "Fallback" | "Emergency" - -export type Phase = - | t.pallet_election_provider_multi_phase.Phase.Off - | t.pallet_election_provider_multi_phase.Phase.Signed - | t.pallet_election_provider_multi_phase.Phase.Unsigned - | t.pallet_election_provider_multi_phase.Phase.Emergency -export namespace Phase { - export interface Off { - type: "Off" - } - export interface Signed { - type: "Signed" - } - export interface Unsigned { - type: "Unsigned" - value: [boolean, t.u32] - } - export interface Emergency { - type: "Emergency" - } - export function Off(): t.pallet_election_provider_multi_phase.Phase.Off { - return { type: "Off" } - } - export function Signed(): t.pallet_election_provider_multi_phase.Phase.Signed { - return { type: "Signed" } - } - export function Unsigned( - value: t.pallet_election_provider_multi_phase.Phase.Unsigned["value"], - ): t.pallet_election_provider_multi_phase.Phase.Unsigned { - return { type: "Unsigned", value } - } - export function Emergency(): t.pallet_election_provider_multi_phase.Phase.Emergency { - return { type: "Emergency" } - } -} - -export interface RawSolution { - solution: t.polkadot_runtime.NposCompactSolution16 - score: t.sp_npos_elections.ElectionScore - round: t.u32 -} - -export function RawSolution(value: t.pallet_election_provider_multi_phase.RawSolution) { - return value -} - -export interface ReadySolution { - supports: Array<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> - score: t.sp_npos_elections.ElectionScore - compute: t.pallet_election_provider_multi_phase.ElectionCompute -} - -export function ReadySolution(value: t.pallet_election_provider_multi_phase.ReadySolution) { - return value -} - -export interface RoundSnapshot { - voters: Array<[t.sp_core.crypto.AccountId32, t.u64, Array]> - targets: Array -} - -export function RoundSnapshot(value: t.pallet_election_provider_multi_phase.RoundSnapshot) { - return value -} - -export interface SolutionOrSnapshotSize { - voters: t.Compact - targets: t.Compact -} - -export function SolutionOrSnapshotSize( - value: t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize, -) { - return value -} diff --git a/codegen/_output/rococo/pallet_election_provider_multi_phase/signed.ts b/codegen/_output/rococo/pallet_election_provider_multi_phase/signed.ts deleted file mode 100644 index f4a92ea3f..000000000 --- a/codegen/_output/rococo/pallet_election_provider_multi_phase/signed.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $signedSubmission: $.Codec< - t.pallet_election_provider_multi_phase.signed.SignedSubmission -> = _codec.$610 - -export interface SignedSubmission { - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 - raw_solution: t.pallet_election_provider_multi_phase.RawSolution - call_fee: t.u128 -} - -export function SignedSubmission( - value: t.pallet_election_provider_multi_phase.signed.SignedSubmission, -) { - return value -} diff --git a/codegen/_output/rococo/pallet_elections_phragmen/mod.ts b/codegen/_output/rococo/pallet_elections_phragmen/mod.ts deleted file mode 100644 index b45ea1046..000000000 --- a/codegen/_output/rococo/pallet_elections_phragmen/mod.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $renouncing: $.Codec = _codec.$242 - -export const $seatHolder: $.Codec = _codec.$551 - -export const $voter: $.Codec = _codec.$552 - -export type Renouncing = - | t.pallet_elections_phragmen.Renouncing.Member - | t.pallet_elections_phragmen.Renouncing.RunnerUp - | t.pallet_elections_phragmen.Renouncing.Candidate -export namespace Renouncing { - export interface Member { - type: "Member" - } - export interface RunnerUp { - type: "RunnerUp" - } - export interface Candidate { - type: "Candidate" - value: t.Compact - } - export function Member(): t.pallet_elections_phragmen.Renouncing.Member { - return { type: "Member" } - } - export function RunnerUp(): t.pallet_elections_phragmen.Renouncing.RunnerUp { - return { type: "RunnerUp" } - } - export function Candidate( - value: t.pallet_elections_phragmen.Renouncing.Candidate["value"], - ): t.pallet_elections_phragmen.Renouncing.Candidate { - return { type: "Candidate", value } - } -} - -export interface SeatHolder { - who: t.sp_core.crypto.AccountId32 - stake: t.u128 - deposit: t.u128 -} - -export function SeatHolder(value: t.pallet_elections_phragmen.SeatHolder) { - return value -} - -export interface Voter { - votes: Array - stake: t.u128 - deposit: t.u128 -} - -export function Voter(value: t.pallet_elections_phragmen.Voter) { - return value -} diff --git a/codegen/_output/rococo/pallet_fast_unstake/types.ts b/codegen/_output/rococo/pallet_fast_unstake/types.ts deleted file mode 100644 index 9714fd8b5..000000000 --- a/codegen/_output/rococo/pallet_fast_unstake/types.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $unstakeRequest: $.Codec = _codec.$634 - -export interface UnstakeRequest { - stash: t.sp_core.crypto.AccountId32 - checked: Array - deposit: t.u128 -} - -export function UnstakeRequest(value: t.pallet_fast_unstake.types.UnstakeRequest) { - return value -} diff --git a/codegen/_output/rococo/pallet_grandpa/mod.ts b/codegen/_output/rococo/pallet_grandpa/mod.ts deleted file mode 100644 index fc0234231..000000000 --- a/codegen/_output/rococo/pallet_grandpa/mod.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $storedPendingChange: $.Codec = _codec.$517 - -export const $storedState: $.Codec = _codec.$516 - -export interface StoredPendingChange { - scheduled_at: t.u32 - delay: t.u32 - next_authorities: Array<[t.sp_finality_grandpa.app.Public, t.u64]> - forced: t.u32 | undefined -} - -export function StoredPendingChange(value: t.pallet_grandpa.StoredPendingChange) { - return value -} - -export type StoredState = - | t.pallet_grandpa.StoredState.Live - | t.pallet_grandpa.StoredState.PendingPause - | t.pallet_grandpa.StoredState.Paused - | t.pallet_grandpa.StoredState.PendingResume -export namespace StoredState { - export interface Live { - type: "Live" - } - export interface PendingPause { - type: "PendingPause" - scheduled_at: t.u32 - delay: t.u32 - } - export interface Paused { - type: "Paused" - } - export interface PendingResume { - type: "PendingResume" - scheduled_at: t.u32 - delay: t.u32 - } - export function Live(): t.pallet_grandpa.StoredState.Live { - return { type: "Live" } - } - export function PendingPause( - value: Omit, - ): t.pallet_grandpa.StoredState.PendingPause { - return { type: "PendingPause", ...value } - } - export function Paused(): t.pallet_grandpa.StoredState.Paused { - return { type: "Paused" } - } - export function PendingResume( - value: Omit, - ): t.pallet_grandpa.StoredState.PendingResume { - return { type: "PendingResume", ...value } - } -} diff --git a/codegen/_output/rococo/pallet_identity/types.ts b/codegen/_output/rococo/pallet_identity/types.ts deleted file mode 100644 index 61a8e7b01..000000000 --- a/codegen/_output/rococo/pallet_identity/types.ts +++ /dev/null @@ -1,498 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $data: $.Codec = _codec.$267 - -export const $identityField: $.Codec = _codec.$301 - -export const $identityInfo: $.Codec = _codec.$264 - -export const $judgement: $.Codec = _codec.$302 - -export const $registrarInfo: $.Codec = _codec.$576 - -export const $registration: $.Codec = _codec.$568 - -export type Data = - | t.pallet_identity.types.Data.None - | t.pallet_identity.types.Data.Raw0 - | t.pallet_identity.types.Data.Raw1 - | t.pallet_identity.types.Data.Raw2 - | t.pallet_identity.types.Data.Raw3 - | t.pallet_identity.types.Data.Raw4 - | t.pallet_identity.types.Data.Raw5 - | t.pallet_identity.types.Data.Raw6 - | t.pallet_identity.types.Data.Raw7 - | t.pallet_identity.types.Data.Raw8 - | t.pallet_identity.types.Data.Raw9 - | t.pallet_identity.types.Data.Raw10 - | t.pallet_identity.types.Data.Raw11 - | t.pallet_identity.types.Data.Raw12 - | t.pallet_identity.types.Data.Raw13 - | t.pallet_identity.types.Data.Raw14 - | t.pallet_identity.types.Data.Raw15 - | t.pallet_identity.types.Data.Raw16 - | t.pallet_identity.types.Data.Raw17 - | t.pallet_identity.types.Data.Raw18 - | t.pallet_identity.types.Data.Raw19 - | t.pallet_identity.types.Data.Raw20 - | t.pallet_identity.types.Data.Raw21 - | t.pallet_identity.types.Data.Raw22 - | t.pallet_identity.types.Data.Raw23 - | t.pallet_identity.types.Data.Raw24 - | t.pallet_identity.types.Data.Raw25 - | t.pallet_identity.types.Data.Raw26 - | t.pallet_identity.types.Data.Raw27 - | t.pallet_identity.types.Data.Raw28 - | t.pallet_identity.types.Data.Raw29 - | t.pallet_identity.types.Data.Raw30 - | t.pallet_identity.types.Data.Raw31 - | t.pallet_identity.types.Data.Raw32 - | t.pallet_identity.types.Data.BlakeTwo256 - | t.pallet_identity.types.Data.Sha256 - | t.pallet_identity.types.Data.Keccak256 - | t.pallet_identity.types.Data.ShaThree256 -export namespace Data { - export interface None { - type: "None" - } - export interface Raw0 { - type: "Raw0" - value: Uint8Array - } - export interface Raw1 { - type: "Raw1" - value: Uint8Array - } - export interface Raw2 { - type: "Raw2" - value: Uint8Array - } - export interface Raw3 { - type: "Raw3" - value: Uint8Array - } - export interface Raw4 { - type: "Raw4" - value: Uint8Array - } - export interface Raw5 { - type: "Raw5" - value: Uint8Array - } - export interface Raw6 { - type: "Raw6" - value: Uint8Array - } - export interface Raw7 { - type: "Raw7" - value: Uint8Array - } - export interface Raw8 { - type: "Raw8" - value: Uint8Array - } - export interface Raw9 { - type: "Raw9" - value: Uint8Array - } - export interface Raw10 { - type: "Raw10" - value: Uint8Array - } - export interface Raw11 { - type: "Raw11" - value: Uint8Array - } - export interface Raw12 { - type: "Raw12" - value: Uint8Array - } - export interface Raw13 { - type: "Raw13" - value: Uint8Array - } - export interface Raw14 { - type: "Raw14" - value: Uint8Array - } - export interface Raw15 { - type: "Raw15" - value: Uint8Array - } - export interface Raw16 { - type: "Raw16" - value: Uint8Array - } - export interface Raw17 { - type: "Raw17" - value: Uint8Array - } - export interface Raw18 { - type: "Raw18" - value: Uint8Array - } - export interface Raw19 { - type: "Raw19" - value: Uint8Array - } - export interface Raw20 { - type: "Raw20" - value: Uint8Array - } - export interface Raw21 { - type: "Raw21" - value: Uint8Array - } - export interface Raw22 { - type: "Raw22" - value: Uint8Array - } - export interface Raw23 { - type: "Raw23" - value: Uint8Array - } - export interface Raw24 { - type: "Raw24" - value: Uint8Array - } - export interface Raw25 { - type: "Raw25" - value: Uint8Array - } - export interface Raw26 { - type: "Raw26" - value: Uint8Array - } - export interface Raw27 { - type: "Raw27" - value: Uint8Array - } - export interface Raw28 { - type: "Raw28" - value: Uint8Array - } - export interface Raw29 { - type: "Raw29" - value: Uint8Array - } - export interface Raw30 { - type: "Raw30" - value: Uint8Array - } - export interface Raw31 { - type: "Raw31" - value: Uint8Array - } - export interface Raw32 { - type: "Raw32" - value: Uint8Array - } - export interface BlakeTwo256 { - type: "BlakeTwo256" - value: Uint8Array - } - export interface Sha256 { - type: "Sha256" - value: Uint8Array - } - export interface Keccak256 { - type: "Keccak256" - value: Uint8Array - } - export interface ShaThree256 { - type: "ShaThree256" - value: Uint8Array - } - export function None(): t.pallet_identity.types.Data.None { - return { type: "None" } - } - export function Raw0( - value: t.pallet_identity.types.Data.Raw0["value"], - ): t.pallet_identity.types.Data.Raw0 { - return { type: "Raw0", value } - } - export function Raw1( - value: t.pallet_identity.types.Data.Raw1["value"], - ): t.pallet_identity.types.Data.Raw1 { - return { type: "Raw1", value } - } - export function Raw2( - value: t.pallet_identity.types.Data.Raw2["value"], - ): t.pallet_identity.types.Data.Raw2 { - return { type: "Raw2", value } - } - export function Raw3( - value: t.pallet_identity.types.Data.Raw3["value"], - ): t.pallet_identity.types.Data.Raw3 { - return { type: "Raw3", value } - } - export function Raw4( - value: t.pallet_identity.types.Data.Raw4["value"], - ): t.pallet_identity.types.Data.Raw4 { - return { type: "Raw4", value } - } - export function Raw5( - value: t.pallet_identity.types.Data.Raw5["value"], - ): t.pallet_identity.types.Data.Raw5 { - return { type: "Raw5", value } - } - export function Raw6( - value: t.pallet_identity.types.Data.Raw6["value"], - ): t.pallet_identity.types.Data.Raw6 { - return { type: "Raw6", value } - } - export function Raw7( - value: t.pallet_identity.types.Data.Raw7["value"], - ): t.pallet_identity.types.Data.Raw7 { - return { type: "Raw7", value } - } - export function Raw8( - value: t.pallet_identity.types.Data.Raw8["value"], - ): t.pallet_identity.types.Data.Raw8 { - return { type: "Raw8", value } - } - export function Raw9( - value: t.pallet_identity.types.Data.Raw9["value"], - ): t.pallet_identity.types.Data.Raw9 { - return { type: "Raw9", value } - } - export function Raw10( - value: t.pallet_identity.types.Data.Raw10["value"], - ): t.pallet_identity.types.Data.Raw10 { - return { type: "Raw10", value } - } - export function Raw11( - value: t.pallet_identity.types.Data.Raw11["value"], - ): t.pallet_identity.types.Data.Raw11 { - return { type: "Raw11", value } - } - export function Raw12( - value: t.pallet_identity.types.Data.Raw12["value"], - ): t.pallet_identity.types.Data.Raw12 { - return { type: "Raw12", value } - } - export function Raw13( - value: t.pallet_identity.types.Data.Raw13["value"], - ): t.pallet_identity.types.Data.Raw13 { - return { type: "Raw13", value } - } - export function Raw14( - value: t.pallet_identity.types.Data.Raw14["value"], - ): t.pallet_identity.types.Data.Raw14 { - return { type: "Raw14", value } - } - export function Raw15( - value: t.pallet_identity.types.Data.Raw15["value"], - ): t.pallet_identity.types.Data.Raw15 { - return { type: "Raw15", value } - } - export function Raw16( - value: t.pallet_identity.types.Data.Raw16["value"], - ): t.pallet_identity.types.Data.Raw16 { - return { type: "Raw16", value } - } - export function Raw17( - value: t.pallet_identity.types.Data.Raw17["value"], - ): t.pallet_identity.types.Data.Raw17 { - return { type: "Raw17", value } - } - export function Raw18( - value: t.pallet_identity.types.Data.Raw18["value"], - ): t.pallet_identity.types.Data.Raw18 { - return { type: "Raw18", value } - } - export function Raw19( - value: t.pallet_identity.types.Data.Raw19["value"], - ): t.pallet_identity.types.Data.Raw19 { - return { type: "Raw19", value } - } - export function Raw20( - value: t.pallet_identity.types.Data.Raw20["value"], - ): t.pallet_identity.types.Data.Raw20 { - return { type: "Raw20", value } - } - export function Raw21( - value: t.pallet_identity.types.Data.Raw21["value"], - ): t.pallet_identity.types.Data.Raw21 { - return { type: "Raw21", value } - } - export function Raw22( - value: t.pallet_identity.types.Data.Raw22["value"], - ): t.pallet_identity.types.Data.Raw22 { - return { type: "Raw22", value } - } - export function Raw23( - value: t.pallet_identity.types.Data.Raw23["value"], - ): t.pallet_identity.types.Data.Raw23 { - return { type: "Raw23", value } - } - export function Raw24( - value: t.pallet_identity.types.Data.Raw24["value"], - ): t.pallet_identity.types.Data.Raw24 { - return { type: "Raw24", value } - } - export function Raw25( - value: t.pallet_identity.types.Data.Raw25["value"], - ): t.pallet_identity.types.Data.Raw25 { - return { type: "Raw25", value } - } - export function Raw26( - value: t.pallet_identity.types.Data.Raw26["value"], - ): t.pallet_identity.types.Data.Raw26 { - return { type: "Raw26", value } - } - export function Raw27( - value: t.pallet_identity.types.Data.Raw27["value"], - ): t.pallet_identity.types.Data.Raw27 { - return { type: "Raw27", value } - } - export function Raw28( - value: t.pallet_identity.types.Data.Raw28["value"], - ): t.pallet_identity.types.Data.Raw28 { - return { type: "Raw28", value } - } - export function Raw29( - value: t.pallet_identity.types.Data.Raw29["value"], - ): t.pallet_identity.types.Data.Raw29 { - return { type: "Raw29", value } - } - export function Raw30( - value: t.pallet_identity.types.Data.Raw30["value"], - ): t.pallet_identity.types.Data.Raw30 { - return { type: "Raw30", value } - } - export function Raw31( - value: t.pallet_identity.types.Data.Raw31["value"], - ): t.pallet_identity.types.Data.Raw31 { - return { type: "Raw31", value } - } - export function Raw32( - value: t.pallet_identity.types.Data.Raw32["value"], - ): t.pallet_identity.types.Data.Raw32 { - return { type: "Raw32", value } - } - export function BlakeTwo256( - value: t.pallet_identity.types.Data.BlakeTwo256["value"], - ): t.pallet_identity.types.Data.BlakeTwo256 { - return { type: "BlakeTwo256", value } - } - export function Sha256( - value: t.pallet_identity.types.Data.Sha256["value"], - ): t.pallet_identity.types.Data.Sha256 { - return { type: "Sha256", value } - } - export function Keccak256( - value: t.pallet_identity.types.Data.Keccak256["value"], - ): t.pallet_identity.types.Data.Keccak256 { - return { type: "Keccak256", value } - } - export function ShaThree256( - value: t.pallet_identity.types.Data.ShaThree256["value"], - ): t.pallet_identity.types.Data.ShaThree256 { - return { type: "ShaThree256", value } - } -} - -export type IdentityField = - | "Display" - | "Legal" - | "Web" - | "Riot" - | "Email" - | "PgpFingerprint" - | "Image" - | "Twitter" - -export interface IdentityInfo { - additional: Array<[t.pallet_identity.types.Data, t.pallet_identity.types.Data]> - display: t.pallet_identity.types.Data - legal: t.pallet_identity.types.Data - web: t.pallet_identity.types.Data - riot: t.pallet_identity.types.Data - email: t.pallet_identity.types.Data - pgp_fingerprint: Uint8Array | undefined - image: t.pallet_identity.types.Data - twitter: t.pallet_identity.types.Data -} - -export function IdentityInfo(value: t.pallet_identity.types.IdentityInfo) { - return value -} - -export type Judgement = - | t.pallet_identity.types.Judgement.Unknown - | t.pallet_identity.types.Judgement.FeePaid - | t.pallet_identity.types.Judgement.Reasonable - | t.pallet_identity.types.Judgement.KnownGood - | t.pallet_identity.types.Judgement.OutOfDate - | t.pallet_identity.types.Judgement.LowQuality - | t.pallet_identity.types.Judgement.Erroneous -export namespace Judgement { - export interface Unknown { - type: "Unknown" - } - export interface FeePaid { - type: "FeePaid" - value: t.u128 - } - export interface Reasonable { - type: "Reasonable" - } - export interface KnownGood { - type: "KnownGood" - } - export interface OutOfDate { - type: "OutOfDate" - } - export interface LowQuality { - type: "LowQuality" - } - export interface Erroneous { - type: "Erroneous" - } - export function Unknown(): t.pallet_identity.types.Judgement.Unknown { - return { type: "Unknown" } - } - export function FeePaid( - value: t.pallet_identity.types.Judgement.FeePaid["value"], - ): t.pallet_identity.types.Judgement.FeePaid { - return { type: "FeePaid", value } - } - export function Reasonable(): t.pallet_identity.types.Judgement.Reasonable { - return { type: "Reasonable" } - } - export function KnownGood(): t.pallet_identity.types.Judgement.KnownGood { - return { type: "KnownGood" } - } - export function OutOfDate(): t.pallet_identity.types.Judgement.OutOfDate { - return { type: "OutOfDate" } - } - export function LowQuality(): t.pallet_identity.types.Judgement.LowQuality { - return { type: "LowQuality" } - } - export function Erroneous(): t.pallet_identity.types.Judgement.Erroneous { - return { type: "Erroneous" } - } -} - -export interface RegistrarInfo { - account: t.sp_core.crypto.AccountId32 - fee: t.u128 - fields: t.u64 -} - -export function RegistrarInfo(value: t.pallet_identity.types.RegistrarInfo) { - return value -} - -export interface Registration { - judgements: Array<[t.u32, t.pallet_identity.types.Judgement]> - deposit: t.u128 - info: t.pallet_identity.types.IdentityInfo -} - -export function Registration(value: t.pallet_identity.types.Registration) { - return value -} diff --git a/codegen/_output/rococo/pallet_im_online/mod.ts b/codegen/_output/rococo/pallet_im_online/mod.ts deleted file mode 100644 index ff5fa7fb4..000000000 --- a/codegen/_output/rococo/pallet_im_online/mod.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as sr25519 from "./sr25519/mod.ts" - -export const $boundedOpaqueNetworkState: $.Codec = - _codec.$523 - -export const $heartbeat: $.Codec = _codec.$228 - -export interface BoundedOpaqueNetworkState { - peer_id: Uint8Array - external_addresses: Array -} - -export function BoundedOpaqueNetworkState(value: t.pallet_im_online.BoundedOpaqueNetworkState) { - return value -} - -export interface Heartbeat { - block_number: t.u32 - network_state: t.sp_core.offchain.OpaqueNetworkState - session_index: t.u32 - authority_index: t.u32 - validators_len: t.u32 -} - -export function Heartbeat(value: t.pallet_im_online.Heartbeat) { - return value -} diff --git a/codegen/_output/rococo/pallet_im_online/sr25519/app_sr25519.ts b/codegen/_output/rococo/pallet_im_online/sr25519/app_sr25519.ts deleted file mode 100644 index 61759e84e..000000000 --- a/codegen/_output/rococo/pallet_im_online/sr25519/app_sr25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$53 - -export const $signature: $.Codec = _codec.$233 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.pallet_im_online.sr25519.app_sr25519.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.pallet_im_online.sr25519.app_sr25519.Signature) { - return value -} diff --git a/codegen/_output/rococo/pallet_multisig/mod.ts b/codegen/_output/rococo/pallet_multisig/mod.ts deleted file mode 100644 index 3e930b936..000000000 --- a/codegen/_output/rococo/pallet_multisig/mod.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $multisig: $.Codec = _codec.$589 - -export const $timepoint: $.Codec = _codec.$82 - -export interface Multisig { - when: t.pallet_multisig.Timepoint - deposit: t.u128 - depositor: t.sp_core.crypto.AccountId32 - approvals: Array -} - -export function Multisig(value: t.pallet_multisig.Multisig) { - return value -} - -export interface Timepoint { - height: t.u32 - index: t.u32 -} - -export function Timepoint(value: t.pallet_multisig.Timepoint) { - return value -} diff --git a/codegen/_output/rococo/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts b/codegen/_output/rococo/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts deleted file mode 100644 index fb559f463..000000000 --- a/codegen/_output/rococo/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export const $accountId32: $.Codec< - t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 -> = _codec.$373 - -export type AccountId32 = - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove -export namespace AccountId32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_core.crypto.AccountId32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/rococo/pallet_nomination_pools/ConfigOp/mod.ts b/codegen/_output/rococo/pallet_nomination_pools/ConfigOp/mod.ts deleted file mode 100644 index d2e7ee56d..000000000 --- a/codegen/_output/rococo/pallet_nomination_pools/ConfigOp/mod.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as $$sp_core from "./$$sp_core/mod.ts" - -export const $$$u128: $.Codec = _codec.$371 - -export const $$$u32: $.Codec = _codec.$372 - -export type $$u128 = - | t.pallet_nomination_pools.ConfigOp.$$u128.Noop - | t.pallet_nomination_pools.ConfigOp.$$u128.Set - | t.pallet_nomination_pools.ConfigOp.$$u128.Remove -export namespace $$u128 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u128 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$u128.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$u128.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$u128.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$u128.Remove { - return { type: "Remove" } - } -} - -export type $$u32 = - | t.pallet_nomination_pools.ConfigOp.$$u32.Noop - | t.pallet_nomination_pools.ConfigOp.$$u32.Set - | t.pallet_nomination_pools.ConfigOp.$$u32.Remove -export namespace $$u32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$u32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$u32.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$u32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$u32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/rococo/pallet_nomination_pools/mod.ts b/codegen/_output/rococo/pallet_nomination_pools/mod.ts deleted file mode 100644 index e7343ef6b..000000000 --- a/codegen/_output/rococo/pallet_nomination_pools/mod.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as ConfigOp from "./ConfigOp/mod.ts" -export * as pallet from "./pallet.ts" - -export const $bondExtra: $.Codec = _codec.$370 - -export const $bondedPoolInner: $.Codec = _codec.$622 - -export const $poolMember: $.Codec = _codec.$617 - -export const $poolRoles: $.Codec = _codec.$623 - -export const $poolState: $.Codec = _codec.$91 - -export const $rewardPool: $.Codec = _codec.$624 - -export const $subPools: $.Codec = _codec.$625 - -export const $unbondPool: $.Codec = _codec.$626 - -export type BondExtra = - | t.pallet_nomination_pools.BondExtra.FreeBalance - | t.pallet_nomination_pools.BondExtra.Rewards -export namespace BondExtra { - export interface FreeBalance { - type: "FreeBalance" - value: t.u128 - } - export interface Rewards { - type: "Rewards" - } - export function FreeBalance( - value: t.pallet_nomination_pools.BondExtra.FreeBalance["value"], - ): t.pallet_nomination_pools.BondExtra.FreeBalance { - return { type: "FreeBalance", value } - } - export function Rewards(): t.pallet_nomination_pools.BondExtra.Rewards { - return { type: "Rewards" } - } -} - -export interface BondedPoolInner { - points: t.u128 - state: t.pallet_nomination_pools.PoolState - member_counter: t.u32 - roles: t.pallet_nomination_pools.PoolRoles -} - -export function BondedPoolInner(value: t.pallet_nomination_pools.BondedPoolInner) { - return value -} - -export interface PoolMember { - pool_id: t.u32 - points: t.u128 - last_recorded_reward_counter: t.sp_arithmetic.fixed_point.FixedU128 - unbonding_eras: Map -} - -export function PoolMember(value: t.pallet_nomination_pools.PoolMember) { - return value -} - -export interface PoolRoles { - depositor: t.sp_core.crypto.AccountId32 - root: t.sp_core.crypto.AccountId32 | undefined - nominator: t.sp_core.crypto.AccountId32 | undefined - state_toggler: t.sp_core.crypto.AccountId32 | undefined -} - -export function PoolRoles(value: t.pallet_nomination_pools.PoolRoles) { - return value -} - -export type PoolState = "Open" | "Blocked" | "Destroying" - -export interface RewardPool { - last_recorded_reward_counter: t.sp_arithmetic.fixed_point.FixedU128 - last_recorded_total_payouts: t.u128 - total_rewards_claimed: t.u128 -} - -export function RewardPool(value: t.pallet_nomination_pools.RewardPool) { - return value -} - -export interface SubPools { - no_era: t.pallet_nomination_pools.UnbondPool - with_era: Map -} - -export function SubPools(value: t.pallet_nomination_pools.SubPools) { - return value -} - -export interface UnbondPool { - points: t.u128 - balance: t.u128 -} - -export function UnbondPool(value: t.pallet_nomination_pools.UnbondPool) { - return value -} diff --git a/codegen/_output/rococo/pallet_preimage/mod.ts b/codegen/_output/rococo/pallet_preimage/mod.ts deleted file mode 100644 index 23fdfaa18..000000000 --- a/codegen/_output/rococo/pallet_preimage/mod.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $requestStatus: $.Codec = _codec.$451 - -export type RequestStatus = - | t.pallet_preimage.RequestStatus.Unrequested - | t.pallet_preimage.RequestStatus.Requested -export namespace RequestStatus { - export interface Unrequested { - type: "Unrequested" - deposit: [t.sp_core.crypto.AccountId32, t.u128] - len: t.u32 - } - export interface Requested { - type: "Requested" - deposit: [t.sp_core.crypto.AccountId32, t.u128] | undefined - count: t.u32 - len: t.u32 | undefined - } - export function Unrequested( - value: Omit, - ): t.pallet_preimage.RequestStatus.Unrequested { - return { type: "Unrequested", ...value } - } - export function Requested( - value: Omit, - ): t.pallet_preimage.RequestStatus.Requested { - return { type: "Requested", ...value } - } -} diff --git a/codegen/_output/rococo/pallet_proxy/mod.ts b/codegen/_output/rococo/pallet_proxy/mod.ts deleted file mode 100644 index 77dc9f480..000000000 --- a/codegen/_output/rococo/pallet_proxy/mod.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $announcement: $.Codec = _codec.$585 - -export const $proxyDefinition: $.Codec = _codec.$581 - -export interface Announcement { - real: t.sp_core.crypto.AccountId32 - call_hash: t.primitive_types.H256 - height: t.u32 -} - -export function Announcement(value: t.pallet_proxy.Announcement) { - return value -} - -export interface ProxyDefinition { - delegate: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 -} - -export function ProxyDefinition(value: t.pallet_proxy.ProxyDefinition) { - return value -} diff --git a/codegen/_output/rococo/pallet_scheduler/mod.ts b/codegen/_output/rococo/pallet_scheduler/mod.ts deleted file mode 100644 index 797decaad..000000000 --- a/codegen/_output/rococo/pallet_scheduler/mod.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $scheduled: $.Codec = _codec.$179 - -export interface Scheduled { - maybe_id: Uint8Array | undefined - priority: t.u8 - call: t.frame_support.traits.preimages.Bounded - maybe_periodic: [t.u32, t.u32] | undefined - origin: t.polkadot_runtime.OriginCaller -} - -export function Scheduled(value: t.pallet_scheduler.Scheduled) { - return value -} diff --git a/codegen/_output/rococo/pallet_staking/mod.ts b/codegen/_output/rococo/pallet_staking/mod.ts deleted file mode 100644 index 5843c06ba..000000000 --- a/codegen/_output/rococo/pallet_staking/mod.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet/mod.ts" -export * as slashing from "./slashing.ts" - -export const $activeEraInfo: $.Codec = _codec.$492 - -export const $eraRewardPoints: $.Codec = _codec.$495 - -export const $exposure: $.Codec = _codec.$57 - -export const $forcing: $.Codec = _codec.$499 - -export const $individualExposure: $.Codec = _codec.$60 - -export const $nominations: $.Codec = _codec.$490 - -export const $releases: $.Codec = _codec.$507 - -export const $rewardDestination: $.Codec = _codec.$203 - -export const $stakingLedger: $.Codec = _codec.$485 - -export const $unappliedSlash: $.Codec = _codec.$501 - -export const $unlockChunk: $.Codec = _codec.$487 - -export const $validatorPrefs: $.Codec = _codec.$40 - -export interface ActiveEraInfo { - index: t.u32 - start: t.u64 | undefined -} - -export function ActiveEraInfo(value: t.pallet_staking.ActiveEraInfo) { - return value -} - -export interface EraRewardPoints { - total: t.u32 - individual: Map -} - -export function EraRewardPoints(value: t.pallet_staking.EraRewardPoints) { - return value -} - -export interface Exposure { - total: t.Compact - own: t.Compact - others: Array -} - -export function Exposure(value: t.pallet_staking.Exposure) { - return value -} - -export type Forcing = "NotForcing" | "ForceNew" | "ForceNone" | "ForceAlways" - -export interface IndividualExposure { - who: t.sp_core.crypto.AccountId32 - value: t.Compact -} - -export function IndividualExposure(value: t.pallet_staking.IndividualExposure) { - return value -} - -export interface Nominations { - targets: Array - submitted_in: t.u32 - suppressed: boolean -} - -export function Nominations(value: t.pallet_staking.Nominations) { - return value -} - -export type Releases = - | "V1_0_0Ancient" - | "V2_0_0" - | "V3_0_0" - | "V4_0_0" - | "V5_0_0" - | "V6_0_0" - | "V7_0_0" - | "V8_0_0" - | "V9_0_0" - | "V10_0_0" - | "V11_0_0" - | "V12_0_0" - -export type RewardDestination = - | t.pallet_staking.RewardDestination.Staked - | t.pallet_staking.RewardDestination.Stash - | t.pallet_staking.RewardDestination.Controller - | t.pallet_staking.RewardDestination.Account - | t.pallet_staking.RewardDestination.None -export namespace RewardDestination { - export interface Staked { - type: "Staked" - } - export interface Stash { - type: "Stash" - } - export interface Controller { - type: "Controller" - } - export interface Account { - type: "Account" - value: t.sp_core.crypto.AccountId32 - } - export interface None { - type: "None" - } - export function Staked(): t.pallet_staking.RewardDestination.Staked { - return { type: "Staked" } - } - export function Stash(): t.pallet_staking.RewardDestination.Stash { - return { type: "Stash" } - } - export function Controller(): t.pallet_staking.RewardDestination.Controller { - return { type: "Controller" } - } - export function Account( - value: t.pallet_staking.RewardDestination.Account["value"], - ): t.pallet_staking.RewardDestination.Account { - return { type: "Account", value } - } - export function None(): t.pallet_staking.RewardDestination.None { - return { type: "None" } - } -} - -export interface StakingLedger { - stash: t.sp_core.crypto.AccountId32 - total: t.Compact - active: t.Compact - unlocking: Array - claimed_rewards: Array -} - -export function StakingLedger(value: t.pallet_staking.StakingLedger) { - return value -} - -export interface UnappliedSlash { - validator: t.sp_core.crypto.AccountId32 - own: t.u128 - others: Array<[t.sp_core.crypto.AccountId32, t.u128]> - reporters: Array - payout: t.u128 -} - -export function UnappliedSlash(value: t.pallet_staking.UnappliedSlash) { - return value -} - -export interface UnlockChunk { - value: t.Compact - era: t.Compact -} - -export function UnlockChunk(value: t.pallet_staking.UnlockChunk) { - return value -} - -export interface ValidatorPrefs { - commission: t.Compact - blocked: boolean -} - -export function ValidatorPrefs(value: t.pallet_staking.ValidatorPrefs) { - return value -} diff --git a/codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts b/codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts deleted file mode 100644 index 34e3f793e..000000000 --- a/codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { $ } from "../../../../../capi.ts" -import * as _codec from "../../../../../codecs.ts" -import type * as t from "../../../../../mod.ts" - -export const $perbill: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill -> = _codec.$210 - -export const $percent: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent -> = _codec.$209 - -export type Perbill = - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove -export namespace Perbill { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_arithmetic.per_things.Perbill - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove { - return { type: "Remove" } - } -} - -export type Percent = - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove -export namespace Percent { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_arithmetic.per_things.Percent - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/mod.ts b/codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/mod.ts deleted file mode 100644 index c64836e7a..000000000 --- a/codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/mod.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export * as $$sp_arithmetic from "./$$sp_arithmetic/mod.ts" - -export const $$$u128: $.Codec = _codec.$207 - -export const $$$u32: $.Codec = _codec.$208 - -export type $$u128 = - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove -export namespace $$u128 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u128 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove { - return { type: "Remove" } - } -} - -export type $$u32 = - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove -export namespace $$u32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/rococo/pallet_staking/slashing.ts b/codegen/_output/rococo/pallet_staking/slashing.ts deleted file mode 100644 index cc2a18d2a..000000000 --- a/codegen/_output/rococo/pallet_staking/slashing.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $slashingSpans: $.Codec = _codec.$503 - -export const $spanRecord: $.Codec = _codec.$504 - -export interface SlashingSpans { - span_index: t.u32 - last_start: t.u32 - last_nonzero_slash: t.u32 - prior: Array -} - -export function SlashingSpans(value: t.pallet_staking.slashing.SlashingSpans) { - return value -} - -export interface SpanRecord { - slashed: t.u128 - paid_out: t.u128 -} - -export function SpanRecord(value: t.pallet_staking.slashing.SpanRecord) { - return value -} diff --git a/codegen/_output/rococo/pallet_tips/mod.ts b/codegen/_output/rococo/pallet_tips/mod.ts deleted file mode 100644 index 522e3fef6..000000000 --- a/codegen/_output/rococo/pallet_tips/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $openTip: $.Codec = _codec.$598 - -export interface OpenTip { - reason: t.primitive_types.H256 - who: t.sp_core.crypto.AccountId32 - finder: t.sp_core.crypto.AccountId32 - deposit: t.u128 - closes: t.u32 | undefined - tips: Array<[t.sp_core.crypto.AccountId32, t.u128]> - finders_fee: boolean -} - -export function OpenTip(value: t.pallet_tips.OpenTip) { - return value -} diff --git a/codegen/_output/rococo/pallet_transaction_payment/mod.ts b/codegen/_output/rococo/pallet_transaction_payment/mod.ts deleted file mode 100644 index 9d33267c4..000000000 --- a/codegen/_output/rococo/pallet_transaction_payment/mod.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $releases: $.Codec = _codec.$480 - -export type Releases = "V1Ancient" | "V2" diff --git a/codegen/_output/rococo/pallet_treasury/mod.ts b/codegen/_output/rococo/pallet_treasury/mod.ts deleted file mode 100644 index 372f4c69e..000000000 --- a/codegen/_output/rococo/pallet_treasury/mod.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $proposal: $.Codec = _codec.$556 - -export interface Proposal { - proposer: t.sp_core.crypto.AccountId32 - value: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 - bond: t.u128 -} - -export function Proposal(value: t.pallet_treasury.Proposal) { - return value -} diff --git a/codegen/_output/rococo/pallet_vesting/mod.ts b/codegen/_output/rococo/pallet_vesting/mod.ts deleted file mode 100644 index e4f930af2..000000000 --- a/codegen/_output/rococo/pallet_vesting/mod.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as vesting_info from "./vesting_info.ts" - -export const $releases: $.Codec = _codec.$565 - -export type Releases = "V0" | "V1" diff --git a/codegen/_output/rococo/pallet_vesting/vesting_info.ts b/codegen/_output/rococo/pallet_vesting/vesting_info.ts deleted file mode 100644 index 493a479c6..000000000 --- a/codegen/_output/rococo/pallet_vesting/vesting_info.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $vestingInfo: $.Codec = _codec.$253 - -export interface VestingInfo { - locked: t.u128 - per_block: t.u128 - starting_block: t.u32 -} - -export function VestingInfo(value: t.pallet_vesting.vesting_info.VestingInfo) { - return value -} diff --git a/codegen/_output/rococo/pallets/Auctions.ts b/codegen/_output/rococo/pallets/Auctions.ts index 2a684058d..11ac25fc7 100644 --- a/codegen/_output/rococo/pallets/Auctions.ts +++ b/codegen/_output/rococo/pallets/Auctions.ts @@ -70,8 +70,8 @@ export const Winning = { * bid win. This amount is held throughout the range. */ export function bid( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { ...value, type: "bid" } } } @@ -80,7 +80,7 @@ export function bid( * * Can only be called by Root origin. */ -export function cancel_auction(): t.polkadot_runtime.RuntimeCall { +export function cancel_auction(): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { type: "cancel_auction" } } } @@ -92,7 +92,7 @@ export function cancel_auction(): t.polkadot_runtime.RuntimeCall { * `lease_period_index` of the initial lease period of the four that are to be auctioned. */ export function new_auction( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { ...value, type: "new_auction" } } } diff --git a/codegen/_output/rococo/pallets/Authorship.ts b/codegen/_output/rococo/pallets/Authorship.ts index 83838aae1..a8a3ed241 100644 --- a/codegen/_output/rococo/pallets/Authorship.ts +++ b/codegen/_output/rococo/pallets/Authorship.ts @@ -30,7 +30,7 @@ export const Uncles = { /** Provide a set of uncles. */ export function set_uncles( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Authorship", value: { ...value, type: "set_uncles" } } } diff --git a/codegen/_output/rococo/pallets/Babe.ts b/codegen/_output/rococo/pallets/Babe.ts index 622165525..60c8ec3e0 100644 --- a/codegen/_output/rococo/pallets/Babe.ts +++ b/codegen/_output/rococo/pallets/Babe.ts @@ -203,8 +203,8 @@ export const UnderConstruction = { * not been enacted yet. */ export function plan_config_change( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "plan_config_change" } } } @@ -215,8 +215,8 @@ export function plan_config_change( * be reported. */ export function report_equivocation( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "report_equivocation" } } } @@ -231,7 +231,7 @@ export function report_equivocation( * reporter. */ export function report_equivocation_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "report_equivocation_unsigned" } } } diff --git a/codegen/_output/rococo/pallets/Balances.ts b/codegen/_output/rococo/pallets/Balances.ts index e0a24d0af..94013e84d 100644 --- a/codegen/_output/rococo/pallets/Balances.ts +++ b/codegen/_output/rococo/pallets/Balances.ts @@ -88,8 +88,8 @@ export const TotalIssuance = { * # */ export function force_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "force_transfer" } } } @@ -99,8 +99,8 @@ export function force_transfer( * Can only be called by ROOT. */ export function force_unreserve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "force_unreserve" } } } @@ -115,8 +115,8 @@ export function force_unreserve( * The dispatch origin for this call is `root`. */ export function set_balance( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "set_balance" } } } @@ -148,8 +148,8 @@ export function set_balance( * # */ export function transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer" } } } @@ -173,8 +173,8 @@ export function transfer( * # */ export function transfer_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer_all" } } } @@ -187,7 +187,7 @@ export function transfer_all( * [`transfer`]: struct.Pallet.html#method.transfer */ export function transfer_keep_alive( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer_keep_alive" } } } diff --git a/codegen/_output/rococo/pallets/Bounties.ts b/codegen/_output/rococo/pallets/Bounties.ts index e28487021..38eb59c51 100644 --- a/codegen/_output/rococo/pallets/Bounties.ts +++ b/codegen/_output/rococo/pallets/Bounties.ts @@ -49,8 +49,8 @@ export const BountyDescriptions = { * # */ export function accept_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "accept_curator" } } } @@ -65,8 +65,8 @@ export function accept_curator( * # */ export function approve_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "approve_bounty" } } } @@ -84,8 +84,8 @@ export function approve_bounty( * # */ export function award_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "award_bounty" } } } @@ -101,8 +101,8 @@ export function award_bounty( * # */ export function claim_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "claim_bounty" } } } @@ -119,8 +119,8 @@ export function claim_bounty( * # */ export function close_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "close_bounty" } } } @@ -137,8 +137,8 @@ export function close_bounty( * # */ export function extend_bounty_expiry( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "extend_bounty_expiry" } } } @@ -157,8 +157,8 @@ export function extend_bounty_expiry( * - `description`: The description of this bounty. */ export function propose_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "propose_bounty" } } } @@ -172,8 +172,8 @@ export function propose_bounty( * # */ export function propose_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "propose_curator" } } } @@ -198,7 +198,7 @@ export function propose_curator( * # */ export function unassign_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "unassign_curator" } } } diff --git a/codegen/_output/rococo/pallets/ChildBounties.ts b/codegen/_output/rococo/pallets/ChildBounties.ts index 90a6ec24d..9e28106f9 100644 --- a/codegen/_output/rococo/pallets/ChildBounties.ts +++ b/codegen/_output/rococo/pallets/ChildBounties.ts @@ -72,8 +72,8 @@ export const ParentChildBounties = { * - `child_bounty_id`: Index of child bounty. */ export function accept_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "accept_curator" } } } @@ -99,8 +99,8 @@ export function accept_curator( * - `description`: Text description for the child-bounty. */ export function add_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "add_child_bounty" } } } @@ -124,8 +124,8 @@ export function add_child_bounty( * - `beneficiary`: Beneficiary account. */ export function award_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "award_child_bounty" } } } @@ -148,8 +148,8 @@ export function award_child_bounty( * - `child_bounty_id`: Index of child bounty. */ export function claim_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "claim_child_bounty" } } } @@ -178,8 +178,8 @@ export function claim_child_bounty( * - `child_bounty_id`: Index of child bounty. */ export function close_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "close_child_bounty" } } } @@ -201,8 +201,8 @@ export function close_child_bounty( * - `fee`: payment fee to child-bounty curator for execution. */ export function propose_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "propose_curator" } } } @@ -243,7 +243,7 @@ export function propose_curator( * - `child_bounty_id`: Index of child bounty. */ export function unassign_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "unassign_curator" } } } diff --git a/codegen/_output/rococo/pallets/Claims.ts b/codegen/_output/rococo/pallets/Claims.ts index 0c28984e6..edf86e907 100644 --- a/codegen/_output/rococo/pallets/Claims.ts +++ b/codegen/_output/rococo/pallets/Claims.ts @@ -64,8 +64,8 @@ export const Vesting = { * */ export function attest( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "attest" } } } @@ -96,8 +96,8 @@ export function attest( * */ export function claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "claim" } } } @@ -130,8 +130,8 @@ export function claim( * */ export function claim_attest( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "claim_attest" } } } @@ -153,13 +153,13 @@ export function claim_attest( * */ export function mint_claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "mint_claim" } } } export function move_claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "move_claim" } } } diff --git a/codegen/_output/rococo/pallets/Configuration.ts b/codegen/_output/rococo/pallets/Configuration.ts index 30cf79ed3..1406bb479 100644 --- a/codegen/_output/rococo/pallets/Configuration.ts +++ b/codegen/_output/rococo/pallets/Configuration.ts @@ -45,40 +45,40 @@ export const PendingConfigs = { */ export function set_bypass_consistency_check( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_bypass_consistency_check" } } } /** Set the availability period for parachains. */ export function set_chain_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_chain_availability_period" } } } /** Set the acceptance period for an included candidate. */ export function set_code_retention_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_code_retention_period" } } } /** Set the dispute conclusion by time out period. */ export function set_dispute_conclusion_by_time_out_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_conclusion_by_time_out_period" }, @@ -88,27 +88,30 @@ export function set_dispute_conclusion_by_time_out_period( /** Set the maximum number of dispute spam slots. */ export function set_dispute_max_spam_slots( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_max_spam_slots" } } } /** Set the dispute period, in number of sessions to keep for disputes. */ export function set_dispute_period( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_period" } } } /** Set the dispute post conclusion acceptance period. */ export function set_dispute_post_conclusion_acceptance_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_post_conclusion_acceptance_period" }, @@ -118,50 +121,50 @@ export function set_dispute_post_conclusion_acceptance_period( /** Set the parachain validator-group rotation frequency */ export function set_group_rotation_frequency( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_group_rotation_frequency" } } } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_capacity( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_capacity" } } } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export function set_hrmp_channel_max_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_message_size" } } } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_total_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_total_size" } } } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export function set_hrmp_max_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_message_num_per_candidate" }, @@ -171,10 +174,10 @@ export function set_hrmp_max_message_num_per_candidate( /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export function set_hrmp_max_parachain_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parachain_inbound_channels" }, @@ -184,10 +187,10 @@ export function set_hrmp_max_parachain_inbound_channels( /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export function set_hrmp_max_parachain_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parachain_outbound_channels" }, @@ -197,10 +200,10 @@ export function set_hrmp_max_parachain_outbound_channels( /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export function set_hrmp_max_parathread_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parathread_inbound_channels" }, @@ -210,10 +213,10 @@ export function set_hrmp_max_parathread_inbound_channels( /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export function set_hrmp_max_parathread_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parathread_outbound_channels" }, @@ -223,10 +226,10 @@ export function set_hrmp_max_parathread_outbound_channels( /** Sets the number of sessions after which an HRMP open channel request expires. */ export function set_hrmp_open_request_ttl( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_open_request_ttl" } } } @@ -236,64 +239,70 @@ export function set_hrmp_open_request_ttl( */ export function set_hrmp_recipient_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_recipient_deposit" } } } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export function set_hrmp_sender_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_sender_deposit" } } } /** Set the max validation code size for incoming upgrades. */ export function set_max_code_size( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_code_size" } } } /** Set the critical downward message size. */ export function set_max_downward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_downward_message_size" } } } /** Set the max head data size for paras. */ export function set_max_head_data_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_head_data_size" } } } /** Set the max POV block size for incoming upgrades. */ export function set_max_pov_size( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_pov_size" } } } /** Sets the maximum number of messages that a candidate can contain. */ export function set_max_upward_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_message_num_per_candidate" }, @@ -303,47 +312,50 @@ export function set_max_upward_message_num_per_candidate( /** Sets the maximum size of an upward message that can be sent by a candidate. */ export function set_max_upward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_message_size" } } } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_count( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_queue_count" } } } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_queue_size" } } } /** Set the maximum number of validators to use in parachain consensus. */ export function set_max_validators( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_validators" } } } /** Set the maximum number of validators to assign to any core. */ export function set_max_validators_per_core( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_validators_per_core" } } } @@ -355,10 +367,10 @@ export function set_max_validators_per_core( */ export function set_minimum_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_minimum_validation_upgrade_delay" }, @@ -367,15 +379,21 @@ export function set_minimum_validation_upgrade_delay( /** Set the total number of delay tranches. */ export function set_n_delay_tranches( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_n_delay_tranches" } } } /** Set the number of validators needed to approve a block. */ export function set_needed_approvals( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_needed_approvals" } } } @@ -384,121 +402,130 @@ export function set_needed_approvals( * Must be at least 1. */ export function set_no_show_slots( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_no_show_slots" } } } /** Set the number of parathread execution cores. */ export function set_parathread_cores( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_parathread_cores" } } } /** Set the number of retries for a particular parathread. */ export function set_parathread_retries( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_parathread_retries" } } } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export function set_pvf_checking_enabled( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_pvf_checking_enabled" } } } /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export function set_pvf_voting_ttl( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_pvf_voting_ttl" } } } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export function set_relay_vrf_modulo_samples( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_relay_vrf_modulo_samples" } } } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export function set_scheduling_lookahead( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_scheduling_lookahead" } } } /** Set the availability period for parathreads. */ export function set_thread_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_thread_availability_period" } } } /** Sets the maximum amount of weight any individual upward message may consume. */ export function set_ump_max_individual_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_ump_max_individual_weight" } } } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export function set_ump_service_total_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_ump_service_total_weight" } } } /** Set the validation upgrade cooldown. */ export function set_validation_upgrade_cooldown( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_validation_upgrade_cooldown" } } } /** Set the validation upgrade delay. */ export function set_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_validation_upgrade_delay" } } } /** Set the zeroth delay tranche width. */ export function set_zeroth_delay_tranche_width( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_zeroth_delay_tranche_width" } } } diff --git a/codegen/_output/rococo/pallets/Council.ts b/codegen/_output/rococo/pallets/Council.ts index d39cb07f8..c29fe873b 100644 --- a/codegen/_output/rococo/pallets/Council.ts +++ b/codegen/_output/rococo/pallets/Council.ts @@ -91,8 +91,8 @@ export const Voting = { * # */ export function close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "close" } } } @@ -131,8 +131,8 @@ export function close( * # */ export function close_old_weight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "close_old_weight" } } } @@ -153,8 +153,8 @@ export function close_old_weight( * # */ export function disapprove_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "disapprove_proposal" } } } @@ -172,8 +172,8 @@ export function disapprove_proposal( * # */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "execute" } } } @@ -207,8 +207,8 @@ export function execute( * # */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "propose" } } } @@ -247,8 +247,8 @@ export function propose( * # */ export function set_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "set_members" } } } @@ -270,7 +270,7 @@ export function set_members( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/rococo/pallets/Crowdloan.ts b/codegen/_output/rococo/pallets/Crowdloan.ts index a8dbd2785..688c6953b 100644 --- a/codegen/_output/rococo/pallets/Crowdloan.ts +++ b/codegen/_output/rococo/pallets/Crowdloan.ts @@ -47,8 +47,8 @@ export const NextFundIndex = { * Origin must be Signed, and the user must have contributed to the crowdloan. */ export function add_memo( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "add_memo" } } } @@ -57,8 +57,8 @@ export function add_memo( * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "contribute" } } } @@ -67,8 +67,8 @@ export function contribute( * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "contribute_all" } } } @@ -79,15 +79,15 @@ export function contribute_all( * by the parachain manager. */ export function create( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "create" } } } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export function dissolve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "dissolve" } } } @@ -97,8 +97,8 @@ export function dissolve( * Can only be called by Root origin. */ export function edit( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "edit" } } } @@ -108,8 +108,8 @@ export function edit( * Origin must be Signed, and the fund has non-zero raise. */ export function poke( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "poke" } } } @@ -121,8 +121,8 @@ export function poke( * Origin must be signed, but can come from anyone. */ export function refund( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "refund" } } } @@ -146,7 +146,7 @@ export function refund( * - `index`: The parachain to whose crowdloan the contribution was made. */ export function withdraw( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "withdraw" } } } diff --git a/codegen/_output/rococo/pallets/Democracy.ts b/codegen/_output/rococo/pallets/Democracy.ts index d2b0b6df4..6efe7333f 100644 --- a/codegen/_output/rococo/pallets/Democracy.ts +++ b/codegen/_output/rococo/pallets/Democracy.ts @@ -146,8 +146,8 @@ export const VotingOf = { * reasonable value). */ export function blacklist( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "blacklist" } } } @@ -161,8 +161,8 @@ export function blacklist( * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ export function cancel_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "cancel_proposal" } } } @@ -176,8 +176,8 @@ export function cancel_proposal( * # Weight: `O(1)`. */ export function cancel_referendum( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "cancel_referendum" } } } @@ -188,7 +188,7 @@ export function cancel_referendum( * * Weight: `O(1)`. */ -export function clear_public_proposals(): t.polkadot_runtime.RuntimeCall { +export function clear_public_proposals(): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { type: "clear_public_proposals" } } } @@ -215,8 +215,8 @@ export function clear_public_proposals(): t.polkadot_runtime.RuntimeCall { * voted on. Weight is charged as if maximum votes. */ export function delegate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "delegate" } } } @@ -231,8 +231,8 @@ export function delegate( * Weight: `O(1)`. */ export function emergency_cancel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "emergency_cancel" } } } @@ -245,8 +245,8 @@ export function emergency_cancel( * - `proposal_hash`: The preimage hash of the proposal. */ export function external_propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose" } } } @@ -264,8 +264,8 @@ export function external_propose( * Weight: `O(1)` */ export function external_propose_default( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose_default" } } } @@ -283,8 +283,8 @@ export function external_propose_default( * Weight: `O(1)` */ export function external_propose_majority( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose_majority" } } } @@ -307,8 +307,8 @@ export function external_propose_majority( * Weight: `O(1)` */ export function fast_track( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "fast_track" } } } @@ -324,8 +324,8 @@ export function fast_track( * Emits `Proposed`. */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "propose" } } } @@ -347,8 +347,8 @@ export function propose( * Weight is calculated for the maximum number of vote. */ export function remove_other_vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "remove_other_vote" } } } @@ -382,8 +382,8 @@ export function remove_other_vote( * Weight is calculated for the maximum number of vote. */ export function remove_vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "remove_vote" } } } @@ -396,8 +396,8 @@ export function remove_vote( * - `proposal`: The index of the proposal to second. */ export function second( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "second" } } } @@ -415,7 +415,7 @@ export function second( * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ -export function undelegate(): t.polkadot_runtime.RuntimeCall { +export function undelegate(): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { type: "undelegate" } } } @@ -429,8 +429,8 @@ export function undelegate(): t.polkadot_runtime.RuntimeCall { * Weight: `O(R)` with R number of vote of target. */ export function unlock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "unlock" } } } @@ -446,8 +446,8 @@ export function unlock( * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ export function veto_external( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "veto_external" } } } @@ -461,7 +461,7 @@ export function veto_external( * - `vote`: The vote configuration. */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/rococo/pallets/ElectionProviderMultiPhase.ts b/codegen/_output/rococo/pallets/ElectionProviderMultiPhase.ts index b916efffe..3a438e083 100644 --- a/codegen/_output/rococo/pallets/ElectionProviderMultiPhase.ts +++ b/codegen/_output/rococo/pallets/ElectionProviderMultiPhase.ts @@ -142,8 +142,8 @@ export const SnapshotMetadata = { * calling [`Call::set_emergency_election_result`]. */ export function governance_fallback( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "governance_fallback" } } } @@ -159,10 +159,10 @@ export function governance_fallback( */ export function set_emergency_election_result( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "set_emergency_election_result" }, @@ -178,10 +178,10 @@ export function set_emergency_election_result( */ export function set_minimum_untrusted_score( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "set_minimum_untrusted_score" }, @@ -200,8 +200,8 @@ export function set_minimum_untrusted_score( * might be rewarded, slashed, or get all or a part of the deposit back. */ export function submit( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "submit" } } } @@ -222,7 +222,7 @@ export function submit( * No deposit or reward is associated with this submission. */ export function submit_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "submit_unsigned" } } } diff --git a/codegen/_output/rococo/pallets/FastUnstake.ts b/codegen/_output/rococo/pallets/FastUnstake.ts index 00d6afe84..b659ceb40 100644 --- a/codegen/_output/rococo/pallets/FastUnstake.ts +++ b/codegen/_output/rococo/pallets/FastUnstake.ts @@ -55,8 +55,8 @@ export const Queue = { * Dispatch origin must be signed by the [`Config::ControlOrigin`]. */ export function control( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { ...value, type: "control" } } } @@ -69,7 +69,7 @@ export function control( * calling `register_fast_unstake`. This should probably be followed by a call to * `Staking::rebond`. */ -export function deregister(): t.polkadot_runtime.RuntimeCall { +export function deregister(): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { type: "deregister" } } } @@ -93,6 +93,6 @@ export function deregister(): t.polkadot_runtime.RuntimeCall { * the normal staking system, but they lose part of their unbonding chunks due to consuming * the chain's resources. */ -export function register_fast_unstake(): t.polkadot_runtime.RuntimeCall { +export function register_fast_unstake(): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { type: "register_fast_unstake" } } } diff --git a/codegen/_output/rococo/pallets/Grandpa.ts b/codegen/_output/rococo/pallets/Grandpa.ts index cc48e77eb..1b9dc06cf 100644 --- a/codegen/_output/rococo/pallets/Grandpa.ts +++ b/codegen/_output/rococo/pallets/Grandpa.ts @@ -79,8 +79,8 @@ export const State = { * Only callable by root. */ export function note_stalled( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "note_stalled" } } } @@ -91,8 +91,8 @@ export function note_stalled( * will be reported. */ export function report_equivocation( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "report_equivocation" } } } @@ -108,7 +108,7 @@ export function report_equivocation( * reporter. */ export function report_equivocation_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "report_equivocation_unsigned" } } } diff --git a/codegen/_output/rococo/pallets/Hrmp.ts b/codegen/_output/rococo/pallets/Hrmp.ts index 379910e66..574868fe8 100644 --- a/codegen/_output/rococo/pallets/Hrmp.ts +++ b/codegen/_output/rococo/pallets/Hrmp.ts @@ -172,8 +172,8 @@ export const HrmpWatermarks = { * Number of inbound and outbound channels for `para` must be provided as witness data of weighing. */ export function force_clean_hrmp( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_clean_hrmp" } } } @@ -186,8 +186,8 @@ export function force_clean_hrmp( * Relay Chain, e.g. a common good parachain. */ export function force_open_hrmp_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_open_hrmp_channel" } } } @@ -200,8 +200,11 @@ export function force_open_hrmp_channel( * Total number of closing channels must be provided as witness data of weighing. */ export function force_process_hrmp_close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_process_hrmp_close" } } } @@ -214,8 +217,8 @@ export function force_process_hrmp_close( * Total number of opening channels must be provided as witness data of weighing. */ export function force_process_hrmp_open( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_process_hrmp_open" } } } @@ -225,8 +228,11 @@ export function force_process_hrmp_open( * The channel will be opened only on the next session boundary. */ export function hrmp_accept_open_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_accept_open_channel" } } } @@ -241,8 +247,11 @@ export function hrmp_accept_open_channel( * witness data. */ export function hrmp_cancel_open_request( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_cancel_open_request" } } } @@ -253,8 +262,8 @@ export function hrmp_cancel_open_request( * The closure can only happen on a session change. */ export function hrmp_close_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_close_channel" } } } @@ -271,7 +280,7 @@ export function hrmp_close_channel( * change. */ export function hrmp_init_open_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_init_open_channel" } } } diff --git a/codegen/_output/rococo/pallets/Identity.ts b/codegen/_output/rococo/pallets/Identity.ts index d0caa8037..c538e7b1e 100644 --- a/codegen/_output/rococo/pallets/Identity.ts +++ b/codegen/_output/rococo/pallets/Identity.ts @@ -72,8 +72,8 @@ export const SuperOf = { * # */ export function add_registrar( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "add_registrar" } } } @@ -87,8 +87,8 @@ export function add_registrar( * sub identity of `sub`. */ export function add_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "add_sub" } } } @@ -112,8 +112,8 @@ export function add_sub( * # */ export function cancel_request( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "cancel_request" } } } @@ -137,7 +137,7 @@ export function cancel_request( * - One event. * # */ -export function clear_identity(): t.polkadot_runtime.RuntimeCall { +export function clear_identity(): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { type: "clear_identity" } } } @@ -163,8 +163,8 @@ export function clear_identity(): t.polkadot_runtime.RuntimeCall { * # */ export function kill_identity( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "kill_identity" } } } @@ -191,8 +191,8 @@ export function kill_identity( * # */ export function provide_judgement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "provide_judgement" } } } @@ -208,7 +208,7 @@ export function provide_judgement( * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ -export function quit_sub(): t.polkadot_runtime.RuntimeCall { +export function quit_sub(): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { type: "quit_sub" } } } @@ -222,8 +222,8 @@ export function quit_sub(): t.polkadot_runtime.RuntimeCall { * sub identity of `sub`. */ export function remove_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "remove_sub" } } } @@ -234,8 +234,8 @@ export function remove_sub( * sub identity of `sub`. */ export function rename_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "rename_sub" } } } @@ -265,8 +265,8 @@ export function rename_sub( * # */ export function request_judgement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "request_judgement" } } } @@ -286,8 +286,8 @@ export function request_judgement( * # */ export function set_account_id( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_account_id" } } } @@ -307,8 +307,8 @@ export function set_account_id( * # */ export function set_fee( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_fee" } } } @@ -328,8 +328,8 @@ export function set_fee( * # */ export function set_fields( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_fields" } } } @@ -355,8 +355,8 @@ export function set_fields( * # */ export function set_identity( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_identity" } } } @@ -384,7 +384,7 @@ export function set_identity( * # */ export function set_subs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_subs" } } } diff --git a/codegen/_output/rococo/pallets/ImOnline.ts b/codegen/_output/rococo/pallets/ImOnline.ts index b74de1209..17433d668 100644 --- a/codegen/_output/rococo/pallets/ImOnline.ts +++ b/codegen/_output/rococo/pallets/ImOnline.ts @@ -67,7 +67,7 @@ export const ReceivedHeartbeats = { * # */ export function heartbeat( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ImOnline", value: { ...value, type: "heartbeat" } } } diff --git a/codegen/_output/rococo/pallets/Indices.ts b/codegen/_output/rococo/pallets/Indices.ts index ef5567b14..6c48c3a11 100644 --- a/codegen/_output/rococo/pallets/Indices.ts +++ b/codegen/_output/rococo/pallets/Indices.ts @@ -32,8 +32,8 @@ export const Accounts = { * # */ export function claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "claim" } } } @@ -61,8 +61,8 @@ export function claim( * # */ export function force_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "force_transfer" } } } @@ -87,8 +87,8 @@ export function force_transfer( * # */ export function free( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "free" } } } @@ -113,8 +113,8 @@ export function free( * # */ export function freeze( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "freeze" } } } @@ -141,7 +141,7 @@ export function freeze( * # */ export function transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "transfer" } } } diff --git a/codegen/_output/rococo/pallets/Initializer.ts b/codegen/_output/rococo/pallets/Initializer.ts index 5c4fc4498..6bc8b433b 100644 --- a/codegen/_output/rococo/pallets/Initializer.ts +++ b/codegen/_output/rococo/pallets/Initializer.ts @@ -42,7 +42,7 @@ export const HasInitialized = { * chain are valid and should be finalized. */ export function force_approve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Initializer", value: { ...value, type: "force_approve" } } } diff --git a/codegen/_output/rococo/pallets/Multisig.ts b/codegen/_output/rococo/pallets/Multisig.ts index 326dd142b..361443f31 100644 --- a/codegen/_output/rococo/pallets/Multisig.ts +++ b/codegen/_output/rococo/pallets/Multisig.ts @@ -48,8 +48,8 @@ export const Multisigs = { * # */ export function approve_as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "approve_as_multi" } } } @@ -101,8 +101,8 @@ export function approve_as_multi( * # */ export function as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "as_multi" } } } @@ -125,8 +125,8 @@ export function as_multi( * # */ export function as_multi_threshold_1( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "as_multi_threshold_1" } } } @@ -159,7 +159,7 @@ export function as_multi_threshold_1( * # */ export function cancel_as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "cancel_as_multi" } } } diff --git a/codegen/_output/rococo/pallets/NominationPools.ts b/codegen/_output/rococo/pallets/NominationPools.ts index c524076d6..b27120267 100644 --- a/codegen/_output/rococo/pallets/NominationPools.ts +++ b/codegen/_output/rococo/pallets/NominationPools.ts @@ -201,8 +201,8 @@ export const SubPoolsStorage = { * Bonding extra funds implies an automatic payout of all pending rewards as well. */ export function bond_extra( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "bond_extra" } } } @@ -216,8 +216,8 @@ export function bond_extra( * account. */ export function chill( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "chill" } } } @@ -229,7 +229,7 @@ export function chill( * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". */ -export function claim_payout(): t.polkadot_runtime.RuntimeCall { +export function claim_payout(): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { type: "claim_payout" } } } @@ -253,8 +253,8 @@ export function claim_payout(): t.polkadot_runtime.RuntimeCall { * needs at have at least `amount + existential_deposit` transferrable. */ export function create( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "create" } } } @@ -271,8 +271,8 @@ export function create( * * Only a pool with [`PoolState::Open`] can be joined */ export function join( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "join" } } } @@ -286,8 +286,8 @@ export function join( * account. */ export function nominate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "nominate" } } } @@ -300,8 +300,8 @@ export function nominate( * they attempt to unbond. */ export function pool_withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "pool_withdraw_unbonded" } } } @@ -318,8 +318,8 @@ export function pool_withdraw_unbonded( * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. */ export function set_configs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_configs" } } } @@ -330,8 +330,8 @@ export function set_configs( * of the pool. */ export function set_metadata( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_metadata" } } } @@ -348,8 +348,8 @@ export function set_metadata( * then the state of the pool can be permissionlessly changed to `Destroying`. */ export function set_state( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_state" } } } @@ -384,8 +384,8 @@ export function set_state( * `NoMoreChunks` error from the staking system. */ export function unbond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "unbond" } } } @@ -399,8 +399,8 @@ export function unbond( * most pool members and they should be informed of changes to pool roles. */ export function update_roles( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "update_roles" } } } @@ -426,7 +426,7 @@ export function update_roles( * If the target is the depositor, the pool will be destroyed. */ export function withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "withdraw_unbonded" } } } diff --git a/codegen/_output/rococo/pallets/ParaInherent.ts b/codegen/_output/rococo/pallets/ParaInherent.ts index 99714c021..587241087 100644 --- a/codegen/_output/rococo/pallets/ParaInherent.ts +++ b/codegen/_output/rococo/pallets/ParaInherent.ts @@ -28,7 +28,7 @@ export const OnChainVotes = { /** Enter the paras inherent. This will process bitfields and backed candidates. */ export function enter( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ParaInherent", value: { ...value, type: "enter" } } } diff --git a/codegen/_output/rococo/pallets/Paras.ts b/codegen/_output/rococo/pallets/Paras.ts index 09d9e3990..89d407f49 100644 --- a/codegen/_output/rococo/pallets/Paras.ts +++ b/codegen/_output/rococo/pallets/Paras.ts @@ -265,15 +265,18 @@ export const UpgradeRestrictionSignal = { * the go-ahead signal while the PVF pre-checking feature is enabled. */ export function add_trusted_validation_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "add_trusted_validation_code" } } } /** Note a new block head for para within the context of the current block. */ export function force_note_new_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_note_new_head" } } } @@ -283,29 +286,32 @@ export function force_note_new_head( * initializer... */ export function force_queue_action( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_queue_action" } } } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export function force_schedule_code_upgrade( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_schedule_code_upgrade" } } } /** Set the storage for the parachain validation code immediately. */ export function force_set_current_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_set_current_code" } } } /** Set the storage for the current parachain head data immediately. */ export function force_set_current_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_set_current_head" } } } @@ -314,8 +320,11 @@ export function force_set_current_head( * enacts the results if that was the last vote before achieving the supermajority. */ export function include_pvf_check_statement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "include_pvf_check_statement" } } } @@ -327,7 +336,10 @@ export function include_pvf_check_statement( * dispatching. */ export function poke_unused_validation_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "poke_unused_validation_code" } } } diff --git a/codegen/_output/rococo/pallets/ParasDisputes.ts b/codegen/_output/rococo/pallets/ParasDisputes.ts index 599086069..6bac6f10b 100644 --- a/codegen/_output/rococo/pallets/ParasDisputes.ts +++ b/codegen/_output/rococo/pallets/ParasDisputes.ts @@ -64,6 +64,6 @@ export const SpamSlots = { value: _codec.$94, } -export function force_unfreeze(): t.polkadot_runtime.RuntimeCall { +export function force_unfreeze(): t.types.polkadot_runtime.RuntimeCall { return { type: "ParasDisputes", value: "force_unfreeze" } } diff --git a/codegen/_output/rococo/pallets/PhragmenElection.ts b/codegen/_output/rococo/pallets/PhragmenElection.ts index 5c8d82e72..e68ca3af3 100644 --- a/codegen/_output/rococo/pallets/PhragmenElection.ts +++ b/codegen/_output/rococo/pallets/PhragmenElection.ts @@ -80,8 +80,8 @@ export const Voting = { * # */ export function clean_defunct_voters( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "clean_defunct_voters" } } } @@ -106,8 +106,8 @@ export function clean_defunct_voters( * # */ export function remove_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "remove_member" } } } @@ -118,7 +118,7 @@ export function remove_member( * * The dispatch origin of this call must be signed and be a voter. */ -export function remove_voter(): t.polkadot_runtime.RuntimeCall { +export function remove_voter(): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { type: "remove_voter" } } } @@ -143,8 +143,8 @@ export function remove_voter(): t.polkadot_runtime.RuntimeCall { * # */ export function renounce_candidacy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "renounce_candidacy" } } } @@ -166,8 +166,8 @@ export function renounce_candidacy( * # */ export function submit_candidacy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "submit_candidacy" } } } @@ -197,7 +197,7 @@ export function submit_candidacy( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/rococo/pallets/Preimage.ts b/codegen/_output/rococo/pallets/Preimage.ts index 9a21906ce..669848d8a 100644 --- a/codegen/_output/rococo/pallets/Preimage.ts +++ b/codegen/_output/rococo/pallets/Preimage.ts @@ -26,8 +26,8 @@ export const StatusFor = { * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ export function note_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "note_preimage" } } } @@ -38,8 +38,8 @@ export function note_preimage( * a user may have paid, and take the control of the preimage out of their hands. */ export function request_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "request_preimage" } } } @@ -52,8 +52,8 @@ export function request_preimage( * - `len`: The length of the preimage of `hash`. */ export function unnote_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "unnote_preimage" } } } @@ -63,7 +63,7 @@ export function unnote_preimage( * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ export function unrequest_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "unrequest_preimage" } } } diff --git a/codegen/_output/rococo/pallets/Proxy.ts b/codegen/_output/rococo/pallets/Proxy.ts index 4c78c42c1..667c8dcc9 100644 --- a/codegen/_output/rococo/pallets/Proxy.ts +++ b/codegen/_output/rococo/pallets/Proxy.ts @@ -35,8 +35,8 @@ export const Proxies = { * zero. */ export function add_proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "add_proxy" } } } @@ -58,8 +58,8 @@ export function add_proxy( * - `call_hash`: The hash of the call to be made by the `real` account. */ export function announce( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "announce" } } } @@ -84,8 +84,8 @@ export function announce( * Fails if there are insufficient funds to pay for deposit. */ export function create_pure( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "create_pure" } } } @@ -108,8 +108,8 @@ export function create_pure( * account whose `pure` call has corresponding parameters. */ export function kill_pure( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "kill_pure" } } } @@ -127,8 +127,8 @@ export function kill_pure( * - `call`: The call to be made by the `real` account. */ export function proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "proxy" } } } @@ -146,8 +146,8 @@ export function proxy( * - `call`: The call to be made by the `real` account. */ export function proxy_announced( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "proxy_announced" } } } @@ -164,8 +164,8 @@ export function proxy_announced( * - `call_hash`: The hash of the call to be made. */ export function reject_announcement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "reject_announcement" } } } @@ -182,8 +182,8 @@ export function reject_announcement( * - `call_hash`: The hash of the call to be made by the `real` account. */ export function remove_announcement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "remove_announcement" } } } @@ -195,7 +195,7 @@ export function remove_announcement( * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ -export function remove_proxies(): t.polkadot_runtime.RuntimeCall { +export function remove_proxies(): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { type: "remove_proxies" } } } @@ -209,7 +209,7 @@ export function remove_proxies(): t.polkadot_runtime.RuntimeCall { * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ export function remove_proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "remove_proxy" } } } diff --git a/codegen/_output/rococo/pallets/Registrar.ts b/codegen/_output/rococo/pallets/Registrar.ts index 23b3d3c87..4a50b1a52 100644 --- a/codegen/_output/rococo/pallets/Registrar.ts +++ b/codegen/_output/rococo/pallets/Registrar.ts @@ -41,8 +41,8 @@ export const PendingSwap = { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function add_lock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "add_lock" } } } @@ -52,8 +52,8 @@ export function add_lock( * The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread. */ export function deregister( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "deregister" } } } @@ -66,8 +66,8 @@ export function deregister( * can be registered, including sub-1000 IDs which are System Parachains. */ export function force_register( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "force_register" } } } @@ -88,8 +88,8 @@ export function force_register( * The `Registered` event is emitted in case of success. */ export function register( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "register" } } } @@ -100,8 +100,8 @@ export function register( * Can only be called by the Root origin or the parachain. */ export function remove_lock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "remove_lock" } } } @@ -121,7 +121,7 @@ export function remove_lock( * ## Events * The `Reserved` event is emitted in case of success, which provides the ID reserved for use. */ -export function reserve(): t.polkadot_runtime.RuntimeCall { +export function reserve(): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { type: "reserve" } } } @@ -131,8 +131,11 @@ export function reserve(): t.polkadot_runtime.RuntimeCall { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function schedule_code_upgrade( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "schedule_code_upgrade" } } } @@ -142,8 +145,8 @@ export function schedule_code_upgrade( * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function set_current_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "set_current_head" } } } @@ -161,7 +164,7 @@ export function set_current_head( * and the auction deposit are switched. */ export function swap( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "swap" } } } diff --git a/codegen/_output/rococo/pallets/Scheduler.ts b/codegen/_output/rococo/pallets/Scheduler.ts index e499f3a60..98ed2fb19 100644 --- a/codegen/_output/rococo/pallets/Scheduler.ts +++ b/codegen/_output/rococo/pallets/Scheduler.ts @@ -35,22 +35,22 @@ export const Lookup = { /** Cancel an anonymously scheduled task. */ export function cancel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "cancel" } } } /** Cancel a named scheduled task. */ export function cancel_named( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "cancel_named" } } } /** Anonymously schedule a task. */ export function schedule( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule" } } } @@ -62,15 +62,15 @@ export function schedule( * # */ export function schedule_after( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_after" } } } /** Schedule a named task. */ export function schedule_named( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_named" } } } @@ -82,7 +82,7 @@ export function schedule_named( * # */ export function schedule_named_after( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_named_after" } } } diff --git a/codegen/_output/rococo/pallets/Session.ts b/codegen/_output/rococo/pallets/Session.ts index aaef74b84..d55559324 100644 --- a/codegen/_output/rococo/pallets/Session.ts +++ b/codegen/_output/rococo/pallets/Session.ts @@ -95,7 +95,7 @@ export const Validators = { * - DbWrites per key id: `KeyOwner` * # */ -export function purge_keys(): t.polkadot_runtime.RuntimeCall { +export function purge_keys(): t.types.polkadot_runtime.RuntimeCall { return { type: "Session", value: { type: "purge_keys" } } } @@ -116,7 +116,7 @@ export function purge_keys(): t.polkadot_runtime.RuntimeCall { * # */ export function set_keys( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Session", value: { ...value, type: "set_keys" } } } diff --git a/codegen/_output/rococo/pallets/Slots.ts b/codegen/_output/rococo/pallets/Slots.ts index f4380df60..c45355a0e 100644 --- a/codegen/_output/rococo/pallets/Slots.ts +++ b/codegen/_output/rococo/pallets/Slots.ts @@ -34,8 +34,8 @@ export const Leases = { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function clear_all_leases( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "clear_all_leases" } } } @@ -46,8 +46,8 @@ export function clear_all_leases( * The dispatch origin for this call must match `T::ForceOrigin`. */ export function force_lease( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "force_lease" } } } @@ -61,7 +61,7 @@ export function force_lease( * Origin must be signed, but can be called by anyone. */ export function trigger_onboard( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "trigger_onboard" } } } diff --git a/codegen/_output/rococo/pallets/Staking.ts b/codegen/_output/rococo/pallets/Staking.ts index 0797b8b1d..2ab1664ce 100644 --- a/codegen/_output/rococo/pallets/Staking.ts +++ b/codegen/_output/rococo/pallets/Staking.ts @@ -479,8 +479,8 @@ export const Validators = { * # */ export function bond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "bond" } } } @@ -502,8 +502,8 @@ export function bond( * # */ export function bond_extra( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "bond_extra" } } } @@ -515,8 +515,8 @@ export function bond_extra( * Parameters: era and indices of the slashes for that era to kill. */ export function cancel_deferred_slash( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "cancel_deferred_slash" } } } @@ -533,7 +533,7 @@ export function cancel_deferred_slash( * - Writes are limited to the `origin` account key. * # */ -export function chill(): t.polkadot_runtime.RuntimeCall { +export function chill(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "chill" } } } @@ -566,8 +566,8 @@ export function chill(): t.polkadot_runtime.RuntimeCall { * who do not satisfy these requirements. */ export function chill_other( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "chill_other" } } } @@ -577,8 +577,8 @@ export function chill_other( * can call this. */ export function force_apply_min_commission( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "force_apply_min_commission" } } } @@ -600,7 +600,7 @@ export function force_apply_min_commission( * - Write ForceEra * # */ -export function force_new_era(): t.polkadot_runtime.RuntimeCall { +export function force_new_era(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_new_era" } } } @@ -615,7 +615,7 @@ export function force_new_era(): t.polkadot_runtime.RuntimeCall { * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ -export function force_new_era_always(): t.polkadot_runtime.RuntimeCall { +export function force_new_era_always(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_new_era_always" } } } @@ -636,7 +636,7 @@ export function force_new_era_always(): t.polkadot_runtime.RuntimeCall { * - Write: ForceEra * # */ -export function force_no_eras(): t.polkadot_runtime.RuntimeCall { +export function force_no_eras(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_no_eras" } } } @@ -646,8 +646,8 @@ export function force_no_eras(): t.polkadot_runtime.RuntimeCall { * The dispatch origin must be Root. */ export function force_unstake( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "force_unstake" } } } @@ -661,8 +661,8 @@ export function force_unstake( * # */ export function increase_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "increase_validator_count" } } } @@ -680,8 +680,8 @@ export function increase_validator_count( * block any further nominations. */ export function kick( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "kick" } } } @@ -699,8 +699,8 @@ export function kick( * # */ export function nominate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "nominate" } } } @@ -728,8 +728,8 @@ export function nominate( * # */ export function payout_stakers( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "payout_stakers" } } } @@ -748,8 +748,8 @@ export function payout_stakers( * Refunds the transaction fees upon successful execution. */ export function reap_stash( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "reap_stash" } } } @@ -765,8 +765,8 @@ export function reap_stash( * # */ export function rebond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "rebond" } } } @@ -780,8 +780,8 @@ export function rebond( * # */ export function scale_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "scale_validator_count" } } } @@ -804,8 +804,8 @@ export function scale_validator_count( * # */ export function set_controller( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_controller" } } } @@ -815,8 +815,8 @@ export function set_controller( * The dispatch origin must be Root. */ export function set_invulnerables( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_invulnerables" } } } @@ -839,8 +839,8 @@ export function set_invulnerables( * # */ export function set_payee( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_payee" } } } @@ -864,8 +864,8 @@ export function set_payee( * to kick people under the new limits, `chill_other` should be called. */ export function set_staking_configs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_staking_configs" } } } @@ -880,8 +880,8 @@ export function set_staking_configs( * # */ export function set_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_validator_count" } } } @@ -907,8 +907,8 @@ export function set_validator_count( * See also [`Call::withdraw_unbonded`]. */ export function unbond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "unbond" } } } @@ -920,8 +920,8 @@ export function unbond( * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ export function validate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "validate" } } } @@ -943,7 +943,7 @@ export function validate( * # */ export function withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "withdraw_unbonded" } } } diff --git a/codegen/_output/rococo/pallets/System.ts b/codegen/_output/rococo/pallets/System.ts index 16aee5b15..1cf99909c 100644 --- a/codegen/_output/rococo/pallets/System.ts +++ b/codegen/_output/rococo/pallets/System.ts @@ -170,8 +170,8 @@ export const UpgradedToU32RefCount = { /** A dispatch that will fill the block weight up to the given ratio. */ export function fill_block( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "fill_block" } } } @@ -182,15 +182,15 @@ export function fill_block( * the prefix we are removing to accurately calculate the weight of this function. */ export function kill_prefix( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "kill_prefix" } } } /** Kill some items from storage. */ export function kill_storage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "kill_storage" } } } @@ -202,15 +202,15 @@ export function kill_storage( * # */ export function remark( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "remark" } } } /** Make some on-chain remark and emit event. */ export function remark_with_event( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "remark_with_event" } } } @@ -229,8 +229,8 @@ export function remark_with_event( * # */ export function set_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_code" } } } @@ -246,21 +246,21 @@ export function set_code( * block. # */ export function set_code_without_checks( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_code_without_checks" } } } /** Set the number of pages in the WebAssembly environment's heap. */ export function set_heap_pages( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_heap_pages" } } } /** Set some items of storage. */ export function set_storage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_storage" } } } diff --git a/codegen/_output/rococo/pallets/TechnicalCommittee.ts b/codegen/_output/rococo/pallets/TechnicalCommittee.ts index ef8a8713e..6673173eb 100644 --- a/codegen/_output/rococo/pallets/TechnicalCommittee.ts +++ b/codegen/_output/rococo/pallets/TechnicalCommittee.ts @@ -91,8 +91,8 @@ export const Voting = { * # */ export function close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "close" } } } @@ -131,8 +131,8 @@ export function close( * # */ export function close_old_weight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "close_old_weight" } } } @@ -153,8 +153,8 @@ export function close_old_weight( * # */ export function disapprove_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "disapprove_proposal" } } } @@ -172,8 +172,8 @@ export function disapprove_proposal( * # */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "execute" } } } @@ -207,8 +207,8 @@ export function execute( * # */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "propose" } } } @@ -247,8 +247,8 @@ export function propose( * # */ export function set_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "set_members" } } } @@ -270,7 +270,7 @@ export function set_members( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/rococo/pallets/TechnicalMembership.ts b/codegen/_output/rococo/pallets/TechnicalMembership.ts index 6c7460838..b5a5331f1 100644 --- a/codegen/_output/rococo/pallets/TechnicalMembership.ts +++ b/codegen/_output/rococo/pallets/TechnicalMembership.ts @@ -25,8 +25,8 @@ export const Prime = { * May only be called from `T::AddOrigin`. */ export function add_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "add_member" } } } @@ -38,8 +38,8 @@ export function add_member( * Prime membership is passed from the origin account to `new`, if extant. */ export function change_key( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "change_key" } } } @@ -48,7 +48,7 @@ export function change_key( * * May only be called from `T::PrimeOrigin`. */ -export function clear_prime(): t.polkadot_runtime.RuntimeCall { +export function clear_prime(): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { type: "clear_prime" } } } @@ -58,8 +58,8 @@ export function clear_prime(): t.polkadot_runtime.RuntimeCall { * May only be called from `T::RemoveOrigin`. */ export function remove_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "remove_member" } } } @@ -70,8 +70,8 @@ export function remove_member( * May only be called from `T::ResetOrigin`. */ export function reset_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "reset_members" } } } @@ -81,8 +81,8 @@ export function reset_members( * May only be called from `T::PrimeOrigin`. */ export function set_prime( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "set_prime" } } } @@ -94,7 +94,7 @@ export function set_prime( * Prime membership is *not* passed from `remove` to `add`, if extant. */ export function swap_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "swap_member" } } } diff --git a/codegen/_output/rococo/pallets/Timestamp.ts b/codegen/_output/rococo/pallets/Timestamp.ts index 7d2fbc242..98f831d32 100644 --- a/codegen/_output/rococo/pallets/Timestamp.ts +++ b/codegen/_output/rococo/pallets/Timestamp.ts @@ -32,7 +32,7 @@ export const Now = { type: "Plain", modifier: "Default", hashers: [], key: [], v * # */ export function set( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Timestamp", value: { ...value, type: "set" } } } diff --git a/codegen/_output/rococo/pallets/Tips.ts b/codegen/_output/rococo/pallets/Tips.ts index b4eaa8e83..6e7639c2f 100644 --- a/codegen/_output/rococo/pallets/Tips.ts +++ b/codegen/_output/rococo/pallets/Tips.ts @@ -46,8 +46,8 @@ export const Tips = { * # */ export function close_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "close_tip" } } } @@ -73,8 +73,8 @@ export function close_tip( * # */ export function report_awesome( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "report_awesome" } } } @@ -100,8 +100,8 @@ export function report_awesome( * # */ export function retract_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "retract_tip" } } } @@ -120,8 +120,8 @@ export function retract_tip( * # */ export function slash_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "slash_tip" } } } @@ -152,8 +152,8 @@ export function slash_tip( * # */ export function tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "tip" } } } @@ -182,7 +182,7 @@ export function tip( * # */ export function tip_new( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "tip_new" } } } diff --git a/codegen/_output/rococo/pallets/Treasury.ts b/codegen/_output/rococo/pallets/Treasury.ts index a65f54575..1f93620f2 100644 --- a/codegen/_output/rococo/pallets/Treasury.ts +++ b/codegen/_output/rococo/pallets/Treasury.ts @@ -42,8 +42,8 @@ export const Proposals = { * # */ export function approve_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "approve_proposal" } } } @@ -59,8 +59,8 @@ export function approve_proposal( * # */ export function propose_spend( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "propose_spend" } } } @@ -76,8 +76,8 @@ export function propose_spend( * # */ export function reject_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "reject_proposal" } } } @@ -99,8 +99,8 @@ export function reject_proposal( * exist altogether, thus there is no way it would have been approved in the first place. */ export function remove_approval( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "remove_approval" } } } @@ -115,7 +115,7 @@ export function remove_approval( * beneficiary. */ export function spend( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "spend" } } } diff --git a/codegen/_output/rococo/pallets/Ump.ts b/codegen/_output/rococo/pallets/Ump.ts index d362ca1a4..817207c25 100644 --- a/codegen/_output/rococo/pallets/Ump.ts +++ b/codegen/_output/rococo/pallets/Ump.ts @@ -109,7 +109,7 @@ export const RelayDispatchQueues = { * - `OverweightServiced`: On success. */ export function service_overweight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Ump", value: { ...value, type: "service_overweight" } } } diff --git a/codegen/_output/rococo/pallets/Utility.ts b/codegen/_output/rococo/pallets/Utility.ts index 05b704bba..1483e7521 100644 --- a/codegen/_output/rococo/pallets/Utility.ts +++ b/codegen/_output/rococo/pallets/Utility.ts @@ -16,8 +16,8 @@ import type * as t from "../mod.ts" * The dispatch origin for this call must be _Signed_. */ export function as_derivative( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "as_derivative" } } } @@ -43,8 +43,8 @@ export function as_derivative( * event is deposited. */ export function batch( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "batch" } } } @@ -65,8 +65,8 @@ export function batch( * # */ export function batch_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "batch_all" } } } @@ -83,8 +83,8 @@ export function batch_all( * # */ export function dispatch_as( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "dispatch_as" } } } @@ -105,7 +105,7 @@ export function dispatch_as( * # */ export function force_batch( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "force_batch" } } } diff --git a/codegen/_output/rococo/pallets/Vesting.ts b/codegen/_output/rococo/pallets/Vesting.ts index 7f5b1a9c8..878fb6f4e 100644 --- a/codegen/_output/rococo/pallets/Vesting.ts +++ b/codegen/_output/rococo/pallets/Vesting.ts @@ -45,8 +45,8 @@ export const Vesting = { * # */ export function force_vested_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "force_vested_transfer" } } } @@ -74,8 +74,8 @@ export function force_vested_transfer( * - `schedule2_index`: index of the second schedule to merge. */ export function merge_schedules( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "merge_schedules" } } } @@ -94,7 +94,7 @@ export function merge_schedules( * - Writes: Vesting Storage, Balances Locks, [Sender Account] * # */ -export function vest(): t.polkadot_runtime.RuntimeCall { +export function vest(): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { type: "vest" } } } @@ -116,8 +116,8 @@ export function vest(): t.polkadot_runtime.RuntimeCall { * # */ export function vest_other( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "vest_other" } } } @@ -141,7 +141,7 @@ export function vest_other( * # */ export function vested_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "vested_transfer" } } } diff --git a/codegen/_output/rococo/pallets/VoterList.ts b/codegen/_output/rococo/pallets/VoterList.ts index 67113267d..b9d36aa53 100644 --- a/codegen/_output/rococo/pallets/VoterList.ts +++ b/codegen/_output/rococo/pallets/VoterList.ts @@ -48,8 +48,8 @@ export const ListNodes = { * - and `origin` has a greater `Score` than `lighter`. */ export function put_in_front_of( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "VoterList", value: { ...value, type: "put_in_front_of" } } } @@ -66,7 +66,7 @@ export function put_in_front_of( * If `dislocated` does not exists, it returns an error. */ export function rebag( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "VoterList", value: { ...value, type: "rebag" } } } diff --git a/codegen/_output/rococo/pallets/XcmPallet.ts b/codegen/_output/rococo/pallets/XcmPallet.ts index 6cbbd708e..c03154e71 100644 --- a/codegen/_output/rococo/pallets/XcmPallet.ts +++ b/codegen/_output/rococo/pallets/XcmPallet.ts @@ -112,8 +112,8 @@ export const VersionNotifyTargets = { * to completion; only that *some* of it was executed. */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "execute" } } } @@ -125,8 +125,8 @@ export function execute( * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. */ export function force_default_xcm_version( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_default_xcm_version" } } } @@ -137,8 +137,8 @@ export function force_default_xcm_version( * - `location`: The location to which we should subscribe for XCM version notifications. */ export function force_subscribe_version_notify( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_subscribe_version_notify" } } } @@ -151,8 +151,8 @@ export function force_subscribe_version_notify( * notifications which we no longer desire. */ export function force_unsubscribe_version_notify( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_unsubscribe_version_notify" } } } @@ -165,8 +165,8 @@ export function force_unsubscribe_version_notify( * - `xcm_version`: The latest version of XCM that `location` supports. */ export function force_xcm_version( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_xcm_version" } } } @@ -191,8 +191,8 @@ export function force_xcm_version( * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_reserve_transfer_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "limited_reserve_transfer_assets" } } } @@ -216,8 +216,8 @@ export function limited_reserve_transfer_assets( * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_teleport_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "limited_teleport_assets" } } } @@ -240,14 +240,14 @@ export function limited_teleport_assets( * fees. */ export function reserve_transfer_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "reserve_transfer_assets" } } } export function send( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "send" } } } @@ -269,7 +269,7 @@ export function send( * fees. */ export function teleport_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "teleport_assets" } } } diff --git a/codegen/_output/rococo/polkadot_core_primitives.ts b/codegen/_output/rococo/polkadot_core_primitives.ts deleted file mode 100644 index a8e55ae4f..000000000 --- a/codegen/_output/rococo/polkadot_core_primitives.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $candidateHash: $.Codec = _codec.$114 - -export const $inboundDownwardMessage: $.Codec = - _codec.$683 - -export const $inboundHrmpMessage: $.Codec = - _codec.$691 - -export const $outboundHrmpMessage: $.Codec = - _codec.$392 - -export type CandidateHash = t.primitive_types.H256 - -export function CandidateHash(value: t.polkadot_core_primitives.CandidateHash) { - return value -} - -export interface InboundDownwardMessage { - sent_at: t.u32 - msg: Uint8Array -} - -export function InboundDownwardMessage(value: t.polkadot_core_primitives.InboundDownwardMessage) { - return value -} - -export interface InboundHrmpMessage { - sent_at: t.u32 - data: Uint8Array -} - -export function InboundHrmpMessage(value: t.polkadot_core_primitives.InboundHrmpMessage) { - return value -} - -export interface OutboundHrmpMessage { - recipient: t.polkadot_parachain.primitives.Id - data: Uint8Array -} - -export function OutboundHrmpMessage(value: t.polkadot_core_primitives.OutboundHrmpMessage) { - return value -} diff --git a/codegen/_output/rococo/polkadot_parachain/primitives.ts b/codegen/_output/rococo/polkadot_parachain/primitives.ts deleted file mode 100644 index f9ab65262..000000000 --- a/codegen/_output/rococo/polkadot_parachain/primitives.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $headData: $.Codec = _codec.$104 - -export const $hrmpChannelId: $.Codec = _codec.$112 - -export const $id: $.Codec = _codec.$98 - -export const $validationCode: $.Codec = _codec.$394 - -export const $validationCodeHash: $.Codec = - _codec.$103 - -export type HeadData = Uint8Array - -export function HeadData(value: t.polkadot_parachain.primitives.HeadData) { - return value -} - -export interface HrmpChannelId { - sender: t.polkadot_parachain.primitives.Id - recipient: t.polkadot_parachain.primitives.Id -} - -export function HrmpChannelId(value: t.polkadot_parachain.primitives.HrmpChannelId) { - return value -} - -export type Id = t.u32 - -export function Id(value: t.polkadot_parachain.primitives.Id) { - return value -} - -export type ValidationCode = Uint8Array - -export function ValidationCode(value: t.polkadot_parachain.primitives.ValidationCode) { - return value -} - -export type ValidationCodeHash = t.primitive_types.H256 - -export function ValidationCodeHash(value: t.polkadot_parachain.primitives.ValidationCodeHash) { - return value -} diff --git a/codegen/_output/rococo/polkadot_primitives/v2/assignment_app.ts b/codegen/_output/rococo/polkadot_primitives/v2/assignment_app.ts deleted file mode 100644 index b9c1ce5c3..000000000 --- a/codegen/_output/rococo/polkadot_primitives/v2/assignment_app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$214 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.assignment_app.Public) { - return value -} diff --git a/codegen/_output/rococo/polkadot_primitives/v2/collator_app.ts b/codegen/_output/rococo/polkadot_primitives/v2/collator_app.ts deleted file mode 100644 index eb96a0a47..000000000 --- a/codegen/_output/rococo/polkadot_primitives/v2/collator_app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$99 - -export const $signature: $.Codec = _codec.$100 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.collator_app.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.polkadot_primitives.v2.collator_app.Signature) { - return value -} diff --git a/codegen/_output/rococo/polkadot_primitives/v2/mod.ts b/codegen/_output/rococo/polkadot_primitives/v2/mod.ts deleted file mode 100644 index 4ad2b58a2..000000000 --- a/codegen/_output/rococo/polkadot_primitives/v2/mod.ts +++ /dev/null @@ -1,368 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as assignment_app from "./assignment_app.ts" -export * as collator_app from "./collator_app.ts" -export * as signed from "./signed.ts" -export * as validator_app from "./validator_app.ts" - -export const $availabilityBitfield: $.Codec = - _codec.$382 - -export const $backedCandidate: $.Codec = _codec.$388 - -export const $candidateCommitments: $.Codec = - _codec.$390 - -export const $candidateDescriptor: $.Codec = - _codec.$97 - -export const $candidateReceipt: $.Codec = _codec.$96 - -export const $committedCandidateReceipt: $.Codec< - t.polkadot_primitives.v2.CommittedCandidateReceipt -> = _codec.$389 - -export const $coreIndex: $.Codec = _codec.$105 - -export const $coreOccupied: $.Codec = _codec.$661 - -export const $disputeState: $.Codec = _codec.$699 - -export const $disputeStatement: $.Codec = _codec.$401 - -export const $disputeStatementSet: $.Codec = - _codec.$398 - -export const $groupIndex: $.Codec = _codec.$106 - -export const $inherentData: $.Codec = _codec.$379 - -export const $invalidDisputeStatementKind: $.Codec< - t.polkadot_primitives.v2.InvalidDisputeStatementKind -> = _codec.$403 - -export const $parathreadClaim: $.Codec = _codec.$658 - -export const $parathreadEntry: $.Codec = _codec.$657 - -export const $pvfCheckStatement: $.Codec = _codec.$405 - -export const $scrapedOnChainVotes: $.Codec = - _codec.$647 - -export const $sessionInfo: $.Codec = _codec.$696 - -export const $upgradeGoAhead: $.Codec = _codec.$676 - -export const $upgradeRestriction: $.Codec = _codec.$677 - -export const $validDisputeStatementKind: $.Codec< - t.polkadot_primitives.v2.ValidDisputeStatementKind -> = _codec.$402 - -export const $validatorIndex: $.Codec = _codec.$385 - -export const $validityAttestation: $.Codec = - _codec.$396 - -export type AvailabilityBitfield = $.BitSequence - -export function AvailabilityBitfield(value: t.polkadot_primitives.v2.AvailabilityBitfield) { - return value -} - -export interface BackedCandidate { - candidate: t.polkadot_primitives.v2.CommittedCandidateReceipt - validity_votes: Array - validator_indices: $.BitSequence -} - -export function BackedCandidate(value: t.polkadot_primitives.v2.BackedCandidate) { - return value -} - -export interface CandidateCommitments { - upward_messages: Array - horizontal_messages: Array - new_validation_code: t.polkadot_parachain.primitives.ValidationCode | undefined - head_data: t.polkadot_parachain.primitives.HeadData - processed_downward_messages: t.u32 - hrmp_watermark: t.u32 -} - -export function CandidateCommitments(value: t.polkadot_primitives.v2.CandidateCommitments) { - return value -} - -export interface CandidateDescriptor { - para_id: t.polkadot_parachain.primitives.Id - relay_parent: t.primitive_types.H256 - collator: t.polkadot_primitives.v2.collator_app.Public - persisted_validation_data_hash: t.primitive_types.H256 - pov_hash: t.primitive_types.H256 - erasure_root: t.primitive_types.H256 - signature: t.polkadot_primitives.v2.collator_app.Signature - para_head: t.primitive_types.H256 - validation_code_hash: t.polkadot_parachain.primitives.ValidationCodeHash -} - -export function CandidateDescriptor(value: t.polkadot_primitives.v2.CandidateDescriptor) { - return value -} - -export interface CandidateReceipt { - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - commitments_hash: t.primitive_types.H256 -} - -export function CandidateReceipt(value: t.polkadot_primitives.v2.CandidateReceipt) { - return value -} - -export interface CommittedCandidateReceipt { - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - commitments: t.polkadot_primitives.v2.CandidateCommitments -} - -export function CommittedCandidateReceipt( - value: t.polkadot_primitives.v2.CommittedCandidateReceipt, -) { - return value -} - -export type CoreIndex = t.u32 - -export function CoreIndex(value: t.polkadot_primitives.v2.CoreIndex) { - return value -} - -export type CoreOccupied = - | t.polkadot_primitives.v2.CoreOccupied.Parathread - | t.polkadot_primitives.v2.CoreOccupied.Parachain -export namespace CoreOccupied { - export interface Parathread { - type: "Parathread" - value: t.polkadot_primitives.v2.ParathreadEntry - } - export interface Parachain { - type: "Parachain" - } - export function Parathread( - value: t.polkadot_primitives.v2.CoreOccupied.Parathread["value"], - ): t.polkadot_primitives.v2.CoreOccupied.Parathread { - return { type: "Parathread", value } - } - export function Parachain(): t.polkadot_primitives.v2.CoreOccupied.Parachain { - return { type: "Parachain" } - } -} - -export interface DisputeState { - validators_for: $.BitSequence - validators_against: $.BitSequence - start: t.u32 - concluded_at: t.u32 | undefined -} - -export function DisputeState(value: t.polkadot_primitives.v2.DisputeState) { - return value -} - -export type DisputeStatement = - | t.polkadot_primitives.v2.DisputeStatement.Valid - | t.polkadot_primitives.v2.DisputeStatement.Invalid -export namespace DisputeStatement { - export interface Valid { - type: "Valid" - value: t.polkadot_primitives.v2.ValidDisputeStatementKind - } - export interface Invalid { - type: "Invalid" - value: t.polkadot_primitives.v2.InvalidDisputeStatementKind - } - export function Valid( - value: t.polkadot_primitives.v2.DisputeStatement.Valid["value"], - ): t.polkadot_primitives.v2.DisputeStatement.Valid { - return { type: "Valid", value } - } - export function Invalid( - value: t.polkadot_primitives.v2.DisputeStatement.Invalid["value"], - ): t.polkadot_primitives.v2.DisputeStatement.Invalid { - return { type: "Invalid", value } - } -} - -export interface DisputeStatementSet { - candidate_hash: t.polkadot_core_primitives.CandidateHash - session: t.u32 - statements: Array< - [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, - ] - > -} - -export function DisputeStatementSet(value: t.polkadot_primitives.v2.DisputeStatementSet) { - return value -} - -export type GroupIndex = t.u32 - -export function GroupIndex(value: t.polkadot_primitives.v2.GroupIndex) { - return value -} - -export interface InherentData { - bitfields: Array - backed_candidates: Array - disputes: Array - parent_header: t.sp_runtime.generic.header.Header -} - -export function InherentData(value: t.polkadot_primitives.v2.InherentData) { - return value -} - -export type InvalidDisputeStatementKind = "Explicit" - -export type ParathreadClaim = [ - t.polkadot_parachain.primitives.Id, - t.polkadot_primitives.v2.collator_app.Public, -] - -export function ParathreadClaim(...value: t.polkadot_primitives.v2.ParathreadClaim) { - return value -} - -export interface ParathreadEntry { - claim: t.polkadot_primitives.v2.ParathreadClaim - retries: t.u32 -} - -export function ParathreadEntry(value: t.polkadot_primitives.v2.ParathreadEntry) { - return value -} - -export interface PvfCheckStatement { - accept: boolean - subject: t.polkadot_parachain.primitives.ValidationCodeHash - session_index: t.u32 - validator_index: t.polkadot_primitives.v2.ValidatorIndex -} - -export function PvfCheckStatement(value: t.polkadot_primitives.v2.PvfCheckStatement) { - return value -} - -export interface ScrapedOnChainVotes { - session: t.u32 - backing_validators_per_candidate: Array< - [ - t.polkadot_primitives.v2.CandidateReceipt, - Array< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] - >, - ] - > - disputes: Array -} - -export function ScrapedOnChainVotes(value: t.polkadot_primitives.v2.ScrapedOnChainVotes) { - return value -} - -export interface SessionInfo { - active_validator_indices: Array - random_seed: Uint8Array - dispute_period: t.u32 - validators: Array - discovery_keys: Array - assignment_keys: Array - validator_groups: Array> - n_cores: t.u32 - zeroth_delay_tranche_width: t.u32 - relay_vrf_modulo_samples: t.u32 - n_delay_tranches: t.u32 - no_show_slots: t.u32 - needed_approvals: t.u32 -} - -export function SessionInfo(value: t.polkadot_primitives.v2.SessionInfo) { - return value -} - -export type UpgradeGoAhead = "Abort" | "GoAhead" - -export type UpgradeRestriction = "Present" - -export type ValidDisputeStatementKind = - | t.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit - | t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded - | t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid - | t.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking -export namespace ValidDisputeStatementKind { - export interface Explicit { - type: "Explicit" - } - export interface BackingSeconded { - type: "BackingSeconded" - value: t.primitive_types.H256 - } - export interface BackingValid { - type: "BackingValid" - value: t.primitive_types.H256 - } - export interface ApprovalChecking { - type: "ApprovalChecking" - } - export function Explicit(): t.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit { - return { type: "Explicit" } - } - export function BackingSeconded( - value: t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded["value"], - ): t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded { - return { type: "BackingSeconded", value } - } - export function BackingValid( - value: t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid["value"], - ): t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid { - return { type: "BackingValid", value } - } - export function ApprovalChecking(): t.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking { - return { type: "ApprovalChecking" } - } -} - -export type ValidatorIndex = t.u32 - -export function ValidatorIndex(value: t.polkadot_primitives.v2.ValidatorIndex) { - return value -} - -export type ValidityAttestation = - | t.polkadot_primitives.v2.ValidityAttestation.Implicit - | t.polkadot_primitives.v2.ValidityAttestation.Explicit -export namespace ValidityAttestation { - export interface Implicit { - type: "Implicit" - value: t.polkadot_primitives.v2.validator_app.Signature - } - export interface Explicit { - type: "Explicit" - value: t.polkadot_primitives.v2.validator_app.Signature - } - export function Implicit( - value: t.polkadot_primitives.v2.ValidityAttestation.Implicit["value"], - ): t.polkadot_primitives.v2.ValidityAttestation.Implicit { - return { type: "Implicit", value } - } - export function Explicit( - value: t.polkadot_primitives.v2.ValidityAttestation.Explicit["value"], - ): t.polkadot_primitives.v2.ValidityAttestation.Explicit { - return { type: "Explicit", value } - } -} diff --git a/codegen/_output/rococo/polkadot_primitives/v2/signed.ts b/codegen/_output/rococo/polkadot_primitives/v2/signed.ts deleted file mode 100644 index e2d11430f..000000000 --- a/codegen/_output/rococo/polkadot_primitives/v2/signed.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $uncheckedSigned: $.Codec = - _codec.$381 - -export interface UncheckedSigned { - payload: t.polkadot_primitives.v2.AvailabilityBitfield - validator_index: t.polkadot_primitives.v2.ValidatorIndex - signature: t.polkadot_primitives.v2.validator_app.Signature -} - -export function UncheckedSigned(value: t.polkadot_primitives.v2.signed.UncheckedSigned) { - return value -} diff --git a/codegen/_output/rococo/polkadot_primitives/v2/validator_app.ts b/codegen/_output/rococo/polkadot_primitives/v2/validator_app.ts deleted file mode 100644 index e56ded198..000000000 --- a/codegen/_output/rococo/polkadot_primitives/v2/validator_app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$213 - -export const $signature: $.Codec = _codec.$386 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.validator_app.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.polkadot_primitives.v2.validator_app.Signature) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime.ts b/codegen/_output/rococo/polkadot_runtime.ts deleted file mode 100644 index d07d2f44d..000000000 --- a/codegen/_output/rococo/polkadot_runtime.ts +++ /dev/null @@ -1,1223 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $nposCompactSolution16: $.Codec = _codec.$312 - -export const $originCaller: $.Codec = _codec.$256 - -export const $proxyType: $.Codec = _codec.$79 - -export const $runtime: $.Codec = _codec.$737 - -export const $runtimeCall: $.Codec = _codec.$181 - -export const $runtimeEvent: $.Codec = _codec.$19 - -export const $sessionKeys: $.Codec = _codec.$212 - -export interface NposCompactSolution16 { - votes1: Array<[t.Compact, t.Compact]> - votes2: Array< - [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, - ] - > - votes3: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes4: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes5: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes6: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes7: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes8: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes9: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes10: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes11: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes12: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes13: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes14: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes15: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes16: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > -} - -export function NposCompactSolution16(value: t.polkadot_runtime.NposCompactSolution16) { - return value -} - -export type OriginCaller = - | t.polkadot_runtime.OriginCaller.system - | t.polkadot_runtime.OriginCaller.Council - | t.polkadot_runtime.OriginCaller.TechnicalCommittee - | t.polkadot_runtime.OriginCaller.ParachainsOrigin - | t.polkadot_runtime.OriginCaller.XcmPallet - | t.polkadot_runtime.OriginCaller.Void -export namespace OriginCaller { - export interface system { - type: "system" - value: t.frame_support.dispatch.RawOrigin - } - export interface Council { - type: "Council" - value: t.pallet_collective.RawOrigin - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.RawOrigin - } - export interface ParachainsOrigin { - type: "ParachainsOrigin" - value: t.polkadot_runtime_parachains.origin.pallet.Origin - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Origin - } - export interface Void { - type: "Void" - value: t.sp_core.Void - } - export function system( - value: t.polkadot_runtime.OriginCaller.system["value"], - ): t.polkadot_runtime.OriginCaller.system { - return { type: "system", value } - } - export function Council( - value: t.polkadot_runtime.OriginCaller.Council["value"], - ): t.polkadot_runtime.OriginCaller.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.OriginCaller.TechnicalCommittee["value"], - ): t.polkadot_runtime.OriginCaller.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function ParachainsOrigin( - value: t.polkadot_runtime.OriginCaller.ParachainsOrigin["value"], - ): t.polkadot_runtime.OriginCaller.ParachainsOrigin { - return { type: "ParachainsOrigin", value } - } - export function XcmPallet( - value: t.polkadot_runtime.OriginCaller.XcmPallet["value"], - ): t.polkadot_runtime.OriginCaller.XcmPallet { - return { type: "XcmPallet", value } - } - export function Void( - value: t.polkadot_runtime.OriginCaller.Void["value"], - ): t.polkadot_runtime.OriginCaller.Void { - return { type: "Void", value } - } -} - -export type ProxyType = - | "Any" - | "NonTransfer" - | "Governance" - | "Staking" - | "IdentityJudgement" - | "CancelProxy" - | "Auction" - -export function Runtime() { - return null -} - -export type Runtime = null - -export type RuntimeCall = - | t.polkadot_runtime.RuntimeCall.System - | t.polkadot_runtime.RuntimeCall.Scheduler - | t.polkadot_runtime.RuntimeCall.Preimage - | t.polkadot_runtime.RuntimeCall.Babe - | t.polkadot_runtime.RuntimeCall.Timestamp - | t.polkadot_runtime.RuntimeCall.Indices - | t.polkadot_runtime.RuntimeCall.Balances - | t.polkadot_runtime.RuntimeCall.Authorship - | t.polkadot_runtime.RuntimeCall.Staking - | t.polkadot_runtime.RuntimeCall.Session - | t.polkadot_runtime.RuntimeCall.Grandpa - | t.polkadot_runtime.RuntimeCall.ImOnline - | t.polkadot_runtime.RuntimeCall.Democracy - | t.polkadot_runtime.RuntimeCall.Council - | t.polkadot_runtime.RuntimeCall.TechnicalCommittee - | t.polkadot_runtime.RuntimeCall.PhragmenElection - | t.polkadot_runtime.RuntimeCall.TechnicalMembership - | t.polkadot_runtime.RuntimeCall.Treasury - | t.polkadot_runtime.RuntimeCall.Claims - | t.polkadot_runtime.RuntimeCall.Vesting - | t.polkadot_runtime.RuntimeCall.Utility - | t.polkadot_runtime.RuntimeCall.Identity - | t.polkadot_runtime.RuntimeCall.Proxy - | t.polkadot_runtime.RuntimeCall.Multisig - | t.polkadot_runtime.RuntimeCall.Bounties - | t.polkadot_runtime.RuntimeCall.ChildBounties - | t.polkadot_runtime.RuntimeCall.Tips - | t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase - | t.polkadot_runtime.RuntimeCall.VoterList - | t.polkadot_runtime.RuntimeCall.NominationPools - | t.polkadot_runtime.RuntimeCall.FastUnstake - | t.polkadot_runtime.RuntimeCall.Configuration - | t.polkadot_runtime.RuntimeCall.ParasShared - | t.polkadot_runtime.RuntimeCall.ParaInclusion - | t.polkadot_runtime.RuntimeCall.ParaInherent - | t.polkadot_runtime.RuntimeCall.Paras - | t.polkadot_runtime.RuntimeCall.Initializer - | t.polkadot_runtime.RuntimeCall.Dmp - | t.polkadot_runtime.RuntimeCall.Ump - | t.polkadot_runtime.RuntimeCall.Hrmp - | t.polkadot_runtime.RuntimeCall.ParasDisputes - | t.polkadot_runtime.RuntimeCall.Registrar - | t.polkadot_runtime.RuntimeCall.Slots - | t.polkadot_runtime.RuntimeCall.Auctions - | t.polkadot_runtime.RuntimeCall.Crowdloan - | t.polkadot_runtime.RuntimeCall.XcmPallet -export namespace RuntimeCall { - export interface System { - type: "System" - value: t.frame_system.pallet.Call - } - export interface Scheduler { - type: "Scheduler" - value: t.pallet_scheduler.pallet.Call - } - export interface Preimage { - type: "Preimage" - value: t.pallet_preimage.pallet.Call - } - export interface Babe { - type: "Babe" - value: t.pallet_babe.pallet.Call - } - export interface Timestamp { - type: "Timestamp" - value: t.pallet_timestamp.pallet.Call - } - export interface Indices { - type: "Indices" - value: t.pallet_indices.pallet.Call - } - export interface Balances { - type: "Balances" - value: t.pallet_balances.pallet.Call - } - export interface Authorship { - type: "Authorship" - value: t.pallet_authorship.pallet.Call - } - export interface Staking { - type: "Staking" - value: t.pallet_staking.pallet.pallet.Call - } - export interface Session { - type: "Session" - value: t.pallet_session.pallet.Call - } - export interface Grandpa { - type: "Grandpa" - value: t.pallet_grandpa.pallet.Call - } - export interface ImOnline { - type: "ImOnline" - value: t.pallet_im_online.pallet.Call - } - export interface Democracy { - type: "Democracy" - value: t.pallet_democracy.pallet.Call - } - export interface Council { - type: "Council" - value: t.pallet_collective.pallet.Call - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.pallet.Call - } - export interface PhragmenElection { - type: "PhragmenElection" - value: t.pallet_elections_phragmen.pallet.Call - } - export interface TechnicalMembership { - type: "TechnicalMembership" - value: t.pallet_membership.pallet.Call - } - export interface Treasury { - type: "Treasury" - value: t.pallet_treasury.pallet.Call - } - export interface Claims { - type: "Claims" - value: t.polkadot_runtime_common.claims.pallet.Call - } - export interface Vesting { - type: "Vesting" - value: t.pallet_vesting.pallet.Call - } - export interface Utility { - type: "Utility" - value: t.pallet_utility.pallet.Call - } - export interface Identity { - type: "Identity" - value: t.pallet_identity.pallet.Call - } - export interface Proxy { - type: "Proxy" - value: t.pallet_proxy.pallet.Call - } - export interface Multisig { - type: "Multisig" - value: t.pallet_multisig.pallet.Call - } - export interface Bounties { - type: "Bounties" - value: t.pallet_bounties.pallet.Call - } - export interface ChildBounties { - type: "ChildBounties" - value: t.pallet_child_bounties.pallet.Call - } - export interface Tips { - type: "Tips" - value: t.pallet_tips.pallet.Call - } - export interface ElectionProviderMultiPhase { - type: "ElectionProviderMultiPhase" - value: t.pallet_election_provider_multi_phase.pallet.Call - } - export interface VoterList { - type: "VoterList" - value: t.pallet_bags_list.pallet.Call - } - export interface NominationPools { - type: "NominationPools" - value: t.pallet_nomination_pools.pallet.Call - } - export interface FastUnstake { - type: "FastUnstake" - value: t.pallet_fast_unstake.pallet.Call - } - export interface Configuration { - type: "Configuration" - value: t.polkadot_runtime_parachains.configuration.pallet.Call - } - export interface ParasShared { - type: "ParasShared" - value: t.polkadot_runtime_parachains.shared.pallet.Call - } - export interface ParaInclusion { - type: "ParaInclusion" - value: t.polkadot_runtime_parachains.inclusion.pallet.Call - } - export interface ParaInherent { - type: "ParaInherent" - value: t.polkadot_runtime_parachains.paras_inherent.pallet.Call - } - export interface Paras { - type: "Paras" - value: t.polkadot_runtime_parachains.paras.pallet.Call - } - export interface Initializer { - type: "Initializer" - value: t.polkadot_runtime_parachains.initializer.pallet.Call - } - export interface Dmp { - type: "Dmp" - value: t.polkadot_runtime_parachains.dmp.pallet.Call - } - export interface Ump { - type: "Ump" - value: t.polkadot_runtime_parachains.ump.pallet.Call - } - export interface Hrmp { - type: "Hrmp" - value: t.polkadot_runtime_parachains.hrmp.pallet.Call - } - export interface ParasDisputes { - type: "ParasDisputes" - value: t.polkadot_runtime_parachains.disputes.pallet.Call - } - export interface Registrar { - type: "Registrar" - value: t.polkadot_runtime_common.paras_registrar.pallet.Call - } - export interface Slots { - type: "Slots" - value: t.polkadot_runtime_common.slots.pallet.Call - } - export interface Auctions { - type: "Auctions" - value: t.polkadot_runtime_common.auctions.pallet.Call - } - export interface Crowdloan { - type: "Crowdloan" - value: t.polkadot_runtime_common.crowdloan.pallet.Call - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Call - } - export function System( - value: t.polkadot_runtime.RuntimeCall.System["value"], - ): t.polkadot_runtime.RuntimeCall.System { - return { type: "System", value } - } - export function Scheduler( - value: t.polkadot_runtime.RuntimeCall.Scheduler["value"], - ): t.polkadot_runtime.RuntimeCall.Scheduler { - return { type: "Scheduler", value } - } - export function Preimage( - value: t.polkadot_runtime.RuntimeCall.Preimage["value"], - ): t.polkadot_runtime.RuntimeCall.Preimage { - return { type: "Preimage", value } - } - export function Babe( - value: t.polkadot_runtime.RuntimeCall.Babe["value"], - ): t.polkadot_runtime.RuntimeCall.Babe { - return { type: "Babe", value } - } - export function Timestamp( - value: t.polkadot_runtime.RuntimeCall.Timestamp["value"], - ): t.polkadot_runtime.RuntimeCall.Timestamp { - return { type: "Timestamp", value } - } - export function Indices( - value: t.polkadot_runtime.RuntimeCall.Indices["value"], - ): t.polkadot_runtime.RuntimeCall.Indices { - return { type: "Indices", value } - } - export function Balances( - value: t.polkadot_runtime.RuntimeCall.Balances["value"], - ): t.polkadot_runtime.RuntimeCall.Balances { - return { type: "Balances", value } - } - export function Authorship( - value: t.polkadot_runtime.RuntimeCall.Authorship["value"], - ): t.polkadot_runtime.RuntimeCall.Authorship { - return { type: "Authorship", value } - } - export function Staking( - value: t.polkadot_runtime.RuntimeCall.Staking["value"], - ): t.polkadot_runtime.RuntimeCall.Staking { - return { type: "Staking", value } - } - export function Session( - value: t.polkadot_runtime.RuntimeCall.Session["value"], - ): t.polkadot_runtime.RuntimeCall.Session { - return { type: "Session", value } - } - export function Grandpa( - value: t.polkadot_runtime.RuntimeCall.Grandpa["value"], - ): t.polkadot_runtime.RuntimeCall.Grandpa { - return { type: "Grandpa", value } - } - export function ImOnline( - value: t.polkadot_runtime.RuntimeCall.ImOnline["value"], - ): t.polkadot_runtime.RuntimeCall.ImOnline { - return { type: "ImOnline", value } - } - export function Democracy( - value: t.polkadot_runtime.RuntimeCall.Democracy["value"], - ): t.polkadot_runtime.RuntimeCall.Democracy { - return { type: "Democracy", value } - } - export function Council( - value: t.polkadot_runtime.RuntimeCall.Council["value"], - ): t.polkadot_runtime.RuntimeCall.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.RuntimeCall.TechnicalCommittee["value"], - ): t.polkadot_runtime.RuntimeCall.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function PhragmenElection( - value: t.polkadot_runtime.RuntimeCall.PhragmenElection["value"], - ): t.polkadot_runtime.RuntimeCall.PhragmenElection { - return { type: "PhragmenElection", value } - } - export function TechnicalMembership( - value: t.polkadot_runtime.RuntimeCall.TechnicalMembership["value"], - ): t.polkadot_runtime.RuntimeCall.TechnicalMembership { - return { type: "TechnicalMembership", value } - } - export function Treasury( - value: t.polkadot_runtime.RuntimeCall.Treasury["value"], - ): t.polkadot_runtime.RuntimeCall.Treasury { - return { type: "Treasury", value } - } - export function Claims( - value: t.polkadot_runtime.RuntimeCall.Claims["value"], - ): t.polkadot_runtime.RuntimeCall.Claims { - return { type: "Claims", value } - } - export function Vesting( - value: t.polkadot_runtime.RuntimeCall.Vesting["value"], - ): t.polkadot_runtime.RuntimeCall.Vesting { - return { type: "Vesting", value } - } - export function Utility( - value: t.polkadot_runtime.RuntimeCall.Utility["value"], - ): t.polkadot_runtime.RuntimeCall.Utility { - return { type: "Utility", value } - } - export function Identity( - value: t.polkadot_runtime.RuntimeCall.Identity["value"], - ): t.polkadot_runtime.RuntimeCall.Identity { - return { type: "Identity", value } - } - export function Proxy( - value: t.polkadot_runtime.RuntimeCall.Proxy["value"], - ): t.polkadot_runtime.RuntimeCall.Proxy { - return { type: "Proxy", value } - } - export function Multisig( - value: t.polkadot_runtime.RuntimeCall.Multisig["value"], - ): t.polkadot_runtime.RuntimeCall.Multisig { - return { type: "Multisig", value } - } - export function Bounties( - value: t.polkadot_runtime.RuntimeCall.Bounties["value"], - ): t.polkadot_runtime.RuntimeCall.Bounties { - return { type: "Bounties", value } - } - export function ChildBounties( - value: t.polkadot_runtime.RuntimeCall.ChildBounties["value"], - ): t.polkadot_runtime.RuntimeCall.ChildBounties { - return { type: "ChildBounties", value } - } - export function Tips( - value: t.polkadot_runtime.RuntimeCall.Tips["value"], - ): t.polkadot_runtime.RuntimeCall.Tips { - return { type: "Tips", value } - } - export function ElectionProviderMultiPhase( - value: t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase["value"], - ): t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase { - return { type: "ElectionProviderMultiPhase", value } - } - export function VoterList( - value: t.polkadot_runtime.RuntimeCall.VoterList["value"], - ): t.polkadot_runtime.RuntimeCall.VoterList { - return { type: "VoterList", value } - } - export function NominationPools( - value: t.polkadot_runtime.RuntimeCall.NominationPools["value"], - ): t.polkadot_runtime.RuntimeCall.NominationPools { - return { type: "NominationPools", value } - } - export function FastUnstake( - value: t.polkadot_runtime.RuntimeCall.FastUnstake["value"], - ): t.polkadot_runtime.RuntimeCall.FastUnstake { - return { type: "FastUnstake", value } - } - export function Configuration( - value: t.polkadot_runtime.RuntimeCall.Configuration["value"], - ): t.polkadot_runtime.RuntimeCall.Configuration { - return { type: "Configuration", value } - } - export function ParasShared( - value: t.polkadot_runtime.RuntimeCall.ParasShared["value"], - ): t.polkadot_runtime.RuntimeCall.ParasShared { - return { type: "ParasShared", value } - } - export function ParaInclusion( - value: t.polkadot_runtime.RuntimeCall.ParaInclusion["value"], - ): t.polkadot_runtime.RuntimeCall.ParaInclusion { - return { type: "ParaInclusion", value } - } - export function ParaInherent( - value: t.polkadot_runtime.RuntimeCall.ParaInherent["value"], - ): t.polkadot_runtime.RuntimeCall.ParaInherent { - return { type: "ParaInherent", value } - } - export function Paras( - value: t.polkadot_runtime.RuntimeCall.Paras["value"], - ): t.polkadot_runtime.RuntimeCall.Paras { - return { type: "Paras", value } - } - export function Initializer( - value: t.polkadot_runtime.RuntimeCall.Initializer["value"], - ): t.polkadot_runtime.RuntimeCall.Initializer { - return { type: "Initializer", value } - } - export function Dmp( - value: t.polkadot_runtime.RuntimeCall.Dmp["value"], - ): t.polkadot_runtime.RuntimeCall.Dmp { - return { type: "Dmp", value } - } - export function Ump( - value: t.polkadot_runtime.RuntimeCall.Ump["value"], - ): t.polkadot_runtime.RuntimeCall.Ump { - return { type: "Ump", value } - } - export function Hrmp( - value: t.polkadot_runtime.RuntimeCall.Hrmp["value"], - ): t.polkadot_runtime.RuntimeCall.Hrmp { - return { type: "Hrmp", value } - } - export function ParasDisputes( - value: t.polkadot_runtime.RuntimeCall.ParasDisputes["value"], - ): t.polkadot_runtime.RuntimeCall.ParasDisputes { - return { type: "ParasDisputes", value } - } - export function Registrar( - value: t.polkadot_runtime.RuntimeCall.Registrar["value"], - ): t.polkadot_runtime.RuntimeCall.Registrar { - return { type: "Registrar", value } - } - export function Slots( - value: t.polkadot_runtime.RuntimeCall.Slots["value"], - ): t.polkadot_runtime.RuntimeCall.Slots { - return { type: "Slots", value } - } - export function Auctions( - value: t.polkadot_runtime.RuntimeCall.Auctions["value"], - ): t.polkadot_runtime.RuntimeCall.Auctions { - return { type: "Auctions", value } - } - export function Crowdloan( - value: t.polkadot_runtime.RuntimeCall.Crowdloan["value"], - ): t.polkadot_runtime.RuntimeCall.Crowdloan { - return { type: "Crowdloan", value } - } - export function XcmPallet( - value: t.polkadot_runtime.RuntimeCall.XcmPallet["value"], - ): t.polkadot_runtime.RuntimeCall.XcmPallet { - return { type: "XcmPallet", value } - } -} - -export type RuntimeEvent = - | t.polkadot_runtime.RuntimeEvent.System - | t.polkadot_runtime.RuntimeEvent.Scheduler - | t.polkadot_runtime.RuntimeEvent.Preimage - | t.polkadot_runtime.RuntimeEvent.Indices - | t.polkadot_runtime.RuntimeEvent.Balances - | t.polkadot_runtime.RuntimeEvent.TransactionPayment - | t.polkadot_runtime.RuntimeEvent.Staking - | t.polkadot_runtime.RuntimeEvent.Offences - | t.polkadot_runtime.RuntimeEvent.Session - | t.polkadot_runtime.RuntimeEvent.Grandpa - | t.polkadot_runtime.RuntimeEvent.ImOnline - | t.polkadot_runtime.RuntimeEvent.Democracy - | t.polkadot_runtime.RuntimeEvent.Council - | t.polkadot_runtime.RuntimeEvent.TechnicalCommittee - | t.polkadot_runtime.RuntimeEvent.PhragmenElection - | t.polkadot_runtime.RuntimeEvent.TechnicalMembership - | t.polkadot_runtime.RuntimeEvent.Treasury - | t.polkadot_runtime.RuntimeEvent.Claims - | t.polkadot_runtime.RuntimeEvent.Vesting - | t.polkadot_runtime.RuntimeEvent.Utility - | t.polkadot_runtime.RuntimeEvent.Identity - | t.polkadot_runtime.RuntimeEvent.Proxy - | t.polkadot_runtime.RuntimeEvent.Multisig - | t.polkadot_runtime.RuntimeEvent.Bounties - | t.polkadot_runtime.RuntimeEvent.ChildBounties - | t.polkadot_runtime.RuntimeEvent.Tips - | t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase - | t.polkadot_runtime.RuntimeEvent.VoterList - | t.polkadot_runtime.RuntimeEvent.NominationPools - | t.polkadot_runtime.RuntimeEvent.FastUnstake - | t.polkadot_runtime.RuntimeEvent.ParaInclusion - | t.polkadot_runtime.RuntimeEvent.Paras - | t.polkadot_runtime.RuntimeEvent.Ump - | t.polkadot_runtime.RuntimeEvent.Hrmp - | t.polkadot_runtime.RuntimeEvent.ParasDisputes - | t.polkadot_runtime.RuntimeEvent.Registrar - | t.polkadot_runtime.RuntimeEvent.Slots - | t.polkadot_runtime.RuntimeEvent.Auctions - | t.polkadot_runtime.RuntimeEvent.Crowdloan - | t.polkadot_runtime.RuntimeEvent.XcmPallet -export namespace RuntimeEvent { - export interface System { - type: "System" - value: t.frame_system.pallet.Event - } - export interface Scheduler { - type: "Scheduler" - value: t.pallet_scheduler.pallet.Event - } - export interface Preimage { - type: "Preimage" - value: t.pallet_preimage.pallet.Event - } - export interface Indices { - type: "Indices" - value: t.pallet_indices.pallet.Event - } - export interface Balances { - type: "Balances" - value: t.pallet_balances.pallet.Event - } - export interface TransactionPayment { - type: "TransactionPayment" - value: t.pallet_transaction_payment.pallet.Event - } - export interface Staking { - type: "Staking" - value: t.pallet_staking.pallet.pallet.Event - } - export interface Offences { - type: "Offences" - value: t.pallet_offences.pallet.Event - } - export interface Session { - type: "Session" - value: t.pallet_session.pallet.Event - } - export interface Grandpa { - type: "Grandpa" - value: t.pallet_grandpa.pallet.Event - } - export interface ImOnline { - type: "ImOnline" - value: t.pallet_im_online.pallet.Event - } - export interface Democracy { - type: "Democracy" - value: t.pallet_democracy.pallet.Event - } - export interface Council { - type: "Council" - value: t.pallet_collective.pallet.Event - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.pallet.Event - } - export interface PhragmenElection { - type: "PhragmenElection" - value: t.pallet_elections_phragmen.pallet.Event - } - export interface TechnicalMembership { - type: "TechnicalMembership" - value: t.pallet_membership.pallet.Event - } - export interface Treasury { - type: "Treasury" - value: t.pallet_treasury.pallet.Event - } - export interface Claims { - type: "Claims" - value: t.polkadot_runtime_common.claims.pallet.Event - } - export interface Vesting { - type: "Vesting" - value: t.pallet_vesting.pallet.Event - } - export interface Utility { - type: "Utility" - value: t.pallet_utility.pallet.Event - } - export interface Identity { - type: "Identity" - value: t.pallet_identity.pallet.Event - } - export interface Proxy { - type: "Proxy" - value: t.pallet_proxy.pallet.Event - } - export interface Multisig { - type: "Multisig" - value: t.pallet_multisig.pallet.Event - } - export interface Bounties { - type: "Bounties" - value: t.pallet_bounties.pallet.Event - } - export interface ChildBounties { - type: "ChildBounties" - value: t.pallet_child_bounties.pallet.Event - } - export interface Tips { - type: "Tips" - value: t.pallet_tips.pallet.Event - } - export interface ElectionProviderMultiPhase { - type: "ElectionProviderMultiPhase" - value: t.pallet_election_provider_multi_phase.pallet.Event - } - export interface VoterList { - type: "VoterList" - value: t.pallet_bags_list.pallet.Event - } - export interface NominationPools { - type: "NominationPools" - value: t.pallet_nomination_pools.pallet.Event - } - export interface FastUnstake { - type: "FastUnstake" - value: t.pallet_fast_unstake.pallet.Event - } - export interface ParaInclusion { - type: "ParaInclusion" - value: t.polkadot_runtime_parachains.inclusion.pallet.Event - } - export interface Paras { - type: "Paras" - value: t.polkadot_runtime_parachains.paras.pallet.Event - } - export interface Ump { - type: "Ump" - value: t.polkadot_runtime_parachains.ump.pallet.Event - } - export interface Hrmp { - type: "Hrmp" - value: t.polkadot_runtime_parachains.hrmp.pallet.Event - } - export interface ParasDisputes { - type: "ParasDisputes" - value: t.polkadot_runtime_parachains.disputes.pallet.Event - } - export interface Registrar { - type: "Registrar" - value: t.polkadot_runtime_common.paras_registrar.pallet.Event - } - export interface Slots { - type: "Slots" - value: t.polkadot_runtime_common.slots.pallet.Event - } - export interface Auctions { - type: "Auctions" - value: t.polkadot_runtime_common.auctions.pallet.Event - } - export interface Crowdloan { - type: "Crowdloan" - value: t.polkadot_runtime_common.crowdloan.pallet.Event - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Event - } - export function System( - value: t.polkadot_runtime.RuntimeEvent.System["value"], - ): t.polkadot_runtime.RuntimeEvent.System { - return { type: "System", value } - } - export function Scheduler( - value: t.polkadot_runtime.RuntimeEvent.Scheduler["value"], - ): t.polkadot_runtime.RuntimeEvent.Scheduler { - return { type: "Scheduler", value } - } - export function Preimage( - value: t.polkadot_runtime.RuntimeEvent.Preimage["value"], - ): t.polkadot_runtime.RuntimeEvent.Preimage { - return { type: "Preimage", value } - } - export function Indices( - value: t.polkadot_runtime.RuntimeEvent.Indices["value"], - ): t.polkadot_runtime.RuntimeEvent.Indices { - return { type: "Indices", value } - } - export function Balances( - value: t.polkadot_runtime.RuntimeEvent.Balances["value"], - ): t.polkadot_runtime.RuntimeEvent.Balances { - return { type: "Balances", value } - } - export function TransactionPayment( - value: t.polkadot_runtime.RuntimeEvent.TransactionPayment["value"], - ): t.polkadot_runtime.RuntimeEvent.TransactionPayment { - return { type: "TransactionPayment", value } - } - export function Staking( - value: t.polkadot_runtime.RuntimeEvent.Staking["value"], - ): t.polkadot_runtime.RuntimeEvent.Staking { - return { type: "Staking", value } - } - export function Offences( - value: t.polkadot_runtime.RuntimeEvent.Offences["value"], - ): t.polkadot_runtime.RuntimeEvent.Offences { - return { type: "Offences", value } - } - export function Session( - value: t.polkadot_runtime.RuntimeEvent.Session["value"], - ): t.polkadot_runtime.RuntimeEvent.Session { - return { type: "Session", value } - } - export function Grandpa( - value: t.polkadot_runtime.RuntimeEvent.Grandpa["value"], - ): t.polkadot_runtime.RuntimeEvent.Grandpa { - return { type: "Grandpa", value } - } - export function ImOnline( - value: t.polkadot_runtime.RuntimeEvent.ImOnline["value"], - ): t.polkadot_runtime.RuntimeEvent.ImOnline { - return { type: "ImOnline", value } - } - export function Democracy( - value: t.polkadot_runtime.RuntimeEvent.Democracy["value"], - ): t.polkadot_runtime.RuntimeEvent.Democracy { - return { type: "Democracy", value } - } - export function Council( - value: t.polkadot_runtime.RuntimeEvent.Council["value"], - ): t.polkadot_runtime.RuntimeEvent.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.RuntimeEvent.TechnicalCommittee["value"], - ): t.polkadot_runtime.RuntimeEvent.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function PhragmenElection( - value: t.polkadot_runtime.RuntimeEvent.PhragmenElection["value"], - ): t.polkadot_runtime.RuntimeEvent.PhragmenElection { - return { type: "PhragmenElection", value } - } - export function TechnicalMembership( - value: t.polkadot_runtime.RuntimeEvent.TechnicalMembership["value"], - ): t.polkadot_runtime.RuntimeEvent.TechnicalMembership { - return { type: "TechnicalMembership", value } - } - export function Treasury( - value: t.polkadot_runtime.RuntimeEvent.Treasury["value"], - ): t.polkadot_runtime.RuntimeEvent.Treasury { - return { type: "Treasury", value } - } - export function Claims( - value: t.polkadot_runtime.RuntimeEvent.Claims["value"], - ): t.polkadot_runtime.RuntimeEvent.Claims { - return { type: "Claims", value } - } - export function Vesting( - value: t.polkadot_runtime.RuntimeEvent.Vesting["value"], - ): t.polkadot_runtime.RuntimeEvent.Vesting { - return { type: "Vesting", value } - } - export function Utility( - value: t.polkadot_runtime.RuntimeEvent.Utility["value"], - ): t.polkadot_runtime.RuntimeEvent.Utility { - return { type: "Utility", value } - } - export function Identity( - value: t.polkadot_runtime.RuntimeEvent.Identity["value"], - ): t.polkadot_runtime.RuntimeEvent.Identity { - return { type: "Identity", value } - } - export function Proxy( - value: t.polkadot_runtime.RuntimeEvent.Proxy["value"], - ): t.polkadot_runtime.RuntimeEvent.Proxy { - return { type: "Proxy", value } - } - export function Multisig( - value: t.polkadot_runtime.RuntimeEvent.Multisig["value"], - ): t.polkadot_runtime.RuntimeEvent.Multisig { - return { type: "Multisig", value } - } - export function Bounties( - value: t.polkadot_runtime.RuntimeEvent.Bounties["value"], - ): t.polkadot_runtime.RuntimeEvent.Bounties { - return { type: "Bounties", value } - } - export function ChildBounties( - value: t.polkadot_runtime.RuntimeEvent.ChildBounties["value"], - ): t.polkadot_runtime.RuntimeEvent.ChildBounties { - return { type: "ChildBounties", value } - } - export function Tips( - value: t.polkadot_runtime.RuntimeEvent.Tips["value"], - ): t.polkadot_runtime.RuntimeEvent.Tips { - return { type: "Tips", value } - } - export function ElectionProviderMultiPhase( - value: t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase["value"], - ): t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase { - return { type: "ElectionProviderMultiPhase", value } - } - export function VoterList( - value: t.polkadot_runtime.RuntimeEvent.VoterList["value"], - ): t.polkadot_runtime.RuntimeEvent.VoterList { - return { type: "VoterList", value } - } - export function NominationPools( - value: t.polkadot_runtime.RuntimeEvent.NominationPools["value"], - ): t.polkadot_runtime.RuntimeEvent.NominationPools { - return { type: "NominationPools", value } - } - export function FastUnstake( - value: t.polkadot_runtime.RuntimeEvent.FastUnstake["value"], - ): t.polkadot_runtime.RuntimeEvent.FastUnstake { - return { type: "FastUnstake", value } - } - export function ParaInclusion( - value: t.polkadot_runtime.RuntimeEvent.ParaInclusion["value"], - ): t.polkadot_runtime.RuntimeEvent.ParaInclusion { - return { type: "ParaInclusion", value } - } - export function Paras( - value: t.polkadot_runtime.RuntimeEvent.Paras["value"], - ): t.polkadot_runtime.RuntimeEvent.Paras { - return { type: "Paras", value } - } - export function Ump( - value: t.polkadot_runtime.RuntimeEvent.Ump["value"], - ): t.polkadot_runtime.RuntimeEvent.Ump { - return { type: "Ump", value } - } - export function Hrmp( - value: t.polkadot_runtime.RuntimeEvent.Hrmp["value"], - ): t.polkadot_runtime.RuntimeEvent.Hrmp { - return { type: "Hrmp", value } - } - export function ParasDisputes( - value: t.polkadot_runtime.RuntimeEvent.ParasDisputes["value"], - ): t.polkadot_runtime.RuntimeEvent.ParasDisputes { - return { type: "ParasDisputes", value } - } - export function Registrar( - value: t.polkadot_runtime.RuntimeEvent.Registrar["value"], - ): t.polkadot_runtime.RuntimeEvent.Registrar { - return { type: "Registrar", value } - } - export function Slots( - value: t.polkadot_runtime.RuntimeEvent.Slots["value"], - ): t.polkadot_runtime.RuntimeEvent.Slots { - return { type: "Slots", value } - } - export function Auctions( - value: t.polkadot_runtime.RuntimeEvent.Auctions["value"], - ): t.polkadot_runtime.RuntimeEvent.Auctions { - return { type: "Auctions", value } - } - export function Crowdloan( - value: t.polkadot_runtime.RuntimeEvent.Crowdloan["value"], - ): t.polkadot_runtime.RuntimeEvent.Crowdloan { - return { type: "Crowdloan", value } - } - export function XcmPallet( - value: t.polkadot_runtime.RuntimeEvent.XcmPallet["value"], - ): t.polkadot_runtime.RuntimeEvent.XcmPallet { - return { type: "XcmPallet", value } - } -} - -export interface SessionKeys { - grandpa: t.sp_finality_grandpa.app.Public - babe: t.sp_consensus_babe.app.Public - im_online: t.pallet_im_online.sr25519.app_sr25519.Public - para_validator: t.polkadot_primitives.v2.validator_app.Public - para_assignment: t.polkadot_primitives.v2.assignment_app.Public - authority_discovery: t.sp_authority_discovery.app.Public -} - -export function SessionKeys(value: t.polkadot_runtime.SessionKeys) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime_common/claims/mod.ts b/codegen/_output/rococo/polkadot_runtime_common/claims/mod.ts deleted file mode 100644 index 205db5f73..000000000 --- a/codegen/_output/rococo/polkadot_runtime_common/claims/mod.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $ecdsaSignature: $.Codec = _codec.$246 - -export const $ethereumAddress: $.Codec = - _codec.$73 - -export const $prevalidateAttests: $.Codec = - _codec.$736 - -export const $statementKind: $.Codec = _codec.$251 - -export type EcdsaSignature = Uint8Array - -export function EcdsaSignature(value: t.polkadot_runtime_common.claims.EcdsaSignature) { - return value -} - -export type EthereumAddress = Uint8Array - -export function EthereumAddress(value: t.polkadot_runtime_common.claims.EthereumAddress) { - return value -} - -export function PrevalidateAttests() { - return null -} - -export type PrevalidateAttests = null - -export type StatementKind = "Regular" | "Saft" diff --git a/codegen/_output/rococo/polkadot_runtime_common/crowdloan/mod.ts b/codegen/_output/rococo/polkadot_runtime_common/crowdloan/mod.ts deleted file mode 100644 index a65019c60..000000000 --- a/codegen/_output/rococo/polkadot_runtime_common/crowdloan/mod.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $fundInfo: $.Codec = _codec.$710 - -export const $lastContribution: $.Codec = - _codec.$711 - -export interface FundInfo { - depositor: t.sp_core.crypto.AccountId32 - verifier: t.sp_runtime.MultiSigner | undefined - deposit: t.u128 - raised: t.u128 - end: t.u32 - cap: t.u128 - last_contribution: t.polkadot_runtime_common.crowdloan.LastContribution - first_period: t.u32 - last_period: t.u32 - fund_index: t.u32 -} - -export function FundInfo(value: t.polkadot_runtime_common.crowdloan.FundInfo) { - return value -} - -export type LastContribution = - | t.polkadot_runtime_common.crowdloan.LastContribution.Never - | t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding - | t.polkadot_runtime_common.crowdloan.LastContribution.Ending -export namespace LastContribution { - export interface Never { - type: "Never" - } - export interface PreEnding { - type: "PreEnding" - value: t.u32 - } - export interface Ending { - type: "Ending" - value: t.u32 - } - export function Never(): t.polkadot_runtime_common.crowdloan.LastContribution.Never { - return { type: "Never" } - } - export function PreEnding( - value: t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding["value"], - ): t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding { - return { type: "PreEnding", value } - } - export function Ending( - value: t.polkadot_runtime_common.crowdloan.LastContribution.Ending["value"], - ): t.polkadot_runtime_common.crowdloan.LastContribution.Ending { - return { type: "Ending", value } - } -} diff --git a/codegen/_output/rococo/polkadot_runtime_common/paras_registrar/mod.ts b/codegen/_output/rococo/polkadot_runtime_common/paras_registrar/mod.ts deleted file mode 100644 index 952b109ba..000000000 --- a/codegen/_output/rococo/polkadot_runtime_common/paras_registrar/mod.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $paraInfo: $.Codec = _codec.$701 - -export interface ParaInfo { - manager: t.sp_core.crypto.AccountId32 - deposit: t.u128 - locked: boolean -} - -export function ParaInfo(value: t.polkadot_runtime_common.paras_registrar.ParaInfo) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/configuration/mod.ts b/codegen/_output/rococo/polkadot_runtime_parachains/configuration/mod.ts deleted file mode 100644 index 58a100e5b..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/configuration/mod.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $hostConfiguration: $.Codec< - t.polkadot_runtime_parachains.configuration.HostConfiguration -> = _codec.$638 - -export interface HostConfiguration { - max_code_size: t.u32 - max_head_data_size: t.u32 - max_upward_queue_count: t.u32 - max_upward_queue_size: t.u32 - max_upward_message_size: t.u32 - max_upward_message_num_per_candidate: t.u32 - hrmp_max_message_num_per_candidate: t.u32 - validation_upgrade_cooldown: t.u32 - validation_upgrade_delay: t.u32 - max_pov_size: t.u32 - max_downward_message_size: t.u32 - ump_service_total_weight: t.sp_weights.weight_v2.Weight - hrmp_max_parachain_outbound_channels: t.u32 - hrmp_max_parathread_outbound_channels: t.u32 - hrmp_sender_deposit: t.u128 - hrmp_recipient_deposit: t.u128 - hrmp_channel_max_capacity: t.u32 - hrmp_channel_max_total_size: t.u32 - hrmp_max_parachain_inbound_channels: t.u32 - hrmp_max_parathread_inbound_channels: t.u32 - hrmp_channel_max_message_size: t.u32 - code_retention_period: t.u32 - parathread_cores: t.u32 - parathread_retries: t.u32 - group_rotation_frequency: t.u32 - chain_availability_period: t.u32 - thread_availability_period: t.u32 - scheduling_lookahead: t.u32 - max_validators_per_core: t.u32 | undefined - max_validators: t.u32 | undefined - dispute_period: t.u32 - dispute_post_conclusion_acceptance_period: t.u32 - dispute_max_spam_slots: t.u32 - dispute_conclusion_by_time_out_period: t.u32 - no_show_slots: t.u32 - n_delay_tranches: t.u32 - zeroth_delay_tranche_width: t.u32 - needed_approvals: t.u32 - relay_vrf_modulo_samples: t.u32 - ump_max_individual_weight: t.sp_weights.weight_v2.Weight - pvf_checking_enabled: boolean - pvf_voting_ttl: t.u32 - minimum_validation_upgrade_delay: t.u32 -} - -export function HostConfiguration( - value: t.polkadot_runtime_parachains.configuration.HostConfiguration, -) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/disputes/mod.ts b/codegen/_output/rococo/polkadot_runtime_parachains/disputes/mod.ts deleted file mode 100644 index d1f7d5c78..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/disputes/mod.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $disputeLocation: $.Codec = - _codec.$115 - -export const $disputeResult: $.Codec = - _codec.$116 - -export type DisputeLocation = "Local" | "Remote" - -export type DisputeResult = "Valid" | "Invalid" diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/dmp/pallet.ts b/codegen/_output/rococo/polkadot_runtime_parachains/dmp/pallet.ts deleted file mode 100644 index 824aca702..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/dmp/pallet.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $call: $.Codec = _codec.$407 - -/** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = never diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/hrmp/mod.ts b/codegen/_output/rococo/polkadot_runtime_parachains/hrmp/mod.ts deleted file mode 100644 index 80f6f4046..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/hrmp/mod.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $hrmpChannel: $.Codec = _codec.$688 - -export const $hrmpOpenChannelRequest: $.Codec< - t.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest -> = _codec.$686 - -export interface HrmpChannel { - max_capacity: t.u32 - max_total_size: t.u32 - max_message_size: t.u32 - msg_count: t.u32 - total_size: t.u32 - mqc_head: t.primitive_types.H256 | undefined - sender_deposit: t.u128 - recipient_deposit: t.u128 -} - -export function HrmpChannel(value: t.polkadot_runtime_parachains.hrmp.HrmpChannel) { - return value -} - -export interface HrmpOpenChannelRequest { - confirmed: boolean - _age: t.u32 - sender_deposit: t.u128 - max_message_size: t.u32 - max_capacity: t.u32 - max_total_size: t.u32 -} - -export function HrmpOpenChannelRequest( - value: t.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest, -) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/inclusion/mod.ts b/codegen/_output/rococo/polkadot_runtime_parachains/inclusion/mod.ts deleted file mode 100644 index 8d4b05566..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/inclusion/mod.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $availabilityBitfieldRecord: $.Codec< - t.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord -> = _codec.$644 - -export const $candidatePendingAvailability: $.Codec< - t.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability -> = _codec.$645 - -export interface AvailabilityBitfieldRecord { - bitfield: t.polkadot_primitives.v2.AvailabilityBitfield - submitted_at: t.u32 -} - -export function AvailabilityBitfieldRecord( - value: t.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord, -) { - return value -} - -export interface CandidatePendingAvailability { - core: t.polkadot_primitives.v2.CoreIndex - hash: t.polkadot_core_primitives.CandidateHash - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - availability_votes: $.BitSequence - backers: $.BitSequence - relay_parent_number: t.u32 - backed_in_number: t.u32 - backing_group: t.polkadot_primitives.v2.GroupIndex -} - -export function CandidatePendingAvailability( - value: t.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability, -) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/initializer/mod.ts b/codegen/_output/rococo/polkadot_runtime_parachains/initializer/mod.ts deleted file mode 100644 index 13dbb8fd9..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/initializer/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $bufferedSessionChange: $.Codec< - t.polkadot_runtime_parachains.initializer.BufferedSessionChange -> = _codec.$681 - -export interface BufferedSessionChange { - validators: Array - queued: Array - session_index: t.u32 -} - -export function BufferedSessionChange( - value: t.polkadot_runtime_parachains.initializer.BufferedSessionChange, -) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/origin/pallet.ts b/codegen/_output/rococo/polkadot_runtime_parachains/origin/pallet.ts deleted file mode 100644 index ae5aabd46..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/origin/pallet.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $origin: $.Codec = _codec.$260 - -export type Origin = t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain -export namespace Origin { - export interface Parachain { - type: "Parachain" - value: t.polkadot_parachain.primitives.Id - } - export function Parachain( - value: t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain["value"], - ): t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain { - return { type: "Parachain", value } - } -} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/paras/mod.ts b/codegen/_output/rococo/polkadot_runtime_parachains/paras/mod.ts deleted file mode 100644 index 4d940b368..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/paras/mod.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $paraGenesisArgs: $.Codec = - _codec.$678 - -export const $paraLifecycle: $.Codec = - _codec.$670 - -export const $paraPastCodeMeta: $.Codec = - _codec.$672 - -export const $pvfCheckActiveVoteState: $.Codec< - t.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState -> = _codec.$666 - -export const $pvfCheckCause: $.Codec = - _codec.$668 - -export const $replacementTimes: $.Codec = - _codec.$674 - -export interface ParaGenesisArgs { - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode - parachain: boolean -} - -export function ParaGenesisArgs(value: t.polkadot_runtime_parachains.paras.ParaGenesisArgs) { - return value -} - -export type ParaLifecycle = - | "Onboarding" - | "Parathread" - | "Parachain" - | "UpgradingParathread" - | "DowngradingParachain" - | "OffboardingParathread" - | "OffboardingParachain" - -export interface ParaPastCodeMeta { - upgrade_times: Array - last_pruned: t.u32 | undefined -} - -export function ParaPastCodeMeta(value: t.polkadot_runtime_parachains.paras.ParaPastCodeMeta) { - return value -} - -export interface PvfCheckActiveVoteState { - votes_accept: $.BitSequence - votes_reject: $.BitSequence - age: t.u32 - created_at: t.u32 - causes: Array -} - -export function PvfCheckActiveVoteState( - value: t.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState, -) { - return value -} - -export type PvfCheckCause = - | t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding - | t.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade -export namespace PvfCheckCause { - export interface Onboarding { - type: "Onboarding" - value: t.polkadot_parachain.primitives.Id - } - export interface Upgrade { - type: "Upgrade" - id: t.polkadot_parachain.primitives.Id - relay_parent_number: t.u32 - } - export function Onboarding( - value: t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding["value"], - ): t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding { - return { type: "Onboarding", value } - } - export function Upgrade( - value: Omit, - ): t.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade { - return { type: "Upgrade", ...value } - } -} - -export interface ReplacementTimes { - expected_at: t.u32 - activated_at: t.u32 -} - -export function ReplacementTimes(value: t.polkadot_runtime_parachains.paras.ReplacementTimes) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/scheduler.ts b/codegen/_output/rococo/polkadot_runtime_parachains/scheduler.ts deleted file mode 100644 index 7fdaa4ecb..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/scheduler.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $assignmentKind: $.Codec = - _codec.$665 - -export const $coreAssignment: $.Codec = - _codec.$664 - -export const $parathreadClaimQueue: $.Codec< - t.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue -> = _codec.$654 - -export const $queuedParathread: $.Codec = - _codec.$656 - -export type AssignmentKind = - | t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain - | t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread -export namespace AssignmentKind { - export interface Parachain { - type: "Parachain" - } - export interface Parathread { - type: "Parathread" - value: [t.polkadot_primitives.v2.collator_app.Public, t.u32] - } - export function Parachain(): t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain { - return { type: "Parachain" } - } - export function Parathread( - ...value: t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread["value"] - ): t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread { - return { type: "Parathread", value } - } -} - -export interface CoreAssignment { - core: t.polkadot_primitives.v2.CoreIndex - para_id: t.polkadot_parachain.primitives.Id - kind: t.polkadot_runtime_parachains.scheduler.AssignmentKind - group_idx: t.polkadot_primitives.v2.GroupIndex -} - -export function CoreAssignment(value: t.polkadot_runtime_parachains.scheduler.CoreAssignment) { - return value -} - -export interface ParathreadClaimQueue { - queue: Array - next_core_offset: t.u32 -} - -export function ParathreadClaimQueue( - value: t.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue, -) { - return value -} - -export interface QueuedParathread { - claim: t.polkadot_primitives.v2.ParathreadEntry - core_offset: t.u32 -} - -export function QueuedParathread(value: t.polkadot_runtime_parachains.scheduler.QueuedParathread) { - return value -} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/shared/pallet.ts b/codegen/_output/rococo/polkadot_runtime_parachains/shared/pallet.ts deleted file mode 100644 index c40d97d4d..000000000 --- a/codegen/_output/rococo/polkadot_runtime_parachains/shared/pallet.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $call: $.Codec = _codec.$376 - -/** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = never diff --git a/codegen/_output/rococo/primitive_types.ts b/codegen/_output/rococo/primitive_types.ts deleted file mode 100644 index 10f714849..000000000 --- a/codegen/_output/rococo/primitive_types.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $h256: $.Codec = _codec.$11 - -export type H256 = Uint8Array - -export function H256(value: t.primitive_types.H256) { - return value -} diff --git a/codegen/_output/rococo/sp_arithmetic/fixed_point.ts b/codegen/_output/rococo/sp_arithmetic/fixed_point.ts deleted file mode 100644 index 674cc82fd..000000000 --- a/codegen/_output/rococo/sp_arithmetic/fixed_point.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $fixedU128: $.Codec = _codec.$479 - -export type FixedU128 = t.u128 - -export function FixedU128(value: t.sp_arithmetic.fixed_point.FixedU128) { - return value -} diff --git a/codegen/_output/rococo/sp_arithmetic/per_things.ts b/codegen/_output/rococo/sp_arithmetic/per_things.ts deleted file mode 100644 index c152d090b..000000000 --- a/codegen/_output/rococo/sp_arithmetic/per_things.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $perU16: $.Codec = _codec.$320 - -export const $perbill: $.Codec = _codec.$42 - -export const $percent: $.Codec = _codec.$205 - -export const $permill: $.Codec = _codec.$558 - -export type PerU16 = t.u16 - -export function PerU16(value: t.sp_arithmetic.per_things.PerU16) { - return value -} - -export type Perbill = t.u32 - -export function Perbill(value: t.sp_arithmetic.per_things.Perbill) { - return value -} - -export type Percent = t.u8 - -export function Percent(value: t.sp_arithmetic.per_things.Percent) { - return value -} - -export type Permill = t.u32 - -export function Permill(value: t.sp_arithmetic.per_things.Permill) { - return value -} diff --git a/codegen/_output/rococo/sp_authority_discovery/app.ts b/codegen/_output/rococo/sp_authority_discovery/app.ts deleted file mode 100644 index 918896eec..000000000 --- a/codegen/_output/rococo/sp_authority_discovery/app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$215 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.sp_authority_discovery.app.Public) { - return value -} diff --git a/codegen/_output/rococo/sp_consensus_babe/app.ts b/codegen/_output/rococo/sp_consensus_babe/app.ts deleted file mode 100644 index 40f9ba509..000000000 --- a/codegen/_output/rococo/sp_consensus_babe/app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$189 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.sp_consensus_babe.app.Public) { - return value -} diff --git a/codegen/_output/rococo/sp_consensus_babe/digests.ts b/codegen/_output/rococo/sp_consensus_babe/digests.ts deleted file mode 100644 index 423b1d1b6..000000000 --- a/codegen/_output/rococo/sp_consensus_babe/digests.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $nextConfigDescriptor: $.Codec = - _codec.$192 - -export const $preDigest: $.Codec = _codec.$462 - -export const $primaryPreDigest: $.Codec = _codec.$463 - -export const $secondaryPlainPreDigest: $.Codec< - t.sp_consensus_babe.digests.SecondaryPlainPreDigest -> = _codec.$464 - -export const $secondaryVRFPreDigest: $.Codec = - _codec.$465 - -export type NextConfigDescriptor = t.sp_consensus_babe.digests.NextConfigDescriptor.V1 -export namespace NextConfigDescriptor { - export interface V1 { - type: "V1" - c: [t.u64, t.u64] - allowed_slots: t.sp_consensus_babe.AllowedSlots - } - export function V1( - value: Omit, - ): t.sp_consensus_babe.digests.NextConfigDescriptor.V1 { - return { type: "V1", ...value } - } -} - -export type PreDigest = - | t.sp_consensus_babe.digests.PreDigest.Primary - | t.sp_consensus_babe.digests.PreDigest.SecondaryPlain - | t.sp_consensus_babe.digests.PreDigest.SecondaryVRF -export namespace PreDigest { - export interface Primary { - type: "Primary" - value: t.sp_consensus_babe.digests.PrimaryPreDigest - } - export interface SecondaryPlain { - type: "SecondaryPlain" - value: t.sp_consensus_babe.digests.SecondaryPlainPreDigest - } - export interface SecondaryVRF { - type: "SecondaryVRF" - value: t.sp_consensus_babe.digests.SecondaryVRFPreDigest - } - export function Primary( - value: t.sp_consensus_babe.digests.PreDigest.Primary["value"], - ): t.sp_consensus_babe.digests.PreDigest.Primary { - return { type: "Primary", value } - } - export function SecondaryPlain( - value: t.sp_consensus_babe.digests.PreDigest.SecondaryPlain["value"], - ): t.sp_consensus_babe.digests.PreDigest.SecondaryPlain { - return { type: "SecondaryPlain", value } - } - export function SecondaryVRF( - value: t.sp_consensus_babe.digests.PreDigest.SecondaryVRF["value"], - ): t.sp_consensus_babe.digests.PreDigest.SecondaryVRF { - return { type: "SecondaryVRF", value } - } -} - -export interface PrimaryPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot - vrf_output: Uint8Array - vrf_proof: Uint8Array -} - -export function PrimaryPreDigest(value: t.sp_consensus_babe.digests.PrimaryPreDigest) { - return value -} - -export interface SecondaryPlainPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot -} - -export function SecondaryPlainPreDigest( - value: t.sp_consensus_babe.digests.SecondaryPlainPreDigest, -) { - return value -} - -export interface SecondaryVRFPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot - vrf_output: Uint8Array - vrf_proof: Uint8Array -} - -export function SecondaryVRFPreDigest(value: t.sp_consensus_babe.digests.SecondaryVRFPreDigest) { - return value -} diff --git a/codegen/_output/rococo/sp_consensus_babe/mod.ts b/codegen/_output/rococo/sp_consensus_babe/mod.ts deleted file mode 100644 index a38c9e392..000000000 --- a/codegen/_output/rococo/sp_consensus_babe/mod.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as app from "./app.ts" -export * as digests from "./digests.ts" - -export const $allowedSlots: $.Codec = _codec.$194 - -export const $babeEpochConfiguration: $.Codec = - _codec.$466 - -export type AllowedSlots = - | "PrimarySlots" - | "PrimaryAndSecondaryPlainSlots" - | "PrimaryAndSecondaryVRFSlots" - -export interface BabeEpochConfiguration { - c: [t.u64, t.u64] - allowed_slots: t.sp_consensus_babe.AllowedSlots -} - -export function BabeEpochConfiguration(value: t.sp_consensus_babe.BabeEpochConfiguration) { - return value -} diff --git a/codegen/_output/rococo/sp_consensus_slots.ts b/codegen/_output/rococo/sp_consensus_slots.ts deleted file mode 100644 index 841934e60..000000000 --- a/codegen/_output/rococo/sp_consensus_slots.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $equivocationProof: $.Codec = _codec.$186 - -export const $slot: $.Codec = _codec.$190 - -export interface EquivocationProof { - offender: t.sp_consensus_babe.app.Public - slot: t.sp_consensus_slots.Slot - first_header: t.sp_runtime.generic.header.Header - second_header: t.sp_runtime.generic.header.Header -} - -export function EquivocationProof(value: t.sp_consensus_slots.EquivocationProof) { - return value -} - -export type Slot = t.u64 - -export function Slot(value: t.sp_consensus_slots.Slot) { - return value -} diff --git a/codegen/_output/rococo/sp_core/crypto.ts b/codegen/_output/rococo/sp_core/crypto.ts deleted file mode 100644 index 8fa0bc6b2..000000000 --- a/codegen/_output/rococo/sp_core/crypto.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $accountId32: $.Codec = _codec.$0 - -export const $keyTypeId: $.Codec = _codec.$514 - -export type AccountId32 = Uint8Array - -export function AccountId32(value: t.sp_core.crypto.AccountId32) { - return value -} - -export type KeyTypeId = Uint8Array - -export function KeyTypeId(value: t.sp_core.crypto.KeyTypeId) { - return value -} diff --git a/codegen/_output/rococo/sp_core/ecdsa.ts b/codegen/_output/rococo/sp_core/ecdsa.ts deleted file mode 100644 index b69928dff..000000000 --- a/codegen/_output/rococo/sp_core/ecdsa.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$418 - -export const $signature: $.Codec = _codec.$422 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.ecdsa.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.ecdsa.Signature) { - return value -} diff --git a/codegen/_output/rococo/sp_core/ed25519.ts b/codegen/_output/rococo/sp_core/ed25519.ts deleted file mode 100644 index ed142f6b4..000000000 --- a/codegen/_output/rococo/sp_core/ed25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$51 - -export const $signature: $.Codec = _codec.$222 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.ed25519.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.ed25519.Signature) { - return value -} diff --git a/codegen/_output/rococo/sp_core/mod.ts b/codegen/_output/rococo/sp_core/mod.ts deleted file mode 100644 index ab5fac89c..000000000 --- a/codegen/_output/rococo/sp_core/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as crypto from "./crypto.ts" -export * as ecdsa from "./ecdsa.ts" -export * as ed25519 from "./ed25519.ts" -export * as offchain from "./offchain.ts" -export * as sr25519 from "./sr25519.ts" - -export const $opaquePeerId: $.Codec = _codec.$230 - -export const $void: $.Codec = _codec.$262 - -export type OpaquePeerId = Uint8Array - -export function OpaquePeerId(value: t.sp_core.OpaquePeerId) { - return value -} - -export type Void = never diff --git a/codegen/_output/rococo/sp_core/offchain.ts b/codegen/_output/rococo/sp_core/offchain.ts deleted file mode 100644 index 3aa308902..000000000 --- a/codegen/_output/rococo/sp_core/offchain.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $opaqueMultiaddr: $.Codec = _codec.$232 - -export const $opaqueNetworkState: $.Codec = _codec.$229 - -export type OpaqueMultiaddr = Uint8Array - -export function OpaqueMultiaddr(value: t.sp_core.offchain.OpaqueMultiaddr) { - return value -} - -export interface OpaqueNetworkState { - peer_id: t.sp_core.OpaquePeerId - external_addresses: Array -} - -export function OpaqueNetworkState(value: t.sp_core.offchain.OpaqueNetworkState) { - return value -} diff --git a/codegen/_output/rococo/sp_core/sr25519.ts b/codegen/_output/rococo/sp_core/sr25519.ts deleted file mode 100644 index a8a042cf8..000000000 --- a/codegen/_output/rococo/sp_core/sr25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$54 - -export const $signature: $.Codec = _codec.$101 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.sr25519.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.sr25519.Signature) { - return value -} diff --git a/codegen/_output/rococo/sp_finality_grandpa/app.ts b/codegen/_output/rococo/sp_finality_grandpa/app.ts deleted file mode 100644 index 511c7a3b0..000000000 --- a/codegen/_output/rococo/sp_finality_grandpa/app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$50 - -export const $signature: $.Codec = _codec.$221 - -export type Public = t.sp_core.ed25519.Public - -export function Public(value: t.sp_finality_grandpa.app.Public) { - return value -} - -export type Signature = t.sp_core.ed25519.Signature - -export function Signature(value: t.sp_finality_grandpa.app.Signature) { - return value -} diff --git a/codegen/_output/rococo/sp_finality_grandpa/mod.ts b/codegen/_output/rococo/sp_finality_grandpa/mod.ts deleted file mode 100644 index ea0fdf364..000000000 --- a/codegen/_output/rococo/sp_finality_grandpa/mod.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as app from "./app.ts" - -export const $equivocation: $.Codec = _codec.$218 - -export const $equivocationProof: $.Codec = _codec.$217 - -export type Equivocation = - | t.sp_finality_grandpa.Equivocation.Prevote - | t.sp_finality_grandpa.Equivocation.Precommit -export namespace Equivocation { - export interface Prevote { - type: "Prevote" - value: t.finality_grandpa.Equivocation.$$finality_grandpa.Prevote - } - export interface Precommit { - type: "Precommit" - value: t.finality_grandpa.Equivocation.$$finality_grandpa.Precommit - } - export function Prevote( - value: t.sp_finality_grandpa.Equivocation.Prevote["value"], - ): t.sp_finality_grandpa.Equivocation.Prevote { - return { type: "Prevote", value } - } - export function Precommit( - value: t.sp_finality_grandpa.Equivocation.Precommit["value"], - ): t.sp_finality_grandpa.Equivocation.Precommit { - return { type: "Precommit", value } - } -} - -export interface EquivocationProof { - set_id: t.u64 - equivocation: t.sp_finality_grandpa.Equivocation -} - -export function EquivocationProof(value: t.sp_finality_grandpa.EquivocationProof) { - return value -} diff --git a/codegen/_output/rococo/sp_npos_elections.ts b/codegen/_output/rococo/sp_npos_elections.ts deleted file mode 100644 index 7bbe5b644..000000000 --- a/codegen/_output/rococo/sp_npos_elections.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $electionScore: $.Codec = _codec.$88 - -export const $support: $.Codec = _codec.$367 - -export interface ElectionScore { - minimal_stake: t.u128 - sum_stake: t.u128 - sum_stake_squared: t.u128 -} - -export function ElectionScore(value: t.sp_npos_elections.ElectionScore) { - return value -} - -export interface Support { - total: t.u128 - voters: Array<[t.sp_core.crypto.AccountId32, t.u128]> -} - -export function Support(value: t.sp_npos_elections.Support) { - return value -} diff --git a/codegen/_output/rococo/sp_runtime/generic/digest.ts b/codegen/_output/rococo/sp_runtime/generic/digest.ts deleted file mode 100644 index 1b574b774..000000000 --- a/codegen/_output/rococo/sp_runtime/generic/digest.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $digest: $.Codec = _codec.$13 - -export const $digestItem: $.Codec = _codec.$15 - -export interface Digest { - logs: Array -} - -export function Digest(value: t.sp_runtime.generic.digest.Digest) { - return value -} - -export type DigestItem = - | t.sp_runtime.generic.digest.DigestItem.PreRuntime - | t.sp_runtime.generic.digest.DigestItem.Consensus - | t.sp_runtime.generic.digest.DigestItem.Seal - | t.sp_runtime.generic.digest.DigestItem.Other - | t.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated -export namespace DigestItem { - export interface PreRuntime { - type: "PreRuntime" - value: [Uint8Array, Uint8Array] - } - export interface Consensus { - type: "Consensus" - value: [Uint8Array, Uint8Array] - } - export interface Seal { - type: "Seal" - value: [Uint8Array, Uint8Array] - } - export interface Other { - type: "Other" - value: Uint8Array - } - export interface RuntimeEnvironmentUpdated { - type: "RuntimeEnvironmentUpdated" - } - export function PreRuntime( - ...value: t.sp_runtime.generic.digest.DigestItem.PreRuntime["value"] - ): t.sp_runtime.generic.digest.DigestItem.PreRuntime { - return { type: "PreRuntime", value } - } - export function Consensus( - ...value: t.sp_runtime.generic.digest.DigestItem.Consensus["value"] - ): t.sp_runtime.generic.digest.DigestItem.Consensus { - return { type: "Consensus", value } - } - export function Seal( - ...value: t.sp_runtime.generic.digest.DigestItem.Seal["value"] - ): t.sp_runtime.generic.digest.DigestItem.Seal { - return { type: "Seal", value } - } - export function Other( - value: t.sp_runtime.generic.digest.DigestItem.Other["value"], - ): t.sp_runtime.generic.digest.DigestItem.Other { - return { type: "Other", value } - } - export function RuntimeEnvironmentUpdated(): t.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated { - return { type: "RuntimeEnvironmentUpdated" } - } -} diff --git a/codegen/_output/rococo/sp_runtime/generic/header.ts b/codegen/_output/rococo/sp_runtime/generic/header.ts deleted file mode 100644 index 70f43e755..000000000 --- a/codegen/_output/rococo/sp_runtime/generic/header.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $header: $.Codec = _codec.$187 - -export interface Header { - parent_hash: t.primitive_types.H256 - number: t.Compact - state_root: t.primitive_types.H256 - extrinsics_root: t.primitive_types.H256 - digest: t.sp_runtime.generic.digest.Digest -} - -export function Header(value: t.sp_runtime.generic.header.Header) { - return value -} diff --git a/codegen/_output/rococo/sp_runtime/mod.ts b/codegen/_output/rococo/sp_runtime/mod.ts deleted file mode 100644 index a8b3cf982..000000000 --- a/codegen/_output/rococo/sp_runtime/mod.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as generic from "./generic/mod.ts" -export * as multiaddress from "./multiaddress.ts" -export * as traits from "./traits.ts" - -export const $arithmeticError: $.Codec = _codec.$27 - -export const $dispatchError: $.Codec = _codec.$24 - -export const $moduleError: $.Codec = _codec.$25 - -export const $multiSignature: $.Codec = _codec.$421 - -export const $multiSigner: $.Codec = _codec.$417 - -export const $tokenError: $.Codec = _codec.$26 - -export const $transactionalError: $.Codec = _codec.$28 - -export type ArithmeticError = "Underflow" | "Overflow" | "DivisionByZero" - -export type DispatchError = - | t.sp_runtime.DispatchError.Other - | t.sp_runtime.DispatchError.CannotLookup - | t.sp_runtime.DispatchError.BadOrigin - | t.sp_runtime.DispatchError.Module - | t.sp_runtime.DispatchError.ConsumerRemaining - | t.sp_runtime.DispatchError.NoProviders - | t.sp_runtime.DispatchError.TooManyConsumers - | t.sp_runtime.DispatchError.Token - | t.sp_runtime.DispatchError.Arithmetic - | t.sp_runtime.DispatchError.Transactional - | t.sp_runtime.DispatchError.Exhausted - | t.sp_runtime.DispatchError.Corruption - | t.sp_runtime.DispatchError.Unavailable -export namespace DispatchError { - export interface Other { - type: "Other" - } - export interface CannotLookup { - type: "CannotLookup" - } - export interface BadOrigin { - type: "BadOrigin" - } - export interface Module { - type: "Module" - value: t.sp_runtime.ModuleError - } - export interface ConsumerRemaining { - type: "ConsumerRemaining" - } - export interface NoProviders { - type: "NoProviders" - } - export interface TooManyConsumers { - type: "TooManyConsumers" - } - export interface Token { - type: "Token" - value: t.sp_runtime.TokenError - } - export interface Arithmetic { - type: "Arithmetic" - value: t.sp_runtime.ArithmeticError - } - export interface Transactional { - type: "Transactional" - value: t.sp_runtime.TransactionalError - } - export interface Exhausted { - type: "Exhausted" - } - export interface Corruption { - type: "Corruption" - } - export interface Unavailable { - type: "Unavailable" - } - export function Other(): t.sp_runtime.DispatchError.Other { - return { type: "Other" } - } - export function CannotLookup(): t.sp_runtime.DispatchError.CannotLookup { - return { type: "CannotLookup" } - } - export function BadOrigin(): t.sp_runtime.DispatchError.BadOrigin { - return { type: "BadOrigin" } - } - export function Module( - value: t.sp_runtime.DispatchError.Module["value"], - ): t.sp_runtime.DispatchError.Module { - return { type: "Module", value } - } - export function ConsumerRemaining(): t.sp_runtime.DispatchError.ConsumerRemaining { - return { type: "ConsumerRemaining" } - } - export function NoProviders(): t.sp_runtime.DispatchError.NoProviders { - return { type: "NoProviders" } - } - export function TooManyConsumers(): t.sp_runtime.DispatchError.TooManyConsumers { - return { type: "TooManyConsumers" } - } - export function Token( - value: t.sp_runtime.DispatchError.Token["value"], - ): t.sp_runtime.DispatchError.Token { - return { type: "Token", value } - } - export function Arithmetic( - value: t.sp_runtime.DispatchError.Arithmetic["value"], - ): t.sp_runtime.DispatchError.Arithmetic { - return { type: "Arithmetic", value } - } - export function Transactional( - value: t.sp_runtime.DispatchError.Transactional["value"], - ): t.sp_runtime.DispatchError.Transactional { - return { type: "Transactional", value } - } - export function Exhausted(): t.sp_runtime.DispatchError.Exhausted { - return { type: "Exhausted" } - } - export function Corruption(): t.sp_runtime.DispatchError.Corruption { - return { type: "Corruption" } - } - export function Unavailable(): t.sp_runtime.DispatchError.Unavailable { - return { type: "Unavailable" } - } -} - -export interface ModuleError { - index: t.u8 - error: Uint8Array -} - -export function ModuleError(value: t.sp_runtime.ModuleError) { - return value -} - -export type MultiSignature = - | t.sp_runtime.MultiSignature.Ed25519 - | t.sp_runtime.MultiSignature.Sr25519 - | t.sp_runtime.MultiSignature.Ecdsa -export namespace MultiSignature { - export interface Ed25519 { - type: "Ed25519" - value: t.sp_core.ed25519.Signature - } - export interface Sr25519 { - type: "Sr25519" - value: t.sp_core.sr25519.Signature - } - export interface Ecdsa { - type: "Ecdsa" - value: t.sp_core.ecdsa.Signature - } - export function Ed25519( - value: t.sp_runtime.MultiSignature.Ed25519["value"], - ): t.sp_runtime.MultiSignature.Ed25519 { - return { type: "Ed25519", value } - } - export function Sr25519( - value: t.sp_runtime.MultiSignature.Sr25519["value"], - ): t.sp_runtime.MultiSignature.Sr25519 { - return { type: "Sr25519", value } - } - export function Ecdsa( - value: t.sp_runtime.MultiSignature.Ecdsa["value"], - ): t.sp_runtime.MultiSignature.Ecdsa { - return { type: "Ecdsa", value } - } -} - -export type MultiSigner = - | t.sp_runtime.MultiSigner.Ed25519 - | t.sp_runtime.MultiSigner.Sr25519 - | t.sp_runtime.MultiSigner.Ecdsa -export namespace MultiSigner { - export interface Ed25519 { - type: "Ed25519" - value: t.sp_core.ed25519.Public - } - export interface Sr25519 { - type: "Sr25519" - value: t.sp_core.sr25519.Public - } - export interface Ecdsa { - type: "Ecdsa" - value: t.sp_core.ecdsa.Public - } - export function Ed25519( - value: t.sp_runtime.MultiSigner.Ed25519["value"], - ): t.sp_runtime.MultiSigner.Ed25519 { - return { type: "Ed25519", value } - } - export function Sr25519( - value: t.sp_runtime.MultiSigner.Sr25519["value"], - ): t.sp_runtime.MultiSigner.Sr25519 { - return { type: "Sr25519", value } - } - export function Ecdsa( - value: t.sp_runtime.MultiSigner.Ecdsa["value"], - ): t.sp_runtime.MultiSigner.Ecdsa { - return { type: "Ecdsa", value } - } -} - -export type TokenError = - | "NoFunds" - | "WouldDie" - | "BelowMinimum" - | "CannotCreate" - | "UnknownAsset" - | "Frozen" - | "Unsupported" - -export type TransactionalError = "LimitReached" | "NoLayer" diff --git a/codegen/_output/rococo/sp_runtime/multiaddress.ts b/codegen/_output/rococo/sp_runtime/multiaddress.ts deleted file mode 100644 index 4dc61094d..000000000 --- a/codegen/_output/rococo/sp_runtime/multiaddress.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $multiAddress: $.Codec = _codec.$197 - -export type MultiAddress = - | t.sp_runtime.multiaddress.MultiAddress.Id - | t.sp_runtime.multiaddress.MultiAddress.Index - | t.sp_runtime.multiaddress.MultiAddress.Raw - | t.sp_runtime.multiaddress.MultiAddress.Address32 - | t.sp_runtime.multiaddress.MultiAddress.Address20 -export namespace MultiAddress { - export interface Id { - type: "Id" - value: t.sp_core.crypto.AccountId32 - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Raw { - type: "Raw" - value: Uint8Array - } - export interface Address32 { - type: "Address32" - value: Uint8Array - } - export interface Address20 { - type: "Address20" - value: Uint8Array - } - export function Id( - value: t.sp_runtime.multiaddress.MultiAddress.Id["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Id { - return { type: "Id", value } - } - export function Index( - value: t.sp_runtime.multiaddress.MultiAddress.Index["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Index { - return { type: "Index", value } - } - export function Raw( - value: t.sp_runtime.multiaddress.MultiAddress.Raw["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Raw { - return { type: "Raw", value } - } - export function Address32( - value: t.sp_runtime.multiaddress.MultiAddress.Address32["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Address32 { - return { type: "Address32", value } - } - export function Address20( - value: t.sp_runtime.multiaddress.MultiAddress.Address20["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Address20 { - return { type: "Address20", value } - } -} diff --git a/codegen/_output/rococo/sp_runtime/traits.ts b/codegen/_output/rococo/sp_runtime/traits.ts deleted file mode 100644 index 942c3712f..000000000 --- a/codegen/_output/rococo/sp_runtime/traits.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $blakeTwo256: $.Codec = _codec.$188 - -export function BlakeTwo256() { - return null -} - -export type BlakeTwo256 = null diff --git a/codegen/_output/rococo/sp_session.ts b/codegen/_output/rococo/sp_session.ts deleted file mode 100644 index 3ebb285df..000000000 --- a/codegen/_output/rococo/sp_session.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $membershipProof: $.Codec = _codec.$191 - -export interface MembershipProof { - session: t.u32 - trie_nodes: Array - validator_count: t.u32 -} - -export function MembershipProof(value: t.sp_session.MembershipProof) { - return value -} diff --git a/codegen/_output/rococo/sp_staking/offence.ts b/codegen/_output/rococo/sp_staking/offence.ts deleted file mode 100644 index 02918d79f..000000000 --- a/codegen/_output/rococo/sp_staking/offence.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $offenceDetails: $.Codec = _codec.$509 - -export interface OffenceDetails { - offender: [t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure] - reporters: Array -} - -export function OffenceDetails(value: t.sp_staking.offence.OffenceDetails) { - return value -} diff --git a/codegen/_output/rococo/sp_version.ts b/codegen/_output/rococo/sp_version.ts deleted file mode 100644 index 3f8103413..000000000 --- a/codegen/_output/rococo/sp_version.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $runtimeVersion: $.Codec = _codec.$172 - -export interface RuntimeVersion { - spec_name: string - impl_name: string - authoring_version: t.u32 - spec_version: t.u32 - impl_version: t.u32 - apis: Array<[Uint8Array, t.u32]> - transaction_version: t.u32 - state_version: t.u8 -} - -export function RuntimeVersion(value: t.sp_version.RuntimeVersion) { - return value -} diff --git a/codegen/_output/rococo/sp_weights/mod.ts b/codegen/_output/rococo/sp_weights/mod.ts deleted file mode 100644 index 88c479fdd..000000000 --- a/codegen/_output/rococo/sp_weights/mod.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as weight_v2 from "./weight_v2.ts" - -export const $oldWeight: $.Codec = _codec.$239 - -export const $runtimeDbWeight: $.Codec = _codec.$171 - -export type OldWeight = t.u64 - -export function OldWeight(value: t.sp_weights.OldWeight) { - return value -} - -export interface RuntimeDbWeight { - read: t.u64 - write: t.u64 -} - -export function RuntimeDbWeight(value: t.sp_weights.RuntimeDbWeight) { - return value -} diff --git a/codegen/_output/rococo/sp_weights/weight_v2.ts b/codegen/_output/rococo/sp_weights/weight_v2.ts deleted file mode 100644 index 755882259..000000000 --- a/codegen/_output/rococo/sp_weights/weight_v2.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $weight: $.Codec = _codec.$8 - -export interface Weight { - ref_time: t.Compact - proof_size: t.Compact -} - -export function Weight(value: t.sp_weights.weight_v2.Weight) { - return value -} diff --git a/codegen/_output/rococo/bitvec/mod.ts b/codegen/_output/rococo/types/bitvec/mod.ts similarity index 100% rename from codegen/_output/rococo/bitvec/mod.ts rename to codegen/_output/rococo/types/bitvec/mod.ts diff --git a/codegen/_output/rococo/types/bitvec/order.ts b/codegen/_output/rococo/types/bitvec/order.ts new file mode 100644 index 000000000..935f6bcef --- /dev/null +++ b/codegen/_output/rococo/types/bitvec/order.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $lsb0: $.Codec = _codec.$384 + +export function Lsb0() { + return null +} + +export type Lsb0 = null diff --git a/codegen/_output/rococo/types/finality_grandpa/Equivocation/$$finality_grandpa.ts b/codegen/_output/rococo/types/finality_grandpa/Equivocation/$$finality_grandpa.ts new file mode 100644 index 000000000..1c207b7ac --- /dev/null +++ b/codegen/_output/rococo/types/finality_grandpa/Equivocation/$$finality_grandpa.ts @@ -0,0 +1,34 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $precommit: $.Codec< + t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit +> = _codec.$224 + +export const $prevote: $.Codec = + _codec.$219 + +export interface Precommit { + round_number: t.types.u64 + identity: t.types.sp_finality_grandpa.app.Public + first: [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] + second: [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] +} + +export function Precommit( + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit, +) { + return value +} + +export interface Prevote { + round_number: t.types.u64 + identity: t.types.sp_finality_grandpa.app.Public + first: [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] + second: [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] +} + +export function Prevote(value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Prevote) { + return value +} diff --git a/codegen/_output/rococo/finality_grandpa/Equivocation/mod.ts b/codegen/_output/rococo/types/finality_grandpa/Equivocation/mod.ts similarity index 100% rename from codegen/_output/rococo/finality_grandpa/Equivocation/mod.ts rename to codegen/_output/rococo/types/finality_grandpa/Equivocation/mod.ts diff --git a/codegen/_output/rococo/types/finality_grandpa/mod.ts b/codegen/_output/rococo/types/finality_grandpa/mod.ts new file mode 100644 index 000000000..c8be0a838 --- /dev/null +++ b/codegen/_output/rococo/types/finality_grandpa/mod.ts @@ -0,0 +1,27 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as Equivocation from "./Equivocation/mod.ts" + +export const $precommit: $.Codec = _codec.$225 + +export const $prevote: $.Codec = _codec.$220 + +export interface Precommit { + target_hash: t.types.primitive_types.H256 + target_number: t.types.u32 +} + +export function Precommit(value: t.types.finality_grandpa.Precommit) { + return value +} + +export interface Prevote { + target_hash: t.types.primitive_types.H256 + target_number: t.types.u32 +} + +export function Prevote(value: t.types.finality_grandpa.Prevote) { + return value +} diff --git a/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts b/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts new file mode 100644 index 000000000..750971775 --- /dev/null +++ b/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export const $weightsPerClass: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass +> = _codec.$166 + +export interface WeightsPerClass { + normal: t.types.frame_system.limits.WeightsPerClass + operational: t.types.frame_system.limits.WeightsPerClass + mandatory: t.types.frame_system.limits.WeightsPerClass +} + +export function WeightsPerClass( + value: t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass, +) { + return value +} diff --git a/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts b/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts similarity index 100% rename from codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts rename to codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts diff --git a/codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts b/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts similarity index 100% rename from codegen/_output/rococo/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts rename to codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts diff --git a/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts b/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts new file mode 100644 index 000000000..78ff1d029 --- /dev/null +++ b/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export const $weight: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight +> = _codec.$7 + +export interface Weight { + normal: t.types.sp_weights.weight_v2.Weight + operational: t.types.sp_weights.weight_v2.Weight + mandatory: t.types.sp_weights.weight_v2.Weight +} + +export function Weight( + value: t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight, +) { + return value +} diff --git a/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/mod.ts b/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/mod.ts new file mode 100644 index 000000000..68fdf3c0d --- /dev/null +++ b/codegen/_output/rococo/types/frame_support/dispatch/PerDispatchClass/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export * as $$frame_system from "./$$frame_system/mod.ts" +export * as $$sp_weights from "./$$sp_weights/mod.ts" + +export const $$$u32: $.Codec = _codec.$170 + +export interface $$u32 { + normal: t.types.u32 + operational: t.types.u32 + mandatory: t.types.u32 +} + +export function $$u32(value: t.types.frame_support.dispatch.PerDispatchClass.$$u32) { + return value +} diff --git a/codegen/_output/rococo/types/frame_support/dispatch/mod.ts b/codegen/_output/rococo/types/frame_support/dispatch/mod.ts new file mode 100644 index 000000000..0b6ae050e --- /dev/null +++ b/codegen/_output/rococo/types/frame_support/dispatch/mod.ts @@ -0,0 +1,55 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as PerDispatchClass from "./PerDispatchClass/mod.ts" + +export const $dispatchClass: $.Codec = _codec.$22 + +export const $dispatchInfo: $.Codec = _codec.$21 + +export const $pays: $.Codec = _codec.$23 + +export const $rawOrigin: $.Codec = _codec.$257 + +export type DispatchClass = "Normal" | "Operational" | "Mandatory" + +export interface DispatchInfo { + weight: t.types.sp_weights.weight_v2.Weight + class: t.types.frame_support.dispatch.DispatchClass + pays_fee: t.types.frame_support.dispatch.Pays +} + +export function DispatchInfo(value: t.types.frame_support.dispatch.DispatchInfo) { + return value +} + +export type Pays = "Yes" | "No" + +export type RawOrigin = + | t.types.frame_support.dispatch.RawOrigin.Root + | t.types.frame_support.dispatch.RawOrigin.Signed + | t.types.frame_support.dispatch.RawOrigin.None +export namespace RawOrigin { + export interface Root { + type: "Root" + } + export interface Signed { + type: "Signed" + value: t.types.sp_core.crypto.AccountId32 + } + export interface None { + type: "None" + } + export function Root(): t.types.frame_support.dispatch.RawOrigin.Root { + return { type: "Root" } + } + export function Signed( + value: t.types.frame_support.dispatch.RawOrigin.Signed["value"], + ): t.types.frame_support.dispatch.RawOrigin.Signed { + return { type: "Signed", value } + } + export function None(): t.types.frame_support.dispatch.RawOrigin.None { + return { type: "None" } + } +} diff --git a/codegen/_output/rococo/types/frame_support/mod.ts b/codegen/_output/rococo/types/frame_support/mod.ts new file mode 100644 index 000000000..c96f0dc75 --- /dev/null +++ b/codegen/_output/rococo/types/frame_support/mod.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as dispatch from "./dispatch/mod.ts" +export * as traits from "./traits/mod.ts" + +export const $palletId: $.Codec = _codec.$560 + +export type PalletId = Uint8Array + +export function PalletId(value: t.types.frame_support.PalletId) { + return value +} diff --git a/codegen/_output/rococo/types/frame_support/traits/misc.ts b/codegen/_output/rococo/types/frame_support/traits/misc.ts new file mode 100644 index 000000000..50833b76d --- /dev/null +++ b/codegen/_output/rococo/types/frame_support/traits/misc.ts @@ -0,0 +1,6 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $wrapperOpaque: $.Codec = + _codec.$522 diff --git a/codegen/_output/rococo/frame_support/traits/mod.ts b/codegen/_output/rococo/types/frame_support/traits/mod.ts similarity index 100% rename from codegen/_output/rococo/frame_support/traits/mod.ts rename to codegen/_output/rococo/types/frame_support/traits/mod.ts diff --git a/codegen/_output/rococo/types/frame_support/traits/preimages.ts b/codegen/_output/rococo/types/frame_support/traits/preimages.ts new file mode 100644 index 000000000..6c288bd3f --- /dev/null +++ b/codegen/_output/rococo/types/frame_support/traits/preimages.ts @@ -0,0 +1,40 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $bounded: $.Codec = _codec.$180 + +export type Bounded = + | t.types.frame_support.traits.preimages.Bounded.Legacy + | t.types.frame_support.traits.preimages.Bounded.Inline + | t.types.frame_support.traits.preimages.Bounded.Lookup +export namespace Bounded { + export interface Legacy { + type: "Legacy" + hash: t.types.primitive_types.H256 + } + export interface Inline { + type: "Inline" + value: Uint8Array + } + export interface Lookup { + type: "Lookup" + hash: t.types.primitive_types.H256 + len: t.types.u32 + } + export function Legacy( + value: Omit, + ): t.types.frame_support.traits.preimages.Bounded.Legacy { + return { type: "Legacy", ...value } + } + export function Inline( + value: t.types.frame_support.traits.preimages.Bounded.Inline["value"], + ): t.types.frame_support.traits.preimages.Bounded.Inline { + return { type: "Inline", value } + } + export function Lookup( + value: Omit, + ): t.types.frame_support.traits.preimages.Bounded.Lookup { + return { type: "Lookup", ...value } + } +} diff --git a/codegen/_output/rococo/types/frame_support/traits/tokens/misc.ts b/codegen/_output/rococo/types/frame_support/traits/tokens/misc.ts new file mode 100644 index 000000000..ad411b772 --- /dev/null +++ b/codegen/_output/rococo/types/frame_support/traits/tokens/misc.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export const $balanceStatus: $.Codec = + _codec.$37 + +export type BalanceStatus = "Free" | "Reserved" diff --git a/codegen/_output/rococo/frame_support/traits/tokens/mod.ts b/codegen/_output/rococo/types/frame_support/traits/tokens/mod.ts similarity index 100% rename from codegen/_output/rococo/frame_support/traits/tokens/mod.ts rename to codegen/_output/rococo/types/frame_support/traits/tokens/mod.ts diff --git a/codegen/_output/rococo/types/frame_system/extensions/check_genesis.ts b/codegen/_output/rococo/types/frame_system/extensions/check_genesis.ts new file mode 100644 index 000000000..9217e24b6 --- /dev/null +++ b/codegen/_output/rococo/types/frame_system/extensions/check_genesis.ts @@ -0,0 +1,12 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkGenesis: $.Codec = + _codec.$730 + +export function CheckGenesis() { + return null +} + +export type CheckGenesis = null diff --git a/codegen/_output/rococo/types/frame_system/extensions/check_non_zero_sender.ts b/codegen/_output/rococo/types/frame_system/extensions/check_non_zero_sender.ts new file mode 100644 index 000000000..d67c5ed3a --- /dev/null +++ b/codegen/_output/rococo/types/frame_system/extensions/check_non_zero_sender.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkNonZeroSender: $.Codec< + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender +> = _codec.$727 + +export function CheckNonZeroSender() { + return null +} + +export type CheckNonZeroSender = null diff --git a/codegen/_output/rococo/types/frame_system/extensions/check_spec_version.ts b/codegen/_output/rococo/types/frame_system/extensions/check_spec_version.ts new file mode 100644 index 000000000..d5841d0a2 --- /dev/null +++ b/codegen/_output/rococo/types/frame_system/extensions/check_spec_version.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkSpecVersion: $.Codec< + t.types.frame_system.extensions.check_spec_version.CheckSpecVersion +> = _codec.$728 + +export function CheckSpecVersion() { + return null +} + +export type CheckSpecVersion = null diff --git a/codegen/_output/rococo/types/frame_system/extensions/check_tx_version.ts b/codegen/_output/rococo/types/frame_system/extensions/check_tx_version.ts new file mode 100644 index 000000000..d7214c76e --- /dev/null +++ b/codegen/_output/rococo/types/frame_system/extensions/check_tx_version.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkTxVersion: $.Codec< + t.types.frame_system.extensions.check_tx_version.CheckTxVersion +> = _codec.$729 + +export function CheckTxVersion() { + return null +} + +export type CheckTxVersion = null diff --git a/codegen/_output/rococo/types/frame_system/extensions/check_weight.ts b/codegen/_output/rococo/types/frame_system/extensions/check_weight.ts new file mode 100644 index 000000000..57d4346d4 --- /dev/null +++ b/codegen/_output/rococo/types/frame_system/extensions/check_weight.ts @@ -0,0 +1,12 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkWeight: $.Codec = + _codec.$734 + +export function CheckWeight() { + return null +} + +export type CheckWeight = null diff --git a/codegen/_output/rococo/frame_system/extensions/mod.ts b/codegen/_output/rococo/types/frame_system/extensions/mod.ts similarity index 100% rename from codegen/_output/rococo/frame_system/extensions/mod.ts rename to codegen/_output/rococo/types/frame_system/extensions/mod.ts diff --git a/codegen/_output/rococo/types/frame_system/limits.ts b/codegen/_output/rococo/types/frame_system/limits.ts new file mode 100644 index 000000000..0bd584eb6 --- /dev/null +++ b/codegen/_output/rococo/types/frame_system/limits.ts @@ -0,0 +1,38 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $blockLength: $.Codec = _codec.$169 + +export const $blockWeights: $.Codec = _codec.$165 + +export const $weightsPerClass: $.Codec = _codec.$167 + +export interface BlockLength { + max: t.types.frame_support.dispatch.PerDispatchClass.$$u32 +} + +export function BlockLength(value: t.types.frame_system.limits.BlockLength) { + return value +} + +export interface BlockWeights { + base_block: t.types.sp_weights.weight_v2.Weight + max_block: t.types.sp_weights.weight_v2.Weight + per_class: t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass +} + +export function BlockWeights(value: t.types.frame_system.limits.BlockWeights) { + return value +} + +export interface WeightsPerClass { + base_extrinsic: t.types.sp_weights.weight_v2.Weight + max_extrinsic: t.types.sp_weights.weight_v2.Weight | undefined + max_total: t.types.sp_weights.weight_v2.Weight | undefined + reserved: t.types.sp_weights.weight_v2.Weight | undefined +} + +export function WeightsPerClass(value: t.types.frame_system.limits.WeightsPerClass) { + return value +} diff --git a/codegen/_output/rococo/types/frame_system/mod.ts b/codegen/_output/rococo/types/frame_system/mod.ts new file mode 100644 index 000000000..9d3020762 --- /dev/null +++ b/codegen/_output/rococo/types/frame_system/mod.ts @@ -0,0 +1,75 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as extensions from "./extensions/mod.ts" +export * as limits from "./limits.ts" +export * as pallet from "./pallet.ts" + +export const $accountInfo: $.Codec = _codec.$3 + +export const $eventRecord: $.Codec = _codec.$18 + +export const $lastRuntimeUpgradeInfo: $.Codec = + _codec.$159 + +export const $phase: $.Codec = _codec.$156 + +export interface AccountInfo { + nonce: t.types.u32 + consumers: t.types.u32 + providers: t.types.u32 + sufficients: t.types.u32 + data: t.types.pallet_balances.AccountData +} + +export function AccountInfo(value: t.types.frame_system.AccountInfo) { + return value +} + +export interface EventRecord { + phase: t.types.frame_system.Phase + event: t.types.polkadot_runtime.RuntimeEvent + topics: Array +} + +export function EventRecord(value: t.types.frame_system.EventRecord) { + return value +} + +export interface LastRuntimeUpgradeInfo { + spec_version: t.Compact + spec_name: string +} + +export function LastRuntimeUpgradeInfo(value: t.types.frame_system.LastRuntimeUpgradeInfo) { + return value +} + +export type Phase = + | t.types.frame_system.Phase.ApplyExtrinsic + | t.types.frame_system.Phase.Finalization + | t.types.frame_system.Phase.Initialization +export namespace Phase { + export interface ApplyExtrinsic { + type: "ApplyExtrinsic" + value: t.types.u32 + } + export interface Finalization { + type: "Finalization" + } + export interface Initialization { + type: "Initialization" + } + export function ApplyExtrinsic( + value: t.types.frame_system.Phase.ApplyExtrinsic["value"], + ): t.types.frame_system.Phase.ApplyExtrinsic { + return { type: "ApplyExtrinsic", value } + } + export function Finalization(): t.types.frame_system.Phase.Finalization { + return { type: "Finalization" } + } + export function Initialization(): t.types.frame_system.Phase.Initialization { + return { type: "Initialization" } + } +} diff --git a/codegen/_output/polkadot/frame_system/pallet.ts b/codegen/_output/rococo/types/frame_system/pallet.ts similarity index 64% rename from codegen/_output/polkadot/frame_system/pallet.ts rename to codegen/_output/rococo/types/frame_system/pallet.ts index 4ffb7de47..9893cfdc6 100644 --- a/codegen/_output/polkadot/frame_system/pallet.ts +++ b/codegen/_output/rococo/types/frame_system/pallet.ts @@ -1,29 +1,29 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$161 +export const $call: $.Codec = _codec.$161 -export const $error: $.Codec = _codec.$176 +export const $error: $.Codec = _codec.$176 -export const $event: $.Codec = _codec.$20 +export const $event: $.Codec = _codec.$20 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.frame_system.pallet.Call.fill_block - | t.frame_system.pallet.Call.remark - | t.frame_system.pallet.Call.set_heap_pages - | t.frame_system.pallet.Call.set_code - | t.frame_system.pallet.Call.set_code_without_checks - | t.frame_system.pallet.Call.set_storage - | t.frame_system.pallet.Call.kill_storage - | t.frame_system.pallet.Call.kill_prefix - | t.frame_system.pallet.Call.remark_with_event + | t.types.frame_system.pallet.Call.fill_block + | t.types.frame_system.pallet.Call.remark + | t.types.frame_system.pallet.Call.set_heap_pages + | t.types.frame_system.pallet.Call.set_code + | t.types.frame_system.pallet.Call.set_code_without_checks + | t.types.frame_system.pallet.Call.set_storage + | t.types.frame_system.pallet.Call.kill_storage + | t.types.frame_system.pallet.Call.kill_prefix + | t.types.frame_system.pallet.Call.remark_with_event export namespace Call { /** A dispatch that will fill the block weight up to the given ratio. */ export interface fill_block { type: "fill_block" - ratio: t.sp_arithmetic.per_things.Perbill + ratio: t.types.sp_arithmetic.per_things.Perbill } /** * Make some on-chain remark. @@ -39,7 +39,7 @@ export namespace Call { /** Set the number of pages in the WebAssembly environment's heap. */ export interface set_heap_pages { type: "set_heap_pages" - pages: t.u64 + pages: t.types.u64 } /** * Set the new runtime code. @@ -93,7 +93,7 @@ export namespace Call { export interface kill_prefix { type: "kill_prefix" prefix: Uint8Array - subkeys: t.u32 + subkeys: t.types.u32 } /** Make some on-chain remark and emit event. */ export interface remark_with_event { @@ -102,8 +102,8 @@ export namespace Call { } /** A dispatch that will fill the block weight up to the given ratio. */ export function fill_block( - value: Omit, - ): t.frame_system.pallet.Call.fill_block { + value: Omit, + ): t.types.frame_system.pallet.Call.fill_block { return { type: "fill_block", ...value } } /** @@ -114,14 +114,14 @@ export namespace Call { * # */ export function remark( - value: Omit, - ): t.frame_system.pallet.Call.remark { + value: Omit, + ): t.types.frame_system.pallet.Call.remark { return { type: "remark", ...value } } /** Set the number of pages in the WebAssembly environment's heap. */ export function set_heap_pages( - value: Omit, - ): t.frame_system.pallet.Call.set_heap_pages { + value: Omit, + ): t.types.frame_system.pallet.Call.set_heap_pages { return { type: "set_heap_pages", ...value } } /** @@ -139,8 +139,8 @@ export namespace Call { * # */ export function set_code( - value: Omit, - ): t.frame_system.pallet.Call.set_code { + value: Omit, + ): t.types.frame_system.pallet.Call.set_code { return { type: "set_code", ...value } } /** @@ -155,20 +155,20 @@ export namespace Call { * block. # */ export function set_code_without_checks( - value: Omit, - ): t.frame_system.pallet.Call.set_code_without_checks { + value: Omit, + ): t.types.frame_system.pallet.Call.set_code_without_checks { return { type: "set_code_without_checks", ...value } } /** Set some items of storage. */ export function set_storage( - value: Omit, - ): t.frame_system.pallet.Call.set_storage { + value: Omit, + ): t.types.frame_system.pallet.Call.set_storage { return { type: "set_storage", ...value } } /** Kill some items from storage. */ export function kill_storage( - value: Omit, - ): t.frame_system.pallet.Call.kill_storage { + value: Omit, + ): t.types.frame_system.pallet.Call.kill_storage { return { type: "kill_storage", ...value } } /** @@ -178,14 +178,14 @@ export namespace Call { * the prefix we are removing to accurately calculate the weight of this function. */ export function kill_prefix( - value: Omit, - ): t.frame_system.pallet.Call.kill_prefix { + value: Omit, + ): t.types.frame_system.pallet.Call.kill_prefix { return { type: "kill_prefix", ...value } } /** Make some on-chain remark and emit event. */ export function remark_with_event( - value: Omit, - ): t.frame_system.pallet.Call.remark_with_event { + value: Omit, + ): t.types.frame_system.pallet.Call.remark_with_event { return { type: "remark_with_event", ...value } } } @@ -201,23 +201,23 @@ export type Error = /** Event for the System pallet. */ export type Event = - | t.frame_system.pallet.Event.ExtrinsicSuccess - | t.frame_system.pallet.Event.ExtrinsicFailed - | t.frame_system.pallet.Event.CodeUpdated - | t.frame_system.pallet.Event.NewAccount - | t.frame_system.pallet.Event.KilledAccount - | t.frame_system.pallet.Event.Remarked + | t.types.frame_system.pallet.Event.ExtrinsicSuccess + | t.types.frame_system.pallet.Event.ExtrinsicFailed + | t.types.frame_system.pallet.Event.CodeUpdated + | t.types.frame_system.pallet.Event.NewAccount + | t.types.frame_system.pallet.Event.KilledAccount + | t.types.frame_system.pallet.Event.Remarked export namespace Event { /** An extrinsic completed successfully. */ export interface ExtrinsicSuccess { type: "ExtrinsicSuccess" - dispatch_info: t.frame_support.dispatch.DispatchInfo + dispatch_info: t.types.frame_support.dispatch.DispatchInfo } /** An extrinsic failed. */ export interface ExtrinsicFailed { type: "ExtrinsicFailed" - dispatch_error: t.sp_runtime.DispatchError - dispatch_info: t.frame_support.dispatch.DispatchInfo + dispatch_error: t.types.sp_runtime.DispatchError + dispatch_info: t.types.frame_support.dispatch.DispatchInfo } /** `:code` was updated. */ export interface CodeUpdated { @@ -226,51 +226,51 @@ export namespace Event { /** A new account was created. */ export interface NewAccount { type: "NewAccount" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** An account was reaped. */ export interface KilledAccount { type: "KilledAccount" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** On on-chain remark happened. */ export interface Remarked { type: "Remarked" - sender: t.sp_core.crypto.AccountId32 - hash: t.primitive_types.H256 + sender: t.types.sp_core.crypto.AccountId32 + hash: t.types.primitive_types.H256 } /** An extrinsic completed successfully. */ export function ExtrinsicSuccess( - value: Omit, - ): t.frame_system.pallet.Event.ExtrinsicSuccess { + value: Omit, + ): t.types.frame_system.pallet.Event.ExtrinsicSuccess { return { type: "ExtrinsicSuccess", ...value } } /** An extrinsic failed. */ export function ExtrinsicFailed( - value: Omit, - ): t.frame_system.pallet.Event.ExtrinsicFailed { + value: Omit, + ): t.types.frame_system.pallet.Event.ExtrinsicFailed { return { type: "ExtrinsicFailed", ...value } } /** `:code` was updated. */ - export function CodeUpdated(): t.frame_system.pallet.Event.CodeUpdated { + export function CodeUpdated(): t.types.frame_system.pallet.Event.CodeUpdated { return { type: "CodeUpdated" } } /** A new account was created. */ export function NewAccount( - value: Omit, - ): t.frame_system.pallet.Event.NewAccount { + value: Omit, + ): t.types.frame_system.pallet.Event.NewAccount { return { type: "NewAccount", ...value } } /** An account was reaped. */ export function KilledAccount( - value: Omit, - ): t.frame_system.pallet.Event.KilledAccount { + value: Omit, + ): t.types.frame_system.pallet.Event.KilledAccount { return { type: "KilledAccount", ...value } } /** On on-chain remark happened. */ export function Remarked( - value: Omit, - ): t.frame_system.pallet.Event.Remarked { + value: Omit, + ): t.types.frame_system.pallet.Event.Remarked { return { type: "Remarked", ...value } } } diff --git a/codegen/_output/rococo/types/mod.ts b/codegen/_output/rococo/types/mod.ts new file mode 100644 index 000000000..1e8000c3b --- /dev/null +++ b/codegen/_output/rococo/types/mod.ts @@ -0,0 +1,70 @@ +import { $, C } from "../capi.ts" +import * as _codec from "../codecs.ts" + +export * as bitvec from "./bitvec/mod.ts" +export * as finality_grandpa from "./finality_grandpa/mod.ts" +export * as frame_support from "./frame_support/mod.ts" +export * as frame_system from "./frame_system/mod.ts" +export * as pallet_authorship from "./pallet_authorship/mod.ts" +export * as pallet_babe from "./pallet_babe/mod.ts" +export * as pallet_bags_list from "./pallet_bags_list/mod.ts" +export * as pallet_balances from "./pallet_balances/mod.ts" +export * as pallet_bounties from "./pallet_bounties/mod.ts" +export * as pallet_child_bounties from "./pallet_child_bounties/mod.ts" +export * as pallet_collective from "./pallet_collective/mod.ts" +export * as pallet_democracy from "./pallet_democracy/mod.ts" +export * as pallet_election_provider_multi_phase from "./pallet_election_provider_multi_phase/mod.ts" +export * as pallet_elections_phragmen from "./pallet_elections_phragmen/mod.ts" +export * as pallet_fast_unstake from "./pallet_fast_unstake/mod.ts" +export * as pallet_grandpa from "./pallet_grandpa/mod.ts" +export * as pallet_identity from "./pallet_identity/mod.ts" +export * as pallet_im_online from "./pallet_im_online/mod.ts" +export * as pallet_indices from "./pallet_indices/mod.ts" +export * as pallet_membership from "./pallet_membership/mod.ts" +export * as pallet_multisig from "./pallet_multisig/mod.ts" +export * as pallet_nomination_pools from "./pallet_nomination_pools/mod.ts" +export * as pallet_offences from "./pallet_offences/mod.ts" +export * as pallet_preimage from "./pallet_preimage/mod.ts" +export * as pallet_proxy from "./pallet_proxy/mod.ts" +export * as pallet_scheduler from "./pallet_scheduler/mod.ts" +export * as pallet_session from "./pallet_session/mod.ts" +export * as pallet_staking from "./pallet_staking/mod.ts" +export * as pallet_timestamp from "./pallet_timestamp/mod.ts" +export * as pallet_tips from "./pallet_tips/mod.ts" +export * as pallet_transaction_payment from "./pallet_transaction_payment/mod.ts" +export * as pallet_treasury from "./pallet_treasury/mod.ts" +export * as pallet_utility from "./pallet_utility/mod.ts" +export * as pallet_vesting from "./pallet_vesting/mod.ts" +export * as pallet_xcm from "./pallet_xcm/mod.ts" +export * as polkadot_core_primitives from "./polkadot_core_primitives.ts" +export * as polkadot_parachain from "./polkadot_parachain/mod.ts" +export * as polkadot_primitives from "./polkadot_primitives/mod.ts" +export * as polkadot_runtime from "./polkadot_runtime.ts" +export * as polkadot_runtime_common from "./polkadot_runtime_common/mod.ts" +export * as polkadot_runtime_parachains from "./polkadot_runtime_parachains/mod.ts" +export * as primitive_types from "./primitive_types.ts" +export * as sp_arithmetic from "./sp_arithmetic/mod.ts" +export * as sp_authority_discovery from "./sp_authority_discovery/mod.ts" +export * as sp_consensus_babe from "./sp_consensus_babe/mod.ts" +export * as sp_consensus_slots from "./sp_consensus_slots.ts" +export * as sp_core from "./sp_core/mod.ts" +export * as sp_finality_grandpa from "./sp_finality_grandpa/mod.ts" +export * as sp_npos_elections from "./sp_npos_elections.ts" +export * as sp_runtime from "./sp_runtime/mod.ts" +export * as sp_session from "./sp_session.ts" +export * as sp_staking from "./sp_staking/mod.ts" +export * as sp_version from "./sp_version.ts" +export * as sp_weights from "./sp_weights/mod.ts" +export * as xcm from "./xcm/mod.ts" + +export const $era: $.Codec = _codec.$732 + +export type u128 = bigint + +export type u16 = number + +export type u32 = number + +export type u64 = bigint + +export type u8 = number diff --git a/codegen/_output/rococo/types/pallet_authorship/mod.ts b/codegen/_output/rococo/types/pallet_authorship/mod.ts new file mode 100644 index 000000000..ef19eeff5 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_authorship/mod.ts @@ -0,0 +1,31 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $uncleEntryItem: $.Codec = _codec.$482 + +export type UncleEntryItem = + | t.types.pallet_authorship.UncleEntryItem.InclusionHeight + | t.types.pallet_authorship.UncleEntryItem.Uncle +export namespace UncleEntryItem { + export interface InclusionHeight { + type: "InclusionHeight" + value: t.types.u32 + } + export interface Uncle { + type: "Uncle" + value: [t.types.primitive_types.H256, t.types.sp_core.crypto.AccountId32 | undefined] + } + export function InclusionHeight( + value: t.types.pallet_authorship.UncleEntryItem.InclusionHeight["value"], + ): t.types.pallet_authorship.UncleEntryItem.InclusionHeight { + return { type: "InclusionHeight", value } + } + export function Uncle( + ...value: t.types.pallet_authorship.UncleEntryItem.Uncle["value"] + ): t.types.pallet_authorship.UncleEntryItem.Uncle { + return { type: "Uncle", value } + } +} diff --git a/codegen/_output/kusama/pallet_authorship/pallet.ts b/codegen/_output/rococo/types/pallet_authorship/pallet.ts similarity index 52% rename from codegen/_output/kusama/pallet_authorship/pallet.ts rename to codegen/_output/rococo/types/pallet_authorship/pallet.ts index 80e38fee7..79d0bba91 100644 --- a/codegen/_output/kusama/pallet_authorship/pallet.ts +++ b/codegen/_output/rococo/types/pallet_authorship/pallet.ts @@ -1,23 +1,23 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$200 +export const $call: $.Codec = _codec.$200 -export const $error: $.Codec = _codec.$484 +export const $error: $.Codec = _codec.$484 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_authorship.pallet.Call.set_uncles +export type Call = t.types.pallet_authorship.pallet.Call.set_uncles export namespace Call { /** Provide a set of uncles. */ export interface set_uncles { type: "set_uncles" - new_uncles: Array + new_uncles: Array } /** Provide a set of uncles. */ export function set_uncles( - value: Omit, - ): t.pallet_authorship.pallet.Call.set_uncles { + value: Omit, + ): t.types.pallet_authorship.pallet.Call.set_uncles { return { type: "set_uncles", ...value } } } diff --git a/codegen/_output/rococo/pallet_babe/mod.ts b/codegen/_output/rococo/types/pallet_babe/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_babe/mod.ts rename to codegen/_output/rococo/types/pallet_babe/mod.ts diff --git a/codegen/_output/kusama/pallet_babe/pallet.ts b/codegen/_output/rococo/types/pallet_babe/pallet.ts similarity index 71% rename from codegen/_output/kusama/pallet_babe/pallet.ts rename to codegen/_output/rococo/types/pallet_babe/pallet.ts index a5520e28d..d57335b38 100644 --- a/codegen/_output/kusama/pallet_babe/pallet.ts +++ b/codegen/_output/rococo/types/pallet_babe/pallet.ts @@ -1,16 +1,16 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$185 +export const $call: $.Codec = _codec.$185 -export const $error: $.Codec = _codec.$467 +export const $error: $.Codec = _codec.$467 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_babe.pallet.Call.report_equivocation - | t.pallet_babe.pallet.Call.report_equivocation_unsigned - | t.pallet_babe.pallet.Call.plan_config_change + | t.types.pallet_babe.pallet.Call.report_equivocation + | t.types.pallet_babe.pallet.Call.report_equivocation_unsigned + | t.types.pallet_babe.pallet.Call.plan_config_change export namespace Call { /** * Report authority equivocation/misbehavior. This method will verify @@ -20,8 +20,8 @@ export namespace Call { */ export interface report_equivocation { type: "report_equivocation" - equivocation_proof: t.sp_consensus_slots.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_consensus_slots.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Report authority equivocation/misbehavior. This method will verify @@ -35,8 +35,8 @@ export namespace Call { */ export interface report_equivocation_unsigned { type: "report_equivocation_unsigned" - equivocation_proof: t.sp_consensus_slots.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_consensus_slots.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Plan an epoch config change. The epoch config change is recorded and will be enacted on @@ -46,7 +46,7 @@ export namespace Call { */ export interface plan_config_change { type: "plan_config_change" - config: t.sp_consensus_babe.digests.NextConfigDescriptor + config: t.types.sp_consensus_babe.digests.NextConfigDescriptor } /** * Report authority equivocation/misbehavior. This method will verify @@ -55,8 +55,8 @@ export namespace Call { * be reported. */ export function report_equivocation( - value: Omit, - ): t.pallet_babe.pallet.Call.report_equivocation { + value: Omit, + ): t.types.pallet_babe.pallet.Call.report_equivocation { return { type: "report_equivocation", ...value } } /** @@ -70,8 +70,8 @@ export namespace Call { * reporter. */ export function report_equivocation_unsigned( - value: Omit, - ): t.pallet_babe.pallet.Call.report_equivocation_unsigned { + value: Omit, + ): t.types.pallet_babe.pallet.Call.report_equivocation_unsigned { return { type: "report_equivocation_unsigned", ...value } } /** @@ -81,8 +81,8 @@ export namespace Call { * not been enacted yet. */ export function plan_config_change( - value: Omit, - ): t.pallet_babe.pallet.Call.plan_config_change { + value: Omit, + ): t.types.pallet_babe.pallet.Call.plan_config_change { return { type: "plan_config_change", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_bags_list/list.ts b/codegen/_output/rococo/types/pallet_bags_list/list.ts new file mode 100644 index 000000000..7948bdffa --- /dev/null +++ b/codegen/_output/rococo/types/pallet_bags_list/list.ts @@ -0,0 +1,32 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $bag: $.Codec = _codec.$613 + +export const $listError: $.Codec = _codec.$616 + +export const $node: $.Codec = _codec.$612 + +export interface Bag { + head: t.types.sp_core.crypto.AccountId32 | undefined + tail: t.types.sp_core.crypto.AccountId32 | undefined +} + +export function Bag(value: t.types.pallet_bags_list.list.Bag) { + return value +} + +export type ListError = "Duplicate" | "NotHeavier" | "NotInSameBag" | "NodeNotFound" + +export interface Node { + id: t.types.sp_core.crypto.AccountId32 + prev: t.types.sp_core.crypto.AccountId32 | undefined + next: t.types.sp_core.crypto.AccountId32 | undefined + bag_upper: t.types.u64 + score: t.types.u64 +} + +export function Node(value: t.types.pallet_bags_list.list.Node) { + return value +} diff --git a/codegen/_output/rococo/pallet_bags_list/mod.ts b/codegen/_output/rococo/types/pallet_bags_list/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_bags_list/mod.ts rename to codegen/_output/rococo/types/pallet_bags_list/mod.ts diff --git a/codegen/_output/westend/pallet_bags_list/pallet.ts b/codegen/_output/rococo/types/pallet_bags_list/pallet.ts similarity index 65% rename from codegen/_output/westend/pallet_bags_list/pallet.ts rename to codegen/_output/rococo/types/pallet_bags_list/pallet.ts index 24e9d23d4..783e83a34 100644 --- a/codegen/_output/westend/pallet_bags_list/pallet.ts +++ b/codegen/_output/rococo/types/pallet_bags_list/pallet.ts @@ -1,17 +1,17 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$368 +export const $call: $.Codec = _codec.$368 -export const $error: $.Codec = _codec.$615 +export const $error: $.Codec = _codec.$615 -export const $event: $.Codec = _codec.$89 +export const $event: $.Codec = _codec.$89 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_bags_list.pallet.Call.rebag - | t.pallet_bags_list.pallet.Call.put_in_front_of + | t.types.pallet_bags_list.pallet.Call.rebag + | t.types.pallet_bags_list.pallet.Call.put_in_front_of export namespace Call { /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently @@ -27,7 +27,7 @@ export namespace Call { */ export interface rebag { type: "rebag" - dislocated: t.sp_runtime.multiaddress.MultiAddress + dislocated: t.types.sp_runtime.multiaddress.MultiAddress } /** * Move the caller's Id directly in front of `lighter`. @@ -41,7 +41,7 @@ export namespace Call { */ export interface put_in_front_of { type: "put_in_front_of" - lighter: t.sp_runtime.multiaddress.MultiAddress + lighter: t.types.sp_runtime.multiaddress.MultiAddress } /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently @@ -56,8 +56,8 @@ export namespace Call { * If `dislocated` does not exists, it returns an error. */ export function rebag( - value: Omit, - ): t.pallet_bags_list.pallet.Call.rebag { + value: Omit, + ): t.types.pallet_bags_list.pallet.Call.rebag { return { type: "rebag", ...value } } /** @@ -71,56 +71,56 @@ export namespace Call { * - and `origin` has a greater `Score` than `lighter`. */ export function put_in_front_of( - value: Omit, - ): t.pallet_bags_list.pallet.Call.put_in_front_of { + value: Omit, + ): t.types.pallet_bags_list.pallet.Call.put_in_front_of { return { type: "put_in_front_of", ...value } } } /** Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) of this pallet. */ -export type Error = t.pallet_bags_list.pallet.Error.List +export type Error = t.types.pallet_bags_list.pallet.Error.List export namespace Error { /** A error in the list interface implementation. */ export interface List { type: "List" - value: t.pallet_bags_list.list.ListError + value: t.types.pallet_bags_list.list.ListError } /** A error in the list interface implementation. */ export function List( - value: t.pallet_bags_list.pallet.Error.List["value"], - ): t.pallet_bags_list.pallet.Error.List { + value: t.types.pallet_bags_list.pallet.Error.List["value"], + ): t.types.pallet_bags_list.pallet.Error.List { return { type: "List", value } } } /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_bags_list.pallet.Event.Rebagged - | t.pallet_bags_list.pallet.Event.ScoreUpdated + | t.types.pallet_bags_list.pallet.Event.Rebagged + | t.types.pallet_bags_list.pallet.Event.ScoreUpdated export namespace Event { /** Moved an account from one bag to another. */ export interface Rebagged { type: "Rebagged" - who: t.sp_core.crypto.AccountId32 - from: t.u64 - to: t.u64 + who: t.types.sp_core.crypto.AccountId32 + from: t.types.u64 + to: t.types.u64 } /** Updated the score of some account to the given amount. */ export interface ScoreUpdated { type: "ScoreUpdated" - who: t.sp_core.crypto.AccountId32 - new_score: t.u64 + who: t.types.sp_core.crypto.AccountId32 + new_score: t.types.u64 } /** Moved an account from one bag to another. */ export function Rebagged( - value: Omit, - ): t.pallet_bags_list.pallet.Event.Rebagged { + value: Omit, + ): t.types.pallet_bags_list.pallet.Event.Rebagged { return { type: "Rebagged", ...value } } /** Updated the score of some account to the given amount. */ export function ScoreUpdated( - value: Omit, - ): t.pallet_bags_list.pallet.Event.ScoreUpdated { + value: Omit, + ): t.types.pallet_bags_list.pallet.Event.ScoreUpdated { return { type: "ScoreUpdated", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_balances/mod.ts b/codegen/_output/rococo/types/pallet_balances/mod.ts new file mode 100644 index 000000000..64bd303ec --- /dev/null +++ b/codegen/_output/rococo/types/pallet_balances/mod.ts @@ -0,0 +1,49 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $accountData: $.Codec = _codec.$5 + +export const $balanceLock: $.Codec = _codec.$471 + +export const $reasons: $.Codec = _codec.$472 + +export const $releases: $.Codec = _codec.$477 + +export const $reserveData: $.Codec = _codec.$475 + +export interface AccountData { + free: t.types.u128 + reserved: t.types.u128 + misc_frozen: t.types.u128 + fee_frozen: t.types.u128 +} + +export function AccountData(value: t.types.pallet_balances.AccountData) { + return value +} + +export interface BalanceLock { + id: Uint8Array + amount: t.types.u128 + reasons: t.types.pallet_balances.Reasons +} + +export function BalanceLock(value: t.types.pallet_balances.BalanceLock) { + return value +} + +export type Reasons = "Fee" | "Misc" | "All" + +export type Releases = "V1_0_0" | "V2_0_0" + +export interface ReserveData { + id: Uint8Array + amount: t.types.u128 +} + +export function ReserveData(value: t.types.pallet_balances.ReserveData) { + return value +} diff --git a/codegen/_output/polkadot/pallet_balances/pallet.ts b/codegen/_output/rococo/types/pallet_balances/pallet.ts similarity index 69% rename from codegen/_output/polkadot/pallet_balances/pallet.ts rename to codegen/_output/rococo/types/pallet_balances/pallet.ts index a46b3f365..cd175644c 100644 --- a/codegen/_output/polkadot/pallet_balances/pallet.ts +++ b/codegen/_output/rococo/types/pallet_balances/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$199 +export const $call: $.Codec = _codec.$199 -export const $error: $.Codec = _codec.$478 +export const $error: $.Codec = _codec.$478 -export const $event: $.Codec = _codec.$36 +export const $event: $.Codec = _codec.$36 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_balances.pallet.Call.transfer - | t.pallet_balances.pallet.Call.set_balance - | t.pallet_balances.pallet.Call.force_transfer - | t.pallet_balances.pallet.Call.transfer_keep_alive - | t.pallet_balances.pallet.Call.transfer_all - | t.pallet_balances.pallet.Call.force_unreserve + | t.types.pallet_balances.pallet.Call.transfer + | t.types.pallet_balances.pallet.Call.set_balance + | t.types.pallet_balances.pallet.Call.force_transfer + | t.types.pallet_balances.pallet.Call.transfer_keep_alive + | t.types.pallet_balances.pallet.Call.transfer_all + | t.types.pallet_balances.pallet.Call.force_unreserve export namespace Call { /** * Transfer some liquid free balance to another account. @@ -46,8 +46,8 @@ export namespace Call { */ export interface transfer { type: "transfer" - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Set the balances of a given account. @@ -61,9 +61,9 @@ export namespace Call { */ export interface set_balance { type: "set_balance" - who: t.sp_runtime.multiaddress.MultiAddress - new_free: t.Compact - new_reserved: t.Compact + who: t.types.sp_runtime.multiaddress.MultiAddress + new_free: t.Compact + new_reserved: t.Compact } /** * Exactly as `transfer`, except the origin must be root and the source account may be @@ -75,9 +75,9 @@ export namespace Call { */ export interface force_transfer { type: "force_transfer" - source: t.sp_runtime.multiaddress.MultiAddress - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + source: t.types.sp_runtime.multiaddress.MultiAddress + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Same as the [`transfer`] call, but with a check that the transfer will not kill the @@ -89,8 +89,8 @@ export namespace Call { */ export interface transfer_keep_alive { type: "transfer_keep_alive" - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Transfer the entire transferable balance from the caller account. @@ -113,7 +113,7 @@ export namespace Call { */ export interface transfer_all { type: "transfer_all" - dest: t.sp_runtime.multiaddress.MultiAddress + dest: t.types.sp_runtime.multiaddress.MultiAddress keep_alive: boolean } /** @@ -123,8 +123,8 @@ export namespace Call { */ export interface force_unreserve { type: "force_unreserve" - who: t.sp_runtime.multiaddress.MultiAddress - amount: t.u128 + who: t.types.sp_runtime.multiaddress.MultiAddress + amount: t.types.u128 } /** * Transfer some liquid free balance to another account. @@ -154,8 +154,8 @@ export namespace Call { * # */ export function transfer( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer { return { type: "transfer", ...value } } /** @@ -169,8 +169,8 @@ export namespace Call { * The dispatch origin for this call is `root`. */ export function set_balance( - value: Omit, - ): t.pallet_balances.pallet.Call.set_balance { + value: Omit, + ): t.types.pallet_balances.pallet.Call.set_balance { return { type: "set_balance", ...value } } /** @@ -182,8 +182,8 @@ export namespace Call { * # */ export function force_transfer( - value: Omit, - ): t.pallet_balances.pallet.Call.force_transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Call.force_transfer { return { type: "force_transfer", ...value } } /** @@ -195,8 +195,8 @@ export namespace Call { * [`transfer`]: struct.Pallet.html#method.transfer */ export function transfer_keep_alive( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer_keep_alive { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer_keep_alive { return { type: "transfer_keep_alive", ...value } } /** @@ -219,8 +219,8 @@ export namespace Call { * # */ export function transfer_all( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer_all { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer_all { return { type: "transfer_all", ...value } } /** @@ -229,8 +229,8 @@ export namespace Call { * Can only be called by ROOT. */ export function force_unreserve( - value: Omit, - ): t.pallet_balances.pallet.Call.force_unreserve { + value: Omit, + ): t.types.pallet_balances.pallet.Call.force_unreserve { return { type: "force_unreserve", ...value } } } @@ -248,22 +248,22 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_balances.pallet.Event.Endowed - | t.pallet_balances.pallet.Event.DustLost - | t.pallet_balances.pallet.Event.Transfer - | t.pallet_balances.pallet.Event.BalanceSet - | t.pallet_balances.pallet.Event.Reserved - | t.pallet_balances.pallet.Event.Unreserved - | t.pallet_balances.pallet.Event.ReserveRepatriated - | t.pallet_balances.pallet.Event.Deposit - | t.pallet_balances.pallet.Event.Withdraw - | t.pallet_balances.pallet.Event.Slashed + | t.types.pallet_balances.pallet.Event.Endowed + | t.types.pallet_balances.pallet.Event.DustLost + | t.types.pallet_balances.pallet.Event.Transfer + | t.types.pallet_balances.pallet.Event.BalanceSet + | t.types.pallet_balances.pallet.Event.Reserved + | t.types.pallet_balances.pallet.Event.Unreserved + | t.types.pallet_balances.pallet.Event.ReserveRepatriated + | t.types.pallet_balances.pallet.Event.Deposit + | t.types.pallet_balances.pallet.Event.Withdraw + | t.types.pallet_balances.pallet.Event.Slashed export namespace Event { /** An account was created with some free balance. */ export interface Endowed { type: "Endowed" - account: t.sp_core.crypto.AccountId32 - free_balance: t.u128 + account: t.types.sp_core.crypto.AccountId32 + free_balance: t.types.u128 } /** * An account was removed whose balance was non-zero but below ExistentialDeposit, @@ -271,34 +271,34 @@ export namespace Event { */ export interface DustLost { type: "DustLost" - account: t.sp_core.crypto.AccountId32 - amount: t.u128 + account: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Transfer succeeded. */ export interface Transfer { type: "Transfer" - from: t.sp_core.crypto.AccountId32 - to: t.sp_core.crypto.AccountId32 - amount: t.u128 + from: t.types.sp_core.crypto.AccountId32 + to: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A balance was set by root. */ export interface BalanceSet { type: "BalanceSet" - who: t.sp_core.crypto.AccountId32 - free: t.u128 - reserved: t.u128 + who: t.types.sp_core.crypto.AccountId32 + free: t.types.u128 + reserved: t.types.u128 } /** Some balance was reserved (moved from free to reserved). */ export interface Reserved { type: "Reserved" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some balance was unreserved (moved from reserved to free). */ export interface Unreserved { type: "Unreserved" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * Some balance was moved from the reserve of the first account to the second account. @@ -306,33 +306,33 @@ export namespace Event { */ export interface ReserveRepatriated { type: "ReserveRepatriated" - from: t.sp_core.crypto.AccountId32 - to: t.sp_core.crypto.AccountId32 - amount: t.u128 - destination_status: t.frame_support.traits.tokens.misc.BalanceStatus + from: t.types.sp_core.crypto.AccountId32 + to: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 + destination_status: t.types.frame_support.traits.tokens.misc.BalanceStatus } /** Some amount was deposited (e.g. for transaction fees). */ export interface Deposit { type: "Deposit" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some amount was withdrawn from the account (e.g. for transaction fees). */ export interface Withdraw { type: "Withdraw" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some amount was removed from the account (e.g. for misbehavior). */ export interface Slashed { type: "Slashed" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** An account was created with some free balance. */ export function Endowed( - value: Omit, - ): t.pallet_balances.pallet.Event.Endowed { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Endowed { return { type: "Endowed", ...value } } /** @@ -340,32 +340,32 @@ export namespace Event { * resulting in an outright loss. */ export function DustLost( - value: Omit, - ): t.pallet_balances.pallet.Event.DustLost { + value: Omit, + ): t.types.pallet_balances.pallet.Event.DustLost { return { type: "DustLost", ...value } } /** Transfer succeeded. */ export function Transfer( - value: Omit, - ): t.pallet_balances.pallet.Event.Transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Transfer { return { type: "Transfer", ...value } } /** A balance was set by root. */ export function BalanceSet( - value: Omit, - ): t.pallet_balances.pallet.Event.BalanceSet { + value: Omit, + ): t.types.pallet_balances.pallet.Event.BalanceSet { return { type: "BalanceSet", ...value } } /** Some balance was reserved (moved from free to reserved). */ export function Reserved( - value: Omit, - ): t.pallet_balances.pallet.Event.Reserved { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Reserved { return { type: "Reserved", ...value } } /** Some balance was unreserved (moved from reserved to free). */ export function Unreserved( - value: Omit, - ): t.pallet_balances.pallet.Event.Unreserved { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Unreserved { return { type: "Unreserved", ...value } } /** @@ -373,26 +373,26 @@ export namespace Event { * Final argument indicates the destination balance type. */ export function ReserveRepatriated( - value: Omit, - ): t.pallet_balances.pallet.Event.ReserveRepatriated { + value: Omit, + ): t.types.pallet_balances.pallet.Event.ReserveRepatriated { return { type: "ReserveRepatriated", ...value } } /** Some amount was deposited (e.g. for transaction fees). */ export function Deposit( - value: Omit, - ): t.pallet_balances.pallet.Event.Deposit { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Deposit { return { type: "Deposit", ...value } } /** Some amount was withdrawn from the account (e.g. for transaction fees). */ export function Withdraw( - value: Omit, - ): t.pallet_balances.pallet.Event.Withdraw { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Withdraw { return { type: "Withdraw", ...value } } /** Some amount was removed from the account (e.g. for misbehavior). */ export function Slashed( - value: Omit, - ): t.pallet_balances.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Slashed { return { type: "Slashed", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_bounties/mod.ts b/codegen/_output/rococo/types/pallet_bounties/mod.ts new file mode 100644 index 000000000..e5425d665 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_bounties/mod.ts @@ -0,0 +1,80 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $bounty: $.Codec = _codec.$591 + +export const $bountyStatus: $.Codec = _codec.$592 + +export interface Bounty { + proposer: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 + fee: t.types.u128 + curator_deposit: t.types.u128 + bond: t.types.u128 + status: t.types.pallet_bounties.BountyStatus +} + +export function Bounty(value: t.types.pallet_bounties.Bounty) { + return value +} + +export type BountyStatus = + | t.types.pallet_bounties.BountyStatus.Proposed + | t.types.pallet_bounties.BountyStatus.Approved + | t.types.pallet_bounties.BountyStatus.Funded + | t.types.pallet_bounties.BountyStatus.CuratorProposed + | t.types.pallet_bounties.BountyStatus.Active + | t.types.pallet_bounties.BountyStatus.PendingPayout +export namespace BountyStatus { + export interface Proposed { + type: "Proposed" + } + export interface Approved { + type: "Approved" + } + export interface Funded { + type: "Funded" + } + export interface CuratorProposed { + type: "CuratorProposed" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface Active { + type: "Active" + curator: t.types.sp_core.crypto.AccountId32 + update_due: t.types.u32 + } + export interface PendingPayout { + type: "PendingPayout" + curator: t.types.sp_core.crypto.AccountId32 + beneficiary: t.types.sp_core.crypto.AccountId32 + unlock_at: t.types.u32 + } + export function Proposed(): t.types.pallet_bounties.BountyStatus.Proposed { + return { type: "Proposed" } + } + export function Approved(): t.types.pallet_bounties.BountyStatus.Approved { + return { type: "Approved" } + } + export function Funded(): t.types.pallet_bounties.BountyStatus.Funded { + return { type: "Funded" } + } + export function CuratorProposed( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.CuratorProposed { + return { type: "CuratorProposed", ...value } + } + export function Active( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.Active { + return { type: "Active", ...value } + } + export function PendingPayout( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.PendingPayout { + return { type: "PendingPayout", ...value } + } +} diff --git a/codegen/_output/kusama/pallet_bounties/pallet.ts b/codegen/_output/rococo/types/pallet_bounties/pallet.ts similarity index 71% rename from codegen/_output/kusama/pallet_bounties/pallet.ts rename to codegen/_output/rococo/types/pallet_bounties/pallet.ts index 312005e0f..f08c878f0 100644 --- a/codegen/_output/kusama/pallet_bounties/pallet.ts +++ b/codegen/_output/rococo/types/pallet_bounties/pallet.ts @@ -1,24 +1,24 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$307 +export const $call: $.Codec = _codec.$307 -export const $error: $.Codec = _codec.$594 +export const $error: $.Codec = _codec.$594 -export const $event: $.Codec = _codec.$83 +export const $event: $.Codec = _codec.$83 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_bounties.pallet.Call.propose_bounty - | t.pallet_bounties.pallet.Call.approve_bounty - | t.pallet_bounties.pallet.Call.propose_curator - | t.pallet_bounties.pallet.Call.unassign_curator - | t.pallet_bounties.pallet.Call.accept_curator - | t.pallet_bounties.pallet.Call.award_bounty - | t.pallet_bounties.pallet.Call.claim_bounty - | t.pallet_bounties.pallet.Call.close_bounty - | t.pallet_bounties.pallet.Call.extend_bounty_expiry + | t.types.pallet_bounties.pallet.Call.propose_bounty + | t.types.pallet_bounties.pallet.Call.approve_bounty + | t.types.pallet_bounties.pallet.Call.propose_curator + | t.types.pallet_bounties.pallet.Call.unassign_curator + | t.types.pallet_bounties.pallet.Call.accept_curator + | t.types.pallet_bounties.pallet.Call.award_bounty + | t.types.pallet_bounties.pallet.Call.claim_bounty + | t.types.pallet_bounties.pallet.Call.close_bounty + | t.types.pallet_bounties.pallet.Call.extend_bounty_expiry export namespace Call { /** * Propose a new bounty. @@ -36,7 +36,7 @@ export namespace Call { */ export interface propose_bounty { type: "propose_bounty" - value: t.Compact + value: t.Compact description: Uint8Array } /** @@ -51,7 +51,7 @@ export namespace Call { */ export interface approve_bounty { type: "approve_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Assign a curator to a funded bounty. @@ -64,9 +64,9 @@ export namespace Call { */ export interface propose_curator { type: "propose_curator" - bounty_id: t.Compact - curator: t.sp_runtime.multiaddress.MultiAddress - fee: t.Compact + bounty_id: t.Compact + curator: t.types.sp_runtime.multiaddress.MultiAddress + fee: t.Compact } /** * Unassign curator from a bounty. @@ -90,7 +90,7 @@ export namespace Call { */ export interface unassign_curator { type: "unassign_curator" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Accept the curator role for a bounty. @@ -104,7 +104,7 @@ export namespace Call { */ export interface accept_curator { type: "accept_curator" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Award bounty to a beneficiary account. The beneficiary will be able to claim the funds @@ -121,8 +121,8 @@ export namespace Call { */ export interface award_bounty { type: "award_bounty" - bounty_id: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + bounty_id: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Claim the payout from an awarded bounty after payout delay. @@ -137,7 +137,7 @@ export namespace Call { */ export interface claim_bounty { type: "claim_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Cancel a proposed or active bounty. All the funds will be sent to treasury and @@ -153,7 +153,7 @@ export namespace Call { */ export interface close_bounty { type: "close_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Extend the expiry time of an active bounty. @@ -169,7 +169,7 @@ export namespace Call { */ export interface extend_bounty_expiry { type: "extend_bounty_expiry" - bounty_id: t.Compact + bounty_id: t.Compact remark: Uint8Array } /** @@ -187,8 +187,8 @@ export namespace Call { * - `description`: The description of this bounty. */ export function propose_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.propose_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.propose_bounty { return { type: "propose_bounty", ...value } } /** @@ -202,8 +202,8 @@ export namespace Call { * # */ export function approve_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.approve_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.approve_bounty { return { type: "approve_bounty", ...value } } /** @@ -216,8 +216,8 @@ export namespace Call { * # */ export function propose_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.propose_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.propose_curator { return { type: "propose_curator", ...value } } /** @@ -241,8 +241,8 @@ export namespace Call { * # */ export function unassign_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.unassign_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.unassign_curator { return { type: "unassign_curator", ...value } } /** @@ -256,8 +256,8 @@ export namespace Call { * # */ export function accept_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.accept_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.accept_curator { return { type: "accept_curator", ...value } } /** @@ -274,8 +274,8 @@ export namespace Call { * # */ export function award_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.award_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.award_bounty { return { type: "award_bounty", ...value } } /** @@ -290,8 +290,8 @@ export namespace Call { * # */ export function claim_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.claim_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.claim_bounty { return { type: "claim_bounty", ...value } } /** @@ -307,8 +307,8 @@ export namespace Call { * # */ export function close_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.close_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.close_bounty { return { type: "close_bounty", ...value } } /** @@ -324,8 +324,8 @@ export namespace Call { * # */ export function extend_bounty_expiry( - value: Omit, - ): t.pallet_bounties.pallet.Call.extend_bounty_expiry { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.extend_bounty_expiry { return { type: "extend_bounty_expiry", ...value } } } @@ -346,93 +346,93 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_bounties.pallet.Event.BountyProposed - | t.pallet_bounties.pallet.Event.BountyRejected - | t.pallet_bounties.pallet.Event.BountyBecameActive - | t.pallet_bounties.pallet.Event.BountyAwarded - | t.pallet_bounties.pallet.Event.BountyClaimed - | t.pallet_bounties.pallet.Event.BountyCanceled - | t.pallet_bounties.pallet.Event.BountyExtended + | t.types.pallet_bounties.pallet.Event.BountyProposed + | t.types.pallet_bounties.pallet.Event.BountyRejected + | t.types.pallet_bounties.pallet.Event.BountyBecameActive + | t.types.pallet_bounties.pallet.Event.BountyAwarded + | t.types.pallet_bounties.pallet.Event.BountyClaimed + | t.types.pallet_bounties.pallet.Event.BountyCanceled + | t.types.pallet_bounties.pallet.Event.BountyExtended export namespace Event { /** New bounty proposal. */ export interface BountyProposed { type: "BountyProposed" - index: t.u32 + index: t.types.u32 } /** A bounty proposal was rejected; funds were slashed. */ export interface BountyRejected { type: "BountyRejected" - index: t.u32 - bond: t.u128 + index: t.types.u32 + bond: t.types.u128 } /** A bounty proposal is funded and became active. */ export interface BountyBecameActive { type: "BountyBecameActive" - index: t.u32 + index: t.types.u32 } /** A bounty is awarded to a beneficiary. */ export interface BountyAwarded { type: "BountyAwarded" - index: t.u32 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A bounty is claimed by beneficiary. */ export interface BountyClaimed { type: "BountyClaimed" - index: t.u32 - payout: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + payout: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A bounty is cancelled. */ export interface BountyCanceled { type: "BountyCanceled" - index: t.u32 + index: t.types.u32 } /** A bounty expiry is extended. */ export interface BountyExtended { type: "BountyExtended" - index: t.u32 + index: t.types.u32 } /** New bounty proposal. */ export function BountyProposed( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyProposed { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyProposed { return { type: "BountyProposed", ...value } } /** A bounty proposal was rejected; funds were slashed. */ export function BountyRejected( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyRejected { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyRejected { return { type: "BountyRejected", ...value } } /** A bounty proposal is funded and became active. */ export function BountyBecameActive( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyBecameActive { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyBecameActive { return { type: "BountyBecameActive", ...value } } /** A bounty is awarded to a beneficiary. */ export function BountyAwarded( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyAwarded { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyAwarded { return { type: "BountyAwarded", ...value } } /** A bounty is claimed by beneficiary. */ export function BountyClaimed( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyClaimed { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyClaimed { return { type: "BountyClaimed", ...value } } /** A bounty is cancelled. */ export function BountyCanceled( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyCanceled { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyCanceled { return { type: "BountyCanceled", ...value } } /** A bounty expiry is extended. */ export function BountyExtended( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyExtended { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyExtended { return { type: "BountyExtended", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_child_bounties/mod.ts b/codegen/_output/rococo/types/pallet_child_bounties/mod.ts new file mode 100644 index 000000000..9355697ec --- /dev/null +++ b/codegen/_output/rococo/types/pallet_child_bounties/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $childBounty: $.Codec = _codec.$595 + +export const $childBountyStatus: $.Codec = + _codec.$596 + +export interface ChildBounty { + parent_bounty: t.types.u32 + value: t.types.u128 + fee: t.types.u128 + curator_deposit: t.types.u128 + status: t.types.pallet_child_bounties.ChildBountyStatus +} + +export function ChildBounty(value: t.types.pallet_child_bounties.ChildBounty) { + return value +} + +export type ChildBountyStatus = + | t.types.pallet_child_bounties.ChildBountyStatus.Added + | t.types.pallet_child_bounties.ChildBountyStatus.CuratorProposed + | t.types.pallet_child_bounties.ChildBountyStatus.Active + | t.types.pallet_child_bounties.ChildBountyStatus.PendingPayout +export namespace ChildBountyStatus { + export interface Added { + type: "Added" + } + export interface CuratorProposed { + type: "CuratorProposed" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface Active { + type: "Active" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface PendingPayout { + type: "PendingPayout" + curator: t.types.sp_core.crypto.AccountId32 + beneficiary: t.types.sp_core.crypto.AccountId32 + unlock_at: t.types.u32 + } + export function Added(): t.types.pallet_child_bounties.ChildBountyStatus.Added { + return { type: "Added" } + } + export function CuratorProposed( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.CuratorProposed { + return { type: "CuratorProposed", ...value } + } + export function Active( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.Active { + return { type: "Active", ...value } + } + export function PendingPayout( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.PendingPayout { + return { type: "PendingPayout", ...value } + } +} diff --git a/codegen/_output/westend/pallet_child_bounties/pallet.ts b/codegen/_output/rococo/types/pallet_child_bounties/pallet.ts similarity index 79% rename from codegen/_output/westend/pallet_child_bounties/pallet.ts rename to codegen/_output/rococo/types/pallet_child_bounties/pallet.ts index 85d228af3..bca3b2363 100644 --- a/codegen/_output/westend/pallet_child_bounties/pallet.ts +++ b/codegen/_output/rococo/types/pallet_child_bounties/pallet.ts @@ -1,22 +1,22 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$308 +export const $call: $.Codec = _codec.$308 -export const $error: $.Codec = _codec.$597 +export const $error: $.Codec = _codec.$597 -export const $event: $.Codec = _codec.$84 +export const $event: $.Codec = _codec.$84 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_child_bounties.pallet.Call.add_child_bounty - | t.pallet_child_bounties.pallet.Call.propose_curator - | t.pallet_child_bounties.pallet.Call.accept_curator - | t.pallet_child_bounties.pallet.Call.unassign_curator - | t.pallet_child_bounties.pallet.Call.award_child_bounty - | t.pallet_child_bounties.pallet.Call.claim_child_bounty - | t.pallet_child_bounties.pallet.Call.close_child_bounty + | t.types.pallet_child_bounties.pallet.Call.add_child_bounty + | t.types.pallet_child_bounties.pallet.Call.propose_curator + | t.types.pallet_child_bounties.pallet.Call.accept_curator + | t.types.pallet_child_bounties.pallet.Call.unassign_curator + | t.types.pallet_child_bounties.pallet.Call.award_child_bounty + | t.types.pallet_child_bounties.pallet.Call.claim_child_bounty + | t.types.pallet_child_bounties.pallet.Call.close_child_bounty export namespace Call { /** * Add a new child-bounty. @@ -41,8 +41,8 @@ export namespace Call { */ export interface add_child_bounty { type: "add_child_bounty" - parent_bounty_id: t.Compact - value: t.Compact + parent_bounty_id: t.Compact + value: t.Compact description: Uint8Array } /** @@ -64,10 +64,10 @@ export namespace Call { */ export interface propose_curator { type: "propose_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact - curator: t.sp_runtime.multiaddress.MultiAddress - fee: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact + curator: t.types.sp_runtime.multiaddress.MultiAddress + fee: t.Compact } /** * Accept the curator role for the child-bounty. @@ -92,8 +92,8 @@ export namespace Call { */ export interface accept_curator { type: "accept_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Unassign curator from a child-bounty. @@ -133,8 +133,8 @@ export namespace Call { */ export interface unassign_curator { type: "unassign_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Award child-bounty to a beneficiary. @@ -157,9 +157,9 @@ export namespace Call { */ export interface award_child_bounty { type: "award_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + parent_bounty_id: t.Compact + child_bounty_id: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Claim the payout from an awarded child-bounty after payout delay. @@ -181,8 +181,8 @@ export namespace Call { */ export interface claim_child_bounty { type: "claim_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Cancel a proposed or active child-bounty. Child-bounty account funds @@ -210,8 +210,8 @@ export namespace Call { */ export interface close_child_bounty { type: "close_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Add a new child-bounty. @@ -235,8 +235,8 @@ export namespace Call { * - `description`: Text description for the child-bounty. */ export function add_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.add_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.add_child_bounty { return { type: "add_child_bounty", ...value } } /** @@ -257,8 +257,8 @@ export namespace Call { * - `fee`: payment fee to child-bounty curator for execution. */ export function propose_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.propose_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.propose_curator { return { type: "propose_curator", ...value } } /** @@ -283,8 +283,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function accept_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.accept_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.accept_curator { return { type: "accept_curator", ...value } } /** @@ -324,8 +324,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function unassign_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.unassign_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.unassign_curator { return { type: "unassign_curator", ...value } } /** @@ -348,8 +348,8 @@ export namespace Call { * - `beneficiary`: Beneficiary account. */ export function award_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.award_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.award_child_bounty { return { type: "award_child_bounty", ...value } } /** @@ -371,8 +371,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function claim_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.claim_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.claim_child_bounty { return { type: "claim_child_bounty", ...value } } /** @@ -400,8 +400,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function close_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.close_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.close_child_bounty { return { type: "close_child_bounty", ...value } } } @@ -411,60 +411,60 @@ export type Error = "ParentBountyNotActive" | "InsufficientBountyBalance" | "Too /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_child_bounties.pallet.Event.Added - | t.pallet_child_bounties.pallet.Event.Awarded - | t.pallet_child_bounties.pallet.Event.Claimed - | t.pallet_child_bounties.pallet.Event.Canceled + | t.types.pallet_child_bounties.pallet.Event.Added + | t.types.pallet_child_bounties.pallet.Event.Awarded + | t.types.pallet_child_bounties.pallet.Event.Claimed + | t.types.pallet_child_bounties.pallet.Event.Canceled export namespace Event { /** A child-bounty is added. */ export interface Added { type: "Added" - index: t.u32 - child_index: t.u32 + index: t.types.u32 + child_index: t.types.u32 } /** A child-bounty is awarded to a beneficiary. */ export interface Awarded { type: "Awarded" - index: t.u32 - child_index: t.u32 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + child_index: t.types.u32 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A child-bounty is claimed by beneficiary. */ export interface Claimed { type: "Claimed" - index: t.u32 - child_index: t.u32 - payout: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + child_index: t.types.u32 + payout: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A child-bounty is cancelled. */ export interface Canceled { type: "Canceled" - index: t.u32 - child_index: t.u32 + index: t.types.u32 + child_index: t.types.u32 } /** A child-bounty is added. */ export function Added( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Added { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Added { return { type: "Added", ...value } } /** A child-bounty is awarded to a beneficiary. */ export function Awarded( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Awarded { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Awarded { return { type: "Awarded", ...value } } /** A child-bounty is claimed by beneficiary. */ export function Claimed( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Claimed { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Claimed { return { type: "Claimed", ...value } } /** A child-bounty is cancelled. */ export function Canceled( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Canceled { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Canceled { return { type: "Canceled", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_collective/mod.ts b/codegen/_output/rococo/types/pallet_collective/mod.ts new file mode 100644 index 000000000..020fac5da --- /dev/null +++ b/codegen/_output/rococo/types/pallet_collective/mod.ts @@ -0,0 +1,52 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $rawOrigin: $.Codec = _codec.$258 + +export const $votes: $.Codec = _codec.$546 + +export type RawOrigin = + | t.types.pallet_collective.RawOrigin.Members + | t.types.pallet_collective.RawOrigin.Member + | t.types.pallet_collective.RawOrigin._Phantom +export namespace RawOrigin { + export interface Members { + type: "Members" + value: [t.types.u32, t.types.u32] + } + export interface Member { + type: "Member" + value: t.types.sp_core.crypto.AccountId32 + } + export interface _Phantom { + type: "_Phantom" + } + export function Members( + ...value: t.types.pallet_collective.RawOrigin.Members["value"] + ): t.types.pallet_collective.RawOrigin.Members { + return { type: "Members", value } + } + export function Member( + value: t.types.pallet_collective.RawOrigin.Member["value"], + ): t.types.pallet_collective.RawOrigin.Member { + return { type: "Member", value } + } + export function _Phantom(): t.types.pallet_collective.RawOrigin._Phantom { + return { type: "_Phantom" } + } +} + +export interface Votes { + index: t.types.u32 + threshold: t.types.u32 + ayes: Array + nays: Array + end: t.types.u32 +} + +export function Votes(value: t.types.pallet_collective.Votes) { + return value +} diff --git a/codegen/_output/westend/pallet_collective/pallet.ts b/codegen/_output/rococo/types/pallet_collective/pallet.ts similarity index 80% rename from codegen/_output/westend/pallet_collective/pallet.ts rename to codegen/_output/rococo/types/pallet_collective/pallet.ts index a15fd391a..f189d56db 100644 --- a/codegen/_output/westend/pallet_collective/pallet.ts +++ b/codegen/_output/rococo/types/pallet_collective/pallet.ts @@ -1,22 +1,22 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$237 +export const $call: $.Codec = _codec.$237 -export const $error: $.Codec = _codec.$547 +export const $error: $.Codec = _codec.$547 -export const $event: $.Codec = _codec.$65 +export const $event: $.Codec = _codec.$65 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_collective.pallet.Call.set_members - | t.pallet_collective.pallet.Call.execute - | t.pallet_collective.pallet.Call.propose - | t.pallet_collective.pallet.Call.vote - | t.pallet_collective.pallet.Call.close_old_weight - | t.pallet_collective.pallet.Call.disapprove_proposal - | t.pallet_collective.pallet.Call.close + | t.types.pallet_collective.pallet.Call.set_members + | t.types.pallet_collective.pallet.Call.execute + | t.types.pallet_collective.pallet.Call.propose + | t.types.pallet_collective.pallet.Call.vote + | t.types.pallet_collective.pallet.Call.close_old_weight + | t.types.pallet_collective.pallet.Call.disapprove_proposal + | t.types.pallet_collective.pallet.Call.close export namespace Call { /** * Set the collective's membership. @@ -54,9 +54,9 @@ export namespace Call { */ export interface set_members { type: "set_members" - new_members: Array - prime: t.sp_core.crypto.AccountId32 | undefined - old_count: t.u32 + new_members: Array + prime: t.types.sp_core.crypto.AccountId32 | undefined + old_count: t.types.u32 } /** * Dispatch a proposal from a member using the `Member` origin. @@ -73,8 +73,8 @@ export namespace Call { */ export interface execute { type: "execute" - proposal: t.polkadot_runtime.RuntimeCall - length_bound: t.Compact + proposal: t.types.polkadot_runtime.RuntimeCall + length_bound: t.Compact } /** * Add a new proposal to either be voted on or executed directly. @@ -107,9 +107,9 @@ export namespace Call { */ export interface propose { type: "propose" - threshold: t.Compact - proposal: t.polkadot_runtime.RuntimeCall - length_bound: t.Compact + threshold: t.Compact + proposal: t.types.polkadot_runtime.RuntimeCall + length_bound: t.Compact } /** * Add an aye or nay vote for the sender to the given proposal. @@ -130,8 +130,8 @@ export namespace Call { */ export interface vote { type: "vote" - proposal: t.primitive_types.H256 - index: t.Compact + proposal: t.types.primitive_types.H256 + index: t.Compact approve: boolean } /** @@ -170,10 +170,10 @@ export namespace Call { */ export interface close_old_weight { type: "close_old_weight" - proposal_hash: t.primitive_types.H256 - index: t.Compact - proposal_weight_bound: t.Compact - length_bound: t.Compact + proposal_hash: t.types.primitive_types.H256 + index: t.Compact + proposal_weight_bound: t.Compact + length_bound: t.Compact } /** * Disapprove a proposal, close, and remove it from the system, regardless of its current @@ -193,7 +193,7 @@ export namespace Call { */ export interface disapprove_proposal { type: "disapprove_proposal" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** * Close a vote that is either approved, disapproved or whose voting period has ended. @@ -231,10 +231,10 @@ export namespace Call { */ export interface close { type: "close" - proposal_hash: t.primitive_types.H256 - index: t.Compact - proposal_weight_bound: t.sp_weights.weight_v2.Weight - length_bound: t.Compact + proposal_hash: t.types.primitive_types.H256 + index: t.Compact + proposal_weight_bound: t.types.sp_weights.weight_v2.Weight + length_bound: t.Compact } /** * Set the collective's membership. @@ -271,8 +271,8 @@ export namespace Call { * # */ export function set_members( - value: Omit, - ): t.pallet_collective.pallet.Call.set_members { + value: Omit, + ): t.types.pallet_collective.pallet.Call.set_members { return { type: "set_members", ...value } } /** @@ -289,8 +289,8 @@ export namespace Call { * # */ export function execute( - value: Omit, - ): t.pallet_collective.pallet.Call.execute { + value: Omit, + ): t.types.pallet_collective.pallet.Call.execute { return { type: "execute", ...value } } /** @@ -323,8 +323,8 @@ export namespace Call { * # */ export function propose( - value: Omit, - ): t.pallet_collective.pallet.Call.propose { + value: Omit, + ): t.types.pallet_collective.pallet.Call.propose { return { type: "propose", ...value } } /** @@ -345,8 +345,8 @@ export namespace Call { * # */ export function vote( - value: Omit, - ): t.pallet_collective.pallet.Call.vote { + value: Omit, + ): t.types.pallet_collective.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -384,8 +384,8 @@ export namespace Call { * # */ export function close_old_weight( - value: Omit, - ): t.pallet_collective.pallet.Call.close_old_weight { + value: Omit, + ): t.types.pallet_collective.pallet.Call.close_old_weight { return { type: "close_old_weight", ...value } } /** @@ -405,8 +405,8 @@ export namespace Call { * # */ export function disapprove_proposal( - value: Omit, - ): t.pallet_collective.pallet.Call.disapprove_proposal { + value: Omit, + ): t.types.pallet_collective.pallet.Call.disapprove_proposal { return { type: "disapprove_proposal", ...value } } /** @@ -444,8 +444,8 @@ export namespace Call { * # */ export function close( - value: Omit, - ): t.pallet_collective.pallet.Call.close { + value: Omit, + ): t.types.pallet_collective.pallet.Call.close { return { type: "close", ...value } } } @@ -465,13 +465,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_collective.pallet.Event.Proposed - | t.pallet_collective.pallet.Event.Voted - | t.pallet_collective.pallet.Event.Approved - | t.pallet_collective.pallet.Event.Disapproved - | t.pallet_collective.pallet.Event.Executed - | t.pallet_collective.pallet.Event.MemberExecuted - | t.pallet_collective.pallet.Event.Closed + | t.types.pallet_collective.pallet.Event.Proposed + | t.types.pallet_collective.pallet.Event.Voted + | t.types.pallet_collective.pallet.Event.Approved + | t.types.pallet_collective.pallet.Event.Disapproved + | t.types.pallet_collective.pallet.Event.Executed + | t.types.pallet_collective.pallet.Event.MemberExecuted + | t.types.pallet_collective.pallet.Event.Closed export namespace Event { /** * A motion (given hash) has been proposed (by given account) with a threshold (given @@ -479,10 +479,10 @@ export namespace Event { */ export interface Proposed { type: "Proposed" - account: t.sp_core.crypto.AccountId32 - proposal_index: t.u32 - proposal_hash: t.primitive_types.H256 - threshold: t.u32 + account: t.types.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + proposal_hash: t.types.primitive_types.H256 + threshold: t.types.u32 } /** * A motion (given hash) has been voted on by given account, leaving @@ -490,48 +490,48 @@ export namespace Event { */ export interface Voted { type: "Voted" - account: t.sp_core.crypto.AccountId32 - proposal_hash: t.primitive_types.H256 + account: t.types.sp_core.crypto.AccountId32 + proposal_hash: t.types.primitive_types.H256 voted: boolean - yes: t.u32 - no: t.u32 + yes: t.types.u32 + no: t.types.u32 } /** A motion was approved by the required threshold. */ export interface Approved { type: "Approved" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** A motion was not approved by the required threshold. */ export interface Disapproved { type: "Disapproved" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** A motion was executed; result will be `Ok` if it returned without error. */ export interface Executed { type: "Executed" - proposal_hash: t.primitive_types.H256 - result: null | C.ChainError + proposal_hash: t.types.primitive_types.H256 + result: null | C.ChainError } /** A single member did some action; result will be `Ok` if it returned without error. */ export interface MemberExecuted { type: "MemberExecuted" - proposal_hash: t.primitive_types.H256 - result: null | C.ChainError + proposal_hash: t.types.primitive_types.H256 + result: null | C.ChainError } /** A proposal was closed because its threshold was reached or after its duration was up. */ export interface Closed { type: "Closed" - proposal_hash: t.primitive_types.H256 - yes: t.u32 - no: t.u32 + proposal_hash: t.types.primitive_types.H256 + yes: t.types.u32 + no: t.types.u32 } /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). */ export function Proposed( - value: Omit, - ): t.pallet_collective.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** @@ -539,38 +539,38 @@ export namespace Event { * a tally (yes votes and no votes given respectively as `MemberCount`). */ export function Voted( - value: Omit, - ): t.pallet_collective.pallet.Event.Voted { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Voted { return { type: "Voted", ...value } } /** A motion was approved by the required threshold. */ export function Approved( - value: Omit, - ): t.pallet_collective.pallet.Event.Approved { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Approved { return { type: "Approved", ...value } } /** A motion was not approved by the required threshold. */ export function Disapproved( - value: Omit, - ): t.pallet_collective.pallet.Event.Disapproved { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Disapproved { return { type: "Disapproved", ...value } } /** A motion was executed; result will be `Ok` if it returned without error. */ export function Executed( - value: Omit, - ): t.pallet_collective.pallet.Event.Executed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Executed { return { type: "Executed", ...value } } /** A single member did some action; result will be `Ok` if it returned without error. */ export function MemberExecuted( - value: Omit, - ): t.pallet_collective.pallet.Event.MemberExecuted { + value: Omit, + ): t.types.pallet_collective.pallet.Event.MemberExecuted { return { type: "MemberExecuted", ...value } } /** A proposal was closed because its threshold was reached or after its duration was up. */ export function Closed( - value: Omit, - ): t.pallet_collective.pallet.Event.Closed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Closed { return { type: "Closed", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_democracy/conviction.ts b/codegen/_output/rococo/types/pallet_democracy/conviction.ts new file mode 100644 index 000000000..c35068358 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_democracy/conviction.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $conviction: $.Codec = _codec.$235 + +export type Conviction = + | "None" + | "Locked1x" + | "Locked2x" + | "Locked3x" + | "Locked4x" + | "Locked5x" + | "Locked6x" diff --git a/codegen/_output/rococo/pallet_democracy/mod.ts b/codegen/_output/rococo/types/pallet_democracy/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_democracy/mod.ts rename to codegen/_output/rococo/types/pallet_democracy/mod.ts diff --git a/codegen/_output/kusama/pallet_democracy/pallet.ts b/codegen/_output/rococo/types/pallet_democracy/pallet.ts similarity index 75% rename from codegen/_output/kusama/pallet_democracy/pallet.ts rename to codegen/_output/rococo/types/pallet_democracy/pallet.ts index e138410cc..3981f4554 100644 --- a/codegen/_output/kusama/pallet_democracy/pallet.ts +++ b/codegen/_output/rococo/types/pallet_democracy/pallet.ts @@ -1,33 +1,33 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$234 +export const $call: $.Codec = _codec.$234 -export const $error: $.Codec = _codec.$544 +export const $error: $.Codec = _codec.$544 -export const $event: $.Codec = _codec.$61 +export const $event: $.Codec = _codec.$61 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_democracy.pallet.Call.propose - | t.pallet_democracy.pallet.Call.second - | t.pallet_democracy.pallet.Call.vote - | t.pallet_democracy.pallet.Call.emergency_cancel - | t.pallet_democracy.pallet.Call.external_propose - | t.pallet_democracy.pallet.Call.external_propose_majority - | t.pallet_democracy.pallet.Call.external_propose_default - | t.pallet_democracy.pallet.Call.fast_track - | t.pallet_democracy.pallet.Call.veto_external - | t.pallet_democracy.pallet.Call.cancel_referendum - | t.pallet_democracy.pallet.Call.delegate - | t.pallet_democracy.pallet.Call.undelegate - | t.pallet_democracy.pallet.Call.clear_public_proposals - | t.pallet_democracy.pallet.Call.unlock - | t.pallet_democracy.pallet.Call.remove_vote - | t.pallet_democracy.pallet.Call.remove_other_vote - | t.pallet_democracy.pallet.Call.blacklist - | t.pallet_democracy.pallet.Call.cancel_proposal + | t.types.pallet_democracy.pallet.Call.propose + | t.types.pallet_democracy.pallet.Call.second + | t.types.pallet_democracy.pallet.Call.vote + | t.types.pallet_democracy.pallet.Call.emergency_cancel + | t.types.pallet_democracy.pallet.Call.external_propose + | t.types.pallet_democracy.pallet.Call.external_propose_majority + | t.types.pallet_democracy.pallet.Call.external_propose_default + | t.types.pallet_democracy.pallet.Call.fast_track + | t.types.pallet_democracy.pallet.Call.veto_external + | t.types.pallet_democracy.pallet.Call.cancel_referendum + | t.types.pallet_democracy.pallet.Call.delegate + | t.types.pallet_democracy.pallet.Call.undelegate + | t.types.pallet_democracy.pallet.Call.clear_public_proposals + | t.types.pallet_democracy.pallet.Call.unlock + | t.types.pallet_democracy.pallet.Call.remove_vote + | t.types.pallet_democracy.pallet.Call.remove_other_vote + | t.types.pallet_democracy.pallet.Call.blacklist + | t.types.pallet_democracy.pallet.Call.cancel_proposal export namespace Call { /** * Propose a sensitive action to be taken. @@ -42,8 +42,8 @@ export namespace Call { */ export interface propose { type: "propose" - proposal: t.frame_support.traits.preimages.Bounded - value: t.Compact + proposal: t.types.frame_support.traits.preimages.Bounded + value: t.Compact } /** * Signals agreement with a particular proposal. @@ -55,7 +55,7 @@ export namespace Call { */ export interface second { type: "second" - proposal: t.Compact + proposal: t.Compact } /** * Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; @@ -68,8 +68,8 @@ export namespace Call { */ export interface vote { type: "vote" - ref_index: t.Compact - vote: t.pallet_democracy.vote.AccountVote + ref_index: t.Compact + vote: t.types.pallet_democracy.vote.AccountVote } /** * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same @@ -83,7 +83,7 @@ export namespace Call { */ export interface emergency_cancel { type: "emergency_cancel" - ref_index: t.u32 + ref_index: t.types.u32 } /** * Schedule a referendum to be tabled once it is legal to schedule an external @@ -95,7 +95,7 @@ export namespace Call { */ export interface external_propose { type: "external_propose" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule a majority-carries referendum to be tabled next once it is legal to schedule @@ -112,7 +112,7 @@ export namespace Call { */ export interface external_propose_majority { type: "external_propose_majority" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to @@ -129,7 +129,7 @@ export namespace Call { */ export interface external_propose_default { type: "external_propose_default" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule the currently externally-proposed majority-carries referendum to be tabled @@ -151,9 +151,9 @@ export namespace Call { */ export interface fast_track { type: "fast_track" - proposal_hash: t.primitive_types.H256 - voting_period: t.u32 - delay: t.u32 + proposal_hash: t.types.primitive_types.H256 + voting_period: t.types.u32 + delay: t.types.u32 } /** * Veto and blacklist the external proposal hash. @@ -168,7 +168,7 @@ export namespace Call { */ export interface veto_external { type: "veto_external" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** * Remove a referendum. @@ -181,7 +181,7 @@ export namespace Call { */ export interface cancel_referendum { type: "cancel_referendum" - ref_index: t.Compact + ref_index: t.Compact } /** * Delegate the voting power (with some given conviction) of the sending account. @@ -207,9 +207,9 @@ export namespace Call { */ export interface delegate { type: "delegate" - to: t.sp_runtime.multiaddress.MultiAddress - conviction: t.pallet_democracy.conviction.Conviction - balance: t.u128 + to: t.types.sp_runtime.multiaddress.MultiAddress + conviction: t.types.pallet_democracy.conviction.Conviction + balance: t.types.u128 } /** * Undelegate the voting power of the sending account. @@ -249,7 +249,7 @@ export namespace Call { */ export interface unlock { type: "unlock" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove a vote for a referendum. @@ -282,7 +282,7 @@ export namespace Call { */ export interface remove_vote { type: "remove_vote" - index: t.u32 + index: t.types.u32 } /** * Remove a vote for a referendum. @@ -303,8 +303,8 @@ export namespace Call { */ export interface remove_other_vote { type: "remove_other_vote" - target: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + target: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 } /** * Permanently place a proposal into the blacklist. This prevents it from ever being @@ -325,8 +325,8 @@ export namespace Call { */ export interface blacklist { type: "blacklist" - proposal_hash: t.primitive_types.H256 - maybe_ref_index: t.u32 | undefined + proposal_hash: t.types.primitive_types.H256 + maybe_ref_index: t.types.u32 | undefined } /** * Remove a proposal. @@ -339,7 +339,7 @@ export namespace Call { */ export interface cancel_proposal { type: "cancel_proposal" - prop_index: t.Compact + prop_index: t.Compact } /** * Propose a sensitive action to be taken. @@ -353,8 +353,8 @@ export namespace Call { * Emits `Proposed`. */ export function propose( - value: Omit, - ): t.pallet_democracy.pallet.Call.propose { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.propose { return { type: "propose", ...value } } /** @@ -366,8 +366,8 @@ export namespace Call { * - `proposal`: The index of the proposal to second. */ export function second( - value: Omit, - ): t.pallet_democracy.pallet.Call.second { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.second { return { type: "second", ...value } } /** @@ -380,8 +380,8 @@ export namespace Call { * - `vote`: The vote configuration. */ export function vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -395,8 +395,8 @@ export namespace Call { * Weight: `O(1)`. */ export function emergency_cancel( - value: Omit, - ): t.pallet_democracy.pallet.Call.emergency_cancel { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.emergency_cancel { return { type: "emergency_cancel", ...value } } /** @@ -408,8 +408,8 @@ export namespace Call { * - `proposal_hash`: The preimage hash of the proposal. */ export function external_propose( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose { return { type: "external_propose", ...value } } /** @@ -426,8 +426,8 @@ export namespace Call { * Weight: `O(1)` */ export function external_propose_majority( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose_majority { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose_majority { return { type: "external_propose_majority", ...value } } /** @@ -444,8 +444,8 @@ export namespace Call { * Weight: `O(1)` */ export function external_propose_default( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose_default { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose_default { return { type: "external_propose_default", ...value } } /** @@ -467,8 +467,8 @@ export namespace Call { * Weight: `O(1)` */ export function fast_track( - value: Omit, - ): t.pallet_democracy.pallet.Call.fast_track { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.fast_track { return { type: "fast_track", ...value } } /** @@ -483,8 +483,8 @@ export namespace Call { * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ export function veto_external( - value: Omit, - ): t.pallet_democracy.pallet.Call.veto_external { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.veto_external { return { type: "veto_external", ...value } } /** @@ -497,8 +497,8 @@ export namespace Call { * # Weight: `O(1)`. */ export function cancel_referendum( - value: Omit, - ): t.pallet_democracy.pallet.Call.cancel_referendum { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.cancel_referendum { return { type: "cancel_referendum", ...value } } /** @@ -524,8 +524,8 @@ export namespace Call { * voted on. Weight is charged as if maximum votes. */ export function delegate( - value: Omit, - ): t.pallet_democracy.pallet.Call.delegate { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.delegate { return { type: "delegate", ...value } } /** @@ -542,7 +542,7 @@ export namespace Call { * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ - export function undelegate(): t.pallet_democracy.pallet.Call.undelegate { + export function undelegate(): t.types.pallet_democracy.pallet.Call.undelegate { return { type: "undelegate" } } /** @@ -552,7 +552,7 @@ export namespace Call { * * Weight: `O(1)`. */ - export function clear_public_proposals(): t.pallet_democracy.pallet.Call.clear_public_proposals { + export function clear_public_proposals(): t.types.pallet_democracy.pallet.Call.clear_public_proposals { return { type: "clear_public_proposals" } } /** @@ -565,8 +565,8 @@ export namespace Call { * Weight: `O(R)` with R number of vote of target. */ export function unlock( - value: Omit, - ): t.pallet_democracy.pallet.Call.unlock { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.unlock { return { type: "unlock", ...value } } /** @@ -599,8 +599,8 @@ export namespace Call { * Weight is calculated for the maximum number of vote. */ export function remove_vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.remove_vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.remove_vote { return { type: "remove_vote", ...value } } /** @@ -621,8 +621,8 @@ export namespace Call { * Weight is calculated for the maximum number of vote. */ export function remove_other_vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.remove_other_vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.remove_other_vote { return { type: "remove_other_vote", ...value } } /** @@ -643,8 +643,8 @@ export namespace Call { * reasonable value). */ export function blacklist( - value: Omit, - ): t.pallet_democracy.pallet.Call.blacklist { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.blacklist { return { type: "blacklist", ...value } } /** @@ -657,8 +657,8 @@ export namespace Call { * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ export function cancel_proposal( - value: Omit, - ): t.pallet_democracy.pallet.Call.cancel_proposal { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.cancel_proposal { return { type: "cancel_proposal", ...value } } } @@ -691,32 +691,32 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_democracy.pallet.Event.Proposed - | t.pallet_democracy.pallet.Event.Tabled - | t.pallet_democracy.pallet.Event.ExternalTabled - | t.pallet_democracy.pallet.Event.Started - | t.pallet_democracy.pallet.Event.Passed - | t.pallet_democracy.pallet.Event.NotPassed - | t.pallet_democracy.pallet.Event.Cancelled - | t.pallet_democracy.pallet.Event.Delegated - | t.pallet_democracy.pallet.Event.Undelegated - | t.pallet_democracy.pallet.Event.Vetoed - | t.pallet_democracy.pallet.Event.Blacklisted - | t.pallet_democracy.pallet.Event.Voted - | t.pallet_democracy.pallet.Event.Seconded - | t.pallet_democracy.pallet.Event.ProposalCanceled + | t.types.pallet_democracy.pallet.Event.Proposed + | t.types.pallet_democracy.pallet.Event.Tabled + | t.types.pallet_democracy.pallet.Event.ExternalTabled + | t.types.pallet_democracy.pallet.Event.Started + | t.types.pallet_democracy.pallet.Event.Passed + | t.types.pallet_democracy.pallet.Event.NotPassed + | t.types.pallet_democracy.pallet.Event.Cancelled + | t.types.pallet_democracy.pallet.Event.Delegated + | t.types.pallet_democracy.pallet.Event.Undelegated + | t.types.pallet_democracy.pallet.Event.Vetoed + | t.types.pallet_democracy.pallet.Event.Blacklisted + | t.types.pallet_democracy.pallet.Event.Voted + | t.types.pallet_democracy.pallet.Event.Seconded + | t.types.pallet_democracy.pallet.Event.ProposalCanceled export namespace Event { /** A motion has been proposed by a public account. */ export interface Proposed { type: "Proposed" - proposal_index: t.u32 - deposit: t.u128 + proposal_index: t.types.u32 + deposit: t.types.u128 } /** A public proposal has been tabled for referendum vote. */ export interface Tabled { type: "Tabled" - proposal_index: t.u32 - deposit: t.u128 + proposal_index: t.types.u32 + deposit: t.types.u128 } /** An external proposal has been tabled. */ export interface ExternalTabled { @@ -725,145 +725,145 @@ export namespace Event { /** A referendum has begun. */ export interface Started { type: "Started" - ref_index: t.u32 - threshold: t.pallet_democracy.vote_threshold.VoteThreshold + ref_index: t.types.u32 + threshold: t.types.pallet_democracy.vote_threshold.VoteThreshold } /** A proposal has been approved by referendum. */ export interface Passed { type: "Passed" - ref_index: t.u32 + ref_index: t.types.u32 } /** A proposal has been rejected by referendum. */ export interface NotPassed { type: "NotPassed" - ref_index: t.u32 + ref_index: t.types.u32 } /** A referendum has been cancelled. */ export interface Cancelled { type: "Cancelled" - ref_index: t.u32 + ref_index: t.types.u32 } /** An account has delegated their vote to another account. */ export interface Delegated { type: "Delegated" - who: t.sp_core.crypto.AccountId32 - target: t.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 + target: t.types.sp_core.crypto.AccountId32 } /** An account has cancelled a previous delegation operation. */ export interface Undelegated { type: "Undelegated" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** An external proposal has been vetoed. */ export interface Vetoed { type: "Vetoed" - who: t.sp_core.crypto.AccountId32 - proposal_hash: t.primitive_types.H256 - until: t.u32 + who: t.types.sp_core.crypto.AccountId32 + proposal_hash: t.types.primitive_types.H256 + until: t.types.u32 } /** A proposal_hash has been blacklisted permanently. */ export interface Blacklisted { type: "Blacklisted" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** An account has voted in a referendum */ export interface Voted { type: "Voted" - voter: t.sp_core.crypto.AccountId32 - ref_index: t.u32 - vote: t.pallet_democracy.vote.AccountVote + voter: t.types.sp_core.crypto.AccountId32 + ref_index: t.types.u32 + vote: t.types.pallet_democracy.vote.AccountVote } /** An account has secconded a proposal */ export interface Seconded { type: "Seconded" - seconder: t.sp_core.crypto.AccountId32 - prop_index: t.u32 + seconder: t.types.sp_core.crypto.AccountId32 + prop_index: t.types.u32 } /** A proposal got canceled. */ export interface ProposalCanceled { type: "ProposalCanceled" - prop_index: t.u32 + prop_index: t.types.u32 } /** A motion has been proposed by a public account. */ export function Proposed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** A public proposal has been tabled for referendum vote. */ export function Tabled( - value: Omit, - ): t.pallet_democracy.pallet.Event.Tabled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Tabled { return { type: "Tabled", ...value } } /** An external proposal has been tabled. */ - export function ExternalTabled(): t.pallet_democracy.pallet.Event.ExternalTabled { + export function ExternalTabled(): t.types.pallet_democracy.pallet.Event.ExternalTabled { return { type: "ExternalTabled" } } /** A referendum has begun. */ export function Started( - value: Omit, - ): t.pallet_democracy.pallet.Event.Started { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Started { return { type: "Started", ...value } } /** A proposal has been approved by referendum. */ export function Passed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Passed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Passed { return { type: "Passed", ...value } } /** A proposal has been rejected by referendum. */ export function NotPassed( - value: Omit, - ): t.pallet_democracy.pallet.Event.NotPassed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.NotPassed { return { type: "NotPassed", ...value } } /** A referendum has been cancelled. */ export function Cancelled( - value: Omit, - ): t.pallet_democracy.pallet.Event.Cancelled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Cancelled { return { type: "Cancelled", ...value } } /** An account has delegated their vote to another account. */ export function Delegated( - value: Omit, - ): t.pallet_democracy.pallet.Event.Delegated { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Delegated { return { type: "Delegated", ...value } } /** An account has cancelled a previous delegation operation. */ export function Undelegated( - value: Omit, - ): t.pallet_democracy.pallet.Event.Undelegated { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Undelegated { return { type: "Undelegated", ...value } } /** An external proposal has been vetoed. */ export function Vetoed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Vetoed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Vetoed { return { type: "Vetoed", ...value } } /** A proposal_hash has been blacklisted permanently. */ export function Blacklisted( - value: Omit, - ): t.pallet_democracy.pallet.Event.Blacklisted { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Blacklisted { return { type: "Blacklisted", ...value } } /** An account has voted in a referendum */ export function Voted( - value: Omit, - ): t.pallet_democracy.pallet.Event.Voted { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Voted { return { type: "Voted", ...value } } /** An account has secconded a proposal */ export function Seconded( - value: Omit, - ): t.pallet_democracy.pallet.Event.Seconded { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Seconded { return { type: "Seconded", ...value } } /** A proposal got canceled. */ export function ProposalCanceled( - value: Omit, - ): t.pallet_democracy.pallet.Event.ProposalCanceled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.ProposalCanceled { return { type: "ProposalCanceled", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_democracy/types.ts b/codegen/_output/rococo/types/pallet_democracy/types.ts new file mode 100644 index 000000000..f0129bbe9 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_democracy/types.ts @@ -0,0 +1,68 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $delegations: $.Codec = _codec.$540 + +export const $referendumInfo: $.Codec = _codec.$533 + +export const $referendumStatus: $.Codec = + _codec.$534 + +export const $tally: $.Codec = _codec.$535 + +export interface Delegations { + votes: t.types.u128 + capital: t.types.u128 +} + +export function Delegations(value: t.types.pallet_democracy.types.Delegations) { + return value +} + +export type ReferendumInfo = + | t.types.pallet_democracy.types.ReferendumInfo.Ongoing + | t.types.pallet_democracy.types.ReferendumInfo.Finished +export namespace ReferendumInfo { + export interface Ongoing { + type: "Ongoing" + value: t.types.pallet_democracy.types.ReferendumStatus + } + export interface Finished { + type: "Finished" + approved: boolean + end: t.types.u32 + } + export function Ongoing( + value: t.types.pallet_democracy.types.ReferendumInfo.Ongoing["value"], + ): t.types.pallet_democracy.types.ReferendumInfo.Ongoing { + return { type: "Ongoing", value } + } + export function Finished( + value: Omit, + ): t.types.pallet_democracy.types.ReferendumInfo.Finished { + return { type: "Finished", ...value } + } +} + +export interface ReferendumStatus { + end: t.types.u32 + proposal: t.types.frame_support.traits.preimages.Bounded + threshold: t.types.pallet_democracy.vote_threshold.VoteThreshold + delay: t.types.u32 + tally: t.types.pallet_democracy.types.Tally +} + +export function ReferendumStatus(value: t.types.pallet_democracy.types.ReferendumStatus) { + return value +} + +export interface Tally { + ayes: t.types.u128 + nays: t.types.u128 + turnout: t.types.u128 +} + +export function Tally(value: t.types.pallet_democracy.types.Tally) { + return value +} diff --git a/codegen/_output/rococo/types/pallet_democracy/vote.ts b/codegen/_output/rococo/types/pallet_democracy/vote.ts new file mode 100644 index 000000000..14238d064 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_democracy/vote.ts @@ -0,0 +1,79 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $accountVote: $.Codec = _codec.$63 + +export const $priorLock: $.Codec = _codec.$541 + +export const $vote: $.Codec = _codec.$64 + +export const $voting: $.Codec = _codec.$536 + +export type AccountVote = + | t.types.pallet_democracy.vote.AccountVote.Standard + | t.types.pallet_democracy.vote.AccountVote.Split +export namespace AccountVote { + export interface Standard { + type: "Standard" + vote: t.types.pallet_democracy.vote.Vote + balance: t.types.u128 + } + export interface Split { + type: "Split" + aye: t.types.u128 + nay: t.types.u128 + } + export function Standard( + value: Omit, + ): t.types.pallet_democracy.vote.AccountVote.Standard { + return { type: "Standard", ...value } + } + export function Split( + value: Omit, + ): t.types.pallet_democracy.vote.AccountVote.Split { + return { type: "Split", ...value } + } +} + +export type PriorLock = [t.types.u32, t.types.u128] + +export function PriorLock(...value: t.types.pallet_democracy.vote.PriorLock) { + return value +} + +export type Vote = t.types.u8 + +export function Vote(value: t.types.pallet_democracy.vote.Vote) { + return value +} + +export type Voting = + | t.types.pallet_democracy.vote.Voting.Direct + | t.types.pallet_democracy.vote.Voting.Delegating +export namespace Voting { + export interface Direct { + type: "Direct" + votes: Array<[t.types.u32, t.types.pallet_democracy.vote.AccountVote]> + delegations: t.types.pallet_democracy.types.Delegations + prior: t.types.pallet_democracy.vote.PriorLock + } + export interface Delegating { + type: "Delegating" + balance: t.types.u128 + target: t.types.sp_core.crypto.AccountId32 + conviction: t.types.pallet_democracy.conviction.Conviction + delegations: t.types.pallet_democracy.types.Delegations + prior: t.types.pallet_democracy.vote.PriorLock + } + export function Direct( + value: Omit, + ): t.types.pallet_democracy.vote.Voting.Direct { + return { type: "Direct", ...value } + } + export function Delegating( + value: Omit, + ): t.types.pallet_democracy.vote.Voting.Delegating { + return { type: "Delegating", ...value } + } +} diff --git a/codegen/_output/rococo/types/pallet_democracy/vote_threshold.ts b/codegen/_output/rococo/types/pallet_democracy/vote_threshold.ts new file mode 100644 index 000000000..6bb511ea0 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_democracy/vote_threshold.ts @@ -0,0 +1,8 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $voteThreshold: $.Codec = + _codec.$62 + +export type VoteThreshold = "SuperMajorityApprove" | "SuperMajorityAgainst" | "SimpleMajority" diff --git a/codegen/_output/rococo/types/pallet_election_provider_multi_phase/mod.ts b/codegen/_output/rococo/types/pallet_election_provider_multi_phase/mod.ts new file mode 100644 index 000000000..2db454efe --- /dev/null +++ b/codegen/_output/rococo/types/pallet_election_provider_multi_phase/mod.ts @@ -0,0 +1,104 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as signed from "./signed.ts" + +export const $electionCompute: $.Codec< + t.types.pallet_election_provider_multi_phase.ElectionCompute +> = _codec.$87 + +export const $phase: $.Codec = _codec.$600 + +export const $rawSolution: $.Codec = + _codec.$311 + +export const $readySolution: $.Codec = + _codec.$602 + +export const $roundSnapshot: $.Codec = + _codec.$603 + +export const $solutionOrSnapshotSize: $.Codec< + t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize +> = _codec.$363 + +export type ElectionCompute = "OnChain" | "Signed" | "Unsigned" | "Fallback" | "Emergency" + +export type Phase = + | t.types.pallet_election_provider_multi_phase.Phase.Off + | t.types.pallet_election_provider_multi_phase.Phase.Signed + | t.types.pallet_election_provider_multi_phase.Phase.Unsigned + | t.types.pallet_election_provider_multi_phase.Phase.Emergency +export namespace Phase { + export interface Off { + type: "Off" + } + export interface Signed { + type: "Signed" + } + export interface Unsigned { + type: "Unsigned" + value: [boolean, t.types.u32] + } + export interface Emergency { + type: "Emergency" + } + export function Off(): t.types.pallet_election_provider_multi_phase.Phase.Off { + return { type: "Off" } + } + export function Signed(): t.types.pallet_election_provider_multi_phase.Phase.Signed { + return { type: "Signed" } + } + export function Unsigned( + value: t.types.pallet_election_provider_multi_phase.Phase.Unsigned["value"], + ): t.types.pallet_election_provider_multi_phase.Phase.Unsigned { + return { type: "Unsigned", value } + } + export function Emergency(): t.types.pallet_election_provider_multi_phase.Phase.Emergency { + return { type: "Emergency" } + } +} + +export interface RawSolution { + solution: t.types.polkadot_runtime.NposCompactSolution16 + score: t.types.sp_npos_elections.ElectionScore + round: t.types.u32 +} + +export function RawSolution(value: t.types.pallet_election_provider_multi_phase.RawSolution) { + return value +} + +export interface ReadySolution { + supports: Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> + score: t.types.sp_npos_elections.ElectionScore + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute +} + +export function ReadySolution(value: t.types.pallet_election_provider_multi_phase.ReadySolution) { + return value +} + +export interface RoundSnapshot { + voters: Array< + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] + > + targets: Array +} + +export function RoundSnapshot(value: t.types.pallet_election_provider_multi_phase.RoundSnapshot) { + return value +} + +export interface SolutionOrSnapshotSize { + voters: t.Compact + targets: t.Compact +} + +export function SolutionOrSnapshotSize( + value: t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize, +) { + return value +} diff --git a/codegen/_output/polkadot/pallet_election_provider_multi_phase/pallet.ts b/codegen/_output/rococo/types/pallet_election_provider_multi_phase/pallet.ts similarity index 65% rename from codegen/_output/polkadot/pallet_election_provider_multi_phase/pallet.ts rename to codegen/_output/rococo/types/pallet_election_provider_multi_phase/pallet.ts index 4c2c8e6b3..f887c8e4c 100644 --- a/codegen/_output/polkadot/pallet_election_provider_multi_phase/pallet.ts +++ b/codegen/_output/rococo/types/pallet_election_provider_multi_phase/pallet.ts @@ -1,20 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$310 +export const $call: $.Codec = _codec.$310 -export const $error: $.Codec = _codec.$611 +export const $error: $.Codec = + _codec.$611 -export const $event: $.Codec = _codec.$86 +export const $event: $.Codec = _codec.$86 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned - | t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score - | t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result - | t.pallet_election_provider_multi_phase.pallet.Call.submit - | t.pallet_election_provider_multi_phase.pallet.Call.governance_fallback + | t.types.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned + | t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score + | t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result + | t.types.pallet_election_provider_multi_phase.pallet.Call.submit + | t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback export namespace Call { /** * Submit a solution for the unsigned phase. @@ -34,8 +35,8 @@ export namespace Call { */ export interface submit_unsigned { type: "submit_unsigned" - raw_solution: t.pallet_election_provider_multi_phase.RawSolution - witness: t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution + witness: t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize } /** * Set a new value for `MinimumUntrustedScore`. @@ -46,7 +47,7 @@ export namespace Call { */ export interface set_minimum_untrusted_score { type: "set_minimum_untrusted_score" - maybe_next_score: t.sp_npos_elections.ElectionScore | undefined + maybe_next_score: t.types.sp_npos_elections.ElectionScore | undefined } /** * Set a solution in the queue, to be handed out to the client of this pallet in the next @@ -60,7 +61,7 @@ export namespace Call { */ export interface set_emergency_election_result { type: "set_emergency_election_result" - supports: Array<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> + supports: Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> } /** * Submit a solution for the signed phase. @@ -75,7 +76,7 @@ export namespace Call { */ export interface submit { type: "submit" - raw_solution: t.pallet_election_provider_multi_phase.RawSolution + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution } /** * Trigger the governance fallback. @@ -85,8 +86,8 @@ export namespace Call { */ export interface governance_fallback { type: "governance_fallback" - maybe_max_voters: t.u32 | undefined - maybe_max_targets: t.u32 | undefined + maybe_max_voters: t.types.u32 | undefined + maybe_max_targets: t.types.u32 | undefined } /** * Submit a solution for the unsigned phase. @@ -105,8 +106,8 @@ export namespace Call { * No deposit or reward is associated with this submission. */ export function submit_unsigned( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned { return { type: "submit_unsigned", ...value } } /** @@ -118,10 +119,10 @@ export namespace Call { */ export function set_minimum_untrusted_score( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, "type" >, - ): t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score { + ): t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score { return { type: "set_minimum_untrusted_score", ...value } } /** @@ -136,10 +137,10 @@ export namespace Call { */ export function set_emergency_election_result( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, "type" >, - ): t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result { + ): t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result { return { type: "set_emergency_election_result", ...value } } /** @@ -154,8 +155,8 @@ export namespace Call { * might be rewarded, slashed, or get all or a part of the deposit back. */ export function submit( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.submit { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.submit { return { type: "submit", ...value } } /** @@ -165,8 +166,11 @@ export namespace Call { * calling [`Call::set_emergency_election_result`]. */ export function governance_fallback( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.governance_fallback { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback { return { type: "governance_fallback", ...value } } } @@ -188,13 +192,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_election_provider_multi_phase.pallet.Event.SolutionStored - | t.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized - | t.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed - | t.pallet_election_provider_multi_phase.pallet.Event.Rewarded - | t.pallet_election_provider_multi_phase.pallet.Event.Slashed - | t.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted - | t.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted + | t.types.pallet_election_provider_multi_phase.pallet.Event.SolutionStored + | t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized + | t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed + | t.types.pallet_election_provider_multi_phase.pallet.Event.Rewarded + | t.types.pallet_election_provider_multi_phase.pallet.Event.Slashed + | t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted + | t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted export namespace Event { /** * A solution was stored with the given compute. @@ -206,14 +210,14 @@ export namespace Event { */ export interface SolutionStored { type: "SolutionStored" - compute: t.pallet_election_provider_multi_phase.ElectionCompute + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute prev_ejected: boolean } /** The election has been finalized, with the given computation and score. */ export interface ElectionFinalized { type: "ElectionFinalized" - compute: t.pallet_election_provider_multi_phase.ElectionCompute - score: t.sp_npos_elections.ElectionScore + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute + score: t.types.sp_npos_elections.ElectionScore } /** * An election failed. @@ -226,24 +230,24 @@ export namespace Event { /** An account has been rewarded for their signed submission being finalized. */ export interface Rewarded { type: "Rewarded" - account: t.sp_core.crypto.AccountId32 - value: t.u128 + account: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 } /** An account has been slashed for submitting an invalid signed submission. */ export interface Slashed { type: "Slashed" - account: t.sp_core.crypto.AccountId32 - value: t.u128 + account: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 } /** The signed phase of the given round has started. */ export interface SignedPhaseStarted { type: "SignedPhaseStarted" - round: t.u32 + round: t.types.u32 } /** The unsigned phase of the given round has started. */ export interface UnsignedPhaseStarted { type: "UnsignedPhaseStarted" - round: t.u32 + round: t.types.u32 } /** * A solution was stored with the given compute. @@ -254,14 +258,17 @@ export namespace Event { * The `bool` is `true` when a previous solution was ejected to make room for this one. */ export function SolutionStored( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.SolutionStored { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.SolutionStored { return { type: "SolutionStored", ...value } } /** The election has been finalized, with the given computation and score. */ export function ElectionFinalized( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized { return { type: "ElectionFinalized", ...value } } /** @@ -269,31 +276,37 @@ export namespace Event { * * Not much can be said about which computes failed in the process. */ - export function ElectionFailed(): t.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed { + export function ElectionFailed(): t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed { return { type: "ElectionFailed" } } /** An account has been rewarded for their signed submission being finalized. */ export function Rewarded( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.Rewarded { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.Rewarded { return { type: "Rewarded", ...value } } /** An account has been slashed for submitting an invalid signed submission. */ export function Slashed( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** The signed phase of the given round has started. */ export function SignedPhaseStarted( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted { return { type: "SignedPhaseStarted", ...value } } /** The unsigned phase of the given round has started. */ export function UnsignedPhaseStarted( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted { return { type: "UnsignedPhaseStarted", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_election_provider_multi_phase/signed.ts b/codegen/_output/rococo/types/pallet_election_provider_multi_phase/signed.ts new file mode 100644 index 000000000..6fbed6f87 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_election_provider_multi_phase/signed.ts @@ -0,0 +1,20 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $signedSubmission: $.Codec< + t.types.pallet_election_provider_multi_phase.signed.SignedSubmission +> = _codec.$610 + +export interface SignedSubmission { + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution + call_fee: t.types.u128 +} + +export function SignedSubmission( + value: t.types.pallet_election_provider_multi_phase.signed.SignedSubmission, +) { + return value +} diff --git a/codegen/_output/rococo/types/pallet_elections_phragmen/mod.ts b/codegen/_output/rococo/types/pallet_elections_phragmen/mod.ts new file mode 100644 index 000000000..2dbfe20df --- /dev/null +++ b/codegen/_output/rococo/types/pallet_elections_phragmen/mod.ts @@ -0,0 +1,59 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $renouncing: $.Codec = _codec.$242 + +export const $seatHolder: $.Codec = _codec.$551 + +export const $voter: $.Codec = _codec.$552 + +export type Renouncing = + | t.types.pallet_elections_phragmen.Renouncing.Member + | t.types.pallet_elections_phragmen.Renouncing.RunnerUp + | t.types.pallet_elections_phragmen.Renouncing.Candidate +export namespace Renouncing { + export interface Member { + type: "Member" + } + export interface RunnerUp { + type: "RunnerUp" + } + export interface Candidate { + type: "Candidate" + value: t.Compact + } + export function Member(): t.types.pallet_elections_phragmen.Renouncing.Member { + return { type: "Member" } + } + export function RunnerUp(): t.types.pallet_elections_phragmen.Renouncing.RunnerUp { + return { type: "RunnerUp" } + } + export function Candidate( + value: t.types.pallet_elections_phragmen.Renouncing.Candidate["value"], + ): t.types.pallet_elections_phragmen.Renouncing.Candidate { + return { type: "Candidate", value } + } +} + +export interface SeatHolder { + who: t.types.sp_core.crypto.AccountId32 + stake: t.types.u128 + deposit: t.types.u128 +} + +export function SeatHolder(value: t.types.pallet_elections_phragmen.SeatHolder) { + return value +} + +export interface Voter { + votes: Array + stake: t.types.u128 + deposit: t.types.u128 +} + +export function Voter(value: t.types.pallet_elections_phragmen.Voter) { + return value +} diff --git a/codegen/_output/westend/pallet_elections_phragmen/pallet.ts b/codegen/_output/rococo/types/pallet_elections_phragmen/pallet.ts similarity index 77% rename from codegen/_output/westend/pallet_elections_phragmen/pallet.ts rename to codegen/_output/rococo/types/pallet_elections_phragmen/pallet.ts index 4867e13f0..f8d119b2b 100644 --- a/codegen/_output/westend/pallet_elections_phragmen/pallet.ts +++ b/codegen/_output/rococo/types/pallet_elections_phragmen/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$241 +export const $call: $.Codec = _codec.$241 -export const $error: $.Codec = _codec.$553 +export const $error: $.Codec = _codec.$553 -export const $event: $.Codec = _codec.$67 +export const $event: $.Codec = _codec.$67 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_elections_phragmen.pallet.Call.vote - | t.pallet_elections_phragmen.pallet.Call.remove_voter - | t.pallet_elections_phragmen.pallet.Call.submit_candidacy - | t.pallet_elections_phragmen.pallet.Call.renounce_candidacy - | t.pallet_elections_phragmen.pallet.Call.remove_member - | t.pallet_elections_phragmen.pallet.Call.clean_defunct_voters + | t.types.pallet_elections_phragmen.pallet.Call.vote + | t.types.pallet_elections_phragmen.pallet.Call.remove_voter + | t.types.pallet_elections_phragmen.pallet.Call.submit_candidacy + | t.types.pallet_elections_phragmen.pallet.Call.renounce_candidacy + | t.types.pallet_elections_phragmen.pallet.Call.remove_member + | t.types.pallet_elections_phragmen.pallet.Call.clean_defunct_voters export namespace Call { /** * Vote for a set of candidates for the upcoming round of election. This can be called to @@ -44,8 +44,8 @@ export namespace Call { */ export interface vote { type: "vote" - votes: Array - value: t.Compact + votes: Array + value: t.Compact } /** * Remove `origin` as a voter. @@ -76,7 +76,7 @@ export namespace Call { */ export interface submit_candidacy { type: "submit_candidacy" - candidate_count: t.Compact + candidate_count: t.Compact } /** * Renounce one's intention to be a candidate for the next election round. 3 potential @@ -100,7 +100,7 @@ export namespace Call { */ export interface renounce_candidacy { type: "renounce_candidacy" - renouncing: t.pallet_elections_phragmen.Renouncing + renouncing: t.types.pallet_elections_phragmen.Renouncing } /** * Remove a particular member from the set. This is effective immediately and the bond of @@ -124,7 +124,7 @@ export namespace Call { */ export interface remove_member { type: "remove_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress slash_bond: boolean rerun_election: boolean } @@ -142,8 +142,8 @@ export namespace Call { */ export interface clean_defunct_voters { type: "clean_defunct_voters" - num_voters: t.u32 - num_defunct: t.u32 + num_voters: t.types.u32 + num_defunct: t.types.u32 } /** * Vote for a set of candidates for the upcoming round of election. This can be called to @@ -171,8 +171,8 @@ export namespace Call { * # */ export function vote( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.vote { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -182,7 +182,7 @@ export namespace Call { * * The dispatch origin of this call must be signed and be a voter. */ - export function remove_voter(): t.pallet_elections_phragmen.pallet.Call.remove_voter { + export function remove_voter(): t.types.pallet_elections_phragmen.pallet.Call.remove_voter { return { type: "remove_voter" } } /** @@ -203,8 +203,8 @@ export namespace Call { * # */ export function submit_candidacy( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.submit_candidacy { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.submit_candidacy { return { type: "submit_candidacy", ...value } } /** @@ -228,8 +228,8 @@ export namespace Call { * # */ export function renounce_candidacy( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.renounce_candidacy { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.renounce_candidacy { return { type: "renounce_candidacy", ...value } } /** @@ -253,8 +253,8 @@ export namespace Call { * # */ export function remove_member( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.remove_member { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.remove_member { return { type: "remove_member", ...value } } /** @@ -270,8 +270,8 @@ export namespace Call { * # */ export function clean_defunct_voters( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.clean_defunct_voters { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.clean_defunct_voters { return { type: "clean_defunct_voters", ...value } } } @@ -298,13 +298,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_elections_phragmen.pallet.Event.NewTerm - | t.pallet_elections_phragmen.pallet.Event.EmptyTerm - | t.pallet_elections_phragmen.pallet.Event.ElectionError - | t.pallet_elections_phragmen.pallet.Event.MemberKicked - | t.pallet_elections_phragmen.pallet.Event.Renounced - | t.pallet_elections_phragmen.pallet.Event.CandidateSlashed - | t.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed + | t.types.pallet_elections_phragmen.pallet.Event.NewTerm + | t.types.pallet_elections_phragmen.pallet.Event.EmptyTerm + | t.types.pallet_elections_phragmen.pallet.Event.ElectionError + | t.types.pallet_elections_phragmen.pallet.Event.MemberKicked + | t.types.pallet_elections_phragmen.pallet.Event.Renounced + | t.types.pallet_elections_phragmen.pallet.Event.CandidateSlashed + | t.types.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed export namespace Event { /** * A new term with new_members. This indicates that enough candidates existed to run @@ -315,7 +315,7 @@ export namespace Event { */ export interface NewTerm { type: "NewTerm" - new_members: Array<[t.sp_core.crypto.AccountId32, t.u128]> + new_members: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> } /** * No (or not enough) candidates existed for this round. This is different from @@ -334,12 +334,12 @@ export namespace Event { */ export interface MemberKicked { type: "MemberKicked" - member: t.sp_core.crypto.AccountId32 + member: t.types.sp_core.crypto.AccountId32 } /** Someone has renounced their candidacy. */ export interface Renounced { type: "Renounced" - candidate: t.sp_core.crypto.AccountId32 + candidate: t.types.sp_core.crypto.AccountId32 } /** * A candidate was slashed by amount due to failing to obtain a seat as member or @@ -349,14 +349,14 @@ export namespace Event { */ export interface CandidateSlashed { type: "CandidateSlashed" - candidate: t.sp_core.crypto.AccountId32 - amount: t.u128 + candidate: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A seat holder was slashed by amount by being forcefully removed from the set. */ export interface SeatHolderSlashed { type: "SeatHolderSlashed" - seat_holder: t.sp_core.crypto.AccountId32 - amount: t.u128 + seat_holder: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * A new term with new_members. This indicates that enough candidates existed to run @@ -366,19 +366,19 @@ export namespace Event { * begin with. */ export function NewTerm( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.NewTerm { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.NewTerm { return { type: "NewTerm", ...value } } /** * No (or not enough) candidates existed for this round. This is different from * `NewTerm(\[\])`. See the description of `NewTerm`. */ - export function EmptyTerm(): t.pallet_elections_phragmen.pallet.Event.EmptyTerm { + export function EmptyTerm(): t.types.pallet_elections_phragmen.pallet.Event.EmptyTerm { return { type: "EmptyTerm" } } /** Internal error happened while trying to perform election. */ - export function ElectionError(): t.pallet_elections_phragmen.pallet.Event.ElectionError { + export function ElectionError(): t.types.pallet_elections_phragmen.pallet.Event.ElectionError { return { type: "ElectionError" } } /** @@ -386,14 +386,14 @@ export namespace Event { * `EmptyTerm`. */ export function MemberKicked( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.MemberKicked { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.MemberKicked { return { type: "MemberKicked", ...value } } /** Someone has renounced their candidacy. */ export function Renounced( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.Renounced { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.Renounced { return { type: "Renounced", ...value } } /** @@ -403,14 +403,14 @@ export namespace Event { * Note that old members and runners-up are also candidates. */ export function CandidateSlashed( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.CandidateSlashed { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.CandidateSlashed { return { type: "CandidateSlashed", ...value } } /** A seat holder was slashed by amount by being forcefully removed from the set. */ export function SeatHolderSlashed( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed { return { type: "SeatHolderSlashed", ...value } } } diff --git a/codegen/_output/rococo/pallet_fast_unstake/mod.ts b/codegen/_output/rococo/types/pallet_fast_unstake/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_fast_unstake/mod.ts rename to codegen/_output/rococo/types/pallet_fast_unstake/mod.ts diff --git a/codegen/_output/westend/pallet_fast_unstake/pallet.ts b/codegen/_output/rococo/types/pallet_fast_unstake/pallet.ts similarity index 69% rename from codegen/_output/westend/pallet_fast_unstake/pallet.ts rename to codegen/_output/rococo/types/pallet_fast_unstake/pallet.ts index f71b89fd1..593f22acc 100644 --- a/codegen/_output/westend/pallet_fast_unstake/pallet.ts +++ b/codegen/_output/rococo/types/pallet_fast_unstake/pallet.ts @@ -1,20 +1,20 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$374 +export const $call: $.Codec = _codec.$374 -export const $error: $.Codec = _codec.$637 +export const $error: $.Codec = _codec.$637 -export const $event: $.Codec = _codec.$93 +export const $event: $.Codec = _codec.$93 -export const $maxChecking: $.Codec = _codec.$635 +export const $maxChecking: $.Codec = _codec.$635 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_fast_unstake.pallet.Call.register_fast_unstake - | t.pallet_fast_unstake.pallet.Call.deregister - | t.pallet_fast_unstake.pallet.Call.control + | t.types.pallet_fast_unstake.pallet.Call.register_fast_unstake + | t.types.pallet_fast_unstake.pallet.Call.deregister + | t.types.pallet_fast_unstake.pallet.Call.control export namespace Call { /** * Register oneself for fast-unstake. @@ -58,7 +58,7 @@ export namespace Call { */ export interface control { type: "control" - unchecked_eras_to_check: t.u32 + unchecked_eras_to_check: t.types.u32 } /** * Register oneself for fast-unstake. @@ -80,7 +80,7 @@ export namespace Call { * the normal staking system, but they lose part of their unbonding chunks due to consuming * the chain's resources. */ - export function register_fast_unstake(): t.pallet_fast_unstake.pallet.Call.register_fast_unstake { + export function register_fast_unstake(): t.types.pallet_fast_unstake.pallet.Call.register_fast_unstake { return { type: "register_fast_unstake" } } /** @@ -92,7 +92,7 @@ export namespace Call { * calling `register_fast_unstake`. This should probably be followed by a call to * `Staking::rebond`. */ - export function deregister(): t.pallet_fast_unstake.pallet.Call.deregister { + export function deregister(): t.types.pallet_fast_unstake.pallet.Call.deregister { return { type: "deregister" } } /** @@ -101,8 +101,8 @@ export namespace Call { * Dispatch origin must be signed by the [`Config::ControlOrigin`]. */ export function control( - value: Omit, - ): t.pallet_fast_unstake.pallet.Call.control { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Call.control { return { type: "control", ...value } } } @@ -118,29 +118,29 @@ export type Error = /** The events of this pallet. */ export type Event = - | t.pallet_fast_unstake.pallet.Event.Unstaked - | t.pallet_fast_unstake.pallet.Event.Slashed - | t.pallet_fast_unstake.pallet.Event.Checking - | t.pallet_fast_unstake.pallet.Event.Errored - | t.pallet_fast_unstake.pallet.Event.InternalError + | t.types.pallet_fast_unstake.pallet.Event.Unstaked + | t.types.pallet_fast_unstake.pallet.Event.Slashed + | t.types.pallet_fast_unstake.pallet.Event.Checking + | t.types.pallet_fast_unstake.pallet.Event.Errored + | t.types.pallet_fast_unstake.pallet.Event.InternalError export namespace Event { /** A staker was unstaked. */ export interface Unstaked { type: "Unstaked" - stash: t.sp_core.crypto.AccountId32 - result: null | C.ChainError + stash: t.types.sp_core.crypto.AccountId32 + result: null | C.ChainError } /** A staker was slashed for requesting fast-unstake whilst being exposed. */ export interface Slashed { type: "Slashed" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A staker was partially checked for the given eras, but the process did not finish. */ export interface Checking { type: "Checking" - stash: t.sp_core.crypto.AccountId32 - eras: Array + stash: t.types.sp_core.crypto.AccountId32 + eras: Array } /** * Some internal error happened while migrating stash. They are removed as head as a @@ -148,7 +148,7 @@ export namespace Event { */ export interface Errored { type: "Errored" - stash: t.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** An internal error happened. Operations will be paused now. */ export interface InternalError { @@ -156,20 +156,20 @@ export namespace Event { } /** A staker was unstaked. */ export function Unstaked( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Unstaked { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Unstaked { return { type: "Unstaked", ...value } } /** A staker was slashed for requesting fast-unstake whilst being exposed. */ export function Slashed( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** A staker was partially checked for the given eras, but the process did not finish. */ export function Checking( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Checking { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Checking { return { type: "Checking", ...value } } /** @@ -177,12 +177,12 @@ export namespace Event { * consequence. */ export function Errored( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Errored { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Errored { return { type: "Errored", ...value } } /** An internal error happened. Operations will be paused now. */ - export function InternalError(): t.pallet_fast_unstake.pallet.Event.InternalError { + export function InternalError(): t.types.pallet_fast_unstake.pallet.Event.InternalError { return { type: "InternalError" } } } diff --git a/codegen/_output/rococo/types/pallet_fast_unstake/types.ts b/codegen/_output/rococo/types/pallet_fast_unstake/types.ts new file mode 100644 index 000000000..e29dae328 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_fast_unstake/types.ts @@ -0,0 +1,16 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $unstakeRequest: $.Codec = + _codec.$634 + +export interface UnstakeRequest { + stash: t.types.sp_core.crypto.AccountId32 + checked: Array + deposit: t.types.u128 +} + +export function UnstakeRequest(value: t.types.pallet_fast_unstake.types.UnstakeRequest) { + return value +} diff --git a/codegen/_output/rococo/types/pallet_grandpa/mod.ts b/codegen/_output/rococo/types/pallet_grandpa/mod.ts new file mode 100644 index 000000000..699b2d179 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_grandpa/mod.ts @@ -0,0 +1,60 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $storedPendingChange: $.Codec = _codec.$517 + +export const $storedState: $.Codec = _codec.$516 + +export interface StoredPendingChange { + scheduled_at: t.types.u32 + delay: t.types.u32 + next_authorities: Array<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> + forced: t.types.u32 | undefined +} + +export function StoredPendingChange(value: t.types.pallet_grandpa.StoredPendingChange) { + return value +} + +export type StoredState = + | t.types.pallet_grandpa.StoredState.Live + | t.types.pallet_grandpa.StoredState.PendingPause + | t.types.pallet_grandpa.StoredState.Paused + | t.types.pallet_grandpa.StoredState.PendingResume +export namespace StoredState { + export interface Live { + type: "Live" + } + export interface PendingPause { + type: "PendingPause" + scheduled_at: t.types.u32 + delay: t.types.u32 + } + export interface Paused { + type: "Paused" + } + export interface PendingResume { + type: "PendingResume" + scheduled_at: t.types.u32 + delay: t.types.u32 + } + export function Live(): t.types.pallet_grandpa.StoredState.Live { + return { type: "Live" } + } + export function PendingPause( + value: Omit, + ): t.types.pallet_grandpa.StoredState.PendingPause { + return { type: "PendingPause", ...value } + } + export function Paused(): t.types.pallet_grandpa.StoredState.Paused { + return { type: "Paused" } + } + export function PendingResume( + value: Omit, + ): t.types.pallet_grandpa.StoredState.PendingResume { + return { type: "PendingResume", ...value } + } +} diff --git a/codegen/_output/rococo/pallet_grandpa/pallet.ts b/codegen/_output/rococo/types/pallet_grandpa/pallet.ts similarity index 72% rename from codegen/_output/rococo/pallet_grandpa/pallet.ts rename to codegen/_output/rococo/types/pallet_grandpa/pallet.ts index cfe60ddee..922a4100f 100644 --- a/codegen/_output/rococo/pallet_grandpa/pallet.ts +++ b/codegen/_output/rococo/types/pallet_grandpa/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$216 +export const $call: $.Codec = _codec.$216 -export const $error: $.Codec = _codec.$519 +export const $error: $.Codec = _codec.$519 -export const $event: $.Codec = _codec.$47 +export const $event: $.Codec = _codec.$47 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_grandpa.pallet.Call.report_equivocation - | t.pallet_grandpa.pallet.Call.report_equivocation_unsigned - | t.pallet_grandpa.pallet.Call.note_stalled + | t.types.pallet_grandpa.pallet.Call.report_equivocation + | t.types.pallet_grandpa.pallet.Call.report_equivocation_unsigned + | t.types.pallet_grandpa.pallet.Call.note_stalled export namespace Call { /** * Report voter equivocation/misbehavior. This method will verify the @@ -22,8 +22,8 @@ export namespace Call { */ export interface report_equivocation { type: "report_equivocation" - equivocation_proof: t.sp_finality_grandpa.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_finality_grandpa.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Report voter equivocation/misbehavior. This method will verify the @@ -38,8 +38,8 @@ export namespace Call { */ export interface report_equivocation_unsigned { type: "report_equivocation_unsigned" - equivocation_proof: t.sp_finality_grandpa.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_finality_grandpa.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Note that the current authority set of the GRANDPA finality gadget has stalled. @@ -57,8 +57,8 @@ export namespace Call { */ export interface note_stalled { type: "note_stalled" - delay: t.u32 - best_finalized_block_number: t.u32 + delay: t.types.u32 + best_finalized_block_number: t.types.u32 } /** * Report voter equivocation/misbehavior. This method will verify the @@ -67,8 +67,8 @@ export namespace Call { * will be reported. */ export function report_equivocation( - value: Omit, - ): t.pallet_grandpa.pallet.Call.report_equivocation { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.report_equivocation { return { type: "report_equivocation", ...value } } /** @@ -83,8 +83,8 @@ export namespace Call { * reporter. */ export function report_equivocation_unsigned( - value: Omit, - ): t.pallet_grandpa.pallet.Call.report_equivocation_unsigned { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.report_equivocation_unsigned { return { type: "report_equivocation_unsigned", ...value } } /** @@ -102,8 +102,8 @@ export namespace Call { * Only callable by root. */ export function note_stalled( - value: Omit, - ): t.pallet_grandpa.pallet.Call.note_stalled { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.note_stalled { return { type: "note_stalled", ...value } } } @@ -120,14 +120,14 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_grandpa.pallet.Event.NewAuthorities - | t.pallet_grandpa.pallet.Event.Paused - | t.pallet_grandpa.pallet.Event.Resumed + | t.types.pallet_grandpa.pallet.Event.NewAuthorities + | t.types.pallet_grandpa.pallet.Event.Paused + | t.types.pallet_grandpa.pallet.Event.Resumed export namespace Event { /** New authority set has been applied. */ export interface NewAuthorities { type: "NewAuthorities" - authority_set: Array<[t.sp_finality_grandpa.app.Public, t.u64]> + authority_set: Array<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> } /** Current authority set has been paused. */ export interface Paused { @@ -139,16 +139,16 @@ export namespace Event { } /** New authority set has been applied. */ export function NewAuthorities( - value: Omit, - ): t.pallet_grandpa.pallet.Event.NewAuthorities { + value: Omit, + ): t.types.pallet_grandpa.pallet.Event.NewAuthorities { return { type: "NewAuthorities", ...value } } /** Current authority set has been paused. */ - export function Paused(): t.pallet_grandpa.pallet.Event.Paused { + export function Paused(): t.types.pallet_grandpa.pallet.Event.Paused { return { type: "Paused" } } /** Current authority set has been resumed. */ - export function Resumed(): t.pallet_grandpa.pallet.Event.Resumed { + export function Resumed(): t.types.pallet_grandpa.pallet.Event.Resumed { return { type: "Resumed" } } } diff --git a/codegen/_output/rococo/pallet_identity/mod.ts b/codegen/_output/rococo/types/pallet_identity/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_identity/mod.ts rename to codegen/_output/rococo/types/pallet_identity/mod.ts diff --git a/codegen/_output/polkadot/pallet_identity/pallet.ts b/codegen/_output/rococo/types/pallet_identity/pallet.ts similarity index 77% rename from codegen/_output/polkadot/pallet_identity/pallet.ts rename to codegen/_output/rococo/types/pallet_identity/pallet.ts index 98461520b..4dea704fd 100644 --- a/codegen/_output/polkadot/pallet_identity/pallet.ts +++ b/codegen/_output/rococo/types/pallet_identity/pallet.ts @@ -1,30 +1,30 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$263 +export const $call: $.Codec = _codec.$263 -export const $error: $.Codec = _codec.$578 +export const $error: $.Codec = _codec.$578 -export const $event: $.Codec = _codec.$77 +export const $event: $.Codec = _codec.$77 /** Identity pallet declaration. */ export type Call = - | t.pallet_identity.pallet.Call.add_registrar - | t.pallet_identity.pallet.Call.set_identity - | t.pallet_identity.pallet.Call.set_subs - | t.pallet_identity.pallet.Call.clear_identity - | t.pallet_identity.pallet.Call.request_judgement - | t.pallet_identity.pallet.Call.cancel_request - | t.pallet_identity.pallet.Call.set_fee - | t.pallet_identity.pallet.Call.set_account_id - | t.pallet_identity.pallet.Call.set_fields - | t.pallet_identity.pallet.Call.provide_judgement - | t.pallet_identity.pallet.Call.kill_identity - | t.pallet_identity.pallet.Call.add_sub - | t.pallet_identity.pallet.Call.rename_sub - | t.pallet_identity.pallet.Call.remove_sub - | t.pallet_identity.pallet.Call.quit_sub + | t.types.pallet_identity.pallet.Call.add_registrar + | t.types.pallet_identity.pallet.Call.set_identity + | t.types.pallet_identity.pallet.Call.set_subs + | t.types.pallet_identity.pallet.Call.clear_identity + | t.types.pallet_identity.pallet.Call.request_judgement + | t.types.pallet_identity.pallet.Call.cancel_request + | t.types.pallet_identity.pallet.Call.set_fee + | t.types.pallet_identity.pallet.Call.set_account_id + | t.types.pallet_identity.pallet.Call.set_fields + | t.types.pallet_identity.pallet.Call.provide_judgement + | t.types.pallet_identity.pallet.Call.kill_identity + | t.types.pallet_identity.pallet.Call.add_sub + | t.types.pallet_identity.pallet.Call.rename_sub + | t.types.pallet_identity.pallet.Call.remove_sub + | t.types.pallet_identity.pallet.Call.quit_sub export namespace Call { /** * Add a registrar to the system. @@ -43,7 +43,7 @@ export namespace Call { */ export interface add_registrar { type: "add_registrar" - account: t.sp_runtime.multiaddress.MultiAddress + account: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set an account's identity information and reserve the appropriate deposit. @@ -68,7 +68,7 @@ export namespace Call { */ export interface set_identity { type: "set_identity" - info: t.pallet_identity.types.IdentityInfo + info: t.types.pallet_identity.types.IdentityInfo } /** * Set the sub-accounts of the sender. @@ -95,7 +95,7 @@ export namespace Call { */ export interface set_subs { type: "set_subs" - subs: Array<[t.sp_core.crypto.AccountId32, t.pallet_identity.types.Data]> + subs: Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data]> } /** * Clear an account's identity info and all sub-accounts and return all deposits. @@ -147,8 +147,8 @@ export namespace Call { */ export interface request_judgement { type: "request_judgement" - reg_index: t.Compact - max_fee: t.Compact + reg_index: t.Compact + max_fee: t.Compact } /** * Cancel a previous request. @@ -171,7 +171,7 @@ export namespace Call { */ export interface cancel_request { type: "cancel_request" - reg_index: t.u32 + reg_index: t.types.u32 } /** * Set the fee required for a judgement to be requested from a registrar. @@ -190,8 +190,8 @@ export namespace Call { */ export interface set_fee { type: "set_fee" - index: t.Compact - fee: t.Compact + index: t.Compact + fee: t.Compact } /** * Change the account associated with a registrar. @@ -210,8 +210,8 @@ export namespace Call { */ export interface set_account_id { type: "set_account_id" - index: t.Compact - new: t.sp_runtime.multiaddress.MultiAddress + index: t.Compact + new: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set the field information for a registrar. @@ -230,8 +230,8 @@ export namespace Call { */ export interface set_fields { type: "set_fields" - index: t.Compact - fields: t.u64 + index: t.Compact + fields: t.types.u64 } /** * Provide a judgement for an account's identity. @@ -257,10 +257,10 @@ export namespace Call { */ export interface provide_judgement { type: "provide_judgement" - reg_index: t.Compact - target: t.sp_runtime.multiaddress.MultiAddress - judgement: t.pallet_identity.types.Judgement - identity: t.primitive_types.H256 + reg_index: t.Compact + target: t.types.sp_runtime.multiaddress.MultiAddress + judgement: t.types.pallet_identity.types.Judgement + identity: t.types.primitive_types.H256 } /** * Remove an account's identity and sub-account information and slash the deposits. @@ -285,7 +285,7 @@ export namespace Call { */ export interface kill_identity { type: "kill_identity" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Add the given account to the sender's subs. @@ -298,8 +298,8 @@ export namespace Call { */ export interface add_sub { type: "add_sub" - sub: t.sp_runtime.multiaddress.MultiAddress - data: t.pallet_identity.types.Data + sub: t.types.sp_runtime.multiaddress.MultiAddress + data: t.types.pallet_identity.types.Data } /** * Alter the associated name of the given sub-account. @@ -309,8 +309,8 @@ export namespace Call { */ export interface rename_sub { type: "rename_sub" - sub: t.sp_runtime.multiaddress.MultiAddress - data: t.pallet_identity.types.Data + sub: t.types.sp_runtime.multiaddress.MultiAddress + data: t.types.pallet_identity.types.Data } /** * Remove the given account from the sender's subs. @@ -323,7 +323,7 @@ export namespace Call { */ export interface remove_sub { type: "remove_sub" - sub: t.sp_runtime.multiaddress.MultiAddress + sub: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove the sender as a sub-account. @@ -356,8 +356,8 @@ export namespace Call { * # */ export function add_registrar( - value: Omit, - ): t.pallet_identity.pallet.Call.add_registrar { + value: Omit, + ): t.types.pallet_identity.pallet.Call.add_registrar { return { type: "add_registrar", ...value } } /** @@ -382,8 +382,8 @@ export namespace Call { * # */ export function set_identity( - value: Omit, - ): t.pallet_identity.pallet.Call.set_identity { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_identity { return { type: "set_identity", ...value } } /** @@ -410,8 +410,8 @@ export namespace Call { * # */ export function set_subs( - value: Omit, - ): t.pallet_identity.pallet.Call.set_subs { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_subs { return { type: "set_subs", ...value } } /** @@ -434,7 +434,7 @@ export namespace Call { * - One event. * # */ - export function clear_identity(): t.pallet_identity.pallet.Call.clear_identity { + export function clear_identity(): t.types.pallet_identity.pallet.Call.clear_identity { return { type: "clear_identity" } } /** @@ -463,8 +463,8 @@ export namespace Call { * # */ export function request_judgement( - value: Omit, - ): t.pallet_identity.pallet.Call.request_judgement { + value: Omit, + ): t.types.pallet_identity.pallet.Call.request_judgement { return { type: "request_judgement", ...value } } /** @@ -487,8 +487,8 @@ export namespace Call { * # */ export function cancel_request( - value: Omit, - ): t.pallet_identity.pallet.Call.cancel_request { + value: Omit, + ): t.types.pallet_identity.pallet.Call.cancel_request { return { type: "cancel_request", ...value } } /** @@ -507,8 +507,8 @@ export namespace Call { * # */ export function set_fee( - value: Omit, - ): t.pallet_identity.pallet.Call.set_fee { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_fee { return { type: "set_fee", ...value } } /** @@ -527,8 +527,8 @@ export namespace Call { * # */ export function set_account_id( - value: Omit, - ): t.pallet_identity.pallet.Call.set_account_id { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_account_id { return { type: "set_account_id", ...value } } /** @@ -547,8 +547,8 @@ export namespace Call { * # */ export function set_fields( - value: Omit, - ): t.pallet_identity.pallet.Call.set_fields { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_fields { return { type: "set_fields", ...value } } /** @@ -574,8 +574,8 @@ export namespace Call { * # */ export function provide_judgement( - value: Omit, - ): t.pallet_identity.pallet.Call.provide_judgement { + value: Omit, + ): t.types.pallet_identity.pallet.Call.provide_judgement { return { type: "provide_judgement", ...value } } /** @@ -600,8 +600,8 @@ export namespace Call { * # */ export function kill_identity( - value: Omit, - ): t.pallet_identity.pallet.Call.kill_identity { + value: Omit, + ): t.types.pallet_identity.pallet.Call.kill_identity { return { type: "kill_identity", ...value } } /** @@ -614,8 +614,8 @@ export namespace Call { * sub identity of `sub`. */ export function add_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.add_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.add_sub { return { type: "add_sub", ...value } } /** @@ -625,8 +625,8 @@ export namespace Call { * sub identity of `sub`. */ export function rename_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.rename_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.rename_sub { return { type: "rename_sub", ...value } } /** @@ -639,8 +639,8 @@ export namespace Call { * sub identity of `sub`. */ export function remove_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.remove_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.remove_sub { return { type: "remove_sub", ...value } } /** @@ -655,7 +655,7 @@ export namespace Call { * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ - export function quit_sub(): t.pallet_identity.pallet.Call.quit_sub { + export function quit_sub(): t.types.pallet_identity.pallet.Call.quit_sub { return { type: "quit_sub" } } } @@ -682,70 +682,70 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_identity.pallet.Event.IdentitySet - | t.pallet_identity.pallet.Event.IdentityCleared - | t.pallet_identity.pallet.Event.IdentityKilled - | t.pallet_identity.pallet.Event.JudgementRequested - | t.pallet_identity.pallet.Event.JudgementUnrequested - | t.pallet_identity.pallet.Event.JudgementGiven - | t.pallet_identity.pallet.Event.RegistrarAdded - | t.pallet_identity.pallet.Event.SubIdentityAdded - | t.pallet_identity.pallet.Event.SubIdentityRemoved - | t.pallet_identity.pallet.Event.SubIdentityRevoked + | t.types.pallet_identity.pallet.Event.IdentitySet + | t.types.pallet_identity.pallet.Event.IdentityCleared + | t.types.pallet_identity.pallet.Event.IdentityKilled + | t.types.pallet_identity.pallet.Event.JudgementRequested + | t.types.pallet_identity.pallet.Event.JudgementUnrequested + | t.types.pallet_identity.pallet.Event.JudgementGiven + | t.types.pallet_identity.pallet.Event.RegistrarAdded + | t.types.pallet_identity.pallet.Event.SubIdentityAdded + | t.types.pallet_identity.pallet.Event.SubIdentityRemoved + | t.types.pallet_identity.pallet.Event.SubIdentityRevoked export namespace Event { /** A name was set or reset (which will remove all judgements). */ export interface IdentitySet { type: "IdentitySet" - who: t.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 } /** A name was cleared, and the given balance returned. */ export interface IdentityCleared { type: "IdentityCleared" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A name was removed and the given balance slashed. */ export interface IdentityKilled { type: "IdentityKilled" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A judgement was asked from a registrar. */ export interface JudgementRequested { type: "JudgementRequested" - who: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A judgement request was retracted. */ export interface JudgementUnrequested { type: "JudgementUnrequested" - who: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A judgement was given by a registrar. */ export interface JudgementGiven { type: "JudgementGiven" - target: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + target: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A registrar was added. */ export interface RegistrarAdded { type: "RegistrarAdded" - registrar_index: t.u32 + registrar_index: t.types.u32 } /** A sub-identity was added to an identity and the deposit paid. */ export interface SubIdentityAdded { type: "SubIdentityAdded" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A sub-identity was removed from an identity and the deposit freed. */ export interface SubIdentityRemoved { type: "SubIdentityRemoved" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** * A sub-identity was cleared, and the given deposit repatriated from the @@ -753,62 +753,62 @@ export namespace Event { */ export interface SubIdentityRevoked { type: "SubIdentityRevoked" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A name was set or reset (which will remove all judgements). */ export function IdentitySet( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentitySet { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentitySet { return { type: "IdentitySet", ...value } } /** A name was cleared, and the given balance returned. */ export function IdentityCleared( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentityCleared { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentityCleared { return { type: "IdentityCleared", ...value } } /** A name was removed and the given balance slashed. */ export function IdentityKilled( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentityKilled { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentityKilled { return { type: "IdentityKilled", ...value } } /** A judgement was asked from a registrar. */ export function JudgementRequested( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementRequested { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementRequested { return { type: "JudgementRequested", ...value } } /** A judgement request was retracted. */ export function JudgementUnrequested( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementUnrequested { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementUnrequested { return { type: "JudgementUnrequested", ...value } } /** A judgement was given by a registrar. */ export function JudgementGiven( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementGiven { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementGiven { return { type: "JudgementGiven", ...value } } /** A registrar was added. */ export function RegistrarAdded( - value: Omit, - ): t.pallet_identity.pallet.Event.RegistrarAdded { + value: Omit, + ): t.types.pallet_identity.pallet.Event.RegistrarAdded { return { type: "RegistrarAdded", ...value } } /** A sub-identity was added to an identity and the deposit paid. */ export function SubIdentityAdded( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityAdded { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityAdded { return { type: "SubIdentityAdded", ...value } } /** A sub-identity was removed from an identity and the deposit freed. */ export function SubIdentityRemoved( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityRemoved { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityRemoved { return { type: "SubIdentityRemoved", ...value } } /** @@ -816,8 +816,8 @@ export namespace Event { * main identity account to the sub-identity account. */ export function SubIdentityRevoked( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityRevoked { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityRevoked { return { type: "SubIdentityRevoked", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_identity/types.ts b/codegen/_output/rococo/types/pallet_identity/types.ts new file mode 100644 index 000000000..29c467c24 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_identity/types.ts @@ -0,0 +1,498 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $data: $.Codec = _codec.$267 + +export const $identityField: $.Codec = _codec.$301 + +export const $identityInfo: $.Codec = _codec.$264 + +export const $judgement: $.Codec = _codec.$302 + +export const $registrarInfo: $.Codec = _codec.$576 + +export const $registration: $.Codec = _codec.$568 + +export type Data = + | t.types.pallet_identity.types.Data.None + | t.types.pallet_identity.types.Data.Raw0 + | t.types.pallet_identity.types.Data.Raw1 + | t.types.pallet_identity.types.Data.Raw2 + | t.types.pallet_identity.types.Data.Raw3 + | t.types.pallet_identity.types.Data.Raw4 + | t.types.pallet_identity.types.Data.Raw5 + | t.types.pallet_identity.types.Data.Raw6 + | t.types.pallet_identity.types.Data.Raw7 + | t.types.pallet_identity.types.Data.Raw8 + | t.types.pallet_identity.types.Data.Raw9 + | t.types.pallet_identity.types.Data.Raw10 + | t.types.pallet_identity.types.Data.Raw11 + | t.types.pallet_identity.types.Data.Raw12 + | t.types.pallet_identity.types.Data.Raw13 + | t.types.pallet_identity.types.Data.Raw14 + | t.types.pallet_identity.types.Data.Raw15 + | t.types.pallet_identity.types.Data.Raw16 + | t.types.pallet_identity.types.Data.Raw17 + | t.types.pallet_identity.types.Data.Raw18 + | t.types.pallet_identity.types.Data.Raw19 + | t.types.pallet_identity.types.Data.Raw20 + | t.types.pallet_identity.types.Data.Raw21 + | t.types.pallet_identity.types.Data.Raw22 + | t.types.pallet_identity.types.Data.Raw23 + | t.types.pallet_identity.types.Data.Raw24 + | t.types.pallet_identity.types.Data.Raw25 + | t.types.pallet_identity.types.Data.Raw26 + | t.types.pallet_identity.types.Data.Raw27 + | t.types.pallet_identity.types.Data.Raw28 + | t.types.pallet_identity.types.Data.Raw29 + | t.types.pallet_identity.types.Data.Raw30 + | t.types.pallet_identity.types.Data.Raw31 + | t.types.pallet_identity.types.Data.Raw32 + | t.types.pallet_identity.types.Data.BlakeTwo256 + | t.types.pallet_identity.types.Data.Sha256 + | t.types.pallet_identity.types.Data.Keccak256 + | t.types.pallet_identity.types.Data.ShaThree256 +export namespace Data { + export interface None { + type: "None" + } + export interface Raw0 { + type: "Raw0" + value: Uint8Array + } + export interface Raw1 { + type: "Raw1" + value: Uint8Array + } + export interface Raw2 { + type: "Raw2" + value: Uint8Array + } + export interface Raw3 { + type: "Raw3" + value: Uint8Array + } + export interface Raw4 { + type: "Raw4" + value: Uint8Array + } + export interface Raw5 { + type: "Raw5" + value: Uint8Array + } + export interface Raw6 { + type: "Raw6" + value: Uint8Array + } + export interface Raw7 { + type: "Raw7" + value: Uint8Array + } + export interface Raw8 { + type: "Raw8" + value: Uint8Array + } + export interface Raw9 { + type: "Raw9" + value: Uint8Array + } + export interface Raw10 { + type: "Raw10" + value: Uint8Array + } + export interface Raw11 { + type: "Raw11" + value: Uint8Array + } + export interface Raw12 { + type: "Raw12" + value: Uint8Array + } + export interface Raw13 { + type: "Raw13" + value: Uint8Array + } + export interface Raw14 { + type: "Raw14" + value: Uint8Array + } + export interface Raw15 { + type: "Raw15" + value: Uint8Array + } + export interface Raw16 { + type: "Raw16" + value: Uint8Array + } + export interface Raw17 { + type: "Raw17" + value: Uint8Array + } + export interface Raw18 { + type: "Raw18" + value: Uint8Array + } + export interface Raw19 { + type: "Raw19" + value: Uint8Array + } + export interface Raw20 { + type: "Raw20" + value: Uint8Array + } + export interface Raw21 { + type: "Raw21" + value: Uint8Array + } + export interface Raw22 { + type: "Raw22" + value: Uint8Array + } + export interface Raw23 { + type: "Raw23" + value: Uint8Array + } + export interface Raw24 { + type: "Raw24" + value: Uint8Array + } + export interface Raw25 { + type: "Raw25" + value: Uint8Array + } + export interface Raw26 { + type: "Raw26" + value: Uint8Array + } + export interface Raw27 { + type: "Raw27" + value: Uint8Array + } + export interface Raw28 { + type: "Raw28" + value: Uint8Array + } + export interface Raw29 { + type: "Raw29" + value: Uint8Array + } + export interface Raw30 { + type: "Raw30" + value: Uint8Array + } + export interface Raw31 { + type: "Raw31" + value: Uint8Array + } + export interface Raw32 { + type: "Raw32" + value: Uint8Array + } + export interface BlakeTwo256 { + type: "BlakeTwo256" + value: Uint8Array + } + export interface Sha256 { + type: "Sha256" + value: Uint8Array + } + export interface Keccak256 { + type: "Keccak256" + value: Uint8Array + } + export interface ShaThree256 { + type: "ShaThree256" + value: Uint8Array + } + export function None(): t.types.pallet_identity.types.Data.None { + return { type: "None" } + } + export function Raw0( + value: t.types.pallet_identity.types.Data.Raw0["value"], + ): t.types.pallet_identity.types.Data.Raw0 { + return { type: "Raw0", value } + } + export function Raw1( + value: t.types.pallet_identity.types.Data.Raw1["value"], + ): t.types.pallet_identity.types.Data.Raw1 { + return { type: "Raw1", value } + } + export function Raw2( + value: t.types.pallet_identity.types.Data.Raw2["value"], + ): t.types.pallet_identity.types.Data.Raw2 { + return { type: "Raw2", value } + } + export function Raw3( + value: t.types.pallet_identity.types.Data.Raw3["value"], + ): t.types.pallet_identity.types.Data.Raw3 { + return { type: "Raw3", value } + } + export function Raw4( + value: t.types.pallet_identity.types.Data.Raw4["value"], + ): t.types.pallet_identity.types.Data.Raw4 { + return { type: "Raw4", value } + } + export function Raw5( + value: t.types.pallet_identity.types.Data.Raw5["value"], + ): t.types.pallet_identity.types.Data.Raw5 { + return { type: "Raw5", value } + } + export function Raw6( + value: t.types.pallet_identity.types.Data.Raw6["value"], + ): t.types.pallet_identity.types.Data.Raw6 { + return { type: "Raw6", value } + } + export function Raw7( + value: t.types.pallet_identity.types.Data.Raw7["value"], + ): t.types.pallet_identity.types.Data.Raw7 { + return { type: "Raw7", value } + } + export function Raw8( + value: t.types.pallet_identity.types.Data.Raw8["value"], + ): t.types.pallet_identity.types.Data.Raw8 { + return { type: "Raw8", value } + } + export function Raw9( + value: t.types.pallet_identity.types.Data.Raw9["value"], + ): t.types.pallet_identity.types.Data.Raw9 { + return { type: "Raw9", value } + } + export function Raw10( + value: t.types.pallet_identity.types.Data.Raw10["value"], + ): t.types.pallet_identity.types.Data.Raw10 { + return { type: "Raw10", value } + } + export function Raw11( + value: t.types.pallet_identity.types.Data.Raw11["value"], + ): t.types.pallet_identity.types.Data.Raw11 { + return { type: "Raw11", value } + } + export function Raw12( + value: t.types.pallet_identity.types.Data.Raw12["value"], + ): t.types.pallet_identity.types.Data.Raw12 { + return { type: "Raw12", value } + } + export function Raw13( + value: t.types.pallet_identity.types.Data.Raw13["value"], + ): t.types.pallet_identity.types.Data.Raw13 { + return { type: "Raw13", value } + } + export function Raw14( + value: t.types.pallet_identity.types.Data.Raw14["value"], + ): t.types.pallet_identity.types.Data.Raw14 { + return { type: "Raw14", value } + } + export function Raw15( + value: t.types.pallet_identity.types.Data.Raw15["value"], + ): t.types.pallet_identity.types.Data.Raw15 { + return { type: "Raw15", value } + } + export function Raw16( + value: t.types.pallet_identity.types.Data.Raw16["value"], + ): t.types.pallet_identity.types.Data.Raw16 { + return { type: "Raw16", value } + } + export function Raw17( + value: t.types.pallet_identity.types.Data.Raw17["value"], + ): t.types.pallet_identity.types.Data.Raw17 { + return { type: "Raw17", value } + } + export function Raw18( + value: t.types.pallet_identity.types.Data.Raw18["value"], + ): t.types.pallet_identity.types.Data.Raw18 { + return { type: "Raw18", value } + } + export function Raw19( + value: t.types.pallet_identity.types.Data.Raw19["value"], + ): t.types.pallet_identity.types.Data.Raw19 { + return { type: "Raw19", value } + } + export function Raw20( + value: t.types.pallet_identity.types.Data.Raw20["value"], + ): t.types.pallet_identity.types.Data.Raw20 { + return { type: "Raw20", value } + } + export function Raw21( + value: t.types.pallet_identity.types.Data.Raw21["value"], + ): t.types.pallet_identity.types.Data.Raw21 { + return { type: "Raw21", value } + } + export function Raw22( + value: t.types.pallet_identity.types.Data.Raw22["value"], + ): t.types.pallet_identity.types.Data.Raw22 { + return { type: "Raw22", value } + } + export function Raw23( + value: t.types.pallet_identity.types.Data.Raw23["value"], + ): t.types.pallet_identity.types.Data.Raw23 { + return { type: "Raw23", value } + } + export function Raw24( + value: t.types.pallet_identity.types.Data.Raw24["value"], + ): t.types.pallet_identity.types.Data.Raw24 { + return { type: "Raw24", value } + } + export function Raw25( + value: t.types.pallet_identity.types.Data.Raw25["value"], + ): t.types.pallet_identity.types.Data.Raw25 { + return { type: "Raw25", value } + } + export function Raw26( + value: t.types.pallet_identity.types.Data.Raw26["value"], + ): t.types.pallet_identity.types.Data.Raw26 { + return { type: "Raw26", value } + } + export function Raw27( + value: t.types.pallet_identity.types.Data.Raw27["value"], + ): t.types.pallet_identity.types.Data.Raw27 { + return { type: "Raw27", value } + } + export function Raw28( + value: t.types.pallet_identity.types.Data.Raw28["value"], + ): t.types.pallet_identity.types.Data.Raw28 { + return { type: "Raw28", value } + } + export function Raw29( + value: t.types.pallet_identity.types.Data.Raw29["value"], + ): t.types.pallet_identity.types.Data.Raw29 { + return { type: "Raw29", value } + } + export function Raw30( + value: t.types.pallet_identity.types.Data.Raw30["value"], + ): t.types.pallet_identity.types.Data.Raw30 { + return { type: "Raw30", value } + } + export function Raw31( + value: t.types.pallet_identity.types.Data.Raw31["value"], + ): t.types.pallet_identity.types.Data.Raw31 { + return { type: "Raw31", value } + } + export function Raw32( + value: t.types.pallet_identity.types.Data.Raw32["value"], + ): t.types.pallet_identity.types.Data.Raw32 { + return { type: "Raw32", value } + } + export function BlakeTwo256( + value: t.types.pallet_identity.types.Data.BlakeTwo256["value"], + ): t.types.pallet_identity.types.Data.BlakeTwo256 { + return { type: "BlakeTwo256", value } + } + export function Sha256( + value: t.types.pallet_identity.types.Data.Sha256["value"], + ): t.types.pallet_identity.types.Data.Sha256 { + return { type: "Sha256", value } + } + export function Keccak256( + value: t.types.pallet_identity.types.Data.Keccak256["value"], + ): t.types.pallet_identity.types.Data.Keccak256 { + return { type: "Keccak256", value } + } + export function ShaThree256( + value: t.types.pallet_identity.types.Data.ShaThree256["value"], + ): t.types.pallet_identity.types.Data.ShaThree256 { + return { type: "ShaThree256", value } + } +} + +export type IdentityField = + | "Display" + | "Legal" + | "Web" + | "Riot" + | "Email" + | "PgpFingerprint" + | "Image" + | "Twitter" + +export interface IdentityInfo { + additional: Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> + display: t.types.pallet_identity.types.Data + legal: t.types.pallet_identity.types.Data + web: t.types.pallet_identity.types.Data + riot: t.types.pallet_identity.types.Data + email: t.types.pallet_identity.types.Data + pgp_fingerprint: Uint8Array | undefined + image: t.types.pallet_identity.types.Data + twitter: t.types.pallet_identity.types.Data +} + +export function IdentityInfo(value: t.types.pallet_identity.types.IdentityInfo) { + return value +} + +export type Judgement = + | t.types.pallet_identity.types.Judgement.Unknown + | t.types.pallet_identity.types.Judgement.FeePaid + | t.types.pallet_identity.types.Judgement.Reasonable + | t.types.pallet_identity.types.Judgement.KnownGood + | t.types.pallet_identity.types.Judgement.OutOfDate + | t.types.pallet_identity.types.Judgement.LowQuality + | t.types.pallet_identity.types.Judgement.Erroneous +export namespace Judgement { + export interface Unknown { + type: "Unknown" + } + export interface FeePaid { + type: "FeePaid" + value: t.types.u128 + } + export interface Reasonable { + type: "Reasonable" + } + export interface KnownGood { + type: "KnownGood" + } + export interface OutOfDate { + type: "OutOfDate" + } + export interface LowQuality { + type: "LowQuality" + } + export interface Erroneous { + type: "Erroneous" + } + export function Unknown(): t.types.pallet_identity.types.Judgement.Unknown { + return { type: "Unknown" } + } + export function FeePaid( + value: t.types.pallet_identity.types.Judgement.FeePaid["value"], + ): t.types.pallet_identity.types.Judgement.FeePaid { + return { type: "FeePaid", value } + } + export function Reasonable(): t.types.pallet_identity.types.Judgement.Reasonable { + return { type: "Reasonable" } + } + export function KnownGood(): t.types.pallet_identity.types.Judgement.KnownGood { + return { type: "KnownGood" } + } + export function OutOfDate(): t.types.pallet_identity.types.Judgement.OutOfDate { + return { type: "OutOfDate" } + } + export function LowQuality(): t.types.pallet_identity.types.Judgement.LowQuality { + return { type: "LowQuality" } + } + export function Erroneous(): t.types.pallet_identity.types.Judgement.Erroneous { + return { type: "Erroneous" } + } +} + +export interface RegistrarInfo { + account: t.types.sp_core.crypto.AccountId32 + fee: t.types.u128 + fields: t.types.u64 +} + +export function RegistrarInfo(value: t.types.pallet_identity.types.RegistrarInfo) { + return value +} + +export interface Registration { + judgements: Array<[t.types.u32, t.types.pallet_identity.types.Judgement]> + deposit: t.types.u128 + info: t.types.pallet_identity.types.IdentityInfo +} + +export function Registration(value: t.types.pallet_identity.types.Registration) { + return value +} diff --git a/codegen/_output/rococo/types/pallet_im_online/mod.ts b/codegen/_output/rococo/types/pallet_im_online/mod.ts new file mode 100644 index 000000000..55795bb60 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_im_online/mod.ts @@ -0,0 +1,35 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as sr25519 from "./sr25519/mod.ts" + +export const $boundedOpaqueNetworkState: $.Codec< + t.types.pallet_im_online.BoundedOpaqueNetworkState +> = _codec.$523 + +export const $heartbeat: $.Codec = _codec.$228 + +export interface BoundedOpaqueNetworkState { + peer_id: Uint8Array + external_addresses: Array +} + +export function BoundedOpaqueNetworkState( + value: t.types.pallet_im_online.BoundedOpaqueNetworkState, +) { + return value +} + +export interface Heartbeat { + block_number: t.types.u32 + network_state: t.types.sp_core.offchain.OpaqueNetworkState + session_index: t.types.u32 + authority_index: t.types.u32 + validators_len: t.types.u32 +} + +export function Heartbeat(value: t.types.pallet_im_online.Heartbeat) { + return value +} diff --git a/codegen/_output/kusama/pallet_im_online/pallet.ts b/codegen/_output/rococo/types/pallet_im_online/pallet.ts similarity index 62% rename from codegen/_output/kusama/pallet_im_online/pallet.ts rename to codegen/_output/rococo/types/pallet_im_online/pallet.ts index 14625fcff..c0e2242de 100644 --- a/codegen/_output/kusama/pallet_im_online/pallet.ts +++ b/codegen/_output/rococo/types/pallet_im_online/pallet.ts @@ -1,15 +1,15 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$227 +export const $call: $.Codec = _codec.$227 -export const $error: $.Codec = _codec.$527 +export const $error: $.Codec = _codec.$527 -export const $event: $.Codec = _codec.$52 +export const $event: $.Codec = _codec.$52 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_im_online.pallet.Call.heartbeat +export type Call = t.types.pallet_im_online.pallet.Call.heartbeat export namespace Call { /** * # @@ -24,8 +24,8 @@ export namespace Call { */ export interface heartbeat { type: "heartbeat" - heartbeat: t.pallet_im_online.Heartbeat - signature: t.pallet_im_online.sr25519.app_sr25519.Signature + heartbeat: t.types.pallet_im_online.Heartbeat + signature: t.types.pallet_im_online.sr25519.app_sr25519.Signature } /** * # @@ -39,8 +39,8 @@ export namespace Call { * # */ export function heartbeat( - value: Omit, - ): t.pallet_im_online.pallet.Call.heartbeat { + value: Omit, + ): t.types.pallet_im_online.pallet.Call.heartbeat { return { type: "heartbeat", ...value } } } @@ -50,14 +50,14 @@ export type Error = "InvalidKey" | "DuplicatedHeartbeat" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_im_online.pallet.Event.HeartbeatReceived - | t.pallet_im_online.pallet.Event.AllGood - | t.pallet_im_online.pallet.Event.SomeOffline + | t.types.pallet_im_online.pallet.Event.HeartbeatReceived + | t.types.pallet_im_online.pallet.Event.AllGood + | t.types.pallet_im_online.pallet.Event.SomeOffline export namespace Event { /** A new heartbeat was received from `AuthorityId`. */ export interface HeartbeatReceived { type: "HeartbeatReceived" - authority_id: t.pallet_im_online.sr25519.app_sr25519.Public + authority_id: t.types.pallet_im_online.sr25519.app_sr25519.Public } /** At the end of the session, no offence was committed. */ export interface AllGood { @@ -66,22 +66,22 @@ export namespace Event { /** At the end of the session, at least one validator was found to be offline. */ export interface SomeOffline { type: "SomeOffline" - offline: Array<[t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure]> + offline: Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> } /** A new heartbeat was received from `AuthorityId`. */ export function HeartbeatReceived( - value: Omit, - ): t.pallet_im_online.pallet.Event.HeartbeatReceived { + value: Omit, + ): t.types.pallet_im_online.pallet.Event.HeartbeatReceived { return { type: "HeartbeatReceived", ...value } } /** At the end of the session, no offence was committed. */ - export function AllGood(): t.pallet_im_online.pallet.Event.AllGood { + export function AllGood(): t.types.pallet_im_online.pallet.Event.AllGood { return { type: "AllGood" } } /** At the end of the session, at least one validator was found to be offline. */ export function SomeOffline( - value: Omit, - ): t.pallet_im_online.pallet.Event.SomeOffline { + value: Omit, + ): t.types.pallet_im_online.pallet.Event.SomeOffline { return { type: "SomeOffline", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_im_online/sr25519/app_sr25519.ts b/codegen/_output/rococo/types/pallet_im_online/sr25519/app_sr25519.ts new file mode 100644 index 000000000..4bfb0f9b6 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_im_online/sr25519/app_sr25519.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$53 + +export const $signature: $.Codec = + _codec.$233 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.pallet_im_online.sr25519.app_sr25519.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.pallet_im_online.sr25519.app_sr25519.Signature) { + return value +} diff --git a/codegen/_output/rococo/pallet_im_online/sr25519/mod.ts b/codegen/_output/rococo/types/pallet_im_online/sr25519/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_im_online/sr25519/mod.ts rename to codegen/_output/rococo/types/pallet_im_online/sr25519/mod.ts diff --git a/codegen/_output/rococo/pallet_indices/mod.ts b/codegen/_output/rococo/types/pallet_indices/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_indices/mod.ts rename to codegen/_output/rococo/types/pallet_indices/mod.ts diff --git a/codegen/_output/westend/pallet_indices/pallet.ts b/codegen/_output/rococo/types/pallet_indices/pallet.ts similarity index 79% rename from codegen/_output/westend/pallet_indices/pallet.ts rename to codegen/_output/rococo/types/pallet_indices/pallet.ts index 3cd9b537a..8957b3ebb 100644 --- a/codegen/_output/westend/pallet_indices/pallet.ts +++ b/codegen/_output/rococo/types/pallet_indices/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$196 +export const $call: $.Codec = _codec.$196 -export const $error: $.Codec = _codec.$469 +export const $error: $.Codec = _codec.$469 -export const $event: $.Codec = _codec.$35 +export const $event: $.Codec = _codec.$35 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_indices.pallet.Call.claim - | t.pallet_indices.pallet.Call.transfer - | t.pallet_indices.pallet.Call.free - | t.pallet_indices.pallet.Call.force_transfer - | t.pallet_indices.pallet.Call.freeze + | t.types.pallet_indices.pallet.Call.claim + | t.types.pallet_indices.pallet.Call.transfer + | t.types.pallet_indices.pallet.Call.free + | t.types.pallet_indices.pallet.Call.force_transfer + | t.types.pallet_indices.pallet.Call.freeze export namespace Call { /** * Assign an previously unassigned index. @@ -38,7 +38,7 @@ export namespace Call { */ export interface claim { type: "claim" - index: t.u32 + index: t.types.u32 } /** * Assign an index already owned by the sender to another account. The balance reservation @@ -64,8 +64,8 @@ export namespace Call { */ export interface transfer { type: "transfer" - new: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + new: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 } /** * Free up an index owned by the sender. @@ -89,7 +89,7 @@ export namespace Call { */ export interface free { type: "free" - index: t.u32 + index: t.types.u32 } /** * Force an index to an account. This doesn't require a deposit. If the index is already @@ -116,8 +116,8 @@ export namespace Call { */ export interface force_transfer { type: "force_transfer" - new: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + new: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 freeze: boolean } /** @@ -142,7 +142,7 @@ export namespace Call { */ export interface freeze { type: "freeze" - index: t.u32 + index: t.types.u32 } /** * Assign an previously unassigned index. @@ -165,8 +165,8 @@ export namespace Call { * # */ export function claim( - value: Omit, - ): t.pallet_indices.pallet.Call.claim { + value: Omit, + ): t.types.pallet_indices.pallet.Call.claim { return { type: "claim", ...value } } /** @@ -192,8 +192,8 @@ export namespace Call { * # */ export function transfer( - value: Omit, - ): t.pallet_indices.pallet.Call.transfer { + value: Omit, + ): t.types.pallet_indices.pallet.Call.transfer { return { type: "transfer", ...value } } /** @@ -217,8 +217,8 @@ export namespace Call { * # */ export function free( - value: Omit, - ): t.pallet_indices.pallet.Call.free { + value: Omit, + ): t.types.pallet_indices.pallet.Call.free { return { type: "free", ...value } } /** @@ -245,8 +245,8 @@ export namespace Call { * # */ export function force_transfer( - value: Omit, - ): t.pallet_indices.pallet.Call.force_transfer { + value: Omit, + ): t.types.pallet_indices.pallet.Call.force_transfer { return { type: "force_transfer", ...value } } /** @@ -270,8 +270,8 @@ export namespace Call { * # */ export function freeze( - value: Omit, - ): t.pallet_indices.pallet.Call.freeze { + value: Omit, + ): t.types.pallet_indices.pallet.Call.freeze { return { type: "freeze", ...value } } } @@ -281,43 +281,43 @@ export type Error = "NotAssigned" | "NotOwner" | "InUse" | "NotTransfer" | "Perm /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_indices.pallet.Event.IndexAssigned - | t.pallet_indices.pallet.Event.IndexFreed - | t.pallet_indices.pallet.Event.IndexFrozen + | t.types.pallet_indices.pallet.Event.IndexAssigned + | t.types.pallet_indices.pallet.Event.IndexFreed + | t.types.pallet_indices.pallet.Event.IndexFrozen export namespace Event { /** A account index was assigned. */ export interface IndexAssigned { type: "IndexAssigned" - who: t.sp_core.crypto.AccountId32 - index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + index: t.types.u32 } /** A account index has been freed up (unassigned). */ export interface IndexFreed { type: "IndexFreed" - index: t.u32 + index: t.types.u32 } /** A account index has been frozen to its current account ID. */ export interface IndexFrozen { type: "IndexFrozen" - index: t.u32 - who: t.sp_core.crypto.AccountId32 + index: t.types.u32 + who: t.types.sp_core.crypto.AccountId32 } /** A account index was assigned. */ export function IndexAssigned( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexAssigned { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexAssigned { return { type: "IndexAssigned", ...value } } /** A account index has been freed up (unassigned). */ export function IndexFreed( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexFreed { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexFreed { return { type: "IndexFreed", ...value } } /** A account index has been frozen to its current account ID. */ export function IndexFrozen( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexFrozen { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexFrozen { return { type: "IndexFrozen", ...value } } } diff --git a/codegen/_output/rococo/pallet_membership/mod.ts b/codegen/_output/rococo/types/pallet_membership/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_membership/mod.ts rename to codegen/_output/rococo/types/pallet_membership/mod.ts diff --git a/codegen/_output/polkadot/pallet_membership/pallet.ts b/codegen/_output/rococo/types/pallet_membership/pallet.ts similarity index 63% rename from codegen/_output/polkadot/pallet_membership/pallet.ts rename to codegen/_output/rococo/types/pallet_membership/pallet.ts index 36a442d33..c55baa921 100644 --- a/codegen/_output/polkadot/pallet_membership/pallet.ts +++ b/codegen/_output/rococo/types/pallet_membership/pallet.ts @@ -1,22 +1,22 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$243 +export const $call: $.Codec = _codec.$243 -export const $error: $.Codec = _codec.$555 +export const $error: $.Codec = _codec.$555 -export const $event: $.Codec = _codec.$70 +export const $event: $.Codec = _codec.$70 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_membership.pallet.Call.add_member - | t.pallet_membership.pallet.Call.remove_member - | t.pallet_membership.pallet.Call.swap_member - | t.pallet_membership.pallet.Call.reset_members - | t.pallet_membership.pallet.Call.change_key - | t.pallet_membership.pallet.Call.set_prime - | t.pallet_membership.pallet.Call.clear_prime + | t.types.pallet_membership.pallet.Call.add_member + | t.types.pallet_membership.pallet.Call.remove_member + | t.types.pallet_membership.pallet.Call.swap_member + | t.types.pallet_membership.pallet.Call.reset_members + | t.types.pallet_membership.pallet.Call.change_key + | t.types.pallet_membership.pallet.Call.set_prime + | t.types.pallet_membership.pallet.Call.clear_prime export namespace Call { /** * Add a member `who` to the set. @@ -25,7 +25,7 @@ export namespace Call { */ export interface add_member { type: "add_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove a member `who` from the set. @@ -34,7 +34,7 @@ export namespace Call { */ export interface remove_member { type: "remove_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Swap out one member `remove` for another `add`. @@ -45,8 +45,8 @@ export namespace Call { */ export interface swap_member { type: "swap_member" - remove: t.sp_runtime.multiaddress.MultiAddress - add: t.sp_runtime.multiaddress.MultiAddress + remove: t.types.sp_runtime.multiaddress.MultiAddress + add: t.types.sp_runtime.multiaddress.MultiAddress } /** * Change the membership to a new set, disregarding the existing membership. Be nice and @@ -56,7 +56,7 @@ export namespace Call { */ export interface reset_members { type: "reset_members" - members: Array + members: Array } /** * Swap out the sending member for some other key `new`. @@ -67,7 +67,7 @@ export namespace Call { */ export interface change_key { type: "change_key" - new: t.sp_runtime.multiaddress.MultiAddress + new: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set the prime member. Must be a current member. @@ -76,7 +76,7 @@ export namespace Call { */ export interface set_prime { type: "set_prime" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove the prime member if it exists. @@ -92,8 +92,8 @@ export namespace Call { * May only be called from `T::AddOrigin`. */ export function add_member( - value: Omit, - ): t.pallet_membership.pallet.Call.add_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.add_member { return { type: "add_member", ...value } } /** @@ -102,8 +102,8 @@ export namespace Call { * May only be called from `T::RemoveOrigin`. */ export function remove_member( - value: Omit, - ): t.pallet_membership.pallet.Call.remove_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.remove_member { return { type: "remove_member", ...value } } /** @@ -114,8 +114,8 @@ export namespace Call { * Prime membership is *not* passed from `remove` to `add`, if extant. */ export function swap_member( - value: Omit, - ): t.pallet_membership.pallet.Call.swap_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.swap_member { return { type: "swap_member", ...value } } /** @@ -125,8 +125,8 @@ export namespace Call { * May only be called from `T::ResetOrigin`. */ export function reset_members( - value: Omit, - ): t.pallet_membership.pallet.Call.reset_members { + value: Omit, + ): t.types.pallet_membership.pallet.Call.reset_members { return { type: "reset_members", ...value } } /** @@ -137,8 +137,8 @@ export namespace Call { * Prime membership is passed from the origin account to `new`, if extant. */ export function change_key( - value: Omit, - ): t.pallet_membership.pallet.Call.change_key { + value: Omit, + ): t.types.pallet_membership.pallet.Call.change_key { return { type: "change_key", ...value } } /** @@ -147,8 +147,8 @@ export namespace Call { * May only be called from `T::PrimeOrigin`. */ export function set_prime( - value: Omit, - ): t.pallet_membership.pallet.Call.set_prime { + value: Omit, + ): t.types.pallet_membership.pallet.Call.set_prime { return { type: "set_prime", ...value } } /** @@ -156,7 +156,7 @@ export namespace Call { * * May only be called from `T::PrimeOrigin`. */ - export function clear_prime(): t.pallet_membership.pallet.Call.clear_prime { + export function clear_prime(): t.types.pallet_membership.pallet.Call.clear_prime { return { type: "clear_prime" } } } diff --git a/codegen/_output/rococo/types/pallet_multisig/mod.ts b/codegen/_output/rococo/types/pallet_multisig/mod.ts new file mode 100644 index 000000000..98c0d71ef --- /dev/null +++ b/codegen/_output/rococo/types/pallet_multisig/mod.ts @@ -0,0 +1,29 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $multisig: $.Codec = _codec.$589 + +export const $timepoint: $.Codec = _codec.$82 + +export interface Multisig { + when: t.types.pallet_multisig.Timepoint + deposit: t.types.u128 + depositor: t.types.sp_core.crypto.AccountId32 + approvals: Array +} + +export function Multisig(value: t.types.pallet_multisig.Multisig) { + return value +} + +export interface Timepoint { + height: t.types.u32 + index: t.types.u32 +} + +export function Timepoint(value: t.types.pallet_multisig.Timepoint) { + return value +} diff --git a/codegen/_output/westend/pallet_multisig/pallet.ts b/codegen/_output/rococo/types/pallet_multisig/pallet.ts similarity index 81% rename from codegen/_output/westend/pallet_multisig/pallet.ts rename to codegen/_output/rococo/types/pallet_multisig/pallet.ts index ec9e5b0e0..708e406ff 100644 --- a/codegen/_output/westend/pallet_multisig/pallet.ts +++ b/codegen/_output/rococo/types/pallet_multisig/pallet.ts @@ -1,19 +1,19 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$305 +export const $call: $.Codec = _codec.$305 -export const $error: $.Codec = _codec.$590 +export const $error: $.Codec = _codec.$590 -export const $event: $.Codec = _codec.$81 +export const $event: $.Codec = _codec.$81 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_multisig.pallet.Call.as_multi_threshold_1 - | t.pallet_multisig.pallet.Call.as_multi - | t.pallet_multisig.pallet.Call.approve_as_multi - | t.pallet_multisig.pallet.Call.cancel_as_multi + | t.types.pallet_multisig.pallet.Call.as_multi_threshold_1 + | t.types.pallet_multisig.pallet.Call.as_multi + | t.types.pallet_multisig.pallet.Call.approve_as_multi + | t.types.pallet_multisig.pallet.Call.cancel_as_multi export namespace Call { /** * Immediately dispatch a multi-signature call using a single approval from the caller. @@ -35,8 +35,8 @@ export namespace Call { */ export interface as_multi_threshold_1 { type: "as_multi_threshold_1" - other_signatories: Array - call: t.polkadot_runtime.RuntimeCall + other_signatories: Array + call: t.types.polkadot_runtime.RuntimeCall } /** * Register approval for a dispatch to be made from a deterministic composite account if @@ -87,11 +87,11 @@ export namespace Call { */ export interface as_multi { type: "as_multi" - threshold: t.u16 - other_signatories: Array - maybe_timepoint: t.pallet_multisig.Timepoint | undefined - call: t.polkadot_runtime.RuntimeCall - max_weight: t.sp_weights.weight_v2.Weight + threshold: t.types.u16 + other_signatories: Array + maybe_timepoint: t.types.pallet_multisig.Timepoint | undefined + call: t.types.polkadot_runtime.RuntimeCall + max_weight: t.types.sp_weights.weight_v2.Weight } /** * Register approval for a dispatch to be made from a deterministic composite account if @@ -132,11 +132,11 @@ export namespace Call { */ export interface approve_as_multi { type: "approve_as_multi" - threshold: t.u16 - other_signatories: Array - maybe_timepoint: t.pallet_multisig.Timepoint | undefined + threshold: t.types.u16 + other_signatories: Array + maybe_timepoint: t.types.pallet_multisig.Timepoint | undefined call_hash: Uint8Array - max_weight: t.sp_weights.weight_v2.Weight + max_weight: t.types.sp_weights.weight_v2.Weight } /** * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously @@ -168,9 +168,9 @@ export namespace Call { */ export interface cancel_as_multi { type: "cancel_as_multi" - threshold: t.u16 - other_signatories: Array - timepoint: t.pallet_multisig.Timepoint + threshold: t.types.u16 + other_signatories: Array + timepoint: t.types.pallet_multisig.Timepoint call_hash: Uint8Array } /** @@ -192,8 +192,8 @@ export namespace Call { * # */ export function as_multi_threshold_1( - value: Omit, - ): t.pallet_multisig.pallet.Call.as_multi_threshold_1 { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.as_multi_threshold_1 { return { type: "as_multi_threshold_1", ...value } } /** @@ -244,8 +244,8 @@ export namespace Call { * # */ export function as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.as_multi { return { type: "as_multi", ...value } } /** @@ -286,8 +286,8 @@ export namespace Call { * # */ export function approve_as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.approve_as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.approve_as_multi { return { type: "approve_as_multi", ...value } } /** @@ -319,8 +319,8 @@ export namespace Call { * # */ export function cancel_as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.cancel_as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.cancel_as_multi { return { type: "cancel_as_multi", ...value } } } @@ -344,65 +344,65 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_multisig.pallet.Event.NewMultisig - | t.pallet_multisig.pallet.Event.MultisigApproval - | t.pallet_multisig.pallet.Event.MultisigExecuted - | t.pallet_multisig.pallet.Event.MultisigCancelled + | t.types.pallet_multisig.pallet.Event.NewMultisig + | t.types.pallet_multisig.pallet.Event.MultisigApproval + | t.types.pallet_multisig.pallet.Event.MultisigExecuted + | t.types.pallet_multisig.pallet.Event.MultisigCancelled export namespace Event { /** A new multisig operation has begun. */ export interface NewMultisig { type: "NewMultisig" - approving: t.sp_core.crypto.AccountId32 - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A multisig operation has been approved by someone. */ export interface MultisigApproval { type: "MultisigApproval" - approving: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A multisig operation has been executed. */ export interface MultisigExecuted { type: "MultisigExecuted" - approving: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array - result: null | C.ChainError + result: null | C.ChainError } /** A multisig operation has been cancelled. */ export interface MultisigCancelled { type: "MultisigCancelled" - cancelling: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + cancelling: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A new multisig operation has begun. */ export function NewMultisig( - value: Omit, - ): t.pallet_multisig.pallet.Event.NewMultisig { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.NewMultisig { return { type: "NewMultisig", ...value } } /** A multisig operation has been approved by someone. */ export function MultisigApproval( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigApproval { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigApproval { return { type: "MultisigApproval", ...value } } /** A multisig operation has been executed. */ export function MultisigExecuted( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigExecuted { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigExecuted { return { type: "MultisigExecuted", ...value } } /** A multisig operation has been cancelled. */ export function MultisigCancelled( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigCancelled { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigCancelled { return { type: "MultisigCancelled", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts b/codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts new file mode 100644 index 000000000..ae906cd2b --- /dev/null +++ b/codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts @@ -0,0 +1,35 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export const $accountId32: $.Codec< + t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 +> = _codec.$373 + +export type AccountId32 = + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove +export namespace AccountId32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_core.crypto.AccountId32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/rococo/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts b/codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts rename to codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts diff --git a/codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/mod.ts b/codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/mod.ts new file mode 100644 index 000000000..49285a4a4 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_nomination_pools/ConfigOp/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as $$sp_core from "./$$sp_core/mod.ts" + +export const $$$u128: $.Codec = _codec.$371 + +export const $$$u32: $.Codec = _codec.$372 + +export type $$u128 = + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Set + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Remove +export namespace $$u128 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u128 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$u128.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$u128.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$u128.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$u128.Remove { + return { type: "Remove" } + } +} + +export type $$u32 = + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Set + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Remove +export namespace $$u32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$u32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$u32.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$u32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$u32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/rococo/types/pallet_nomination_pools/mod.ts b/codegen/_output/rococo/types/pallet_nomination_pools/mod.ts new file mode 100644 index 000000000..c5c85112b --- /dev/null +++ b/codegen/_output/rococo/types/pallet_nomination_pools/mod.ts @@ -0,0 +1,107 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as ConfigOp from "./ConfigOp/mod.ts" +export * as pallet from "./pallet.ts" + +export const $bondExtra: $.Codec = _codec.$370 + +export const $bondedPoolInner: $.Codec = + _codec.$622 + +export const $poolMember: $.Codec = _codec.$617 + +export const $poolRoles: $.Codec = _codec.$623 + +export const $poolState: $.Codec = _codec.$91 + +export const $rewardPool: $.Codec = _codec.$624 + +export const $subPools: $.Codec = _codec.$625 + +export const $unbondPool: $.Codec = _codec.$626 + +export type BondExtra = + | t.types.pallet_nomination_pools.BondExtra.FreeBalance + | t.types.pallet_nomination_pools.BondExtra.Rewards +export namespace BondExtra { + export interface FreeBalance { + type: "FreeBalance" + value: t.types.u128 + } + export interface Rewards { + type: "Rewards" + } + export function FreeBalance( + value: t.types.pallet_nomination_pools.BondExtra.FreeBalance["value"], + ): t.types.pallet_nomination_pools.BondExtra.FreeBalance { + return { type: "FreeBalance", value } + } + export function Rewards(): t.types.pallet_nomination_pools.BondExtra.Rewards { + return { type: "Rewards" } + } +} + +export interface BondedPoolInner { + points: t.types.u128 + state: t.types.pallet_nomination_pools.PoolState + member_counter: t.types.u32 + roles: t.types.pallet_nomination_pools.PoolRoles +} + +export function BondedPoolInner(value: t.types.pallet_nomination_pools.BondedPoolInner) { + return value +} + +export interface PoolMember { + pool_id: t.types.u32 + points: t.types.u128 + last_recorded_reward_counter: t.types.sp_arithmetic.fixed_point.FixedU128 + unbonding_eras: Map +} + +export function PoolMember(value: t.types.pallet_nomination_pools.PoolMember) { + return value +} + +export interface PoolRoles { + depositor: t.types.sp_core.crypto.AccountId32 + root: t.types.sp_core.crypto.AccountId32 | undefined + nominator: t.types.sp_core.crypto.AccountId32 | undefined + state_toggler: t.types.sp_core.crypto.AccountId32 | undefined +} + +export function PoolRoles(value: t.types.pallet_nomination_pools.PoolRoles) { + return value +} + +export type PoolState = "Open" | "Blocked" | "Destroying" + +export interface RewardPool { + last_recorded_reward_counter: t.types.sp_arithmetic.fixed_point.FixedU128 + last_recorded_total_payouts: t.types.u128 + total_rewards_claimed: t.types.u128 +} + +export function RewardPool(value: t.types.pallet_nomination_pools.RewardPool) { + return value +} + +export interface SubPools { + no_era: t.types.pallet_nomination_pools.UnbondPool + with_era: Map +} + +export function SubPools(value: t.types.pallet_nomination_pools.SubPools) { + return value +} + +export interface UnbondPool { + points: t.types.u128 + balance: t.types.u128 +} + +export function UnbondPool(value: t.types.pallet_nomination_pools.UnbondPool) { + return value +} diff --git a/codegen/_output/westend/pallet_nomination_pools/pallet.ts b/codegen/_output/rococo/types/pallet_nomination_pools/pallet.ts similarity index 69% rename from codegen/_output/westend/pallet_nomination_pools/pallet.ts rename to codegen/_output/rococo/types/pallet_nomination_pools/pallet.ts index acbefdc55..68dbe5fbf 100644 --- a/codegen/_output/westend/pallet_nomination_pools/pallet.ts +++ b/codegen/_output/rococo/types/pallet_nomination_pools/pallet.ts @@ -1,30 +1,31 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$369 +export const $call: $.Codec = _codec.$369 -export const $defensiveError: $.Codec = _codec.$633 +export const $defensiveError: $.Codec = + _codec.$633 -export const $error: $.Codec = _codec.$632 +export const $error: $.Codec = _codec.$632 -export const $event: $.Codec = _codec.$90 +export const $event: $.Codec = _codec.$90 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_nomination_pools.pallet.Call.join - | t.pallet_nomination_pools.pallet.Call.bond_extra - | t.pallet_nomination_pools.pallet.Call.claim_payout - | t.pallet_nomination_pools.pallet.Call.unbond - | t.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded - | t.pallet_nomination_pools.pallet.Call.withdraw_unbonded - | t.pallet_nomination_pools.pallet.Call.create - | t.pallet_nomination_pools.pallet.Call.nominate - | t.pallet_nomination_pools.pallet.Call.set_state - | t.pallet_nomination_pools.pallet.Call.set_metadata - | t.pallet_nomination_pools.pallet.Call.set_configs - | t.pallet_nomination_pools.pallet.Call.update_roles - | t.pallet_nomination_pools.pallet.Call.chill + | t.types.pallet_nomination_pools.pallet.Call.join + | t.types.pallet_nomination_pools.pallet.Call.bond_extra + | t.types.pallet_nomination_pools.pallet.Call.claim_payout + | t.types.pallet_nomination_pools.pallet.Call.unbond + | t.types.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded + | t.types.pallet_nomination_pools.pallet.Call.withdraw_unbonded + | t.types.pallet_nomination_pools.pallet.Call.create + | t.types.pallet_nomination_pools.pallet.Call.nominate + | t.types.pallet_nomination_pools.pallet.Call.set_state + | t.types.pallet_nomination_pools.pallet.Call.set_metadata + | t.types.pallet_nomination_pools.pallet.Call.set_configs + | t.types.pallet_nomination_pools.pallet.Call.update_roles + | t.types.pallet_nomination_pools.pallet.Call.chill export namespace Call { /** * Stake funds with a pool. The amount to bond is transferred from the member to the @@ -40,8 +41,8 @@ export namespace Call { */ export interface join { type: "join" - amount: t.Compact - pool_id: t.u32 + amount: t.Compact + pool_id: t.types.u32 } /** * Bond `extra` more funds from `origin` into the pool to which they already belong. @@ -53,7 +54,7 @@ export namespace Call { */ export interface bond_extra { type: "bond_extra" - extra: t.pallet_nomination_pools.BondExtra + extra: t.types.pallet_nomination_pools.BondExtra } /** * A bonded member can use this to claim their payout based on the rewards that the pool @@ -98,8 +99,8 @@ export namespace Call { */ export interface unbond { type: "unbond" - member_account: t.sp_runtime.multiaddress.MultiAddress - unbonding_points: t.Compact + member_account: t.types.sp_runtime.multiaddress.MultiAddress + unbonding_points: t.Compact } /** * Call `withdraw_unbonded` for the pools account. This call can be made by any account. @@ -111,8 +112,8 @@ export namespace Call { */ export interface pool_withdraw_unbonded { type: "pool_withdraw_unbonded" - pool_id: t.u32 - num_slashing_spans: t.u32 + pool_id: t.types.u32 + num_slashing_spans: t.types.u32 } /** * Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an @@ -137,8 +138,8 @@ export namespace Call { */ export interface withdraw_unbonded { type: "withdraw_unbonded" - member_account: t.sp_runtime.multiaddress.MultiAddress - num_slashing_spans: t.u32 + member_account: t.types.sp_runtime.multiaddress.MultiAddress + num_slashing_spans: t.types.u32 } /** * Create a new delegation pool. @@ -161,10 +162,10 @@ export namespace Call { */ export interface create { type: "create" - amount: t.Compact - root: t.sp_runtime.multiaddress.MultiAddress - nominator: t.sp_runtime.multiaddress.MultiAddress - state_toggler: t.sp_runtime.multiaddress.MultiAddress + amount: t.Compact + root: t.types.sp_runtime.multiaddress.MultiAddress + nominator: t.types.sp_runtime.multiaddress.MultiAddress + state_toggler: t.types.sp_runtime.multiaddress.MultiAddress } /** * Nominate on behalf of the pool. @@ -177,8 +178,8 @@ export namespace Call { */ export interface nominate { type: "nominate" - pool_id: t.u32 - validators: Array + pool_id: t.types.u32 + validators: Array } /** * Set a new state for the pool. @@ -194,8 +195,8 @@ export namespace Call { */ export interface set_state { type: "set_state" - pool_id: t.u32 - state: t.pallet_nomination_pools.PoolState + pool_id: t.types.u32 + state: t.types.pallet_nomination_pools.PoolState } /** * Set a new metadata for the pool. @@ -205,7 +206,7 @@ export namespace Call { */ export interface set_metadata { type: "set_metadata" - pool_id: t.u32 + pool_id: t.types.u32 metadata: Uint8Array } /** @@ -222,11 +223,11 @@ export namespace Call { */ export interface set_configs { type: "set_configs" - min_join_bond: t.pallet_nomination_pools.ConfigOp.$$u128 - min_create_bond: t.pallet_nomination_pools.ConfigOp.$$u128 - max_pools: t.pallet_nomination_pools.ConfigOp.$$u32 - max_members: t.pallet_nomination_pools.ConfigOp.$$u32 - max_members_per_pool: t.pallet_nomination_pools.ConfigOp.$$u32 + min_join_bond: t.types.pallet_nomination_pools.ConfigOp.$$u128 + min_create_bond: t.types.pallet_nomination_pools.ConfigOp.$$u128 + max_pools: t.types.pallet_nomination_pools.ConfigOp.$$u32 + max_members: t.types.pallet_nomination_pools.ConfigOp.$$u32 + max_members_per_pool: t.types.pallet_nomination_pools.ConfigOp.$$u32 } /** * Update the roles of the pool. @@ -239,10 +240,10 @@ export namespace Call { */ export interface update_roles { type: "update_roles" - pool_id: t.u32 - new_root: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 - new_nominator: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 - new_state_toggler: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + pool_id: t.types.u32 + new_root: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + new_nominator: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + new_state_toggler: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 } /** * Chill on behalf of the pool. @@ -255,7 +256,7 @@ export namespace Call { */ export interface chill { type: "chill" - pool_id: t.u32 + pool_id: t.types.u32 } /** * Stake funds with a pool. The amount to bond is transferred from the member to the @@ -270,8 +271,8 @@ export namespace Call { * * Only a pool with [`PoolState::Open`] can be joined */ export function join( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.join { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.join { return { type: "join", ...value } } /** @@ -283,8 +284,8 @@ export namespace Call { * Bonding extra funds implies an automatic payout of all pending rewards as well. */ export function bond_extra( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.bond_extra { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.bond_extra { return { type: "bond_extra", ...value } } /** @@ -295,7 +296,7 @@ export namespace Call { * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". */ - export function claim_payout(): t.pallet_nomination_pools.pallet.Call.claim_payout { + export function claim_payout(): t.types.pallet_nomination_pools.pallet.Call.claim_payout { return { type: "claim_payout" } } /** @@ -329,8 +330,8 @@ export namespace Call { * `NoMoreChunks` error from the staking system. */ export function unbond( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.unbond { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.unbond { return { type: "unbond", ...value } } /** @@ -342,8 +343,8 @@ export namespace Call { * they attempt to unbond. */ export function pool_withdraw_unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded { return { type: "pool_withdraw_unbonded", ...value } } /** @@ -368,8 +369,8 @@ export namespace Call { * If the target is the depositor, the pool will be destroyed. */ export function withdraw_unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.withdraw_unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.withdraw_unbonded { return { type: "withdraw_unbonded", ...value } } /** @@ -392,8 +393,8 @@ export namespace Call { * needs at have at least `amount + existential_deposit` transferrable. */ export function create( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.create { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.create { return { type: "create", ...value } } /** @@ -406,8 +407,8 @@ export namespace Call { * account. */ export function nominate( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.nominate { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.nominate { return { type: "nominate", ...value } } /** @@ -423,8 +424,8 @@ export namespace Call { * then the state of the pool can be permissionlessly changed to `Destroying`. */ export function set_state( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_state { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_state { return { type: "set_state", ...value } } /** @@ -434,8 +435,8 @@ export namespace Call { * of the pool. */ export function set_metadata( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_metadata { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_metadata { return { type: "set_metadata", ...value } } /** @@ -451,8 +452,8 @@ export namespace Call { * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. */ export function set_configs( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_configs { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_configs { return { type: "set_configs", ...value } } /** @@ -465,8 +466,8 @@ export namespace Call { * most pool members and they should be informed of changes to pool roles. */ export function update_roles( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.update_roles { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.update_roles { return { type: "update_roles", ...value } } /** @@ -479,8 +480,8 @@ export namespace Call { * account. */ export function chill( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.chill { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.chill { return { type: "chill", ...value } } } @@ -494,27 +495,27 @@ export type DefensiveError = /** Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) of this pallet. */ export type Error = - | t.pallet_nomination_pools.pallet.Error.PoolNotFound - | t.pallet_nomination_pools.pallet.Error.PoolMemberNotFound - | t.pallet_nomination_pools.pallet.Error.RewardPoolNotFound - | t.pallet_nomination_pools.pallet.Error.SubPoolsNotFound - | t.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool - | t.pallet_nomination_pools.pallet.Error.FullyUnbonding - | t.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit - | t.pallet_nomination_pools.pallet.Error.CannotWithdrawAny - | t.pallet_nomination_pools.pallet.Error.MinimumBondNotMet - | t.pallet_nomination_pools.pallet.Error.OverflowRisk - | t.pallet_nomination_pools.pallet.Error.NotDestroying - | t.pallet_nomination_pools.pallet.Error.NotNominator - | t.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying - | t.pallet_nomination_pools.pallet.Error.NotOpen - | t.pallet_nomination_pools.pallet.Error.MaxPools - | t.pallet_nomination_pools.pallet.Error.MaxPoolMembers - | t.pallet_nomination_pools.pallet.Error.CanNotChangeState - | t.pallet_nomination_pools.pallet.Error.DoesNotHavePermission - | t.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen - | t.pallet_nomination_pools.pallet.Error.Defensive - | t.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly + | t.types.pallet_nomination_pools.pallet.Error.PoolNotFound + | t.types.pallet_nomination_pools.pallet.Error.PoolMemberNotFound + | t.types.pallet_nomination_pools.pallet.Error.RewardPoolNotFound + | t.types.pallet_nomination_pools.pallet.Error.SubPoolsNotFound + | t.types.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool + | t.types.pallet_nomination_pools.pallet.Error.FullyUnbonding + | t.types.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit + | t.types.pallet_nomination_pools.pallet.Error.CannotWithdrawAny + | t.types.pallet_nomination_pools.pallet.Error.MinimumBondNotMet + | t.types.pallet_nomination_pools.pallet.Error.OverflowRisk + | t.types.pallet_nomination_pools.pallet.Error.NotDestroying + | t.types.pallet_nomination_pools.pallet.Error.NotNominator + | t.types.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying + | t.types.pallet_nomination_pools.pallet.Error.NotOpen + | t.types.pallet_nomination_pools.pallet.Error.MaxPools + | t.types.pallet_nomination_pools.pallet.Error.MaxPoolMembers + | t.types.pallet_nomination_pools.pallet.Error.CanNotChangeState + | t.types.pallet_nomination_pools.pallet.Error.DoesNotHavePermission + | t.types.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen + | t.types.pallet_nomination_pools.pallet.Error.Defensive + | t.types.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly export namespace Error { /** A (bonded) pool id does not exist. */ export interface PoolNotFound { @@ -613,48 +614,48 @@ export namespace Error { */ export interface Defensive { type: "Defensive" - value: t.pallet_nomination_pools.pallet.DefensiveError + value: t.types.pallet_nomination_pools.pallet.DefensiveError } /** Partial unbonding now allowed permissionlessly. */ export interface PartialUnbondNotAllowedPermissionlessly { type: "PartialUnbondNotAllowedPermissionlessly" } /** A (bonded) pool id does not exist. */ - export function PoolNotFound(): t.pallet_nomination_pools.pallet.Error.PoolNotFound { + export function PoolNotFound(): t.types.pallet_nomination_pools.pallet.Error.PoolNotFound { return { type: "PoolNotFound" } } /** An account is not a member. */ - export function PoolMemberNotFound(): t.pallet_nomination_pools.pallet.Error.PoolMemberNotFound { + export function PoolMemberNotFound(): t.types.pallet_nomination_pools.pallet.Error.PoolMemberNotFound { return { type: "PoolMemberNotFound" } } /** A reward pool does not exist. In all cases this is a system logic error. */ - export function RewardPoolNotFound(): t.pallet_nomination_pools.pallet.Error.RewardPoolNotFound { + export function RewardPoolNotFound(): t.types.pallet_nomination_pools.pallet.Error.RewardPoolNotFound { return { type: "RewardPoolNotFound" } } /** A sub pool does not exist. */ - export function SubPoolsNotFound(): t.pallet_nomination_pools.pallet.Error.SubPoolsNotFound { + export function SubPoolsNotFound(): t.types.pallet_nomination_pools.pallet.Error.SubPoolsNotFound { return { type: "SubPoolsNotFound" } } /** * An account is already delegating in another pool. An account may only belong to one * pool at a time. */ - export function AccountBelongsToOtherPool(): t.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool { + export function AccountBelongsToOtherPool(): t.types.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool { return { type: "AccountBelongsToOtherPool" } } /** * The member is fully unbonded (and thus cannot access the bonded and reward pool * anymore to, for example, collect rewards). */ - export function FullyUnbonding(): t.pallet_nomination_pools.pallet.Error.FullyUnbonding { + export function FullyUnbonding(): t.types.pallet_nomination_pools.pallet.Error.FullyUnbonding { return { type: "FullyUnbonding" } } /** The member cannot unbond further chunks due to reaching the limit. */ - export function MaxUnbondingLimit(): t.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit { + export function MaxUnbondingLimit(): t.types.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit { return { type: "MaxUnbondingLimit" } } /** None of the funds can be withdrawn yet because the bonding duration has not passed. */ - export function CannotWithdrawAny(): t.pallet_nomination_pools.pallet.Error.CannotWithdrawAny { + export function CannotWithdrawAny(): t.types.pallet_nomination_pools.pallet.Error.CannotWithdrawAny { return { type: "CannotWithdrawAny" } } /** @@ -664,50 +665,50 @@ export namespace Error { * `Pallet::depositor_min_bond`. The caller does not have nominating * permissions for the pool. Members can never unbond to a value below `MinJoinBond`. */ - export function MinimumBondNotMet(): t.pallet_nomination_pools.pallet.Error.MinimumBondNotMet { + export function MinimumBondNotMet(): t.types.pallet_nomination_pools.pallet.Error.MinimumBondNotMet { return { type: "MinimumBondNotMet" } } /** The transaction could not be executed due to overflow risk for the pool. */ - export function OverflowRisk(): t.pallet_nomination_pools.pallet.Error.OverflowRisk { + export function OverflowRisk(): t.types.pallet_nomination_pools.pallet.Error.OverflowRisk { return { type: "OverflowRisk" } } /** * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for * other members to be permissionlessly unbonded. */ - export function NotDestroying(): t.pallet_nomination_pools.pallet.Error.NotDestroying { + export function NotDestroying(): t.types.pallet_nomination_pools.pallet.Error.NotDestroying { return { type: "NotDestroying" } } /** The caller does not have nominating permissions for the pool. */ - export function NotNominator(): t.pallet_nomination_pools.pallet.Error.NotNominator { + export function NotNominator(): t.types.pallet_nomination_pools.pallet.Error.NotNominator { return { type: "NotNominator" } } /** Either a) the caller cannot make a valid kick or b) the pool is not destroying. */ - export function NotKickerOrDestroying(): t.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying { + export function NotKickerOrDestroying(): t.types.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying { return { type: "NotKickerOrDestroying" } } /** The pool is not open to join */ - export function NotOpen(): t.pallet_nomination_pools.pallet.Error.NotOpen { + export function NotOpen(): t.types.pallet_nomination_pools.pallet.Error.NotOpen { return { type: "NotOpen" } } /** The system is maxed out on pools. */ - export function MaxPools(): t.pallet_nomination_pools.pallet.Error.MaxPools { + export function MaxPools(): t.types.pallet_nomination_pools.pallet.Error.MaxPools { return { type: "MaxPools" } } /** Too many members in the pool or system. */ - export function MaxPoolMembers(): t.pallet_nomination_pools.pallet.Error.MaxPoolMembers { + export function MaxPoolMembers(): t.types.pallet_nomination_pools.pallet.Error.MaxPoolMembers { return { type: "MaxPoolMembers" } } /** The pools state cannot be changed. */ - export function CanNotChangeState(): t.pallet_nomination_pools.pallet.Error.CanNotChangeState { + export function CanNotChangeState(): t.types.pallet_nomination_pools.pallet.Error.CanNotChangeState { return { type: "CanNotChangeState" } } /** The caller does not have adequate permissions. */ - export function DoesNotHavePermission(): t.pallet_nomination_pools.pallet.Error.DoesNotHavePermission { + export function DoesNotHavePermission(): t.types.pallet_nomination_pools.pallet.Error.DoesNotHavePermission { return { type: "DoesNotHavePermission" } } /** Metadata exceeds [`Config::MaxMetadataLen`] */ - export function MetadataExceedsMaxLen(): t.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen { + export function MetadataExceedsMaxLen(): t.types.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen { return { type: "MetadataExceedsMaxLen" } } /** @@ -715,50 +716,50 @@ export namespace Error { * maintainers. */ export function Defensive( - value: t.pallet_nomination_pools.pallet.Error.Defensive["value"], - ): t.pallet_nomination_pools.pallet.Error.Defensive { + value: t.types.pallet_nomination_pools.pallet.Error.Defensive["value"], + ): t.types.pallet_nomination_pools.pallet.Error.Defensive { return { type: "Defensive", value } } /** Partial unbonding now allowed permissionlessly. */ - export function PartialUnbondNotAllowedPermissionlessly(): t.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly { + export function PartialUnbondNotAllowedPermissionlessly(): t.types.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly { return { type: "PartialUnbondNotAllowedPermissionlessly" } } } /** Events of this pallet. */ export type Event = - | t.pallet_nomination_pools.pallet.Event.Created - | t.pallet_nomination_pools.pallet.Event.Bonded - | t.pallet_nomination_pools.pallet.Event.PaidOut - | t.pallet_nomination_pools.pallet.Event.Unbonded - | t.pallet_nomination_pools.pallet.Event.Withdrawn - | t.pallet_nomination_pools.pallet.Event.Destroyed - | t.pallet_nomination_pools.pallet.Event.StateChanged - | t.pallet_nomination_pools.pallet.Event.MemberRemoved - | t.pallet_nomination_pools.pallet.Event.RolesUpdated - | t.pallet_nomination_pools.pallet.Event.PoolSlashed - | t.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed + | t.types.pallet_nomination_pools.pallet.Event.Created + | t.types.pallet_nomination_pools.pallet.Event.Bonded + | t.types.pallet_nomination_pools.pallet.Event.PaidOut + | t.types.pallet_nomination_pools.pallet.Event.Unbonded + | t.types.pallet_nomination_pools.pallet.Event.Withdrawn + | t.types.pallet_nomination_pools.pallet.Event.Destroyed + | t.types.pallet_nomination_pools.pallet.Event.StateChanged + | t.types.pallet_nomination_pools.pallet.Event.MemberRemoved + | t.types.pallet_nomination_pools.pallet.Event.RolesUpdated + | t.types.pallet_nomination_pools.pallet.Event.PoolSlashed + | t.types.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed export namespace Event { /** A pool has been created. */ export interface Created { type: "Created" - depositor: t.sp_core.crypto.AccountId32 - pool_id: t.u32 + depositor: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 } /** A member has became bonded in a pool. */ export interface Bonded { type: "Bonded" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - bonded: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + bonded: t.types.u128 joined: boolean } /** A payout has been made to a member. */ export interface PaidOut { type: "PaidOut" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - payout: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + payout: t.types.u128 } /** * A member has unbonded from their pool. @@ -775,11 +776,11 @@ export namespace Event { */ export interface Unbonded { type: "Unbonded" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - balance: t.u128 - points: t.u128 - era: t.u32 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + balance: t.types.u128 + points: t.types.u128 + era: t.types.u32 } /** * A member has withdrawn from their pool. @@ -791,21 +792,21 @@ export namespace Event { */ export interface Withdrawn { type: "Withdrawn" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - balance: t.u128 - points: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + balance: t.types.u128 + points: t.types.u128 } /** A pool has been destroyed. */ export interface Destroyed { type: "Destroyed" - pool_id: t.u32 + pool_id: t.types.u32 } /** The state of a pool has changed */ export interface StateChanged { type: "StateChanged" - pool_id: t.u32 - new_state: t.pallet_nomination_pools.PoolState + pool_id: t.types.u32 + new_state: t.types.pallet_nomination_pools.PoolState } /** * A member has been removed from a pool. @@ -814,8 +815,8 @@ export namespace Event { */ export interface MemberRemoved { type: "MemberRemoved" - pool_id: t.u32 - member: t.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + member: t.types.sp_core.crypto.AccountId32 } /** * The roles of a pool have been updated to the given new roles. Note that the depositor @@ -823,39 +824,39 @@ export namespace Event { */ export interface RolesUpdated { type: "RolesUpdated" - root: t.sp_core.crypto.AccountId32 | undefined - state_toggler: t.sp_core.crypto.AccountId32 | undefined - nominator: t.sp_core.crypto.AccountId32 | undefined + root: t.types.sp_core.crypto.AccountId32 | undefined + state_toggler: t.types.sp_core.crypto.AccountId32 | undefined + nominator: t.types.sp_core.crypto.AccountId32 | undefined } /** The active balance of pool `pool_id` has been slashed to `balance`. */ export interface PoolSlashed { type: "PoolSlashed" - pool_id: t.u32 - balance: t.u128 + pool_id: t.types.u32 + balance: t.types.u128 } /** The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ export interface UnbondingPoolSlashed { type: "UnbondingPoolSlashed" - pool_id: t.u32 - era: t.u32 - balance: t.u128 + pool_id: t.types.u32 + era: t.types.u32 + balance: t.types.u128 } /** A pool has been created. */ export function Created( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Created { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Created { return { type: "Created", ...value } } /** A member has became bonded in a pool. */ export function Bonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Bonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Bonded { return { type: "Bonded", ...value } } /** A payout has been made to a member. */ export function PaidOut( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.PaidOut { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.PaidOut { return { type: "PaidOut", ...value } } /** @@ -872,8 +873,8 @@ export namespace Event { * requested to be unbonded. */ export function Unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Unbonded { return { type: "Unbonded", ...value } } /** @@ -885,20 +886,20 @@ export namespace Event { * will be 1. */ export function Withdrawn( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Withdrawn { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Withdrawn { return { type: "Withdrawn", ...value } } /** A pool has been destroyed. */ export function Destroyed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Destroyed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Destroyed { return { type: "Destroyed", ...value } } /** The state of a pool has changed */ export function StateChanged( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.StateChanged { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.StateChanged { return { type: "StateChanged", ...value } } /** @@ -907,8 +908,8 @@ export namespace Event { * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). */ export function MemberRemoved( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.MemberRemoved { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.MemberRemoved { return { type: "MemberRemoved", ...value } } /** @@ -916,20 +917,20 @@ export namespace Event { * can never change. */ export function RolesUpdated( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.RolesUpdated { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.RolesUpdated { return { type: "RolesUpdated", ...value } } /** The active balance of pool `pool_id` has been slashed to `balance`. */ export function PoolSlashed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.PoolSlashed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.PoolSlashed { return { type: "PoolSlashed", ...value } } /** The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ export function UnbondingPoolSlashed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed { return { type: "UnbondingPoolSlashed", ...value } } } diff --git a/codegen/_output/rococo/pallet_offences/mod.ts b/codegen/_output/rococo/types/pallet_offences/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_offences/mod.ts rename to codegen/_output/rococo/types/pallet_offences/mod.ts diff --git a/codegen/_output/westend/pallet_offences/pallet.ts b/codegen/_output/rococo/types/pallet_offences/pallet.ts similarity index 62% rename from codegen/_output/westend/pallet_offences/pallet.ts rename to codegen/_output/rococo/types/pallet_offences/pallet.ts index 6475526f3..649196c9b 100644 --- a/codegen/_output/westend/pallet_offences/pallet.ts +++ b/codegen/_output/rococo/types/pallet_offences/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $event: $.Codec = _codec.$44 +export const $event: $.Codec = _codec.$44 /** Events type. */ -export type Event = t.pallet_offences.pallet.Event.Offence +export type Event = t.types.pallet_offences.pallet.Event.Offence export namespace Event { /** * There is an offence reported of the given `kind` happened at the `session_index` and @@ -23,8 +23,8 @@ export namespace Event { * \[kind, timeslot\]. */ export function Offence( - value: Omit, - ): t.pallet_offences.pallet.Event.Offence { + value: Omit, + ): t.types.pallet_offences.pallet.Event.Offence { return { type: "Offence", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_preimage/mod.ts b/codegen/_output/rococo/types/pallet_preimage/mod.ts new file mode 100644 index 000000000..324126816 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_preimage/mod.ts @@ -0,0 +1,34 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $requestStatus: $.Codec = _codec.$451 + +export type RequestStatus = + | t.types.pallet_preimage.RequestStatus.Unrequested + | t.types.pallet_preimage.RequestStatus.Requested +export namespace RequestStatus { + export interface Unrequested { + type: "Unrequested" + deposit: [t.types.sp_core.crypto.AccountId32, t.types.u128] + len: t.types.u32 + } + export interface Requested { + type: "Requested" + deposit: [t.types.sp_core.crypto.AccountId32, t.types.u128] | undefined + count: t.types.u32 + len: t.types.u32 | undefined + } + export function Unrequested( + value: Omit, + ): t.types.pallet_preimage.RequestStatus.Unrequested { + return { type: "Unrequested", ...value } + } + export function Requested( + value: Omit, + ): t.types.pallet_preimage.RequestStatus.Requested { + return { type: "Requested", ...value } + } +} diff --git a/codegen/_output/kusama/pallet_preimage/pallet.ts b/codegen/_output/rococo/types/pallet_preimage/pallet.ts similarity index 66% rename from codegen/_output/kusama/pallet_preimage/pallet.ts rename to codegen/_output/rococo/types/pallet_preimage/pallet.ts index fdef5e58f..b642211ec 100644 --- a/codegen/_output/kusama/pallet_preimage/pallet.ts +++ b/codegen/_output/rococo/types/pallet_preimage/pallet.ts @@ -1,19 +1,19 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$184 +export const $call: $.Codec = _codec.$184 -export const $error: $.Codec = _codec.$455 +export const $error: $.Codec = _codec.$455 -export const $event: $.Codec = _codec.$34 +export const $event: $.Codec = _codec.$34 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_preimage.pallet.Call.note_preimage - | t.pallet_preimage.pallet.Call.unnote_preimage - | t.pallet_preimage.pallet.Call.request_preimage - | t.pallet_preimage.pallet.Call.unrequest_preimage + | t.types.pallet_preimage.pallet.Call.note_preimage + | t.types.pallet_preimage.pallet.Call.unnote_preimage + | t.types.pallet_preimage.pallet.Call.request_preimage + | t.types.pallet_preimage.pallet.Call.unrequest_preimage export namespace Call { /** * Register a preimage on-chain. @@ -35,7 +35,7 @@ export namespace Call { */ export interface unnote_preimage { type: "unnote_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Request a preimage be uploaded to the chain without paying any fees or deposits. @@ -45,7 +45,7 @@ export namespace Call { */ export interface request_preimage { type: "request_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Clear a previously made request for a preimage. @@ -54,7 +54,7 @@ export namespace Call { */ export interface unrequest_preimage { type: "unrequest_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Register a preimage on-chain. @@ -63,8 +63,8 @@ export namespace Call { * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ export function note_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.note_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.note_preimage { return { type: "note_preimage", ...value } } /** @@ -76,8 +76,8 @@ export namespace Call { * - `len`: The length of the preimage of `hash`. */ export function unnote_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.unnote_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.unnote_preimage { return { type: "unnote_preimage", ...value } } /** @@ -87,8 +87,8 @@ export namespace Call { * a user may have paid, and take the control of the preimage out of their hands. */ export function request_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.request_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.request_preimage { return { type: "request_preimage", ...value } } /** @@ -97,8 +97,8 @@ export namespace Call { * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ export function unrequest_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.unrequest_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.unrequest_preimage { return { type: "unrequest_preimage", ...value } } } @@ -114,41 +114,41 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_preimage.pallet.Event.Noted - | t.pallet_preimage.pallet.Event.Requested - | t.pallet_preimage.pallet.Event.Cleared + | t.types.pallet_preimage.pallet.Event.Noted + | t.types.pallet_preimage.pallet.Event.Requested + | t.types.pallet_preimage.pallet.Event.Cleared export namespace Event { /** A preimage has been noted. */ export interface Noted { type: "Noted" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has been requested. */ export interface Requested { type: "Requested" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has ben cleared. */ export interface Cleared { type: "Cleared" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has been noted. */ export function Noted( - value: Omit, - ): t.pallet_preimage.pallet.Event.Noted { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Noted { return { type: "Noted", ...value } } /** A preimage has been requested. */ export function Requested( - value: Omit, - ): t.pallet_preimage.pallet.Event.Requested { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Requested { return { type: "Requested", ...value } } /** A preimage has ben cleared. */ export function Cleared( - value: Omit, - ): t.pallet_preimage.pallet.Event.Cleared { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Cleared { return { type: "Cleared", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_proxy/mod.ts b/codegen/_output/rococo/types/pallet_proxy/mod.ts new file mode 100644 index 000000000..db212b5e5 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_proxy/mod.ts @@ -0,0 +1,29 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $announcement: $.Codec = _codec.$585 + +export const $proxyDefinition: $.Codec = _codec.$581 + +export interface Announcement { + real: t.types.sp_core.crypto.AccountId32 + call_hash: t.types.primitive_types.H256 + height: t.types.u32 +} + +export function Announcement(value: t.types.pallet_proxy.Announcement) { + return value +} + +export interface ProxyDefinition { + delegate: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 +} + +export function ProxyDefinition(value: t.types.pallet_proxy.ProxyDefinition) { + return value +} diff --git a/codegen/_output/polkadot/pallet_proxy/pallet.ts b/codegen/_output/rococo/types/pallet_proxy/pallet.ts similarity index 74% rename from codegen/_output/polkadot/pallet_proxy/pallet.ts rename to codegen/_output/rococo/types/pallet_proxy/pallet.ts index e98acf198..8833ea7d3 100644 --- a/codegen/_output/polkadot/pallet_proxy/pallet.ts +++ b/codegen/_output/rococo/types/pallet_proxy/pallet.ts @@ -1,25 +1,25 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$303 +export const $call: $.Codec = _codec.$303 -export const $error: $.Codec = _codec.$587 +export const $error: $.Codec = _codec.$587 -export const $event: $.Codec = _codec.$78 +export const $event: $.Codec = _codec.$78 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_proxy.pallet.Call.proxy - | t.pallet_proxy.pallet.Call.add_proxy - | t.pallet_proxy.pallet.Call.remove_proxy - | t.pallet_proxy.pallet.Call.remove_proxies - | t.pallet_proxy.pallet.Call.create_pure - | t.pallet_proxy.pallet.Call.kill_pure - | t.pallet_proxy.pallet.Call.announce - | t.pallet_proxy.pallet.Call.remove_announcement - | t.pallet_proxy.pallet.Call.reject_announcement - | t.pallet_proxy.pallet.Call.proxy_announced + | t.types.pallet_proxy.pallet.Call.proxy + | t.types.pallet_proxy.pallet.Call.add_proxy + | t.types.pallet_proxy.pallet.Call.remove_proxy + | t.types.pallet_proxy.pallet.Call.remove_proxies + | t.types.pallet_proxy.pallet.Call.create_pure + | t.types.pallet_proxy.pallet.Call.kill_pure + | t.types.pallet_proxy.pallet.Call.announce + | t.types.pallet_proxy.pallet.Call.remove_announcement + | t.types.pallet_proxy.pallet.Call.reject_announcement + | t.types.pallet_proxy.pallet.Call.proxy_announced export namespace Call { /** * Dispatch the given `call` from an account that the sender is authorised for through @@ -36,9 +36,9 @@ export namespace Call { */ export interface proxy { type: "proxy" - real: t.sp_runtime.multiaddress.MultiAddress - force_proxy_type: t.polkadot_runtime.ProxyType | undefined - call: t.polkadot_runtime.RuntimeCall + real: t.types.sp_runtime.multiaddress.MultiAddress + force_proxy_type: t.types.polkadot_runtime.ProxyType | undefined + call: t.types.polkadot_runtime.RuntimeCall } /** * Register a proxy account for the sender that is able to make calls on its behalf. @@ -53,9 +53,9 @@ export namespace Call { */ export interface add_proxy { type: "add_proxy" - delegate: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** * Unregister a proxy account for the sender. @@ -68,9 +68,9 @@ export namespace Call { */ export interface remove_proxy { type: "remove_proxy" - delegate: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** * Unregister all proxy accounts for the sender. @@ -105,9 +105,9 @@ export namespace Call { */ export interface create_pure { type: "create_pure" - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 - index: t.u16 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 + index: t.types.u16 } /** * Removes a previously spawned pure proxy. @@ -129,11 +129,11 @@ export namespace Call { */ export interface kill_pure { type: "kill_pure" - spawner: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - index: t.u16 - height: t.Compact - ext_index: t.Compact + spawner: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + index: t.types.u16 + height: t.Compact + ext_index: t.Compact } /** * Publish the hash of a proxy-call that will be made in the future. @@ -154,8 +154,8 @@ export namespace Call { */ export interface announce { type: "announce" - real: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + real: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Remove a given announcement. @@ -171,8 +171,8 @@ export namespace Call { */ export interface remove_announcement { type: "remove_announcement" - real: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + real: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Remove the given announcement of a delegate. @@ -188,8 +188,8 @@ export namespace Call { */ export interface reject_announcement { type: "reject_announcement" - delegate: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Dispatch the given `call` from an account that the sender is authorized for through @@ -206,10 +206,10 @@ export namespace Call { */ export interface proxy_announced { type: "proxy_announced" - delegate: t.sp_runtime.multiaddress.MultiAddress - real: t.sp_runtime.multiaddress.MultiAddress - force_proxy_type: t.polkadot_runtime.ProxyType | undefined - call: t.polkadot_runtime.RuntimeCall + delegate: t.types.sp_runtime.multiaddress.MultiAddress + real: t.types.sp_runtime.multiaddress.MultiAddress + force_proxy_type: t.types.polkadot_runtime.ProxyType | undefined + call: t.types.polkadot_runtime.RuntimeCall } /** * Dispatch the given `call` from an account that the sender is authorised for through @@ -225,8 +225,8 @@ export namespace Call { * - `call`: The call to be made by the `real` account. */ export function proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.proxy { return { type: "proxy", ...value } } /** @@ -241,8 +241,8 @@ export namespace Call { * zero. */ export function add_proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.add_proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.add_proxy { return { type: "add_proxy", ...value } } /** @@ -255,8 +255,8 @@ export namespace Call { * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ export function remove_proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.remove_proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.remove_proxy { return { type: "remove_proxy", ...value } } /** @@ -267,7 +267,7 @@ export namespace Call { * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ - export function remove_proxies(): t.pallet_proxy.pallet.Call.remove_proxies { + export function remove_proxies(): t.types.pallet_proxy.pallet.Call.remove_proxies { return { type: "remove_proxies" } } /** @@ -291,8 +291,8 @@ export namespace Call { * Fails if there are insufficient funds to pay for deposit. */ export function create_pure( - value: Omit, - ): t.pallet_proxy.pallet.Call.create_pure { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.create_pure { return { type: "create_pure", ...value } } /** @@ -314,8 +314,8 @@ export namespace Call { * account whose `pure` call has corresponding parameters. */ export function kill_pure( - value: Omit, - ): t.pallet_proxy.pallet.Call.kill_pure { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.kill_pure { return { type: "kill_pure", ...value } } /** @@ -336,8 +336,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made by the `real` account. */ export function announce( - value: Omit, - ): t.pallet_proxy.pallet.Call.announce { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.announce { return { type: "announce", ...value } } /** @@ -353,8 +353,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made by the `real` account. */ export function remove_announcement( - value: Omit, - ): t.pallet_proxy.pallet.Call.remove_announcement { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.remove_announcement { return { type: "remove_announcement", ...value } } /** @@ -370,8 +370,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made. */ export function reject_announcement( - value: Omit, - ): t.pallet_proxy.pallet.Call.reject_announcement { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.reject_announcement { return { type: "reject_announcement", ...value } } /** @@ -388,8 +388,8 @@ export namespace Call { * - `call`: The call to be made by the `real` account. */ export function proxy_announced( - value: Omit, - ): t.pallet_proxy.pallet.Call.proxy_announced { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.proxy_announced { return { type: "proxy_announced", ...value } } } @@ -407,16 +407,16 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_proxy.pallet.Event.ProxyExecuted - | t.pallet_proxy.pallet.Event.PureCreated - | t.pallet_proxy.pallet.Event.Announced - | t.pallet_proxy.pallet.Event.ProxyAdded - | t.pallet_proxy.pallet.Event.ProxyRemoved + | t.types.pallet_proxy.pallet.Event.ProxyExecuted + | t.types.pallet_proxy.pallet.Event.PureCreated + | t.types.pallet_proxy.pallet.Event.Announced + | t.types.pallet_proxy.pallet.Event.ProxyAdded + | t.types.pallet_proxy.pallet.Event.ProxyRemoved export namespace Event { /** A proxy was executed correctly, with the given. */ export interface ProxyExecuted { type: "ProxyExecuted" - result: null | C.ChainError + result: null | C.ChainError } /** * A pure account has been created by new proxy with given @@ -424,38 +424,38 @@ export namespace Event { */ export interface PureCreated { type: "PureCreated" - pure: t.sp_core.crypto.AccountId32 - who: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - disambiguation_index: t.u16 + pure: t.types.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + disambiguation_index: t.types.u16 } /** An announcement was placed to make a call in the future. */ export interface Announced { type: "Announced" - real: t.sp_core.crypto.AccountId32 - proxy: t.sp_core.crypto.AccountId32 - call_hash: t.primitive_types.H256 + real: t.types.sp_core.crypto.AccountId32 + proxy: t.types.sp_core.crypto.AccountId32 + call_hash: t.types.primitive_types.H256 } /** A proxy was added. */ export interface ProxyAdded { type: "ProxyAdded" - delegator: t.sp_core.crypto.AccountId32 - delegatee: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegator: t.types.sp_core.crypto.AccountId32 + delegatee: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** A proxy was removed. */ export interface ProxyRemoved { type: "ProxyRemoved" - delegator: t.sp_core.crypto.AccountId32 - delegatee: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegator: t.types.sp_core.crypto.AccountId32 + delegatee: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** A proxy was executed correctly, with the given. */ export function ProxyExecuted( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyExecuted { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyExecuted { return { type: "ProxyExecuted", ...value } } /** @@ -463,26 +463,26 @@ export namespace Event { * disambiguation index and proxy type. */ export function PureCreated( - value: Omit, - ): t.pallet_proxy.pallet.Event.PureCreated { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.PureCreated { return { type: "PureCreated", ...value } } /** An announcement was placed to make a call in the future. */ export function Announced( - value: Omit, - ): t.pallet_proxy.pallet.Event.Announced { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.Announced { return { type: "Announced", ...value } } /** A proxy was added. */ export function ProxyAdded( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyAdded { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyAdded { return { type: "ProxyAdded", ...value } } /** A proxy was removed. */ export function ProxyRemoved( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyRemoved { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyRemoved { return { type: "ProxyRemoved", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_scheduler/mod.ts b/codegen/_output/rococo/types/pallet_scheduler/mod.ts new file mode 100644 index 000000000..6aa7c8d49 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_scheduler/mod.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $scheduled: $.Codec = _codec.$179 + +export interface Scheduled { + maybe_id: Uint8Array | undefined + priority: t.types.u8 + call: t.types.frame_support.traits.preimages.Bounded + maybe_periodic: [t.types.u32, t.types.u32] | undefined + origin: t.types.polkadot_runtime.OriginCaller +} + +export function Scheduled(value: t.types.pallet_scheduler.Scheduled) { + return value +} diff --git a/codegen/_output/westend/pallet_scheduler/pallet.ts b/codegen/_output/rococo/types/pallet_scheduler/pallet.ts similarity index 52% rename from codegen/_output/westend/pallet_scheduler/pallet.ts rename to codegen/_output/rococo/types/pallet_scheduler/pallet.ts index f960ab872..407f45522 100644 --- a/codegen/_output/westend/pallet_scheduler/pallet.ts +++ b/codegen/_output/rococo/types/pallet_scheduler/pallet.ts @@ -1,44 +1,44 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$182 +export const $call: $.Codec = _codec.$182 -export const $error: $.Codec = _codec.$450 +export const $error: $.Codec = _codec.$450 -export const $event: $.Codec = _codec.$29 +export const $event: $.Codec = _codec.$29 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_scheduler.pallet.Call.schedule - | t.pallet_scheduler.pallet.Call.cancel - | t.pallet_scheduler.pallet.Call.schedule_named - | t.pallet_scheduler.pallet.Call.cancel_named - | t.pallet_scheduler.pallet.Call.schedule_after - | t.pallet_scheduler.pallet.Call.schedule_named_after + | t.types.pallet_scheduler.pallet.Call.schedule + | t.types.pallet_scheduler.pallet.Call.cancel + | t.types.pallet_scheduler.pallet.Call.schedule_named + | t.types.pallet_scheduler.pallet.Call.cancel_named + | t.types.pallet_scheduler.pallet.Call.schedule_after + | t.types.pallet_scheduler.pallet.Call.schedule_named_after export namespace Call { /** Anonymously schedule a task. */ export interface schedule { type: "schedule" - when: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + when: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Cancel an anonymously scheduled task. */ export interface cancel { type: "cancel" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Schedule a named task. */ export interface schedule_named { type: "schedule_named" id: Uint8Array - when: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + when: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Cancel a named scheduled task. */ export interface cancel_named { @@ -54,10 +54,10 @@ export namespace Call { */ export interface schedule_after { type: "schedule_after" - after: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + after: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** * Schedule a named task after a delay. @@ -69,33 +69,33 @@ export namespace Call { export interface schedule_named_after { type: "schedule_named_after" id: Uint8Array - after: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + after: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Anonymously schedule a task. */ export function schedule( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule { return { type: "schedule", ...value } } /** Cancel an anonymously scheduled task. */ export function cancel( - value: Omit, - ): t.pallet_scheduler.pallet.Call.cancel { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.cancel { return { type: "cancel", ...value } } /** Schedule a named task. */ export function schedule_named( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_named { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_named { return { type: "schedule_named", ...value } } /** Cancel a named scheduled task. */ export function cancel_named( - value: Omit, - ): t.pallet_scheduler.pallet.Call.cancel_named { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.cancel_named { return { type: "cancel_named", ...value } } /** @@ -106,8 +106,8 @@ export namespace Call { * # */ export function schedule_after( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_after { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_after { return { type: "schedule_after", ...value } } /** @@ -118,8 +118,8 @@ export namespace Call { * # */ export function schedule_named_after( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_named_after { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_named_after { return { type: "schedule_named_after", ...value } } } @@ -134,84 +134,84 @@ export type Error = /** Events type. */ export type Event = - | t.pallet_scheduler.pallet.Event.Scheduled - | t.pallet_scheduler.pallet.Event.Canceled - | t.pallet_scheduler.pallet.Event.Dispatched - | t.pallet_scheduler.pallet.Event.CallUnavailable - | t.pallet_scheduler.pallet.Event.PeriodicFailed - | t.pallet_scheduler.pallet.Event.PermanentlyOverweight + | t.types.pallet_scheduler.pallet.Event.Scheduled + | t.types.pallet_scheduler.pallet.Event.Canceled + | t.types.pallet_scheduler.pallet.Event.Dispatched + | t.types.pallet_scheduler.pallet.Event.CallUnavailable + | t.types.pallet_scheduler.pallet.Event.PeriodicFailed + | t.types.pallet_scheduler.pallet.Event.PermanentlyOverweight export namespace Event { /** Scheduled some task. */ export interface Scheduled { type: "Scheduled" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Canceled some task. */ export interface Canceled { type: "Canceled" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Dispatched some task. */ export interface Dispatched { type: "Dispatched" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined - result: null | C.ChainError + result: null | C.ChainError } /** The call for the provided hash was not found so the task has been aborted. */ export interface CallUnavailable { type: "CallUnavailable" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** The given task was unable to be renewed since the agenda is full at that block. */ export interface PeriodicFailed { type: "PeriodicFailed" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** The given task can never be executed since it is overweight. */ export interface PermanentlyOverweight { type: "PermanentlyOverweight" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** Scheduled some task. */ export function Scheduled( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Scheduled { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Scheduled { return { type: "Scheduled", ...value } } /** Canceled some task. */ export function Canceled( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Canceled { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Canceled { return { type: "Canceled", ...value } } /** Dispatched some task. */ export function Dispatched( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Dispatched { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Dispatched { return { type: "Dispatched", ...value } } /** The call for the provided hash was not found so the task has been aborted. */ export function CallUnavailable( - value: Omit, - ): t.pallet_scheduler.pallet.Event.CallUnavailable { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.CallUnavailable { return { type: "CallUnavailable", ...value } } /** The given task was unable to be renewed since the agenda is full at that block. */ export function PeriodicFailed( - value: Omit, - ): t.pallet_scheduler.pallet.Event.PeriodicFailed { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.PeriodicFailed { return { type: "PeriodicFailed", ...value } } /** The given task can never be executed since it is overweight. */ export function PermanentlyOverweight( - value: Omit, - ): t.pallet_scheduler.pallet.Event.PermanentlyOverweight { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.PermanentlyOverweight { return { type: "PermanentlyOverweight", ...value } } } diff --git a/codegen/_output/rococo/pallet_session/mod.ts b/codegen/_output/rococo/types/pallet_session/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_session/mod.ts rename to codegen/_output/rococo/types/pallet_session/mod.ts diff --git a/codegen/_output/kusama/pallet_session/pallet.ts b/codegen/_output/rococo/types/pallet_session/pallet.ts similarity index 80% rename from codegen/_output/kusama/pallet_session/pallet.ts rename to codegen/_output/rococo/types/pallet_session/pallet.ts index ef7524106..f8f962a9f 100644 --- a/codegen/_output/kusama/pallet_session/pallet.ts +++ b/codegen/_output/rococo/types/pallet_session/pallet.ts @@ -1,15 +1,17 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$211 +export const $call: $.Codec = _codec.$211 -export const $error: $.Codec = _codec.$515 +export const $error: $.Codec = _codec.$515 -export const $event: $.Codec = _codec.$46 +export const $event: $.Codec = _codec.$46 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_session.pallet.Call.set_keys | t.pallet_session.pallet.Call.purge_keys +export type Call = + | t.types.pallet_session.pallet.Call.set_keys + | t.types.pallet_session.pallet.Call.purge_keys export namespace Call { /** * Sets the session key(s) of the function caller to `keys`. @@ -29,7 +31,7 @@ export namespace Call { */ export interface set_keys { type: "set_keys" - keys: t.polkadot_runtime.SessionKeys + keys: t.types.polkadot_runtime.SessionKeys proof: Uint8Array } /** @@ -70,8 +72,8 @@ export namespace Call { * # */ export function set_keys( - value: Omit, - ): t.pallet_session.pallet.Call.set_keys { + value: Omit, + ): t.types.pallet_session.pallet.Call.set_keys { return { type: "set_keys", ...value } } /** @@ -92,7 +94,7 @@ export namespace Call { * - DbWrites per key id: `KeyOwner` * # */ - export function purge_keys(): t.pallet_session.pallet.Call.purge_keys { + export function purge_keys(): t.types.pallet_session.pallet.Call.purge_keys { return { type: "purge_keys" } } } @@ -106,7 +108,7 @@ export type Error = | "NoAccount" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.pallet_session.pallet.Event.NewSession +export type Event = t.types.pallet_session.pallet.Event.NewSession export namespace Event { /** * New session has happened. Note that the argument is the session index, not the @@ -114,15 +116,15 @@ export namespace Event { */ export interface NewSession { type: "NewSession" - session_index: t.u32 + session_index: t.types.u32 } /** * New session has happened. Note that the argument is the session index, not the * block number as the type might suggest. */ export function NewSession( - value: Omit, - ): t.pallet_session.pallet.Event.NewSession { + value: Omit, + ): t.types.pallet_session.pallet.Event.NewSession { return { type: "NewSession", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_staking/mod.ts b/codegen/_output/rococo/types/pallet_staking/mod.ts new file mode 100644 index 000000000..8f1e68cf8 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_staking/mod.ts @@ -0,0 +1,177 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet/mod.ts" +export * as slashing from "./slashing.ts" + +export const $activeEraInfo: $.Codec = _codec.$492 + +export const $eraRewardPoints: $.Codec = _codec.$495 + +export const $exposure: $.Codec = _codec.$57 + +export const $forcing: $.Codec = _codec.$499 + +export const $individualExposure: $.Codec = _codec.$60 + +export const $nominations: $.Codec = _codec.$490 + +export const $releases: $.Codec = _codec.$507 + +export const $rewardDestination: $.Codec = _codec.$203 + +export const $stakingLedger: $.Codec = _codec.$485 + +export const $unappliedSlash: $.Codec = _codec.$501 + +export const $unlockChunk: $.Codec = _codec.$487 + +export const $validatorPrefs: $.Codec = _codec.$40 + +export interface ActiveEraInfo { + index: t.types.u32 + start: t.types.u64 | undefined +} + +export function ActiveEraInfo(value: t.types.pallet_staking.ActiveEraInfo) { + return value +} + +export interface EraRewardPoints { + total: t.types.u32 + individual: Map +} + +export function EraRewardPoints(value: t.types.pallet_staking.EraRewardPoints) { + return value +} + +export interface Exposure { + total: t.Compact + own: t.Compact + others: Array +} + +export function Exposure(value: t.types.pallet_staking.Exposure) { + return value +} + +export type Forcing = "NotForcing" | "ForceNew" | "ForceNone" | "ForceAlways" + +export interface IndividualExposure { + who: t.types.sp_core.crypto.AccountId32 + value: t.Compact +} + +export function IndividualExposure(value: t.types.pallet_staking.IndividualExposure) { + return value +} + +export interface Nominations { + targets: Array + submitted_in: t.types.u32 + suppressed: boolean +} + +export function Nominations(value: t.types.pallet_staking.Nominations) { + return value +} + +export type Releases = + | "V1_0_0Ancient" + | "V2_0_0" + | "V3_0_0" + | "V4_0_0" + | "V5_0_0" + | "V6_0_0" + | "V7_0_0" + | "V8_0_0" + | "V9_0_0" + | "V10_0_0" + | "V11_0_0" + | "V12_0_0" + +export type RewardDestination = + | t.types.pallet_staking.RewardDestination.Staked + | t.types.pallet_staking.RewardDestination.Stash + | t.types.pallet_staking.RewardDestination.Controller + | t.types.pallet_staking.RewardDestination.Account + | t.types.pallet_staking.RewardDestination.None +export namespace RewardDestination { + export interface Staked { + type: "Staked" + } + export interface Stash { + type: "Stash" + } + export interface Controller { + type: "Controller" + } + export interface Account { + type: "Account" + value: t.types.sp_core.crypto.AccountId32 + } + export interface None { + type: "None" + } + export function Staked(): t.types.pallet_staking.RewardDestination.Staked { + return { type: "Staked" } + } + export function Stash(): t.types.pallet_staking.RewardDestination.Stash { + return { type: "Stash" } + } + export function Controller(): t.types.pallet_staking.RewardDestination.Controller { + return { type: "Controller" } + } + export function Account( + value: t.types.pallet_staking.RewardDestination.Account["value"], + ): t.types.pallet_staking.RewardDestination.Account { + return { type: "Account", value } + } + export function None(): t.types.pallet_staking.RewardDestination.None { + return { type: "None" } + } +} + +export interface StakingLedger { + stash: t.types.sp_core.crypto.AccountId32 + total: t.Compact + active: t.Compact + unlocking: Array + claimed_rewards: Array +} + +export function StakingLedger(value: t.types.pallet_staking.StakingLedger) { + return value +} + +export interface UnappliedSlash { + validator: t.types.sp_core.crypto.AccountId32 + own: t.types.u128 + others: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> + reporters: Array + payout: t.types.u128 +} + +export function UnappliedSlash(value: t.types.pallet_staking.UnappliedSlash) { + return value +} + +export interface UnlockChunk { + value: t.Compact + era: t.Compact +} + +export function UnlockChunk(value: t.types.pallet_staking.UnlockChunk) { + return value +} + +export interface ValidatorPrefs { + commission: t.Compact + blocked: boolean +} + +export function ValidatorPrefs(value: t.types.pallet_staking.ValidatorPrefs) { + return value +} diff --git a/codegen/_output/rococo/pallet_staking/pallet/mod.ts b/codegen/_output/rococo/types/pallet_staking/pallet/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_staking/pallet/mod.ts rename to codegen/_output/rococo/types/pallet_staking/pallet/mod.ts diff --git a/codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts b/codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts rename to codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts diff --git a/codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts b/codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts new file mode 100644 index 000000000..724ded6e5 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts @@ -0,0 +1,69 @@ +import { $ } from "../../../../../../capi.ts" +import * as _codec from "../../../../../../codecs.ts" +import type * as t from "../../../../../../mod.ts" + +export const $perbill: $.Codec< + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill +> = _codec.$210 + +export const $percent: $.Codec< + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent +> = _codec.$209 + +export type Perbill = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove +export namespace Perbill { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_arithmetic.per_things.Perbill + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop { + return { type: "Noop" } + } + export function Set( + value: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove { + return { type: "Remove" } + } +} + +export type Percent = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove +export namespace Percent { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_arithmetic.per_things.Percent + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop { + return { type: "Noop" } + } + export function Set( + value: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts b/codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts new file mode 100644 index 000000000..bfc666f9b --- /dev/null +++ b/codegen/_output/rococo/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export * as $$sp_arithmetic from "./$$sp_arithmetic/mod.ts" + +export const $$$u128: $.Codec = _codec.$207 + +export const $$$u32: $.Codec = _codec.$208 + +export type $$u128 = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove +export namespace $$u128 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u128 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove { + return { type: "Remove" } + } +} + +export type $$u32 = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove +export namespace $$u32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/polkadot/pallet_staking/pallet/pallet/mod.ts b/codegen/_output/rococo/types/pallet_staking/pallet/pallet/mod.ts similarity index 76% rename from codegen/_output/polkadot/pallet_staking/pallet/pallet/mod.ts rename to codegen/_output/rococo/types/pallet_staking/pallet/pallet/mod.ts index 0e0dd4bc3..14378b453 100644 --- a/codegen/_output/polkadot/pallet_staking/pallet/pallet/mod.ts +++ b/codegen/_output/rococo/types/pallet_staking/pallet/pallet/mod.ts @@ -1,42 +1,42 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" export * as ConfigOp from "./ConfigOp/mod.ts" -export const $call: $.Codec = _codec.$202 +export const $call: $.Codec = _codec.$202 -export const $error: $.Codec = _codec.$508 +export const $error: $.Codec = _codec.$508 -export const $event: $.Codec = _codec.$39 +export const $event: $.Codec = _codec.$39 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_staking.pallet.pallet.Call.bond - | t.pallet_staking.pallet.pallet.Call.bond_extra - | t.pallet_staking.pallet.pallet.Call.unbond - | t.pallet_staking.pallet.pallet.Call.withdraw_unbonded - | t.pallet_staking.pallet.pallet.Call.validate - | t.pallet_staking.pallet.pallet.Call.nominate - | t.pallet_staking.pallet.pallet.Call.chill - | t.pallet_staking.pallet.pallet.Call.set_payee - | t.pallet_staking.pallet.pallet.Call.set_controller - | t.pallet_staking.pallet.pallet.Call.set_validator_count - | t.pallet_staking.pallet.pallet.Call.increase_validator_count - | t.pallet_staking.pallet.pallet.Call.scale_validator_count - | t.pallet_staking.pallet.pallet.Call.force_no_eras - | t.pallet_staking.pallet.pallet.Call.force_new_era - | t.pallet_staking.pallet.pallet.Call.set_invulnerables - | t.pallet_staking.pallet.pallet.Call.force_unstake - | t.pallet_staking.pallet.pallet.Call.force_new_era_always - | t.pallet_staking.pallet.pallet.Call.cancel_deferred_slash - | t.pallet_staking.pallet.pallet.Call.payout_stakers - | t.pallet_staking.pallet.pallet.Call.rebond - | t.pallet_staking.pallet.pallet.Call.reap_stash - | t.pallet_staking.pallet.pallet.Call.kick - | t.pallet_staking.pallet.pallet.Call.set_staking_configs - | t.pallet_staking.pallet.pallet.Call.chill_other - | t.pallet_staking.pallet.pallet.Call.force_apply_min_commission + | t.types.pallet_staking.pallet.pallet.Call.bond + | t.types.pallet_staking.pallet.pallet.Call.bond_extra + | t.types.pallet_staking.pallet.pallet.Call.unbond + | t.types.pallet_staking.pallet.pallet.Call.withdraw_unbonded + | t.types.pallet_staking.pallet.pallet.Call.validate + | t.types.pallet_staking.pallet.pallet.Call.nominate + | t.types.pallet_staking.pallet.pallet.Call.chill + | t.types.pallet_staking.pallet.pallet.Call.set_payee + | t.types.pallet_staking.pallet.pallet.Call.set_controller + | t.types.pallet_staking.pallet.pallet.Call.set_validator_count + | t.types.pallet_staking.pallet.pallet.Call.increase_validator_count + | t.types.pallet_staking.pallet.pallet.Call.scale_validator_count + | t.types.pallet_staking.pallet.pallet.Call.force_no_eras + | t.types.pallet_staking.pallet.pallet.Call.force_new_era + | t.types.pallet_staking.pallet.pallet.Call.set_invulnerables + | t.types.pallet_staking.pallet.pallet.Call.force_unstake + | t.types.pallet_staking.pallet.pallet.Call.force_new_era_always + | t.types.pallet_staking.pallet.pallet.Call.cancel_deferred_slash + | t.types.pallet_staking.pallet.pallet.Call.payout_stakers + | t.types.pallet_staking.pallet.pallet.Call.rebond + | t.types.pallet_staking.pallet.pallet.Call.reap_stash + | t.types.pallet_staking.pallet.pallet.Call.kick + | t.types.pallet_staking.pallet.pallet.Call.set_staking_configs + | t.types.pallet_staking.pallet.pallet.Call.chill_other + | t.types.pallet_staking.pallet.pallet.Call.force_apply_min_commission export namespace Call { /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will @@ -59,9 +59,9 @@ export namespace Call { */ export interface bond { type: "bond" - controller: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact - payee: t.pallet_staking.RewardDestination + controller: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact + payee: t.types.pallet_staking.RewardDestination } /** * Add some extra amount that have appeared in the stash `free_balance` into the balance up @@ -82,7 +82,7 @@ export namespace Call { */ export interface bond_extra { type: "bond_extra" - max_additional: t.Compact + max_additional: t.Compact } /** * Schedule a portion of the stash to be unlocked ready for transfer out after the bond @@ -107,7 +107,7 @@ export namespace Call { */ export interface unbond { type: "unbond" - value: t.Compact + value: t.Compact } /** * Remove any unlocked chunks from the `unlocking` queue from our management. @@ -128,7 +128,7 @@ export namespace Call { */ export interface withdraw_unbonded { type: "withdraw_unbonded" - num_slashing_spans: t.u32 + num_slashing_spans: t.types.u32 } /** * Declare the desire to validate for the origin controller. @@ -139,7 +139,7 @@ export namespace Call { */ export interface validate { type: "validate" - prefs: t.pallet_staking.ValidatorPrefs + prefs: t.types.pallet_staking.ValidatorPrefs } /** * Declare the desire to nominate `targets` for the origin controller. @@ -156,7 +156,7 @@ export namespace Call { */ export interface nominate { type: "nominate" - targets: Array + targets: Array } /** * Declare no desire to either validate or nominate. @@ -194,7 +194,7 @@ export namespace Call { */ export interface set_payee { type: "set_payee" - payee: t.pallet_staking.RewardDestination + payee: t.types.pallet_staking.RewardDestination } /** * (Re-)set the controller of a stash. @@ -216,7 +216,7 @@ export namespace Call { */ export interface set_controller { type: "set_controller" - controller: t.sp_runtime.multiaddress.MultiAddress + controller: t.types.sp_runtime.multiaddress.MultiAddress } /** * Sets the ideal number of validators. @@ -230,7 +230,7 @@ export namespace Call { */ export interface set_validator_count { type: "set_validator_count" - new: t.Compact + new: t.Compact } /** * Increments the ideal number of validators. @@ -243,7 +243,7 @@ export namespace Call { */ export interface increase_validator_count { type: "increase_validator_count" - additional: t.Compact + additional: t.Compact } /** * Scale up the ideal number of validators by a factor. @@ -256,7 +256,7 @@ export namespace Call { */ export interface scale_validator_count { type: "scale_validator_count" - factor: t.sp_arithmetic.per_things.Percent + factor: t.types.sp_arithmetic.per_things.Percent } /** * Force there to be no new eras indefinitely. @@ -306,7 +306,7 @@ export namespace Call { */ export interface set_invulnerables { type: "set_invulnerables" - invulnerables: Array + invulnerables: Array } /** * Force a current staker to become completely unstaked, immediately. @@ -315,8 +315,8 @@ export namespace Call { */ export interface force_unstake { type: "force_unstake" - stash: t.sp_core.crypto.AccountId32 - num_slashing_spans: t.u32 + stash: t.types.sp_core.crypto.AccountId32 + num_slashing_spans: t.types.u32 } /** * Force there to be a new era at the end of sessions indefinitely. @@ -341,8 +341,8 @@ export namespace Call { */ export interface cancel_deferred_slash { type: "cancel_deferred_slash" - era: t.u32 - slash_indices: Array + era: t.types.u32 + slash_indices: Array } /** * Pay out all the stakers behind a single validator for a single era. @@ -369,8 +369,8 @@ export namespace Call { */ export interface payout_stakers { type: "payout_stakers" - validator_stash: t.sp_core.crypto.AccountId32 - era: t.u32 + validator_stash: t.types.sp_core.crypto.AccountId32 + era: t.types.u32 } /** * Rebond a portion of the stash scheduled to be unlocked. @@ -385,7 +385,7 @@ export namespace Call { */ export interface rebond { type: "rebond" - value: t.Compact + value: t.Compact } /** * Remove all data structures concerning a staker/stash once it is at a state where it can @@ -403,8 +403,8 @@ export namespace Call { */ export interface reap_stash { type: "reap_stash" - stash: t.sp_core.crypto.AccountId32 - num_slashing_spans: t.u32 + stash: t.types.sp_core.crypto.AccountId32 + num_slashing_spans: t.types.u32 } /** * Remove the given nominations from the calling validator. @@ -421,7 +421,7 @@ export namespace Call { */ export interface kick { type: "kick" - who: Array + who: Array } /** * Update the various staking configurations . @@ -444,12 +444,13 @@ export namespace Call { */ export interface set_staking_configs { type: "set_staking_configs" - min_nominator_bond: t.pallet_staking.pallet.pallet.ConfigOp.$$u128 - min_validator_bond: t.pallet_staking.pallet.pallet.ConfigOp.$$u128 - max_nominator_count: t.pallet_staking.pallet.pallet.ConfigOp.$$u32 - max_validator_count: t.pallet_staking.pallet.pallet.ConfigOp.$$u32 - chill_threshold: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent - min_commission: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill + min_nominator_bond: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128 + min_validator_bond: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128 + max_nominator_count: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32 + max_validator_count: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32 + chill_threshold: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent + min_commission: t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill } /** * Declare a `controller` to stop participating as either a validator or nominator. @@ -481,7 +482,7 @@ export namespace Call { */ export interface chill_other { type: "chill_other" - controller: t.sp_core.crypto.AccountId32 + controller: t.types.sp_core.crypto.AccountId32 } /** * Force a validator to have at least the minimum commission. This will not affect a @@ -490,7 +491,7 @@ export namespace Call { */ export interface force_apply_min_commission { type: "force_apply_min_commission" - validator_stash: t.sp_core.crypto.AccountId32 + validator_stash: t.types.sp_core.crypto.AccountId32 } /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will @@ -512,8 +513,8 @@ export namespace Call { * # */ export function bond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.bond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.bond { return { type: "bond", ...value } } /** @@ -534,8 +535,8 @@ export namespace Call { * # */ export function bond_extra( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.bond_extra { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.bond_extra { return { type: "bond_extra", ...value } } /** @@ -560,8 +561,8 @@ export namespace Call { * See also [`Call::withdraw_unbonded`]. */ export function unbond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.unbond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.unbond { return { type: "unbond", ...value } } /** @@ -582,8 +583,8 @@ export namespace Call { * # */ export function withdraw_unbonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.withdraw_unbonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.withdraw_unbonded { return { type: "withdraw_unbonded", ...value } } /** @@ -594,8 +595,8 @@ export namespace Call { * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ export function validate( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.validate { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.validate { return { type: "validate", ...value } } /** @@ -612,8 +613,8 @@ export namespace Call { * # */ export function nominate( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.nominate { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.nominate { return { type: "nominate", ...value } } /** @@ -629,7 +630,7 @@ export namespace Call { * - Writes are limited to the `origin` account key. * # */ - export function chill(): t.pallet_staking.pallet.pallet.Call.chill { + export function chill(): t.types.pallet_staking.pallet.pallet.Call.chill { return { type: "chill" } } /** @@ -651,8 +652,8 @@ export namespace Call { * # */ export function set_payee( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_payee { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_payee { return { type: "set_payee", ...value } } /** @@ -674,8 +675,8 @@ export namespace Call { * # */ export function set_controller( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_controller { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_controller { return { type: "set_controller", ...value } } /** @@ -689,8 +690,8 @@ export namespace Call { * # */ export function set_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_validator_count { return { type: "set_validator_count", ...value } } /** @@ -703,8 +704,8 @@ export namespace Call { * # */ export function increase_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.increase_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.increase_validator_count { return { type: "increase_validator_count", ...value } } /** @@ -717,8 +718,8 @@ export namespace Call { * # */ export function scale_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.scale_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.scale_validator_count { return { type: "scale_validator_count", ...value } } /** @@ -738,7 +739,7 @@ export namespace Call { * - Write: ForceEra * # */ - export function force_no_eras(): t.pallet_staking.pallet.pallet.Call.force_no_eras { + export function force_no_eras(): t.types.pallet_staking.pallet.pallet.Call.force_no_eras { return { type: "force_no_eras" } } /** @@ -759,7 +760,7 @@ export namespace Call { * - Write ForceEra * # */ - export function force_new_era(): t.pallet_staking.pallet.pallet.Call.force_new_era { + export function force_new_era(): t.types.pallet_staking.pallet.pallet.Call.force_new_era { return { type: "force_new_era" } } /** @@ -768,8 +769,8 @@ export namespace Call { * The dispatch origin must be Root. */ export function set_invulnerables( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_invulnerables { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_invulnerables { return { type: "set_invulnerables", ...value } } /** @@ -778,8 +779,8 @@ export namespace Call { * The dispatch origin must be Root. */ export function force_unstake( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.force_unstake { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.force_unstake { return { type: "force_unstake", ...value } } /** @@ -793,7 +794,7 @@ export namespace Call { * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ - export function force_new_era_always(): t.pallet_staking.pallet.pallet.Call.force_new_era_always { + export function force_new_era_always(): t.types.pallet_staking.pallet.pallet.Call.force_new_era_always { return { type: "force_new_era_always" } } /** @@ -804,8 +805,8 @@ export namespace Call { * Parameters: era and indices of the slashes for that era to kill. */ export function cancel_deferred_slash( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.cancel_deferred_slash { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.cancel_deferred_slash { return { type: "cancel_deferred_slash", ...value } } /** @@ -832,8 +833,8 @@ export namespace Call { * # */ export function payout_stakers( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.payout_stakers { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.payout_stakers { return { type: "payout_stakers", ...value } } /** @@ -848,8 +849,8 @@ export namespace Call { * # */ export function rebond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.rebond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.rebond { return { type: "rebond", ...value } } /** @@ -867,8 +868,8 @@ export namespace Call { * Refunds the transaction fees upon successful execution. */ export function reap_stash( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.reap_stash { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.reap_stash { return { type: "reap_stash", ...value } } /** @@ -885,8 +886,8 @@ export namespace Call { * block any further nominations. */ export function kick( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.kick { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.kick { return { type: "kick", ...value } } /** @@ -909,8 +910,8 @@ export namespace Call { * to kick people under the new limits, `chill_other` should be called. */ export function set_staking_configs( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_staking_configs { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_staking_configs { return { type: "set_staking_configs", ...value } } /** @@ -942,8 +943,8 @@ export namespace Call { * who do not satisfy these requirements. */ export function chill_other( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.chill_other { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.chill_other { return { type: "chill_other", ...value } } /** @@ -952,8 +953,8 @@ export namespace Call { * can call this. */ export function force_apply_min_commission( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.force_apply_min_commission { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.force_apply_min_commission { return { type: "force_apply_min_commission", ...value } } } @@ -988,19 +989,19 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_staking.pallet.pallet.Event.EraPaid - | t.pallet_staking.pallet.pallet.Event.Rewarded - | t.pallet_staking.pallet.pallet.Event.Slashed - | t.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded - | t.pallet_staking.pallet.pallet.Event.StakersElected - | t.pallet_staking.pallet.pallet.Event.Bonded - | t.pallet_staking.pallet.pallet.Event.Unbonded - | t.pallet_staking.pallet.pallet.Event.Withdrawn - | t.pallet_staking.pallet.pallet.Event.Kicked - | t.pallet_staking.pallet.pallet.Event.StakingElectionFailed - | t.pallet_staking.pallet.pallet.Event.Chilled - | t.pallet_staking.pallet.pallet.Event.PayoutStarted - | t.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet + | t.types.pallet_staking.pallet.pallet.Event.EraPaid + | t.types.pallet_staking.pallet.pallet.Event.Rewarded + | t.types.pallet_staking.pallet.pallet.Event.Slashed + | t.types.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded + | t.types.pallet_staking.pallet.pallet.Event.StakersElected + | t.types.pallet_staking.pallet.pallet.Event.Bonded + | t.types.pallet_staking.pallet.pallet.Event.Unbonded + | t.types.pallet_staking.pallet.pallet.Event.Withdrawn + | t.types.pallet_staking.pallet.pallet.Event.Kicked + | t.types.pallet_staking.pallet.pallet.Event.StakingElectionFailed + | t.types.pallet_staking.pallet.pallet.Event.Chilled + | t.types.pallet_staking.pallet.pallet.Event.PayoutStarted + | t.types.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet export namespace Event { /** * The era payout has been set; the first balance is the validator-payout; the second is @@ -1008,21 +1009,21 @@ export namespace Event { */ export interface EraPaid { type: "EraPaid" - era_index: t.u32 - validator_payout: t.u128 - remainder: t.u128 + era_index: t.types.u32 + validator_payout: t.types.u128 + remainder: t.types.u128 } /** The nominator has been rewarded by this amount. */ export interface Rewarded { type: "Rewarded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** One staker (and potentially its nominators) has been slashed by the given amount. */ export interface Slashed { type: "Slashed" - staker: t.sp_core.crypto.AccountId32 - amount: t.u128 + staker: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * An old slashing report from a prior era was discarded because it could @@ -1030,7 +1031,7 @@ export namespace Event { */ export interface OldSlashingReportDiscarded { type: "OldSlashingReportDiscarded" - session_index: t.u32 + session_index: t.types.u32 } /** A new set of stakers was elected. */ export interface StakersElected { @@ -1044,14 +1045,14 @@ export namespace Event { */ export interface Bonded { type: "Bonded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** An account has unbonded this amount. */ export interface Unbonded { type: "Unbonded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` @@ -1059,14 +1060,14 @@ export namespace Event { */ export interface Withdrawn { type: "Withdrawn" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A nominator has been kicked from a validator. */ export interface Kicked { type: "Kicked" - nominator: t.sp_core.crypto.AccountId32 - stash: t.sp_core.crypto.AccountId32 + nominator: t.types.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** The election failed. No new era is planned. */ export interface StakingElectionFailed { @@ -1075,39 +1076,39 @@ export namespace Event { /** An account has stopped participating as either a validator or nominator. */ export interface Chilled { type: "Chilled" - stash: t.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** The stakers' rewards are getting paid. */ export interface PayoutStarted { type: "PayoutStarted" - era_index: t.u32 - validator_stash: t.sp_core.crypto.AccountId32 + era_index: t.types.u32 + validator_stash: t.types.sp_core.crypto.AccountId32 } /** A validator has set their preferences. */ export interface ValidatorPrefsSet { type: "ValidatorPrefsSet" - stash: t.sp_core.crypto.AccountId32 - prefs: t.pallet_staking.ValidatorPrefs + stash: t.types.sp_core.crypto.AccountId32 + prefs: t.types.pallet_staking.ValidatorPrefs } /** * The era payout has been set; the first balance is the validator-payout; the second is * the remainder from the maximum amount of reward. */ export function EraPaid( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.EraPaid { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.EraPaid { return { type: "EraPaid", ...value } } /** The nominator has been rewarded by this amount. */ export function Rewarded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Rewarded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Rewarded { return { type: "Rewarded", ...value } } /** One staker (and potentially its nominators) has been slashed by the given amount. */ export function Slashed( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** @@ -1115,12 +1116,12 @@ export namespace Event { * not be processed. */ export function OldSlashingReportDiscarded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded { return { type: "OldSlashingReportDiscarded", ...value } } /** A new set of stakers was elected. */ - export function StakersElected(): t.pallet_staking.pallet.pallet.Event.StakersElected { + export function StakersElected(): t.types.pallet_staking.pallet.pallet.Event.StakersElected { return { type: "StakersElected" } } /** @@ -1130,14 +1131,14 @@ export namespace Event { * it will not be emitted for staking rewards when they are added to stake. */ export function Bonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Bonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Bonded { return { type: "Bonded", ...value } } /** An account has unbonded this amount. */ export function Unbonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Unbonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Unbonded { return { type: "Unbonded", ...value } } /** @@ -1145,36 +1146,36 @@ export namespace Event { * from the unlocking queue. */ export function Withdrawn( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Withdrawn { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Withdrawn { return { type: "Withdrawn", ...value } } /** A nominator has been kicked from a validator. */ export function Kicked( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Kicked { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Kicked { return { type: "Kicked", ...value } } /** The election failed. No new era is planned. */ - export function StakingElectionFailed(): t.pallet_staking.pallet.pallet.Event.StakingElectionFailed { + export function StakingElectionFailed(): t.types.pallet_staking.pallet.pallet.Event.StakingElectionFailed { return { type: "StakingElectionFailed" } } /** An account has stopped participating as either a validator or nominator. */ export function Chilled( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Chilled { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Chilled { return { type: "Chilled", ...value } } /** The stakers' rewards are getting paid. */ export function PayoutStarted( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.PayoutStarted { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.PayoutStarted { return { type: "PayoutStarted", ...value } } /** A validator has set their preferences. */ export function ValidatorPrefsSet( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet { return { type: "ValidatorPrefsSet", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_staking/slashing.ts b/codegen/_output/rococo/types/pallet_staking/slashing.ts new file mode 100644 index 000000000..a7b31d855 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_staking/slashing.ts @@ -0,0 +1,27 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $slashingSpans: $.Codec = _codec.$503 + +export const $spanRecord: $.Codec = _codec.$504 + +export interface SlashingSpans { + span_index: t.types.u32 + last_start: t.types.u32 + last_nonzero_slash: t.types.u32 + prior: Array +} + +export function SlashingSpans(value: t.types.pallet_staking.slashing.SlashingSpans) { + return value +} + +export interface SpanRecord { + slashed: t.types.u128 + paid_out: t.types.u128 +} + +export function SpanRecord(value: t.types.pallet_staking.slashing.SpanRecord) { + return value +} diff --git a/codegen/_output/rococo/pallet_timestamp/mod.ts b/codegen/_output/rococo/types/pallet_timestamp/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_timestamp/mod.ts rename to codegen/_output/rococo/types/pallet_timestamp/mod.ts diff --git a/codegen/_output/westend/pallet_timestamp/pallet.ts b/codegen/_output/rococo/types/pallet_timestamp/pallet.ts similarity index 79% rename from codegen/_output/westend/pallet_timestamp/pallet.ts rename to codegen/_output/rococo/types/pallet_timestamp/pallet.ts index 0130fc41e..ab76a88c7 100644 --- a/codegen/_output/westend/pallet_timestamp/pallet.ts +++ b/codegen/_output/rococo/types/pallet_timestamp/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$195 +export const $call: $.Codec = _codec.$195 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_timestamp.pallet.Call.set +export type Call = t.types.pallet_timestamp.pallet.Call.set export namespace Call { /** * Set the current time. @@ -27,7 +27,7 @@ export namespace Call { */ export interface set { type: "set" - now: t.Compact + now: t.Compact } /** * Set the current time. @@ -48,8 +48,8 @@ export namespace Call { * # */ export function set( - value: Omit, - ): t.pallet_timestamp.pallet.Call.set { + value: Omit, + ): t.types.pallet_timestamp.pallet.Call.set { return { type: "set", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_tips/mod.ts b/codegen/_output/rococo/types/pallet_tips/mod.ts new file mode 100644 index 000000000..dd1c4a6fd --- /dev/null +++ b/codegen/_output/rococo/types/pallet_tips/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $openTip: $.Codec = _codec.$598 + +export interface OpenTip { + reason: t.types.primitive_types.H256 + who: t.types.sp_core.crypto.AccountId32 + finder: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + closes: t.types.u32 | undefined + tips: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> + finders_fee: boolean +} + +export function OpenTip(value: t.types.pallet_tips.OpenTip) { + return value +} diff --git a/codegen/_output/westend/pallet_tips/pallet.ts b/codegen/_output/rococo/types/pallet_tips/pallet.ts similarity index 81% rename from codegen/_output/westend/pallet_tips/pallet.ts rename to codegen/_output/rococo/types/pallet_tips/pallet.ts index 355e46651..5d9de5b29 100644 --- a/codegen/_output/westend/pallet_tips/pallet.ts +++ b/codegen/_output/rococo/types/pallet_tips/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$309 +export const $call: $.Codec = _codec.$309 -export const $error: $.Codec = _codec.$599 +export const $error: $.Codec = _codec.$599 -export const $event: $.Codec = _codec.$85 +export const $event: $.Codec = _codec.$85 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_tips.pallet.Call.report_awesome - | t.pallet_tips.pallet.Call.retract_tip - | t.pallet_tips.pallet.Call.tip_new - | t.pallet_tips.pallet.Call.tip - | t.pallet_tips.pallet.Call.close_tip - | t.pallet_tips.pallet.Call.slash_tip + | t.types.pallet_tips.pallet.Call.report_awesome + | t.types.pallet_tips.pallet.Call.retract_tip + | t.types.pallet_tips.pallet.Call.tip_new + | t.types.pallet_tips.pallet.Call.tip + | t.types.pallet_tips.pallet.Call.close_tip + | t.types.pallet_tips.pallet.Call.slash_tip export namespace Call { /** * Report something `reason` that deserves a tip and claim any eventual the finder's fee. @@ -41,7 +41,7 @@ export namespace Call { export interface report_awesome { type: "report_awesome" reason: Uint8Array - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Retract a prior tip-report from `report_awesome`, and cancel the process of tipping. @@ -66,7 +66,7 @@ export namespace Call { */ export interface retract_tip { type: "retract_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Give a tip for something new; no finder's fee will be taken. @@ -95,8 +95,8 @@ export namespace Call { export interface tip_new { type: "tip_new" reason: Uint8Array - who: t.sp_runtime.multiaddress.MultiAddress - tip_value: t.Compact + who: t.types.sp_runtime.multiaddress.MultiAddress + tip_value: t.Compact } /** * Declare a tip value for an already-open tip. @@ -126,8 +126,8 @@ export namespace Call { */ export interface tip { type: "tip" - hash: t.primitive_types.H256 - tip_value: t.Compact + hash: t.types.primitive_types.H256 + tip_value: t.Compact } /** * Close and payout a tip. @@ -149,7 +149,7 @@ export namespace Call { */ export interface close_tip { type: "close_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Remove and slash an already-open tip. @@ -167,7 +167,7 @@ export namespace Call { */ export interface slash_tip { type: "slash_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Report something `reason` that deserves a tip and claim any eventual the finder's fee. @@ -191,8 +191,8 @@ export namespace Call { * # */ export function report_awesome( - value: Omit, - ): t.pallet_tips.pallet.Call.report_awesome { + value: Omit, + ): t.types.pallet_tips.pallet.Call.report_awesome { return { type: "report_awesome", ...value } } /** @@ -217,8 +217,8 @@ export namespace Call { * # */ export function retract_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.retract_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.retract_tip { return { type: "retract_tip", ...value } } /** @@ -246,8 +246,8 @@ export namespace Call { * # */ export function tip_new( - value: Omit, - ): t.pallet_tips.pallet.Call.tip_new { + value: Omit, + ): t.types.pallet_tips.pallet.Call.tip_new { return { type: "tip_new", ...value } } /** @@ -277,8 +277,8 @@ export namespace Call { * # */ export function tip( - value: Omit, - ): t.pallet_tips.pallet.Call.tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.tip { return { type: "tip", ...value } } /** @@ -300,8 +300,8 @@ export namespace Call { * # */ export function close_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.close_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.close_tip { return { type: "close_tip", ...value } } /** @@ -319,8 +319,8 @@ export namespace Call { * # */ export function slash_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.slash_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.slash_tip { return { type: "slash_tip", ...value } } } @@ -336,69 +336,69 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_tips.pallet.Event.NewTip - | t.pallet_tips.pallet.Event.TipClosing - | t.pallet_tips.pallet.Event.TipClosed - | t.pallet_tips.pallet.Event.TipRetracted - | t.pallet_tips.pallet.Event.TipSlashed + | t.types.pallet_tips.pallet.Event.NewTip + | t.types.pallet_tips.pallet.Event.TipClosing + | t.types.pallet_tips.pallet.Event.TipClosed + | t.types.pallet_tips.pallet.Event.TipRetracted + | t.types.pallet_tips.pallet.Event.TipSlashed export namespace Event { /** A new tip suggestion has been opened. */ export interface NewTip { type: "NewTip" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has reached threshold and is closing. */ export interface TipClosing { type: "TipClosing" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has been closed. */ export interface TipClosed { type: "TipClosed" - tip_hash: t.primitive_types.H256 - who: t.sp_core.crypto.AccountId32 - payout: t.u128 + tip_hash: t.types.primitive_types.H256 + who: t.types.sp_core.crypto.AccountId32 + payout: t.types.u128 } /** A tip suggestion has been retracted. */ export interface TipRetracted { type: "TipRetracted" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has been slashed. */ export interface TipSlashed { type: "TipSlashed" - tip_hash: t.primitive_types.H256 - finder: t.sp_core.crypto.AccountId32 - deposit: t.u128 + tip_hash: t.types.primitive_types.H256 + finder: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A new tip suggestion has been opened. */ export function NewTip( - value: Omit, - ): t.pallet_tips.pallet.Event.NewTip { + value: Omit, + ): t.types.pallet_tips.pallet.Event.NewTip { return { type: "NewTip", ...value } } /** A tip suggestion has reached threshold and is closing. */ export function TipClosing( - value: Omit, - ): t.pallet_tips.pallet.Event.TipClosing { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipClosing { return { type: "TipClosing", ...value } } /** A tip suggestion has been closed. */ export function TipClosed( - value: Omit, - ): t.pallet_tips.pallet.Event.TipClosed { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipClosed { return { type: "TipClosed", ...value } } /** A tip suggestion has been retracted. */ export function TipRetracted( - value: Omit, - ): t.pallet_tips.pallet.Event.TipRetracted { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipRetracted { return { type: "TipRetracted", ...value } } /** A tip suggestion has been slashed. */ export function TipSlashed( - value: Omit, - ): t.pallet_tips.pallet.Event.TipSlashed { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipSlashed { return { type: "TipSlashed", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_transaction_payment/mod.ts b/codegen/_output/rococo/types/pallet_transaction_payment/mod.ts new file mode 100644 index 000000000..53822ce2a --- /dev/null +++ b/codegen/_output/rococo/types/pallet_transaction_payment/mod.ts @@ -0,0 +1,9 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $releases: $.Codec = _codec.$480 + +export type Releases = "V1Ancient" | "V2" diff --git a/codegen/_output/westend/pallet_transaction_payment/pallet.ts b/codegen/_output/rococo/types/pallet_transaction_payment/pallet.ts similarity index 50% rename from codegen/_output/westend/pallet_transaction_payment/pallet.ts rename to codegen/_output/rococo/types/pallet_transaction_payment/pallet.ts index 12c5c03e1..f912e47f5 100644 --- a/codegen/_output/westend/pallet_transaction_payment/pallet.ts +++ b/codegen/_output/rococo/types/pallet_transaction_payment/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $event: $.Codec = _codec.$38 +export const $event: $.Codec = _codec.$38 /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.pallet_transaction_payment.pallet.Event.TransactionFeePaid +export type Event = t.types.pallet_transaction_payment.pallet.Event.TransactionFeePaid export namespace Event { /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, @@ -13,17 +13,17 @@ export namespace Event { */ export interface TransactionFeePaid { type: "TransactionFeePaid" - who: t.sp_core.crypto.AccountId32 - actual_fee: t.u128 - tip: t.u128 + who: t.types.sp_core.crypto.AccountId32 + actual_fee: t.types.u128 + tip: t.types.u128 } /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, * has been paid by `who`. */ export function TransactionFeePaid( - value: Omit, - ): t.pallet_transaction_payment.pallet.Event.TransactionFeePaid { + value: Omit, + ): t.types.pallet_transaction_payment.pallet.Event.TransactionFeePaid { return { type: "TransactionFeePaid", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_treasury/mod.ts b/codegen/_output/rococo/types/pallet_treasury/mod.ts new file mode 100644 index 000000000..bada52441 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_treasury/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $proposal: $.Codec = _codec.$556 + +export interface Proposal { + proposer: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 + bond: t.types.u128 +} + +export function Proposal(value: t.types.pallet_treasury.Proposal) { + return value +} diff --git a/codegen/_output/westend/pallet_treasury/pallet.ts b/codegen/_output/rococo/types/pallet_treasury/pallet.ts similarity index 68% rename from codegen/_output/westend/pallet_treasury/pallet.ts rename to codegen/_output/rococo/types/pallet_treasury/pallet.ts index f5458cc71..e1999734e 100644 --- a/codegen/_output/westend/pallet_treasury/pallet.ts +++ b/codegen/_output/rococo/types/pallet_treasury/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$244 +export const $call: $.Codec = _codec.$244 -export const $error: $.Codec = _codec.$561 +export const $error: $.Codec = _codec.$561 -export const $event: $.Codec = _codec.$71 +export const $event: $.Codec = _codec.$71 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_treasury.pallet.Call.propose_spend - | t.pallet_treasury.pallet.Call.reject_proposal - | t.pallet_treasury.pallet.Call.approve_proposal - | t.pallet_treasury.pallet.Call.spend - | t.pallet_treasury.pallet.Call.remove_approval + | t.types.pallet_treasury.pallet.Call.propose_spend + | t.types.pallet_treasury.pallet.Call.reject_proposal + | t.types.pallet_treasury.pallet.Call.approve_proposal + | t.types.pallet_treasury.pallet.Call.spend + | t.types.pallet_treasury.pallet.Call.remove_approval export namespace Call { /** * Put forward a suggestion for spending. A deposit proportional to the value @@ -29,8 +29,8 @@ export namespace Call { */ export interface propose_spend { type: "propose_spend" - value: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + value: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Reject a proposed spend. The original deposit will be slashed. @@ -45,7 +45,7 @@ export namespace Call { */ export interface reject_proposal { type: "reject_proposal" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary @@ -61,7 +61,7 @@ export namespace Call { */ export interface approve_proposal { type: "approve_proposal" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Propose and approve a spend of treasury funds. @@ -75,8 +75,8 @@ export namespace Call { */ export interface spend { type: "spend" - amount: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + amount: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Force a previously approved proposal to be removed from the approval queue. @@ -97,7 +97,7 @@ export namespace Call { */ export interface remove_approval { type: "remove_approval" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Put forward a suggestion for spending. A deposit proportional to the value @@ -111,8 +111,8 @@ export namespace Call { * # */ export function propose_spend( - value: Omit, - ): t.pallet_treasury.pallet.Call.propose_spend { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.propose_spend { return { type: "propose_spend", ...value } } /** @@ -127,8 +127,8 @@ export namespace Call { * # */ export function reject_proposal( - value: Omit, - ): t.pallet_treasury.pallet.Call.reject_proposal { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.reject_proposal { return { type: "reject_proposal", ...value } } /** @@ -144,8 +144,8 @@ export namespace Call { * # */ export function approve_proposal( - value: Omit, - ): t.pallet_treasury.pallet.Call.approve_proposal { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.approve_proposal { return { type: "approve_proposal", ...value } } /** @@ -159,8 +159,8 @@ export namespace Call { * beneficiary. */ export function spend( - value: Omit, - ): t.pallet_treasury.pallet.Call.spend { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.spend { return { type: "spend", ...value } } /** @@ -181,8 +181,8 @@ export namespace Call { * exist altogether, thus there is no way it would have been approved in the first place. */ export function remove_approval( - value: Omit, - ): t.pallet_treasury.pallet.Call.remove_approval { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.remove_approval { return { type: "remove_approval", ...value } } } @@ -197,106 +197,106 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_treasury.pallet.Event.Proposed - | t.pallet_treasury.pallet.Event.Spending - | t.pallet_treasury.pallet.Event.Awarded - | t.pallet_treasury.pallet.Event.Rejected - | t.pallet_treasury.pallet.Event.Burnt - | t.pallet_treasury.pallet.Event.Rollover - | t.pallet_treasury.pallet.Event.Deposit - | t.pallet_treasury.pallet.Event.SpendApproved + | t.types.pallet_treasury.pallet.Event.Proposed + | t.types.pallet_treasury.pallet.Event.Spending + | t.types.pallet_treasury.pallet.Event.Awarded + | t.types.pallet_treasury.pallet.Event.Rejected + | t.types.pallet_treasury.pallet.Event.Burnt + | t.types.pallet_treasury.pallet.Event.Rollover + | t.types.pallet_treasury.pallet.Event.Deposit + | t.types.pallet_treasury.pallet.Event.SpendApproved export namespace Event { /** New proposal. */ export interface Proposed { type: "Proposed" - proposal_index: t.u32 + proposal_index: t.types.u32 } /** We have ended a spend period and will now allocate funds. */ export interface Spending { type: "Spending" - budget_remaining: t.u128 + budget_remaining: t.types.u128 } /** Some funds have been allocated. */ export interface Awarded { type: "Awarded" - proposal_index: t.u32 - award: t.u128 - account: t.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + award: t.types.u128 + account: t.types.sp_core.crypto.AccountId32 } /** A proposal was rejected; funds were slashed. */ export interface Rejected { type: "Rejected" - proposal_index: t.u32 - slashed: t.u128 + proposal_index: t.types.u32 + slashed: t.types.u128 } /** Some of our funds have been burnt. */ export interface Burnt { type: "Burnt" - burnt_funds: t.u128 + burnt_funds: t.types.u128 } /** Spending has finished; this is the amount that rolls over until next spend. */ export interface Rollover { type: "Rollover" - rollover_balance: t.u128 + rollover_balance: t.types.u128 } /** Some funds have been deposited. */ export interface Deposit { type: "Deposit" - value: t.u128 + value: t.types.u128 } /** A new spend proposal has been approved. */ export interface SpendApproved { type: "SpendApproved" - proposal_index: t.u32 - amount: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + amount: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** New proposal. */ export function Proposed( - value: Omit, - ): t.pallet_treasury.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** We have ended a spend period and will now allocate funds. */ export function Spending( - value: Omit, - ): t.pallet_treasury.pallet.Event.Spending { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Spending { return { type: "Spending", ...value } } /** Some funds have been allocated. */ export function Awarded( - value: Omit, - ): t.pallet_treasury.pallet.Event.Awarded { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Awarded { return { type: "Awarded", ...value } } /** A proposal was rejected; funds were slashed. */ export function Rejected( - value: Omit, - ): t.pallet_treasury.pallet.Event.Rejected { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Rejected { return { type: "Rejected", ...value } } /** Some of our funds have been burnt. */ export function Burnt( - value: Omit, - ): t.pallet_treasury.pallet.Event.Burnt { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Burnt { return { type: "Burnt", ...value } } /** Spending has finished; this is the amount that rolls over until next spend. */ export function Rollover( - value: Omit, - ): t.pallet_treasury.pallet.Event.Rollover { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Rollover { return { type: "Rollover", ...value } } /** Some funds have been deposited. */ export function Deposit( - value: Omit, - ): t.pallet_treasury.pallet.Event.Deposit { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Deposit { return { type: "Deposit", ...value } } /** A new spend proposal has been approved. */ export function SpendApproved( - value: Omit, - ): t.pallet_treasury.pallet.Event.SpendApproved { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.SpendApproved { return { type: "SpendApproved", ...value } } } diff --git a/codegen/_output/rococo/pallet_utility/mod.ts b/codegen/_output/rococo/types/pallet_utility/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_utility/mod.ts rename to codegen/_output/rococo/types/pallet_utility/mod.ts diff --git a/codegen/_output/rococo/pallet_utility/pallet.ts b/codegen/_output/rococo/types/pallet_utility/pallet.ts similarity index 76% rename from codegen/_output/rococo/pallet_utility/pallet.ts rename to codegen/_output/rococo/types/pallet_utility/pallet.ts index 50befdeac..2d5f19068 100644 --- a/codegen/_output/rococo/pallet_utility/pallet.ts +++ b/codegen/_output/rococo/types/pallet_utility/pallet.ts @@ -1,20 +1,20 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$254 +export const $call: $.Codec = _codec.$254 -export const $error: $.Codec = _codec.$567 +export const $error: $.Codec = _codec.$567 -export const $event: $.Codec = _codec.$76 +export const $event: $.Codec = _codec.$76 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_utility.pallet.Call.batch - | t.pallet_utility.pallet.Call.as_derivative - | t.pallet_utility.pallet.Call.batch_all - | t.pallet_utility.pallet.Call.dispatch_as - | t.pallet_utility.pallet.Call.force_batch + | t.types.pallet_utility.pallet.Call.batch + | t.types.pallet_utility.pallet.Call.as_derivative + | t.types.pallet_utility.pallet.Call.batch_all + | t.types.pallet_utility.pallet.Call.dispatch_as + | t.types.pallet_utility.pallet.Call.force_batch export namespace Call { /** * Send a batch of dispatch calls. @@ -39,7 +39,7 @@ export namespace Call { */ export interface batch { type: "batch" - calls: Array + calls: Array } /** * Send a call through an indexed pseudonym of the sender. @@ -58,8 +58,8 @@ export namespace Call { */ export interface as_derivative { type: "as_derivative" - index: t.u16 - call: t.polkadot_runtime.RuntimeCall + index: t.types.u16 + call: t.types.polkadot_runtime.RuntimeCall } /** * Send a batch of dispatch calls and atomically execute them. @@ -79,7 +79,7 @@ export namespace Call { */ export interface batch_all { type: "batch_all" - calls: Array + calls: Array } /** * Dispatches a function call with a provided origin. @@ -95,8 +95,8 @@ export namespace Call { */ export interface dispatch_as { type: "dispatch_as" - as_origin: t.polkadot_runtime.OriginCaller - call: t.polkadot_runtime.RuntimeCall + as_origin: t.types.polkadot_runtime.OriginCaller + call: t.types.polkadot_runtime.RuntimeCall } /** * Send a batch of dispatch calls. @@ -116,7 +116,7 @@ export namespace Call { */ export interface force_batch { type: "force_batch" - calls: Array + calls: Array } /** * Send a batch of dispatch calls. @@ -140,8 +140,8 @@ export namespace Call { * event is deposited. */ export function batch( - value: Omit, - ): t.pallet_utility.pallet.Call.batch { + value: Omit, + ): t.types.pallet_utility.pallet.Call.batch { return { type: "batch", ...value } } /** @@ -160,8 +160,8 @@ export namespace Call { * The dispatch origin for this call must be _Signed_. */ export function as_derivative( - value: Omit, - ): t.pallet_utility.pallet.Call.as_derivative { + value: Omit, + ): t.types.pallet_utility.pallet.Call.as_derivative { return { type: "as_derivative", ...value } } /** @@ -181,8 +181,8 @@ export namespace Call { * # */ export function batch_all( - value: Omit, - ): t.pallet_utility.pallet.Call.batch_all { + value: Omit, + ): t.types.pallet_utility.pallet.Call.batch_all { return { type: "batch_all", ...value } } /** @@ -198,8 +198,8 @@ export namespace Call { * # */ export function dispatch_as( - value: Omit, - ): t.pallet_utility.pallet.Call.dispatch_as { + value: Omit, + ): t.types.pallet_utility.pallet.Call.dispatch_as { return { type: "dispatch_as", ...value } } /** @@ -219,8 +219,8 @@ export namespace Call { * # */ export function force_batch( - value: Omit, - ): t.pallet_utility.pallet.Call.force_batch { + value: Omit, + ): t.types.pallet_utility.pallet.Call.force_batch { return { type: "force_batch", ...value } } } @@ -230,12 +230,12 @@ export type Error = "TooManyCalls" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_utility.pallet.Event.BatchInterrupted - | t.pallet_utility.pallet.Event.BatchCompleted - | t.pallet_utility.pallet.Event.BatchCompletedWithErrors - | t.pallet_utility.pallet.Event.ItemCompleted - | t.pallet_utility.pallet.Event.ItemFailed - | t.pallet_utility.pallet.Event.DispatchedAs + | t.types.pallet_utility.pallet.Event.BatchInterrupted + | t.types.pallet_utility.pallet.Event.BatchCompleted + | t.types.pallet_utility.pallet.Event.BatchCompletedWithErrors + | t.types.pallet_utility.pallet.Event.ItemCompleted + | t.types.pallet_utility.pallet.Event.ItemFailed + | t.types.pallet_utility.pallet.Event.DispatchedAs export namespace Event { /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as @@ -243,8 +243,8 @@ export namespace Event { */ export interface BatchInterrupted { type: "BatchInterrupted" - index: t.u32 - error: t.sp_runtime.DispatchError + index: t.types.u32 + error: t.types.sp_runtime.DispatchError } /** Batch of dispatches completed fully with no error. */ export interface BatchCompleted { @@ -261,44 +261,44 @@ export namespace Event { /** A single item within a Batch of dispatches has completed with error. */ export interface ItemFailed { type: "ItemFailed" - error: t.sp_runtime.DispatchError + error: t.types.sp_runtime.DispatchError } /** A call was dispatched. */ export interface DispatchedAs { type: "DispatchedAs" - result: null | C.ChainError + result: null | C.ChainError } /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. */ export function BatchInterrupted( - value: Omit, - ): t.pallet_utility.pallet.Event.BatchInterrupted { + value: Omit, + ): t.types.pallet_utility.pallet.Event.BatchInterrupted { return { type: "BatchInterrupted", ...value } } /** Batch of dispatches completed fully with no error. */ - export function BatchCompleted(): t.pallet_utility.pallet.Event.BatchCompleted { + export function BatchCompleted(): t.types.pallet_utility.pallet.Event.BatchCompleted { return { type: "BatchCompleted" } } /** Batch of dispatches completed but has errors. */ - export function BatchCompletedWithErrors(): t.pallet_utility.pallet.Event.BatchCompletedWithErrors { + export function BatchCompletedWithErrors(): t.types.pallet_utility.pallet.Event.BatchCompletedWithErrors { return { type: "BatchCompletedWithErrors" } } /** A single item within a Batch of dispatches has completed with no error. */ - export function ItemCompleted(): t.pallet_utility.pallet.Event.ItemCompleted { + export function ItemCompleted(): t.types.pallet_utility.pallet.Event.ItemCompleted { return { type: "ItemCompleted" } } /** A single item within a Batch of dispatches has completed with error. */ export function ItemFailed( - value: Omit, - ): t.pallet_utility.pallet.Event.ItemFailed { + value: Omit, + ): t.types.pallet_utility.pallet.Event.ItemFailed { return { type: "ItemFailed", ...value } } /** A call was dispatched. */ export function DispatchedAs( - value: Omit, - ): t.pallet_utility.pallet.Event.DispatchedAs { + value: Omit, + ): t.types.pallet_utility.pallet.Event.DispatchedAs { return { type: "DispatchedAs", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_vesting/mod.ts b/codegen/_output/rococo/types/pallet_vesting/mod.ts new file mode 100644 index 000000000..96ae61e7f --- /dev/null +++ b/codegen/_output/rococo/types/pallet_vesting/mod.ts @@ -0,0 +1,10 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as vesting_info from "./vesting_info.ts" + +export const $releases: $.Codec = _codec.$565 + +export type Releases = "V0" | "V1" diff --git a/codegen/_output/kusama/pallet_vesting/pallet.ts b/codegen/_output/rococo/types/pallet_vesting/pallet.ts similarity index 80% rename from codegen/_output/kusama/pallet_vesting/pallet.ts rename to codegen/_output/rococo/types/pallet_vesting/pallet.ts index 46b136022..fb66f1292 100644 --- a/codegen/_output/kusama/pallet_vesting/pallet.ts +++ b/codegen/_output/rococo/types/pallet_vesting/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$252 +export const $call: $.Codec = _codec.$252 -export const $error: $.Codec = _codec.$566 +export const $error: $.Codec = _codec.$566 -export const $event: $.Codec = _codec.$75 +export const $event: $.Codec = _codec.$75 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_vesting.pallet.Call.vest - | t.pallet_vesting.pallet.Call.vest_other - | t.pallet_vesting.pallet.Call.vested_transfer - | t.pallet_vesting.pallet.Call.force_vested_transfer - | t.pallet_vesting.pallet.Call.merge_schedules + | t.types.pallet_vesting.pallet.Call.vest + | t.types.pallet_vesting.pallet.Call.vest_other + | t.types.pallet_vesting.pallet.Call.vested_transfer + | t.types.pallet_vesting.pallet.Call.force_vested_transfer + | t.types.pallet_vesting.pallet.Call.merge_schedules export namespace Call { /** * Unlock any vested funds of the sender account. @@ -53,7 +53,7 @@ export namespace Call { */ export interface vest_other { type: "vest_other" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Create a vested transfer. @@ -76,8 +76,8 @@ export namespace Call { */ export interface vested_transfer { type: "vested_transfer" - target: t.sp_runtime.multiaddress.MultiAddress - schedule: t.pallet_vesting.vesting_info.VestingInfo + target: t.types.sp_runtime.multiaddress.MultiAddress + schedule: t.types.pallet_vesting.vesting_info.VestingInfo } /** * Force a vested transfer. @@ -101,9 +101,9 @@ export namespace Call { */ export interface force_vested_transfer { type: "force_vested_transfer" - source: t.sp_runtime.multiaddress.MultiAddress - target: t.sp_runtime.multiaddress.MultiAddress - schedule: t.pallet_vesting.vesting_info.VestingInfo + source: t.types.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress + schedule: t.types.pallet_vesting.vesting_info.VestingInfo } /** * Merge two vesting schedules together, creating a new vesting schedule that unlocks over @@ -130,8 +130,8 @@ export namespace Call { */ export interface merge_schedules { type: "merge_schedules" - schedule1_index: t.u32 - schedule2_index: t.u32 + schedule1_index: t.types.u32 + schedule2_index: t.types.u32 } /** * Unlock any vested funds of the sender account. @@ -148,7 +148,7 @@ export namespace Call { * - Writes: Vesting Storage, Balances Locks, [Sender Account] * # */ - export function vest(): t.pallet_vesting.pallet.Call.vest { + export function vest(): t.types.pallet_vesting.pallet.Call.vest { return { type: "vest" } } /** @@ -169,8 +169,8 @@ export namespace Call { * # */ export function vest_other( - value: Omit, - ): t.pallet_vesting.pallet.Call.vest_other { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.vest_other { return { type: "vest_other", ...value } } /** @@ -193,8 +193,8 @@ export namespace Call { * # */ export function vested_transfer( - value: Omit, - ): t.pallet_vesting.pallet.Call.vested_transfer { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.vested_transfer { return { type: "vested_transfer", ...value } } /** @@ -218,8 +218,8 @@ export namespace Call { * # */ export function force_vested_transfer( - value: Omit, - ): t.pallet_vesting.pallet.Call.force_vested_transfer { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.force_vested_transfer { return { type: "force_vested_transfer", ...value } } /** @@ -246,8 +246,8 @@ export namespace Call { * - `schedule2_index`: index of the second schedule to merge. */ export function merge_schedules( - value: Omit, - ): t.pallet_vesting.pallet.Call.merge_schedules { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.merge_schedules { return { type: "merge_schedules", ...value } } } @@ -262,8 +262,8 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_vesting.pallet.Event.VestingUpdated - | t.pallet_vesting.pallet.Event.VestingCompleted + | t.types.pallet_vesting.pallet.Event.VestingUpdated + | t.types.pallet_vesting.pallet.Event.VestingCompleted export namespace Event { /** * The amount vested has been updated. This could indicate a change in funds available. @@ -271,27 +271,27 @@ export namespace Event { */ export interface VestingUpdated { type: "VestingUpdated" - account: t.sp_core.crypto.AccountId32 - unvested: t.u128 + account: t.types.sp_core.crypto.AccountId32 + unvested: t.types.u128 } /** An \[account\] has become fully vested. */ export interface VestingCompleted { type: "VestingCompleted" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** * The amount vested has been updated. This could indicate a change in funds available. * The balance given is the amount which is left unvested (and thus locked). */ export function VestingUpdated( - value: Omit, - ): t.pallet_vesting.pallet.Event.VestingUpdated { + value: Omit, + ): t.types.pallet_vesting.pallet.Event.VestingUpdated { return { type: "VestingUpdated", ...value } } /** An \[account\] has become fully vested. */ export function VestingCompleted( - value: Omit, - ): t.pallet_vesting.pallet.Event.VestingCompleted { + value: Omit, + ): t.types.pallet_vesting.pallet.Event.VestingCompleted { return { type: "VestingCompleted", ...value } } } diff --git a/codegen/_output/rococo/types/pallet_vesting/vesting_info.ts b/codegen/_output/rococo/types/pallet_vesting/vesting_info.ts new file mode 100644 index 000000000..ab4a9cfe5 --- /dev/null +++ b/codegen/_output/rococo/types/pallet_vesting/vesting_info.ts @@ -0,0 +1,15 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $vestingInfo: $.Codec = _codec.$253 + +export interface VestingInfo { + locked: t.types.u128 + per_block: t.types.u128 + starting_block: t.types.u32 +} + +export function VestingInfo(value: t.types.pallet_vesting.vesting_info.VestingInfo) { + return value +} diff --git a/codegen/_output/rococo/pallet_xcm/mod.ts b/codegen/_output/rococo/types/pallet_xcm/mod.ts similarity index 100% rename from codegen/_output/rococo/pallet_xcm/mod.ts rename to codegen/_output/rococo/types/pallet_xcm/mod.ts diff --git a/codegen/_output/kusama/pallet_xcm/pallet.ts b/codegen/_output/rococo/types/pallet_xcm/pallet.ts similarity index 71% rename from codegen/_output/kusama/pallet_xcm/pallet.ts rename to codegen/_output/rococo/types/pallet_xcm/pallet.ts index 170fd1d2f..98a7c2a00 100644 --- a/codegen/_output/kusama/pallet_xcm/pallet.ts +++ b/codegen/_output/rococo/types/pallet_xcm/pallet.ts @@ -1,37 +1,37 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$423 +export const $call: $.Codec = _codec.$423 -export const $error: $.Codec = _codec.$724 +export const $error: $.Codec = _codec.$724 -export const $event: $.Codec = _codec.$121 +export const $event: $.Codec = _codec.$121 -export const $origin: $.Codec = _codec.$261 +export const $origin: $.Codec = _codec.$261 -export const $queryStatus: $.Codec = _codec.$713 +export const $queryStatus: $.Codec = _codec.$713 -export const $versionMigrationStage: $.Codec = +export const $versionMigrationStage: $.Codec = _codec.$722 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_xcm.pallet.Call.send - | t.pallet_xcm.pallet.Call.teleport_assets - | t.pallet_xcm.pallet.Call.reserve_transfer_assets - | t.pallet_xcm.pallet.Call.execute - | t.pallet_xcm.pallet.Call.force_xcm_version - | t.pallet_xcm.pallet.Call.force_default_xcm_version - | t.pallet_xcm.pallet.Call.force_subscribe_version_notify - | t.pallet_xcm.pallet.Call.force_unsubscribe_version_notify - | t.pallet_xcm.pallet.Call.limited_reserve_transfer_assets - | t.pallet_xcm.pallet.Call.limited_teleport_assets + | t.types.pallet_xcm.pallet.Call.send + | t.types.pallet_xcm.pallet.Call.teleport_assets + | t.types.pallet_xcm.pallet.Call.reserve_transfer_assets + | t.types.pallet_xcm.pallet.Call.execute + | t.types.pallet_xcm.pallet.Call.force_xcm_version + | t.types.pallet_xcm.pallet.Call.force_default_xcm_version + | t.types.pallet_xcm.pallet.Call.force_subscribe_version_notify + | t.types.pallet_xcm.pallet.Call.force_unsubscribe_version_notify + | t.types.pallet_xcm.pallet.Call.limited_reserve_transfer_assets + | t.types.pallet_xcm.pallet.Call.limited_teleport_assets export namespace Call { export interface send { type: "send" - dest: t.xcm.VersionedMultiLocation - message: t.xcm.VersionedXcm + dest: t.types.xcm.VersionedMultiLocation + message: t.types.xcm.VersionedXcm } /** * Teleport some assets from the local chain to some destination chain. @@ -52,10 +52,10 @@ export namespace Call { */ export interface teleport_assets { type: "teleport_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 } /** * Transfer some assets from the local chain to the sovereign account of a destination @@ -77,10 +77,10 @@ export namespace Call { */ export interface reserve_transfer_assets { type: "reserve_transfer_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 } /** * Execute an XCM message from a local, signed, origin. @@ -97,8 +97,8 @@ export namespace Call { */ export interface execute { type: "execute" - message: t.xcm.VersionedXcm - max_weight: t.u64 + message: t.types.xcm.VersionedXcm + max_weight: t.types.u64 } /** * Extoll that a particular destination can be communicated with through a particular @@ -110,8 +110,8 @@ export namespace Call { */ export interface force_xcm_version { type: "force_xcm_version" - location: t.xcm.v1.multilocation.MultiLocation - xcm_version: t.u32 + location: t.types.xcm.v1.multilocation.MultiLocation + xcm_version: t.types.u32 } /** * Set a safe XCM version (the version that XCM should be encoded with if the most recent @@ -122,7 +122,7 @@ export namespace Call { */ export interface force_default_xcm_version { type: "force_default_xcm_version" - maybe_xcm_version: t.u32 | undefined + maybe_xcm_version: t.types.u32 | undefined } /** * Ask a location to notify us regarding their XCM version and any changes to it. @@ -132,7 +132,7 @@ export namespace Call { */ export interface force_subscribe_version_notify { type: "force_subscribe_version_notify" - location: t.xcm.VersionedMultiLocation + location: t.types.xcm.VersionedMultiLocation } /** * Require that a particular destination should no longer notify us regarding any XCM @@ -144,7 +144,7 @@ export namespace Call { */ export interface force_unsubscribe_version_notify { type: "force_unsubscribe_version_notify" - location: t.xcm.VersionedMultiLocation + location: t.types.xcm.VersionedMultiLocation } /** * Transfer some assets from the local chain to the sovereign account of a destination @@ -168,11 +168,11 @@ export namespace Call { */ export interface limited_reserve_transfer_assets { type: "limited_reserve_transfer_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 - weight_limit: t.xcm.v2.WeightLimit + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 + weight_limit: t.types.xcm.v2.WeightLimit } /** * Teleport some assets from the local chain to some destination chain. @@ -195,15 +195,15 @@ export namespace Call { */ export interface limited_teleport_assets { type: "limited_teleport_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 - weight_limit: t.xcm.v2.WeightLimit + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 + weight_limit: t.types.xcm.v2.WeightLimit } export function send( - value: Omit, - ): t.pallet_xcm.pallet.Call.send { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.send { return { type: "send", ...value } } /** @@ -224,8 +224,8 @@ export namespace Call { * fees. */ export function teleport_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.teleport_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.teleport_assets { return { type: "teleport_assets", ...value } } /** @@ -247,8 +247,8 @@ export namespace Call { * fees. */ export function reserve_transfer_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.reserve_transfer_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.reserve_transfer_assets { return { type: "reserve_transfer_assets", ...value } } /** @@ -265,8 +265,8 @@ export namespace Call { * to completion; only that *some* of it was executed. */ export function execute( - value: Omit, - ): t.pallet_xcm.pallet.Call.execute { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.execute { return { type: "execute", ...value } } /** @@ -278,8 +278,8 @@ export namespace Call { * - `xcm_version`: The latest version of XCM that `location` supports. */ export function force_xcm_version( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_xcm_version { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_xcm_version { return { type: "force_xcm_version", ...value } } /** @@ -290,8 +290,8 @@ export namespace Call { * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. */ export function force_default_xcm_version( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_default_xcm_version { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_default_xcm_version { return { type: "force_default_xcm_version", ...value } } /** @@ -301,8 +301,8 @@ export namespace Call { * - `location`: The location to which we should subscribe for XCM version notifications. */ export function force_subscribe_version_notify( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_subscribe_version_notify { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_subscribe_version_notify { return { type: "force_subscribe_version_notify", ...value } } /** @@ -314,8 +314,8 @@ export namespace Call { * notifications which we no longer desire. */ export function force_unsubscribe_version_notify( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_unsubscribe_version_notify { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_unsubscribe_version_notify { return { type: "force_unsubscribe_version_notify", ...value } } /** @@ -339,8 +339,8 @@ export namespace Call { * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_reserve_transfer_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.limited_reserve_transfer_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.limited_reserve_transfer_assets { return { type: "limited_reserve_transfer_assets", ...value } } /** @@ -363,8 +363,8 @@ export namespace Call { * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_teleport_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.limited_teleport_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.limited_teleport_assets { return { type: "limited_teleport_assets", ...value } } } @@ -387,23 +387,23 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_xcm.pallet.Event.Attempted - | t.pallet_xcm.pallet.Event.Sent - | t.pallet_xcm.pallet.Event.UnexpectedResponse - | t.pallet_xcm.pallet.Event.ResponseReady - | t.pallet_xcm.pallet.Event.Notified - | t.pallet_xcm.pallet.Event.NotifyOverweight - | t.pallet_xcm.pallet.Event.NotifyDispatchError - | t.pallet_xcm.pallet.Event.NotifyDecodeFailed - | t.pallet_xcm.pallet.Event.InvalidResponder - | t.pallet_xcm.pallet.Event.InvalidResponderVersion - | t.pallet_xcm.pallet.Event.ResponseTaken - | t.pallet_xcm.pallet.Event.AssetsTrapped - | t.pallet_xcm.pallet.Event.VersionChangeNotified - | t.pallet_xcm.pallet.Event.SupportedVersionChanged - | t.pallet_xcm.pallet.Event.NotifyTargetSendFail - | t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail - | t.pallet_xcm.pallet.Event.AssetsClaimed + | t.types.pallet_xcm.pallet.Event.Attempted + | t.types.pallet_xcm.pallet.Event.Sent + | t.types.pallet_xcm.pallet.Event.UnexpectedResponse + | t.types.pallet_xcm.pallet.Event.ResponseReady + | t.types.pallet_xcm.pallet.Event.Notified + | t.types.pallet_xcm.pallet.Event.NotifyOverweight + | t.types.pallet_xcm.pallet.Event.NotifyDispatchError + | t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed + | t.types.pallet_xcm.pallet.Event.InvalidResponder + | t.types.pallet_xcm.pallet.Event.InvalidResponderVersion + | t.types.pallet_xcm.pallet.Event.ResponseTaken + | t.types.pallet_xcm.pallet.Event.AssetsTrapped + | t.types.pallet_xcm.pallet.Event.VersionChangeNotified + | t.types.pallet_xcm.pallet.Event.SupportedVersionChanged + | t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail + | t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail + | t.types.pallet_xcm.pallet.Event.AssetsClaimed export namespace Event { /** * Execution of an XCM message was attempted. @@ -412,7 +412,7 @@ export namespace Event { */ export interface Attempted { type: "Attempted" - value: t.xcm.v2.traits.Outcome + value: t.types.xcm.v2.traits.Outcome } /** * A XCM message was sent. @@ -422,9 +422,9 @@ export namespace Event { export interface Sent { type: "Sent" value: [ - t.xcm.v1.multilocation.MultiLocation, - t.xcm.v1.multilocation.MultiLocation, - Array, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.v1.multilocation.MultiLocation, + Array, ] } /** @@ -436,7 +436,7 @@ export namespace Event { */ export interface UnexpectedResponse { type: "UnexpectedResponse" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64] } /** * Query response has been received and is ready for taking with `take_response`. There is @@ -446,7 +446,7 @@ export namespace Event { */ export interface ResponseReady { type: "ResponseReady" - value: [t.u64, t.xcm.v2.Response] + value: [t.types.u64, t.types.xcm.v2.Response] } /** * Query response has been received and query is removed. The registered notification has @@ -456,7 +456,7 @@ export namespace Event { */ export interface Notified { type: "Notified" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Query response has been received and query is removed. The registered notification could @@ -467,7 +467,13 @@ export namespace Event { */ export interface NotifyOverweight { type: "NotifyOverweight" - value: [t.u64, t.u8, t.u8, t.sp_weights.weight_v2.Weight, t.sp_weights.weight_v2.Weight] + value: [ + t.types.u64, + t.types.u8, + t.types.u8, + t.types.sp_weights.weight_v2.Weight, + t.types.sp_weights.weight_v2.Weight, + ] } /** * Query response has been received and query is removed. There was a general error with @@ -477,7 +483,7 @@ export namespace Event { */ export interface NotifyDispatchError { type: "NotifyDispatchError" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Query response has been received and query is removed. The dispatch was unable to be @@ -488,7 +494,7 @@ export namespace Event { */ export interface NotifyDecodeFailed { type: "NotifyDecodeFailed" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Expected query response has been received but the origin location of the response does @@ -500,9 +506,9 @@ export namespace Event { export interface InvalidResponder { type: "InvalidResponder" value: [ - t.xcm.v1.multilocation.MultiLocation, - t.u64, - t.xcm.v1.multilocation.MultiLocation | undefined, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.u64, + t.types.xcm.v1.multilocation.MultiLocation | undefined, ] } /** @@ -518,7 +524,7 @@ export namespace Event { */ export interface InvalidResponderVersion { type: "InvalidResponderVersion" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64] } /** * Received query response has been read and removed. @@ -527,7 +533,7 @@ export namespace Event { */ export interface ResponseTaken { type: "ResponseTaken" - value: t.u64 + value: t.types.u64 } /** * Some assets have been placed in an asset trap. @@ -537,9 +543,9 @@ export namespace Event { export interface AssetsTrapped { type: "AssetsTrapped" value: [ - t.primitive_types.H256, - t.xcm.v1.multilocation.MultiLocation, - t.xcm.VersionedMultiAssets, + t.types.primitive_types.H256, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.VersionedMultiAssets, ] } /** @@ -549,7 +555,7 @@ export namespace Event { */ export interface VersionChangeNotified { type: "VersionChangeNotified" - value: [t.xcm.v1.multilocation.MultiLocation, t.u32] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u32] } /** * The supported version of a location has been changed. This might be through an @@ -559,7 +565,7 @@ export namespace Event { */ export interface SupportedVersionChanged { type: "SupportedVersionChanged" - value: [t.xcm.v1.multilocation.MultiLocation, t.u32] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u32] } /** * A given location which had a version change subscription was dropped owing to an error @@ -569,7 +575,7 @@ export namespace Event { */ export interface NotifyTargetSendFail { type: "NotifyTargetSendFail" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64, t.xcm.v2.traits.Error] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64, t.types.xcm.v2.traits.Error] } /** * A given location which had a version change subscription was dropped owing to an error @@ -579,7 +585,7 @@ export namespace Event { */ export interface NotifyTargetMigrationFail { type: "NotifyTargetMigrationFail" - value: [t.xcm.VersionedMultiLocation, t.u64] + value: [t.types.xcm.VersionedMultiLocation, t.types.u64] } /** * Some assets have been claimed from an asset trap @@ -589,9 +595,9 @@ export namespace Event { export interface AssetsClaimed { type: "AssetsClaimed" value: [ - t.primitive_types.H256, - t.xcm.v1.multilocation.MultiLocation, - t.xcm.VersionedMultiAssets, + t.types.primitive_types.H256, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.VersionedMultiAssets, ] } /** @@ -600,8 +606,8 @@ export namespace Event { * \[ outcome \] */ export function Attempted( - value: t.pallet_xcm.pallet.Event.Attempted["value"], - ): t.pallet_xcm.pallet.Event.Attempted { + value: t.types.pallet_xcm.pallet.Event.Attempted["value"], + ): t.types.pallet_xcm.pallet.Event.Attempted { return { type: "Attempted", value } } /** @@ -610,8 +616,8 @@ export namespace Event { * \[ origin, destination, message \] */ export function Sent( - ...value: t.pallet_xcm.pallet.Event.Sent["value"] - ): t.pallet_xcm.pallet.Event.Sent { + ...value: t.types.pallet_xcm.pallet.Event.Sent["value"] + ): t.types.pallet_xcm.pallet.Event.Sent { return { type: "Sent", value } } /** @@ -622,8 +628,8 @@ export namespace Event { * \[ origin location, id \] */ export function UnexpectedResponse( - ...value: t.pallet_xcm.pallet.Event.UnexpectedResponse["value"] - ): t.pallet_xcm.pallet.Event.UnexpectedResponse { + ...value: t.types.pallet_xcm.pallet.Event.UnexpectedResponse["value"] + ): t.types.pallet_xcm.pallet.Event.UnexpectedResponse { return { type: "UnexpectedResponse", value } } /** @@ -633,8 +639,8 @@ export namespace Event { * \[ id, response \] */ export function ResponseReady( - ...value: t.pallet_xcm.pallet.Event.ResponseReady["value"] - ): t.pallet_xcm.pallet.Event.ResponseReady { + ...value: t.types.pallet_xcm.pallet.Event.ResponseReady["value"] + ): t.types.pallet_xcm.pallet.Event.ResponseReady { return { type: "ResponseReady", value } } /** @@ -644,8 +650,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function Notified( - ...value: t.pallet_xcm.pallet.Event.Notified["value"] - ): t.pallet_xcm.pallet.Event.Notified { + ...value: t.types.pallet_xcm.pallet.Event.Notified["value"] + ): t.types.pallet_xcm.pallet.Event.Notified { return { type: "Notified", value } } /** @@ -656,8 +662,8 @@ export namespace Event { * \[ id, pallet index, call index, actual weight, max budgeted weight \] */ export function NotifyOverweight( - ...value: t.pallet_xcm.pallet.Event.NotifyOverweight["value"] - ): t.pallet_xcm.pallet.Event.NotifyOverweight { + ...value: t.types.pallet_xcm.pallet.Event.NotifyOverweight["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyOverweight { return { type: "NotifyOverweight", value } } /** @@ -667,8 +673,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function NotifyDispatchError( - ...value: t.pallet_xcm.pallet.Event.NotifyDispatchError["value"] - ): t.pallet_xcm.pallet.Event.NotifyDispatchError { + ...value: t.types.pallet_xcm.pallet.Event.NotifyDispatchError["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyDispatchError { return { type: "NotifyDispatchError", value } } /** @@ -679,8 +685,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function NotifyDecodeFailed( - ...value: t.pallet_xcm.pallet.Event.NotifyDecodeFailed["value"] - ): t.pallet_xcm.pallet.Event.NotifyDecodeFailed { + ...value: t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed { return { type: "NotifyDecodeFailed", value } } /** @@ -691,8 +697,8 @@ export namespace Event { * \[ origin location, id, expected location \] */ export function InvalidResponder( - ...value: t.pallet_xcm.pallet.Event.InvalidResponder["value"] - ): t.pallet_xcm.pallet.Event.InvalidResponder { + ...value: t.types.pallet_xcm.pallet.Event.InvalidResponder["value"] + ): t.types.pallet_xcm.pallet.Event.InvalidResponder { return { type: "InvalidResponder", value } } /** @@ -707,8 +713,8 @@ export namespace Event { * \[ origin location, id \] */ export function InvalidResponderVersion( - ...value: t.pallet_xcm.pallet.Event.InvalidResponderVersion["value"] - ): t.pallet_xcm.pallet.Event.InvalidResponderVersion { + ...value: t.types.pallet_xcm.pallet.Event.InvalidResponderVersion["value"] + ): t.types.pallet_xcm.pallet.Event.InvalidResponderVersion { return { type: "InvalidResponderVersion", value } } /** @@ -717,8 +723,8 @@ export namespace Event { * \[ id \] */ export function ResponseTaken( - value: t.pallet_xcm.pallet.Event.ResponseTaken["value"], - ): t.pallet_xcm.pallet.Event.ResponseTaken { + value: t.types.pallet_xcm.pallet.Event.ResponseTaken["value"], + ): t.types.pallet_xcm.pallet.Event.ResponseTaken { return { type: "ResponseTaken", value } } /** @@ -727,8 +733,8 @@ export namespace Event { * \[ hash, origin, assets \] */ export function AssetsTrapped( - ...value: t.pallet_xcm.pallet.Event.AssetsTrapped["value"] - ): t.pallet_xcm.pallet.Event.AssetsTrapped { + ...value: t.types.pallet_xcm.pallet.Event.AssetsTrapped["value"] + ): t.types.pallet_xcm.pallet.Event.AssetsTrapped { return { type: "AssetsTrapped", value } } /** @@ -737,8 +743,8 @@ export namespace Event { * \[ destination, result \] */ export function VersionChangeNotified( - ...value: t.pallet_xcm.pallet.Event.VersionChangeNotified["value"] - ): t.pallet_xcm.pallet.Event.VersionChangeNotified { + ...value: t.types.pallet_xcm.pallet.Event.VersionChangeNotified["value"] + ): t.types.pallet_xcm.pallet.Event.VersionChangeNotified { return { type: "VersionChangeNotified", value } } /** @@ -748,8 +754,8 @@ export namespace Event { * \[ location, XCM version \] */ export function SupportedVersionChanged( - ...value: t.pallet_xcm.pallet.Event.SupportedVersionChanged["value"] - ): t.pallet_xcm.pallet.Event.SupportedVersionChanged { + ...value: t.types.pallet_xcm.pallet.Event.SupportedVersionChanged["value"] + ): t.types.pallet_xcm.pallet.Event.SupportedVersionChanged { return { type: "SupportedVersionChanged", value } } /** @@ -759,8 +765,8 @@ export namespace Event { * \[ location, query ID, error \] */ export function NotifyTargetSendFail( - ...value: t.pallet_xcm.pallet.Event.NotifyTargetSendFail["value"] - ): t.pallet_xcm.pallet.Event.NotifyTargetSendFail { + ...value: t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail { return { type: "NotifyTargetSendFail", value } } /** @@ -770,8 +776,8 @@ export namespace Event { * \[ location, query ID \] */ export function NotifyTargetMigrationFail( - ...value: t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail["value"] - ): t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail { + ...value: t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail { return { type: "NotifyTargetMigrationFail", value } } /** @@ -780,77 +786,79 @@ export namespace Event { * \[ hash, origin, assets \] */ export function AssetsClaimed( - ...value: t.pallet_xcm.pallet.Event.AssetsClaimed["value"] - ): t.pallet_xcm.pallet.Event.AssetsClaimed { + ...value: t.types.pallet_xcm.pallet.Event.AssetsClaimed["value"] + ): t.types.pallet_xcm.pallet.Event.AssetsClaimed { return { type: "AssetsClaimed", value } } } -export type Origin = t.pallet_xcm.pallet.Origin.Xcm | t.pallet_xcm.pallet.Origin.Response +export type Origin = + | t.types.pallet_xcm.pallet.Origin.Xcm + | t.types.pallet_xcm.pallet.Origin.Response export namespace Origin { export interface Xcm { type: "Xcm" - value: t.xcm.v1.multilocation.MultiLocation + value: t.types.xcm.v1.multilocation.MultiLocation } export interface Response { type: "Response" - value: t.xcm.v1.multilocation.MultiLocation + value: t.types.xcm.v1.multilocation.MultiLocation } export function Xcm( - value: t.pallet_xcm.pallet.Origin.Xcm["value"], - ): t.pallet_xcm.pallet.Origin.Xcm { + value: t.types.pallet_xcm.pallet.Origin.Xcm["value"], + ): t.types.pallet_xcm.pallet.Origin.Xcm { return { type: "Xcm", value } } export function Response( - value: t.pallet_xcm.pallet.Origin.Response["value"], - ): t.pallet_xcm.pallet.Origin.Response { + value: t.types.pallet_xcm.pallet.Origin.Response["value"], + ): t.types.pallet_xcm.pallet.Origin.Response { return { type: "Response", value } } } export type QueryStatus = - | t.pallet_xcm.pallet.QueryStatus.Pending - | t.pallet_xcm.pallet.QueryStatus.VersionNotifier - | t.pallet_xcm.pallet.QueryStatus.Ready + | t.types.pallet_xcm.pallet.QueryStatus.Pending + | t.types.pallet_xcm.pallet.QueryStatus.VersionNotifier + | t.types.pallet_xcm.pallet.QueryStatus.Ready export namespace QueryStatus { export interface Pending { type: "Pending" - responder: t.xcm.VersionedMultiLocation - maybe_notify: [t.u8, t.u8] | undefined - timeout: t.u32 + responder: t.types.xcm.VersionedMultiLocation + maybe_notify: [t.types.u8, t.types.u8] | undefined + timeout: t.types.u32 } export interface VersionNotifier { type: "VersionNotifier" - origin: t.xcm.VersionedMultiLocation + origin: t.types.xcm.VersionedMultiLocation is_active: boolean } export interface Ready { type: "Ready" - response: t.xcm.VersionedResponse - at: t.u32 + response: t.types.xcm.VersionedResponse + at: t.types.u32 } export function Pending( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.Pending { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.Pending { return { type: "Pending", ...value } } export function VersionNotifier( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.VersionNotifier { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.VersionNotifier { return { type: "VersionNotifier", ...value } } export function Ready( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.Ready { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.Ready { return { type: "Ready", ...value } } } export type VersionMigrationStage = - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers - | t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers + | t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets export namespace VersionMigrationStage { export interface MigrateSupportedVersion { type: "MigrateSupportedVersion" @@ -865,18 +873,18 @@ export namespace VersionMigrationStage { export interface MigrateAndNotifyOldTargets { type: "MigrateAndNotifyOldTargets" } - export function MigrateSupportedVersion(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion { + export function MigrateSupportedVersion(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion { return { type: "MigrateSupportedVersion" } } - export function MigrateVersionNotifiers(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers { + export function MigrateVersionNotifiers(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers { return { type: "MigrateVersionNotifiers" } } export function NotifyCurrentTargets( - value: t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets["value"], - ): t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets { + value: t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets["value"], + ): t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets { return { type: "NotifyCurrentTargets", value } } - export function MigrateAndNotifyOldTargets(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets { + export function MigrateAndNotifyOldTargets(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets { return { type: "MigrateAndNotifyOldTargets" } } } diff --git a/codegen/_output/rococo/types/polkadot_core_primitives.ts b/codegen/_output/rococo/types/polkadot_core_primitives.ts new file mode 100644 index 000000000..535b94e7a --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_core_primitives.ts @@ -0,0 +1,50 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $candidateHash: $.Codec = _codec.$114 + +export const $inboundDownwardMessage: $.Codec< + t.types.polkadot_core_primitives.InboundDownwardMessage +> = _codec.$683 + +export const $inboundHrmpMessage: $.Codec = + _codec.$691 + +export const $outboundHrmpMessage: $.Codec = + _codec.$392 + +export type CandidateHash = t.types.primitive_types.H256 + +export function CandidateHash(value: t.types.polkadot_core_primitives.CandidateHash) { + return value +} + +export interface InboundDownwardMessage { + sent_at: t.types.u32 + msg: Uint8Array +} + +export function InboundDownwardMessage( + value: t.types.polkadot_core_primitives.InboundDownwardMessage, +) { + return value +} + +export interface InboundHrmpMessage { + sent_at: t.types.u32 + data: Uint8Array +} + +export function InboundHrmpMessage(value: t.types.polkadot_core_primitives.InboundHrmpMessage) { + return value +} + +export interface OutboundHrmpMessage { + recipient: t.types.polkadot_parachain.primitives.Id + data: Uint8Array +} + +export function OutboundHrmpMessage(value: t.types.polkadot_core_primitives.OutboundHrmpMessage) { + return value +} diff --git a/codegen/_output/rococo/polkadot_parachain/mod.ts b/codegen/_output/rococo/types/polkadot_parachain/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_parachain/mod.ts rename to codegen/_output/rococo/types/polkadot_parachain/mod.ts diff --git a/codegen/_output/rococo/types/polkadot_parachain/primitives.ts b/codegen/_output/rococo/types/polkadot_parachain/primitives.ts new file mode 100644 index 000000000..b1e2f7973 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_parachain/primitives.ts @@ -0,0 +1,52 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $headData: $.Codec = _codec.$104 + +export const $hrmpChannelId: $.Codec = + _codec.$112 + +export const $id: $.Codec = _codec.$98 + +export const $validationCode: $.Codec = + _codec.$394 + +export const $validationCodeHash: $.Codec< + t.types.polkadot_parachain.primitives.ValidationCodeHash +> = _codec.$103 + +export type HeadData = Uint8Array + +export function HeadData(value: t.types.polkadot_parachain.primitives.HeadData) { + return value +} + +export interface HrmpChannelId { + sender: t.types.polkadot_parachain.primitives.Id + recipient: t.types.polkadot_parachain.primitives.Id +} + +export function HrmpChannelId(value: t.types.polkadot_parachain.primitives.HrmpChannelId) { + return value +} + +export type Id = t.types.u32 + +export function Id(value: t.types.polkadot_parachain.primitives.Id) { + return value +} + +export type ValidationCode = Uint8Array + +export function ValidationCode(value: t.types.polkadot_parachain.primitives.ValidationCode) { + return value +} + +export type ValidationCodeHash = t.types.primitive_types.H256 + +export function ValidationCodeHash( + value: t.types.polkadot_parachain.primitives.ValidationCodeHash, +) { + return value +} diff --git a/codegen/_output/rococo/polkadot_primitives/mod.ts b/codegen/_output/rococo/types/polkadot_primitives/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_primitives/mod.ts rename to codegen/_output/rococo/types/polkadot_primitives/mod.ts diff --git a/codegen/_output/rococo/types/polkadot_primitives/v2/assignment_app.ts b/codegen/_output/rococo/types/polkadot_primitives/v2/assignment_app.ts new file mode 100644 index 000000000..0f57693fe --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_primitives/v2/assignment_app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$214 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.assignment_app.Public) { + return value +} diff --git a/codegen/_output/rococo/types/polkadot_primitives/v2/collator_app.ts b/codegen/_output/rococo/types/polkadot_primitives/v2/collator_app.ts new file mode 100644 index 000000000..380e89642 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_primitives/v2/collator_app.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$99 + +export const $signature: $.Codec = + _codec.$100 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.collator_app.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.polkadot_primitives.v2.collator_app.Signature) { + return value +} diff --git a/codegen/_output/rococo/types/polkadot_primitives/v2/mod.ts b/codegen/_output/rococo/types/polkadot_primitives/v2/mod.ts new file mode 100644 index 000000000..4a6f7229c --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_primitives/v2/mod.ts @@ -0,0 +1,375 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as assignment_app from "./assignment_app.ts" +export * as collator_app from "./collator_app.ts" +export * as signed from "./signed.ts" +export * as validator_app from "./validator_app.ts" + +export const $availabilityBitfield: $.Codec = + _codec.$382 + +export const $backedCandidate: $.Codec = _codec.$388 + +export const $candidateCommitments: $.Codec = + _codec.$390 + +export const $candidateDescriptor: $.Codec = + _codec.$97 + +export const $candidateReceipt: $.Codec = + _codec.$96 + +export const $committedCandidateReceipt: $.Codec< + t.types.polkadot_primitives.v2.CommittedCandidateReceipt +> = _codec.$389 + +export const $coreIndex: $.Codec = _codec.$105 + +export const $coreOccupied: $.Codec = _codec.$661 + +export const $disputeState: $.Codec = _codec.$699 + +export const $disputeStatement: $.Codec = + _codec.$401 + +export const $disputeStatementSet: $.Codec = + _codec.$398 + +export const $groupIndex: $.Codec = _codec.$106 + +export const $inherentData: $.Codec = _codec.$379 + +export const $invalidDisputeStatementKind: $.Codec< + t.types.polkadot_primitives.v2.InvalidDisputeStatementKind +> = _codec.$403 + +export const $parathreadClaim: $.Codec = _codec.$658 + +export const $parathreadEntry: $.Codec = _codec.$657 + +export const $pvfCheckStatement: $.Codec = + _codec.$405 + +export const $scrapedOnChainVotes: $.Codec = + _codec.$647 + +export const $sessionInfo: $.Codec = _codec.$696 + +export const $upgradeGoAhead: $.Codec = _codec.$676 + +export const $upgradeRestriction: $.Codec = + _codec.$677 + +export const $validDisputeStatementKind: $.Codec< + t.types.polkadot_primitives.v2.ValidDisputeStatementKind +> = _codec.$402 + +export const $validatorIndex: $.Codec = _codec.$385 + +export const $validityAttestation: $.Codec = + _codec.$396 + +export type AvailabilityBitfield = $.BitSequence + +export function AvailabilityBitfield(value: t.types.polkadot_primitives.v2.AvailabilityBitfield) { + return value +} + +export interface BackedCandidate { + candidate: t.types.polkadot_primitives.v2.CommittedCandidateReceipt + validity_votes: Array + validator_indices: $.BitSequence +} + +export function BackedCandidate(value: t.types.polkadot_primitives.v2.BackedCandidate) { + return value +} + +export interface CandidateCommitments { + upward_messages: Array + horizontal_messages: Array + new_validation_code: t.types.polkadot_parachain.primitives.ValidationCode | undefined + head_data: t.types.polkadot_parachain.primitives.HeadData + processed_downward_messages: t.types.u32 + hrmp_watermark: t.types.u32 +} + +export function CandidateCommitments(value: t.types.polkadot_primitives.v2.CandidateCommitments) { + return value +} + +export interface CandidateDescriptor { + para_id: t.types.polkadot_parachain.primitives.Id + relay_parent: t.types.primitive_types.H256 + collator: t.types.polkadot_primitives.v2.collator_app.Public + persisted_validation_data_hash: t.types.primitive_types.H256 + pov_hash: t.types.primitive_types.H256 + erasure_root: t.types.primitive_types.H256 + signature: t.types.polkadot_primitives.v2.collator_app.Signature + para_head: t.types.primitive_types.H256 + validation_code_hash: t.types.polkadot_parachain.primitives.ValidationCodeHash +} + +export function CandidateDescriptor(value: t.types.polkadot_primitives.v2.CandidateDescriptor) { + return value +} + +export interface CandidateReceipt { + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + commitments_hash: t.types.primitive_types.H256 +} + +export function CandidateReceipt(value: t.types.polkadot_primitives.v2.CandidateReceipt) { + return value +} + +export interface CommittedCandidateReceipt { + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + commitments: t.types.polkadot_primitives.v2.CandidateCommitments +} + +export function CommittedCandidateReceipt( + value: t.types.polkadot_primitives.v2.CommittedCandidateReceipt, +) { + return value +} + +export type CoreIndex = t.types.u32 + +export function CoreIndex(value: t.types.polkadot_primitives.v2.CoreIndex) { + return value +} + +export type CoreOccupied = + | t.types.polkadot_primitives.v2.CoreOccupied.Parathread + | t.types.polkadot_primitives.v2.CoreOccupied.Parachain +export namespace CoreOccupied { + export interface Parathread { + type: "Parathread" + value: t.types.polkadot_primitives.v2.ParathreadEntry + } + export interface Parachain { + type: "Parachain" + } + export function Parathread( + value: t.types.polkadot_primitives.v2.CoreOccupied.Parathread["value"], + ): t.types.polkadot_primitives.v2.CoreOccupied.Parathread { + return { type: "Parathread", value } + } + export function Parachain(): t.types.polkadot_primitives.v2.CoreOccupied.Parachain { + return { type: "Parachain" } + } +} + +export interface DisputeState { + validators_for: $.BitSequence + validators_against: $.BitSequence + start: t.types.u32 + concluded_at: t.types.u32 | undefined +} + +export function DisputeState(value: t.types.polkadot_primitives.v2.DisputeState) { + return value +} + +export type DisputeStatement = + | t.types.polkadot_primitives.v2.DisputeStatement.Valid + | t.types.polkadot_primitives.v2.DisputeStatement.Invalid +export namespace DisputeStatement { + export interface Valid { + type: "Valid" + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind + } + export interface Invalid { + type: "Invalid" + value: t.types.polkadot_primitives.v2.InvalidDisputeStatementKind + } + export function Valid( + value: t.types.polkadot_primitives.v2.DisputeStatement.Valid["value"], + ): t.types.polkadot_primitives.v2.DisputeStatement.Valid { + return { type: "Valid", value } + } + export function Invalid( + value: t.types.polkadot_primitives.v2.DisputeStatement.Invalid["value"], + ): t.types.polkadot_primitives.v2.DisputeStatement.Invalid { + return { type: "Invalid", value } + } +} + +export interface DisputeStatementSet { + candidate_hash: t.types.polkadot_core_primitives.CandidateHash + session: t.types.u32 + statements: Array< + [ + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, + ] + > +} + +export function DisputeStatementSet(value: t.types.polkadot_primitives.v2.DisputeStatementSet) { + return value +} + +export type GroupIndex = t.types.u32 + +export function GroupIndex(value: t.types.polkadot_primitives.v2.GroupIndex) { + return value +} + +export interface InherentData { + bitfields: Array + backed_candidates: Array + disputes: Array + parent_header: t.types.sp_runtime.generic.header.Header +} + +export function InherentData(value: t.types.polkadot_primitives.v2.InherentData) { + return value +} + +export type InvalidDisputeStatementKind = "Explicit" + +export type ParathreadClaim = [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_primitives.v2.collator_app.Public, +] + +export function ParathreadClaim(...value: t.types.polkadot_primitives.v2.ParathreadClaim) { + return value +} + +export interface ParathreadEntry { + claim: t.types.polkadot_primitives.v2.ParathreadClaim + retries: t.types.u32 +} + +export function ParathreadEntry(value: t.types.polkadot_primitives.v2.ParathreadEntry) { + return value +} + +export interface PvfCheckStatement { + accept: boolean + subject: t.types.polkadot_parachain.primitives.ValidationCodeHash + session_index: t.types.u32 + validator_index: t.types.polkadot_primitives.v2.ValidatorIndex +} + +export function PvfCheckStatement(value: t.types.polkadot_primitives.v2.PvfCheckStatement) { + return value +} + +export interface ScrapedOnChainVotes { + session: t.types.u32 + backing_validators_per_candidate: Array< + [ + t.types.polkadot_primitives.v2.CandidateReceipt, + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + >, + ] + > + disputes: Array +} + +export function ScrapedOnChainVotes(value: t.types.polkadot_primitives.v2.ScrapedOnChainVotes) { + return value +} + +export interface SessionInfo { + active_validator_indices: Array + random_seed: Uint8Array + dispute_period: t.types.u32 + validators: Array + discovery_keys: Array + assignment_keys: Array + validator_groups: Array> + n_cores: t.types.u32 + zeroth_delay_tranche_width: t.types.u32 + relay_vrf_modulo_samples: t.types.u32 + n_delay_tranches: t.types.u32 + no_show_slots: t.types.u32 + needed_approvals: t.types.u32 +} + +export function SessionInfo(value: t.types.polkadot_primitives.v2.SessionInfo) { + return value +} + +export type UpgradeGoAhead = "Abort" | "GoAhead" + +export type UpgradeRestriction = "Present" + +export type ValidDisputeStatementKind = + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking +export namespace ValidDisputeStatementKind { + export interface Explicit { + type: "Explicit" + } + export interface BackingSeconded { + type: "BackingSeconded" + value: t.types.primitive_types.H256 + } + export interface BackingValid { + type: "BackingValid" + value: t.types.primitive_types.H256 + } + export interface ApprovalChecking { + type: "ApprovalChecking" + } + export function Explicit(): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit { + return { type: "Explicit" } + } + export function BackingSeconded( + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded["value"], + ): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded { + return { type: "BackingSeconded", value } + } + export function BackingValid( + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid["value"], + ): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid { + return { type: "BackingValid", value } + } + export function ApprovalChecking(): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking { + return { type: "ApprovalChecking" } + } +} + +export type ValidatorIndex = t.types.u32 + +export function ValidatorIndex(value: t.types.polkadot_primitives.v2.ValidatorIndex) { + return value +} + +export type ValidityAttestation = + | t.types.polkadot_primitives.v2.ValidityAttestation.Implicit + | t.types.polkadot_primitives.v2.ValidityAttestation.Explicit +export namespace ValidityAttestation { + export interface Implicit { + type: "Implicit" + value: t.types.polkadot_primitives.v2.validator_app.Signature + } + export interface Explicit { + type: "Explicit" + value: t.types.polkadot_primitives.v2.validator_app.Signature + } + export function Implicit( + value: t.types.polkadot_primitives.v2.ValidityAttestation.Implicit["value"], + ): t.types.polkadot_primitives.v2.ValidityAttestation.Implicit { + return { type: "Implicit", value } + } + export function Explicit( + value: t.types.polkadot_primitives.v2.ValidityAttestation.Explicit["value"], + ): t.types.polkadot_primitives.v2.ValidityAttestation.Explicit { + return { type: "Explicit", value } + } +} diff --git a/codegen/_output/rococo/types/polkadot_primitives/v2/signed.ts b/codegen/_output/rococo/types/polkadot_primitives/v2/signed.ts new file mode 100644 index 000000000..20d05131a --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_primitives/v2/signed.ts @@ -0,0 +1,16 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $uncheckedSigned: $.Codec = + _codec.$381 + +export interface UncheckedSigned { + payload: t.types.polkadot_primitives.v2.AvailabilityBitfield + validator_index: t.types.polkadot_primitives.v2.ValidatorIndex + signature: t.types.polkadot_primitives.v2.validator_app.Signature +} + +export function UncheckedSigned(value: t.types.polkadot_primitives.v2.signed.UncheckedSigned) { + return value +} diff --git a/codegen/_output/rococo/types/polkadot_primitives/v2/validator_app.ts b/codegen/_output/rococo/types/polkadot_primitives/v2/validator_app.ts new file mode 100644 index 000000000..fc40bffc1 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_primitives/v2/validator_app.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$213 + +export const $signature: $.Codec = + _codec.$386 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.validator_app.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.polkadot_primitives.v2.validator_app.Signature) { + return value +} diff --git a/codegen/_output/rococo/types/polkadot_runtime.ts b/codegen/_output/rococo/types/polkadot_runtime.ts new file mode 100644 index 000000000..ad598446e --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime.ts @@ -0,0 +1,1224 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $nposCompactSolution16: $.Codec = + _codec.$312 + +export const $originCaller: $.Codec = _codec.$256 + +export const $proxyType: $.Codec = _codec.$79 + +export const $runtime: $.Codec = _codec.$737 + +export const $runtimeCall: $.Codec = _codec.$181 + +export const $runtimeEvent: $.Codec = _codec.$19 + +export const $sessionKeys: $.Codec = _codec.$212 + +export interface NposCompactSolution16 { + votes1: Array<[t.Compact, t.Compact]> + votes2: Array< + [ + t.Compact, + [t.Compact, t.Compact], + t.Compact, + ] + > + votes3: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes4: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes5: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes6: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes7: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes8: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes9: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes10: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes11: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes12: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes13: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes14: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes15: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes16: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > +} + +export function NposCompactSolution16(value: t.types.polkadot_runtime.NposCompactSolution16) { + return value +} + +export type OriginCaller = + | t.types.polkadot_runtime.OriginCaller.system + | t.types.polkadot_runtime.OriginCaller.Council + | t.types.polkadot_runtime.OriginCaller.TechnicalCommittee + | t.types.polkadot_runtime.OriginCaller.ParachainsOrigin + | t.types.polkadot_runtime.OriginCaller.XcmPallet + | t.types.polkadot_runtime.OriginCaller.Void +export namespace OriginCaller { + export interface system { + type: "system" + value: t.types.frame_support.dispatch.RawOrigin + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.RawOrigin + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.RawOrigin + } + export interface ParachainsOrigin { + type: "ParachainsOrigin" + value: t.types.polkadot_runtime_parachains.origin.pallet.Origin + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Origin + } + export interface Void { + type: "Void" + value: t.types.sp_core.Void + } + export function system( + value: t.types.polkadot_runtime.OriginCaller.system["value"], + ): t.types.polkadot_runtime.OriginCaller.system { + return { type: "system", value } + } + export function Council( + value: t.types.polkadot_runtime.OriginCaller.Council["value"], + ): t.types.polkadot_runtime.OriginCaller.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.OriginCaller.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.OriginCaller.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function ParachainsOrigin( + value: t.types.polkadot_runtime.OriginCaller.ParachainsOrigin["value"], + ): t.types.polkadot_runtime.OriginCaller.ParachainsOrigin { + return { type: "ParachainsOrigin", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.OriginCaller.XcmPallet["value"], + ): t.types.polkadot_runtime.OriginCaller.XcmPallet { + return { type: "XcmPallet", value } + } + export function Void( + value: t.types.polkadot_runtime.OriginCaller.Void["value"], + ): t.types.polkadot_runtime.OriginCaller.Void { + return { type: "Void", value } + } +} + +export type ProxyType = + | "Any" + | "NonTransfer" + | "Governance" + | "Staking" + | "IdentityJudgement" + | "CancelProxy" + | "Auction" + +export function Runtime() { + return null +} + +export type Runtime = null + +export type RuntimeCall = + | t.types.polkadot_runtime.RuntimeCall.System + | t.types.polkadot_runtime.RuntimeCall.Scheduler + | t.types.polkadot_runtime.RuntimeCall.Preimage + | t.types.polkadot_runtime.RuntimeCall.Babe + | t.types.polkadot_runtime.RuntimeCall.Timestamp + | t.types.polkadot_runtime.RuntimeCall.Indices + | t.types.polkadot_runtime.RuntimeCall.Balances + | t.types.polkadot_runtime.RuntimeCall.Authorship + | t.types.polkadot_runtime.RuntimeCall.Staking + | t.types.polkadot_runtime.RuntimeCall.Session + | t.types.polkadot_runtime.RuntimeCall.Grandpa + | t.types.polkadot_runtime.RuntimeCall.ImOnline + | t.types.polkadot_runtime.RuntimeCall.Democracy + | t.types.polkadot_runtime.RuntimeCall.Council + | t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee + | t.types.polkadot_runtime.RuntimeCall.PhragmenElection + | t.types.polkadot_runtime.RuntimeCall.TechnicalMembership + | t.types.polkadot_runtime.RuntimeCall.Treasury + | t.types.polkadot_runtime.RuntimeCall.Claims + | t.types.polkadot_runtime.RuntimeCall.Vesting + | t.types.polkadot_runtime.RuntimeCall.Utility + | t.types.polkadot_runtime.RuntimeCall.Identity + | t.types.polkadot_runtime.RuntimeCall.Proxy + | t.types.polkadot_runtime.RuntimeCall.Multisig + | t.types.polkadot_runtime.RuntimeCall.Bounties + | t.types.polkadot_runtime.RuntimeCall.ChildBounties + | t.types.polkadot_runtime.RuntimeCall.Tips + | t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase + | t.types.polkadot_runtime.RuntimeCall.VoterList + | t.types.polkadot_runtime.RuntimeCall.NominationPools + | t.types.polkadot_runtime.RuntimeCall.FastUnstake + | t.types.polkadot_runtime.RuntimeCall.Configuration + | t.types.polkadot_runtime.RuntimeCall.ParasShared + | t.types.polkadot_runtime.RuntimeCall.ParaInclusion + | t.types.polkadot_runtime.RuntimeCall.ParaInherent + | t.types.polkadot_runtime.RuntimeCall.Paras + | t.types.polkadot_runtime.RuntimeCall.Initializer + | t.types.polkadot_runtime.RuntimeCall.Dmp + | t.types.polkadot_runtime.RuntimeCall.Ump + | t.types.polkadot_runtime.RuntimeCall.Hrmp + | t.types.polkadot_runtime.RuntimeCall.ParasDisputes + | t.types.polkadot_runtime.RuntimeCall.Registrar + | t.types.polkadot_runtime.RuntimeCall.Slots + | t.types.polkadot_runtime.RuntimeCall.Auctions + | t.types.polkadot_runtime.RuntimeCall.Crowdloan + | t.types.polkadot_runtime.RuntimeCall.XcmPallet +export namespace RuntimeCall { + export interface System { + type: "System" + value: t.types.frame_system.pallet.Call + } + export interface Scheduler { + type: "Scheduler" + value: t.types.pallet_scheduler.pallet.Call + } + export interface Preimage { + type: "Preimage" + value: t.types.pallet_preimage.pallet.Call + } + export interface Babe { + type: "Babe" + value: t.types.pallet_babe.pallet.Call + } + export interface Timestamp { + type: "Timestamp" + value: t.types.pallet_timestamp.pallet.Call + } + export interface Indices { + type: "Indices" + value: t.types.pallet_indices.pallet.Call + } + export interface Balances { + type: "Balances" + value: t.types.pallet_balances.pallet.Call + } + export interface Authorship { + type: "Authorship" + value: t.types.pallet_authorship.pallet.Call + } + export interface Staking { + type: "Staking" + value: t.types.pallet_staking.pallet.pallet.Call + } + export interface Session { + type: "Session" + value: t.types.pallet_session.pallet.Call + } + export interface Grandpa { + type: "Grandpa" + value: t.types.pallet_grandpa.pallet.Call + } + export interface ImOnline { + type: "ImOnline" + value: t.types.pallet_im_online.pallet.Call + } + export interface Democracy { + type: "Democracy" + value: t.types.pallet_democracy.pallet.Call + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.pallet.Call + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.pallet.Call + } + export interface PhragmenElection { + type: "PhragmenElection" + value: t.types.pallet_elections_phragmen.pallet.Call + } + export interface TechnicalMembership { + type: "TechnicalMembership" + value: t.types.pallet_membership.pallet.Call + } + export interface Treasury { + type: "Treasury" + value: t.types.pallet_treasury.pallet.Call + } + export interface Claims { + type: "Claims" + value: t.types.polkadot_runtime_common.claims.pallet.Call + } + export interface Vesting { + type: "Vesting" + value: t.types.pallet_vesting.pallet.Call + } + export interface Utility { + type: "Utility" + value: t.types.pallet_utility.pallet.Call + } + export interface Identity { + type: "Identity" + value: t.types.pallet_identity.pallet.Call + } + export interface Proxy { + type: "Proxy" + value: t.types.pallet_proxy.pallet.Call + } + export interface Multisig { + type: "Multisig" + value: t.types.pallet_multisig.pallet.Call + } + export interface Bounties { + type: "Bounties" + value: t.types.pallet_bounties.pallet.Call + } + export interface ChildBounties { + type: "ChildBounties" + value: t.types.pallet_child_bounties.pallet.Call + } + export interface Tips { + type: "Tips" + value: t.types.pallet_tips.pallet.Call + } + export interface ElectionProviderMultiPhase { + type: "ElectionProviderMultiPhase" + value: t.types.pallet_election_provider_multi_phase.pallet.Call + } + export interface VoterList { + type: "VoterList" + value: t.types.pallet_bags_list.pallet.Call + } + export interface NominationPools { + type: "NominationPools" + value: t.types.pallet_nomination_pools.pallet.Call + } + export interface FastUnstake { + type: "FastUnstake" + value: t.types.pallet_fast_unstake.pallet.Call + } + export interface Configuration { + type: "Configuration" + value: t.types.polkadot_runtime_parachains.configuration.pallet.Call + } + export interface ParasShared { + type: "ParasShared" + value: t.types.polkadot_runtime_parachains.shared.pallet.Call + } + export interface ParaInclusion { + type: "ParaInclusion" + value: t.types.polkadot_runtime_parachains.inclusion.pallet.Call + } + export interface ParaInherent { + type: "ParaInherent" + value: t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call + } + export interface Paras { + type: "Paras" + value: t.types.polkadot_runtime_parachains.paras.pallet.Call + } + export interface Initializer { + type: "Initializer" + value: t.types.polkadot_runtime_parachains.initializer.pallet.Call + } + export interface Dmp { + type: "Dmp" + value: t.types.polkadot_runtime_parachains.dmp.pallet.Call + } + export interface Ump { + type: "Ump" + value: t.types.polkadot_runtime_parachains.ump.pallet.Call + } + export interface Hrmp { + type: "Hrmp" + value: t.types.polkadot_runtime_parachains.hrmp.pallet.Call + } + export interface ParasDisputes { + type: "ParasDisputes" + value: t.types.polkadot_runtime_parachains.disputes.pallet.Call + } + export interface Registrar { + type: "Registrar" + value: t.types.polkadot_runtime_common.paras_registrar.pallet.Call + } + export interface Slots { + type: "Slots" + value: t.types.polkadot_runtime_common.slots.pallet.Call + } + export interface Auctions { + type: "Auctions" + value: t.types.polkadot_runtime_common.auctions.pallet.Call + } + export interface Crowdloan { + type: "Crowdloan" + value: t.types.polkadot_runtime_common.crowdloan.pallet.Call + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Call + } + export function System( + value: t.types.polkadot_runtime.RuntimeCall.System["value"], + ): t.types.polkadot_runtime.RuntimeCall.System { + return { type: "System", value } + } + export function Scheduler( + value: t.types.polkadot_runtime.RuntimeCall.Scheduler["value"], + ): t.types.polkadot_runtime.RuntimeCall.Scheduler { + return { type: "Scheduler", value } + } + export function Preimage( + value: t.types.polkadot_runtime.RuntimeCall.Preimage["value"], + ): t.types.polkadot_runtime.RuntimeCall.Preimage { + return { type: "Preimage", value } + } + export function Babe( + value: t.types.polkadot_runtime.RuntimeCall.Babe["value"], + ): t.types.polkadot_runtime.RuntimeCall.Babe { + return { type: "Babe", value } + } + export function Timestamp( + value: t.types.polkadot_runtime.RuntimeCall.Timestamp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Timestamp { + return { type: "Timestamp", value } + } + export function Indices( + value: t.types.polkadot_runtime.RuntimeCall.Indices["value"], + ): t.types.polkadot_runtime.RuntimeCall.Indices { + return { type: "Indices", value } + } + export function Balances( + value: t.types.polkadot_runtime.RuntimeCall.Balances["value"], + ): t.types.polkadot_runtime.RuntimeCall.Balances { + return { type: "Balances", value } + } + export function Authorship( + value: t.types.polkadot_runtime.RuntimeCall.Authorship["value"], + ): t.types.polkadot_runtime.RuntimeCall.Authorship { + return { type: "Authorship", value } + } + export function Staking( + value: t.types.polkadot_runtime.RuntimeCall.Staking["value"], + ): t.types.polkadot_runtime.RuntimeCall.Staking { + return { type: "Staking", value } + } + export function Session( + value: t.types.polkadot_runtime.RuntimeCall.Session["value"], + ): t.types.polkadot_runtime.RuntimeCall.Session { + return { type: "Session", value } + } + export function Grandpa( + value: t.types.polkadot_runtime.RuntimeCall.Grandpa["value"], + ): t.types.polkadot_runtime.RuntimeCall.Grandpa { + return { type: "Grandpa", value } + } + export function ImOnline( + value: t.types.polkadot_runtime.RuntimeCall.ImOnline["value"], + ): t.types.polkadot_runtime.RuntimeCall.ImOnline { + return { type: "ImOnline", value } + } + export function Democracy( + value: t.types.polkadot_runtime.RuntimeCall.Democracy["value"], + ): t.types.polkadot_runtime.RuntimeCall.Democracy { + return { type: "Democracy", value } + } + export function Council( + value: t.types.polkadot_runtime.RuntimeCall.Council["value"], + ): t.types.polkadot_runtime.RuntimeCall.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function PhragmenElection( + value: t.types.polkadot_runtime.RuntimeCall.PhragmenElection["value"], + ): t.types.polkadot_runtime.RuntimeCall.PhragmenElection { + return { type: "PhragmenElection", value } + } + export function TechnicalMembership( + value: t.types.polkadot_runtime.RuntimeCall.TechnicalMembership["value"], + ): t.types.polkadot_runtime.RuntimeCall.TechnicalMembership { + return { type: "TechnicalMembership", value } + } + export function Treasury( + value: t.types.polkadot_runtime.RuntimeCall.Treasury["value"], + ): t.types.polkadot_runtime.RuntimeCall.Treasury { + return { type: "Treasury", value } + } + export function Claims( + value: t.types.polkadot_runtime.RuntimeCall.Claims["value"], + ): t.types.polkadot_runtime.RuntimeCall.Claims { + return { type: "Claims", value } + } + export function Vesting( + value: t.types.polkadot_runtime.RuntimeCall.Vesting["value"], + ): t.types.polkadot_runtime.RuntimeCall.Vesting { + return { type: "Vesting", value } + } + export function Utility( + value: t.types.polkadot_runtime.RuntimeCall.Utility["value"], + ): t.types.polkadot_runtime.RuntimeCall.Utility { + return { type: "Utility", value } + } + export function Identity( + value: t.types.polkadot_runtime.RuntimeCall.Identity["value"], + ): t.types.polkadot_runtime.RuntimeCall.Identity { + return { type: "Identity", value } + } + export function Proxy( + value: t.types.polkadot_runtime.RuntimeCall.Proxy["value"], + ): t.types.polkadot_runtime.RuntimeCall.Proxy { + return { type: "Proxy", value } + } + export function Multisig( + value: t.types.polkadot_runtime.RuntimeCall.Multisig["value"], + ): t.types.polkadot_runtime.RuntimeCall.Multisig { + return { type: "Multisig", value } + } + export function Bounties( + value: t.types.polkadot_runtime.RuntimeCall.Bounties["value"], + ): t.types.polkadot_runtime.RuntimeCall.Bounties { + return { type: "Bounties", value } + } + export function ChildBounties( + value: t.types.polkadot_runtime.RuntimeCall.ChildBounties["value"], + ): t.types.polkadot_runtime.RuntimeCall.ChildBounties { + return { type: "ChildBounties", value } + } + export function Tips( + value: t.types.polkadot_runtime.RuntimeCall.Tips["value"], + ): t.types.polkadot_runtime.RuntimeCall.Tips { + return { type: "Tips", value } + } + export function ElectionProviderMultiPhase( + value: t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase["value"], + ): t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase { + return { type: "ElectionProviderMultiPhase", value } + } + export function VoterList( + value: t.types.polkadot_runtime.RuntimeCall.VoterList["value"], + ): t.types.polkadot_runtime.RuntimeCall.VoterList { + return { type: "VoterList", value } + } + export function NominationPools( + value: t.types.polkadot_runtime.RuntimeCall.NominationPools["value"], + ): t.types.polkadot_runtime.RuntimeCall.NominationPools { + return { type: "NominationPools", value } + } + export function FastUnstake( + value: t.types.polkadot_runtime.RuntimeCall.FastUnstake["value"], + ): t.types.polkadot_runtime.RuntimeCall.FastUnstake { + return { type: "FastUnstake", value } + } + export function Configuration( + value: t.types.polkadot_runtime.RuntimeCall.Configuration["value"], + ): t.types.polkadot_runtime.RuntimeCall.Configuration { + return { type: "Configuration", value } + } + export function ParasShared( + value: t.types.polkadot_runtime.RuntimeCall.ParasShared["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParasShared { + return { type: "ParasShared", value } + } + export function ParaInclusion( + value: t.types.polkadot_runtime.RuntimeCall.ParaInclusion["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParaInclusion { + return { type: "ParaInclusion", value } + } + export function ParaInherent( + value: t.types.polkadot_runtime.RuntimeCall.ParaInherent["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParaInherent { + return { type: "ParaInherent", value } + } + export function Paras( + value: t.types.polkadot_runtime.RuntimeCall.Paras["value"], + ): t.types.polkadot_runtime.RuntimeCall.Paras { + return { type: "Paras", value } + } + export function Initializer( + value: t.types.polkadot_runtime.RuntimeCall.Initializer["value"], + ): t.types.polkadot_runtime.RuntimeCall.Initializer { + return { type: "Initializer", value } + } + export function Dmp( + value: t.types.polkadot_runtime.RuntimeCall.Dmp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Dmp { + return { type: "Dmp", value } + } + export function Ump( + value: t.types.polkadot_runtime.RuntimeCall.Ump["value"], + ): t.types.polkadot_runtime.RuntimeCall.Ump { + return { type: "Ump", value } + } + export function Hrmp( + value: t.types.polkadot_runtime.RuntimeCall.Hrmp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Hrmp { + return { type: "Hrmp", value } + } + export function ParasDisputes( + value: t.types.polkadot_runtime.RuntimeCall.ParasDisputes["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParasDisputes { + return { type: "ParasDisputes", value } + } + export function Registrar( + value: t.types.polkadot_runtime.RuntimeCall.Registrar["value"], + ): t.types.polkadot_runtime.RuntimeCall.Registrar { + return { type: "Registrar", value } + } + export function Slots( + value: t.types.polkadot_runtime.RuntimeCall.Slots["value"], + ): t.types.polkadot_runtime.RuntimeCall.Slots { + return { type: "Slots", value } + } + export function Auctions( + value: t.types.polkadot_runtime.RuntimeCall.Auctions["value"], + ): t.types.polkadot_runtime.RuntimeCall.Auctions { + return { type: "Auctions", value } + } + export function Crowdloan( + value: t.types.polkadot_runtime.RuntimeCall.Crowdloan["value"], + ): t.types.polkadot_runtime.RuntimeCall.Crowdloan { + return { type: "Crowdloan", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.RuntimeCall.XcmPallet["value"], + ): t.types.polkadot_runtime.RuntimeCall.XcmPallet { + return { type: "XcmPallet", value } + } +} + +export type RuntimeEvent = + | t.types.polkadot_runtime.RuntimeEvent.System + | t.types.polkadot_runtime.RuntimeEvent.Scheduler + | t.types.polkadot_runtime.RuntimeEvent.Preimage + | t.types.polkadot_runtime.RuntimeEvent.Indices + | t.types.polkadot_runtime.RuntimeEvent.Balances + | t.types.polkadot_runtime.RuntimeEvent.TransactionPayment + | t.types.polkadot_runtime.RuntimeEvent.Staking + | t.types.polkadot_runtime.RuntimeEvent.Offences + | t.types.polkadot_runtime.RuntimeEvent.Session + | t.types.polkadot_runtime.RuntimeEvent.Grandpa + | t.types.polkadot_runtime.RuntimeEvent.ImOnline + | t.types.polkadot_runtime.RuntimeEvent.Democracy + | t.types.polkadot_runtime.RuntimeEvent.Council + | t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee + | t.types.polkadot_runtime.RuntimeEvent.PhragmenElection + | t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership + | t.types.polkadot_runtime.RuntimeEvent.Treasury + | t.types.polkadot_runtime.RuntimeEvent.Claims + | t.types.polkadot_runtime.RuntimeEvent.Vesting + | t.types.polkadot_runtime.RuntimeEvent.Utility + | t.types.polkadot_runtime.RuntimeEvent.Identity + | t.types.polkadot_runtime.RuntimeEvent.Proxy + | t.types.polkadot_runtime.RuntimeEvent.Multisig + | t.types.polkadot_runtime.RuntimeEvent.Bounties + | t.types.polkadot_runtime.RuntimeEvent.ChildBounties + | t.types.polkadot_runtime.RuntimeEvent.Tips + | t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase + | t.types.polkadot_runtime.RuntimeEvent.VoterList + | t.types.polkadot_runtime.RuntimeEvent.NominationPools + | t.types.polkadot_runtime.RuntimeEvent.FastUnstake + | t.types.polkadot_runtime.RuntimeEvent.ParaInclusion + | t.types.polkadot_runtime.RuntimeEvent.Paras + | t.types.polkadot_runtime.RuntimeEvent.Ump + | t.types.polkadot_runtime.RuntimeEvent.Hrmp + | t.types.polkadot_runtime.RuntimeEvent.ParasDisputes + | t.types.polkadot_runtime.RuntimeEvent.Registrar + | t.types.polkadot_runtime.RuntimeEvent.Slots + | t.types.polkadot_runtime.RuntimeEvent.Auctions + | t.types.polkadot_runtime.RuntimeEvent.Crowdloan + | t.types.polkadot_runtime.RuntimeEvent.XcmPallet +export namespace RuntimeEvent { + export interface System { + type: "System" + value: t.types.frame_system.pallet.Event + } + export interface Scheduler { + type: "Scheduler" + value: t.types.pallet_scheduler.pallet.Event + } + export interface Preimage { + type: "Preimage" + value: t.types.pallet_preimage.pallet.Event + } + export interface Indices { + type: "Indices" + value: t.types.pallet_indices.pallet.Event + } + export interface Balances { + type: "Balances" + value: t.types.pallet_balances.pallet.Event + } + export interface TransactionPayment { + type: "TransactionPayment" + value: t.types.pallet_transaction_payment.pallet.Event + } + export interface Staking { + type: "Staking" + value: t.types.pallet_staking.pallet.pallet.Event + } + export interface Offences { + type: "Offences" + value: t.types.pallet_offences.pallet.Event + } + export interface Session { + type: "Session" + value: t.types.pallet_session.pallet.Event + } + export interface Grandpa { + type: "Grandpa" + value: t.types.pallet_grandpa.pallet.Event + } + export interface ImOnline { + type: "ImOnline" + value: t.types.pallet_im_online.pallet.Event + } + export interface Democracy { + type: "Democracy" + value: t.types.pallet_democracy.pallet.Event + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.pallet.Event + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.pallet.Event + } + export interface PhragmenElection { + type: "PhragmenElection" + value: t.types.pallet_elections_phragmen.pallet.Event + } + export interface TechnicalMembership { + type: "TechnicalMembership" + value: t.types.pallet_membership.pallet.Event + } + export interface Treasury { + type: "Treasury" + value: t.types.pallet_treasury.pallet.Event + } + export interface Claims { + type: "Claims" + value: t.types.polkadot_runtime_common.claims.pallet.Event + } + export interface Vesting { + type: "Vesting" + value: t.types.pallet_vesting.pallet.Event + } + export interface Utility { + type: "Utility" + value: t.types.pallet_utility.pallet.Event + } + export interface Identity { + type: "Identity" + value: t.types.pallet_identity.pallet.Event + } + export interface Proxy { + type: "Proxy" + value: t.types.pallet_proxy.pallet.Event + } + export interface Multisig { + type: "Multisig" + value: t.types.pallet_multisig.pallet.Event + } + export interface Bounties { + type: "Bounties" + value: t.types.pallet_bounties.pallet.Event + } + export interface ChildBounties { + type: "ChildBounties" + value: t.types.pallet_child_bounties.pallet.Event + } + export interface Tips { + type: "Tips" + value: t.types.pallet_tips.pallet.Event + } + export interface ElectionProviderMultiPhase { + type: "ElectionProviderMultiPhase" + value: t.types.pallet_election_provider_multi_phase.pallet.Event + } + export interface VoterList { + type: "VoterList" + value: t.types.pallet_bags_list.pallet.Event + } + export interface NominationPools { + type: "NominationPools" + value: t.types.pallet_nomination_pools.pallet.Event + } + export interface FastUnstake { + type: "FastUnstake" + value: t.types.pallet_fast_unstake.pallet.Event + } + export interface ParaInclusion { + type: "ParaInclusion" + value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event + } + export interface Paras { + type: "Paras" + value: t.types.polkadot_runtime_parachains.paras.pallet.Event + } + export interface Ump { + type: "Ump" + value: t.types.polkadot_runtime_parachains.ump.pallet.Event + } + export interface Hrmp { + type: "Hrmp" + value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event + } + export interface ParasDisputes { + type: "ParasDisputes" + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event + } + export interface Registrar { + type: "Registrar" + value: t.types.polkadot_runtime_common.paras_registrar.pallet.Event + } + export interface Slots { + type: "Slots" + value: t.types.polkadot_runtime_common.slots.pallet.Event + } + export interface Auctions { + type: "Auctions" + value: t.types.polkadot_runtime_common.auctions.pallet.Event + } + export interface Crowdloan { + type: "Crowdloan" + value: t.types.polkadot_runtime_common.crowdloan.pallet.Event + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Event + } + export function System( + value: t.types.polkadot_runtime.RuntimeEvent.System["value"], + ): t.types.polkadot_runtime.RuntimeEvent.System { + return { type: "System", value } + } + export function Scheduler( + value: t.types.polkadot_runtime.RuntimeEvent.Scheduler["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Scheduler { + return { type: "Scheduler", value } + } + export function Preimage( + value: t.types.polkadot_runtime.RuntimeEvent.Preimage["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Preimage { + return { type: "Preimage", value } + } + export function Indices( + value: t.types.polkadot_runtime.RuntimeEvent.Indices["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Indices { + return { type: "Indices", value } + } + export function Balances( + value: t.types.polkadot_runtime.RuntimeEvent.Balances["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Balances { + return { type: "Balances", value } + } + export function TransactionPayment( + value: t.types.polkadot_runtime.RuntimeEvent.TransactionPayment["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TransactionPayment { + return { type: "TransactionPayment", value } + } + export function Staking( + value: t.types.polkadot_runtime.RuntimeEvent.Staking["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Staking { + return { type: "Staking", value } + } + export function Offences( + value: t.types.polkadot_runtime.RuntimeEvent.Offences["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Offences { + return { type: "Offences", value } + } + export function Session( + value: t.types.polkadot_runtime.RuntimeEvent.Session["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Session { + return { type: "Session", value } + } + export function Grandpa( + value: t.types.polkadot_runtime.RuntimeEvent.Grandpa["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Grandpa { + return { type: "Grandpa", value } + } + export function ImOnline( + value: t.types.polkadot_runtime.RuntimeEvent.ImOnline["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ImOnline { + return { type: "ImOnline", value } + } + export function Democracy( + value: t.types.polkadot_runtime.RuntimeEvent.Democracy["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Democracy { + return { type: "Democracy", value } + } + export function Council( + value: t.types.polkadot_runtime.RuntimeEvent.Council["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function PhragmenElection( + value: t.types.polkadot_runtime.RuntimeEvent.PhragmenElection["value"], + ): t.types.polkadot_runtime.RuntimeEvent.PhragmenElection { + return { type: "PhragmenElection", value } + } + export function TechnicalMembership( + value: t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership { + return { type: "TechnicalMembership", value } + } + export function Treasury( + value: t.types.polkadot_runtime.RuntimeEvent.Treasury["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Treasury { + return { type: "Treasury", value } + } + export function Claims( + value: t.types.polkadot_runtime.RuntimeEvent.Claims["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Claims { + return { type: "Claims", value } + } + export function Vesting( + value: t.types.polkadot_runtime.RuntimeEvent.Vesting["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Vesting { + return { type: "Vesting", value } + } + export function Utility( + value: t.types.polkadot_runtime.RuntimeEvent.Utility["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Utility { + return { type: "Utility", value } + } + export function Identity( + value: t.types.polkadot_runtime.RuntimeEvent.Identity["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Identity { + return { type: "Identity", value } + } + export function Proxy( + value: t.types.polkadot_runtime.RuntimeEvent.Proxy["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Proxy { + return { type: "Proxy", value } + } + export function Multisig( + value: t.types.polkadot_runtime.RuntimeEvent.Multisig["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Multisig { + return { type: "Multisig", value } + } + export function Bounties( + value: t.types.polkadot_runtime.RuntimeEvent.Bounties["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Bounties { + return { type: "Bounties", value } + } + export function ChildBounties( + value: t.types.polkadot_runtime.RuntimeEvent.ChildBounties["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ChildBounties { + return { type: "ChildBounties", value } + } + export function Tips( + value: t.types.polkadot_runtime.RuntimeEvent.Tips["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Tips { + return { type: "Tips", value } + } + export function ElectionProviderMultiPhase( + value: t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase { + return { type: "ElectionProviderMultiPhase", value } + } + export function VoterList( + value: t.types.polkadot_runtime.RuntimeEvent.VoterList["value"], + ): t.types.polkadot_runtime.RuntimeEvent.VoterList { + return { type: "VoterList", value } + } + export function NominationPools( + value: t.types.polkadot_runtime.RuntimeEvent.NominationPools["value"], + ): t.types.polkadot_runtime.RuntimeEvent.NominationPools { + return { type: "NominationPools", value } + } + export function FastUnstake( + value: t.types.polkadot_runtime.RuntimeEvent.FastUnstake["value"], + ): t.types.polkadot_runtime.RuntimeEvent.FastUnstake { + return { type: "FastUnstake", value } + } + export function ParaInclusion( + value: t.types.polkadot_runtime.RuntimeEvent.ParaInclusion["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ParaInclusion { + return { type: "ParaInclusion", value } + } + export function Paras( + value: t.types.polkadot_runtime.RuntimeEvent.Paras["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Paras { + return { type: "Paras", value } + } + export function Ump( + value: t.types.polkadot_runtime.RuntimeEvent.Ump["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Ump { + return { type: "Ump", value } + } + export function Hrmp( + value: t.types.polkadot_runtime.RuntimeEvent.Hrmp["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Hrmp { + return { type: "Hrmp", value } + } + export function ParasDisputes( + value: t.types.polkadot_runtime.RuntimeEvent.ParasDisputes["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ParasDisputes { + return { type: "ParasDisputes", value } + } + export function Registrar( + value: t.types.polkadot_runtime.RuntimeEvent.Registrar["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Registrar { + return { type: "Registrar", value } + } + export function Slots( + value: t.types.polkadot_runtime.RuntimeEvent.Slots["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Slots { + return { type: "Slots", value } + } + export function Auctions( + value: t.types.polkadot_runtime.RuntimeEvent.Auctions["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Auctions { + return { type: "Auctions", value } + } + export function Crowdloan( + value: t.types.polkadot_runtime.RuntimeEvent.Crowdloan["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Crowdloan { + return { type: "Crowdloan", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.RuntimeEvent.XcmPallet["value"], + ): t.types.polkadot_runtime.RuntimeEvent.XcmPallet { + return { type: "XcmPallet", value } + } +} + +export interface SessionKeys { + grandpa: t.types.sp_finality_grandpa.app.Public + babe: t.types.sp_consensus_babe.app.Public + im_online: t.types.pallet_im_online.sr25519.app_sr25519.Public + para_validator: t.types.polkadot_primitives.v2.validator_app.Public + para_assignment: t.types.polkadot_primitives.v2.assignment_app.Public + authority_discovery: t.types.sp_authority_discovery.app.Public +} + +export function SessionKeys(value: t.types.polkadot_runtime.SessionKeys) { + return value +} diff --git a/codegen/_output/rococo/polkadot_runtime_common/auctions/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_common/auctions/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_common/auctions/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_common/auctions/mod.ts diff --git a/codegen/_output/kusama/polkadot_runtime_common/auctions/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_common/auctions/pallet.ts similarity index 63% rename from codegen/_output/kusama/polkadot_runtime_common/auctions/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_common/auctions/pallet.ts index 4a353fb96..5e8049d64 100644 --- a/codegen/_output/kusama/polkadot_runtime_common/auctions/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_common/auctions/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$413 +export const $call: $.Codec = _codec.$413 -export const $error: $.Codec = _codec.$709 +export const $error: $.Codec = _codec.$709 -export const $event: $.Codec = _codec.$119 +export const $event: $.Codec = _codec.$119 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.auctions.pallet.Call.new_auction - | t.polkadot_runtime_common.auctions.pallet.Call.bid - | t.polkadot_runtime_common.auctions.pallet.Call.cancel_auction + | t.types.polkadot_runtime_common.auctions.pallet.Call.new_auction + | t.types.polkadot_runtime_common.auctions.pallet.Call.bid + | t.types.polkadot_runtime_common.auctions.pallet.Call.cancel_auction export namespace Call { /** * Create a new auction. @@ -23,8 +23,8 @@ export namespace Call { */ export interface new_auction { type: "new_auction" - duration: t.Compact - lease_period_index: t.Compact + duration: t.Compact + lease_period_index: t.Compact } /** * Make a new bid from an account (including a parachain account) for deploying a new @@ -46,11 +46,11 @@ export namespace Call { */ export interface bid { type: "bid" - para: t.Compact - auction_index: t.Compact - first_slot: t.Compact - last_slot: t.Compact - amount: t.Compact + para: t.Compact + auction_index: t.Compact + first_slot: t.Compact + last_slot: t.Compact + amount: t.Compact } /** * Cancel an in-progress auction. @@ -68,8 +68,8 @@ export namespace Call { * `lease_period_index` of the initial lease period of the four that are to be auctioned. */ export function new_auction( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Call.new_auction { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Call.new_auction { return { type: "new_auction", ...value } } /** @@ -91,8 +91,8 @@ export namespace Call { * bid win. This amount is held throughout the range. */ export function bid( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Call.bid { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Call.bid { return { type: "bid", ...value } } /** @@ -100,7 +100,7 @@ export namespace Call { * * Can only be called by Root origin. */ - export function cancel_auction(): t.polkadot_runtime_common.auctions.pallet.Call.cancel_auction { + export function cancel_auction(): t.types.polkadot_runtime_common.auctions.pallet.Call.cancel_auction { return { type: "cancel_auction" } } } @@ -117,13 +117,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted - | t.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed - | t.polkadot_runtime_common.auctions.pallet.Event.Reserved - | t.polkadot_runtime_common.auctions.pallet.Event.Unreserved - | t.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated - | t.polkadot_runtime_common.auctions.pallet.Event.BidAccepted - | t.polkadot_runtime_common.auctions.pallet.Event.WinningOffset + | t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted + | t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed + | t.types.polkadot_runtime_common.auctions.pallet.Event.Reserved + | t.types.polkadot_runtime_common.auctions.pallet.Event.Unreserved + | t.types.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated + | t.types.polkadot_runtime_common.auctions.pallet.Event.BidAccepted + | t.types.polkadot_runtime_common.auctions.pallet.Event.WinningOffset export namespace Event { /** * An auction started. Provides its index and the block number where it will begin to @@ -131,14 +131,14 @@ export namespace Event { */ export interface AuctionStarted { type: "AuctionStarted" - auction_index: t.u32 - lease_period: t.u32 - ending: t.u32 + auction_index: t.types.u32 + lease_period: t.types.u32 + ending: t.types.u32 } /** An auction ended. All funds become unreserved. */ export interface AuctionClosed { type: "AuctionClosed" - auction_index: t.u32 + auction_index: t.types.u32 } /** * Funds were reserved for a winning bid. First balance is the extra amount reserved. @@ -146,15 +146,15 @@ export namespace Event { */ export interface Reserved { type: "Reserved" - bidder: t.sp_core.crypto.AccountId32 - extra_reserved: t.u128 - total_amount: t.u128 + bidder: t.types.sp_core.crypto.AccountId32 + extra_reserved: t.types.u128 + total_amount: t.types.u128 } /** Funds were unreserved since bidder is no longer active. `[bidder, amount]` */ export interface Unreserved { type: "Unreserved" - bidder: t.sp_core.crypto.AccountId32 - amount: t.u128 + bidder: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve @@ -162,38 +162,38 @@ export namespace Event { */ export interface ReserveConfiscated { type: "ReserveConfiscated" - para_id: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - amount: t.u128 + para_id: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A new bid has been accepted as the current winner. */ export interface BidAccepted { type: "BidAccepted" - bidder: t.sp_core.crypto.AccountId32 - para_id: t.polkadot_parachain.primitives.Id - amount: t.u128 - first_slot: t.u32 - last_slot: t.u32 + bidder: t.types.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 + first_slot: t.types.u32 + last_slot: t.types.u32 } /** The winning offset was chosen for an auction. This will map into the `Winning` storage map. */ export interface WinningOffset { type: "WinningOffset" - auction_index: t.u32 - block_number: t.u32 + auction_index: t.types.u32 + block_number: t.types.u32 } /** * An auction started. Provides its index and the block number where it will begin to * close and the first lease period of the quadruplet that is auctioned. */ export function AuctionStarted( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted { return { type: "AuctionStarted", ...value } } /** An auction ended. All funds become unreserved. */ export function AuctionClosed( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed { return { type: "AuctionClosed", ...value } } /** @@ -201,14 +201,14 @@ export namespace Event { * Second is the total. */ export function Reserved( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.Reserved { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.Reserved { return { type: "Reserved", ...value } } /** Funds were unreserved since bidder is no longer active. `[bidder, amount]` */ export function Unreserved( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.Unreserved { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.Unreserved { return { type: "Unreserved", ...value } } /** @@ -216,20 +216,20 @@ export namespace Event { * but no parachain slot has been leased. */ export function ReserveConfiscated( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated { return { type: "ReserveConfiscated", ...value } } /** A new bid has been accepted as the current winner. */ export function BidAccepted( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.BidAccepted { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.BidAccepted { return { type: "BidAccepted", ...value } } /** The winning offset was chosen for an auction. This will map into the `Winning` storage map. */ export function WinningOffset( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.WinningOffset { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.WinningOffset { return { type: "WinningOffset", ...value } } } diff --git a/codegen/_output/rococo/types/polkadot_runtime_common/claims/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_common/claims/mod.ts new file mode 100644 index 000000000..f49778009 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_common/claims/mod.ts @@ -0,0 +1,38 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $ecdsaSignature: $.Codec = + _codec.$246 + +export const $ethereumAddress: $.Codec = + _codec.$73 + +export const $prevalidateAttests: $.Codec< + t.types.polkadot_runtime_common.claims.PrevalidateAttests +> = _codec.$736 + +export const $statementKind: $.Codec = + _codec.$251 + +export type EcdsaSignature = Uint8Array + +export function EcdsaSignature(value: t.types.polkadot_runtime_common.claims.EcdsaSignature) { + return value +} + +export type EthereumAddress = Uint8Array + +export function EthereumAddress(value: t.types.polkadot_runtime_common.claims.EthereumAddress) { + return value +} + +export function PrevalidateAttests() { + return null +} + +export type PrevalidateAttests = null + +export type StatementKind = "Regular" | "Saft" diff --git a/codegen/_output/kusama/polkadot_runtime_common/claims/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_common/claims/pallet.ts similarity index 74% rename from codegen/_output/kusama/polkadot_runtime_common/claims/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_common/claims/pallet.ts index 74fb89717..ccd1ddbab 100644 --- a/codegen/_output/kusama/polkadot_runtime_common/claims/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_common/claims/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$245 +export const $call: $.Codec = _codec.$245 -export const $error: $.Codec = _codec.$562 +export const $error: $.Codec = _codec.$562 -export const $event: $.Codec = _codec.$72 +export const $event: $.Codec = _codec.$72 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.claims.pallet.Call.claim - | t.polkadot_runtime_common.claims.pallet.Call.mint_claim - | t.polkadot_runtime_common.claims.pallet.Call.claim_attest - | t.polkadot_runtime_common.claims.pallet.Call.attest - | t.polkadot_runtime_common.claims.pallet.Call.move_claim + | t.types.polkadot_runtime_common.claims.pallet.Call.claim + | t.types.polkadot_runtime_common.claims.pallet.Call.mint_claim + | t.types.polkadot_runtime_common.claims.pallet.Call.claim_attest + | t.types.polkadot_runtime_common.claims.pallet.Call.attest + | t.types.polkadot_runtime_common.claims.pallet.Call.move_claim export namespace Call { /** * Make a claim to collect your DOTs. @@ -44,8 +44,8 @@ export namespace Call { */ export interface claim { type: "claim" - dest: t.sp_core.crypto.AccountId32 - ethereum_signature: t.polkadot_runtime_common.claims.EcdsaSignature + dest: t.types.sp_core.crypto.AccountId32 + ethereum_signature: t.types.polkadot_runtime_common.claims.EcdsaSignature } /** * Mint a new claim to collect DOTs. @@ -66,10 +66,10 @@ export namespace Call { */ export interface mint_claim { type: "mint_claim" - who: t.polkadot_runtime_common.claims.EthereumAddress - value: t.u128 - vesting_schedule: [t.u128, t.u128, t.u32] | undefined - statement: t.polkadot_runtime_common.claims.StatementKind | undefined + who: t.types.polkadot_runtime_common.claims.EthereumAddress + value: t.types.u128 + vesting_schedule: [t.types.u128, t.types.u128, t.types.u32] | undefined + statement: t.types.polkadot_runtime_common.claims.StatementKind | undefined } /** * Make a claim to collect your DOTs by signing a statement. @@ -101,8 +101,8 @@ export namespace Call { */ export interface claim_attest { type: "claim_attest" - dest: t.sp_core.crypto.AccountId32 - ethereum_signature: t.polkadot_runtime_common.claims.EcdsaSignature + dest: t.types.sp_core.crypto.AccountId32 + ethereum_signature: t.types.polkadot_runtime_common.claims.EcdsaSignature statement: Uint8Array } /** @@ -130,9 +130,9 @@ export namespace Call { } export interface move_claim { type: "move_claim" - old: t.polkadot_runtime_common.claims.EthereumAddress - new: t.polkadot_runtime_common.claims.EthereumAddress - maybe_preclaim: t.sp_core.crypto.AccountId32 | undefined + old: t.types.polkadot_runtime_common.claims.EthereumAddress + new: t.types.polkadot_runtime_common.claims.EthereumAddress + maybe_preclaim: t.types.sp_core.crypto.AccountId32 | undefined } /** * Make a claim to collect your DOTs. @@ -161,8 +161,8 @@ export namespace Call { * */ export function claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.claim { return { type: "claim", ...value } } /** @@ -183,8 +183,8 @@ export namespace Call { * */ export function mint_claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.mint_claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.mint_claim { return { type: "mint_claim", ...value } } /** @@ -216,8 +216,8 @@ export namespace Call { * */ export function claim_attest( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.claim_attest { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.claim_attest { return { type: "claim_attest", ...value } } /** @@ -240,13 +240,13 @@ export namespace Call { * */ export function attest( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.attest { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.attest { return { type: "attest", ...value } } export function move_claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.move_claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.move_claim { return { type: "move_claim", ...value } } } @@ -261,19 +261,19 @@ export type Error = | "VestedBalanceExists" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.polkadot_runtime_common.claims.pallet.Event.Claimed +export type Event = t.types.polkadot_runtime_common.claims.pallet.Event.Claimed export namespace Event { /** Someone claimed some DOTs. */ export interface Claimed { type: "Claimed" - who: t.sp_core.crypto.AccountId32 - ethereum_address: t.polkadot_runtime_common.claims.EthereumAddress - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + ethereum_address: t.types.polkadot_runtime_common.claims.EthereumAddress + amount: t.types.u128 } /** Someone claimed some DOTs. */ export function Claimed( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Event.Claimed { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Event.Claimed { return { type: "Claimed", ...value } } } diff --git a/codegen/_output/rococo/types/polkadot_runtime_common/crowdloan/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_common/crowdloan/mod.ts new file mode 100644 index 000000000..9879ba1f4 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_common/crowdloan/mod.ts @@ -0,0 +1,59 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $fundInfo: $.Codec = _codec.$710 + +export const $lastContribution: $.Codec< + t.types.polkadot_runtime_common.crowdloan.LastContribution +> = _codec.$711 + +export interface FundInfo { + depositor: t.types.sp_core.crypto.AccountId32 + verifier: t.types.sp_runtime.MultiSigner | undefined + deposit: t.types.u128 + raised: t.types.u128 + end: t.types.u32 + cap: t.types.u128 + last_contribution: t.types.polkadot_runtime_common.crowdloan.LastContribution + first_period: t.types.u32 + last_period: t.types.u32 + fund_index: t.types.u32 +} + +export function FundInfo(value: t.types.polkadot_runtime_common.crowdloan.FundInfo) { + return value +} + +export type LastContribution = + | t.types.polkadot_runtime_common.crowdloan.LastContribution.Never + | t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding + | t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending +export namespace LastContribution { + export interface Never { + type: "Never" + } + export interface PreEnding { + type: "PreEnding" + value: t.types.u32 + } + export interface Ending { + type: "Ending" + value: t.types.u32 + } + export function Never(): t.types.polkadot_runtime_common.crowdloan.LastContribution.Never { + return { type: "Never" } + } + export function PreEnding( + value: t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding["value"], + ): t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding { + return { type: "PreEnding", value } + } + export function Ending( + value: t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending["value"], + ): t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending { + return { type: "Ending", value } + } +} diff --git a/codegen/_output/westend/polkadot_runtime_common/crowdloan/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_common/crowdloan/pallet.ts similarity index 57% rename from codegen/_output/westend/polkadot_runtime_common/crowdloan/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_common/crowdloan/pallet.ts index 1cdbdc4bb..194d2991e 100644 --- a/codegen/_output/westend/polkadot_runtime_common/crowdloan/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_common/crowdloan/pallet.ts @@ -1,24 +1,24 @@ -import { $, C } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $, C } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$415 +export const $call: $.Codec = _codec.$415 -export const $error: $.Codec = _codec.$712 +export const $error: $.Codec = _codec.$712 -export const $event: $.Codec = _codec.$120 +export const $event: $.Codec = _codec.$120 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.crowdloan.pallet.Call.create - | t.polkadot_runtime_common.crowdloan.pallet.Call.contribute - | t.polkadot_runtime_common.crowdloan.pallet.Call.withdraw - | t.polkadot_runtime_common.crowdloan.pallet.Call.refund - | t.polkadot_runtime_common.crowdloan.pallet.Call.dissolve - | t.polkadot_runtime_common.crowdloan.pallet.Call.edit - | t.polkadot_runtime_common.crowdloan.pallet.Call.add_memo - | t.polkadot_runtime_common.crowdloan.pallet.Call.poke - | t.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.create + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.withdraw + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.refund + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.dissolve + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.edit + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.add_memo + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.poke + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all export namespace Call { /** * Create a new crowdloaning campaign for a parachain slot with the given lease period range. @@ -28,12 +28,12 @@ export namespace Call { */ export interface create { type: "create" - index: t.Compact - cap: t.Compact - first_period: t.Compact - last_period: t.Compact - end: t.Compact - verifier: t.sp_runtime.MultiSigner | undefined + index: t.Compact + cap: t.Compact + first_period: t.Compact + last_period: t.Compact + end: t.Compact + verifier: t.types.sp_runtime.MultiSigner | undefined } /** * Contribute to a crowd sale. This will transfer some balance over to fund a parachain @@ -41,9 +41,9 @@ export namespace Call { */ export interface contribute { type: "contribute" - index: t.Compact - value: t.Compact - signature: t.sp_runtime.MultiSignature | undefined + index: t.Compact + value: t.Compact + signature: t.types.sp_runtime.MultiSignature | undefined } /** * Withdraw full balance of a specific contributor. @@ -66,8 +66,8 @@ export namespace Call { */ export interface withdraw { type: "withdraw" - who: t.sp_core.crypto.AccountId32 - index: t.Compact + who: t.types.sp_core.crypto.AccountId32 + index: t.Compact } /** * Automatically refund contributors of an ended crowdloan. @@ -78,12 +78,12 @@ export namespace Call { */ export interface refund { type: "refund" - index: t.Compact + index: t.Compact } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export interface dissolve { type: "dissolve" - index: t.Compact + index: t.Compact } /** * Edit the configuration for an in-progress crowdloan. @@ -92,12 +92,12 @@ export namespace Call { */ export interface edit { type: "edit" - index: t.Compact - cap: t.Compact - first_period: t.Compact - last_period: t.Compact - end: t.Compact - verifier: t.sp_runtime.MultiSigner | undefined + index: t.Compact + cap: t.Compact + first_period: t.Compact + last_period: t.Compact + end: t.Compact + verifier: t.types.sp_runtime.MultiSigner | undefined } /** * Add an optional memo to an existing crowdloan contribution. @@ -106,7 +106,7 @@ export namespace Call { */ export interface add_memo { type: "add_memo" - index: t.polkadot_parachain.primitives.Id + index: t.types.polkadot_parachain.primitives.Id memo: Uint8Array } /** @@ -116,7 +116,7 @@ export namespace Call { */ export interface poke { type: "poke" - index: t.polkadot_parachain.primitives.Id + index: t.types.polkadot_parachain.primitives.Id } /** * Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain @@ -124,8 +124,8 @@ export namespace Call { */ export interface contribute_all { type: "contribute_all" - index: t.Compact - signature: t.sp_runtime.MultiSignature | undefined + index: t.Compact + signature: t.types.sp_runtime.MultiSignature | undefined } /** * Create a new crowdloaning campaign for a parachain slot with the given lease period range. @@ -134,8 +134,8 @@ export namespace Call { * by the parachain manager. */ export function create( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.create { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.create { return { type: "create", ...value } } /** @@ -143,8 +143,8 @@ export namespace Call { * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.contribute { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute { return { type: "contribute", ...value } } /** @@ -167,8 +167,8 @@ export namespace Call { * - `index`: The parachain to whose crowdloan the contribution was made. */ export function withdraw( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.withdraw { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.withdraw { return { type: "withdraw", ...value } } /** @@ -179,14 +179,14 @@ export namespace Call { * Origin must be signed, but can come from anyone. */ export function refund( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.refund { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.refund { return { type: "refund", ...value } } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export function dissolve( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.dissolve { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.dissolve { return { type: "dissolve", ...value } } /** @@ -195,8 +195,8 @@ export namespace Call { * Can only be called by Root origin. */ export function edit( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.edit { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.edit { return { type: "edit", ...value } } /** @@ -205,8 +205,8 @@ export namespace Call { * Origin must be Signed, and the user must have contributed to the crowdloan. */ export function add_memo( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.add_memo { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.add_memo { return { type: "add_memo", ...value } } /** @@ -215,8 +215,8 @@ export namespace Call { * Origin must be Signed, and the fund has non-zero raise. */ export function poke( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.poke { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.poke { return { type: "poke", ...value } } /** @@ -224,8 +224,8 @@ export namespace Call { * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute_all( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all { return { type: "contribute_all", ...value } } } @@ -258,35 +258,35 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.crowdloan.pallet.Event.Created - | t.polkadot_runtime_common.crowdloan.pallet.Event.Contributed - | t.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew - | t.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded - | t.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded - | t.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved - | t.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult - | t.polkadot_runtime_common.crowdloan.pallet.Event.Edited - | t.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated - | t.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Created + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Contributed + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Edited + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise export namespace Event { /** Create a new crowdloaning campaign. */ export interface Created { type: "Created" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Contributed to a crowd sale. */ export interface Contributed { type: "Contributed" - who: t.sp_core.crypto.AccountId32 - fund_index: t.polkadot_parachain.primitives.Id - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + fund_index: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 } /** Withdrew full balance of a contributor. */ export interface Withdrew { type: "Withdrew" - who: t.sp_core.crypto.AccountId32 - fund_index: t.polkadot_parachain.primitives.Id - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + fund_index: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 } /** * The loans in a fund have been partially dissolved, i.e. there are some left @@ -294,57 +294,57 @@ export namespace Event { */ export interface PartiallyRefunded { type: "PartiallyRefunded" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** All loans in a fund have been refunded. */ export interface AllRefunded { type: "AllRefunded" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Fund is dissolved. */ export interface Dissolved { type: "Dissolved" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** The result of trying to submit a new bid to the Slots pallet. */ export interface HandleBidResult { type: "HandleBidResult" - para_id: t.polkadot_parachain.primitives.Id - result: null | C.ChainError + para_id: t.types.polkadot_parachain.primitives.Id + result: null | C.ChainError } /** The configuration to a crowdloan has been edited. */ export interface Edited { type: "Edited" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** A memo has been updated. */ export interface MemoUpdated { type: "MemoUpdated" - who: t.sp_core.crypto.AccountId32 - para_id: t.polkadot_parachain.primitives.Id + who: t.types.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id memo: Uint8Array } /** A parachain has been moved to `NewRaise` */ export interface AddedToNewRaise { type: "AddedToNewRaise" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Create a new crowdloaning campaign. */ export function Created( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Created { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Created { return { type: "Created", ...value } } /** Contributed to a crowd sale. */ export function Contributed( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Contributed { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Contributed { return { type: "Contributed", ...value } } /** Withdrew full balance of a contributor. */ export function Withdrew( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew { return { type: "Withdrew", ...value } } /** @@ -352,44 +352,44 @@ export namespace Event { * over child keys that still need to be killed. */ export function PartiallyRefunded( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded { return { type: "PartiallyRefunded", ...value } } /** All loans in a fund have been refunded. */ export function AllRefunded( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded { return { type: "AllRefunded", ...value } } /** Fund is dissolved. */ export function Dissolved( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved { return { type: "Dissolved", ...value } } /** The result of trying to submit a new bid to the Slots pallet. */ export function HandleBidResult( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult { return { type: "HandleBidResult", ...value } } /** The configuration to a crowdloan has been edited. */ export function Edited( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Edited { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Edited { return { type: "Edited", ...value } } /** A memo has been updated. */ export function MemoUpdated( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated { return { type: "MemoUpdated", ...value } } /** A parachain has been moved to `NewRaise` */ export function AddedToNewRaise( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise { return { type: "AddedToNewRaise", ...value } } } diff --git a/codegen/_output/rococo/polkadot_runtime_common/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_common/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_common/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_common/mod.ts diff --git a/codegen/_output/rococo/types/polkadot_runtime_common/paras_registrar/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_common/paras_registrar/mod.ts new file mode 100644 index 000000000..f6bde2e47 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_common/paras_registrar/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $paraInfo: $.Codec = + _codec.$701 + +export interface ParaInfo { + manager: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + locked: boolean +} + +export function ParaInfo(value: t.types.polkadot_runtime_common.paras_registrar.ParaInfo) { + return value +} diff --git a/codegen/_output/westend/polkadot_runtime_common/paras_registrar/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_common/paras_registrar/pallet.ts similarity index 65% rename from codegen/_output/westend/polkadot_runtime_common/paras_registrar/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_common/paras_registrar/pallet.ts index 8dcb503a8..0eee601ee 100644 --- a/codegen/_output/westend/polkadot_runtime_common/paras_registrar/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_common/paras_registrar/pallet.ts @@ -1,24 +1,27 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$411 +export const $call: $.Codec = + _codec.$411 -export const $error: $.Codec = _codec.$702 +export const $error: $.Codec = + _codec.$702 -export const $event: $.Codec = _codec.$117 +export const $event: $.Codec = + _codec.$117 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.paras_registrar.pallet.Call.register - | t.polkadot_runtime_common.paras_registrar.pallet.Call.force_register - | t.polkadot_runtime_common.paras_registrar.pallet.Call.deregister - | t.polkadot_runtime_common.paras_registrar.pallet.Call.swap - | t.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock - | t.polkadot_runtime_common.paras_registrar.pallet.Call.reserve - | t.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock - | t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade - | t.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.register + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.force_register + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.deregister + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.swap + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.reserve + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head export namespace Call { /** * Register head data and validation code for a reserved Para Id. @@ -38,9 +41,9 @@ export namespace Call { */ export interface register { type: "register" - id: t.polkadot_parachain.primitives.Id - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode + id: t.types.polkadot_parachain.primitives.Id + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Force the registration of a Para Id on the relay chain. @@ -52,11 +55,11 @@ export namespace Call { */ export interface force_register { type: "force_register" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 - id: t.polkadot_parachain.primitives.Id - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + id: t.types.polkadot_parachain.primitives.Id + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Deregister a Para Id, freeing all data and returning any deposit. @@ -65,7 +68,7 @@ export namespace Call { */ export interface deregister { type: "deregister" - id: t.polkadot_parachain.primitives.Id + id: t.types.polkadot_parachain.primitives.Id } /** * Swap a parachain with another parachain or parathread. @@ -82,8 +85,8 @@ export namespace Call { */ export interface swap { type: "swap" - id: t.polkadot_parachain.primitives.Id - other: t.polkadot_parachain.primitives.Id + id: t.types.polkadot_parachain.primitives.Id + other: t.types.polkadot_parachain.primitives.Id } /** * Remove a manager lock from a para. This will allow the manager of a @@ -93,7 +96,7 @@ export namespace Call { */ export interface remove_lock { type: "remove_lock" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Reserve a Para Id on the relay chain. @@ -122,7 +125,7 @@ export namespace Call { */ export interface add_lock { type: "add_lock" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Schedule a parachain upgrade. @@ -131,8 +134,8 @@ export namespace Call { */ export interface schedule_code_upgrade { type: "schedule_code_upgrade" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Set the parachain's current head. @@ -141,8 +144,8 @@ export namespace Call { */ export interface set_current_head { type: "set_current_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** * Register head data and validation code for a reserved Para Id. @@ -161,8 +164,8 @@ export namespace Call { * The `Registered` event is emitted in case of success. */ export function register( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.register { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.register { return { type: "register", ...value } } /** @@ -174,8 +177,8 @@ export namespace Call { * can be registered, including sub-1000 IDs which are System Parachains. */ export function force_register( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.force_register { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.force_register { return { type: "force_register", ...value } } /** @@ -184,8 +187,8 @@ export namespace Call { * The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread. */ export function deregister( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.deregister { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.deregister { return { type: "deregister", ...value } } /** @@ -202,8 +205,8 @@ export namespace Call { * and the auction deposit are switched. */ export function swap( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.swap { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.swap { return { type: "swap", ...value } } /** @@ -213,8 +216,8 @@ export namespace Call { * Can only be called by the Root origin or the parachain. */ export function remove_lock( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock { return { type: "remove_lock", ...value } } /** @@ -233,7 +236,7 @@ export namespace Call { * ## Events * The `Reserved` event is emitted in case of success, which provides the ID reserved for use. */ - export function reserve(): t.polkadot_runtime_common.paras_registrar.pallet.Call.reserve { + export function reserve(): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.reserve { return { type: "reserve" } } /** @@ -243,8 +246,8 @@ export namespace Call { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function add_lock( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock { return { type: "add_lock", ...value } } /** @@ -254,10 +257,10 @@ export namespace Call { */ export function schedule_code_upgrade( value: Omit< - t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, "type" >, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade { + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade { return { type: "schedule_code_upgrade", ...value } } /** @@ -266,8 +269,11 @@ export namespace Call { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function set_current_head( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head { + value: Omit< + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head, + "type" + >, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head { return { type: "set_current_head", ...value } } } @@ -291,37 +297,37 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Registered - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Registered + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved export namespace Event { export interface Registered { type: "Registered" - para_id: t.polkadot_parachain.primitives.Id - manager: t.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + manager: t.types.sp_core.crypto.AccountId32 } export interface Deregistered { type: "Deregistered" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } export interface Reserved { type: "Reserved" - para_id: t.polkadot_parachain.primitives.Id - who: t.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + who: t.types.sp_core.crypto.AccountId32 } export function Registered( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Registered { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Registered { return { type: "Registered", ...value } } export function Deregistered( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered { return { type: "Deregistered", ...value } } export function Reserved( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved { return { type: "Reserved", ...value } } } diff --git a/codegen/_output/rococo/polkadot_runtime_common/slots/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_common/slots/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_common/slots/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_common/slots/mod.ts diff --git a/codegen/_output/westend/polkadot_runtime_common/slots/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_common/slots/pallet.ts similarity index 61% rename from codegen/_output/westend/polkadot_runtime_common/slots/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_common/slots/pallet.ts index 9abcf29d1..1887e3651 100644 --- a/codegen/_output/westend/polkadot_runtime_common/slots/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_common/slots/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$412 +export const $call: $.Codec = _codec.$412 -export const $error: $.Codec = _codec.$704 +export const $error: $.Codec = _codec.$704 -export const $event: $.Codec = _codec.$118 +export const $event: $.Codec = _codec.$118 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.slots.pallet.Call.force_lease - | t.polkadot_runtime_common.slots.pallet.Call.clear_all_leases - | t.polkadot_runtime_common.slots.pallet.Call.trigger_onboard + | t.types.polkadot_runtime_common.slots.pallet.Call.force_lease + | t.types.polkadot_runtime_common.slots.pallet.Call.clear_all_leases + | t.types.polkadot_runtime_common.slots.pallet.Call.trigger_onboard export namespace Call { /** * Just a connect into the `lease_out` call, in case Root wants to force some lease to happen @@ -22,11 +22,11 @@ export namespace Call { */ export interface force_lease { type: "force_lease" - para: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - amount: t.u128 - period_begin: t.u32 - period_count: t.u32 + para: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 + period_begin: t.types.u32 + period_count: t.types.u32 } /** * Clear all leases for a Para Id, refunding any deposits back to the original owners. @@ -35,7 +35,7 @@ export namespace Call { */ export interface clear_all_leases { type: "clear_all_leases" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Try to onboard a parachain that has a lease for the current lease period. @@ -48,7 +48,7 @@ export namespace Call { */ export interface trigger_onboard { type: "trigger_onboard" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Just a connect into the `lease_out` call, in case Root wants to force some lease to happen @@ -57,8 +57,8 @@ export namespace Call { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function force_lease( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.force_lease { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.force_lease { return { type: "force_lease", ...value } } /** @@ -67,8 +67,8 @@ export namespace Call { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function clear_all_leases( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.clear_all_leases { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.clear_all_leases { return { type: "clear_all_leases", ...value } } /** @@ -81,8 +81,8 @@ export namespace Call { * Origin must be signed, but can be called by anyone. */ export function trigger_onboard( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.trigger_onboard { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.trigger_onboard { return { type: "trigger_onboard", ...value } } } @@ -92,13 +92,13 @@ export type Error = "ParaNotOnboarding" | "LeaseError" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod - | t.polkadot_runtime_common.slots.pallet.Event.Leased + | t.types.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod + | t.types.polkadot_runtime_common.slots.pallet.Event.Leased export namespace Event { /** A new `[lease_period]` is beginning. */ export interface NewLeasePeriod { type: "NewLeasePeriod" - lease_period: t.u32 + lease_period: t.types.u32 } /** * A para has won the right to a continuous set of lease periods as a parachain. @@ -107,17 +107,17 @@ export namespace Event { */ export interface Leased { type: "Leased" - para_id: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - period_begin: t.u32 - period_count: t.u32 - extra_reserved: t.u128 - total_amount: t.u128 + para_id: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + period_begin: t.types.u32 + period_count: t.types.u32 + extra_reserved: t.types.u128 + total_amount: t.types.u128 } /** A new `[lease_period]` is beginning. */ export function NewLeasePeriod( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod { return { type: "NewLeasePeriod", ...value } } /** @@ -126,8 +126,8 @@ export namespace Event { * Second balance is the total amount reserved. */ export function Leased( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Event.Leased { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Event.Leased { return { type: "Leased", ...value } } } diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/configuration/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/configuration/mod.ts new file mode 100644 index 000000000..d8267fcbd --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/configuration/mod.ts @@ -0,0 +1,61 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $hostConfiguration: $.Codec< + t.types.polkadot_runtime_parachains.configuration.HostConfiguration +> = _codec.$638 + +export interface HostConfiguration { + max_code_size: t.types.u32 + max_head_data_size: t.types.u32 + max_upward_queue_count: t.types.u32 + max_upward_queue_size: t.types.u32 + max_upward_message_size: t.types.u32 + max_upward_message_num_per_candidate: t.types.u32 + hrmp_max_message_num_per_candidate: t.types.u32 + validation_upgrade_cooldown: t.types.u32 + validation_upgrade_delay: t.types.u32 + max_pov_size: t.types.u32 + max_downward_message_size: t.types.u32 + ump_service_total_weight: t.types.sp_weights.weight_v2.Weight + hrmp_max_parachain_outbound_channels: t.types.u32 + hrmp_max_parathread_outbound_channels: t.types.u32 + hrmp_sender_deposit: t.types.u128 + hrmp_recipient_deposit: t.types.u128 + hrmp_channel_max_capacity: t.types.u32 + hrmp_channel_max_total_size: t.types.u32 + hrmp_max_parachain_inbound_channels: t.types.u32 + hrmp_max_parathread_inbound_channels: t.types.u32 + hrmp_channel_max_message_size: t.types.u32 + code_retention_period: t.types.u32 + parathread_cores: t.types.u32 + parathread_retries: t.types.u32 + group_rotation_frequency: t.types.u32 + chain_availability_period: t.types.u32 + thread_availability_period: t.types.u32 + scheduling_lookahead: t.types.u32 + max_validators_per_core: t.types.u32 | undefined + max_validators: t.types.u32 | undefined + dispute_period: t.types.u32 + dispute_post_conclusion_acceptance_period: t.types.u32 + dispute_max_spam_slots: t.types.u32 + dispute_conclusion_by_time_out_period: t.types.u32 + no_show_slots: t.types.u32 + n_delay_tranches: t.types.u32 + zeroth_delay_tranche_width: t.types.u32 + needed_approvals: t.types.u32 + relay_vrf_modulo_samples: t.types.u32 + ump_max_individual_weight: t.types.sp_weights.weight_v2.Weight + pvf_checking_enabled: boolean + pvf_voting_ttl: t.types.u32 + minimum_validation_upgrade_delay: t.types.u32 +} + +export function HostConfiguration( + value: t.types.polkadot_runtime_parachains.configuration.HostConfiguration, +) { + return value +} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/configuration/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/configuration/pallet.ts similarity index 55% rename from codegen/_output/kusama/polkadot_runtime_parachains/configuration/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/configuration/pallet.ts index bdc792cc2..ff0b4bbd4 100644 --- a/codegen/_output/kusama/polkadot_runtime_parachains/configuration/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/configuration/pallet.ts @@ -1,148 +1,150 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$375 +export const $call: $.Codec = + _codec.$375 -export const $error: $.Codec = _codec.$641 +export const $error: $.Codec = + _codec.$641 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check export namespace Call { /** Set the validation upgrade cooldown. */ export interface set_validation_upgrade_cooldown { type: "set_validation_upgrade_cooldown" - new: t.u32 + new: t.types.u32 } /** Set the validation upgrade delay. */ export interface set_validation_upgrade_delay { type: "set_validation_upgrade_delay" - new: t.u32 + new: t.types.u32 } /** Set the acceptance period for an included candidate. */ export interface set_code_retention_period { type: "set_code_retention_period" - new: t.u32 + new: t.types.u32 } /** Set the max validation code size for incoming upgrades. */ export interface set_max_code_size { type: "set_max_code_size" - new: t.u32 + new: t.types.u32 } /** Set the max POV block size for incoming upgrades. */ export interface set_max_pov_size { type: "set_max_pov_size" - new: t.u32 + new: t.types.u32 } /** Set the max head data size for paras. */ export interface set_max_head_data_size { type: "set_max_head_data_size" - new: t.u32 + new: t.types.u32 } /** Set the number of parathread execution cores. */ export interface set_parathread_cores { type: "set_parathread_cores" - new: t.u32 + new: t.types.u32 } /** Set the number of retries for a particular parathread. */ export interface set_parathread_retries { type: "set_parathread_retries" - new: t.u32 + new: t.types.u32 } /** Set the parachain validator-group rotation frequency */ export interface set_group_rotation_frequency { type: "set_group_rotation_frequency" - new: t.u32 + new: t.types.u32 } /** Set the availability period for parachains. */ export interface set_chain_availability_period { type: "set_chain_availability_period" - new: t.u32 + new: t.types.u32 } /** Set the availability period for parathreads. */ export interface set_thread_availability_period { type: "set_thread_availability_period" - new: t.u32 + new: t.types.u32 } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export interface set_scheduling_lookahead { type: "set_scheduling_lookahead" - new: t.u32 + new: t.types.u32 } /** Set the maximum number of validators to assign to any core. */ export interface set_max_validators_per_core { type: "set_max_validators_per_core" - new: t.u32 | undefined + new: t.types.u32 | undefined } /** Set the maximum number of validators to use in parachain consensus. */ export interface set_max_validators { type: "set_max_validators" - new: t.u32 | undefined + new: t.types.u32 | undefined } /** Set the dispute period, in number of sessions to keep for disputes. */ export interface set_dispute_period { type: "set_dispute_period" - new: t.u32 + new: t.types.u32 } /** Set the dispute post conclusion acceptance period. */ export interface set_dispute_post_conclusion_acceptance_period { type: "set_dispute_post_conclusion_acceptance_period" - new: t.u32 + new: t.types.u32 } /** Set the maximum number of dispute spam slots. */ export interface set_dispute_max_spam_slots { type: "set_dispute_max_spam_slots" - new: t.u32 + new: t.types.u32 } /** Set the dispute conclusion by time out period. */ export interface set_dispute_conclusion_by_time_out_period { type: "set_dispute_conclusion_by_time_out_period" - new: t.u32 + new: t.types.u32 } /** * Set the no show slots, in number of number of consensus slots. @@ -150,67 +152,67 @@ export namespace Call { */ export interface set_no_show_slots { type: "set_no_show_slots" - new: t.u32 + new: t.types.u32 } /** Set the total number of delay tranches. */ export interface set_n_delay_tranches { type: "set_n_delay_tranches" - new: t.u32 + new: t.types.u32 } /** Set the zeroth delay tranche width. */ export interface set_zeroth_delay_tranche_width { type: "set_zeroth_delay_tranche_width" - new: t.u32 + new: t.types.u32 } /** Set the number of validators needed to approve a block. */ export interface set_needed_approvals { type: "set_needed_approvals" - new: t.u32 + new: t.types.u32 } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export interface set_relay_vrf_modulo_samples { type: "set_relay_vrf_modulo_samples" - new: t.u32 + new: t.types.u32 } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export interface set_max_upward_queue_count { type: "set_max_upward_queue_count" - new: t.u32 + new: t.types.u32 } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export interface set_max_upward_queue_size { type: "set_max_upward_queue_size" - new: t.u32 + new: t.types.u32 } /** Set the critical downward message size. */ export interface set_max_downward_message_size { type: "set_max_downward_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export interface set_ump_service_total_weight { type: "set_ump_service_total_weight" - new: t.sp_weights.weight_v2.Weight + new: t.types.sp_weights.weight_v2.Weight } /** Sets the maximum size of an upward message that can be sent by a candidate. */ export interface set_max_upward_message_size { type: "set_max_upward_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of messages that a candidate can contain. */ export interface set_max_upward_message_num_per_candidate { type: "set_max_upward_message_num_per_candidate" - new: t.u32 + new: t.types.u32 } /** Sets the number of sessions after which an HRMP open channel request expires. */ export interface set_hrmp_open_request_ttl { type: "set_hrmp_open_request_ttl" - new: t.u32 + new: t.types.u32 } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export interface set_hrmp_sender_deposit { type: "set_hrmp_sender_deposit" - new: t.u128 + new: t.types.u128 } /** * Sets the amount of funds that the recipient should provide for accepting opening an HRMP @@ -218,52 +220,52 @@ export namespace Call { */ export interface set_hrmp_recipient_deposit { type: "set_hrmp_recipient_deposit" - new: t.u128 + new: t.types.u128 } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export interface set_hrmp_channel_max_capacity { type: "set_hrmp_channel_max_capacity" - new: t.u32 + new: t.types.u32 } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export interface set_hrmp_channel_max_total_size { type: "set_hrmp_channel_max_total_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export interface set_hrmp_max_parachain_inbound_channels { type: "set_hrmp_max_parachain_inbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export interface set_hrmp_max_parathread_inbound_channels { type: "set_hrmp_max_parathread_inbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export interface set_hrmp_channel_max_message_size { type: "set_hrmp_channel_max_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export interface set_hrmp_max_parachain_outbound_channels { type: "set_hrmp_max_parachain_outbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export interface set_hrmp_max_parathread_outbound_channels { type: "set_hrmp_max_parathread_outbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export interface set_hrmp_max_message_num_per_candidate { type: "set_hrmp_max_message_num_per_candidate" - new: t.u32 + new: t.types.u32 } /** Sets the maximum amount of weight any individual upward message may consume. */ export interface set_ump_max_individual_weight { type: "set_ump_max_individual_weight" - new: t.sp_weights.weight_v2.Weight + new: t.types.sp_weights.weight_v2.Weight } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export interface set_pvf_checking_enabled { @@ -273,7 +275,7 @@ export namespace Call { /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export interface set_pvf_voting_ttl { type: "set_pvf_voting_ttl" - new: t.u32 + new: t.types.u32 } /** * Sets the minimum delay between announcing the upgrade block for a parachain until the @@ -283,7 +285,7 @@ export namespace Call { */ export interface set_minimum_validation_upgrade_delay { type: "set_minimum_validation_upgrade_delay" - new: t.u32 + new: t.types.u32 } /** * Setting this to true will disable consistency checks for the configuration setters. @@ -296,151 +298,163 @@ export namespace Call { /** Set the validation upgrade cooldown. */ export function set_validation_upgrade_cooldown( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown { return { type: "set_validation_upgrade_cooldown", ...value } } /** Set the validation upgrade delay. */ export function set_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay { return { type: "set_validation_upgrade_delay", ...value } } /** Set the acceptance period for an included candidate. */ export function set_code_retention_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period { return { type: "set_code_retention_period", ...value } } /** Set the max validation code size for incoming upgrades. */ export function set_max_code_size( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size { return { type: "set_max_code_size", ...value } } /** Set the max POV block size for incoming upgrades. */ export function set_max_pov_size( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size { return { type: "set_max_pov_size", ...value } } /** Set the max head data size for paras. */ export function set_max_head_data_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size { return { type: "set_max_head_data_size", ...value } } /** Set the number of parathread execution cores. */ export function set_parathread_cores( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores { return { type: "set_parathread_cores", ...value } } /** Set the number of retries for a particular parathread. */ export function set_parathread_retries( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries { return { type: "set_parathread_retries", ...value } } /** Set the parachain validator-group rotation frequency */ export function set_group_rotation_frequency( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency { return { type: "set_group_rotation_frequency", ...value } } /** Set the availability period for parachains. */ export function set_chain_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period { return { type: "set_chain_availability_period", ...value } } /** Set the availability period for parathreads. */ export function set_thread_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period { return { type: "set_thread_availability_period", ...value } } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export function set_scheduling_lookahead( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead { return { type: "set_scheduling_lookahead", ...value } } /** Set the maximum number of validators to assign to any core. */ export function set_max_validators_per_core( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core { return { type: "set_max_validators_per_core", ...value } } /** Set the maximum number of validators to use in parachain consensus. */ export function set_max_validators( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators { return { type: "set_max_validators", ...value } } /** Set the dispute period, in number of sessions to keep for disputes. */ export function set_dispute_period( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period { return { type: "set_dispute_period", ...value } } /** Set the dispute post conclusion acceptance period. */ export function set_dispute_post_conclusion_acceptance_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period { return { type: "set_dispute_post_conclusion_acceptance_period", ...value } } /** Set the maximum number of dispute spam slots. */ export function set_dispute_max_spam_slots( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots { return { type: "set_dispute_max_spam_slots", ...value } } /** Set the dispute conclusion by time out period. */ export function set_dispute_conclusion_by_time_out_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period { return { type: "set_dispute_conclusion_by_time_out_period", ...value } } /** @@ -448,116 +462,119 @@ export namespace Call { * Must be at least 1. */ export function set_no_show_slots( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots { return { type: "set_no_show_slots", ...value } } /** Set the total number of delay tranches. */ export function set_n_delay_tranches( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches { return { type: "set_n_delay_tranches", ...value } } /** Set the zeroth delay tranche width. */ export function set_zeroth_delay_tranche_width( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width { return { type: "set_zeroth_delay_tranche_width", ...value } } /** Set the number of validators needed to approve a block. */ export function set_needed_approvals( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals { return { type: "set_needed_approvals", ...value } } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export function set_relay_vrf_modulo_samples( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples { return { type: "set_relay_vrf_modulo_samples", ...value } } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_count( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count { return { type: "set_max_upward_queue_count", ...value } } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size { return { type: "set_max_upward_queue_size", ...value } } /** Set the critical downward message size. */ export function set_max_downward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size { return { type: "set_max_downward_message_size", ...value } } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export function set_ump_service_total_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight { return { type: "set_ump_service_total_weight", ...value } } /** Sets the maximum size of an upward message that can be sent by a candidate. */ export function set_max_upward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size { return { type: "set_max_upward_message_size", ...value } } /** Sets the maximum number of messages that a candidate can contain. */ export function set_max_upward_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate { return { type: "set_max_upward_message_num_per_candidate", ...value } } /** Sets the number of sessions after which an HRMP open channel request expires. */ export function set_hrmp_open_request_ttl( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl { return { type: "set_hrmp_open_request_ttl", ...value } } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export function set_hrmp_sender_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit { return { type: "set_hrmp_sender_deposit", ...value } } /** @@ -566,106 +583,109 @@ export namespace Call { */ export function set_hrmp_recipient_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit { return { type: "set_hrmp_recipient_deposit", ...value } } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_capacity( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity { return { type: "set_hrmp_channel_max_capacity", ...value } } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_total_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size { return { type: "set_hrmp_channel_max_total_size", ...value } } /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export function set_hrmp_max_parachain_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels { return { type: "set_hrmp_max_parachain_inbound_channels", ...value } } /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export function set_hrmp_max_parathread_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels { return { type: "set_hrmp_max_parathread_inbound_channels", ...value } } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export function set_hrmp_channel_max_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size { return { type: "set_hrmp_channel_max_message_size", ...value } } /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export function set_hrmp_max_parachain_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels { return { type: "set_hrmp_max_parachain_outbound_channels", ...value } } /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export function set_hrmp_max_parathread_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels { return { type: "set_hrmp_max_parathread_outbound_channels", ...value } } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export function set_hrmp_max_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate { return { type: "set_hrmp_max_message_num_per_candidate", ...value } } /** Sets the maximum amount of weight any individual upward message may consume. */ export function set_ump_max_individual_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight { return { type: "set_ump_max_individual_weight", ...value } } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export function set_pvf_checking_enabled( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled { return { type: "set_pvf_checking_enabled", ...value } } /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export function set_pvf_voting_ttl( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl { return { type: "set_pvf_voting_ttl", ...value } } /** @@ -676,10 +696,10 @@ export namespace Call { */ export function set_minimum_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay { return { type: "set_minimum_validation_upgrade_delay", ...value } } /** @@ -688,10 +708,10 @@ export namespace Call { */ export function set_bypass_consistency_check( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check { return { type: "set_bypass_consistency_check", ...value } } } diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/disputes/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/disputes/mod.ts new file mode 100644 index 000000000..78ba141ad --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/disputes/mod.ts @@ -0,0 +1,16 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $disputeLocation: $.Codec< + t.types.polkadot_runtime_parachains.disputes.DisputeLocation +> = _codec.$115 + +export const $disputeResult: $.Codec = + _codec.$116 + +export type DisputeLocation = "Local" | "Remote" + +export type DisputeResult = "Valid" | "Invalid" diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/disputes/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/disputes/pallet.ts similarity index 57% rename from codegen/_output/rococo/polkadot_runtime_parachains/disputes/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/disputes/pallet.ts index 5c35c65c3..7a45998ea 100644 --- a/codegen/_output/rococo/polkadot_runtime_parachains/disputes/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/disputes/pallet.ts @@ -1,12 +1,14 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$410 +export const $call: $.Codec = _codec.$410 -export const $error: $.Codec = _codec.$700 +export const $error: $.Codec = + _codec.$700 -export const $event: $.Codec = _codec.$113 +export const $event: $.Codec = + _codec.$113 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = "force_unfreeze" @@ -23,17 +25,17 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut - | t.polkadot_runtime_parachains.disputes.pallet.Event.Revert + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert export namespace Event { /** A dispute has been initiated. \[candidate hash, dispute location\] */ export interface DisputeInitiated { type: "DisputeInitiated" value: [ - t.polkadot_core_primitives.CandidateHash, - t.polkadot_runtime_parachains.disputes.DisputeLocation, + t.types.polkadot_core_primitives.CandidateHash, + t.types.polkadot_runtime_parachains.disputes.DisputeLocation, ] } /** @@ -43,8 +45,8 @@ export namespace Event { export interface DisputeConcluded { type: "DisputeConcluded" value: [ - t.polkadot_core_primitives.CandidateHash, - t.polkadot_runtime_parachains.disputes.DisputeResult, + t.types.polkadot_core_primitives.CandidateHash, + t.types.polkadot_runtime_parachains.disputes.DisputeResult, ] } /** @@ -53,7 +55,7 @@ export namespace Event { */ export interface DisputeTimedOut { type: "DisputeTimedOut" - value: t.polkadot_core_primitives.CandidateHash + value: t.types.polkadot_core_primitives.CandidateHash } /** * A dispute has concluded with supermajority against a candidate. @@ -63,12 +65,12 @@ export namespace Event { */ export interface Revert { type: "Revert" - value: t.u32 + value: t.types.u32 } /** A dispute has been initiated. \[candidate hash, dispute location\] */ export function DisputeInitiated( - ...value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated["value"] - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated { + ...value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated["value"] + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated { return { type: "DisputeInitiated", value } } /** @@ -76,8 +78,8 @@ export namespace Event { * `\[para id, candidate hash, dispute result\]` */ export function DisputeConcluded( - ...value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded["value"] - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded { + ...value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded["value"] + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded { return { type: "DisputeConcluded", value } } /** @@ -85,8 +87,8 @@ export namespace Event { * `\[para id, candidate hash\]` */ export function DisputeTimedOut( - value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut["value"], - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut { + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut["value"], + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut { return { type: "DisputeTimedOut", value } } /** @@ -96,8 +98,8 @@ export namespace Event { * number of the child of the last known valid block in the chain. */ export function Revert( - value: t.polkadot_runtime_parachains.disputes.pallet.Event.Revert["value"], - ): t.polkadot_runtime_parachains.disputes.pallet.Event.Revert { + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert["value"], + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert { return { type: "Revert", value } } } diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/dmp/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/dmp/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_parachains/dmp/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/dmp/mod.ts diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/dmp/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/dmp/pallet.ts new file mode 100644 index 000000000..05133e66d --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/dmp/pallet.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $call: $.Codec = _codec.$407 + +/** Contains one variant per dispatchable that can be called by an extrinsic. */ +export type Call = never diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/hrmp/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/hrmp/mod.ts new file mode 100644 index 000000000..b63b5391f --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/hrmp/mod.ts @@ -0,0 +1,42 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $hrmpChannel: $.Codec = + _codec.$688 + +export const $hrmpOpenChannelRequest: $.Codec< + t.types.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest +> = _codec.$686 + +export interface HrmpChannel { + max_capacity: t.types.u32 + max_total_size: t.types.u32 + max_message_size: t.types.u32 + msg_count: t.types.u32 + total_size: t.types.u32 + mqc_head: t.types.primitive_types.H256 | undefined + sender_deposit: t.types.u128 + recipient_deposit: t.types.u128 +} + +export function HrmpChannel(value: t.types.polkadot_runtime_parachains.hrmp.HrmpChannel) { + return value +} + +export interface HrmpOpenChannelRequest { + confirmed: boolean + _age: t.types.u32 + sender_deposit: t.types.u128 + max_message_size: t.types.u32 + max_capacity: t.types.u32 + max_total_size: t.types.u32 +} + +export function HrmpOpenChannelRequest( + value: t.types.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest, +) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/hrmp/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/hrmp/pallet.ts similarity index 64% rename from codegen/_output/polkadot/polkadot_runtime_parachains/hrmp/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/hrmp/pallet.ts index e9e897ba8..0c15ec391 100644 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/hrmp/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/hrmp/pallet.ts @@ -1,23 +1,23 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$409 +export const $call: $.Codec = _codec.$409 -export const $error: $.Codec = _codec.$694 +export const $error: $.Codec = _codec.$694 -export const $event: $.Codec = _codec.$111 +export const $event: $.Codec = _codec.$111 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel export namespace Call { /** * Initiate opening a channel from a parachain to a given recipient with given channel @@ -33,9 +33,9 @@ export namespace Call { */ export interface hrmp_init_open_channel { type: "hrmp_init_open_channel" - recipient: t.polkadot_parachain.primitives.Id - proposed_max_capacity: t.u32 - proposed_max_message_size: t.u32 + recipient: t.types.polkadot_parachain.primitives.Id + proposed_max_capacity: t.types.u32 + proposed_max_message_size: t.types.u32 } /** * Accept a pending open channel request from the given sender. @@ -44,7 +44,7 @@ export namespace Call { */ export interface hrmp_accept_open_channel { type: "hrmp_accept_open_channel" - sender: t.polkadot_parachain.primitives.Id + sender: t.types.polkadot_parachain.primitives.Id } /** * Initiate unilateral closing of a channel. The origin must be either the sender or the @@ -54,7 +54,7 @@ export namespace Call { */ export interface hrmp_close_channel { type: "hrmp_close_channel" - channel_id: t.polkadot_parachain.primitives.HrmpChannelId + channel_id: t.types.polkadot_parachain.primitives.HrmpChannelId } /** * This extrinsic triggers the cleanup of all the HRMP storage items that @@ -67,9 +67,9 @@ export namespace Call { */ export interface force_clean_hrmp { type: "force_clean_hrmp" - para: t.polkadot_parachain.primitives.Id - inbound: t.u32 - outbound: t.u32 + para: t.types.polkadot_parachain.primitives.Id + inbound: t.types.u32 + outbound: t.types.u32 } /** * Force process HRMP open channel requests. @@ -81,7 +81,7 @@ export namespace Call { */ export interface force_process_hrmp_open { type: "force_process_hrmp_open" - channels: t.u32 + channels: t.types.u32 } /** * Force process HRMP close channel requests. @@ -93,7 +93,7 @@ export namespace Call { */ export interface force_process_hrmp_close { type: "force_process_hrmp_close" - channels: t.u32 + channels: t.types.u32 } /** * This cancels a pending open channel request. It can be canceled by either of the sender @@ -107,8 +107,8 @@ export namespace Call { */ export interface hrmp_cancel_open_request { type: "hrmp_cancel_open_request" - channel_id: t.polkadot_parachain.primitives.HrmpChannelId - open_requests: t.u32 + channel_id: t.types.polkadot_parachain.primitives.HrmpChannelId + open_requests: t.types.u32 } /** * Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although @@ -120,10 +120,10 @@ export namespace Call { */ export interface force_open_hrmp_channel { type: "force_open_hrmp_channel" - sender: t.polkadot_parachain.primitives.Id - recipient: t.polkadot_parachain.primitives.Id - max_capacity: t.u32 - max_message_size: t.u32 + sender: t.types.polkadot_parachain.primitives.Id + recipient: t.types.polkadot_parachain.primitives.Id + max_capacity: t.types.u32 + max_message_size: t.types.u32 } /** * Initiate opening a channel from a parachain to a given recipient with given channel @@ -138,8 +138,11 @@ export namespace Call { * change. */ export function hrmp_init_open_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel { return { type: "hrmp_init_open_channel", ...value } } /** @@ -148,8 +151,11 @@ export namespace Call { * The channel will be opened only on the next session boundary. */ export function hrmp_accept_open_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel { return { type: "hrmp_accept_open_channel", ...value } } /** @@ -159,8 +165,8 @@ export namespace Call { * The closure can only happen on a session change. */ export function hrmp_close_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel { + value: Omit, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel { return { type: "hrmp_close_channel", ...value } } /** @@ -173,8 +179,8 @@ export namespace Call { * Number of inbound and outbound channels for `para` must be provided as witness data of weighing. */ export function force_clean_hrmp( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp { + value: Omit, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp { return { type: "force_clean_hrmp", ...value } } /** @@ -186,8 +192,11 @@ export namespace Call { * Total number of opening channels must be provided as witness data of weighing. */ export function force_process_hrmp_open( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open { return { type: "force_process_hrmp_open", ...value } } /** @@ -199,8 +208,11 @@ export namespace Call { * Total number of closing channels must be provided as witness data of weighing. */ export function force_process_hrmp_close( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close { return { type: "force_process_hrmp_close", ...value } } /** @@ -214,8 +226,11 @@ export namespace Call { * witness data. */ export function hrmp_cancel_open_request( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request { return { type: "hrmp_cancel_open_request", ...value } } /** @@ -227,8 +242,11 @@ export namespace Call { * Relay Chain, e.g. a common good parachain. */ export function force_open_hrmp_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel { return { type: "force_open_hrmp_channel", ...value } } } @@ -257,11 +275,11 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted - | t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed - | t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened export namespace Event { /** * Open HRMP channel requested. @@ -269,7 +287,12 @@ export namespace Event { */ export interface OpenChannelRequested { type: "OpenChannelRequested" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.Id, + t.types.u32, + t.types.u32, + ] } /** * An HRMP channel request sent by the receiver was canceled by either party. @@ -277,17 +300,23 @@ export namespace Event { */ export interface OpenChannelCanceled { type: "OpenChannelCanceled" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.HrmpChannelId] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.HrmpChannelId, + ] } /** Open HRMP channel accepted. `[sender, recipient]` */ export interface OpenChannelAccepted { type: "OpenChannelAccepted" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id] + value: [t.types.polkadot_parachain.primitives.Id, t.types.polkadot_parachain.primitives.Id] } /** HRMP channel closed. `[by_parachain, channel_id]` */ export interface ChannelClosed { type: "ChannelClosed" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.HrmpChannelId] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.HrmpChannelId, + ] } /** * An HRMP channel was opened via Root origin. @@ -295,15 +324,20 @@ export namespace Event { */ export interface HrmpChannelForceOpened { type: "HrmpChannelForceOpened" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.Id, + t.types.u32, + t.types.u32, + ] } /** * Open HRMP channel requested. * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` */ export function OpenChannelRequested( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested { return { type: "OpenChannelRequested", value } } /** @@ -311,20 +345,20 @@ export namespace Event { * `[by_parachain, channel_id]` */ export function OpenChannelCanceled( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled { return { type: "OpenChannelCanceled", value } } /** Open HRMP channel accepted. `[sender, recipient]` */ export function OpenChannelAccepted( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted { return { type: "OpenChannelAccepted", value } } /** HRMP channel closed. `[by_parachain, channel_id]` */ export function ChannelClosed( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed { return { type: "ChannelClosed", value } } /** @@ -332,8 +366,8 @@ export namespace Event { * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` */ export function HrmpChannelForceOpened( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened { return { type: "HrmpChannelForceOpened", value } } } diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/inclusion/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/inclusion/mod.ts new file mode 100644 index 000000000..1045f887b --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/inclusion/mod.ts @@ -0,0 +1,41 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $availabilityBitfieldRecord: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord +> = _codec.$644 + +export const $candidatePendingAvailability: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability +> = _codec.$645 + +export interface AvailabilityBitfieldRecord { + bitfield: t.types.polkadot_primitives.v2.AvailabilityBitfield + submitted_at: t.types.u32 +} + +export function AvailabilityBitfieldRecord( + value: t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord, +) { + return value +} + +export interface CandidatePendingAvailability { + core: t.types.polkadot_primitives.v2.CoreIndex + hash: t.types.polkadot_core_primitives.CandidateHash + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + availability_votes: $.BitSequence + backers: $.BitSequence + relay_parent_number: t.types.u32 + backed_in_number: t.types.u32 + backing_group: t.types.polkadot_primitives.v2.GroupIndex +} + +export function CandidatePendingAvailability( + value: t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability, +) { + return value +} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/inclusion/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/inclusion/pallet.ts similarity index 54% rename from codegen/_output/kusama/polkadot_runtime_parachains/inclusion/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/inclusion/pallet.ts index fe8870e7c..23c9b26fd 100644 --- a/codegen/_output/kusama/polkadot_runtime_parachains/inclusion/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/inclusion/pallet.ts @@ -1,12 +1,14 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$377 +export const $call: $.Codec = _codec.$377 -export const $error: $.Codec = _codec.$646 +export const $error: $.Codec = + _codec.$646 -export const $event: $.Codec = _codec.$95 +export const $event: $.Codec = + _codec.$95 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = never @@ -45,55 +47,55 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut export namespace Event { /** A candidate was backed. `[candidate, head_data]` */ export interface CandidateBacked { type: "CandidateBacked" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, - t.polkadot_primitives.v2.GroupIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.GroupIndex, ] } /** A candidate was included. `[candidate, head_data]` */ export interface CandidateIncluded { type: "CandidateIncluded" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, - t.polkadot_primitives.v2.GroupIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.GroupIndex, ] } /** A candidate timed out. `[candidate, head_data]` */ export interface CandidateTimedOut { type: "CandidateTimedOut" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, ] } /** A candidate was backed. `[candidate, head_data]` */ export function CandidateBacked( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked { return { type: "CandidateBacked", value } } /** A candidate was included. `[candidate, head_data]` */ export function CandidateIncluded( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded { return { type: "CandidateIncluded", value } } /** A candidate timed out. `[candidate, head_data]` */ export function CandidateTimedOut( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut { return { type: "CandidateTimedOut", value } } } diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/initializer/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/initializer/mod.ts new file mode 100644 index 000000000..27d90b3d3 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/initializer/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $bufferedSessionChange: $.Codec< + t.types.polkadot_runtime_parachains.initializer.BufferedSessionChange +> = _codec.$681 + +export interface BufferedSessionChange { + validators: Array + queued: Array + session_index: t.types.u32 +} + +export function BufferedSessionChange( + value: t.types.polkadot_runtime_parachains.initializer.BufferedSessionChange, +) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/initializer/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/initializer/pallet.ts similarity index 57% rename from codegen/_output/polkadot/polkadot_runtime_parachains/initializer/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/initializer/pallet.ts index 339c024f4..03632cb0a 100644 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/initializer/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/initializer/pallet.ts @@ -1,11 +1,12 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$406 +export const $call: $.Codec = + _codec.$406 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.initializer.pallet.Call.force_approve +export type Call = t.types.polkadot_runtime_parachains.initializer.pallet.Call.force_approve export namespace Call { /** * Issue a signal to the consensus engine to forcibly act as though all parachain @@ -14,7 +15,7 @@ export namespace Call { */ export interface force_approve { type: "force_approve" - up_to: t.u32 + up_to: t.types.u32 } /** * Issue a signal to the consensus engine to forcibly act as though all parachain @@ -22,8 +23,8 @@ export namespace Call { * chain are valid and should be finalized. */ export function force_approve( - value: Omit, - ): t.polkadot_runtime_parachains.initializer.pallet.Call.force_approve { + value: Omit, + ): t.types.polkadot_runtime_parachains.initializer.pallet.Call.force_approve { return { type: "force_approve", ...value } } } diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_parachains/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/mod.ts diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/origin/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/origin/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_parachains/origin/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/origin/mod.ts diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/origin/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/origin/pallet.ts new file mode 100644 index 000000000..6b80987cd --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/origin/pallet.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $origin: $.Codec = + _codec.$260 + +export type Origin = t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain +export namespace Origin { + export interface Parachain { + type: "Parachain" + value: t.types.polkadot_parachain.primitives.Id + } + export function Parachain( + value: t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain["value"], + ): t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain { + return { type: "Parachain", value } + } +} diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/paras/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/paras/mod.ts new file mode 100644 index 000000000..0e4bab946 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/paras/mod.ts @@ -0,0 +1,106 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $paraGenesisArgs: $.Codec = + _codec.$678 + +export const $paraLifecycle: $.Codec = + _codec.$670 + +export const $paraPastCodeMeta: $.Codec< + t.types.polkadot_runtime_parachains.paras.ParaPastCodeMeta +> = _codec.$672 + +export const $pvfCheckActiveVoteState: $.Codec< + t.types.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState +> = _codec.$666 + +export const $pvfCheckCause: $.Codec = + _codec.$668 + +export const $replacementTimes: $.Codec< + t.types.polkadot_runtime_parachains.paras.ReplacementTimes +> = _codec.$674 + +export interface ParaGenesisArgs { + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode + parachain: boolean +} + +export function ParaGenesisArgs(value: t.types.polkadot_runtime_parachains.paras.ParaGenesisArgs) { + return value +} + +export type ParaLifecycle = + | "Onboarding" + | "Parathread" + | "Parachain" + | "UpgradingParathread" + | "DowngradingParachain" + | "OffboardingParathread" + | "OffboardingParachain" + +export interface ParaPastCodeMeta { + upgrade_times: Array + last_pruned: t.types.u32 | undefined +} + +export function ParaPastCodeMeta( + value: t.types.polkadot_runtime_parachains.paras.ParaPastCodeMeta, +) { + return value +} + +export interface PvfCheckActiveVoteState { + votes_accept: $.BitSequence + votes_reject: $.BitSequence + age: t.types.u32 + created_at: t.types.u32 + causes: Array +} + +export function PvfCheckActiveVoteState( + value: t.types.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState, +) { + return value +} + +export type PvfCheckCause = + | t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding + | t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade +export namespace PvfCheckCause { + export interface Onboarding { + type: "Onboarding" + value: t.types.polkadot_parachain.primitives.Id + } + export interface Upgrade { + type: "Upgrade" + id: t.types.polkadot_parachain.primitives.Id + relay_parent_number: t.types.u32 + } + export function Onboarding( + value: t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding["value"], + ): t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding { + return { type: "Onboarding", value } + } + export function Upgrade( + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade { + return { type: "Upgrade", ...value } + } +} + +export interface ReplacementTimes { + expected_at: t.types.u32 + activated_at: t.types.u32 +} + +export function ReplacementTimes( + value: t.types.polkadot_runtime_parachains.paras.ReplacementTimes, +) { + return value +} diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/paras/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/paras/pallet.ts similarity index 58% rename from codegen/_output/polkadot/polkadot_runtime_parachains/paras/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/paras/pallet.ts index fc656fe9e..9bb96a5de 100644 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/paras/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/paras/pallet.ts @@ -1,48 +1,48 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$404 +export const $call: $.Codec = _codec.$404 -export const $error: $.Codec = _codec.$679 +export const $error: $.Codec = _codec.$679 -export const $event: $.Codec = _codec.$107 +export const $event: $.Codec = _codec.$107 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code - | t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head - | t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade - | t.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head - | t.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action - | t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code - | t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code - | t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action + | t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement export namespace Call { /** Set the storage for the parachain validation code immediately. */ export interface force_set_current_code { type: "force_set_current_code" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode } /** Set the storage for the current parachain head data immediately. */ export interface force_set_current_head { type: "force_set_current_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export interface force_schedule_code_upgrade { type: "force_schedule_code_upgrade" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode - relay_parent_number: t.u32 + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode + relay_parent_number: t.types.u32 } /** Note a new block head for para within the context of the current block. */ export interface force_note_new_head { type: "force_note_new_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** * Put a parachain directly into the next session's action queue. @@ -51,7 +51,7 @@ export namespace Call { */ export interface force_queue_action { type: "force_queue_action" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Adds the validation code to the storage. @@ -70,7 +70,7 @@ export namespace Call { */ export interface add_trusted_validation_code { type: "add_trusted_validation_code" - validation_code: t.polkadot_parachain.primitives.ValidationCode + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Remove the validation code from the storage iff the reference count is 0. @@ -81,7 +81,7 @@ export namespace Call { */ export interface poke_unused_validation_code { type: "poke_unused_validation_code" - validation_code_hash: t.polkadot_parachain.primitives.ValidationCodeHash + validation_code_hash: t.types.polkadot_parachain.primitives.ValidationCodeHash } /** * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and @@ -89,34 +89,40 @@ export namespace Call { */ export interface include_pvf_check_statement { type: "include_pvf_check_statement" - stmt: t.polkadot_primitives.v2.PvfCheckStatement - signature: t.polkadot_primitives.v2.validator_app.Signature + stmt: t.types.polkadot_primitives.v2.PvfCheckStatement + signature: t.types.polkadot_primitives.v2.validator_app.Signature } /** Set the storage for the parachain validation code immediately. */ export function force_set_current_code( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code, + "type" + >, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code { return { type: "force_set_current_code", ...value } } /** Set the storage for the current parachain head data immediately. */ export function force_set_current_head( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head, + "type" + >, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head { return { type: "force_set_current_head", ...value } } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export function force_schedule_code_upgrade( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade { return { type: "force_schedule_code_upgrade", ...value } } /** Note a new block head for para within the context of the current block. */ export function force_note_new_head( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head { return { type: "force_note_new_head", ...value } } /** @@ -125,8 +131,8 @@ export namespace Call { * initializer... */ export function force_queue_action( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action { return { type: "force_queue_action", ...value } } /** @@ -146,10 +152,10 @@ export namespace Call { */ export function add_trusted_validation_code( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, + t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code { return { type: "add_trusted_validation_code", ...value } } /** @@ -161,10 +167,10 @@ export namespace Call { */ export function poke_unused_validation_code( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, + t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code { return { type: "poke_unused_validation_code", ...value } } /** @@ -173,10 +179,10 @@ export namespace Call { */ export function include_pvf_check_statement( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, + t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement { return { type: "include_pvf_check_statement", ...value } } } @@ -199,39 +205,39 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated - | t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated - | t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled - | t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted - | t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled + | t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected export namespace Event { /** Current code has been updated for a Para. `para_id` */ export interface CurrentCodeUpdated { type: "CurrentCodeUpdated" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** Current head has been updated for a Para. `para_id` */ export interface CurrentHeadUpdated { type: "CurrentHeadUpdated" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A code upgrade has been scheduled for a Para. `para_id` */ export interface CodeUpgradeScheduled { type: "CodeUpgradeScheduled" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A new head has been noted for a Para. `para_id` */ export interface NewHeadNoted { type: "NewHeadNoted" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A para has been queued to execute pending actions. `para_id` */ export interface ActionQueued { type: "ActionQueued" - value: [t.polkadot_parachain.primitives.Id, t.u32] + value: [t.types.polkadot_parachain.primitives.Id, t.types.u32] } /** * The given para either initiated or subscribed to a PVF check for the given validation @@ -239,7 +245,10 @@ export namespace Event { */ export interface PvfCheckStarted { type: "PvfCheckStarted" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** * The given validation code was accepted by the PVF pre-checking vote. @@ -247,7 +256,10 @@ export namespace Event { */ export interface PvfCheckAccepted { type: "PvfCheckAccepted" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** * The given validation code was rejected by the PVF pre-checking vote. @@ -255,36 +267,39 @@ export namespace Event { */ export interface PvfCheckRejected { type: "PvfCheckRejected" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** Current code has been updated for a Para. `para_id` */ export function CurrentCodeUpdated( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated { return { type: "CurrentCodeUpdated", value } } /** Current head has been updated for a Para. `para_id` */ export function CurrentHeadUpdated( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated { return { type: "CurrentHeadUpdated", value } } /** A code upgrade has been scheduled for a Para. `para_id` */ export function CodeUpgradeScheduled( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled { return { type: "CodeUpgradeScheduled", value } } /** A new head has been noted for a Para. `para_id` */ export function NewHeadNoted( - value: t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted { return { type: "NewHeadNoted", value } } /** A para has been queued to execute pending actions. `para_id` */ export function ActionQueued( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued { return { type: "ActionQueued", value } } /** @@ -292,8 +307,8 @@ export namespace Event { * code. `code_hash` `para_id` */ export function PvfCheckStarted( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted { return { type: "PvfCheckStarted", value } } /** @@ -301,8 +316,8 @@ export namespace Event { * `code_hash` `para_id` */ export function PvfCheckAccepted( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted { return { type: "PvfCheckAccepted", value } } /** @@ -310,8 +325,8 @@ export namespace Event { * `code_hash` `para_id` */ export function PvfCheckRejected( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected { return { type: "PvfCheckRejected", value } } } diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/paras_inherent/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/paras_inherent/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_parachains/paras_inherent/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/paras_inherent/mod.ts diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/paras_inherent/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/paras_inherent/pallet.ts similarity index 52% rename from codegen/_output/polkadot/polkadot_runtime_parachains/paras_inherent/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/paras_inherent/pallet.ts index 4570ac2fc..b806978aa 100644 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/paras_inherent/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/paras_inherent/pallet.ts @@ -1,24 +1,25 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$378 +export const $call: $.Codec = + _codec.$378 -export const $error: $.Codec = +export const $error: $.Codec = _codec.$652 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter +export type Call = t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter export namespace Call { /** Enter the paras inherent. This will process bitfields and backed candidates. */ export interface enter { type: "enter" - data: t.polkadot_primitives.v2.InherentData + data: t.types.polkadot_primitives.v2.InherentData } /** Enter the paras inherent. This will process bitfields and backed candidates. */ export function enter( - value: Omit, - ): t.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter { return { type: "enter", ...value } } } diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/scheduler.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/scheduler.ts new file mode 100644 index 000000000..a4b6ffb37 --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/scheduler.ts @@ -0,0 +1,75 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $assignmentKind: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.AssignmentKind +> = _codec.$665 + +export const $coreAssignment: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.CoreAssignment +> = _codec.$664 + +export const $parathreadClaimQueue: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue +> = _codec.$654 + +export const $queuedParathread: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.QueuedParathread +> = _codec.$656 + +export type AssignmentKind = + | t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain + | t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread +export namespace AssignmentKind { + export interface Parachain { + type: "Parachain" + } + export interface Parathread { + type: "Parathread" + value: [t.types.polkadot_primitives.v2.collator_app.Public, t.types.u32] + } + export function Parachain(): t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain { + return { type: "Parachain" } + } + export function Parathread( + ...value: t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread["value"] + ): t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread { + return { type: "Parathread", value } + } +} + +export interface CoreAssignment { + core: t.types.polkadot_primitives.v2.CoreIndex + para_id: t.types.polkadot_parachain.primitives.Id + kind: t.types.polkadot_runtime_parachains.scheduler.AssignmentKind + group_idx: t.types.polkadot_primitives.v2.GroupIndex +} + +export function CoreAssignment( + value: t.types.polkadot_runtime_parachains.scheduler.CoreAssignment, +) { + return value +} + +export interface ParathreadClaimQueue { + queue: Array + next_core_offset: t.types.u32 +} + +export function ParathreadClaimQueue( + value: t.types.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue, +) { + return value +} + +export interface QueuedParathread { + claim: t.types.polkadot_primitives.v2.ParathreadEntry + core_offset: t.types.u32 +} + +export function QueuedParathread( + value: t.types.polkadot_runtime_parachains.scheduler.QueuedParathread, +) { + return value +} diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/shared/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/shared/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_parachains/shared/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/shared/mod.ts diff --git a/codegen/_output/rococo/types/polkadot_runtime_parachains/shared/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/shared/pallet.ts new file mode 100644 index 000000000..64ac9630f --- /dev/null +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/shared/pallet.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $call: $.Codec = _codec.$376 + +/** Contains one variant per dispatchable that can be called by an extrinsic. */ +export type Call = never diff --git a/codegen/_output/rococo/polkadot_runtime_parachains/ump/mod.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/ump/mod.ts similarity index 100% rename from codegen/_output/rococo/polkadot_runtime_parachains/ump/mod.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/ump/mod.ts diff --git a/codegen/_output/polkadot/polkadot_runtime_parachains/ump/pallet.ts b/codegen/_output/rococo/types/polkadot_runtime_parachains/ump/pallet.ts similarity index 60% rename from codegen/_output/polkadot/polkadot_runtime_parachains/ump/pallet.ts rename to codegen/_output/rococo/types/polkadot_runtime_parachains/ump/pallet.ts index 61ae89bb9..c26129599 100644 --- a/codegen/_output/polkadot/polkadot_runtime_parachains/ump/pallet.ts +++ b/codegen/_output/rococo/types/polkadot_runtime_parachains/ump/pallet.ts @@ -1,15 +1,15 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$408 +export const $call: $.Codec = _codec.$408 -export const $error: $.Codec = _codec.$685 +export const $error: $.Codec = _codec.$685 -export const $event: $.Codec = _codec.$108 +export const $event: $.Codec = _codec.$108 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.ump.pallet.Call.service_overweight +export type Call = t.types.polkadot_runtime_parachains.ump.pallet.Call.service_overweight export namespace Call { /** * Service a single overweight upward message. @@ -27,8 +27,8 @@ export namespace Call { */ export interface service_overweight { type: "service_overweight" - index: t.u64 - weight_limit: t.sp_weights.weight_v2.Weight + index: t.types.u64 + weight_limit: t.types.sp_weights.weight_v2.Weight } /** * Service a single overweight upward message. @@ -45,8 +45,8 @@ export namespace Call { * - `OverweightServiced`: On success. */ export function service_overweight( - value: Omit, - ): t.polkadot_runtime_parachains.ump.pallet.Call.service_overweight { + value: Omit, + ): t.types.polkadot_runtime_parachains.ump.pallet.Call.service_overweight { return { type: "service_overweight", ...value } } } @@ -56,13 +56,13 @@ export type Error = "UnknownMessageIndex" | "WeightOverLimit" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat - | t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion - | t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward - | t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted - | t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived - | t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued - | t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced + | t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat + | t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion + | t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward + | t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted + | t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived + | t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued + | t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced export namespace Event { /** * Upward message is invalid XCM. @@ -86,7 +86,7 @@ export namespace Event { */ export interface ExecutedUpward { type: "ExecutedUpward" - value: [Uint8Array, t.xcm.v2.traits.Outcome] + value: [Uint8Array, t.types.xcm.v2.traits.Outcome] } /** * The weight limit for handling upward messages was reached. @@ -94,7 +94,7 @@ export namespace Event { */ export interface WeightExhausted { type: "WeightExhausted" - value: [Uint8Array, t.sp_weights.weight_v2.Weight, t.sp_weights.weight_v2.Weight] + value: [Uint8Array, t.types.sp_weights.weight_v2.Weight, t.types.sp_weights.weight_v2.Weight] } /** * Some upward messages have been received and will be processed. @@ -102,7 +102,7 @@ export namespace Event { */ export interface UpwardMessagesReceived { type: "UpwardMessagesReceived" - value: [t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [t.types.polkadot_parachain.primitives.Id, t.types.u32, t.types.u32] } /** * The weight budget was exceeded for an individual upward message. @@ -114,7 +114,12 @@ export namespace Event { */ export interface OverweightEnqueued { type: "OverweightEnqueued" - value: [t.polkadot_parachain.primitives.Id, Uint8Array, t.u64, t.sp_weights.weight_v2.Weight] + value: [ + t.types.polkadot_parachain.primitives.Id, + Uint8Array, + t.types.u64, + t.types.sp_weights.weight_v2.Weight, + ] } /** * Upward message from the overweight queue was executed with the given actual weight @@ -124,15 +129,15 @@ export namespace Event { */ export interface OverweightServiced { type: "OverweightServiced" - value: [t.u64, t.sp_weights.weight_v2.Weight] + value: [t.types.u64, t.types.sp_weights.weight_v2.Weight] } /** * Upward message is invalid XCM. * \[ id \] */ export function InvalidFormat( - value: t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat["value"], - ): t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat { + value: t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat["value"], + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat { return { type: "InvalidFormat", value } } /** @@ -140,8 +145,8 @@ export namespace Event { * \[ id \] */ export function UnsupportedVersion( - value: t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion["value"], - ): t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion { + value: t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion["value"], + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion { return { type: "UnsupportedVersion", value } } /** @@ -149,8 +154,8 @@ export namespace Event { * \[ id, outcome \] */ export function ExecutedUpward( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward { return { type: "ExecutedUpward", value } } /** @@ -158,8 +163,8 @@ export namespace Event { * \[ id, remaining, required \] */ export function WeightExhausted( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted { return { type: "WeightExhausted", value } } /** @@ -167,8 +172,8 @@ export namespace Event { * \[ para, count, size \] */ export function UpwardMessagesReceived( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived { return { type: "UpwardMessagesReceived", value } } /** @@ -180,8 +185,8 @@ export namespace Event { * \[ para, id, overweight_index, required \] */ export function OverweightEnqueued( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued { return { type: "OverweightEnqueued", value } } /** @@ -191,8 +196,8 @@ export namespace Event { * \[ overweight_index, used \] */ export function OverweightServiced( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced { return { type: "OverweightServiced", value } } } diff --git a/codegen/_output/rococo/types/primitive_types.ts b/codegen/_output/rococo/types/primitive_types.ts new file mode 100644 index 000000000..b7e7a5943 --- /dev/null +++ b/codegen/_output/rococo/types/primitive_types.ts @@ -0,0 +1,11 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $h256: $.Codec = _codec.$11 + +export type H256 = Uint8Array + +export function H256(value: t.types.primitive_types.H256) { + return value +} diff --git a/codegen/_output/rococo/types/sp_arithmetic/fixed_point.ts b/codegen/_output/rococo/types/sp_arithmetic/fixed_point.ts new file mode 100644 index 000000000..232b82ea4 --- /dev/null +++ b/codegen/_output/rococo/types/sp_arithmetic/fixed_point.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $fixedU128: $.Codec = _codec.$479 + +export type FixedU128 = t.types.u128 + +export function FixedU128(value: t.types.sp_arithmetic.fixed_point.FixedU128) { + return value +} diff --git a/codegen/_output/rococo/sp_arithmetic/mod.ts b/codegen/_output/rococo/types/sp_arithmetic/mod.ts similarity index 100% rename from codegen/_output/rococo/sp_arithmetic/mod.ts rename to codegen/_output/rococo/types/sp_arithmetic/mod.ts diff --git a/codegen/_output/rococo/types/sp_arithmetic/per_things.ts b/codegen/_output/rococo/types/sp_arithmetic/per_things.ts new file mode 100644 index 000000000..f0df80b65 --- /dev/null +++ b/codegen/_output/rococo/types/sp_arithmetic/per_things.ts @@ -0,0 +1,35 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $perU16: $.Codec = _codec.$320 + +export const $perbill: $.Codec = _codec.$42 + +export const $percent: $.Codec = _codec.$205 + +export const $permill: $.Codec = _codec.$558 + +export type PerU16 = t.types.u16 + +export function PerU16(value: t.types.sp_arithmetic.per_things.PerU16) { + return value +} + +export type Perbill = t.types.u32 + +export function Perbill(value: t.types.sp_arithmetic.per_things.Perbill) { + return value +} + +export type Percent = t.types.u8 + +export function Percent(value: t.types.sp_arithmetic.per_things.Percent) { + return value +} + +export type Permill = t.types.u32 + +export function Permill(value: t.types.sp_arithmetic.per_things.Permill) { + return value +} diff --git a/codegen/_output/rococo/types/sp_authority_discovery/app.ts b/codegen/_output/rococo/types/sp_authority_discovery/app.ts new file mode 100644 index 000000000..96cf824f4 --- /dev/null +++ b/codegen/_output/rococo/types/sp_authority_discovery/app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$215 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.sp_authority_discovery.app.Public) { + return value +} diff --git a/codegen/_output/rococo/sp_authority_discovery/mod.ts b/codegen/_output/rococo/types/sp_authority_discovery/mod.ts similarity index 100% rename from codegen/_output/rococo/sp_authority_discovery/mod.ts rename to codegen/_output/rococo/types/sp_authority_discovery/mod.ts diff --git a/codegen/_output/rococo/types/sp_consensus_babe/app.ts b/codegen/_output/rococo/types/sp_consensus_babe/app.ts new file mode 100644 index 000000000..d3f29bc2c --- /dev/null +++ b/codegen/_output/rococo/types/sp_consensus_babe/app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$189 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.sp_consensus_babe.app.Public) { + return value +} diff --git a/codegen/_output/rococo/types/sp_consensus_babe/digests.ts b/codegen/_output/rococo/types/sp_consensus_babe/digests.ts new file mode 100644 index 000000000..4c4f4cd04 --- /dev/null +++ b/codegen/_output/rococo/types/sp_consensus_babe/digests.ts @@ -0,0 +1,103 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $nextConfigDescriptor: $.Codec< + t.types.sp_consensus_babe.digests.NextConfigDescriptor +> = _codec.$192 + +export const $preDigest: $.Codec = _codec.$462 + +export const $primaryPreDigest: $.Codec = + _codec.$463 + +export const $secondaryPlainPreDigest: $.Codec< + t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest +> = _codec.$464 + +export const $secondaryVRFPreDigest: $.Codec< + t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest +> = _codec.$465 + +export type NextConfigDescriptor = t.types.sp_consensus_babe.digests.NextConfigDescriptor.V1 +export namespace NextConfigDescriptor { + export interface V1 { + type: "V1" + c: [t.types.u64, t.types.u64] + allowed_slots: t.types.sp_consensus_babe.AllowedSlots + } + export function V1( + value: Omit, + ): t.types.sp_consensus_babe.digests.NextConfigDescriptor.V1 { + return { type: "V1", ...value } + } +} + +export type PreDigest = + | t.types.sp_consensus_babe.digests.PreDigest.Primary + | t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain + | t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF +export namespace PreDigest { + export interface Primary { + type: "Primary" + value: t.types.sp_consensus_babe.digests.PrimaryPreDigest + } + export interface SecondaryPlain { + type: "SecondaryPlain" + value: t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest + } + export interface SecondaryVRF { + type: "SecondaryVRF" + value: t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest + } + export function Primary( + value: t.types.sp_consensus_babe.digests.PreDigest.Primary["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.Primary { + return { type: "Primary", value } + } + export function SecondaryPlain( + value: t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain { + return { type: "SecondaryPlain", value } + } + export function SecondaryVRF( + value: t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF { + return { type: "SecondaryVRF", value } + } +} + +export interface PrimaryPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot + vrf_output: Uint8Array + vrf_proof: Uint8Array +} + +export function PrimaryPreDigest(value: t.types.sp_consensus_babe.digests.PrimaryPreDigest) { + return value +} + +export interface SecondaryPlainPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot +} + +export function SecondaryPlainPreDigest( + value: t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest, +) { + return value +} + +export interface SecondaryVRFPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot + vrf_output: Uint8Array + vrf_proof: Uint8Array +} + +export function SecondaryVRFPreDigest( + value: t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest, +) { + return value +} diff --git a/codegen/_output/rococo/types/sp_consensus_babe/mod.ts b/codegen/_output/rococo/types/sp_consensus_babe/mod.ts new file mode 100644 index 000000000..73ea2dcea --- /dev/null +++ b/codegen/_output/rococo/types/sp_consensus_babe/mod.ts @@ -0,0 +1,25 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as app from "./app.ts" +export * as digests from "./digests.ts" + +export const $allowedSlots: $.Codec = _codec.$194 + +export const $babeEpochConfiguration: $.Codec = + _codec.$466 + +export type AllowedSlots = + | "PrimarySlots" + | "PrimaryAndSecondaryPlainSlots" + | "PrimaryAndSecondaryVRFSlots" + +export interface BabeEpochConfiguration { + c: [t.types.u64, t.types.u64] + allowed_slots: t.types.sp_consensus_babe.AllowedSlots +} + +export function BabeEpochConfiguration(value: t.types.sp_consensus_babe.BabeEpochConfiguration) { + return value +} diff --git a/codegen/_output/rococo/types/sp_consensus_slots.ts b/codegen/_output/rococo/types/sp_consensus_slots.ts new file mode 100644 index 000000000..5aae2750c --- /dev/null +++ b/codegen/_output/rococo/types/sp_consensus_slots.ts @@ -0,0 +1,24 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $equivocationProof: $.Codec = _codec.$186 + +export const $slot: $.Codec = _codec.$190 + +export interface EquivocationProof { + offender: t.types.sp_consensus_babe.app.Public + slot: t.types.sp_consensus_slots.Slot + first_header: t.types.sp_runtime.generic.header.Header + second_header: t.types.sp_runtime.generic.header.Header +} + +export function EquivocationProof(value: t.types.sp_consensus_slots.EquivocationProof) { + return value +} + +export type Slot = t.types.u64 + +export function Slot(value: t.types.sp_consensus_slots.Slot) { + return value +} diff --git a/codegen/_output/rococo/types/sp_core/crypto.ts b/codegen/_output/rococo/types/sp_core/crypto.ts new file mode 100644 index 000000000..3fb7caefa --- /dev/null +++ b/codegen/_output/rococo/types/sp_core/crypto.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $accountId32: $.Codec = _codec.$0 + +export const $keyTypeId: $.Codec = _codec.$514 + +export type AccountId32 = Uint8Array + +export function AccountId32(value: t.types.sp_core.crypto.AccountId32) { + return value +} + +export type KeyTypeId = Uint8Array + +export function KeyTypeId(value: t.types.sp_core.crypto.KeyTypeId) { + return value +} diff --git a/codegen/_output/rococo/types/sp_core/ecdsa.ts b/codegen/_output/rococo/types/sp_core/ecdsa.ts new file mode 100644 index 000000000..46fe6ef05 --- /dev/null +++ b/codegen/_output/rococo/types/sp_core/ecdsa.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$418 + +export const $signature: $.Codec = _codec.$422 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.ecdsa.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.ecdsa.Signature) { + return value +} diff --git a/codegen/_output/rococo/types/sp_core/ed25519.ts b/codegen/_output/rococo/types/sp_core/ed25519.ts new file mode 100644 index 000000000..a23064e9b --- /dev/null +++ b/codegen/_output/rococo/types/sp_core/ed25519.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$51 + +export const $signature: $.Codec = _codec.$222 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.ed25519.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.ed25519.Signature) { + return value +} diff --git a/codegen/_output/rococo/types/sp_core/mod.ts b/codegen/_output/rococo/types/sp_core/mod.ts new file mode 100644 index 000000000..76b7c54c9 --- /dev/null +++ b/codegen/_output/rococo/types/sp_core/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as crypto from "./crypto.ts" +export * as ecdsa from "./ecdsa.ts" +export * as ed25519 from "./ed25519.ts" +export * as offchain from "./offchain.ts" +export * as sr25519 from "./sr25519.ts" + +export const $opaquePeerId: $.Codec = _codec.$230 + +export const $void: $.Codec = _codec.$262 + +export type OpaquePeerId = Uint8Array + +export function OpaquePeerId(value: t.types.sp_core.OpaquePeerId) { + return value +} + +export type Void = never diff --git a/codegen/_output/rococo/types/sp_core/offchain.ts b/codegen/_output/rococo/types/sp_core/offchain.ts new file mode 100644 index 000000000..dd675887f --- /dev/null +++ b/codegen/_output/rococo/types/sp_core/offchain.ts @@ -0,0 +1,22 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $opaqueMultiaddr: $.Codec = _codec.$232 + +export const $opaqueNetworkState: $.Codec = _codec.$229 + +export type OpaqueMultiaddr = Uint8Array + +export function OpaqueMultiaddr(value: t.types.sp_core.offchain.OpaqueMultiaddr) { + return value +} + +export interface OpaqueNetworkState { + peer_id: t.types.sp_core.OpaquePeerId + external_addresses: Array +} + +export function OpaqueNetworkState(value: t.types.sp_core.offchain.OpaqueNetworkState) { + return value +} diff --git a/codegen/_output/rococo/types/sp_core/sr25519.ts b/codegen/_output/rococo/types/sp_core/sr25519.ts new file mode 100644 index 000000000..a4e068793 --- /dev/null +++ b/codegen/_output/rococo/types/sp_core/sr25519.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$54 + +export const $signature: $.Codec = _codec.$101 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.sr25519.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.sr25519.Signature) { + return value +} diff --git a/codegen/_output/rococo/types/sp_finality_grandpa/app.ts b/codegen/_output/rococo/types/sp_finality_grandpa/app.ts new file mode 100644 index 000000000..1113934c6 --- /dev/null +++ b/codegen/_output/rococo/types/sp_finality_grandpa/app.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$50 + +export const $signature: $.Codec = _codec.$221 + +export type Public = t.types.sp_core.ed25519.Public + +export function Public(value: t.types.sp_finality_grandpa.app.Public) { + return value +} + +export type Signature = t.types.sp_core.ed25519.Signature + +export function Signature(value: t.types.sp_finality_grandpa.app.Signature) { + return value +} diff --git a/codegen/_output/rococo/types/sp_finality_grandpa/mod.ts b/codegen/_output/rococo/types/sp_finality_grandpa/mod.ts new file mode 100644 index 000000000..f120dbf22 --- /dev/null +++ b/codegen/_output/rococo/types/sp_finality_grandpa/mod.ts @@ -0,0 +1,43 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as app from "./app.ts" + +export const $equivocation: $.Codec = _codec.$218 + +export const $equivocationProof: $.Codec = + _codec.$217 + +export type Equivocation = + | t.types.sp_finality_grandpa.Equivocation.Prevote + | t.types.sp_finality_grandpa.Equivocation.Precommit +export namespace Equivocation { + export interface Prevote { + type: "Prevote" + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Prevote + } + export interface Precommit { + type: "Precommit" + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit + } + export function Prevote( + value: t.types.sp_finality_grandpa.Equivocation.Prevote["value"], + ): t.types.sp_finality_grandpa.Equivocation.Prevote { + return { type: "Prevote", value } + } + export function Precommit( + value: t.types.sp_finality_grandpa.Equivocation.Precommit["value"], + ): t.types.sp_finality_grandpa.Equivocation.Precommit { + return { type: "Precommit", value } + } +} + +export interface EquivocationProof { + set_id: t.types.u64 + equivocation: t.types.sp_finality_grandpa.Equivocation +} + +export function EquivocationProof(value: t.types.sp_finality_grandpa.EquivocationProof) { + return value +} diff --git a/codegen/_output/rococo/types/sp_npos_elections.ts b/codegen/_output/rococo/types/sp_npos_elections.ts new file mode 100644 index 000000000..de5eb30ab --- /dev/null +++ b/codegen/_output/rococo/types/sp_npos_elections.ts @@ -0,0 +1,26 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $electionScore: $.Codec = _codec.$88 + +export const $support: $.Codec = _codec.$367 + +export interface ElectionScore { + minimal_stake: t.types.u128 + sum_stake: t.types.u128 + sum_stake_squared: t.types.u128 +} + +export function ElectionScore(value: t.types.sp_npos_elections.ElectionScore) { + return value +} + +export interface Support { + total: t.types.u128 + voters: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> +} + +export function Support(value: t.types.sp_npos_elections.Support) { + return value +} diff --git a/codegen/_output/rococo/types/sp_runtime/generic/digest.ts b/codegen/_output/rococo/types/sp_runtime/generic/digest.ts new file mode 100644 index 000000000..82a236b97 --- /dev/null +++ b/codegen/_output/rococo/types/sp_runtime/generic/digest.ts @@ -0,0 +1,66 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $digest: $.Codec = _codec.$13 + +export const $digestItem: $.Codec = _codec.$15 + +export interface Digest { + logs: Array +} + +export function Digest(value: t.types.sp_runtime.generic.digest.Digest) { + return value +} + +export type DigestItem = + | t.types.sp_runtime.generic.digest.DigestItem.PreRuntime + | t.types.sp_runtime.generic.digest.DigestItem.Consensus + | t.types.sp_runtime.generic.digest.DigestItem.Seal + | t.types.sp_runtime.generic.digest.DigestItem.Other + | t.types.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated +export namespace DigestItem { + export interface PreRuntime { + type: "PreRuntime" + value: [Uint8Array, Uint8Array] + } + export interface Consensus { + type: "Consensus" + value: [Uint8Array, Uint8Array] + } + export interface Seal { + type: "Seal" + value: [Uint8Array, Uint8Array] + } + export interface Other { + type: "Other" + value: Uint8Array + } + export interface RuntimeEnvironmentUpdated { + type: "RuntimeEnvironmentUpdated" + } + export function PreRuntime( + ...value: t.types.sp_runtime.generic.digest.DigestItem.PreRuntime["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.PreRuntime { + return { type: "PreRuntime", value } + } + export function Consensus( + ...value: t.types.sp_runtime.generic.digest.DigestItem.Consensus["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.Consensus { + return { type: "Consensus", value } + } + export function Seal( + ...value: t.types.sp_runtime.generic.digest.DigestItem.Seal["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.Seal { + return { type: "Seal", value } + } + export function Other( + value: t.types.sp_runtime.generic.digest.DigestItem.Other["value"], + ): t.types.sp_runtime.generic.digest.DigestItem.Other { + return { type: "Other", value } + } + export function RuntimeEnvironmentUpdated(): t.types.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated { + return { type: "RuntimeEnvironmentUpdated" } + } +} diff --git a/codegen/_output/rococo/types/sp_runtime/generic/header.ts b/codegen/_output/rococo/types/sp_runtime/generic/header.ts new file mode 100644 index 000000000..1d9deba5b --- /dev/null +++ b/codegen/_output/rococo/types/sp_runtime/generic/header.ts @@ -0,0 +1,17 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $header: $.Codec = _codec.$187 + +export interface Header { + parent_hash: t.types.primitive_types.H256 + number: t.Compact + state_root: t.types.primitive_types.H256 + extrinsics_root: t.types.primitive_types.H256 + digest: t.types.sp_runtime.generic.digest.Digest +} + +export function Header(value: t.types.sp_runtime.generic.header.Header) { + return value +} diff --git a/codegen/_output/rococo/sp_runtime/generic/mod.ts b/codegen/_output/rococo/types/sp_runtime/generic/mod.ts similarity index 100% rename from codegen/_output/rococo/sp_runtime/generic/mod.ts rename to codegen/_output/rococo/types/sp_runtime/generic/mod.ts diff --git a/codegen/_output/rococo/types/sp_runtime/mod.ts b/codegen/_output/rococo/types/sp_runtime/mod.ts new file mode 100644 index 000000000..d17725156 --- /dev/null +++ b/codegen/_output/rococo/types/sp_runtime/mod.ts @@ -0,0 +1,218 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as generic from "./generic/mod.ts" +export * as multiaddress from "./multiaddress.ts" +export * as traits from "./traits.ts" + +export const $arithmeticError: $.Codec = _codec.$27 + +export const $dispatchError: $.Codec = _codec.$24 + +export const $moduleError: $.Codec = _codec.$25 + +export const $multiSignature: $.Codec = _codec.$421 + +export const $multiSigner: $.Codec = _codec.$417 + +export const $tokenError: $.Codec = _codec.$26 + +export const $transactionalError: $.Codec = _codec.$28 + +export type ArithmeticError = "Underflow" | "Overflow" | "DivisionByZero" + +export type DispatchError = + | t.types.sp_runtime.DispatchError.Other + | t.types.sp_runtime.DispatchError.CannotLookup + | t.types.sp_runtime.DispatchError.BadOrigin + | t.types.sp_runtime.DispatchError.Module + | t.types.sp_runtime.DispatchError.ConsumerRemaining + | t.types.sp_runtime.DispatchError.NoProviders + | t.types.sp_runtime.DispatchError.TooManyConsumers + | t.types.sp_runtime.DispatchError.Token + | t.types.sp_runtime.DispatchError.Arithmetic + | t.types.sp_runtime.DispatchError.Transactional + | t.types.sp_runtime.DispatchError.Exhausted + | t.types.sp_runtime.DispatchError.Corruption + | t.types.sp_runtime.DispatchError.Unavailable +export namespace DispatchError { + export interface Other { + type: "Other" + } + export interface CannotLookup { + type: "CannotLookup" + } + export interface BadOrigin { + type: "BadOrigin" + } + export interface Module { + type: "Module" + value: t.types.sp_runtime.ModuleError + } + export interface ConsumerRemaining { + type: "ConsumerRemaining" + } + export interface NoProviders { + type: "NoProviders" + } + export interface TooManyConsumers { + type: "TooManyConsumers" + } + export interface Token { + type: "Token" + value: t.types.sp_runtime.TokenError + } + export interface Arithmetic { + type: "Arithmetic" + value: t.types.sp_runtime.ArithmeticError + } + export interface Transactional { + type: "Transactional" + value: t.types.sp_runtime.TransactionalError + } + export interface Exhausted { + type: "Exhausted" + } + export interface Corruption { + type: "Corruption" + } + export interface Unavailable { + type: "Unavailable" + } + export function Other(): t.types.sp_runtime.DispatchError.Other { + return { type: "Other" } + } + export function CannotLookup(): t.types.sp_runtime.DispatchError.CannotLookup { + return { type: "CannotLookup" } + } + export function BadOrigin(): t.types.sp_runtime.DispatchError.BadOrigin { + return { type: "BadOrigin" } + } + export function Module( + value: t.types.sp_runtime.DispatchError.Module["value"], + ): t.types.sp_runtime.DispatchError.Module { + return { type: "Module", value } + } + export function ConsumerRemaining(): t.types.sp_runtime.DispatchError.ConsumerRemaining { + return { type: "ConsumerRemaining" } + } + export function NoProviders(): t.types.sp_runtime.DispatchError.NoProviders { + return { type: "NoProviders" } + } + export function TooManyConsumers(): t.types.sp_runtime.DispatchError.TooManyConsumers { + return { type: "TooManyConsumers" } + } + export function Token( + value: t.types.sp_runtime.DispatchError.Token["value"], + ): t.types.sp_runtime.DispatchError.Token { + return { type: "Token", value } + } + export function Arithmetic( + value: t.types.sp_runtime.DispatchError.Arithmetic["value"], + ): t.types.sp_runtime.DispatchError.Arithmetic { + return { type: "Arithmetic", value } + } + export function Transactional( + value: t.types.sp_runtime.DispatchError.Transactional["value"], + ): t.types.sp_runtime.DispatchError.Transactional { + return { type: "Transactional", value } + } + export function Exhausted(): t.types.sp_runtime.DispatchError.Exhausted { + return { type: "Exhausted" } + } + export function Corruption(): t.types.sp_runtime.DispatchError.Corruption { + return { type: "Corruption" } + } + export function Unavailable(): t.types.sp_runtime.DispatchError.Unavailable { + return { type: "Unavailable" } + } +} + +export interface ModuleError { + index: t.types.u8 + error: Uint8Array +} + +export function ModuleError(value: t.types.sp_runtime.ModuleError) { + return value +} + +export type MultiSignature = + | t.types.sp_runtime.MultiSignature.Ed25519 + | t.types.sp_runtime.MultiSignature.Sr25519 + | t.types.sp_runtime.MultiSignature.Ecdsa +export namespace MultiSignature { + export interface Ed25519 { + type: "Ed25519" + value: t.types.sp_core.ed25519.Signature + } + export interface Sr25519 { + type: "Sr25519" + value: t.types.sp_core.sr25519.Signature + } + export interface Ecdsa { + type: "Ecdsa" + value: t.types.sp_core.ecdsa.Signature + } + export function Ed25519( + value: t.types.sp_runtime.MultiSignature.Ed25519["value"], + ): t.types.sp_runtime.MultiSignature.Ed25519 { + return { type: "Ed25519", value } + } + export function Sr25519( + value: t.types.sp_runtime.MultiSignature.Sr25519["value"], + ): t.types.sp_runtime.MultiSignature.Sr25519 { + return { type: "Sr25519", value } + } + export function Ecdsa( + value: t.types.sp_runtime.MultiSignature.Ecdsa["value"], + ): t.types.sp_runtime.MultiSignature.Ecdsa { + return { type: "Ecdsa", value } + } +} + +export type MultiSigner = + | t.types.sp_runtime.MultiSigner.Ed25519 + | t.types.sp_runtime.MultiSigner.Sr25519 + | t.types.sp_runtime.MultiSigner.Ecdsa +export namespace MultiSigner { + export interface Ed25519 { + type: "Ed25519" + value: t.types.sp_core.ed25519.Public + } + export interface Sr25519 { + type: "Sr25519" + value: t.types.sp_core.sr25519.Public + } + export interface Ecdsa { + type: "Ecdsa" + value: t.types.sp_core.ecdsa.Public + } + export function Ed25519( + value: t.types.sp_runtime.MultiSigner.Ed25519["value"], + ): t.types.sp_runtime.MultiSigner.Ed25519 { + return { type: "Ed25519", value } + } + export function Sr25519( + value: t.types.sp_runtime.MultiSigner.Sr25519["value"], + ): t.types.sp_runtime.MultiSigner.Sr25519 { + return { type: "Sr25519", value } + } + export function Ecdsa( + value: t.types.sp_runtime.MultiSigner.Ecdsa["value"], + ): t.types.sp_runtime.MultiSigner.Ecdsa { + return { type: "Ecdsa", value } + } +} + +export type TokenError = + | "NoFunds" + | "WouldDie" + | "BelowMinimum" + | "CannotCreate" + | "UnknownAsset" + | "Frozen" + | "Unsupported" + +export type TransactionalError = "LimitReached" | "NoLayer" diff --git a/codegen/_output/rococo/types/sp_runtime/multiaddress.ts b/codegen/_output/rococo/types/sp_runtime/multiaddress.ts new file mode 100644 index 000000000..cef3e56ce --- /dev/null +++ b/codegen/_output/rococo/types/sp_runtime/multiaddress.ts @@ -0,0 +1,59 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $multiAddress: $.Codec = _codec.$197 + +export type MultiAddress = + | t.types.sp_runtime.multiaddress.MultiAddress.Id + | t.types.sp_runtime.multiaddress.MultiAddress.Index + | t.types.sp_runtime.multiaddress.MultiAddress.Raw + | t.types.sp_runtime.multiaddress.MultiAddress.Address32 + | t.types.sp_runtime.multiaddress.MultiAddress.Address20 +export namespace MultiAddress { + export interface Id { + type: "Id" + value: t.types.sp_core.crypto.AccountId32 + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Raw { + type: "Raw" + value: Uint8Array + } + export interface Address32 { + type: "Address32" + value: Uint8Array + } + export interface Address20 { + type: "Address20" + value: Uint8Array + } + export function Id( + value: t.types.sp_runtime.multiaddress.MultiAddress.Id["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Id { + return { type: "Id", value } + } + export function Index( + value: t.types.sp_runtime.multiaddress.MultiAddress.Index["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Index { + return { type: "Index", value } + } + export function Raw( + value: t.types.sp_runtime.multiaddress.MultiAddress.Raw["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Raw { + return { type: "Raw", value } + } + export function Address32( + value: t.types.sp_runtime.multiaddress.MultiAddress.Address32["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Address32 { + return { type: "Address32", value } + } + export function Address20( + value: t.types.sp_runtime.multiaddress.MultiAddress.Address20["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Address20 { + return { type: "Address20", value } + } +} diff --git a/codegen/_output/rococo/types/sp_runtime/traits.ts b/codegen/_output/rococo/types/sp_runtime/traits.ts new file mode 100644 index 000000000..71293ed25 --- /dev/null +++ b/codegen/_output/rococo/types/sp_runtime/traits.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $blakeTwo256: $.Codec = _codec.$188 + +export function BlakeTwo256() { + return null +} + +export type BlakeTwo256 = null diff --git a/codegen/_output/rococo/types/sp_session.ts b/codegen/_output/rococo/types/sp_session.ts new file mode 100644 index 000000000..0d1cce46f --- /dev/null +++ b/codegen/_output/rococo/types/sp_session.ts @@ -0,0 +1,15 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $membershipProof: $.Codec = _codec.$191 + +export interface MembershipProof { + session: t.types.u32 + trie_nodes: Array + validator_count: t.types.u32 +} + +export function MembershipProof(value: t.types.sp_session.MembershipProof) { + return value +} diff --git a/codegen/_output/rococo/sp_staking/mod.ts b/codegen/_output/rococo/types/sp_staking/mod.ts similarity index 100% rename from codegen/_output/rococo/sp_staking/mod.ts rename to codegen/_output/rococo/types/sp_staking/mod.ts diff --git a/codegen/_output/rococo/types/sp_staking/offence.ts b/codegen/_output/rococo/types/sp_staking/offence.ts new file mode 100644 index 000000000..b040fad84 --- /dev/null +++ b/codegen/_output/rococo/types/sp_staking/offence.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $offenceDetails: $.Codec = _codec.$509 + +export interface OffenceDetails { + offender: [t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure] + reporters: Array +} + +export function OffenceDetails(value: t.types.sp_staking.offence.OffenceDetails) { + return value +} diff --git a/codegen/_output/rococo/types/sp_version.ts b/codegen/_output/rococo/types/sp_version.ts new file mode 100644 index 000000000..6d5fd37d2 --- /dev/null +++ b/codegen/_output/rococo/types/sp_version.ts @@ -0,0 +1,20 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $runtimeVersion: $.Codec = _codec.$172 + +export interface RuntimeVersion { + spec_name: string + impl_name: string + authoring_version: t.types.u32 + spec_version: t.types.u32 + impl_version: t.types.u32 + apis: Array<[Uint8Array, t.types.u32]> + transaction_version: t.types.u32 + state_version: t.types.u8 +} + +export function RuntimeVersion(value: t.types.sp_version.RuntimeVersion) { + return value +} diff --git a/codegen/_output/rococo/types/sp_weights/mod.ts b/codegen/_output/rococo/types/sp_weights/mod.ts new file mode 100644 index 000000000..6c71df30c --- /dev/null +++ b/codegen/_output/rococo/types/sp_weights/mod.ts @@ -0,0 +1,24 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as weight_v2 from "./weight_v2.ts" + +export const $oldWeight: $.Codec = _codec.$239 + +export const $runtimeDbWeight: $.Codec = _codec.$171 + +export type OldWeight = t.types.u64 + +export function OldWeight(value: t.types.sp_weights.OldWeight) { + return value +} + +export interface RuntimeDbWeight { + read: t.types.u64 + write: t.types.u64 +} + +export function RuntimeDbWeight(value: t.types.sp_weights.RuntimeDbWeight) { + return value +} diff --git a/codegen/_output/rococo/types/sp_weights/weight_v2.ts b/codegen/_output/rococo/types/sp_weights/weight_v2.ts new file mode 100644 index 000000000..16e7987be --- /dev/null +++ b/codegen/_output/rococo/types/sp_weights/weight_v2.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $weight: $.Codec = _codec.$8 + +export interface Weight { + ref_time: t.Compact + proof_size: t.Compact +} + +export function Weight(value: t.types.sp_weights.weight_v2.Weight) { + return value +} diff --git a/codegen/_output/rococo/types/xcm/mod.ts b/codegen/_output/rococo/types/xcm/mod.ts new file mode 100644 index 000000000..2b0075cda --- /dev/null +++ b/codegen/_output/rococo/types/xcm/mod.ts @@ -0,0 +1,125 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as v0 from "./v0/mod.ts" +export * as v1 from "./v1/mod.ts" +export * as v2 from "./v2/mod.ts" + +export const $versionedMultiAssets: $.Codec = _codec.$150 + +export const $versionedMultiLocation: $.Codec = _codec.$155 + +export const $versionedResponse: $.Codec = _codec.$716 + +export const $versionedXcm: $.Codec = _codec.$424 + +export type VersionedMultiAssets = + | t.types.xcm.VersionedMultiAssets.V0 + | t.types.xcm.VersionedMultiAssets.V1 +export namespace VersionedMultiAssets { + export interface V0 { + type: "V0" + value: Array + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export function V0( + value: t.types.xcm.VersionedMultiAssets.V0["value"], + ): t.types.xcm.VersionedMultiAssets.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedMultiAssets.V1["value"], + ): t.types.xcm.VersionedMultiAssets.V1 { + return { type: "V1", value } + } +} + +export type VersionedMultiLocation = + | t.types.xcm.VersionedMultiLocation.V0 + | t.types.xcm.VersionedMultiLocation.V1 +export namespace VersionedMultiLocation { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.multi_location.MultiLocation + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.multilocation.MultiLocation + } + export function V0( + value: t.types.xcm.VersionedMultiLocation.V0["value"], + ): t.types.xcm.VersionedMultiLocation.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedMultiLocation.V1["value"], + ): t.types.xcm.VersionedMultiLocation.V1 { + return { type: "V1", value } + } +} + +export type VersionedResponse = + | t.types.xcm.VersionedResponse.V0 + | t.types.xcm.VersionedResponse.V1 + | t.types.xcm.VersionedResponse.V2 +export namespace VersionedResponse { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.Response + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.Response + } + export interface V2 { + type: "V2" + value: t.types.xcm.v2.Response + } + export function V0( + value: t.types.xcm.VersionedResponse.V0["value"], + ): t.types.xcm.VersionedResponse.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedResponse.V1["value"], + ): t.types.xcm.VersionedResponse.V1 { + return { type: "V1", value } + } + export function V2( + value: t.types.xcm.VersionedResponse.V2["value"], + ): t.types.xcm.VersionedResponse.V2 { + return { type: "V2", value } + } +} + +export type VersionedXcm = + | t.types.xcm.VersionedXcm.V0 + | t.types.xcm.VersionedXcm.V1 + | t.types.xcm.VersionedXcm.V2 +export namespace VersionedXcm { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.Xcm + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.Xcm + } + export interface V2 { + type: "V2" + value: Array + } + export function V0(value: t.types.xcm.VersionedXcm.V0["value"]): t.types.xcm.VersionedXcm.V0 { + return { type: "V0", value } + } + export function V1(value: t.types.xcm.VersionedXcm.V1["value"]): t.types.xcm.VersionedXcm.V1 { + return { type: "V1", value } + } + export function V2(value: t.types.xcm.VersionedXcm.V2["value"]): t.types.xcm.VersionedXcm.V2 { + return { type: "V2", value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v0/junction.ts b/codegen/_output/rococo/types/xcm/v0/junction.ts new file mode 100644 index 000000000..8d6d89a84 --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v0/junction.ts @@ -0,0 +1,261 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $bodyId: $.Codec = _codec.$128 + +export const $bodyPart: $.Codec = _codec.$129 + +export const $junction: $.Codec = _codec.$154 + +export const $networkId: $.Codec = _codec.$126 + +export type BodyId = + | t.types.xcm.v0.junction.BodyId.Unit + | t.types.xcm.v0.junction.BodyId.Named + | t.types.xcm.v0.junction.BodyId.Index + | t.types.xcm.v0.junction.BodyId.Executive + | t.types.xcm.v0.junction.BodyId.Technical + | t.types.xcm.v0.junction.BodyId.Legislative + | t.types.xcm.v0.junction.BodyId.Judicial +export namespace BodyId { + export interface Unit { + type: "Unit" + } + export interface Named { + type: "Named" + value: Uint8Array + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Executive { + type: "Executive" + } + export interface Technical { + type: "Technical" + } + export interface Legislative { + type: "Legislative" + } + export interface Judicial { + type: "Judicial" + } + export function Unit(): t.types.xcm.v0.junction.BodyId.Unit { + return { type: "Unit" } + } + export function Named( + value: t.types.xcm.v0.junction.BodyId.Named["value"], + ): t.types.xcm.v0.junction.BodyId.Named { + return { type: "Named", value } + } + export function Index( + value: t.types.xcm.v0.junction.BodyId.Index["value"], + ): t.types.xcm.v0.junction.BodyId.Index { + return { type: "Index", value } + } + export function Executive(): t.types.xcm.v0.junction.BodyId.Executive { + return { type: "Executive" } + } + export function Technical(): t.types.xcm.v0.junction.BodyId.Technical { + return { type: "Technical" } + } + export function Legislative(): t.types.xcm.v0.junction.BodyId.Legislative { + return { type: "Legislative" } + } + export function Judicial(): t.types.xcm.v0.junction.BodyId.Judicial { + return { type: "Judicial" } + } +} + +export type BodyPart = + | t.types.xcm.v0.junction.BodyPart.Voice + | t.types.xcm.v0.junction.BodyPart.Members + | t.types.xcm.v0.junction.BodyPart.Fraction + | t.types.xcm.v0.junction.BodyPart.AtLeastProportion + | t.types.xcm.v0.junction.BodyPart.MoreThanProportion +export namespace BodyPart { + export interface Voice { + type: "Voice" + } + export interface Members { + type: "Members" + count: t.Compact + } + export interface Fraction { + type: "Fraction" + nom: t.Compact + denom: t.Compact + } + export interface AtLeastProportion { + type: "AtLeastProportion" + nom: t.Compact + denom: t.Compact + } + export interface MoreThanProportion { + type: "MoreThanProportion" + nom: t.Compact + denom: t.Compact + } + export function Voice(): t.types.xcm.v0.junction.BodyPart.Voice { + return { type: "Voice" } + } + export function Members( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.Members { + return { type: "Members", ...value } + } + export function Fraction( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.Fraction { + return { type: "Fraction", ...value } + } + export function AtLeastProportion( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.AtLeastProportion { + return { type: "AtLeastProportion", ...value } + } + export function MoreThanProportion( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.MoreThanProportion { + return { type: "MoreThanProportion", ...value } + } +} + +export type Junction = + | t.types.xcm.v0.junction.Junction.Parent + | t.types.xcm.v0.junction.Junction.Parachain + | t.types.xcm.v0.junction.Junction.AccountId32 + | t.types.xcm.v0.junction.Junction.AccountIndex64 + | t.types.xcm.v0.junction.Junction.AccountKey20 + | t.types.xcm.v0.junction.Junction.PalletInstance + | t.types.xcm.v0.junction.Junction.GeneralIndex + | t.types.xcm.v0.junction.Junction.GeneralKey + | t.types.xcm.v0.junction.Junction.OnlyChild + | t.types.xcm.v0.junction.Junction.Plurality +export namespace Junction { + export interface Parent { + type: "Parent" + } + export interface Parachain { + type: "Parachain" + value: t.Compact + } + export interface AccountId32 { + type: "AccountId32" + network: t.types.xcm.v0.junction.NetworkId + id: Uint8Array + } + export interface AccountIndex64 { + type: "AccountIndex64" + network: t.types.xcm.v0.junction.NetworkId + index: t.Compact + } + export interface AccountKey20 { + type: "AccountKey20" + network: t.types.xcm.v0.junction.NetworkId + key: Uint8Array + } + export interface PalletInstance { + type: "PalletInstance" + value: t.types.u8 + } + export interface GeneralIndex { + type: "GeneralIndex" + value: t.Compact + } + export interface GeneralKey { + type: "GeneralKey" + value: Uint8Array + } + export interface OnlyChild { + type: "OnlyChild" + } + export interface Plurality { + type: "Plurality" + id: t.types.xcm.v0.junction.BodyId + part: t.types.xcm.v0.junction.BodyPart + } + export function Parent(): t.types.xcm.v0.junction.Junction.Parent { + return { type: "Parent" } + } + export function Parachain( + value: t.types.xcm.v0.junction.Junction.Parachain["value"], + ): t.types.xcm.v0.junction.Junction.Parachain { + return { type: "Parachain", value } + } + export function AccountId32( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountId32 { + return { type: "AccountId32", ...value } + } + export function AccountIndex64( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountIndex64 { + return { type: "AccountIndex64", ...value } + } + export function AccountKey20( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountKey20 { + return { type: "AccountKey20", ...value } + } + export function PalletInstance( + value: t.types.xcm.v0.junction.Junction.PalletInstance["value"], + ): t.types.xcm.v0.junction.Junction.PalletInstance { + return { type: "PalletInstance", value } + } + export function GeneralIndex( + value: t.types.xcm.v0.junction.Junction.GeneralIndex["value"], + ): t.types.xcm.v0.junction.Junction.GeneralIndex { + return { type: "GeneralIndex", value } + } + export function GeneralKey( + value: t.types.xcm.v0.junction.Junction.GeneralKey["value"], + ): t.types.xcm.v0.junction.Junction.GeneralKey { + return { type: "GeneralKey", value } + } + export function OnlyChild(): t.types.xcm.v0.junction.Junction.OnlyChild { + return { type: "OnlyChild" } + } + export function Plurality( + value: Omit, + ): t.types.xcm.v0.junction.Junction.Plurality { + return { type: "Plurality", ...value } + } +} + +export type NetworkId = + | t.types.xcm.v0.junction.NetworkId.Any + | t.types.xcm.v0.junction.NetworkId.Named + | t.types.xcm.v0.junction.NetworkId.Polkadot + | t.types.xcm.v0.junction.NetworkId.Kusama +export namespace NetworkId { + export interface Any { + type: "Any" + } + export interface Named { + type: "Named" + value: Uint8Array + } + export interface Polkadot { + type: "Polkadot" + } + export interface Kusama { + type: "Kusama" + } + export function Any(): t.types.xcm.v0.junction.NetworkId.Any { + return { type: "Any" } + } + export function Named( + value: t.types.xcm.v0.junction.NetworkId.Named["value"], + ): t.types.xcm.v0.junction.NetworkId.Named { + return { type: "Named", value } + } + export function Polkadot(): t.types.xcm.v0.junction.NetworkId.Polkadot { + return { type: "Polkadot" } + } + export function Kusama(): t.types.xcm.v0.junction.NetworkId.Kusama { + return { type: "Kusama" } + } +} diff --git a/codegen/_output/rococo/types/xcm/v0/mod.ts b/codegen/_output/rococo/types/xcm/v0/mod.ts new file mode 100644 index 000000000..44faf4b53 --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v0/mod.ts @@ -0,0 +1,157 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as junction from "./junction.ts" +export * as multi_asset from "./multi_asset.ts" +export * as multi_location from "./multi_location.ts" +export * as order from "./order.ts" + +export const $originKind: $.Codec = _codec.$143 + +export const $response: $.Codec = _codec.$429 + +export const $xcm: $.Codec = _codec.$425 + +export type OriginKind = "Native" | "SovereignAccount" | "Superuser" | "Xcm" + +export type Response = t.types.xcm.v0.Response.Assets +export namespace Response { + export interface Assets { + type: "Assets" + value: Array + } + export function Assets( + value: t.types.xcm.v0.Response.Assets["value"], + ): t.types.xcm.v0.Response.Assets { + return { type: "Assets", value } + } +} + +export type Xcm = + | t.types.xcm.v0.Xcm.WithdrawAsset + | t.types.xcm.v0.Xcm.ReserveAssetDeposit + | t.types.xcm.v0.Xcm.TeleportAsset + | t.types.xcm.v0.Xcm.QueryResponse + | t.types.xcm.v0.Xcm.TransferAsset + | t.types.xcm.v0.Xcm.TransferReserveAsset + | t.types.xcm.v0.Xcm.Transact + | t.types.xcm.v0.Xcm.HrmpNewChannelOpenRequest + | t.types.xcm.v0.Xcm.HrmpChannelAccepted + | t.types.xcm.v0.Xcm.HrmpChannelClosing + | t.types.xcm.v0.Xcm.RelayedFrom +export namespace Xcm { + export interface WithdrawAsset { + type: "WithdrawAsset" + assets: Array + effects: Array + } + export interface ReserveAssetDeposit { + type: "ReserveAssetDeposit" + assets: Array + effects: Array + } + export interface TeleportAsset { + type: "TeleportAsset" + assets: Array + effects: Array + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v0.Response + } + export interface TransferAsset { + type: "TransferAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.types.u64 + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface RelayedFrom { + type: "RelayedFrom" + who: t.types.xcm.v0.multi_location.MultiLocation + message: t.types.xcm.v0.Xcm + } + export function WithdrawAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.WithdrawAsset { + return { type: "WithdrawAsset", ...value } + } + export function ReserveAssetDeposit( + value: Omit, + ): t.types.xcm.v0.Xcm.ReserveAssetDeposit { + return { type: "ReserveAssetDeposit", ...value } + } + export function TeleportAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TeleportAsset { + return { type: "TeleportAsset", ...value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v0.Xcm.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v0.Xcm.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function RelayedFrom( + value: Omit, + ): t.types.xcm.v0.Xcm.RelayedFrom { + return { type: "RelayedFrom", ...value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v0/multi_asset.ts b/codegen/_output/rococo/types/xcm/v0/multi_asset.ts new file mode 100644 index 000000000..d5cc676ee --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v0/multi_asset.ts @@ -0,0 +1,121 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $multiAsset: $.Codec = _codec.$152 + +export type MultiAsset = + | t.types.xcm.v0.multi_asset.MultiAsset.None + | t.types.xcm.v0.multi_asset.MultiAsset.All + | t.types.xcm.v0.multi_asset.MultiAsset.AllFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AbstractFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.ConcreteFungible + | t.types.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible +export namespace MultiAsset { + export interface None { + type: "None" + } + export interface All { + type: "All" + } + export interface AllFungible { + type: "AllFungible" + } + export interface AllNonFungible { + type: "AllNonFungible" + } + export interface AllAbstractFungible { + type: "AllAbstractFungible" + id: Uint8Array + } + export interface AllAbstractNonFungible { + type: "AllAbstractNonFungible" + class: Uint8Array + } + export interface AllConcreteFungible { + type: "AllConcreteFungible" + id: t.types.xcm.v0.multi_location.MultiLocation + } + export interface AllConcreteNonFungible { + type: "AllConcreteNonFungible" + class: t.types.xcm.v0.multi_location.MultiLocation + } + export interface AbstractFungible { + type: "AbstractFungible" + id: Uint8Array + amount: t.Compact + } + export interface AbstractNonFungible { + type: "AbstractNonFungible" + class: Uint8Array + instance: t.types.xcm.v1.multiasset.AssetInstance + } + export interface ConcreteFungible { + type: "ConcreteFungible" + id: t.types.xcm.v0.multi_location.MultiLocation + amount: t.Compact + } + export interface ConcreteNonFungible { + type: "ConcreteNonFungible" + class: t.types.xcm.v0.multi_location.MultiLocation + instance: t.types.xcm.v1.multiasset.AssetInstance + } + export function None(): t.types.xcm.v0.multi_asset.MultiAsset.None { + return { type: "None" } + } + export function All(): t.types.xcm.v0.multi_asset.MultiAsset.All { + return { type: "All" } + } + export function AllFungible(): t.types.xcm.v0.multi_asset.MultiAsset.AllFungible { + return { type: "AllFungible" } + } + export function AllNonFungible(): t.types.xcm.v0.multi_asset.MultiAsset.AllNonFungible { + return { type: "AllNonFungible" } + } + export function AllAbstractFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible { + return { type: "AllAbstractFungible", ...value } + } + export function AllAbstractNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible { + return { type: "AllAbstractNonFungible", ...value } + } + export function AllConcreteFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible { + return { type: "AllConcreteFungible", ...value } + } + export function AllConcreteNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible { + return { type: "AllConcreteNonFungible", ...value } + } + export function AbstractFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AbstractFungible { + return { type: "AbstractFungible", ...value } + } + export function AbstractNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible { + return { type: "AbstractNonFungible", ...value } + } + export function ConcreteFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.ConcreteFungible { + return { type: "ConcreteFungible", ...value } + } + export function ConcreteNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible { + return { type: "ConcreteNonFungible", ...value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v0/multi_location.ts b/codegen/_output/rococo/types/xcm/v0/multi_location.ts new file mode 100644 index 000000000..3a52363c6 --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v0/multi_location.ts @@ -0,0 +1,135 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $multiLocation: $.Codec = _codec.$153 + +export type MultiLocation = + | t.types.xcm.v0.multi_location.MultiLocation.Null + | t.types.xcm.v0.multi_location.MultiLocation.X1 + | t.types.xcm.v0.multi_location.MultiLocation.X2 + | t.types.xcm.v0.multi_location.MultiLocation.X3 + | t.types.xcm.v0.multi_location.MultiLocation.X4 + | t.types.xcm.v0.multi_location.MultiLocation.X5 + | t.types.xcm.v0.multi_location.MultiLocation.X6 + | t.types.xcm.v0.multi_location.MultiLocation.X7 + | t.types.xcm.v0.multi_location.MultiLocation.X8 +export namespace MultiLocation { + export interface Null { + type: "Null" + } + export interface X1 { + type: "X1" + value: t.types.xcm.v0.junction.Junction + } + export interface X2 { + type: "X2" + value: [t.types.xcm.v0.junction.Junction, t.types.xcm.v0.junction.Junction] + } + export interface X3 { + type: "X3" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X4 { + type: "X4" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X5 { + type: "X5" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X6 { + type: "X6" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X7 { + type: "X7" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X8 { + type: "X8" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export function Null(): t.types.xcm.v0.multi_location.MultiLocation.Null { + return { type: "Null" } + } + export function X1( + value: t.types.xcm.v0.multi_location.MultiLocation.X1["value"], + ): t.types.xcm.v0.multi_location.MultiLocation.X1 { + return { type: "X1", value } + } + export function X2( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X2["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X2 { + return { type: "X2", value } + } + export function X3( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X3["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X3 { + return { type: "X3", value } + } + export function X4( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X4["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X4 { + return { type: "X4", value } + } + export function X5( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X5["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X5 { + return { type: "X5", value } + } + export function X6( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X6["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X6 { + return { type: "X6", value } + } + export function X7( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X7["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X7 { + return { type: "X7", value } + } + export function X8( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X8["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X8 { + return { type: "X8", value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v0/order.ts b/codegen/_output/rococo/types/xcm/v0/order.ts new file mode 100644 index 000000000..e5f60587d --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v0/order.ts @@ -0,0 +1,100 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $order: $.Codec = _codec.$427 + +export type Order = + | t.types.xcm.v0.order.Order.Null + | t.types.xcm.v0.order.Order.DepositAsset + | t.types.xcm.v0.order.Order.DepositReserveAsset + | t.types.xcm.v0.order.Order.ExchangeAsset + | t.types.xcm.v0.order.Order.InitiateReserveWithdraw + | t.types.xcm.v0.order.Order.InitiateTeleport + | t.types.xcm.v0.order.Order.QueryHolding + | t.types.xcm.v0.order.Order.BuyExecution +export namespace Order { + export interface Null { + type: "Null" + } + export interface DepositAsset { + type: "DepositAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: Array + receive: Array + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: Array + reserve: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v0.multi_location.MultiLocation + assets: Array + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v0.multi_asset.MultiAsset + weight: t.types.u64 + debt: t.types.u64 + halt_on_error: boolean + xcm: Array + } + export function Null(): t.types.xcm.v0.order.Order.Null { + return { type: "Null" } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v0.order.Order.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v0.order.Order.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v0.order.Order.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v0.order.Order.BuyExecution { + return { type: "BuyExecution", ...value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v1/junction.ts b/codegen/_output/rococo/types/xcm/v1/junction.ts new file mode 100644 index 000000000..f1b0cb62f --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v1/junction.ts @@ -0,0 +1,100 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $junction: $.Codec = _codec.$124 + +export type Junction = + | t.types.xcm.v1.junction.Junction.Parachain + | t.types.xcm.v1.junction.Junction.AccountId32 + | t.types.xcm.v1.junction.Junction.AccountIndex64 + | t.types.xcm.v1.junction.Junction.AccountKey20 + | t.types.xcm.v1.junction.Junction.PalletInstance + | t.types.xcm.v1.junction.Junction.GeneralIndex + | t.types.xcm.v1.junction.Junction.GeneralKey + | t.types.xcm.v1.junction.Junction.OnlyChild + | t.types.xcm.v1.junction.Junction.Plurality +export namespace Junction { + export interface Parachain { + type: "Parachain" + value: t.Compact + } + export interface AccountId32 { + type: "AccountId32" + network: t.types.xcm.v0.junction.NetworkId + id: Uint8Array + } + export interface AccountIndex64 { + type: "AccountIndex64" + network: t.types.xcm.v0.junction.NetworkId + index: t.Compact + } + export interface AccountKey20 { + type: "AccountKey20" + network: t.types.xcm.v0.junction.NetworkId + key: Uint8Array + } + export interface PalletInstance { + type: "PalletInstance" + value: t.types.u8 + } + export interface GeneralIndex { + type: "GeneralIndex" + value: t.Compact + } + export interface GeneralKey { + type: "GeneralKey" + value: Uint8Array + } + export interface OnlyChild { + type: "OnlyChild" + } + export interface Plurality { + type: "Plurality" + id: t.types.xcm.v0.junction.BodyId + part: t.types.xcm.v0.junction.BodyPart + } + export function Parachain( + value: t.types.xcm.v1.junction.Junction.Parachain["value"], + ): t.types.xcm.v1.junction.Junction.Parachain { + return { type: "Parachain", value } + } + export function AccountId32( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountId32 { + return { type: "AccountId32", ...value } + } + export function AccountIndex64( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountIndex64 { + return { type: "AccountIndex64", ...value } + } + export function AccountKey20( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountKey20 { + return { type: "AccountKey20", ...value } + } + export function PalletInstance( + value: t.types.xcm.v1.junction.Junction.PalletInstance["value"], + ): t.types.xcm.v1.junction.Junction.PalletInstance { + return { type: "PalletInstance", value } + } + export function GeneralIndex( + value: t.types.xcm.v1.junction.Junction.GeneralIndex["value"], + ): t.types.xcm.v1.junction.Junction.GeneralIndex { + return { type: "GeneralIndex", value } + } + export function GeneralKey( + value: t.types.xcm.v1.junction.Junction.GeneralKey["value"], + ): t.types.xcm.v1.junction.Junction.GeneralKey { + return { type: "GeneralKey", value } + } + export function OnlyChild(): t.types.xcm.v1.junction.Junction.OnlyChild { + return { type: "OnlyChild" } + } + export function Plurality( + value: Omit, + ): t.types.xcm.v1.junction.Junction.Plurality { + return { type: "Plurality", ...value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v1/mod.ts b/codegen/_output/rococo/types/xcm/v1/mod.ts new file mode 100644 index 000000000..22e161792 --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v1/mod.ts @@ -0,0 +1,180 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as junction from "./junction.ts" +export * as multiasset from "./multiasset.ts" +export * as multilocation from "./multilocation.ts" +export * as order from "./order.ts" + +export const $response: $.Codec = _codec.$434 + +export const $xcm: $.Codec = _codec.$430 + +export type Response = t.types.xcm.v1.Response.Assets | t.types.xcm.v1.Response.Version +export namespace Response { + export interface Assets { + type: "Assets" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface Version { + type: "Version" + value: t.types.u32 + } + export function Assets( + value: t.types.xcm.v1.Response.Assets["value"], + ): t.types.xcm.v1.Response.Assets { + return { type: "Assets", value } + } + export function Version( + value: t.types.xcm.v1.Response.Version["value"], + ): t.types.xcm.v1.Response.Version { + return { type: "Version", value } + } +} + +export type Xcm = + | t.types.xcm.v1.Xcm.WithdrawAsset + | t.types.xcm.v1.Xcm.ReserveAssetDeposited + | t.types.xcm.v1.Xcm.ReceiveTeleportedAsset + | t.types.xcm.v1.Xcm.QueryResponse + | t.types.xcm.v1.Xcm.TransferAsset + | t.types.xcm.v1.Xcm.TransferReserveAsset + | t.types.xcm.v1.Xcm.Transact + | t.types.xcm.v1.Xcm.HrmpNewChannelOpenRequest + | t.types.xcm.v1.Xcm.HrmpChannelAccepted + | t.types.xcm.v1.Xcm.HrmpChannelClosing + | t.types.xcm.v1.Xcm.RelayedFrom + | t.types.xcm.v1.Xcm.SubscribeVersion + | t.types.xcm.v1.Xcm.UnsubscribeVersion +export namespace Xcm { + export interface WithdrawAsset { + type: "WithdrawAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface ReserveAssetDeposited { + type: "ReserveAssetDeposited" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface ReceiveTeleportedAsset { + type: "ReceiveTeleportedAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v1.Response + } + export interface TransferAsset { + type: "TransferAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.types.u64 + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface RelayedFrom { + type: "RelayedFrom" + who: t.types.xcm.v1.multilocation.Junctions + message: t.types.xcm.v1.Xcm + } + export interface SubscribeVersion { + type: "SubscribeVersion" + query_id: t.Compact + max_response_weight: t.Compact + } + export interface UnsubscribeVersion { + type: "UnsubscribeVersion" + } + export function WithdrawAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.WithdrawAsset { + return { type: "WithdrawAsset", ...value } + } + export function ReserveAssetDeposited( + value: Omit, + ): t.types.xcm.v1.Xcm.ReserveAssetDeposited { + return { type: "ReserveAssetDeposited", ...value } + } + export function ReceiveTeleportedAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.ReceiveTeleportedAsset { + return { type: "ReceiveTeleportedAsset", ...value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v1.Xcm.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v1.Xcm.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function RelayedFrom( + value: Omit, + ): t.types.xcm.v1.Xcm.RelayedFrom { + return { type: "RelayedFrom", ...value } + } + export function SubscribeVersion( + value: Omit, + ): t.types.xcm.v1.Xcm.SubscribeVersion { + return { type: "SubscribeVersion", ...value } + } + export function UnsubscribeVersion(): t.types.xcm.v1.Xcm.UnsubscribeVersion { + return { type: "UnsubscribeVersion" } + } +} diff --git a/codegen/_output/rococo/types/xcm/v1/multiasset.ts b/codegen/_output/rococo/types/xcm/v1/multiasset.ts new file mode 100644 index 000000000..a11443466 --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v1/multiasset.ts @@ -0,0 +1,201 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $assetId: $.Codec = _codec.$136 + +export const $assetInstance: $.Codec = _codec.$138 + +export const $fungibility: $.Codec = _codec.$137 + +export const $multiAsset: $.Codec = _codec.$135 + +export const $multiAssetFilter: $.Codec = _codec.$145 + +export const $multiAssets: $.Codec = _codec.$133 + +export const $wildFungibility: $.Codec = _codec.$147 + +export const $wildMultiAsset: $.Codec = _codec.$146 + +export type AssetId = + | t.types.xcm.v1.multiasset.AssetId.Concrete + | t.types.xcm.v1.multiasset.AssetId.Abstract +export namespace AssetId { + export interface Concrete { + type: "Concrete" + value: t.types.xcm.v1.multilocation.MultiLocation + } + export interface Abstract { + type: "Abstract" + value: Uint8Array + } + export function Concrete( + value: t.types.xcm.v1.multiasset.AssetId.Concrete["value"], + ): t.types.xcm.v1.multiasset.AssetId.Concrete { + return { type: "Concrete", value } + } + export function Abstract( + value: t.types.xcm.v1.multiasset.AssetId.Abstract["value"], + ): t.types.xcm.v1.multiasset.AssetId.Abstract { + return { type: "Abstract", value } + } +} + +export type AssetInstance = + | t.types.xcm.v1.multiasset.AssetInstance.Undefined + | t.types.xcm.v1.multiasset.AssetInstance.Index + | t.types.xcm.v1.multiasset.AssetInstance.Array4 + | t.types.xcm.v1.multiasset.AssetInstance.Array8 + | t.types.xcm.v1.multiasset.AssetInstance.Array16 + | t.types.xcm.v1.multiasset.AssetInstance.Array32 + | t.types.xcm.v1.multiasset.AssetInstance.Blob +export namespace AssetInstance { + export interface Undefined { + type: "Undefined" + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Array4 { + type: "Array4" + value: Uint8Array + } + export interface Array8 { + type: "Array8" + value: Uint8Array + } + export interface Array16 { + type: "Array16" + value: Uint8Array + } + export interface Array32 { + type: "Array32" + value: Uint8Array + } + export interface Blob { + type: "Blob" + value: Uint8Array + } + export function Undefined(): t.types.xcm.v1.multiasset.AssetInstance.Undefined { + return { type: "Undefined" } + } + export function Index( + value: t.types.xcm.v1.multiasset.AssetInstance.Index["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Index { + return { type: "Index", value } + } + export function Array4( + value: t.types.xcm.v1.multiasset.AssetInstance.Array4["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array4 { + return { type: "Array4", value } + } + export function Array8( + value: t.types.xcm.v1.multiasset.AssetInstance.Array8["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array8 { + return { type: "Array8", value } + } + export function Array16( + value: t.types.xcm.v1.multiasset.AssetInstance.Array16["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array16 { + return { type: "Array16", value } + } + export function Array32( + value: t.types.xcm.v1.multiasset.AssetInstance.Array32["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array32 { + return { type: "Array32", value } + } + export function Blob( + value: t.types.xcm.v1.multiasset.AssetInstance.Blob["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Blob { + return { type: "Blob", value } + } +} + +export type Fungibility = + | t.types.xcm.v1.multiasset.Fungibility.Fungible + | t.types.xcm.v1.multiasset.Fungibility.NonFungible +export namespace Fungibility { + export interface Fungible { + type: "Fungible" + value: t.Compact + } + export interface NonFungible { + type: "NonFungible" + value: t.types.xcm.v1.multiasset.AssetInstance + } + export function Fungible( + value: t.types.xcm.v1.multiasset.Fungibility.Fungible["value"], + ): t.types.xcm.v1.multiasset.Fungibility.Fungible { + return { type: "Fungible", value } + } + export function NonFungible( + value: t.types.xcm.v1.multiasset.Fungibility.NonFungible["value"], + ): t.types.xcm.v1.multiasset.Fungibility.NonFungible { + return { type: "NonFungible", value } + } +} + +export interface MultiAsset { + id: t.types.xcm.v1.multiasset.AssetId + fun: t.types.xcm.v1.multiasset.Fungibility +} + +export function MultiAsset(value: t.types.xcm.v1.multiasset.MultiAsset) { + return value +} + +export type MultiAssetFilter = + | t.types.xcm.v1.multiasset.MultiAssetFilter.Definite + | t.types.xcm.v1.multiasset.MultiAssetFilter.Wild +export namespace MultiAssetFilter { + export interface Definite { + type: "Definite" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface Wild { + type: "Wild" + value: t.types.xcm.v1.multiasset.WildMultiAsset + } + export function Definite( + value: t.types.xcm.v1.multiasset.MultiAssetFilter.Definite["value"], + ): t.types.xcm.v1.multiasset.MultiAssetFilter.Definite { + return { type: "Definite", value } + } + export function Wild( + value: t.types.xcm.v1.multiasset.MultiAssetFilter.Wild["value"], + ): t.types.xcm.v1.multiasset.MultiAssetFilter.Wild { + return { type: "Wild", value } + } +} + +export type MultiAssets = Array + +export function MultiAssets(value: t.types.xcm.v1.multiasset.MultiAssets) { + return value +} + +export type WildFungibility = "Fungible" | "NonFungible" + +export type WildMultiAsset = + | t.types.xcm.v1.multiasset.WildMultiAsset.All + | t.types.xcm.v1.multiasset.WildMultiAsset.AllOf +export namespace WildMultiAsset { + export interface All { + type: "All" + } + export interface AllOf { + type: "AllOf" + id: t.types.xcm.v1.multiasset.AssetId + fun: t.types.xcm.v1.multiasset.WildFungibility + } + export function All(): t.types.xcm.v1.multiasset.WildMultiAsset.All { + return { type: "All" } + } + export function AllOf( + value: Omit, + ): t.types.xcm.v1.multiasset.WildMultiAsset.AllOf { + return { type: "AllOf", ...value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v1/multilocation.ts b/codegen/_output/rococo/types/xcm/v1/multilocation.ts new file mode 100644 index 000000000..1764b59af --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v1/multilocation.ts @@ -0,0 +1,146 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $junctions: $.Codec = _codec.$123 + +export const $multiLocation: $.Codec = _codec.$122 + +export type Junctions = + | t.types.xcm.v1.multilocation.Junctions.Here + | t.types.xcm.v1.multilocation.Junctions.X1 + | t.types.xcm.v1.multilocation.Junctions.X2 + | t.types.xcm.v1.multilocation.Junctions.X3 + | t.types.xcm.v1.multilocation.Junctions.X4 + | t.types.xcm.v1.multilocation.Junctions.X5 + | t.types.xcm.v1.multilocation.Junctions.X6 + | t.types.xcm.v1.multilocation.Junctions.X7 + | t.types.xcm.v1.multilocation.Junctions.X8 +export namespace Junctions { + export interface Here { + type: "Here" + } + export interface X1 { + type: "X1" + value: t.types.xcm.v1.junction.Junction + } + export interface X2 { + type: "X2" + value: [t.types.xcm.v1.junction.Junction, t.types.xcm.v1.junction.Junction] + } + export interface X3 { + type: "X3" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X4 { + type: "X4" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X5 { + type: "X5" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X6 { + type: "X6" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X7 { + type: "X7" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X8 { + type: "X8" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export function Here(): t.types.xcm.v1.multilocation.Junctions.Here { + return { type: "Here" } + } + export function X1( + value: t.types.xcm.v1.multilocation.Junctions.X1["value"], + ): t.types.xcm.v1.multilocation.Junctions.X1 { + return { type: "X1", value } + } + export function X2( + ...value: t.types.xcm.v1.multilocation.Junctions.X2["value"] + ): t.types.xcm.v1.multilocation.Junctions.X2 { + return { type: "X2", value } + } + export function X3( + ...value: t.types.xcm.v1.multilocation.Junctions.X3["value"] + ): t.types.xcm.v1.multilocation.Junctions.X3 { + return { type: "X3", value } + } + export function X4( + ...value: t.types.xcm.v1.multilocation.Junctions.X4["value"] + ): t.types.xcm.v1.multilocation.Junctions.X4 { + return { type: "X4", value } + } + export function X5( + ...value: t.types.xcm.v1.multilocation.Junctions.X5["value"] + ): t.types.xcm.v1.multilocation.Junctions.X5 { + return { type: "X5", value } + } + export function X6( + ...value: t.types.xcm.v1.multilocation.Junctions.X6["value"] + ): t.types.xcm.v1.multilocation.Junctions.X6 { + return { type: "X6", value } + } + export function X7( + ...value: t.types.xcm.v1.multilocation.Junctions.X7["value"] + ): t.types.xcm.v1.multilocation.Junctions.X7 { + return { type: "X7", value } + } + export function X8( + ...value: t.types.xcm.v1.multilocation.Junctions.X8["value"] + ): t.types.xcm.v1.multilocation.Junctions.X8 { + return { type: "X8", value } + } +} + +export interface MultiLocation { + parents: t.types.u8 + interior: t.types.xcm.v1.multilocation.Junctions +} + +export function MultiLocation(value: t.types.xcm.v1.multilocation.MultiLocation) { + return value +} diff --git a/codegen/_output/rococo/types/xcm/v1/order.ts b/codegen/_output/rococo/types/xcm/v1/order.ts new file mode 100644 index 000000000..9337ba623 --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v1/order.ts @@ -0,0 +1,102 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $order: $.Codec = _codec.$432 + +export type Order = + | t.types.xcm.v1.order.Order.Noop + | t.types.xcm.v1.order.Order.DepositAsset + | t.types.xcm.v1.order.Order.DepositReserveAsset + | t.types.xcm.v1.order.Order.ExchangeAsset + | t.types.xcm.v1.order.Order.InitiateReserveWithdraw + | t.types.xcm.v1.order.Order.InitiateTeleport + | t.types.xcm.v1.order.Order.QueryHolding + | t.types.xcm.v1.order.Order.BuyExecution +export namespace Order { + export interface Noop { + type: "Noop" + } + export interface DepositAsset { + type: "DepositAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.types.u32 + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.types.u32 + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: t.types.xcm.v1.multiasset.MultiAssetFilter + receive: t.types.xcm.v1.multiasset.MultiAssets + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + reserve: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v1.multiasset.MultiAsset + weight: t.types.u64 + debt: t.types.u64 + halt_on_error: boolean + instructions: Array + } + export function Noop(): t.types.xcm.v1.order.Order.Noop { + return { type: "Noop" } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v1.order.Order.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v1.order.Order.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v1.order.Order.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v1.order.Order.BuyExecution { + return { type: "BuyExecution", ...value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v2/mod.ts b/codegen/_output/rococo/types/xcm/v2/mod.ts new file mode 100644 index 000000000..c91c6d027 --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v2/mod.ts @@ -0,0 +1,372 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as traits from "./traits.ts" + +export const $instruction: $.Codec = _codec.$132 + +export const $response: $.Codec = _codec.$140 + +export const $weightLimit: $.Codec = _codec.$148 + +export type Instruction = + | t.types.xcm.v2.Instruction.WithdrawAsset + | t.types.xcm.v2.Instruction.ReserveAssetDeposited + | t.types.xcm.v2.Instruction.ReceiveTeleportedAsset + | t.types.xcm.v2.Instruction.QueryResponse + | t.types.xcm.v2.Instruction.TransferAsset + | t.types.xcm.v2.Instruction.TransferReserveAsset + | t.types.xcm.v2.Instruction.Transact + | t.types.xcm.v2.Instruction.HrmpNewChannelOpenRequest + | t.types.xcm.v2.Instruction.HrmpChannelAccepted + | t.types.xcm.v2.Instruction.HrmpChannelClosing + | t.types.xcm.v2.Instruction.ClearOrigin + | t.types.xcm.v2.Instruction.DescendOrigin + | t.types.xcm.v2.Instruction.ReportError + | t.types.xcm.v2.Instruction.DepositAsset + | t.types.xcm.v2.Instruction.DepositReserveAsset + | t.types.xcm.v2.Instruction.ExchangeAsset + | t.types.xcm.v2.Instruction.InitiateReserveWithdraw + | t.types.xcm.v2.Instruction.InitiateTeleport + | t.types.xcm.v2.Instruction.QueryHolding + | t.types.xcm.v2.Instruction.BuyExecution + | t.types.xcm.v2.Instruction.RefundSurplus + | t.types.xcm.v2.Instruction.SetErrorHandler + | t.types.xcm.v2.Instruction.SetAppendix + | t.types.xcm.v2.Instruction.ClearError + | t.types.xcm.v2.Instruction.ClaimAsset + | t.types.xcm.v2.Instruction.Trap + | t.types.xcm.v2.Instruction.SubscribeVersion + | t.types.xcm.v2.Instruction.UnsubscribeVersion +export namespace Instruction { + export interface WithdrawAsset { + type: "WithdrawAsset" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ReserveAssetDeposited { + type: "ReserveAssetDeposited" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ReceiveTeleportedAsset { + type: "ReceiveTeleportedAsset" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v2.Response + max_weight: t.Compact + } + export interface TransferAsset { + type: "TransferAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.Compact + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface ClearOrigin { + type: "ClearOrigin" + } + export interface DescendOrigin { + type: "DescendOrigin" + value: t.types.xcm.v1.multilocation.Junctions + } + export interface ReportError { + type: "ReportError" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + max_response_weight: t.Compact + } + export interface DepositAsset { + type: "DepositAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.Compact + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: t.types.xcm.v1.multiasset.MultiAssetFilter + receive: t.types.xcm.v1.multiasset.MultiAssets + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + reserve: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_response_weight: t.Compact + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v1.multiasset.MultiAsset + weight_limit: t.types.xcm.v2.WeightLimit + } + export interface RefundSurplus { + type: "RefundSurplus" + } + export interface SetErrorHandler { + type: "SetErrorHandler" + value: Array + } + export interface SetAppendix { + type: "SetAppendix" + value: Array + } + export interface ClearError { + type: "ClearError" + } + export interface ClaimAsset { + type: "ClaimAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + ticket: t.types.xcm.v1.multilocation.MultiLocation + } + export interface Trap { + type: "Trap" + value: t.Compact + } + export interface SubscribeVersion { + type: "SubscribeVersion" + query_id: t.Compact + max_response_weight: t.Compact + } + export interface UnsubscribeVersion { + type: "UnsubscribeVersion" + } + export function WithdrawAsset( + value: t.types.xcm.v2.Instruction.WithdrawAsset["value"], + ): t.types.xcm.v2.Instruction.WithdrawAsset { + return { type: "WithdrawAsset", value } + } + export function ReserveAssetDeposited( + value: t.types.xcm.v2.Instruction.ReserveAssetDeposited["value"], + ): t.types.xcm.v2.Instruction.ReserveAssetDeposited { + return { type: "ReserveAssetDeposited", value } + } + export function ReceiveTeleportedAsset( + value: t.types.xcm.v2.Instruction.ReceiveTeleportedAsset["value"], + ): t.types.xcm.v2.Instruction.ReceiveTeleportedAsset { + return { type: "ReceiveTeleportedAsset", value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v2.Instruction.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v2.Instruction.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function ClearOrigin(): t.types.xcm.v2.Instruction.ClearOrigin { + return { type: "ClearOrigin" } + } + export function DescendOrigin( + value: t.types.xcm.v2.Instruction.DescendOrigin["value"], + ): t.types.xcm.v2.Instruction.DescendOrigin { + return { type: "DescendOrigin", value } + } + export function ReportError( + value: Omit, + ): t.types.xcm.v2.Instruction.ReportError { + return { type: "ReportError", ...value } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v2.Instruction.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v2.Instruction.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v2.Instruction.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v2.Instruction.BuyExecution { + return { type: "BuyExecution", ...value } + } + export function RefundSurplus(): t.types.xcm.v2.Instruction.RefundSurplus { + return { type: "RefundSurplus" } + } + export function SetErrorHandler( + value: t.types.xcm.v2.Instruction.SetErrorHandler["value"], + ): t.types.xcm.v2.Instruction.SetErrorHandler { + return { type: "SetErrorHandler", value } + } + export function SetAppendix( + value: t.types.xcm.v2.Instruction.SetAppendix["value"], + ): t.types.xcm.v2.Instruction.SetAppendix { + return { type: "SetAppendix", value } + } + export function ClearError(): t.types.xcm.v2.Instruction.ClearError { + return { type: "ClearError" } + } + export function ClaimAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.ClaimAsset { + return { type: "ClaimAsset", ...value } + } + export function Trap( + value: t.types.xcm.v2.Instruction.Trap["value"], + ): t.types.xcm.v2.Instruction.Trap { + return { type: "Trap", value } + } + export function SubscribeVersion( + value: Omit, + ): t.types.xcm.v2.Instruction.SubscribeVersion { + return { type: "SubscribeVersion", ...value } + } + export function UnsubscribeVersion(): t.types.xcm.v2.Instruction.UnsubscribeVersion { + return { type: "UnsubscribeVersion" } + } +} + +export type Response = + | t.types.xcm.v2.Response.Null + | t.types.xcm.v2.Response.Assets + | t.types.xcm.v2.Response.ExecutionResult + | t.types.xcm.v2.Response.Version +export namespace Response { + export interface Null { + type: "Null" + } + export interface Assets { + type: "Assets" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ExecutionResult { + type: "ExecutionResult" + value: [t.types.u32, t.types.xcm.v2.traits.Error] | undefined + } + export interface Version { + type: "Version" + value: t.types.u32 + } + export function Null(): t.types.xcm.v2.Response.Null { + return { type: "Null" } + } + export function Assets( + value: t.types.xcm.v2.Response.Assets["value"], + ): t.types.xcm.v2.Response.Assets { + return { type: "Assets", value } + } + export function ExecutionResult( + value: t.types.xcm.v2.Response.ExecutionResult["value"], + ): t.types.xcm.v2.Response.ExecutionResult { + return { type: "ExecutionResult", value } + } + export function Version( + value: t.types.xcm.v2.Response.Version["value"], + ): t.types.xcm.v2.Response.Version { + return { type: "Version", value } + } +} + +export type WeightLimit = t.types.xcm.v2.WeightLimit.Unlimited | t.types.xcm.v2.WeightLimit.Limited +export namespace WeightLimit { + export interface Unlimited { + type: "Unlimited" + } + export interface Limited { + type: "Limited" + value: t.Compact + } + export function Unlimited(): t.types.xcm.v2.WeightLimit.Unlimited { + return { type: "Unlimited" } + } + export function Limited( + value: t.types.xcm.v2.WeightLimit.Limited["value"], + ): t.types.xcm.v2.WeightLimit.Limited { + return { type: "Limited", value } + } +} diff --git a/codegen/_output/rococo/types/xcm/v2/traits.ts b/codegen/_output/rococo/types/xcm/v2/traits.ts new file mode 100644 index 000000000..2b2bc95e6 --- /dev/null +++ b/codegen/_output/rococo/types/xcm/v2/traits.ts @@ -0,0 +1,233 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $error: $.Codec = _codec.$110 + +export const $outcome: $.Codec = _codec.$109 + +export type Error = + | t.types.xcm.v2.traits.Error.Overflow + | t.types.xcm.v2.traits.Error.Unimplemented + | t.types.xcm.v2.traits.Error.UntrustedReserveLocation + | t.types.xcm.v2.traits.Error.UntrustedTeleportLocation + | t.types.xcm.v2.traits.Error.MultiLocationFull + | t.types.xcm.v2.traits.Error.MultiLocationNotInvertible + | t.types.xcm.v2.traits.Error.BadOrigin + | t.types.xcm.v2.traits.Error.InvalidLocation + | t.types.xcm.v2.traits.Error.AssetNotFound + | t.types.xcm.v2.traits.Error.FailedToTransactAsset + | t.types.xcm.v2.traits.Error.NotWithdrawable + | t.types.xcm.v2.traits.Error.LocationCannotHold + | t.types.xcm.v2.traits.Error.ExceedsMaxMessageSize + | t.types.xcm.v2.traits.Error.DestinationUnsupported + | t.types.xcm.v2.traits.Error.Transport + | t.types.xcm.v2.traits.Error.Unroutable + | t.types.xcm.v2.traits.Error.UnknownClaim + | t.types.xcm.v2.traits.Error.FailedToDecode + | t.types.xcm.v2.traits.Error.MaxWeightInvalid + | t.types.xcm.v2.traits.Error.NotHoldingFees + | t.types.xcm.v2.traits.Error.TooExpensive + | t.types.xcm.v2.traits.Error.Trap + | t.types.xcm.v2.traits.Error.UnhandledXcmVersion + | t.types.xcm.v2.traits.Error.WeightLimitReached + | t.types.xcm.v2.traits.Error.Barrier + | t.types.xcm.v2.traits.Error.WeightNotComputable +export namespace Error { + export interface Overflow { + type: "Overflow" + } + export interface Unimplemented { + type: "Unimplemented" + } + export interface UntrustedReserveLocation { + type: "UntrustedReserveLocation" + } + export interface UntrustedTeleportLocation { + type: "UntrustedTeleportLocation" + } + export interface MultiLocationFull { + type: "MultiLocationFull" + } + export interface MultiLocationNotInvertible { + type: "MultiLocationNotInvertible" + } + export interface BadOrigin { + type: "BadOrigin" + } + export interface InvalidLocation { + type: "InvalidLocation" + } + export interface AssetNotFound { + type: "AssetNotFound" + } + export interface FailedToTransactAsset { + type: "FailedToTransactAsset" + } + export interface NotWithdrawable { + type: "NotWithdrawable" + } + export interface LocationCannotHold { + type: "LocationCannotHold" + } + export interface ExceedsMaxMessageSize { + type: "ExceedsMaxMessageSize" + } + export interface DestinationUnsupported { + type: "DestinationUnsupported" + } + export interface Transport { + type: "Transport" + } + export interface Unroutable { + type: "Unroutable" + } + export interface UnknownClaim { + type: "UnknownClaim" + } + export interface FailedToDecode { + type: "FailedToDecode" + } + export interface MaxWeightInvalid { + type: "MaxWeightInvalid" + } + export interface NotHoldingFees { + type: "NotHoldingFees" + } + export interface TooExpensive { + type: "TooExpensive" + } + export interface Trap { + type: "Trap" + value: t.types.u64 + } + export interface UnhandledXcmVersion { + type: "UnhandledXcmVersion" + } + export interface WeightLimitReached { + type: "WeightLimitReached" + value: t.types.u64 + } + export interface Barrier { + type: "Barrier" + } + export interface WeightNotComputable { + type: "WeightNotComputable" + } + export function Overflow(): t.types.xcm.v2.traits.Error.Overflow { + return { type: "Overflow" } + } + export function Unimplemented(): t.types.xcm.v2.traits.Error.Unimplemented { + return { type: "Unimplemented" } + } + export function UntrustedReserveLocation(): t.types.xcm.v2.traits.Error.UntrustedReserveLocation { + return { type: "UntrustedReserveLocation" } + } + export function UntrustedTeleportLocation(): t.types.xcm.v2.traits.Error.UntrustedTeleportLocation { + return { type: "UntrustedTeleportLocation" } + } + export function MultiLocationFull(): t.types.xcm.v2.traits.Error.MultiLocationFull { + return { type: "MultiLocationFull" } + } + export function MultiLocationNotInvertible(): t.types.xcm.v2.traits.Error.MultiLocationNotInvertible { + return { type: "MultiLocationNotInvertible" } + } + export function BadOrigin(): t.types.xcm.v2.traits.Error.BadOrigin { + return { type: "BadOrigin" } + } + export function InvalidLocation(): t.types.xcm.v2.traits.Error.InvalidLocation { + return { type: "InvalidLocation" } + } + export function AssetNotFound(): t.types.xcm.v2.traits.Error.AssetNotFound { + return { type: "AssetNotFound" } + } + export function FailedToTransactAsset(): t.types.xcm.v2.traits.Error.FailedToTransactAsset { + return { type: "FailedToTransactAsset" } + } + export function NotWithdrawable(): t.types.xcm.v2.traits.Error.NotWithdrawable { + return { type: "NotWithdrawable" } + } + export function LocationCannotHold(): t.types.xcm.v2.traits.Error.LocationCannotHold { + return { type: "LocationCannotHold" } + } + export function ExceedsMaxMessageSize(): t.types.xcm.v2.traits.Error.ExceedsMaxMessageSize { + return { type: "ExceedsMaxMessageSize" } + } + export function DestinationUnsupported(): t.types.xcm.v2.traits.Error.DestinationUnsupported { + return { type: "DestinationUnsupported" } + } + export function Transport(): t.types.xcm.v2.traits.Error.Transport { + return { type: "Transport" } + } + export function Unroutable(): t.types.xcm.v2.traits.Error.Unroutable { + return { type: "Unroutable" } + } + export function UnknownClaim(): t.types.xcm.v2.traits.Error.UnknownClaim { + return { type: "UnknownClaim" } + } + export function FailedToDecode(): t.types.xcm.v2.traits.Error.FailedToDecode { + return { type: "FailedToDecode" } + } + export function MaxWeightInvalid(): t.types.xcm.v2.traits.Error.MaxWeightInvalid { + return { type: "MaxWeightInvalid" } + } + export function NotHoldingFees(): t.types.xcm.v2.traits.Error.NotHoldingFees { + return { type: "NotHoldingFees" } + } + export function TooExpensive(): t.types.xcm.v2.traits.Error.TooExpensive { + return { type: "TooExpensive" } + } + export function Trap( + value: t.types.xcm.v2.traits.Error.Trap["value"], + ): t.types.xcm.v2.traits.Error.Trap { + return { type: "Trap", value } + } + export function UnhandledXcmVersion(): t.types.xcm.v2.traits.Error.UnhandledXcmVersion { + return { type: "UnhandledXcmVersion" } + } + export function WeightLimitReached( + value: t.types.xcm.v2.traits.Error.WeightLimitReached["value"], + ): t.types.xcm.v2.traits.Error.WeightLimitReached { + return { type: "WeightLimitReached", value } + } + export function Barrier(): t.types.xcm.v2.traits.Error.Barrier { + return { type: "Barrier" } + } + export function WeightNotComputable(): t.types.xcm.v2.traits.Error.WeightNotComputable { + return { type: "WeightNotComputable" } + } +} + +export type Outcome = + | t.types.xcm.v2.traits.Outcome.Complete + | t.types.xcm.v2.traits.Outcome.Incomplete + | t.types.xcm.v2.traits.Outcome.Error +export namespace Outcome { + export interface Complete { + type: "Complete" + value: t.types.u64 + } + export interface Incomplete { + type: "Incomplete" + value: [t.types.u64, t.types.xcm.v2.traits.Error] + } + export interface Error { + type: "Error" + value: t.types.xcm.v2.traits.Error + } + export function Complete( + value: t.types.xcm.v2.traits.Outcome.Complete["value"], + ): t.types.xcm.v2.traits.Outcome.Complete { + return { type: "Complete", value } + } + export function Incomplete( + ...value: t.types.xcm.v2.traits.Outcome.Incomplete["value"] + ): t.types.xcm.v2.traits.Outcome.Incomplete { + return { type: "Incomplete", value } + } + export function Error( + value: t.types.xcm.v2.traits.Outcome.Error["value"], + ): t.types.xcm.v2.traits.Outcome.Error { + return { type: "Error", value } + } +} diff --git a/codegen/_output/rococo/xcm/mod.ts b/codegen/_output/rococo/xcm/mod.ts deleted file mode 100644 index 1752da8bf..000000000 --- a/codegen/_output/rococo/xcm/mod.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as v0 from "./v0/mod.ts" -export * as v1 from "./v1/mod.ts" -export * as v2 from "./v2/mod.ts" - -export const $versionedMultiAssets: $.Codec = _codec.$150 - -export const $versionedMultiLocation: $.Codec = _codec.$155 - -export const $versionedResponse: $.Codec = _codec.$716 - -export const $versionedXcm: $.Codec = _codec.$424 - -export type VersionedMultiAssets = t.xcm.VersionedMultiAssets.V0 | t.xcm.VersionedMultiAssets.V1 -export namespace VersionedMultiAssets { - export interface V0 { - type: "V0" - value: Array - } - export interface V1 { - type: "V1" - value: t.xcm.v1.multiasset.MultiAssets - } - export function V0(value: t.xcm.VersionedMultiAssets.V0["value"]): t.xcm.VersionedMultiAssets.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedMultiAssets.V1["value"]): t.xcm.VersionedMultiAssets.V1 { - return { type: "V1", value } - } -} - -export type VersionedMultiLocation = - | t.xcm.VersionedMultiLocation.V0 - | t.xcm.VersionedMultiLocation.V1 -export namespace VersionedMultiLocation { - export interface V0 { - type: "V0" - value: t.xcm.v0.multi_location.MultiLocation - } - export interface V1 { - type: "V1" - value: t.xcm.v1.multilocation.MultiLocation - } - export function V0( - value: t.xcm.VersionedMultiLocation.V0["value"], - ): t.xcm.VersionedMultiLocation.V0 { - return { type: "V0", value } - } - export function V1( - value: t.xcm.VersionedMultiLocation.V1["value"], - ): t.xcm.VersionedMultiLocation.V1 { - return { type: "V1", value } - } -} - -export type VersionedResponse = - | t.xcm.VersionedResponse.V0 - | t.xcm.VersionedResponse.V1 - | t.xcm.VersionedResponse.V2 -export namespace VersionedResponse { - export interface V0 { - type: "V0" - value: t.xcm.v0.Response - } - export interface V1 { - type: "V1" - value: t.xcm.v1.Response - } - export interface V2 { - type: "V2" - value: t.xcm.v2.Response - } - export function V0(value: t.xcm.VersionedResponse.V0["value"]): t.xcm.VersionedResponse.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedResponse.V1["value"]): t.xcm.VersionedResponse.V1 { - return { type: "V1", value } - } - export function V2(value: t.xcm.VersionedResponse.V2["value"]): t.xcm.VersionedResponse.V2 { - return { type: "V2", value } - } -} - -export type VersionedXcm = t.xcm.VersionedXcm.V0 | t.xcm.VersionedXcm.V1 | t.xcm.VersionedXcm.V2 -export namespace VersionedXcm { - export interface V0 { - type: "V0" - value: t.xcm.v0.Xcm - } - export interface V1 { - type: "V1" - value: t.xcm.v1.Xcm - } - export interface V2 { - type: "V2" - value: Array - } - export function V0(value: t.xcm.VersionedXcm.V0["value"]): t.xcm.VersionedXcm.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedXcm.V1["value"]): t.xcm.VersionedXcm.V1 { - return { type: "V1", value } - } - export function V2(value: t.xcm.VersionedXcm.V2["value"]): t.xcm.VersionedXcm.V2 { - return { type: "V2", value } - } -} diff --git a/codegen/_output/rococo/xcm/v0/junction.ts b/codegen/_output/rococo/xcm/v0/junction.ts deleted file mode 100644 index 12f14f979..000000000 --- a/codegen/_output/rococo/xcm/v0/junction.ts +++ /dev/null @@ -1,261 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $bodyId: $.Codec = _codec.$128 - -export const $bodyPart: $.Codec = _codec.$129 - -export const $junction: $.Codec = _codec.$154 - -export const $networkId: $.Codec = _codec.$126 - -export type BodyId = - | t.xcm.v0.junction.BodyId.Unit - | t.xcm.v0.junction.BodyId.Named - | t.xcm.v0.junction.BodyId.Index - | t.xcm.v0.junction.BodyId.Executive - | t.xcm.v0.junction.BodyId.Technical - | t.xcm.v0.junction.BodyId.Legislative - | t.xcm.v0.junction.BodyId.Judicial -export namespace BodyId { - export interface Unit { - type: "Unit" - } - export interface Named { - type: "Named" - value: Uint8Array - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Executive { - type: "Executive" - } - export interface Technical { - type: "Technical" - } - export interface Legislative { - type: "Legislative" - } - export interface Judicial { - type: "Judicial" - } - export function Unit(): t.xcm.v0.junction.BodyId.Unit { - return { type: "Unit" } - } - export function Named( - value: t.xcm.v0.junction.BodyId.Named["value"], - ): t.xcm.v0.junction.BodyId.Named { - return { type: "Named", value } - } - export function Index( - value: t.xcm.v0.junction.BodyId.Index["value"], - ): t.xcm.v0.junction.BodyId.Index { - return { type: "Index", value } - } - export function Executive(): t.xcm.v0.junction.BodyId.Executive { - return { type: "Executive" } - } - export function Technical(): t.xcm.v0.junction.BodyId.Technical { - return { type: "Technical" } - } - export function Legislative(): t.xcm.v0.junction.BodyId.Legislative { - return { type: "Legislative" } - } - export function Judicial(): t.xcm.v0.junction.BodyId.Judicial { - return { type: "Judicial" } - } -} - -export type BodyPart = - | t.xcm.v0.junction.BodyPart.Voice - | t.xcm.v0.junction.BodyPart.Members - | t.xcm.v0.junction.BodyPart.Fraction - | t.xcm.v0.junction.BodyPart.AtLeastProportion - | t.xcm.v0.junction.BodyPart.MoreThanProportion -export namespace BodyPart { - export interface Voice { - type: "Voice" - } - export interface Members { - type: "Members" - count: t.Compact - } - export interface Fraction { - type: "Fraction" - nom: t.Compact - denom: t.Compact - } - export interface AtLeastProportion { - type: "AtLeastProportion" - nom: t.Compact - denom: t.Compact - } - export interface MoreThanProportion { - type: "MoreThanProportion" - nom: t.Compact - denom: t.Compact - } - export function Voice(): t.xcm.v0.junction.BodyPart.Voice { - return { type: "Voice" } - } - export function Members( - value: Omit, - ): t.xcm.v0.junction.BodyPart.Members { - return { type: "Members", ...value } - } - export function Fraction( - value: Omit, - ): t.xcm.v0.junction.BodyPart.Fraction { - return { type: "Fraction", ...value } - } - export function AtLeastProportion( - value: Omit, - ): t.xcm.v0.junction.BodyPart.AtLeastProportion { - return { type: "AtLeastProportion", ...value } - } - export function MoreThanProportion( - value: Omit, - ): t.xcm.v0.junction.BodyPart.MoreThanProportion { - return { type: "MoreThanProportion", ...value } - } -} - -export type Junction = - | t.xcm.v0.junction.Junction.Parent - | t.xcm.v0.junction.Junction.Parachain - | t.xcm.v0.junction.Junction.AccountId32 - | t.xcm.v0.junction.Junction.AccountIndex64 - | t.xcm.v0.junction.Junction.AccountKey20 - | t.xcm.v0.junction.Junction.PalletInstance - | t.xcm.v0.junction.Junction.GeneralIndex - | t.xcm.v0.junction.Junction.GeneralKey - | t.xcm.v0.junction.Junction.OnlyChild - | t.xcm.v0.junction.Junction.Plurality -export namespace Junction { - export interface Parent { - type: "Parent" - } - export interface Parachain { - type: "Parachain" - value: t.Compact - } - export interface AccountId32 { - type: "AccountId32" - network: t.xcm.v0.junction.NetworkId - id: Uint8Array - } - export interface AccountIndex64 { - type: "AccountIndex64" - network: t.xcm.v0.junction.NetworkId - index: t.Compact - } - export interface AccountKey20 { - type: "AccountKey20" - network: t.xcm.v0.junction.NetworkId - key: Uint8Array - } - export interface PalletInstance { - type: "PalletInstance" - value: t.u8 - } - export interface GeneralIndex { - type: "GeneralIndex" - value: t.Compact - } - export interface GeneralKey { - type: "GeneralKey" - value: Uint8Array - } - export interface OnlyChild { - type: "OnlyChild" - } - export interface Plurality { - type: "Plurality" - id: t.xcm.v0.junction.BodyId - part: t.xcm.v0.junction.BodyPart - } - export function Parent(): t.xcm.v0.junction.Junction.Parent { - return { type: "Parent" } - } - export function Parachain( - value: t.xcm.v0.junction.Junction.Parachain["value"], - ): t.xcm.v0.junction.Junction.Parachain { - return { type: "Parachain", value } - } - export function AccountId32( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountId32 { - return { type: "AccountId32", ...value } - } - export function AccountIndex64( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountIndex64 { - return { type: "AccountIndex64", ...value } - } - export function AccountKey20( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountKey20 { - return { type: "AccountKey20", ...value } - } - export function PalletInstance( - value: t.xcm.v0.junction.Junction.PalletInstance["value"], - ): t.xcm.v0.junction.Junction.PalletInstance { - return { type: "PalletInstance", value } - } - export function GeneralIndex( - value: t.xcm.v0.junction.Junction.GeneralIndex["value"], - ): t.xcm.v0.junction.Junction.GeneralIndex { - return { type: "GeneralIndex", value } - } - export function GeneralKey( - value: t.xcm.v0.junction.Junction.GeneralKey["value"], - ): t.xcm.v0.junction.Junction.GeneralKey { - return { type: "GeneralKey", value } - } - export function OnlyChild(): t.xcm.v0.junction.Junction.OnlyChild { - return { type: "OnlyChild" } - } - export function Plurality( - value: Omit, - ): t.xcm.v0.junction.Junction.Plurality { - return { type: "Plurality", ...value } - } -} - -export type NetworkId = - | t.xcm.v0.junction.NetworkId.Any - | t.xcm.v0.junction.NetworkId.Named - | t.xcm.v0.junction.NetworkId.Polkadot - | t.xcm.v0.junction.NetworkId.Kusama -export namespace NetworkId { - export interface Any { - type: "Any" - } - export interface Named { - type: "Named" - value: Uint8Array - } - export interface Polkadot { - type: "Polkadot" - } - export interface Kusama { - type: "Kusama" - } - export function Any(): t.xcm.v0.junction.NetworkId.Any { - return { type: "Any" } - } - export function Named( - value: t.xcm.v0.junction.NetworkId.Named["value"], - ): t.xcm.v0.junction.NetworkId.Named { - return { type: "Named", value } - } - export function Polkadot(): t.xcm.v0.junction.NetworkId.Polkadot { - return { type: "Polkadot" } - } - export function Kusama(): t.xcm.v0.junction.NetworkId.Kusama { - return { type: "Kusama" } - } -} diff --git a/codegen/_output/rococo/xcm/v0/mod.ts b/codegen/_output/rococo/xcm/v0/mod.ts deleted file mode 100644 index b0db8212b..000000000 --- a/codegen/_output/rococo/xcm/v0/mod.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as junction from "./junction.ts" -export * as multi_asset from "./multi_asset.ts" -export * as multi_location from "./multi_location.ts" -export * as order from "./order.ts" - -export const $originKind: $.Codec = _codec.$143 - -export const $response: $.Codec = _codec.$429 - -export const $xcm: $.Codec = _codec.$425 - -export type OriginKind = "Native" | "SovereignAccount" | "Superuser" | "Xcm" - -export type Response = t.xcm.v0.Response.Assets -export namespace Response { - export interface Assets { - type: "Assets" - value: Array - } - export function Assets(value: t.xcm.v0.Response.Assets["value"]): t.xcm.v0.Response.Assets { - return { type: "Assets", value } - } -} - -export type Xcm = - | t.xcm.v0.Xcm.WithdrawAsset - | t.xcm.v0.Xcm.ReserveAssetDeposit - | t.xcm.v0.Xcm.TeleportAsset - | t.xcm.v0.Xcm.QueryResponse - | t.xcm.v0.Xcm.TransferAsset - | t.xcm.v0.Xcm.TransferReserveAsset - | t.xcm.v0.Xcm.Transact - | t.xcm.v0.Xcm.HrmpNewChannelOpenRequest - | t.xcm.v0.Xcm.HrmpChannelAccepted - | t.xcm.v0.Xcm.HrmpChannelClosing - | t.xcm.v0.Xcm.RelayedFrom -export namespace Xcm { - export interface WithdrawAsset { - type: "WithdrawAsset" - assets: Array - effects: Array - } - export interface ReserveAssetDeposit { - type: "ReserveAssetDeposit" - assets: Array - effects: Array - } - export interface TeleportAsset { - type: "TeleportAsset" - assets: Array - effects: Array - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v0.Response - } - export interface TransferAsset { - type: "TransferAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.u64 - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface RelayedFrom { - type: "RelayedFrom" - who: t.xcm.v0.multi_location.MultiLocation - message: t.xcm.v0.Xcm - } - export function WithdrawAsset( - value: Omit, - ): t.xcm.v0.Xcm.WithdrawAsset { - return { type: "WithdrawAsset", ...value } - } - export function ReserveAssetDeposit( - value: Omit, - ): t.xcm.v0.Xcm.ReserveAssetDeposit { - return { type: "ReserveAssetDeposit", ...value } - } - export function TeleportAsset( - value: Omit, - ): t.xcm.v0.Xcm.TeleportAsset { - return { type: "TeleportAsset", ...value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v0.Xcm.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v0.Xcm.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v0.Xcm.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact(value: Omit): t.xcm.v0.Xcm.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v0.Xcm.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v0.Xcm.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v0.Xcm.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function RelayedFrom( - value: Omit, - ): t.xcm.v0.Xcm.RelayedFrom { - return { type: "RelayedFrom", ...value } - } -} diff --git a/codegen/_output/rococo/xcm/v0/multi_asset.ts b/codegen/_output/rococo/xcm/v0/multi_asset.ts deleted file mode 100644 index a101adce2..000000000 --- a/codegen/_output/rococo/xcm/v0/multi_asset.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $multiAsset: $.Codec = _codec.$152 - -export type MultiAsset = - | t.xcm.v0.multi_asset.MultiAsset.None - | t.xcm.v0.multi_asset.MultiAsset.All - | t.xcm.v0.multi_asset.MultiAsset.AllFungible - | t.xcm.v0.multi_asset.MultiAsset.AllNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible - | t.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible - | t.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AbstractFungible - | t.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible - | t.xcm.v0.multi_asset.MultiAsset.ConcreteFungible - | t.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible -export namespace MultiAsset { - export interface None { - type: "None" - } - export interface All { - type: "All" - } - export interface AllFungible { - type: "AllFungible" - } - export interface AllNonFungible { - type: "AllNonFungible" - } - export interface AllAbstractFungible { - type: "AllAbstractFungible" - id: Uint8Array - } - export interface AllAbstractNonFungible { - type: "AllAbstractNonFungible" - class: Uint8Array - } - export interface AllConcreteFungible { - type: "AllConcreteFungible" - id: t.xcm.v0.multi_location.MultiLocation - } - export interface AllConcreteNonFungible { - type: "AllConcreteNonFungible" - class: t.xcm.v0.multi_location.MultiLocation - } - export interface AbstractFungible { - type: "AbstractFungible" - id: Uint8Array - amount: t.Compact - } - export interface AbstractNonFungible { - type: "AbstractNonFungible" - class: Uint8Array - instance: t.xcm.v1.multiasset.AssetInstance - } - export interface ConcreteFungible { - type: "ConcreteFungible" - id: t.xcm.v0.multi_location.MultiLocation - amount: t.Compact - } - export interface ConcreteNonFungible { - type: "ConcreteNonFungible" - class: t.xcm.v0.multi_location.MultiLocation - instance: t.xcm.v1.multiasset.AssetInstance - } - export function None(): t.xcm.v0.multi_asset.MultiAsset.None { - return { type: "None" } - } - export function All(): t.xcm.v0.multi_asset.MultiAsset.All { - return { type: "All" } - } - export function AllFungible(): t.xcm.v0.multi_asset.MultiAsset.AllFungible { - return { type: "AllFungible" } - } - export function AllNonFungible(): t.xcm.v0.multi_asset.MultiAsset.AllNonFungible { - return { type: "AllNonFungible" } - } - export function AllAbstractFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible { - return { type: "AllAbstractFungible", ...value } - } - export function AllAbstractNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible { - return { type: "AllAbstractNonFungible", ...value } - } - export function AllConcreteFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible { - return { type: "AllConcreteFungible", ...value } - } - export function AllConcreteNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible { - return { type: "AllConcreteNonFungible", ...value } - } - export function AbstractFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AbstractFungible { - return { type: "AbstractFungible", ...value } - } - export function AbstractNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible { - return { type: "AbstractNonFungible", ...value } - } - export function ConcreteFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.ConcreteFungible { - return { type: "ConcreteFungible", ...value } - } - export function ConcreteNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible { - return { type: "ConcreteNonFungible", ...value } - } -} diff --git a/codegen/_output/rococo/xcm/v0/multi_location.ts b/codegen/_output/rococo/xcm/v0/multi_location.ts deleted file mode 100644 index 327600e00..000000000 --- a/codegen/_output/rococo/xcm/v0/multi_location.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $multiLocation: $.Codec = _codec.$153 - -export type MultiLocation = - | t.xcm.v0.multi_location.MultiLocation.Null - | t.xcm.v0.multi_location.MultiLocation.X1 - | t.xcm.v0.multi_location.MultiLocation.X2 - | t.xcm.v0.multi_location.MultiLocation.X3 - | t.xcm.v0.multi_location.MultiLocation.X4 - | t.xcm.v0.multi_location.MultiLocation.X5 - | t.xcm.v0.multi_location.MultiLocation.X6 - | t.xcm.v0.multi_location.MultiLocation.X7 - | t.xcm.v0.multi_location.MultiLocation.X8 -export namespace MultiLocation { - export interface Null { - type: "Null" - } - export interface X1 { - type: "X1" - value: t.xcm.v0.junction.Junction - } - export interface X2 { - type: "X2" - value: [t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction] - } - export interface X3 { - type: "X3" - value: [t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction] - } - export interface X4 { - type: "X4" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X5 { - type: "X5" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X6 { - type: "X6" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X7 { - type: "X7" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X8 { - type: "X8" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export function Null(): t.xcm.v0.multi_location.MultiLocation.Null { - return { type: "Null" } - } - export function X1( - value: t.xcm.v0.multi_location.MultiLocation.X1["value"], - ): t.xcm.v0.multi_location.MultiLocation.X1 { - return { type: "X1", value } - } - export function X2( - ...value: t.xcm.v0.multi_location.MultiLocation.X2["value"] - ): t.xcm.v0.multi_location.MultiLocation.X2 { - return { type: "X2", value } - } - export function X3( - ...value: t.xcm.v0.multi_location.MultiLocation.X3["value"] - ): t.xcm.v0.multi_location.MultiLocation.X3 { - return { type: "X3", value } - } - export function X4( - ...value: t.xcm.v0.multi_location.MultiLocation.X4["value"] - ): t.xcm.v0.multi_location.MultiLocation.X4 { - return { type: "X4", value } - } - export function X5( - ...value: t.xcm.v0.multi_location.MultiLocation.X5["value"] - ): t.xcm.v0.multi_location.MultiLocation.X5 { - return { type: "X5", value } - } - export function X6( - ...value: t.xcm.v0.multi_location.MultiLocation.X6["value"] - ): t.xcm.v0.multi_location.MultiLocation.X6 { - return { type: "X6", value } - } - export function X7( - ...value: t.xcm.v0.multi_location.MultiLocation.X7["value"] - ): t.xcm.v0.multi_location.MultiLocation.X7 { - return { type: "X7", value } - } - export function X8( - ...value: t.xcm.v0.multi_location.MultiLocation.X8["value"] - ): t.xcm.v0.multi_location.MultiLocation.X8 { - return { type: "X8", value } - } -} diff --git a/codegen/_output/rococo/xcm/v0/order.ts b/codegen/_output/rococo/xcm/v0/order.ts deleted file mode 100644 index 137060d46..000000000 --- a/codegen/_output/rococo/xcm/v0/order.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $order: $.Codec = _codec.$427 - -export type Order = - | t.xcm.v0.order.Order.Null - | t.xcm.v0.order.Order.DepositAsset - | t.xcm.v0.order.Order.DepositReserveAsset - | t.xcm.v0.order.Order.ExchangeAsset - | t.xcm.v0.order.Order.InitiateReserveWithdraw - | t.xcm.v0.order.Order.InitiateTeleport - | t.xcm.v0.order.Order.QueryHolding - | t.xcm.v0.order.Order.BuyExecution -export namespace Order { - export interface Null { - type: "Null" - } - export interface DepositAsset { - type: "DepositAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: Array - receive: Array - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: Array - reserve: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v0.multi_location.MultiLocation - assets: Array - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v0.multi_asset.MultiAsset - weight: t.u64 - debt: t.u64 - halt_on_error: boolean - xcm: Array - } - export function Null(): t.xcm.v0.order.Order.Null { - return { type: "Null" } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v0.order.Order.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v0.order.Order.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v0.order.Order.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v0.order.Order.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v0.order.Order.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v0.order.Order.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v0.order.Order.BuyExecution { - return { type: "BuyExecution", ...value } - } -} diff --git a/codegen/_output/rococo/xcm/v1/junction.ts b/codegen/_output/rococo/xcm/v1/junction.ts deleted file mode 100644 index 7bbbad54c..000000000 --- a/codegen/_output/rococo/xcm/v1/junction.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $junction: $.Codec = _codec.$124 - -export type Junction = - | t.xcm.v1.junction.Junction.Parachain - | t.xcm.v1.junction.Junction.AccountId32 - | t.xcm.v1.junction.Junction.AccountIndex64 - | t.xcm.v1.junction.Junction.AccountKey20 - | t.xcm.v1.junction.Junction.PalletInstance - | t.xcm.v1.junction.Junction.GeneralIndex - | t.xcm.v1.junction.Junction.GeneralKey - | t.xcm.v1.junction.Junction.OnlyChild - | t.xcm.v1.junction.Junction.Plurality -export namespace Junction { - export interface Parachain { - type: "Parachain" - value: t.Compact - } - export interface AccountId32 { - type: "AccountId32" - network: t.xcm.v0.junction.NetworkId - id: Uint8Array - } - export interface AccountIndex64 { - type: "AccountIndex64" - network: t.xcm.v0.junction.NetworkId - index: t.Compact - } - export interface AccountKey20 { - type: "AccountKey20" - network: t.xcm.v0.junction.NetworkId - key: Uint8Array - } - export interface PalletInstance { - type: "PalletInstance" - value: t.u8 - } - export interface GeneralIndex { - type: "GeneralIndex" - value: t.Compact - } - export interface GeneralKey { - type: "GeneralKey" - value: Uint8Array - } - export interface OnlyChild { - type: "OnlyChild" - } - export interface Plurality { - type: "Plurality" - id: t.xcm.v0.junction.BodyId - part: t.xcm.v0.junction.BodyPart - } - export function Parachain( - value: t.xcm.v1.junction.Junction.Parachain["value"], - ): t.xcm.v1.junction.Junction.Parachain { - return { type: "Parachain", value } - } - export function AccountId32( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountId32 { - return { type: "AccountId32", ...value } - } - export function AccountIndex64( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountIndex64 { - return { type: "AccountIndex64", ...value } - } - export function AccountKey20( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountKey20 { - return { type: "AccountKey20", ...value } - } - export function PalletInstance( - value: t.xcm.v1.junction.Junction.PalletInstance["value"], - ): t.xcm.v1.junction.Junction.PalletInstance { - return { type: "PalletInstance", value } - } - export function GeneralIndex( - value: t.xcm.v1.junction.Junction.GeneralIndex["value"], - ): t.xcm.v1.junction.Junction.GeneralIndex { - return { type: "GeneralIndex", value } - } - export function GeneralKey( - value: t.xcm.v1.junction.Junction.GeneralKey["value"], - ): t.xcm.v1.junction.Junction.GeneralKey { - return { type: "GeneralKey", value } - } - export function OnlyChild(): t.xcm.v1.junction.Junction.OnlyChild { - return { type: "OnlyChild" } - } - export function Plurality( - value: Omit, - ): t.xcm.v1.junction.Junction.Plurality { - return { type: "Plurality", ...value } - } -} diff --git a/codegen/_output/rococo/xcm/v1/mod.ts b/codegen/_output/rococo/xcm/v1/mod.ts deleted file mode 100644 index 6630501ad..000000000 --- a/codegen/_output/rococo/xcm/v1/mod.ts +++ /dev/null @@ -1,174 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as junction from "./junction.ts" -export * as multiasset from "./multiasset.ts" -export * as multilocation from "./multilocation.ts" -export * as order from "./order.ts" - -export const $response: $.Codec = _codec.$434 - -export const $xcm: $.Codec = _codec.$430 - -export type Response = t.xcm.v1.Response.Assets | t.xcm.v1.Response.Version -export namespace Response { - export interface Assets { - type: "Assets" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface Version { - type: "Version" - value: t.u32 - } - export function Assets(value: t.xcm.v1.Response.Assets["value"]): t.xcm.v1.Response.Assets { - return { type: "Assets", value } - } - export function Version(value: t.xcm.v1.Response.Version["value"]): t.xcm.v1.Response.Version { - return { type: "Version", value } - } -} - -export type Xcm = - | t.xcm.v1.Xcm.WithdrawAsset - | t.xcm.v1.Xcm.ReserveAssetDeposited - | t.xcm.v1.Xcm.ReceiveTeleportedAsset - | t.xcm.v1.Xcm.QueryResponse - | t.xcm.v1.Xcm.TransferAsset - | t.xcm.v1.Xcm.TransferReserveAsset - | t.xcm.v1.Xcm.Transact - | t.xcm.v1.Xcm.HrmpNewChannelOpenRequest - | t.xcm.v1.Xcm.HrmpChannelAccepted - | t.xcm.v1.Xcm.HrmpChannelClosing - | t.xcm.v1.Xcm.RelayedFrom - | t.xcm.v1.Xcm.SubscribeVersion - | t.xcm.v1.Xcm.UnsubscribeVersion -export namespace Xcm { - export interface WithdrawAsset { - type: "WithdrawAsset" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface ReserveAssetDeposited { - type: "ReserveAssetDeposited" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface ReceiveTeleportedAsset { - type: "ReceiveTeleportedAsset" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v1.Response - } - export interface TransferAsset { - type: "TransferAsset" - assets: t.xcm.v1.multiasset.MultiAssets - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssets - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.u64 - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface RelayedFrom { - type: "RelayedFrom" - who: t.xcm.v1.multilocation.Junctions - message: t.xcm.v1.Xcm - } - export interface SubscribeVersion { - type: "SubscribeVersion" - query_id: t.Compact - max_response_weight: t.Compact - } - export interface UnsubscribeVersion { - type: "UnsubscribeVersion" - } - export function WithdrawAsset( - value: Omit, - ): t.xcm.v1.Xcm.WithdrawAsset { - return { type: "WithdrawAsset", ...value } - } - export function ReserveAssetDeposited( - value: Omit, - ): t.xcm.v1.Xcm.ReserveAssetDeposited { - return { type: "ReserveAssetDeposited", ...value } - } - export function ReceiveTeleportedAsset( - value: Omit, - ): t.xcm.v1.Xcm.ReceiveTeleportedAsset { - return { type: "ReceiveTeleportedAsset", ...value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v1.Xcm.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v1.Xcm.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v1.Xcm.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact(value: Omit): t.xcm.v1.Xcm.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v1.Xcm.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v1.Xcm.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v1.Xcm.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function RelayedFrom( - value: Omit, - ): t.xcm.v1.Xcm.RelayedFrom { - return { type: "RelayedFrom", ...value } - } - export function SubscribeVersion( - value: Omit, - ): t.xcm.v1.Xcm.SubscribeVersion { - return { type: "SubscribeVersion", ...value } - } - export function UnsubscribeVersion(): t.xcm.v1.Xcm.UnsubscribeVersion { - return { type: "UnsubscribeVersion" } - } -} diff --git a/codegen/_output/rococo/xcm/v1/multiasset.ts b/codegen/_output/rococo/xcm/v1/multiasset.ts deleted file mode 100644 index f73749dc2..000000000 --- a/codegen/_output/rococo/xcm/v1/multiasset.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $assetId: $.Codec = _codec.$136 - -export const $assetInstance: $.Codec = _codec.$138 - -export const $fungibility: $.Codec = _codec.$137 - -export const $multiAsset: $.Codec = _codec.$135 - -export const $multiAssetFilter: $.Codec = _codec.$145 - -export const $multiAssets: $.Codec = _codec.$133 - -export const $wildFungibility: $.Codec = _codec.$147 - -export const $wildMultiAsset: $.Codec = _codec.$146 - -export type AssetId = t.xcm.v1.multiasset.AssetId.Concrete | t.xcm.v1.multiasset.AssetId.Abstract -export namespace AssetId { - export interface Concrete { - type: "Concrete" - value: t.xcm.v1.multilocation.MultiLocation - } - export interface Abstract { - type: "Abstract" - value: Uint8Array - } - export function Concrete( - value: t.xcm.v1.multiasset.AssetId.Concrete["value"], - ): t.xcm.v1.multiasset.AssetId.Concrete { - return { type: "Concrete", value } - } - export function Abstract( - value: t.xcm.v1.multiasset.AssetId.Abstract["value"], - ): t.xcm.v1.multiasset.AssetId.Abstract { - return { type: "Abstract", value } - } -} - -export type AssetInstance = - | t.xcm.v1.multiasset.AssetInstance.Undefined - | t.xcm.v1.multiasset.AssetInstance.Index - | t.xcm.v1.multiasset.AssetInstance.Array4 - | t.xcm.v1.multiasset.AssetInstance.Array8 - | t.xcm.v1.multiasset.AssetInstance.Array16 - | t.xcm.v1.multiasset.AssetInstance.Array32 - | t.xcm.v1.multiasset.AssetInstance.Blob -export namespace AssetInstance { - export interface Undefined { - type: "Undefined" - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Array4 { - type: "Array4" - value: Uint8Array - } - export interface Array8 { - type: "Array8" - value: Uint8Array - } - export interface Array16 { - type: "Array16" - value: Uint8Array - } - export interface Array32 { - type: "Array32" - value: Uint8Array - } - export interface Blob { - type: "Blob" - value: Uint8Array - } - export function Undefined(): t.xcm.v1.multiasset.AssetInstance.Undefined { - return { type: "Undefined" } - } - export function Index( - value: t.xcm.v1.multiasset.AssetInstance.Index["value"], - ): t.xcm.v1.multiasset.AssetInstance.Index { - return { type: "Index", value } - } - export function Array4( - value: t.xcm.v1.multiasset.AssetInstance.Array4["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array4 { - return { type: "Array4", value } - } - export function Array8( - value: t.xcm.v1.multiasset.AssetInstance.Array8["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array8 { - return { type: "Array8", value } - } - export function Array16( - value: t.xcm.v1.multiasset.AssetInstance.Array16["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array16 { - return { type: "Array16", value } - } - export function Array32( - value: t.xcm.v1.multiasset.AssetInstance.Array32["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array32 { - return { type: "Array32", value } - } - export function Blob( - value: t.xcm.v1.multiasset.AssetInstance.Blob["value"], - ): t.xcm.v1.multiasset.AssetInstance.Blob { - return { type: "Blob", value } - } -} - -export type Fungibility = - | t.xcm.v1.multiasset.Fungibility.Fungible - | t.xcm.v1.multiasset.Fungibility.NonFungible -export namespace Fungibility { - export interface Fungible { - type: "Fungible" - value: t.Compact - } - export interface NonFungible { - type: "NonFungible" - value: t.xcm.v1.multiasset.AssetInstance - } - export function Fungible( - value: t.xcm.v1.multiasset.Fungibility.Fungible["value"], - ): t.xcm.v1.multiasset.Fungibility.Fungible { - return { type: "Fungible", value } - } - export function NonFungible( - value: t.xcm.v1.multiasset.Fungibility.NonFungible["value"], - ): t.xcm.v1.multiasset.Fungibility.NonFungible { - return { type: "NonFungible", value } - } -} - -export interface MultiAsset { - id: t.xcm.v1.multiasset.AssetId - fun: t.xcm.v1.multiasset.Fungibility -} - -export function MultiAsset(value: t.xcm.v1.multiasset.MultiAsset) { - return value -} - -export type MultiAssetFilter = - | t.xcm.v1.multiasset.MultiAssetFilter.Definite - | t.xcm.v1.multiasset.MultiAssetFilter.Wild -export namespace MultiAssetFilter { - export interface Definite { - type: "Definite" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface Wild { - type: "Wild" - value: t.xcm.v1.multiasset.WildMultiAsset - } - export function Definite( - value: t.xcm.v1.multiasset.MultiAssetFilter.Definite["value"], - ): t.xcm.v1.multiasset.MultiAssetFilter.Definite { - return { type: "Definite", value } - } - export function Wild( - value: t.xcm.v1.multiasset.MultiAssetFilter.Wild["value"], - ): t.xcm.v1.multiasset.MultiAssetFilter.Wild { - return { type: "Wild", value } - } -} - -export type MultiAssets = Array - -export function MultiAssets(value: t.xcm.v1.multiasset.MultiAssets) { - return value -} - -export type WildFungibility = "Fungible" | "NonFungible" - -export type WildMultiAsset = - | t.xcm.v1.multiasset.WildMultiAsset.All - | t.xcm.v1.multiasset.WildMultiAsset.AllOf -export namespace WildMultiAsset { - export interface All { - type: "All" - } - export interface AllOf { - type: "AllOf" - id: t.xcm.v1.multiasset.AssetId - fun: t.xcm.v1.multiasset.WildFungibility - } - export function All(): t.xcm.v1.multiasset.WildMultiAsset.All { - return { type: "All" } - } - export function AllOf( - value: Omit, - ): t.xcm.v1.multiasset.WildMultiAsset.AllOf { - return { type: "AllOf", ...value } - } -} diff --git a/codegen/_output/rococo/xcm/v1/multilocation.ts b/codegen/_output/rococo/xcm/v1/multilocation.ts deleted file mode 100644 index 59749c32f..000000000 --- a/codegen/_output/rococo/xcm/v1/multilocation.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $junctions: $.Codec = _codec.$123 - -export const $multiLocation: $.Codec = _codec.$122 - -export type Junctions = - | t.xcm.v1.multilocation.Junctions.Here - | t.xcm.v1.multilocation.Junctions.X1 - | t.xcm.v1.multilocation.Junctions.X2 - | t.xcm.v1.multilocation.Junctions.X3 - | t.xcm.v1.multilocation.Junctions.X4 - | t.xcm.v1.multilocation.Junctions.X5 - | t.xcm.v1.multilocation.Junctions.X6 - | t.xcm.v1.multilocation.Junctions.X7 - | t.xcm.v1.multilocation.Junctions.X8 -export namespace Junctions { - export interface Here { - type: "Here" - } - export interface X1 { - type: "X1" - value: t.xcm.v1.junction.Junction - } - export interface X2 { - type: "X2" - value: [t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction] - } - export interface X3 { - type: "X3" - value: [t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction] - } - export interface X4 { - type: "X4" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X5 { - type: "X5" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X6 { - type: "X6" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X7 { - type: "X7" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X8 { - type: "X8" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export function Here(): t.xcm.v1.multilocation.Junctions.Here { - return { type: "Here" } - } - export function X1( - value: t.xcm.v1.multilocation.Junctions.X1["value"], - ): t.xcm.v1.multilocation.Junctions.X1 { - return { type: "X1", value } - } - export function X2( - ...value: t.xcm.v1.multilocation.Junctions.X2["value"] - ): t.xcm.v1.multilocation.Junctions.X2 { - return { type: "X2", value } - } - export function X3( - ...value: t.xcm.v1.multilocation.Junctions.X3["value"] - ): t.xcm.v1.multilocation.Junctions.X3 { - return { type: "X3", value } - } - export function X4( - ...value: t.xcm.v1.multilocation.Junctions.X4["value"] - ): t.xcm.v1.multilocation.Junctions.X4 { - return { type: "X4", value } - } - export function X5( - ...value: t.xcm.v1.multilocation.Junctions.X5["value"] - ): t.xcm.v1.multilocation.Junctions.X5 { - return { type: "X5", value } - } - export function X6( - ...value: t.xcm.v1.multilocation.Junctions.X6["value"] - ): t.xcm.v1.multilocation.Junctions.X6 { - return { type: "X6", value } - } - export function X7( - ...value: t.xcm.v1.multilocation.Junctions.X7["value"] - ): t.xcm.v1.multilocation.Junctions.X7 { - return { type: "X7", value } - } - export function X8( - ...value: t.xcm.v1.multilocation.Junctions.X8["value"] - ): t.xcm.v1.multilocation.Junctions.X8 { - return { type: "X8", value } - } -} - -export interface MultiLocation { - parents: t.u8 - interior: t.xcm.v1.multilocation.Junctions -} - -export function MultiLocation(value: t.xcm.v1.multilocation.MultiLocation) { - return value -} diff --git a/codegen/_output/rococo/xcm/v1/order.ts b/codegen/_output/rococo/xcm/v1/order.ts deleted file mode 100644 index 84d718dd5..000000000 --- a/codegen/_output/rococo/xcm/v1/order.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $order: $.Codec = _codec.$432 - -export type Order = - | t.xcm.v1.order.Order.Noop - | t.xcm.v1.order.Order.DepositAsset - | t.xcm.v1.order.Order.DepositReserveAsset - | t.xcm.v1.order.Order.ExchangeAsset - | t.xcm.v1.order.Order.InitiateReserveWithdraw - | t.xcm.v1.order.Order.InitiateTeleport - | t.xcm.v1.order.Order.QueryHolding - | t.xcm.v1.order.Order.BuyExecution -export namespace Order { - export interface Noop { - type: "Noop" - } - export interface DepositAsset { - type: "DepositAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.u32 - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.u32 - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: t.xcm.v1.multiasset.MultiAssetFilter - receive: t.xcm.v1.multiasset.MultiAssets - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: t.xcm.v1.multiasset.MultiAssetFilter - reserve: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: t.xcm.v1.multiasset.MultiAssetFilter - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - assets: t.xcm.v1.multiasset.MultiAssetFilter - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v1.multiasset.MultiAsset - weight: t.u64 - debt: t.u64 - halt_on_error: boolean - instructions: Array - } - export function Noop(): t.xcm.v1.order.Order.Noop { - return { type: "Noop" } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v1.order.Order.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v1.order.Order.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v1.order.Order.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v1.order.Order.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v1.order.Order.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v1.order.Order.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v1.order.Order.BuyExecution { - return { type: "BuyExecution", ...value } - } -} diff --git a/codegen/_output/rococo/xcm/v2/mod.ts b/codegen/_output/rococo/xcm/v2/mod.ts deleted file mode 100644 index d0e939e3e..000000000 --- a/codegen/_output/rococo/xcm/v2/mod.ts +++ /dev/null @@ -1,366 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as traits from "./traits.ts" - -export const $instruction: $.Codec = _codec.$132 - -export const $response: $.Codec = _codec.$140 - -export const $weightLimit: $.Codec = _codec.$148 - -export type Instruction = - | t.xcm.v2.Instruction.WithdrawAsset - | t.xcm.v2.Instruction.ReserveAssetDeposited - | t.xcm.v2.Instruction.ReceiveTeleportedAsset - | t.xcm.v2.Instruction.QueryResponse - | t.xcm.v2.Instruction.TransferAsset - | t.xcm.v2.Instruction.TransferReserveAsset - | t.xcm.v2.Instruction.Transact - | t.xcm.v2.Instruction.HrmpNewChannelOpenRequest - | t.xcm.v2.Instruction.HrmpChannelAccepted - | t.xcm.v2.Instruction.HrmpChannelClosing - | t.xcm.v2.Instruction.ClearOrigin - | t.xcm.v2.Instruction.DescendOrigin - | t.xcm.v2.Instruction.ReportError - | t.xcm.v2.Instruction.DepositAsset - | t.xcm.v2.Instruction.DepositReserveAsset - | t.xcm.v2.Instruction.ExchangeAsset - | t.xcm.v2.Instruction.InitiateReserveWithdraw - | t.xcm.v2.Instruction.InitiateTeleport - | t.xcm.v2.Instruction.QueryHolding - | t.xcm.v2.Instruction.BuyExecution - | t.xcm.v2.Instruction.RefundSurplus - | t.xcm.v2.Instruction.SetErrorHandler - | t.xcm.v2.Instruction.SetAppendix - | t.xcm.v2.Instruction.ClearError - | t.xcm.v2.Instruction.ClaimAsset - | t.xcm.v2.Instruction.Trap - | t.xcm.v2.Instruction.SubscribeVersion - | t.xcm.v2.Instruction.UnsubscribeVersion -export namespace Instruction { - export interface WithdrawAsset { - type: "WithdrawAsset" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ReserveAssetDeposited { - type: "ReserveAssetDeposited" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ReceiveTeleportedAsset { - type: "ReceiveTeleportedAsset" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v2.Response - max_weight: t.Compact - } - export interface TransferAsset { - type: "TransferAsset" - assets: t.xcm.v1.multiasset.MultiAssets - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssets - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.Compact - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface ClearOrigin { - type: "ClearOrigin" - } - export interface DescendOrigin { - type: "DescendOrigin" - value: t.xcm.v1.multilocation.Junctions - } - export interface ReportError { - type: "ReportError" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - max_response_weight: t.Compact - } - export interface DepositAsset { - type: "DepositAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.Compact - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: t.xcm.v1.multiasset.MultiAssetFilter - receive: t.xcm.v1.multiasset.MultiAssets - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: t.xcm.v1.multiasset.MultiAssetFilter - reserve: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: t.xcm.v1.multiasset.MultiAssetFilter - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_response_weight: t.Compact - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v1.multiasset.MultiAsset - weight_limit: t.xcm.v2.WeightLimit - } - export interface RefundSurplus { - type: "RefundSurplus" - } - export interface SetErrorHandler { - type: "SetErrorHandler" - value: Array - } - export interface SetAppendix { - type: "SetAppendix" - value: Array - } - export interface ClearError { - type: "ClearError" - } - export interface ClaimAsset { - type: "ClaimAsset" - assets: t.xcm.v1.multiasset.MultiAssets - ticket: t.xcm.v1.multilocation.MultiLocation - } - export interface Trap { - type: "Trap" - value: t.Compact - } - export interface SubscribeVersion { - type: "SubscribeVersion" - query_id: t.Compact - max_response_weight: t.Compact - } - export interface UnsubscribeVersion { - type: "UnsubscribeVersion" - } - export function WithdrawAsset( - value: t.xcm.v2.Instruction.WithdrawAsset["value"], - ): t.xcm.v2.Instruction.WithdrawAsset { - return { type: "WithdrawAsset", value } - } - export function ReserveAssetDeposited( - value: t.xcm.v2.Instruction.ReserveAssetDeposited["value"], - ): t.xcm.v2.Instruction.ReserveAssetDeposited { - return { type: "ReserveAssetDeposited", value } - } - export function ReceiveTeleportedAsset( - value: t.xcm.v2.Instruction.ReceiveTeleportedAsset["value"], - ): t.xcm.v2.Instruction.ReceiveTeleportedAsset { - return { type: "ReceiveTeleportedAsset", value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v2.Instruction.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v2.Instruction.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v2.Instruction.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact( - value: Omit, - ): t.xcm.v2.Instruction.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v2.Instruction.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v2.Instruction.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v2.Instruction.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function ClearOrigin(): t.xcm.v2.Instruction.ClearOrigin { - return { type: "ClearOrigin" } - } - export function DescendOrigin( - value: t.xcm.v2.Instruction.DescendOrigin["value"], - ): t.xcm.v2.Instruction.DescendOrigin { - return { type: "DescendOrigin", value } - } - export function ReportError( - value: Omit, - ): t.xcm.v2.Instruction.ReportError { - return { type: "ReportError", ...value } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v2.Instruction.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v2.Instruction.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v2.Instruction.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v2.Instruction.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v2.Instruction.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v2.Instruction.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v2.Instruction.BuyExecution { - return { type: "BuyExecution", ...value } - } - export function RefundSurplus(): t.xcm.v2.Instruction.RefundSurplus { - return { type: "RefundSurplus" } - } - export function SetErrorHandler( - value: t.xcm.v2.Instruction.SetErrorHandler["value"], - ): t.xcm.v2.Instruction.SetErrorHandler { - return { type: "SetErrorHandler", value } - } - export function SetAppendix( - value: t.xcm.v2.Instruction.SetAppendix["value"], - ): t.xcm.v2.Instruction.SetAppendix { - return { type: "SetAppendix", value } - } - export function ClearError(): t.xcm.v2.Instruction.ClearError { - return { type: "ClearError" } - } - export function ClaimAsset( - value: Omit, - ): t.xcm.v2.Instruction.ClaimAsset { - return { type: "ClaimAsset", ...value } - } - export function Trap(value: t.xcm.v2.Instruction.Trap["value"]): t.xcm.v2.Instruction.Trap { - return { type: "Trap", value } - } - export function SubscribeVersion( - value: Omit, - ): t.xcm.v2.Instruction.SubscribeVersion { - return { type: "SubscribeVersion", ...value } - } - export function UnsubscribeVersion(): t.xcm.v2.Instruction.UnsubscribeVersion { - return { type: "UnsubscribeVersion" } - } -} - -export type Response = - | t.xcm.v2.Response.Null - | t.xcm.v2.Response.Assets - | t.xcm.v2.Response.ExecutionResult - | t.xcm.v2.Response.Version -export namespace Response { - export interface Null { - type: "Null" - } - export interface Assets { - type: "Assets" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ExecutionResult { - type: "ExecutionResult" - value: [t.u32, t.xcm.v2.traits.Error] | undefined - } - export interface Version { - type: "Version" - value: t.u32 - } - export function Null(): t.xcm.v2.Response.Null { - return { type: "Null" } - } - export function Assets(value: t.xcm.v2.Response.Assets["value"]): t.xcm.v2.Response.Assets { - return { type: "Assets", value } - } - export function ExecutionResult( - value: t.xcm.v2.Response.ExecutionResult["value"], - ): t.xcm.v2.Response.ExecutionResult { - return { type: "ExecutionResult", value } - } - export function Version(value: t.xcm.v2.Response.Version["value"]): t.xcm.v2.Response.Version { - return { type: "Version", value } - } -} - -export type WeightLimit = t.xcm.v2.WeightLimit.Unlimited | t.xcm.v2.WeightLimit.Limited -export namespace WeightLimit { - export interface Unlimited { - type: "Unlimited" - } - export interface Limited { - type: "Limited" - value: t.Compact - } - export function Unlimited(): t.xcm.v2.WeightLimit.Unlimited { - return { type: "Unlimited" } - } - export function Limited( - value: t.xcm.v2.WeightLimit.Limited["value"], - ): t.xcm.v2.WeightLimit.Limited { - return { type: "Limited", value } - } -} diff --git a/codegen/_output/rococo/xcm/v2/traits.ts b/codegen/_output/rococo/xcm/v2/traits.ts deleted file mode 100644 index a2a5901e8..000000000 --- a/codegen/_output/rococo/xcm/v2/traits.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $error: $.Codec = _codec.$110 - -export const $outcome: $.Codec = _codec.$109 - -export type Error = - | t.xcm.v2.traits.Error.Overflow - | t.xcm.v2.traits.Error.Unimplemented - | t.xcm.v2.traits.Error.UntrustedReserveLocation - | t.xcm.v2.traits.Error.UntrustedTeleportLocation - | t.xcm.v2.traits.Error.MultiLocationFull - | t.xcm.v2.traits.Error.MultiLocationNotInvertible - | t.xcm.v2.traits.Error.BadOrigin - | t.xcm.v2.traits.Error.InvalidLocation - | t.xcm.v2.traits.Error.AssetNotFound - | t.xcm.v2.traits.Error.FailedToTransactAsset - | t.xcm.v2.traits.Error.NotWithdrawable - | t.xcm.v2.traits.Error.LocationCannotHold - | t.xcm.v2.traits.Error.ExceedsMaxMessageSize - | t.xcm.v2.traits.Error.DestinationUnsupported - | t.xcm.v2.traits.Error.Transport - | t.xcm.v2.traits.Error.Unroutable - | t.xcm.v2.traits.Error.UnknownClaim - | t.xcm.v2.traits.Error.FailedToDecode - | t.xcm.v2.traits.Error.MaxWeightInvalid - | t.xcm.v2.traits.Error.NotHoldingFees - | t.xcm.v2.traits.Error.TooExpensive - | t.xcm.v2.traits.Error.Trap - | t.xcm.v2.traits.Error.UnhandledXcmVersion - | t.xcm.v2.traits.Error.WeightLimitReached - | t.xcm.v2.traits.Error.Barrier - | t.xcm.v2.traits.Error.WeightNotComputable -export namespace Error { - export interface Overflow { - type: "Overflow" - } - export interface Unimplemented { - type: "Unimplemented" - } - export interface UntrustedReserveLocation { - type: "UntrustedReserveLocation" - } - export interface UntrustedTeleportLocation { - type: "UntrustedTeleportLocation" - } - export interface MultiLocationFull { - type: "MultiLocationFull" - } - export interface MultiLocationNotInvertible { - type: "MultiLocationNotInvertible" - } - export interface BadOrigin { - type: "BadOrigin" - } - export interface InvalidLocation { - type: "InvalidLocation" - } - export interface AssetNotFound { - type: "AssetNotFound" - } - export interface FailedToTransactAsset { - type: "FailedToTransactAsset" - } - export interface NotWithdrawable { - type: "NotWithdrawable" - } - export interface LocationCannotHold { - type: "LocationCannotHold" - } - export interface ExceedsMaxMessageSize { - type: "ExceedsMaxMessageSize" - } - export interface DestinationUnsupported { - type: "DestinationUnsupported" - } - export interface Transport { - type: "Transport" - } - export interface Unroutable { - type: "Unroutable" - } - export interface UnknownClaim { - type: "UnknownClaim" - } - export interface FailedToDecode { - type: "FailedToDecode" - } - export interface MaxWeightInvalid { - type: "MaxWeightInvalid" - } - export interface NotHoldingFees { - type: "NotHoldingFees" - } - export interface TooExpensive { - type: "TooExpensive" - } - export interface Trap { - type: "Trap" - value: t.u64 - } - export interface UnhandledXcmVersion { - type: "UnhandledXcmVersion" - } - export interface WeightLimitReached { - type: "WeightLimitReached" - value: t.u64 - } - export interface Barrier { - type: "Barrier" - } - export interface WeightNotComputable { - type: "WeightNotComputable" - } - export function Overflow(): t.xcm.v2.traits.Error.Overflow { - return { type: "Overflow" } - } - export function Unimplemented(): t.xcm.v2.traits.Error.Unimplemented { - return { type: "Unimplemented" } - } - export function UntrustedReserveLocation(): t.xcm.v2.traits.Error.UntrustedReserveLocation { - return { type: "UntrustedReserveLocation" } - } - export function UntrustedTeleportLocation(): t.xcm.v2.traits.Error.UntrustedTeleportLocation { - return { type: "UntrustedTeleportLocation" } - } - export function MultiLocationFull(): t.xcm.v2.traits.Error.MultiLocationFull { - return { type: "MultiLocationFull" } - } - export function MultiLocationNotInvertible(): t.xcm.v2.traits.Error.MultiLocationNotInvertible { - return { type: "MultiLocationNotInvertible" } - } - export function BadOrigin(): t.xcm.v2.traits.Error.BadOrigin { - return { type: "BadOrigin" } - } - export function InvalidLocation(): t.xcm.v2.traits.Error.InvalidLocation { - return { type: "InvalidLocation" } - } - export function AssetNotFound(): t.xcm.v2.traits.Error.AssetNotFound { - return { type: "AssetNotFound" } - } - export function FailedToTransactAsset(): t.xcm.v2.traits.Error.FailedToTransactAsset { - return { type: "FailedToTransactAsset" } - } - export function NotWithdrawable(): t.xcm.v2.traits.Error.NotWithdrawable { - return { type: "NotWithdrawable" } - } - export function LocationCannotHold(): t.xcm.v2.traits.Error.LocationCannotHold { - return { type: "LocationCannotHold" } - } - export function ExceedsMaxMessageSize(): t.xcm.v2.traits.Error.ExceedsMaxMessageSize { - return { type: "ExceedsMaxMessageSize" } - } - export function DestinationUnsupported(): t.xcm.v2.traits.Error.DestinationUnsupported { - return { type: "DestinationUnsupported" } - } - export function Transport(): t.xcm.v2.traits.Error.Transport { - return { type: "Transport" } - } - export function Unroutable(): t.xcm.v2.traits.Error.Unroutable { - return { type: "Unroutable" } - } - export function UnknownClaim(): t.xcm.v2.traits.Error.UnknownClaim { - return { type: "UnknownClaim" } - } - export function FailedToDecode(): t.xcm.v2.traits.Error.FailedToDecode { - return { type: "FailedToDecode" } - } - export function MaxWeightInvalid(): t.xcm.v2.traits.Error.MaxWeightInvalid { - return { type: "MaxWeightInvalid" } - } - export function NotHoldingFees(): t.xcm.v2.traits.Error.NotHoldingFees { - return { type: "NotHoldingFees" } - } - export function TooExpensive(): t.xcm.v2.traits.Error.TooExpensive { - return { type: "TooExpensive" } - } - export function Trap(value: t.xcm.v2.traits.Error.Trap["value"]): t.xcm.v2.traits.Error.Trap { - return { type: "Trap", value } - } - export function UnhandledXcmVersion(): t.xcm.v2.traits.Error.UnhandledXcmVersion { - return { type: "UnhandledXcmVersion" } - } - export function WeightLimitReached( - value: t.xcm.v2.traits.Error.WeightLimitReached["value"], - ): t.xcm.v2.traits.Error.WeightLimitReached { - return { type: "WeightLimitReached", value } - } - export function Barrier(): t.xcm.v2.traits.Error.Barrier { - return { type: "Barrier" } - } - export function WeightNotComputable(): t.xcm.v2.traits.Error.WeightNotComputable { - return { type: "WeightNotComputable" } - } -} - -export type Outcome = - | t.xcm.v2.traits.Outcome.Complete - | t.xcm.v2.traits.Outcome.Incomplete - | t.xcm.v2.traits.Outcome.Error -export namespace Outcome { - export interface Complete { - type: "Complete" - value: t.u64 - } - export interface Incomplete { - type: "Incomplete" - value: [t.u64, t.xcm.v2.traits.Error] - } - export interface Error { - type: "Error" - value: t.xcm.v2.traits.Error - } - export function Complete( - value: t.xcm.v2.traits.Outcome.Complete["value"], - ): t.xcm.v2.traits.Outcome.Complete { - return { type: "Complete", value } - } - export function Incomplete( - ...value: t.xcm.v2.traits.Outcome.Incomplete["value"] - ): t.xcm.v2.traits.Outcome.Incomplete { - return { type: "Incomplete", value } - } - export function Error( - value: t.xcm.v2.traits.Outcome.Error["value"], - ): t.xcm.v2.traits.Outcome.Error { - return { type: "Error", value } - } -} diff --git a/codegen/_output/westend/bitvec/order.ts b/codegen/_output/westend/bitvec/order.ts deleted file mode 100644 index d11f4895b..000000000 --- a/codegen/_output/westend/bitvec/order.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $lsb0: $.Codec = _codec.$384 - -export function Lsb0() { - return null -} - -export type Lsb0 = null diff --git a/codegen/_output/westend/codecs.ts b/codegen/_output/westend/codecs.ts index ec0089ee3..0d6bf21bf 100644 --- a/codegen/_output/westend/codecs.ts +++ b/codegen/_output/westend/codecs.ts @@ -3,20 +3,22 @@ import type * as t from "./mod.ts" export const $1: $.Codec = $.sizedUint8Array(32) -export const $0: $.Codec = $1 +export const $0: $.Codec = $1 -export const $2: $.Codec = $.u8 +export const $2: $.Codec = $.u8 -export const $4: $.Codec = $.u32 +export const $4: $.Codec = $.u32 -export const $6: $.Codec = $.u128 +export const $6: $.Codec = $.u128 -export const $5: $.Codec = $.object(["free", $6], ["reserved", $6], [ - "misc_frozen", - $6, -], ["fee_frozen", $6]) +export const $5: $.Codec = $.object( + ["free", $6], + ["reserved", $6], + ["misc_frozen", $6], + ["fee_frozen", $6], +) -export const $3: $.Codec = $.object( +export const $3: $.Codec = $.object( ["nonce", $4], ["consumers", $4], ["providers", $4], @@ -24,25 +26,26 @@ export const $3: $.Codec = $.object( ["data", $5], ) -export const $10: $.Codec = $.u64 +export const $10: $.Codec = $.u64 -export const $9: $.Codec> = $.compact($10) +export const $9: $.Codec> = $.compact($10) -export const $8: $.Codec = $.object(["ref_time", $9], [ +export const $8: $.Codec = $.object(["ref_time", $9], [ "proof_size", $9, ]) -export const $7: $.Codec = - $.object(["normal", $8], ["operational", $8], ["mandatory", $8]) +export const $7: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight +> = $.object(["normal", $8], ["operational", $8], ["mandatory", $8]) -export const $11: $.Codec = $1 +export const $11: $.Codec = $1 export const $12: $.Codec = $.uint8Array export const $16: $.Codec = $.sizedUint8Array(4) -export const $15: $.Codec = $.taggedUnion("type", { +export const $15: $.Codec = $.taggedUnion("type", { 6: ["PreRuntime", ["value", $.tuple($16, $12)]], 4: ["Consensus", ["value", $.tuple($16, $12)]], 5: ["Seal", ["value", $.tuple($16, $12)]], @@ -50,32 +53,35 @@ export const $15: $.Codec = $.taggedUnio 8: ["RuntimeEnvironmentUpdated"], }) -export const $14: $.Codec> = $.array($15) +export const $14: $.Codec> = $.array($15) -export const $13: $.Codec = $.object(["logs", $14]) +export const $13: $.Codec = $.object(["logs", $14]) -export const $156: $.Codec = $.taggedUnion("type", { +export const $156: $.Codec = $.taggedUnion("type", { 0: ["ApplyExtrinsic", ["value", $4]], 1: ["Finalization"], 2: ["Initialization"], }) -export const $22: $.Codec = $.stringUnion({ +export const $22: $.Codec = $.stringUnion({ 0: "Normal", 1: "Operational", 2: "Mandatory", }) -export const $23: $.Codec = $.stringUnion({ 0: "Yes", 1: "No" }) +export const $23: $.Codec = $.stringUnion({ + 0: "Yes", + 1: "No", +}) -export const $21: $.Codec = $.object(["weight", $8], [ +export const $21: $.Codec = $.object(["weight", $8], [ "class", $22, ], ["pays_fee", $23]) -export const $25: $.Codec = $.object(["index", $2], ["error", $16]) +export const $25: $.Codec = $.object(["index", $2], ["error", $16]) -export const $26: $.Codec = $.stringUnion({ +export const $26: $.Codec = $.stringUnion({ 0: "NoFunds", 1: "WouldDie", 2: "BelowMinimum", @@ -85,18 +91,18 @@ export const $26: $.Codec = $.stringUnion({ 6: "Unsupported", }) -export const $27: $.Codec = $.stringUnion({ +export const $27: $.Codec = $.stringUnion({ 0: "Underflow", 1: "Overflow", 2: "DivisionByZero", }) -export const $28: $.Codec = $.stringUnion({ +export const $28: $.Codec = $.stringUnion({ 0: "LimitReached", 1: "NoLayer", }) -export const $24: $.Codec = $.taggedUnion("type", { +export const $24: $.Codec = $.taggedUnion("type", { 0: ["Other"], 1: ["CannotLookup"], 2: ["BadOrigin"], @@ -112,7 +118,7 @@ export const $24: $.Codec = $.taggedUnion("type", { 12: ["Unavailable"], }) -export const $20: $.Codec = $.taggedUnion("type", { +export const $20: $.Codec = $.taggedUnion("type", { 0: ["ExtrinsicSuccess", ["dispatch_info", $21]], 1: ["ExtrinsicFailed", ["dispatch_error", $24], ["dispatch_info", $21]], 2: ["CodeUpdated"], @@ -121,18 +127,18 @@ export const $20: $.Codec = $.taggedUnion("type", { 5: ["Remarked", ["sender", $0], ["hash", $11]], }) -export const $30: $.Codec<[t.u32, t.u32]> = $.tuple($4, $4) +export const $30: $.Codec<[t.types.u32, t.types.u32]> = $.tuple($4, $4) export const $31: $.Codec = $.option($1) export const $33: $.Codec = C.$null -export const $32: $.Codec> = $.result( +export const $32: $.Codec> = $.result( $33, - $.instance(C.ChainError, ["value", $24]), + $.instance(C.ChainError, ["value", $24]), ) -export const $29: $.Codec = $.taggedUnion("type", { +export const $29: $.Codec = $.taggedUnion("type", { 0: ["Scheduled", ["when", $4], ["index", $4]], 1: ["Canceled", ["when", $4], ["index", $4]], 2: ["Dispatched", ["task", $30], ["id", $31], ["result", $32]], @@ -141,24 +147,24 @@ export const $29: $.Codec = $.taggedUnion("type 5: ["PermanentlyOverweight", ["task", $30], ["id", $31]], }) -export const $34: $.Codec = $.taggedUnion("type", { +export const $34: $.Codec = $.taggedUnion("type", { 0: ["Noted", ["hash", $11]], 1: ["Requested", ["hash", $11]], 2: ["Cleared", ["hash", $11]], }) -export const $35: $.Codec = $.taggedUnion("type", { +export const $35: $.Codec = $.taggedUnion("type", { 0: ["IndexAssigned", ["who", $0], ["index", $4]], 1: ["IndexFreed", ["index", $4]], 2: ["IndexFrozen", ["index", $4], ["who", $0]], }) -export const $37: $.Codec = $.stringUnion({ +export const $37: $.Codec = $.stringUnion({ 0: "Free", 1: "Reserved", }) -export const $36: $.Codec = $.taggedUnion("type", { +export const $36: $.Codec = $.taggedUnion("type", { 0: ["Endowed", ["account", $0], ["free_balance", $6]], 1: ["DustLost", ["account", $0], ["amount", $6]], 2: ["Transfer", ["from", $0], ["to", $0], ["amount", $6]], @@ -171,22 +177,22 @@ export const $36: $.Codec = $.taggedUnion("type" 9: ["Slashed", ["who", $0], ["amount", $6]], }) -export const $38: $.Codec = $.taggedUnion("type", { +export const $38: $.Codec = $.taggedUnion("type", { 0: ["TransactionFeePaid", ["who", $0], ["actual_fee", $6], ["tip", $6]], }) -export const $42: $.Codec = $4 +export const $42: $.Codec = $4 -export const $41: $.Codec> = $.compact($42) +export const $41: $.Codec> = $.compact($42) export const $43: $.Codec = $.bool -export const $40: $.Codec = $.object(["commission", $41], [ +export const $40: $.Codec = $.object(["commission", $41], [ "blocked", $43, ]) -export const $39: $.Codec = $.taggedUnion("type", { +export const $39: $.Codec = $.taggedUnion("type", { 0: ["EraPaid", ["era_index", $4], ["validator_payout", $6], ["remainder", $6]], 1: ["Rewarded", ["stash", $0], ["amount", $6]], 2: ["Slashed", ["staker", $0], ["amount", $6]], @@ -204,74 +210,79 @@ export const $39: $.Codec = $.taggedUnion( export const $45: $.Codec = $.sizedUint8Array(16) -export const $44: $.Codec = $.taggedUnion("type", { +export const $44: $.Codec = $.taggedUnion("type", { 0: ["Offence", ["kind", $45], ["timeslot", $12]], }) -export const $46: $.Codec = $.taggedUnion("type", { +export const $46: $.Codec = $.taggedUnion("type", { 0: ["NewSession", ["session_index", $4]], }) -export const $51: $.Codec = $1 +export const $51: $.Codec = $1 -export const $50: $.Codec = $51 +export const $50: $.Codec = $51 -export const $49: $.Codec<[t.sp_finality_grandpa.app.Public, t.u64]> = $.tuple($50, $10) +export const $49: $.Codec<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> = $.tuple( + $50, + $10, +) -export const $48: $.Codec> = $.array($49) +export const $48: $.Codec> = $.array( + $49, +) -export const $47: $.Codec = $.taggedUnion("type", { +export const $47: $.Codec = $.taggedUnion("type", { 0: ["NewAuthorities", ["authority_set", $48]], 1: ["Paused"], 2: ["Resumed"], }) -export const $54: $.Codec = $1 +export const $54: $.Codec = $1 -export const $53: $.Codec = $54 +export const $53: $.Codec = $54 -export const $58: $.Codec> = $.compact($6) +export const $58: $.Codec> = $.compact($6) -export const $60: $.Codec = $.object(["who", $0], [ +export const $60: $.Codec = $.object(["who", $0], [ "value", $58, ]) -export const $59: $.Codec> = $.array($60) - -export const $57: $.Codec = $.object(["total", $58], ["own", $58], [ - "others", - $59, -]) +export const $59: $.Codec> = $.array($60) -export const $56: $.Codec<[t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure]> = $.tuple( - $0, - $57, +export const $57: $.Codec = $.object( + ["total", $58], + ["own", $58], + ["others", $59], ) -export const $55: $.Codec> = $ - .array($56) +export const $56: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> = $ + .tuple($0, $57) + +export const $55: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> +> = $.array($56) -export const $52: $.Codec = $.taggedUnion("type", { +export const $52: $.Codec = $.taggedUnion("type", { 0: ["HeartbeatReceived", ["authority_id", $53]], 1: ["AllGood"], 2: ["SomeOffline", ["offline", $55]], }) -export const $62: $.Codec = $.stringUnion({ +export const $62: $.Codec = $.stringUnion({ 0: "SuperMajorityApprove", 1: "SuperMajorityAgainst", 2: "SimpleMajority", }) -export const $64: $.Codec = $2 +export const $64: $.Codec = $2 -export const $63: $.Codec = $.taggedUnion("type", { +export const $63: $.Codec = $.taggedUnion("type", { 0: ["Standard", ["vote", $64], ["balance", $6]], 1: ["Split", ["aye", $6], ["nay", $6]], }) -export const $61: $.Codec = $.taggedUnion("type", { +export const $61: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["proposal_index", $4], ["deposit", $6]], 1: ["Tabled", ["proposal_index", $4], ["deposit", $6]], 2: ["ExternalTabled"], @@ -288,7 +299,7 @@ export const $61: $.Codec = $.taggedUnion("type 13: ["ProposalCanceled", ["prop_index", $4]], }) -export const $65: $.Codec = $.taggedUnion("type", { +export const $65: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["account", $0], ["proposal_index", $4], ["proposal_hash", $11], [ "threshold", $4, @@ -301,7 +312,7 @@ export const $65: $.Codec = $.taggedUnion("typ 6: ["Closed", ["proposal_hash", $11], ["yes", $4], ["no", $4]], }) -export const $66: $.Codec = $.taggedUnion("type", { +export const $66: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["account", $0], ["proposal_index", $4], ["proposal_hash", $11], [ "threshold", $4, @@ -314,11 +325,11 @@ export const $66: $.Codec = $.taggedUnion("typ 6: ["Closed", ["proposal_hash", $11], ["yes", $4], ["no", $4]], }) -export const $69: $.Codec<[t.sp_core.crypto.AccountId32, t.u128]> = $.tuple($0, $6) +export const $69: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128]> = $.tuple($0, $6) -export const $68: $.Codec> = $.array($69) +export const $68: $.Codec> = $.array($69) -export const $67: $.Codec = $.taggedUnion("type", { +export const $67: $.Codec = $.taggedUnion("type", { 0: ["NewTerm", ["new_members", $68]], 1: ["EmptyTerm"], 2: ["ElectionError"], @@ -328,7 +339,7 @@ export const $67: $.Codec = $.taggedUn 6: ["SeatHolderSlashed", ["seat_holder", $0], ["amount", $6]], }) -export const $70: $.Codec = $.stringUnion({ +export const $70: $.Codec = $.stringUnion({ 0: "MemberAdded", 1: "MemberRemoved", 2: "MembersSwapped", @@ -337,7 +348,7 @@ export const $70: $.Codec = $.stringUnion({ 5: "Dummy", }) -export const $71: $.Codec = $.taggedUnion("type", { +export const $71: $.Codec = $.taggedUnion("type", { 0: ["Proposed", ["proposal_index", $4]], 1: ["Spending", ["budget_remaining", $6]], 2: ["Awarded", ["proposal_index", $4], ["award", $6], ["account", $0]], @@ -350,18 +361,19 @@ export const $71: $.Codec = $.taggedUnion("type" export const $74: $.Codec = $.sizedUint8Array(20) -export const $73: $.Codec = $74 +export const $73: $.Codec = $74 -export const $72: $.Codec = $.taggedUnion("type", { - 0: ["Claimed", ["who", $0], ["ethereum_address", $73], ["amount", $6]], -}) +export const $72: $.Codec = $.taggedUnion( + "type", + { 0: ["Claimed", ["who", $0], ["ethereum_address", $73], ["amount", $6]] }, +) -export const $75: $.Codec = $.taggedUnion("type", { +export const $75: $.Codec = $.taggedUnion("type", { 0: ["VestingUpdated", ["account", $0], ["unvested", $6]], 1: ["VestingCompleted", ["account", $0]], }) -export const $76: $.Codec = $.taggedUnion("type", { +export const $76: $.Codec = $.taggedUnion("type", { 0: ["BatchInterrupted", ["index", $4], ["error", $24]], 1: ["BatchCompleted"], 2: ["BatchCompletedWithErrors"], @@ -370,7 +382,7 @@ export const $76: $.Codec = $.taggedUnion("type", 5: ["DispatchedAs", ["result", $32]], }) -export const $77: $.Codec = $.taggedUnion("type", { +export const $77: $.Codec = $.taggedUnion("type", { 0: ["IdentitySet", ["who", $0]], 1: ["IdentityCleared", ["who", $0], ["deposit", $6]], 2: ["IdentityKilled", ["who", $0], ["deposit", $6]], @@ -383,7 +395,7 @@ export const $77: $.Codec = $.taggedUnion("type" 9: ["SubIdentityRevoked", ["sub", $0], ["main", $0], ["deposit", $6]], }) -export const $79: $.Codec = $.stringUnion({ +export const $79: $.Codec = $.stringUnion({ 0: "Any", 1: "NonTransfer", 2: "Governance", @@ -393,9 +405,9 @@ export const $79: $.Codec = $.stringUnion({ 7: "Auction", }) -export const $80: $.Codec = $.u16 +export const $80: $.Codec = $.u16 -export const $78: $.Codec = $.taggedUnion("type", { +export const $78: $.Codec = $.taggedUnion("type", { 0: ["ProxyExecuted", ["result", $32]], 1: ["PureCreated", ["pure", $0], ["who", $0], ["proxy_type", $79], ["disambiguation_index", $80]], 2: ["Announced", ["real", $0], ["proxy", $0], ["call_hash", $11]], @@ -403,9 +415,12 @@ export const $78: $.Codec = $.taggedUnion("type", { 4: ["ProxyRemoved", ["delegator", $0], ["delegatee", $0], ["proxy_type", $79], ["delay", $4]], }) -export const $82: $.Codec = $.object(["height", $4], ["index", $4]) +export const $82: $.Codec = $.object(["height", $4], [ + "index", + $4, +]) -export const $81: $.Codec = $.taggedUnion("type", { +export const $81: $.Codec = $.taggedUnion("type", { 0: ["NewMultisig", ["approving", $0], ["multisig", $0], ["call_hash", $1]], 1: ["MultisigApproval", ["approving", $0], ["timepoint", $82], ["multisig", $0], [ "call_hash", @@ -421,7 +436,7 @@ export const $81: $.Codec = $.taggedUnion("type" ]], }) -export const $83: $.Codec = $.taggedUnion("type", { +export const $83: $.Codec = $.taggedUnion("type", { 0: ["BountyProposed", ["index", $4]], 1: ["BountyRejected", ["index", $4], ["bond", $6]], 2: ["BountyBecameActive", ["index", $4]], @@ -431,14 +446,14 @@ export const $83: $.Codec = $.taggedUnion("type" 6: ["BountyExtended", ["index", $4]], }) -export const $84: $.Codec = $.taggedUnion("type", { +export const $84: $.Codec = $.taggedUnion("type", { 0: ["Added", ["index", $4], ["child_index", $4]], 1: ["Awarded", ["index", $4], ["child_index", $4], ["beneficiary", $0]], 2: ["Claimed", ["index", $4], ["child_index", $4], ["payout", $6], ["beneficiary", $0]], 3: ["Canceled", ["index", $4], ["child_index", $4]], }) -export const $85: $.Codec = $.taggedUnion("type", { +export const $85: $.Codec = $.taggedUnion("type", { 0: ["NewTip", ["tip_hash", $11]], 1: ["TipClosing", ["tip_hash", $11]], 2: ["TipClosed", ["tip_hash", $11], ["who", $0], ["payout", $6]], @@ -446,22 +461,17 @@ export const $85: $.Codec = $.taggedUnion("type", { 4: ["TipSlashed", ["tip_hash", $11], ["finder", $0], ["deposit", $6]], }) -export const $87: $.Codec = $.stringUnion({ - 0: "OnChain", - 1: "Signed", - 2: "Unsigned", - 3: "Fallback", - 4: "Emergency", -}) +export const $87: $.Codec = $ + .stringUnion({ 0: "OnChain", 1: "Signed", 2: "Unsigned", 3: "Fallback", 4: "Emergency" }) -export const $88: $.Codec = $.object(["minimal_stake", $6], [ - "sum_stake", - $6, -], ["sum_stake_squared", $6]) +export const $88: $.Codec = $.object( + ["minimal_stake", $6], + ["sum_stake", $6], + ["sum_stake_squared", $6], +) -export const $86: $.Codec = $.taggedUnion( - "type", - { +export const $86: $.Codec = $ + .taggedUnion("type", { 0: ["SolutionStored", ["compute", $87], ["prev_ejected", $43]], 1: ["ElectionFinalized", ["compute", $87], ["score", $88]], 2: ["ElectionFailed"], @@ -469,23 +479,22 @@ export const $86: $.Codec = 4: ["Slashed", ["account", $0], ["value", $6]], 5: ["SignedPhaseStarted", ["round", $4]], 6: ["UnsignedPhaseStarted", ["round", $4]], - }, -) + }) -export const $89: $.Codec = $.taggedUnion("type", { +export const $89: $.Codec = $.taggedUnion("type", { 0: ["Rebagged", ["who", $0], ["from", $10], ["to", $10]], 1: ["ScoreUpdated", ["who", $0], ["new_score", $10]], }) -export const $91: $.Codec = $.stringUnion({ +export const $91: $.Codec = $.stringUnion({ 0: "Open", 1: "Blocked", 2: "Destroying", }) -export const $92: $.Codec = $.option($0) +export const $92: $.Codec = $.option($0) -export const $90: $.Codec = $.taggedUnion("type", { +export const $90: $.Codec = $.taggedUnion("type", { 0: ["Created", ["depositor", $0], ["pool_id", $4]], 1: ["Bonded", ["member", $0], ["pool_id", $4], ["bonded", $6], ["joined", $43]], 2: ["PaidOut", ["member", $0], ["pool_id", $4], ["payout", $6]], @@ -499,9 +508,9 @@ export const $90: $.Codec = $.taggedUnio 10: ["UnbondingPoolSlashed", ["pool_id", $4], ["era", $4], ["balance", $6]], }) -export const $94: $.Codec> = $.array($4) +export const $94: $.Codec> = $.array($4) -export const $93: $.Codec = $.taggedUnion("type", { +export const $93: $.Codec = $.taggedUnion("type", { 0: ["Unstaked", ["stash", $0], ["result", $32]], 1: ["Slashed", ["stash", $0], ["amount", $6]], 2: ["Checking", ["stash", $0], ["eras", $94]], @@ -509,19 +518,19 @@ export const $93: $.Codec = $.taggedUnion("t 4: ["InternalError"], }) -export const $98: $.Codec = $4 +export const $98: $.Codec = $4 -export const $99: $.Codec = $54 +export const $99: $.Codec = $54 export const $102: $.Codec = $.sizedUint8Array(64) -export const $101: $.Codec = $102 +export const $101: $.Codec = $102 -export const $100: $.Codec = $101 +export const $100: $.Codec = $101 -export const $103: $.Codec = $11 +export const $103: $.Codec = $11 -export const $97: $.Codec = $.object( +export const $97: $.Codec = $.object( ["para_id", $98], ["relay_parent", $11], ["collator", $99], @@ -533,27 +542,25 @@ export const $97: $.Codec = $.obje ["validation_code_hash", $103], ) -export const $96: $.Codec = $.object( - ["descriptor", $97], - ["commitments_hash", $11], -) +export const $96: $.Codec = $.object([ + "descriptor", + $97, +], ["commitments_hash", $11]) -export const $104: $.Codec = $12 +export const $104: $.Codec = $12 -export const $105: $.Codec = $4 +export const $105: $.Codec = $4 -export const $106: $.Codec = $4 +export const $106: $.Codec = $4 -export const $95: $.Codec = $.taggedUnion( - "type", - { +export const $95: $.Codec = $ + .taggedUnion("type", { 0: ["CandidateBacked", ["value", $.tuple($96, $104, $105, $106)]], 1: ["CandidateIncluded", ["value", $.tuple($96, $104, $105, $106)]], 2: ["CandidateTimedOut", ["value", $.tuple($96, $104, $105)]], - }, -) + }) -export const $107: $.Codec = $.taggedUnion( +export const $107: $.Codec = $.taggedUnion( "type", { 0: ["CurrentCodeUpdated", ["value", $98]], @@ -567,7 +574,7 @@ export const $107: $.Codec = $ }, ) -export const $110: $.Codec = $.taggedUnion("type", { +export const $110: $.Codec = $.taggedUnion("type", { 0: ["Overflow"], 1: ["Unimplemented"], 2: ["UntrustedReserveLocation"], @@ -596,28 +603,31 @@ export const $110: $.Codec = $.taggedUnion("type", { 25: ["WeightNotComputable"], }) -export const $109: $.Codec = $.taggedUnion("type", { +export const $109: $.Codec = $.taggedUnion("type", { 0: ["Complete", ["value", $10]], 1: ["Incomplete", ["value", $.tuple($10, $110)]], 2: ["Error", ["value", $110]], }) -export const $108: $.Codec = $.taggedUnion("type", { - 0: ["InvalidFormat", ["value", $1]], - 1: ["UnsupportedVersion", ["value", $1]], - 2: ["ExecutedUpward", ["value", $.tuple($1, $109)]], - 3: ["WeightExhausted", ["value", $.tuple($1, $8, $8)]], - 4: ["UpwardMessagesReceived", ["value", $.tuple($98, $4, $4)]], - 5: ["OverweightEnqueued", ["value", $.tuple($98, $1, $10, $8)]], - 6: ["OverweightServiced", ["value", $.tuple($10, $8)]], -}) +export const $108: $.Codec = $.taggedUnion( + "type", + { + 0: ["InvalidFormat", ["value", $1]], + 1: ["UnsupportedVersion", ["value", $1]], + 2: ["ExecutedUpward", ["value", $.tuple($1, $109)]], + 3: ["WeightExhausted", ["value", $.tuple($1, $8, $8)]], + 4: ["UpwardMessagesReceived", ["value", $.tuple($98, $4, $4)]], + 5: ["OverweightEnqueued", ["value", $.tuple($98, $1, $10, $8)]], + 6: ["OverweightServiced", ["value", $.tuple($10, $8)]], + }, +) -export const $112: $.Codec = $.object([ +export const $112: $.Codec = $.object([ "sender", $98, ], ["recipient", $98]) -export const $111: $.Codec = $.taggedUnion( +export const $111: $.Codec = $.taggedUnion( "type", { 0: ["OpenChannelRequested", ["value", $.tuple($98, $98, $4, $4)]], @@ -628,46 +638,41 @@ export const $111: $.Codec = $. }, ) -export const $114: $.Codec = $11 +export const $114: $.Codec = $11 -export const $115: $.Codec = $.stringUnion({ - 0: "Local", - 1: "Remote", -}) +export const $115: $.Codec = $ + .stringUnion({ 0: "Local", 1: "Remote" }) -export const $116: $.Codec = $.stringUnion({ - 0: "Valid", - 1: "Invalid", -}) +export const $116: $.Codec = $ + .stringUnion({ 0: "Valid", 1: "Invalid" }) -export const $113: $.Codec = $.taggedUnion( - "type", - { +export const $113: $.Codec = $ + .taggedUnion("type", { 0: ["DisputeInitiated", ["value", $.tuple($114, $115)]], 1: ["DisputeConcluded", ["value", $.tuple($114, $116)]], 2: ["DisputeTimedOut", ["value", $114]], 3: ["Revert", ["value", $4]], - }, -) + }) -export const $117: $.Codec = $.taggedUnion( - "type", - { +export const $117: $.Codec = $ + .taggedUnion("type", { 0: ["Registered", ["para_id", $98], ["manager", $0]], 1: ["Deregistered", ["para_id", $98]], 2: ["Reserved", ["para_id", $98], ["who", $0]], + }) + +export const $118: $.Codec = $.taggedUnion( + "type", + { + 0: ["NewLeasePeriod", ["lease_period", $4]], + 1: ["Leased", ["para_id", $98], ["leaser", $0], ["period_begin", $4], ["period_count", $4], [ + "extra_reserved", + $6, + ], ["total_amount", $6]], }, ) -export const $118: $.Codec = $.taggedUnion("type", { - 0: ["NewLeasePeriod", ["lease_period", $4]], - 1: ["Leased", ["para_id", $98], ["leaser", $0], ["period_begin", $4], ["period_count", $4], [ - "extra_reserved", - $6, - ], ["total_amount", $6]], -}) - -export const $119: $.Codec = $.taggedUnion( +export const $119: $.Codec = $.taggedUnion( "type", { 0: ["AuctionStarted", ["auction_index", $4], ["lease_period", $4], ["ending", $4]], @@ -683,7 +688,7 @@ export const $119: $.Codec = $. }, ) -export const $120: $.Codec = $.taggedUnion( +export const $120: $.Codec = $.taggedUnion( "type", { 0: ["Created", ["para_id", $98]], @@ -699,18 +704,18 @@ export const $120: $.Codec = $ }, ) -export const $125: $.Codec> = $.compact($4) +export const $125: $.Codec> = $.compact($4) export const $127: $.Codec = $12 -export const $126: $.Codec = $.taggedUnion("type", { +export const $126: $.Codec = $.taggedUnion("type", { 0: ["Any"], 1: ["Named", ["value", $127]], 2: ["Polkadot"], 3: ["Kusama"], }) -export const $128: $.Codec = $.taggedUnion("type", { +export const $128: $.Codec = $.taggedUnion("type", { 0: ["Unit"], 1: ["Named", ["value", $127]], 2: ["Index", ["value", $125]], @@ -720,7 +725,7 @@ export const $128: $.Codec = $.taggedUnion("type", { 6: ["Judicial"], }) -export const $129: $.Codec = $.taggedUnion("type", { +export const $129: $.Codec = $.taggedUnion("type", { 0: ["Voice"], 1: ["Members", ["count", $125]], 2: ["Fraction", ["nom", $125], ["denom", $125]], @@ -728,7 +733,7 @@ export const $129: $.Codec = $.taggedUnion("type", { 4: ["MoreThanProportion", ["nom", $125], ["denom", $125]], }) -export const $124: $.Codec = $.taggedUnion("type", { +export const $124: $.Codec = $.taggedUnion("type", { 0: ["Parachain", ["value", $125]], 1: ["AccountId32", ["network", $126], ["id", $1]], 2: ["AccountIndex64", ["network", $126], ["index", $9]], @@ -740,7 +745,7 @@ export const $124: $.Codec = $.taggedUnion("type", { 8: ["Plurality", ["id", $128], ["part", $129]], }) -export const $123: $.Codec = $.taggedUnion("type", { +export const $123: $.Codec = $.taggedUnion("type", { 0: ["Here"], 1: ["X1", ["value", $124]], 2: ["X2", ["value", $.tuple($124, $124)]], @@ -752,19 +757,19 @@ export const $123: $.Codec = $.taggedUnion("ty 8: ["X8", ["value", $.tuple($124, $124, $124, $124, $124, $124, $124, $124)]], }) -export const $122: $.Codec = $.object(["parents", $2], [ +export const $122: $.Codec = $.object(["parents", $2], [ "interior", $123, ]) -export const $136: $.Codec = $.taggedUnion("type", { +export const $136: $.Codec = $.taggedUnion("type", { 0: ["Concrete", ["value", $122]], 1: ["Abstract", ["value", $12]], }) export const $139: $.Codec = $.sizedUint8Array(8) -export const $138: $.Codec = $.taggedUnion("type", { +export const $138: $.Codec = $.taggedUnion("type", { 0: ["Undefined"], 1: ["Index", ["value", $58]], 2: ["Array4", ["value", $16]], @@ -774,29 +779,32 @@ export const $138: $.Codec = $.taggedUnion("t 6: ["Blob", ["value", $12]], }) -export const $137: $.Codec = $.taggedUnion("type", { +export const $137: $.Codec = $.taggedUnion("type", { 0: ["Fungible", ["value", $58]], 1: ["NonFungible", ["value", $138]], }) -export const $135: $.Codec = $.object(["id", $136], ["fun", $137]) +export const $135: $.Codec = $.object(["id", $136], [ + "fun", + $137, +]) -export const $134: $.Codec> = $.array($135) +export const $134: $.Codec> = $.array($135) -export const $133: $.Codec = $134 +export const $133: $.Codec = $134 -export const $142: $.Codec<[t.u32, t.xcm.v2.traits.Error]> = $.tuple($4, $110) +export const $142: $.Codec<[t.types.u32, t.types.xcm.v2.traits.Error]> = $.tuple($4, $110) -export const $141: $.Codec<[t.u32, t.xcm.v2.traits.Error] | undefined> = $.option($142) +export const $141: $.Codec<[t.types.u32, t.types.xcm.v2.traits.Error] | undefined> = $.option($142) -export const $140: $.Codec = $.taggedUnion("type", { +export const $140: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["Assets", ["value", $133]], 2: ["ExecutionResult", ["value", $141]], 3: ["Version", ["value", $4]], }) -export const $143: $.Codec = $.stringUnion({ +export const $143: $.Codec = $.stringUnion({ 0: "Native", 1: "SovereignAccount", 2: "Superuser", @@ -805,27 +813,27 @@ export const $143: $.Codec = $.stringUnion({ export const $144: $.Codec<{ encoded: Uint8Array }> = $.object(["encoded", $12]) -export const $147: $.Codec = $.stringUnion({ +export const $147: $.Codec = $.stringUnion({ 0: "Fungible", 1: "NonFungible", }) -export const $146: $.Codec = $.taggedUnion("type", { +export const $146: $.Codec = $.taggedUnion("type", { 0: ["All"], 1: ["AllOf", ["id", $136], ["fun", $147]], }) -export const $145: $.Codec = $.taggedUnion("type", { +export const $145: $.Codec = $.taggedUnion("type", { 0: ["Definite", ["value", $133]], 1: ["Wild", ["value", $146]], }) -export const $148: $.Codec = $.taggedUnion("type", { +export const $148: $.Codec = $.taggedUnion("type", { 0: ["Unlimited"], 1: ["Limited", ["value", $9]], }) -export const $132: $.Codec = $.taggedUnion("type", { +export const $132: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["value", $133]], 1: ["ReserveAssetDeposited", ["value", $133]], 2: ["ReceiveTeleportedAsset", ["value", $133]], @@ -868,13 +876,13 @@ export const $132: $.Codec = $.taggedUnion("type", { 27: ["UnsubscribeVersion"], }) -export const $131: $.Codec> = $.array($132) +export const $131: $.Codec> = $.array($132) -export const $130: $.Codec> = $131 +export const $130: $.Codec> = $131 -export const $149: $.Codec = $.option($122) +export const $149: $.Codec = $.option($122) -export const $154: $.Codec = $.taggedUnion("type", { +export const $154: $.Codec = $.taggedUnion("type", { 0: ["Parent"], 1: ["Parachain", ["value", $125]], 2: ["AccountId32", ["network", $126], ["id", $1]], @@ -887,7 +895,7 @@ export const $154: $.Codec = $.taggedUnion("type", { 9: ["Plurality", ["id", $128], ["part", $129]], }) -export const $153: $.Codec = $.taggedUnion("type", { +export const $153: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["X1", ["value", $154]], 2: ["X2", ["value", $.tuple($154, $154)]], @@ -899,7 +907,7 @@ export const $153: $.Codec = $.taggedUnio 8: ["X8", ["value", $.tuple($154, $154, $154, $154, $154, $154, $154, $154)]], }) -export const $152: $.Codec = $.taggedUnion("type", { +export const $152: $.Codec = $.taggedUnion("type", { 0: ["None"], 1: ["All"], 2: ["AllFungible"], @@ -914,19 +922,19 @@ export const $152: $.Codec = $.taggedUnion("typ 11: ["ConcreteNonFungible", ["class", $153], ["instance", $138]], }) -export const $151: $.Codec> = $.array($152) +export const $151: $.Codec> = $.array($152) -export const $150: $.Codec = $.taggedUnion("type", { +export const $150: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $151]], 1: ["V1", ["value", $133]], }) -export const $155: $.Codec = $.taggedUnion("type", { +export const $155: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $153]], 1: ["V1", ["value", $122]], }) -export const $121: $.Codec = $.taggedUnion("type", { +export const $121: $.Codec = $.taggedUnion("type", { 0: ["Attempted", ["value", $109]], 1: ["Sent", ["value", $.tuple($122, $122, $130)]], 2: ["UnexpectedResponse", ["value", $.tuple($122, $10)]], @@ -946,7 +954,7 @@ export const $121: $.Codec = $.taggedUnion("type", { 16: ["AssetsClaimed", ["value", $.tuple($11, $122, $150)]], }) -export const $19: $.Codec = $.taggedUnion("type", { +export const $19: $.Codec = $.taggedUnion("type", { 0: ["System", ["value", $20]], 1: ["Scheduler", ["value", $29]], 10: ["Preimage", ["value", $34]], @@ -989,23 +997,23 @@ export const $19: $.Codec = $.taggedUnion("type 99: ["XcmPallet", ["value", $121]], }) -export const $157: $.Codec> = $.array($11) +export const $157: $.Codec> = $.array($11) -export const $18: $.Codec = $.object(["phase", $156], ["event", $19], [ - "topics", - $157, -]) +export const $18: $.Codec = $.object(["phase", $156], [ + "event", + $19, +], ["topics", $157]) -export const $17: $.Codec> = $.array($18) +export const $17: $.Codec> = $.array($18) -export const $158: $.Codec> = $.array($30) +export const $158: $.Codec> = $.array($30) export const $160: $.Codec = $.str -export const $159: $.Codec = $.object( - ["spec_version", $125], - ["spec_name", $160], -) +export const $159: $.Codec = $.object([ + "spec_version", + $125, +], ["spec_name", $160]) export const $163: $.Codec<[Uint8Array, Uint8Array]> = $.tuple($12, $12) @@ -1013,7 +1021,7 @@ export const $162: $.Codec> = $.array($163) export const $164: $.Codec> = $.array($12) -export const $161: $.Codec = $.taggedUnion("type", { +export const $161: $.Codec = $.taggedUnion("type", { 0: ["fill_block", ["ratio", $42]], 1: ["remark", ["remark", $12]], 2: ["set_heap_pages", ["pages", $10]], @@ -1025,9 +1033,9 @@ export const $161: $.Codec = $.taggedUnion("type", { 8: ["remark_with_event", ["remark", $12]], }) -export const $168: $.Codec = $.option($8) +export const $168: $.Codec = $.option($8) -export const $167: $.Codec = $.object( +export const $167: $.Codec = $.object( ["base_extrinsic", $8], ["max_extrinsic", $168], ["max_total", $168], @@ -1035,31 +1043,35 @@ export const $167: $.Codec = $.object( ) export const $166: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass + t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass > = $.object(["normal", $167], ["operational", $167], ["mandatory", $167]) -export const $165: $.Codec = $.object(["base_block", $8], [ - "max_block", - $8, -], ["per_class", $166]) +export const $165: $.Codec = $.object( + ["base_block", $8], + ["max_block", $8], + ["per_class", $166], +) -export const $170: $.Codec = $.object( +export const $170: $.Codec = $.object( ["normal", $4], ["operational", $4], ["mandatory", $4], ) -export const $169: $.Codec = $.object(["max", $170]) +export const $169: $.Codec = $.object(["max", $170]) -export const $171: $.Codec = $.object(["read", $10], ["write", $10]) +export const $171: $.Codec = $.object(["read", $10], [ + "write", + $10, +]) -export const $175: $.Codec<[Uint8Array, t.u32]> = $.tuple($139, $4) +export const $175: $.Codec<[Uint8Array, t.types.u32]> = $.tuple($139, $4) -export const $174: $.Codec> = $.array($175) +export const $174: $.Codec> = $.array($175) -export const $173: $.Codec> = $174 +export const $173: $.Codec> = $174 -export const $172: $.Codec = $.object( +export const $172: $.Codec = $.object( ["spec_name", $160], ["impl_name", $160], ["authoring_version", $4], @@ -1070,7 +1082,7 @@ export const $172: $.Codec = $.object( ["state_version", $2], ) -export const $176: $.Codec = $.stringUnion({ +export const $176: $.Codec = $.stringUnion({ 0: "InvalidSpecName", 1: "SpecVersionNeedsToIncrease", 2: "FailedToExtractRuntimeVersion", @@ -1081,45 +1093,43 @@ export const $176: $.Codec = $.stringUnion({ export const $448: $.Codec = $12 -export const $180: $.Codec = $.taggedUnion("type", { +export const $180: $.Codec = $.taggedUnion("type", { 0: ["Legacy", ["hash", $11]], 1: ["Inline", ["value", $448]], 2: ["Lookup", ["hash", $11], ["len", $4]], }) -export const $183: $.Codec<[t.u32, t.u32] | undefined> = $.option($30) +export const $183: $.Codec<[t.types.u32, t.types.u32] | undefined> = $.option($30) -export const $257: $.Codec = $.taggedUnion("type", { +export const $257: $.Codec = $.taggedUnion("type", { 0: ["Root"], 1: ["Signed", ["value", $0]], 2: ["None"], }) -export const $258: $.Codec = $.taggedUnion("type", { +export const $258: $.Codec = $.taggedUnion("type", { 0: ["Members", ["value", $.tuple($4, $4)]], 1: ["Member", ["value", $0]], 2: ["_Phantom"], }) -export const $259: $.Codec = $.taggedUnion("type", { +export const $259: $.Codec = $.taggedUnion("type", { 0: ["Members", ["value", $.tuple($4, $4)]], 1: ["Member", ["value", $0]], 2: ["_Phantom"], }) -export const $260: $.Codec = $.taggedUnion( - "type", - { 0: ["Parachain", ["value", $98]] }, -) +export const $260: $.Codec = $ + .taggedUnion("type", { 0: ["Parachain", ["value", $98]] }) -export const $261: $.Codec = $.taggedUnion("type", { +export const $261: $.Codec = $.taggedUnion("type", { 0: ["Xcm", ["value", $122]], 1: ["Response", ["value", $122]], }) -export const $262: $.Codec = $.never +export const $262: $.Codec = $.never -export const $256: $.Codec = $.taggedUnion("type", { +export const $256: $.Codec = $.taggedUnion("type", { 0: ["system", ["value", $257]], 15: ["Council", ["value", $258]], 16: ["TechnicalCommittee", ["value", $259]], @@ -1128,7 +1138,7 @@ export const $256: $.Codec = $.taggedUnion("typ 5: ["Void", ["value", $262]], }) -export const $179: $.Codec = $.object( +export const $179: $.Codec = $.object( ["maybe_id", $31], ["priority", $2], ["call", $180], @@ -1136,13 +1146,13 @@ export const $179: $.Codec = $.object( ["origin", $256], ) -export const $178: $.Codec = $.option($179) +export const $178: $.Codec = $.option($179) -export const $449: $.Codec> = $.array($178) +export const $449: $.Codec> = $.array($178) -export const $177: $.Codec> = $449 +export const $177: $.Codec> = $449 -export const $182: $.Codec = $.taggedUnion("type", { +export const $182: $.Codec = $.taggedUnion("type", { 0: ["schedule", ["when", $4], ["maybe_periodic", $183], ["priority", $2], [ "call", $.deferred(() => $181), @@ -1167,18 +1177,18 @@ export const $182: $.Codec = $.taggedUnion("type ], }) -export const $184: $.Codec = $.taggedUnion("type", { +export const $184: $.Codec = $.taggedUnion("type", { 0: ["note_preimage", ["bytes", $12]], 1: ["unnote_preimage", ["hash", $11]], 2: ["request_preimage", ["hash", $11]], 3: ["unrequest_preimage", ["hash", $11]], }) -export const $189: $.Codec = $54 +export const $189: $.Codec = $54 -export const $190: $.Codec = $10 +export const $190: $.Codec = $10 -export const $187: $.Codec = $.object( +export const $187: $.Codec = $.object( ["parent_hash", $11], ["number", $125], ["state_root", $11], @@ -1186,44 +1196,44 @@ export const $187: $.Codec = $.object( ["digest", $13], ) -export const $186: $.Codec = $.object( +export const $186: $.Codec = $.object( ["offender", $189], ["slot", $190], ["first_header", $187], ["second_header", $187], ) -export const $191: $.Codec = $.object(["session", $4], [ +export const $191: $.Codec = $.object(["session", $4], [ "trie_nodes", $164, ], ["validator_count", $4]) -export const $193: $.Codec<[t.u64, t.u64]> = $.tuple($10, $10) +export const $193: $.Codec<[t.types.u64, t.types.u64]> = $.tuple($10, $10) -export const $194: $.Codec = $.stringUnion({ +export const $194: $.Codec = $.stringUnion({ 0: "PrimarySlots", 1: "PrimaryAndSecondaryPlainSlots", 2: "PrimaryAndSecondaryVRFSlots", }) -export const $192: $.Codec = $.taggedUnion( +export const $192: $.Codec = $.taggedUnion( "type", { 1: ["V1", ["c", $193], ["allowed_slots", $194]] }, ) -export const $185: $.Codec = $.taggedUnion("type", { +export const $185: $.Codec = $.taggedUnion("type", { 0: ["report_equivocation", ["equivocation_proof", $186], ["key_owner_proof", $191]], 1: ["report_equivocation_unsigned", ["equivocation_proof", $186], ["key_owner_proof", $191]], 2: ["plan_config_change", ["config", $192]], }) -export const $195: $.Codec = $.taggedUnion("type", { +export const $195: $.Codec = $.taggedUnion("type", { 0: ["set", ["now", $9]], }) export const $198: $.Codec> = $.compact($33) -export const $197: $.Codec = $.taggedUnion("type", { +export const $197: $.Codec = $.taggedUnion("type", { 0: ["Id", ["value", $0]], 1: ["Index", ["value", $198]], 2: ["Raw", ["value", $12]], @@ -1231,7 +1241,7 @@ export const $197: $.Codec = $.taggedUni 4: ["Address20", ["value", $74]], }) -export const $196: $.Codec = $.taggedUnion("type", { +export const $196: $.Codec = $.taggedUnion("type", { 0: ["claim", ["index", $4]], 1: ["transfer", ["new", $197], ["index", $4]], 2: ["free", ["index", $4]], @@ -1239,7 +1249,7 @@ export const $196: $.Codec = $.taggedUnion("type", 4: ["freeze", ["index", $4]], }) -export const $199: $.Codec = $.taggedUnion("type", { +export const $199: $.Codec = $.taggedUnion("type", { 0: ["transfer", ["dest", $197], ["value", $58]], 1: ["set_balance", ["who", $197], ["new_free", $58], ["new_reserved", $58]], 2: ["force_transfer", ["source", $197], ["dest", $197], ["value", $58]], @@ -1248,13 +1258,13 @@ export const $199: $.Codec = $.taggedUnion("type" 5: ["force_unreserve", ["who", $197], ["amount", $6]], }) -export const $201: $.Codec> = $.array($187) +export const $201: $.Codec> = $.array($187) -export const $200: $.Codec = $.taggedUnion("type", { +export const $200: $.Codec = $.taggedUnion("type", { 0: ["set_uncles", ["new_uncles", $201]], }) -export const $203: $.Codec = $.taggedUnion("type", { +export const $203: $.Codec = $.taggedUnion("type", { 0: ["Staked"], 1: ["Stash"], 2: ["Controller"], @@ -1262,33 +1272,31 @@ export const $203: $.Codec = $.taggedUnion(" 4: ["None"], }) -export const $204: $.Codec> = $.array($197) +export const $204: $.Codec> = $.array($197) -export const $205: $.Codec = $2 +export const $205: $.Codec = $2 -export const $206: $.Codec> = $.array($0) +export const $206: $.Codec> = $.array($0) -export const $207: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $6]], - 2: ["Remove"], -}) +export const $207: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $6]], 2: ["Remove"] }, +) -export const $208: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $4]], - 2: ["Remove"], -}) +export const $208: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $4]], 2: ["Remove"] }, +) export const $209: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent > = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $205]], 2: ["Remove"] }) export const $210: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill > = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $42]], 2: ["Remove"] }) -export const $202: $.Codec = $.taggedUnion("type", { +export const $202: $.Codec = $.taggedUnion("type", { 0: ["bond", ["controller", $197], ["value", $58], ["payee", $203]], 1: ["bond_extra", ["max_additional", $58]], 2: ["unbond", ["value", $58]], @@ -1324,13 +1332,13 @@ export const $202: $.Codec = $.taggedUnion( 24: ["force_apply_min_commission", ["validator_stash", $0]], }) -export const $213: $.Codec = $54 +export const $213: $.Codec = $54 -export const $214: $.Codec = $54 +export const $214: $.Codec = $54 -export const $215: $.Codec = $54 +export const $215: $.Codec = $54 -export const $212: $.Codec = $.object( +export const $212: $.Codec = $.object( ["grandpa", $50], ["babe", $189], ["im_online", $53], @@ -1339,73 +1347,67 @@ export const $212: $.Codec = $.object( ["authority_discovery", $215], ) -export const $211: $.Codec = $.taggedUnion("type", { +export const $211: $.Codec = $.taggedUnion("type", { 0: ["set_keys", ["keys", $212], ["proof", $12]], 1: ["purge_keys"], }) -export const $220: $.Codec = $.object(["target_hash", $11], [ +export const $220: $.Codec = $.object(["target_hash", $11], [ "target_number", $4, ]) -export const $222: $.Codec = $102 +export const $222: $.Codec = $102 -export const $221: $.Codec = $222 +export const $221: $.Codec = $222 -export const $223: $.Codec<[t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature]> = $ - .tuple($220, $221) +export const $223: $.Codec< + [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] +> = $.tuple($220, $221) -export const $219: $.Codec = $.object( - ["round_number", $10], - ["identity", $50], - ["first", $223], - ["second", $223], -) +export const $219: $.Codec = $ + .object(["round_number", $10], ["identity", $50], ["first", $223], ["second", $223]) -export const $225: $.Codec = $.object(["target_hash", $11], [ +export const $225: $.Codec = $.object(["target_hash", $11], [ "target_number", $4, ]) -export const $226: $.Codec<[t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature]> = $ - .tuple($225, $221) +export const $226: $.Codec< + [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] +> = $.tuple($225, $221) -export const $224: $.Codec = $.object( - ["round_number", $10], - ["identity", $50], - ["first", $226], - ["second", $226], -) +export const $224: $.Codec = $ + .object(["round_number", $10], ["identity", $50], ["first", $226], ["second", $226]) -export const $218: $.Codec = $.taggedUnion("type", { +export const $218: $.Codec = $.taggedUnion("type", { 0: ["Prevote", ["value", $219]], 1: ["Precommit", ["value", $224]], }) -export const $217: $.Codec = $.object(["set_id", $10], [ - "equivocation", - $218, -]) +export const $217: $.Codec = $.object([ + "set_id", + $10, +], ["equivocation", $218]) -export const $216: $.Codec = $.taggedUnion("type", { +export const $216: $.Codec = $.taggedUnion("type", { 0: ["report_equivocation", ["equivocation_proof", $217], ["key_owner_proof", $191]], 1: ["report_equivocation_unsigned", ["equivocation_proof", $217], ["key_owner_proof", $191]], 2: ["note_stalled", ["delay", $4], ["best_finalized_block_number", $4]], }) -export const $230: $.Codec = $12 +export const $230: $.Codec = $12 -export const $232: $.Codec = $12 +export const $232: $.Codec = $12 -export const $231: $.Codec> = $.array($232) +export const $231: $.Codec> = $.array($232) -export const $229: $.Codec = $.object(["peer_id", $230], [ - "external_addresses", - $231, -]) +export const $229: $.Codec = $.object([ + "peer_id", + $230, +], ["external_addresses", $231]) -export const $228: $.Codec = $.object( +export const $228: $.Codec = $.object( ["block_number", $4], ["network_state", $229], ["session_index", $4], @@ -1413,13 +1415,13 @@ export const $228: $.Codec = $.object( ["validators_len", $4], ) -export const $233: $.Codec = $101 +export const $233: $.Codec = $101 -export const $227: $.Codec = $.taggedUnion("type", { +export const $227: $.Codec = $.taggedUnion("type", { 0: ["heartbeat", ["heartbeat", $228], ["signature", $233]], }) -export const $235: $.Codec = $.stringUnion({ +export const $235: $.Codec = $.stringUnion({ 0: "None", 1: "Locked1x", 2: "Locked2x", @@ -1429,9 +1431,9 @@ export const $235: $.Codec = $.stringU 6: "Locked6x", }) -export const $236: $.Codec = $.option($4) +export const $236: $.Codec = $.option($4) -export const $234: $.Codec = $.taggedUnion("type", { +export const $234: $.Codec = $.taggedUnion("type", { 0: ["propose", ["proposal", $180], ["value", $58]], 1: ["second", ["proposal", $125]], 2: ["vote", ["ref_index", $125], ["vote", $63]], @@ -1452,11 +1454,11 @@ export const $234: $.Codec = $.taggedUnion("type 17: ["cancel_proposal", ["prop_index", $125]], }) -export const $239: $.Codec = $10 +export const $239: $.Codec = $10 -export const $238: $.Codec> = $.compact($239) +export const $238: $.Codec> = $.compact($239) -export const $237: $.Codec = $.taggedUnion("type", { +export const $237: $.Codec = $.taggedUnion("type", { 0: ["set_members", ["new_members", $206], ["prime", $92], ["old_count", $4]], 1: ["execute", ["proposal", $.deferred(() => $181)], ["length_bound", $125]], 2: ["propose", ["threshold", $125], ["proposal", $.deferred(() => $181)], ["length_bound", $125]], @@ -1475,7 +1477,7 @@ export const $237: $.Codec = $.taggedUnion("typ ]], }) -export const $240: $.Codec = $.taggedUnion("type", { +export const $240: $.Codec = $.taggedUnion("type", { 0: ["set_members", ["new_members", $206], ["prime", $92], ["old_count", $4]], 1: ["execute", ["proposal", $.deferred(() => $181)], ["length_bound", $125]], 2: ["propose", ["threshold", $125], ["proposal", $.deferred(() => $181)], ["length_bound", $125]], @@ -1494,13 +1496,13 @@ export const $240: $.Codec = $.taggedUnion("typ ]], }) -export const $242: $.Codec = $.taggedUnion("type", { +export const $242: $.Codec = $.taggedUnion("type", { 0: ["Member"], 1: ["RunnerUp"], 2: ["Candidate", ["value", $125]], }) -export const $241: $.Codec = $.taggedUnion("type", { +export const $241: $.Codec = $.taggedUnion("type", { 0: ["vote", ["votes", $206], ["value", $58]], 1: ["remove_voter"], 2: ["submit_candidacy", ["candidate_count", $125]], @@ -1509,7 +1511,7 @@ export const $241: $.Codec = $.taggedUn 5: ["clean_defunct_voters", ["num_voters", $4], ["num_defunct", $4]], }) -export const $243: $.Codec = $.taggedUnion("type", { +export const $243: $.Codec = $.taggedUnion("type", { 0: ["add_member", ["who", $197]], 1: ["remove_member", ["who", $197]], 2: ["swap_member", ["remove", $197], ["add", $197]], @@ -1519,7 +1521,7 @@ export const $243: $.Codec = $.taggedUnion("typ 6: ["clear_prime"], }) -export const $244: $.Codec = $.taggedUnion("type", { +export const $244: $.Codec = $.taggedUnion("type", { 0: ["propose_spend", ["value", $58], ["beneficiary", $197]], 1: ["reject_proposal", ["proposal_id", $125]], 2: ["approve_proposal", ["proposal_id", $125]], @@ -1529,35 +1531,38 @@ export const $244: $.Codec = $.taggedUnion("type" export const $247: $.Codec = $.sizedUint8Array(65) -export const $246: $.Codec = $247 +export const $246: $.Codec = $247 -export const $249: $.Codec<[t.u128, t.u128, t.u32]> = $.tuple($6, $6, $4) +export const $249: $.Codec<[t.types.u128, t.types.u128, t.types.u32]> = $.tuple($6, $6, $4) -export const $248: $.Codec<[t.u128, t.u128, t.u32] | undefined> = $.option($249) +export const $248: $.Codec<[t.types.u128, t.types.u128, t.types.u32] | undefined> = $.option($249) -export const $251: $.Codec = $.stringUnion({ +export const $251: $.Codec = $.stringUnion({ 0: "Regular", 1: "Saft", }) -export const $250: $.Codec = $.option( - $251, -) +export const $250: $.Codec = $ + .option($251) -export const $245: $.Codec = $.taggedUnion("type", { - 0: ["claim", ["dest", $0], ["ethereum_signature", $246]], - 1: ["mint_claim", ["who", $73], ["value", $6], ["vesting_schedule", $248], ["statement", $250]], - 2: ["claim_attest", ["dest", $0], ["ethereum_signature", $246], ["statement", $12]], - 3: ["attest", ["statement", $12]], - 4: ["move_claim", ["old", $73], ["new", $73], ["maybe_preclaim", $92]], -}) +export const $245: $.Codec = $.taggedUnion( + "type", + { + 0: ["claim", ["dest", $0], ["ethereum_signature", $246]], + 1: ["mint_claim", ["who", $73], ["value", $6], ["vesting_schedule", $248], ["statement", $250]], + 2: ["claim_attest", ["dest", $0], ["ethereum_signature", $246], ["statement", $12]], + 3: ["attest", ["statement", $12]], + 4: ["move_claim", ["old", $73], ["new", $73], ["maybe_preclaim", $92]], + }, +) -export const $253: $.Codec = $.object(["locked", $6], [ - "per_block", - $6, -], ["starting_block", $4]) +export const $253: $.Codec = $.object( + ["locked", $6], + ["per_block", $6], + ["starting_block", $4], +) -export const $252: $.Codec = $.taggedUnion("type", { +export const $252: $.Codec = $.taggedUnion("type", { 0: ["vest"], 1: ["vest_other", ["target", $197]], 2: ["vested_transfer", ["target", $197], ["schedule", $253]], @@ -1565,9 +1570,11 @@ export const $252: $.Codec = $.taggedUnion("type", 4: ["merge_schedules", ["schedule1_index", $4], ["schedule2_index", $4]], }) -export const $255: $.Codec> = $.array($.deferred(() => $181)) +export const $255: $.Codec> = $.array( + $.deferred(() => $181), +) -export const $254: $.Codec = $.taggedUnion("type", { +export const $254: $.Codec = $.taggedUnion("type", { 0: ["batch", ["calls", $255]], 1: ["as_derivative", ["index", $80], ["call", $.deferred(() => $181)]], 2: ["batch_all", ["calls", $255]], @@ -1631,7 +1638,7 @@ export const $294: $.Codec = $.sizedUint8Array(30) export const $295: $.Codec = $.sizedUint8Array(31) -export const $267: $.Codec = $.taggedUnion("type", { +export const $267: $.Codec = $.taggedUnion("type", { 0: ["None"], 1: ["Raw0", ["value", $268]], 2: ["Raw1", ["value", $269]], @@ -1672,20 +1679,21 @@ export const $267: $.Codec = $.taggedUnion("type", 37: ["ShaThree256", ["value", $1]], }) -export const $266: $.Codec<[t.pallet_identity.types.Data, t.pallet_identity.types.Data]> = $.tuple( - $267, - $267, -) +export const $266: $.Codec< + [t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data] +> = $.tuple($267, $267) -export const $296: $.Codec> = $ - .array($266) +export const $296: $.Codec< + Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> +> = $.array($266) -export const $265: $.Codec> = - $296 +export const $265: $.Codec< + Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> +> = $296 export const $297: $.Codec = $.option($74) -export const $264: $.Codec = $.object( +export const $264: $.Codec = $.object( ["additional", $265], ["display", $267], ["legal", $267], @@ -1697,17 +1705,17 @@ export const $264: $.Codec = $.object( ["twitter", $267], ) -export const $299: $.Codec<[t.sp_core.crypto.AccountId32, t.pallet_identity.types.Data]> = $.tuple( - $0, - $267, -) +export const $299: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data] +> = $.tuple($0, $267) -export const $298: $.Codec> = $ - .array($299) +export const $298: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data]> +> = $.array($299) -export const $300: $.Codec = $10 +export const $300: $.Codec = $10 -export const $302: $.Codec = $.taggedUnion("type", { +export const $302: $.Codec = $.taggedUnion("type", { 0: ["Unknown"], 1: ["FeePaid", ["value", $6]], 2: ["Reasonable"], @@ -1717,7 +1725,7 @@ export const $302: $.Codec = $.taggedUnion("t 6: ["Erroneous"], }) -export const $263: $.Codec = $.taggedUnion("type", { +export const $263: $.Codec = $.taggedUnion("type", { 0: ["add_registrar", ["account", $197]], 1: ["set_identity", ["info", $264]], 2: ["set_subs", ["subs", $298]], @@ -1738,9 +1746,9 @@ export const $263: $.Codec = $.taggedUnion("type" 14: ["quit_sub"], }) -export const $304: $.Codec = $.option($79) +export const $304: $.Codec = $.option($79) -export const $303: $.Codec = $.taggedUnion("type", { +export const $303: $.Codec = $.taggedUnion("type", { 0: ["proxy", ["real", $197], ["force_proxy_type", $304], ["call", $.deferred(() => $181)]], 1: ["add_proxy", ["delegate", $197], ["proxy_type", $79], ["delay", $4]], 2: ["remove_proxy", ["delegate", $197], ["proxy_type", $79], ["delay", $4]], @@ -1759,9 +1767,9 @@ export const $303: $.Codec = $.taggedUnion("type", { ]], }) -export const $306: $.Codec = $.option($82) +export const $306: $.Codec = $.option($82) -export const $305: $.Codec = $.taggedUnion("type", { +export const $305: $.Codec = $.taggedUnion("type", { 0: ["as_multi_threshold_1", ["other_signatories", $206], ["call", $.deferred(() => $181)]], 1: ["as_multi", ["threshold", $80], ["other_signatories", $206], ["maybe_timepoint", $306], [ "call", @@ -1781,7 +1789,7 @@ export const $305: $.Codec = $.taggedUnion("type" ]], }) -export const $307: $.Codec = $.taggedUnion("type", { +export const $307: $.Codec = $.taggedUnion("type", { 0: ["propose_bounty", ["value", $58], ["description", $12]], 1: ["approve_bounty", ["bounty_id", $125]], 2: ["propose_curator", ["bounty_id", $125], ["curator", $197], ["fee", $58]], @@ -1793,7 +1801,7 @@ export const $307: $.Codec = $.taggedUnion("type" 8: ["extend_bounty_expiry", ["bounty_id", $125], ["remark", $12]], }) -export const $308: $.Codec = $.taggedUnion("type", { +export const $308: $.Codec = $.taggedUnion("type", { 0: ["add_child_bounty", ["parent_bounty_id", $125], ["value", $58], ["description", $12]], 1: ["propose_curator", ["parent_bounty_id", $125], ["child_bounty_id", $125], ["curator", $197], [ "fee", @@ -1809,7 +1817,7 @@ export const $308: $.Codec = $.taggedUnion( 6: ["close_child_bounty", ["parent_bounty_id", $125], ["child_bounty_id", $125]], }) -export const $309: $.Codec = $.taggedUnion("type", { +export const $309: $.Codec = $.taggedUnion("type", { 0: ["report_awesome", ["reason", $12], ["who", $197]], 1: ["retract_tip", ["hash", $11]], 2: ["tip_new", ["reason", $12], ["who", $197], ["tip_value", $58]], @@ -1818,745 +1826,746 @@ export const $309: $.Codec = $.taggedUnion("type", { 5: ["slash_tip", ["hash", $11]], }) -export const $315: $.Codec> = $.compact($80) +export const $315: $.Codec> = $.compact($80) -export const $314: $.Codec<[t.Compact, t.Compact]> = $.tuple($125, $315) +export const $314: $.Codec<[t.Compact, t.Compact]> = $.tuple($125, $315) -export const $313: $.Codec, t.Compact]>> = $.array($314) +export const $313: $.Codec, t.Compact]>> = $.array($314) -export const $320: $.Codec = $80 +export const $320: $.Codec = $80 -export const $319: $.Codec> = $.compact($320) +export const $319: $.Codec> = $.compact($320) -export const $318: $.Codec<[t.Compact, t.Compact]> = $ - .tuple($315, $319) +export const $318: $.Codec< + [t.Compact, t.Compact] +> = $.tuple($315, $319) export const $317: $.Codec< [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, + t.Compact, + [t.Compact, t.Compact], + t.Compact, ] > = $.tuple($125, $318, $315) export const $316: $.Codec< Array< [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, + t.Compact, + [t.Compact, t.Compact], + t.Compact, ] > > = $.array($317) export const $323: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 2) export const $322: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $323, $315) export const $321: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($322) export const $326: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 3) export const $325: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $326, $315) export const $324: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($325) export const $329: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 4) export const $328: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $329, $315) export const $327: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($328) export const $332: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 5) export const $331: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $332, $315) export const $330: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($331) export const $335: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 6) export const $334: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $335, $315) export const $333: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($334) export const $338: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 7) export const $337: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $338, $315) export const $336: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($337) export const $341: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 8) export const $340: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $341, $315) export const $339: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($340) export const $344: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 9) export const $343: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $344, $315) export const $342: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($343) export const $347: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 10) export const $346: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $347, $315) export const $345: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($346) export const $350: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 11) export const $349: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $350, $315) export const $348: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($349) export const $353: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 12) export const $352: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $353, $315) export const $351: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($352) export const $356: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 13) export const $355: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $356, $315) export const $354: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($355) export const $359: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 14) export const $358: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $359, $315) export const $357: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($358) export const $362: $.Codec< [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ] > = $.sizedArray($318, 15) export const $361: $.Codec< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > = $.tuple($125, $362, $315) export const $360: $.Codec< Array< [ - t.Compact, + t.Compact, [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], ], - t.Compact, + t.Compact, ] > > = $.array($361) -export const $312: $.Codec = $.object( +export const $312: $.Codec = $.object( ["votes1", $313], ["votes2", $316], ["votes3", $321], @@ -2575,64 +2584,64 @@ export const $312: $.Codec = $.object( ["votes16", $360], ) -export const $311: $.Codec = $.object( +export const $311: $.Codec = $.object( ["solution", $312], ["score", $88], ["round", $4], ) -export const $363: $.Codec = $ +export const $363: $.Codec = $ .object(["voters", $125], ["targets", $125]) -export const $364: $.Codec = $.option($88) +export const $364: $.Codec = $.option($88) -export const $367: $.Codec = $.object(["total", $6], ["voters", $68]) +export const $367: $.Codec = $.object(["total", $6], [ + "voters", + $68, +]) -export const $366: $.Codec<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> = $.tuple( - $0, - $367, -) +export const $366: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support] +> = $.tuple($0, $367) -export const $365: $.Codec> = $ - .array($366) +export const $365: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> +> = $.array($366) -export const $310: $.Codec = $.taggedUnion( - "type", - { +export const $310: $.Codec = $ + .taggedUnion("type", { 0: ["submit_unsigned", ["raw_solution", $311], ["witness", $363]], 1: ["set_minimum_untrusted_score", ["maybe_next_score", $364]], 2: ["set_emergency_election_result", ["supports", $365]], 3: ["submit", ["raw_solution", $311]], 4: ["governance_fallback", ["maybe_max_voters", $236], ["maybe_max_targets", $236]], - }, -) + }) -export const $368: $.Codec = $.taggedUnion("type", { +export const $368: $.Codec = $.taggedUnion("type", { 0: ["rebag", ["dislocated", $197]], 1: ["put_in_front_of", ["lighter", $197]], }) -export const $370: $.Codec = $.taggedUnion("type", { +export const $370: $.Codec = $.taggedUnion("type", { 0: ["FreeBalance", ["value", $6]], 1: ["Rewards"], }) -export const $371: $.Codec = $.taggedUnion("type", { - 0: ["Noop"], - 1: ["Set", ["value", $6]], - 2: ["Remove"], -}) +export const $371: $.Codec = $.taggedUnion( + "type", + { 0: ["Noop"], 1: ["Set", ["value", $6]], 2: ["Remove"] }, +) -export const $372: $.Codec = $.taggedUnion("type", { +export const $372: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $4]], 2: ["Remove"], }) -export const $373: $.Codec = $ - .taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $0]], 2: ["Remove"] }) +export const $373: $.Codec = + $.taggedUnion("type", { 0: ["Noop"], 1: ["Set", ["value", $0]], 2: ["Remove"] }) -export const $369: $.Codec = $.taggedUnion("type", { +export const $369: $.Codec = $.taggedUnion("type", { 0: ["join", ["amount", $58], ["pool_id", $4]], 1: ["bond_extra", ["extra", $370]], 2: ["claim_payout"], @@ -2654,15 +2663,14 @@ export const $369: $.Codec = $.taggedUnio 12: ["chill", ["pool_id", $4]], }) -export const $374: $.Codec = $.taggedUnion("type", { +export const $374: $.Codec = $.taggedUnion("type", { 0: ["register_fast_unstake"], 1: ["deregister"], 2: ["control", ["unchecked_eras_to_check", $4]], }) -export const $375: $.Codec = $.taggedUnion( - "type", - { +export const $375: $.Codec = $ + .taggedUnion("type", { 0: ["set_validation_upgrade_cooldown", ["new", $4]], 1: ["set_validation_upgrade_delay", ["new", $4]], 2: ["set_code_retention_period", ["new", $4]], @@ -2708,43 +2716,45 @@ export const $375: $.Codec = $.never +export const $376: $.Codec = $.never -export const $377: $.Codec = $.never +export const $377: $.Codec = $.never export const $383: $.Codec<$.BitSequence> = $.bitSequence -export const $382: $.Codec = $383 +export const $382: $.Codec = $383 -export const $385: $.Codec = $4 +export const $385: $.Codec = $4 -export const $386: $.Codec = $101 +export const $386: $.Codec = $101 -export const $381: $.Codec = $.object( +export const $381: $.Codec = $.object( ["payload", $382], ["validator_index", $385], ["signature", $386], ) -export const $380: $.Codec> = $.array($381) +export const $380: $.Codec> = $.array( + $381, +) -export const $392: $.Codec = $.object([ +export const $392: $.Codec = $.object([ "recipient", $98, ], ["data", $12]) -export const $391: $.Codec> = $.array($392) +export const $391: $.Codec> = $.array( + $392, +) -export const $394: $.Codec = $12 +export const $394: $.Codec = $12 -export const $393: $.Codec = $.option( - $394, -) +export const $393: $.Codec = $ + .option($394) -export const $390: $.Codec = $.object( +export const $390: $.Codec = $.object( ["upward_messages", $164], ["horizontal_messages", $391], ["new_validation_code", $393], @@ -2753,89 +2763,90 @@ export const $390: $.Codec = $.ob ["hrmp_watermark", $4], ) -export const $389: $.Codec = $.object([ +export const $389: $.Codec = $.object([ "descriptor", $97, ], ["commitments", $390]) -export const $396: $.Codec = $.taggedUnion("type", { - 1: ["Implicit", ["value", $386]], - 2: ["Explicit", ["value", $386]], -}) +export const $396: $.Codec = $.taggedUnion( + "type", + { 1: ["Implicit", ["value", $386]], 2: ["Explicit", ["value", $386]] }, +) -export const $395: $.Codec> = $.array($396) +export const $395: $.Codec> = $.array( + $396, +) -export const $388: $.Codec = $.object( +export const $388: $.Codec = $.object( ["candidate", $389], ["validity_votes", $395], ["validator_indices", $383], ) -export const $387: $.Codec> = $.array($388) +export const $387: $.Codec> = $.array($388) -export const $402: $.Codec = $.taggedUnion( - "type", - { +export const $402: $.Codec = $ + .taggedUnion("type", { 0: ["Explicit"], 1: ["BackingSeconded", ["value", $11]], 2: ["BackingValid", ["value", $11]], 3: ["ApprovalChecking"], - }, -) + }) -export const $403: $.Codec = $.stringUnion({ - 0: "Explicit", -}) +export const $403: $.Codec = $ + .stringUnion({ 0: "Explicit" }) -export const $401: $.Codec = $.taggedUnion("type", { - 0: ["Valid", ["value", $402]], - 1: ["Invalid", ["value", $403]], -}) +export const $401: $.Codec = $.taggedUnion( + "type", + { 0: ["Valid", ["value", $402]], 1: ["Invalid", ["value", $403]] }, +) export const $400: $.Codec< [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, ] > = $.tuple($401, $385, $386) export const $399: $.Codec< Array< [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, ] > > = $.array($400) -export const $398: $.Codec = $.object( +export const $398: $.Codec = $.object( ["candidate_hash", $114], ["session", $4], ["statements", $399], ) -export const $397: $.Codec> = $.array($398) +export const $397: $.Codec> = $.array( + $398, +) -export const $379: $.Codec = $.object( +export const $379: $.Codec = $.object( ["bitfields", $380], ["backed_candidates", $387], ["disputes", $397], ["parent_header", $187], ) -export const $378: $.Codec = $ +export const $378: $.Codec = $ .taggedUnion("type", { 0: ["enter", ["data", $379]] }) -export const $405: $.Codec = $.object( +export const $405: $.Codec = $.object( ["accept", $43], ["subject", $103], ["session_index", $4], ["validator_index", $385], ) -export const $404: $.Codec = $.taggedUnion( +export const $404: $.Codec = $.taggedUnion( "type", { 0: ["force_set_current_code", ["para", $98], ["new_code", $394]], @@ -2852,41 +2863,41 @@ export const $404: $.Codec = $. }, ) -export const $406: $.Codec = $.taggedUnion( - "type", - { 0: ["force_approve", ["up_to", $4]] }, -) +export const $406: $.Codec = $ + .taggedUnion("type", { 0: ["force_approve", ["up_to", $4]] }) -export const $407: $.Codec = $.never +export const $407: $.Codec = $.never -export const $408: $.Codec = $.taggedUnion("type", { - 0: ["service_overweight", ["index", $10], ["weight_limit", $8]], -}) - -export const $409: $.Codec = $.taggedUnion("type", { - 0: ["hrmp_init_open_channel", ["recipient", $98], ["proposed_max_capacity", $4], [ - "proposed_max_message_size", - $4, - ]], - 1: ["hrmp_accept_open_channel", ["sender", $98]], - 2: ["hrmp_close_channel", ["channel_id", $112]], - 3: ["force_clean_hrmp", ["para", $98], ["inbound", $4], ["outbound", $4]], - 4: ["force_process_hrmp_open", ["channels", $4]], - 5: ["force_process_hrmp_close", ["channels", $4]], - 6: ["hrmp_cancel_open_request", ["channel_id", $112], ["open_requests", $4]], - 7: ["force_open_hrmp_channel", ["sender", $98], ["recipient", $98], ["max_capacity", $4], [ - "max_message_size", - $4, - ]], -}) - -export const $410: $.Codec = $.stringUnion({ - 0: "force_unfreeze", -}) +export const $408: $.Codec = $.taggedUnion( + "type", + { 0: ["service_overweight", ["index", $10], ["weight_limit", $8]] }, +) -export const $411: $.Codec = $.taggedUnion( +export const $409: $.Codec = $.taggedUnion( "type", { + 0: ["hrmp_init_open_channel", ["recipient", $98], ["proposed_max_capacity", $4], [ + "proposed_max_message_size", + $4, + ]], + 1: ["hrmp_accept_open_channel", ["sender", $98]], + 2: ["hrmp_close_channel", ["channel_id", $112]], + 3: ["force_clean_hrmp", ["para", $98], ["inbound", $4], ["outbound", $4]], + 4: ["force_process_hrmp_open", ["channels", $4]], + 5: ["force_process_hrmp_close", ["channels", $4]], + 6: ["hrmp_cancel_open_request", ["channel_id", $112], ["open_requests", $4]], + 7: ["force_open_hrmp_channel", ["sender", $98], ["recipient", $98], ["max_capacity", $4], [ + "max_message_size", + $4, + ]], + }, +) + +export const $410: $.Codec = $ + .stringUnion({ 0: "force_unfreeze" }) + +export const $411: $.Codec = $ + .taggedUnion("type", { 0: ["register", ["id", $98], ["genesis_head", $104], ["validation_code", $394]], 1: ["force_register", ["who", $0], ["deposit", $6], ["id", $98], ["genesis_head", $104], [ "validation_code", @@ -2899,52 +2910,57 @@ export const $411: $.Codec = $.taggedUnion( + "type", + { + 0: ["force_lease", ["para", $98], ["leaser", $0], ["amount", $6], ["period_begin", $4], [ + "period_count", + $4, + ]], + 1: ["clear_all_leases", ["para", $98]], + 2: ["trigger_onboard", ["para", $98]], }, ) -export const $412: $.Codec = $.taggedUnion("type", { - 0: ["force_lease", ["para", $98], ["leaser", $0], ["amount", $6], ["period_begin", $4], [ - "period_count", - $4, - ]], - 1: ["clear_all_leases", ["para", $98]], - 2: ["trigger_onboard", ["para", $98]], -}) - -export const $414: $.Codec> = $.compact($98) +export const $414: $.Codec> = $.compact($98) -export const $413: $.Codec = $.taggedUnion("type", { - 0: ["new_auction", ["duration", $125], ["lease_period_index", $125]], - 1: ["bid", ["para", $414], ["auction_index", $125], ["first_slot", $125], ["last_slot", $125], [ - "amount", - $58, - ]], - 2: ["cancel_auction"], -}) +export const $413: $.Codec = $.taggedUnion( + "type", + { + 0: ["new_auction", ["duration", $125], ["lease_period_index", $125]], + 1: ["bid", ["para", $414], ["auction_index", $125], ["first_slot", $125], ["last_slot", $125], [ + "amount", + $58, + ]], + 2: ["cancel_auction"], + }, +) export const $419: $.Codec = $.sizedUint8Array(33) -export const $418: $.Codec = $419 +export const $418: $.Codec = $419 -export const $417: $.Codec = $.taggedUnion("type", { +export const $417: $.Codec = $.taggedUnion("type", { 0: ["Ed25519", ["value", $51]], 1: ["Sr25519", ["value", $54]], 2: ["Ecdsa", ["value", $418]], }) -export const $416: $.Codec = $.option($417) +export const $416: $.Codec = $.option($417) -export const $422: $.Codec = $247 +export const $422: $.Codec = $247 -export const $421: $.Codec = $.taggedUnion("type", { +export const $421: $.Codec = $.taggedUnion("type", { 0: ["Ed25519", ["value", $222]], 1: ["Sr25519", ["value", $101]], 2: ["Ecdsa", ["value", $422]], }) -export const $420: $.Codec = $.option($421) +export const $420: $.Codec = $.option($421) -export const $415: $.Codec = $.taggedUnion( +export const $415: $.Codec = $.taggedUnion( "type", { 0: ["create", ["index", $414], ["cap", $58], ["first_period", $125], ["last_period", $125], [ @@ -2965,9 +2981,9 @@ export const $415: $.Codec = $. }, ) -export const $428: $.Codec> = $.array($.deferred(() => $425)) +export const $428: $.Codec> = $.array($.deferred(() => $425)) -export const $427: $.Codec = $.taggedUnion("type", { +export const $427: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["DepositAsset", ["assets", $151], ["dest", $153]], 2: ["DepositReserveAsset", ["assets", $151], ["dest", $153], ["effects", $.deferred(() => $426)]], @@ -2984,13 +3000,13 @@ export const $427: $.Codec = $.taggedUnion("type", { ]], }) -export const $426: $.Codec> = $.array($427) +export const $426: $.Codec> = $.array($427) -export const $429: $.Codec = $.taggedUnion("type", { +export const $429: $.Codec = $.taggedUnion("type", { 0: ["Assets", ["value", $151]], }) -export const $425: $.Codec = $.taggedUnion("type", { +export const $425: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $151], ["effects", $426]], 1: ["ReserveAssetDeposit", ["assets", $151], ["effects", $426]], 2: ["TeleportAsset", ["assets", $151], ["effects", $426]], @@ -3007,9 +3023,9 @@ export const $425: $.Codec = $.taggedUnion("type", { 10: ["RelayedFrom", ["who", $153], ["message", $.deferred(() => $425)]], }) -export const $433: $.Codec> = $.array($.deferred(() => $430)) +export const $433: $.Codec> = $.array($.deferred(() => $430)) -export const $432: $.Codec = $.taggedUnion("type", { +export const $432: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["DepositAsset", ["assets", $145], ["max_assets", $4], ["beneficiary", $122]], 2: ["DepositReserveAsset", ["assets", $145], ["max_assets", $4], ["dest", $122], [ @@ -3029,14 +3045,14 @@ export const $432: $.Codec = $.taggedUnion("type", { ]], }) -export const $431: $.Codec> = $.array($432) +export const $431: $.Codec> = $.array($432) -export const $434: $.Codec = $.taggedUnion("type", { +export const $434: $.Codec = $.taggedUnion("type", { 0: ["Assets", ["value", $133]], 1: ["Version", ["value", $4]], }) -export const $430: $.Codec = $.taggedUnion("type", { +export const $430: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $133], ["effects", $431]], 1: ["ReserveAssetDeposited", ["assets", $133], ["effects", $431]], 2: ["ReceiveTeleportedAsset", ["assets", $133], ["effects", $431]], @@ -3055,15 +3071,15 @@ export const $430: $.Codec = $.taggedUnion("type", { 12: ["UnsubscribeVersion"], }) -export const $424: $.Codec = $.taggedUnion("type", { +export const $424: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $425]], 1: ["V1", ["value", $430]], 2: ["V2", ["value", $130]], }) -export const $439: $.Codec> = $.array($.deferred(() => $436)) +export const $439: $.Codec> = $.array($.deferred(() => $436)) -export const $438: $.Codec = $.taggedUnion("type", { +export const $438: $.Codec = $.taggedUnion("type", { 0: ["Null"], 1: ["DepositAsset", ["assets", $151], ["dest", $153]], 2: ["DepositReserveAsset", ["assets", $151], ["dest", $153], ["effects", $426]], @@ -3077,11 +3093,11 @@ export const $438: $.Codec = $.taggedUnion("type", { ]], }) -export const $437: $.Codec> = $.array($438) +export const $437: $.Codec> = $.array($438) export const $440: $.Codec<{ encoded: Uint8Array }> = $.object(["encoded", $12]) -export const $436: $.Codec = $.taggedUnion("type", { +export const $436: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $151], ["effects", $437]], 1: ["ReserveAssetDeposit", ["assets", $151], ["effects", $437]], 2: ["TeleportAsset", ["assets", $151], ["effects", $437]], @@ -3098,9 +3114,9 @@ export const $436: $.Codec = $.taggedUnion("type", { 10: ["RelayedFrom", ["who", $153], ["message", $.deferred(() => $436)]], }) -export const $444: $.Codec> = $.array($.deferred(() => $441)) +export const $444: $.Codec> = $.array($.deferred(() => $441)) -export const $443: $.Codec = $.taggedUnion("type", { +export const $443: $.Codec = $.taggedUnion("type", { 0: ["Noop"], 1: ["DepositAsset", ["assets", $145], ["max_assets", $4], ["beneficiary", $122]], 2: ["DepositReserveAsset", ["assets", $145], ["max_assets", $4], ["dest", $122], [ @@ -3117,9 +3133,9 @@ export const $443: $.Codec = $.taggedUnion("type", { ]], }) -export const $442: $.Codec> = $.array($443) +export const $442: $.Codec> = $.array($443) -export const $441: $.Codec = $.taggedUnion("type", { +export const $441: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["assets", $133], ["effects", $442]], 1: ["ReserveAssetDeposited", ["assets", $133], ["effects", $442]], 2: ["ReceiveTeleportedAsset", ["assets", $133], ["effects", $442]], @@ -3138,7 +3154,7 @@ export const $441: $.Codec = $.taggedUnion("type", { 12: ["UnsubscribeVersion"], }) -export const $447: $.Codec = $.taggedUnion("type", { +export const $447: $.Codec = $.taggedUnion("type", { 0: ["WithdrawAsset", ["value", $133]], 1: ["ReserveAssetDeposited", ["value", $133]], 2: ["ReceiveTeleportedAsset", ["value", $133]], @@ -3178,17 +3194,17 @@ export const $447: $.Codec = $.taggedUnion("type", { 27: ["UnsubscribeVersion"], }) -export const $446: $.Codec> = $.array($447) +export const $446: $.Codec> = $.array($447) -export const $445: $.Codec> = $446 +export const $445: $.Codec> = $446 -export const $435: $.Codec = $.taggedUnion("type", { +export const $435: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $436]], 1: ["V1", ["value", $441]], 2: ["V2", ["value", $445]], }) -export const $423: $.Codec = $.taggedUnion("type", { +export const $423: $.Codec = $.taggedUnion("type", { 0: ["send", ["dest", $155], ["message", $424]], 1: ["teleport_assets", ["dest", $155], ["beneficiary", $155], ["assets", $150], [ "fee_asset_item", @@ -3213,7 +3229,7 @@ export const $423: $.Codec = $.taggedUnion("type", { ], ["weight_limit", $148]], }) -export const $181: $.Codec = $.taggedUnion("type", { +export const $181: $.Codec = $.taggedUnion("type", { 0: ["System", ["value", $161]], 1: ["Scheduler", ["value", $182]], 10: ["Preimage", ["value", $184]], @@ -3262,9 +3278,9 @@ export const $181: $.Codec = $.taggedUnion("type 99: ["XcmPallet", ["value", $423]], }) -export const $188: $.Codec = C.$null +export const $188: $.Codec = C.$null -export const $301: $.Codec = $.stringUnion({ +export const $301: $.Codec = $.stringUnion({ 1: "Display", 2: "Legal", 4: "Web", @@ -3275,9 +3291,9 @@ export const $301: $.Codec = $.stringUnio 128: "Twitter", }) -export const $384: $.Codec = C.$null +export const $384: $.Codec = C.$null -export const $450: $.Codec = $.stringUnion({ +export const $450: $.Codec = $.stringUnion({ 0: "FailedToSchedule", 1: "NotFound", 2: "TargetBlockNumberInPast", @@ -3285,18 +3301,19 @@ export const $450: $.Codec = $.stringUnion({ 4: "Named", }) -export const $452: $.Codec<[t.sp_core.crypto.AccountId32, t.u128] | undefined> = $.option($69) +export const $452: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128] | undefined> = $ + .option($69) -export const $451: $.Codec = $.taggedUnion("type", { +export const $451: $.Codec = $.taggedUnion("type", { 0: ["Unrequested", ["deposit", $69], ["len", $4]], 1: ["Requested", ["deposit", $452], ["count", $4], ["len", $236]], }) -export const $453: $.Codec<[t.primitive_types.H256, t.u32]> = $.tuple($11, $4) +export const $453: $.Codec<[t.types.primitive_types.H256, t.types.u32]> = $.tuple($11, $4) export const $454: $.Codec = $12 -export const $455: $.Codec = $.stringUnion({ +export const $455: $.Codec = $.stringUnion({ 0: "TooBig", 1: "AlreadyNoted", 2: "NotAuthorized", @@ -3305,58 +3322,69 @@ export const $455: $.Codec = $.stringUnion({ 5: "NotRequested", }) -export const $457: $.Codec<[t.sp_consensus_babe.app.Public, t.u64]> = $.tuple($189, $10) +export const $457: $.Codec<[t.types.sp_consensus_babe.app.Public, t.types.u64]> = $.tuple( + $189, + $10, +) -export const $458: $.Codec> = $.array($457) +export const $458: $.Codec> = $.array( + $457, +) -export const $456: $.Codec> = $458 +export const $456: $.Codec> = $458 export const $460: $.Codec> = $.array($1) export const $459: $.Codec> = $460 -export const $463: $.Codec = $.object( +export const $463: $.Codec = $.object( ["authority_index", $4], ["slot", $190], ["vrf_output", $1], ["vrf_proof", $102], ) -export const $464: $.Codec = $.object([ +export const $464: $.Codec = $.object([ "authority_index", $4, ], ["slot", $190]) -export const $465: $.Codec = $.object( +export const $465: $.Codec = $.object( ["authority_index", $4], ["slot", $190], ["vrf_output", $1], ["vrf_proof", $102], ) -export const $462: $.Codec = $.taggedUnion("type", { +export const $462: $.Codec = $.taggedUnion("type", { 1: ["Primary", ["value", $463]], 2: ["SecondaryPlain", ["value", $464]], 3: ["SecondaryVRF", ["value", $465]], }) -export const $461: $.Codec = $.option($462) +export const $461: $.Codec = $.option( + $462, +) -export const $466: $.Codec = $.object(["c", $193], [ - "allowed_slots", - $194, -]) +export const $466: $.Codec = $.object( + ["c", $193], + ["allowed_slots", $194], +) -export const $467: $.Codec = $.stringUnion({ +export const $467: $.Codec = $.stringUnion({ 0: "InvalidEquivocationProof", 1: "InvalidKeyOwnershipProof", 2: "DuplicateOffenceReport", 3: "InvalidConfiguration", }) -export const $468: $.Codec<[t.sp_core.crypto.AccountId32, t.u128, boolean]> = $.tuple($0, $6, $43) +export const $468: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u128, boolean]> = $.tuple( + $0, + $6, + $43, +) -export const $469: $.Codec = $.stringUnion({ +export const $469: $.Codec = $.stringUnion({ 0: "NotAssigned", 1: "NotOwner", 2: "InUse", @@ -3364,33 +3392,36 @@ export const $469: $.Codec = $.stringUnion({ 4: "Permanent", }) -export const $472: $.Codec = $.stringUnion({ +export const $472: $.Codec = $.stringUnion({ 0: "Fee", 1: "Misc", 2: "All", }) -export const $471: $.Codec = $.object(["id", $139], ["amount", $6], [ - "reasons", - $472, -]) +export const $471: $.Codec = $.object(["id", $139], [ + "amount", + $6, +], ["reasons", $472]) -export const $473: $.Codec> = $.array($471) +export const $473: $.Codec> = $.array($471) -export const $470: $.Codec> = $473 +export const $470: $.Codec> = $473 -export const $475: $.Codec = $.object(["id", $139], ["amount", $6]) +export const $475: $.Codec = $.object(["id", $139], [ + "amount", + $6, +]) -export const $476: $.Codec> = $.array($475) +export const $476: $.Codec> = $.array($475) -export const $474: $.Codec> = $476 +export const $474: $.Codec> = $476 -export const $477: $.Codec = $.stringUnion({ +export const $477: $.Codec = $.stringUnion({ 0: "V1_0_0", 1: "V2_0_0", }) -export const $478: $.Codec = $.stringUnion({ +export const $478: $.Codec = $.stringUnion({ 0: "VestingBalance", 1: "LiquidityRestrictions", 2: "InsufficientBalance", @@ -3401,23 +3432,23 @@ export const $478: $.Codec = $.stringUnion({ 7: "TooManyReserves", }) -export const $479: $.Codec = $6 +export const $479: $.Codec = $6 -export const $480: $.Codec = $.stringUnion({ +export const $480: $.Codec = $.stringUnion({ 0: "V1Ancient", 1: "V2", }) -export const $482: $.Codec = $.taggedUnion("type", { +export const $482: $.Codec = $.taggedUnion("type", { 0: ["InclusionHeight", ["value", $4]], 1: ["Uncle", ["value", $.tuple($11, $92)]], }) -export const $483: $.Codec> = $.array($482) +export const $483: $.Codec> = $.array($482) -export const $481: $.Codec> = $483 +export const $481: $.Codec> = $483 -export const $484: $.Codec = $.stringUnion({ +export const $484: $.Codec = $.stringUnion({ 0: "InvalidUncleParent", 1: "UnclesAlreadySet", 2: "TooManyUncles", @@ -3427,15 +3458,18 @@ export const $484: $.Codec = $.stringUnion({ 6: "OldUncle", }) -export const $487: $.Codec = $.object(["value", $58], ["era", $125]) +export const $487: $.Codec = $.object(["value", $58], [ + "era", + $125, +]) -export const $488: $.Codec> = $.array($487) +export const $488: $.Codec> = $.array($487) -export const $486: $.Codec> = $488 +export const $486: $.Codec> = $488 -export const $489: $.Codec> = $94 +export const $489: $.Codec> = $94 -export const $485: $.Codec = $.object( +export const $485: $.Codec = $.object( ["stash", $0], ["total", $58], ["active", $58], @@ -3443,41 +3477,43 @@ export const $485: $.Codec = $.object( ["claimed_rewards", $489], ) -export const $491: $.Codec> = $206 +export const $491: $.Codec> = $206 -export const $490: $.Codec = $.object(["targets", $491], [ +export const $490: $.Codec = $.object(["targets", $491], [ "submitted_in", $4, ], ["suppressed", $43]) -export const $493: $.Codec = $.option($10) +export const $493: $.Codec = $.option($10) -export const $492: $.Codec = $.object(["index", $4], [ +export const $492: $.Codec = $.object(["index", $4], [ "start", $493, ]) -export const $494: $.Codec<[t.u32, t.sp_core.crypto.AccountId32]> = $.tuple($4, $0) +export const $494: $.Codec<[t.types.u32, t.types.sp_core.crypto.AccountId32]> = $.tuple($4, $0) -export const $496: $.Codec> = $.map($0, $4) +export const $496: $.Codec> = $.map($0, $4) -export const $495: $.Codec = $.object(["total", $4], [ +export const $495: $.Codec = $.object(["total", $4], [ "individual", $496, ]) -export const $498: $.Codec<[t.sp_core.crypto.AccountId32, t.u32]> = $.tuple($0, $4) +export const $498: $.Codec<[t.types.sp_core.crypto.AccountId32, t.types.u32]> = $.tuple($0, $4) -export const $497: $.Codec> = $.array($498) +export const $497: $.Codec> = $.array( + $498, +) -export const $499: $.Codec = $.stringUnion({ +export const $499: $.Codec = $.stringUnion({ 0: "NotForcing", 1: "ForceNew", 2: "ForceNone", 3: "ForceAlways", }) -export const $501: $.Codec = $.object( +export const $501: $.Codec = $.object( ["validator", $0], ["own", $6], ["others", $68], @@ -3485,27 +3521,30 @@ export const $501: $.Codec = $.object( ["payout", $6], ) -export const $500: $.Codec> = $.array($501) +export const $500: $.Codec> = $.array($501) -export const $502: $.Codec<[t.sp_arithmetic.per_things.Perbill, t.u128]> = $.tuple($42, $6) +export const $502: $.Codec<[t.types.sp_arithmetic.per_things.Perbill, t.types.u128]> = $.tuple( + $42, + $6, +) -export const $503: $.Codec = $.object( +export const $503: $.Codec = $.object( ["span_index", $4], ["last_start", $4], ["last_nonzero_slash", $4], ["prior", $94], ) -export const $504: $.Codec = $.object(["slashed", $6], [ +export const $504: $.Codec = $.object(["slashed", $6], [ "paid_out", $6, ]) -export const $506: $.Codec<[t.u32, boolean]> = $.tuple($4, $43) +export const $506: $.Codec<[t.types.u32, boolean]> = $.tuple($4, $43) -export const $505: $.Codec> = $.array($506) +export const $505: $.Codec> = $.array($506) -export const $507: $.Codec = $.stringUnion({ +export const $507: $.Codec = $.stringUnion({ 0: "V1_0_0Ancient", 1: "V2_0_0", 2: "V3_0_0", @@ -3520,7 +3559,7 @@ export const $507: $.Codec = $.stringUnion({ 11: "V12_0_0", }) -export const $508: $.Codec = $.stringUnion({ +export const $508: $.Codec = $.stringUnion({ 0: "NotController", 1: "NotStash", 2: "AlreadyBonded", @@ -3548,24 +3587,26 @@ export const $508: $.Codec = $.stringUnion 24: "BoundNotMet", }) -export const $509: $.Codec = $.object(["offender", $56], [ - "reporters", - $206, -]) +export const $509: $.Codec = $.object( + ["offender", $56], + ["reporters", $206], +) export const $510: $.Codec<[Uint8Array, Uint8Array]> = $.tuple($45, $12) -export const $512: $.Codec<[t.sp_core.crypto.AccountId32, t.polkadot_runtime.SessionKeys]> = $ - .tuple($0, $212) +export const $512: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_runtime.SessionKeys] +> = $.tuple($0, $212) -export const $511: $.Codec> = - $.array($512) +export const $511: $.Codec< + Array<[t.types.sp_core.crypto.AccountId32, t.types.polkadot_runtime.SessionKeys]> +> = $.array($512) -export const $514: $.Codec = $16 +export const $514: $.Codec = $16 -export const $513: $.Codec<[t.sp_core.crypto.KeyTypeId, Uint8Array]> = $.tuple($514, $12) +export const $513: $.Codec<[t.types.sp_core.crypto.KeyTypeId, Uint8Array]> = $.tuple($514, $12) -export const $515: $.Codec = $.stringUnion({ +export const $515: $.Codec = $.stringUnion({ 0: "InvalidProof", 1: "NoAssociatedValidatorId", 2: "DuplicatedKey", @@ -3573,23 +3614,23 @@ export const $515: $.Codec = $.stringUnion({ 4: "NoAccount", }) -export const $516: $.Codec = $.taggedUnion("type", { +export const $516: $.Codec = $.taggedUnion("type", { 0: ["Live"], 1: ["PendingPause", ["scheduled_at", $4], ["delay", $4]], 2: ["Paused"], 3: ["PendingResume", ["scheduled_at", $4], ["delay", $4]], }) -export const $518: $.Codec> = $48 +export const $518: $.Codec> = $48 -export const $517: $.Codec = $.object( +export const $517: $.Codec = $.object( ["scheduled_at", $4], ["delay", $4], ["next_authorities", $518], ["forced", $236], ) -export const $519: $.Codec = $.stringUnion({ +export const $519: $.Codec = $.stringUnion({ 0: "PauseFailed", 1: "ResumeFailed", 2: "ChangePending", @@ -3599,9 +3640,11 @@ export const $519: $.Codec = $.stringUnion({ 6: "DuplicateOffenceReport", }) -export const $521: $.Codec> = $.array($53) +export const $521: $.Codec> = $.array( + $53, +) -export const $520: $.Codec> = $521 +export const $520: $.Codec> = $521 export const $524: $.Codec = $12 @@ -3609,40 +3652,57 @@ export const $526: $.Codec> = $.array($524) export const $525: $.Codec> = $526 -export const $523: $.Codec = $.object([ +export const $523: $.Codec = $.object([ "peer_id", $524, ], ["external_addresses", $525]) -export const $522: $.Codec = $.lenPrefixed($523) +export const $522: $.Codec = $.lenPrefixed( + $523, +) -export const $527: $.Codec = $.stringUnion({ +export const $527: $.Codec = $.stringUnion({ 0: "InvalidKey", 1: "DuplicatedHeartbeat", }) export const $529: $.Codec< - [t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32] + [t.types.u32, t.types.frame_support.traits.preimages.Bounded, t.types.sp_core.crypto.AccountId32] > = $.tuple($4, $180, $0) export const $530: $.Codec< - Array<[t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32]> + Array< + [ + t.types.u32, + t.types.frame_support.traits.preimages.Bounded, + t.types.sp_core.crypto.AccountId32, + ] + > > = $.array($529) export const $528: $.Codec< - Array<[t.u32, t.frame_support.traits.preimages.Bounded, t.sp_core.crypto.AccountId32]> + Array< + [ + t.types.u32, + t.types.frame_support.traits.preimages.Bounded, + t.types.sp_core.crypto.AccountId32, + ] + > > = $530 -export const $532: $.Codec> = $206 +export const $532: $.Codec> = $206 -export const $531: $.Codec<[Array, t.u128]> = $.tuple($532, $6) +export const $531: $.Codec<[Array, t.types.u128]> = $.tuple( + $532, + $6, +) -export const $535: $.Codec = $.object(["ayes", $6], ["nays", $6], [ - "turnout", +export const $535: $.Codec = $.object(["ayes", $6], [ + "nays", $6, -]) +], ["turnout", $6]) -export const $534: $.Codec = $.object( +export const $534: $.Codec = $.object( ["end", $4], ["proposal", $180], ["threshold", $62], @@ -3650,25 +3710,29 @@ export const $534: $.Codec = $.object ["tally", $535], ) -export const $533: $.Codec = $.taggedUnion("type", { +export const $533: $.Codec = $.taggedUnion("type", { 0: ["Ongoing", ["value", $534]], 1: ["Finished", ["approved", $43], ["end", $4]], }) -export const $538: $.Codec<[t.u32, t.pallet_democracy.vote.AccountVote]> = $.tuple($4, $63) +export const $538: $.Codec<[t.types.u32, t.types.pallet_democracy.vote.AccountVote]> = $.tuple( + $4, + $63, +) -export const $539: $.Codec> = $.array($538) +export const $539: $.Codec> = $ + .array($538) -export const $537: $.Codec> = $539 +export const $537: $.Codec> = $539 -export const $540: $.Codec = $.object(["votes", $6], [ +export const $540: $.Codec = $.object(["votes", $6], [ "capital", $6, ]) -export const $541: $.Codec = $.tuple($4, $6) +export const $541: $.Codec = $.tuple($4, $6) -export const $536: $.Codec = $.taggedUnion("type", { +export const $536: $.Codec = $.taggedUnion("type", { 0: ["Direct", ["votes", $537], ["delegations", $540], ["prior", $541]], 1: ["Delegating", ["balance", $6], ["target", $0], ["conviction", $235], ["delegations", $540], [ "prior", @@ -3677,12 +3741,18 @@ export const $536: $.Codec = $.taggedUnion("type }) export const $542: $.Codec< - [t.frame_support.traits.preimages.Bounded, t.pallet_democracy.vote_threshold.VoteThreshold] + [ + t.types.frame_support.traits.preimages.Bounded, + t.types.pallet_democracy.vote_threshold.VoteThreshold, + ] > = $.tuple($180, $62) -export const $543: $.Codec<[t.u32, Array]> = $.tuple($4, $532) +export const $543: $.Codec<[t.types.u32, Array]> = $.tuple( + $4, + $532, +) -export const $544: $.Codec = $.stringUnion({ +export const $544: $.Codec = $.stringUnion({ 0: "ValueLow", 1: "ProposalMissing", 2: "AlreadyCanceled", @@ -3708,9 +3778,9 @@ export const $544: $.Codec = $.stringUnion({ 22: "VotingPeriodLow", }) -export const $545: $.Codec> = $157 +export const $545: $.Codec> = $157 -export const $546: $.Codec = $.object( +export const $546: $.Codec = $.object( ["index", $4], ["threshold", $4], ["ayes", $206], @@ -3718,7 +3788,7 @@ export const $546: $.Codec = $.object( ["end", $4], ) -export const $547: $.Codec = $.stringUnion({ +export const $547: $.Codec = $.stringUnion({ 0: "NotMember", 1: "DuplicateProposal", 2: "ProposalMissing", @@ -3731,9 +3801,9 @@ export const $547: $.Codec = $.stringUnion({ 9: "WrongProposalLength", }) -export const $548: $.Codec> = $157 +export const $548: $.Codec> = $157 -export const $549: $.Codec = $.stringUnion({ +export const $549: $.Codec = $.stringUnion({ 0: "NotMember", 1: "DuplicateProposal", 2: "ProposalMissing", @@ -3746,19 +3816,19 @@ export const $549: $.Codec = $.stringUnion({ 9: "WrongProposalLength", }) -export const $551: $.Codec = $.object(["who", $0], [ +export const $551: $.Codec = $.object(["who", $0], [ "stake", $6, ], ["deposit", $6]) -export const $550: $.Codec> = $.array($551) +export const $550: $.Codec> = $.array($551) -export const $552: $.Codec = $.object(["votes", $206], [ +export const $552: $.Codec = $.object(["votes", $206], [ "stake", $6, ], ["deposit", $6]) -export const $553: $.Codec = $.stringUnion({ +export const $553: $.Codec = $.stringUnion({ 0: "UnableToVote", 1: "NoVotes", 2: "TooManyVotes", @@ -3778,28 +3848,30 @@ export const $553: $.Codec = $.stringU 16: "InvalidReplacement", }) -export const $554: $.Codec> = $206 +export const $554: $.Codec> = $206 -export const $555: $.Codec = $.stringUnion({ +export const $555: $.Codec = $.stringUnion({ 0: "AlreadyMember", 1: "NotMember", 2: "TooManyMembers", }) -export const $556: $.Codec = $.object(["proposer", $0], ["value", $6], [ - "beneficiary", - $0, -], ["bond", $6]) +export const $556: $.Codec = $.object( + ["proposer", $0], + ["value", $6], + ["beneficiary", $0], + ["bond", $6], +) -export const $557: $.Codec> = $94 +export const $557: $.Codec> = $94 -export const $558: $.Codec = $4 +export const $558: $.Codec = $4 -export const $559: $.Codec = $.option($6) +export const $559: $.Codec = $.option($6) -export const $560: $.Codec = $139 +export const $560: $.Codec = $139 -export const $561: $.Codec = $.stringUnion({ +export const $561: $.Codec = $.stringUnion({ 0: "InsufficientProposersBalance", 1: "InvalidIndex", 2: "TooManyApprovals", @@ -3807,7 +3879,7 @@ export const $561: $.Codec = $.stringUnion({ 4: "ProposalNotApproved", }) -export const $562: $.Codec = $.stringUnion({ +export const $562: $.Codec = $.stringUnion({ 0: "InvalidEthereumSignature", 1: "SignerHasNoClaim", 2: "SenderHasNoClaim", @@ -3816,13 +3888,13 @@ export const $562: $.Codec = $.st 5: "VestedBalanceExists", }) -export const $564: $.Codec> = $.array($253) +export const $564: $.Codec> = $.array($253) -export const $563: $.Codec> = $564 +export const $563: $.Codec> = $564 -export const $565: $.Codec = $.stringUnion({ 0: "V0", 1: "V1" }) +export const $565: $.Codec = $.stringUnion({ 0: "V0", 1: "V1" }) -export const $566: $.Codec = $.stringUnion({ +export const $566: $.Codec = $.stringUnion({ 0: "NotVesting", 1: "AtMaxVestingSchedules", 2: "AmountLow", @@ -3830,37 +3902,50 @@ export const $566: $.Codec = $.stringUnion({ 4: "InvalidScheduleParams", }) -export const $567: $.Codec = $.stringUnion({ 0: "TooManyCalls" }) - -export const $570: $.Codec<[t.u32, t.pallet_identity.types.Judgement]> = $.tuple($4, $302) +export const $567: $.Codec = $.stringUnion({ + 0: "TooManyCalls", +}) -export const $571: $.Codec> = $.array($570) +export const $570: $.Codec<[t.types.u32, t.types.pallet_identity.types.Judgement]> = $.tuple( + $4, + $302, +) -export const $569: $.Codec> = $571 +export const $571: $.Codec> = $.array( + $570, +) -export const $568: $.Codec = $.object(["judgements", $569], [ - "deposit", - $6, -], ["info", $264]) +export const $569: $.Codec> = $571 -export const $573: $.Codec> = $206 +export const $568: $.Codec = $.object( + ["judgements", $569], + ["deposit", $6], + ["info", $264], +) -export const $572: $.Codec<[t.u128, Array]> = $.tuple($6, $573) +export const $573: $.Codec> = $206 -export const $576: $.Codec = $.object(["account", $0], [ - "fee", +export const $572: $.Codec<[t.types.u128, Array]> = $.tuple( $6, -], ["fields", $300]) + $573, +) -export const $575: $.Codec = $.option($576) +export const $576: $.Codec = $.object( + ["account", $0], + ["fee", $6], + ["fields", $300], +) -export const $577: $.Codec> = $.array( - $575, +export const $575: $.Codec = $.option( + $576, ) -export const $574: $.Codec> = $577 +export const $577: $.Codec> = $ + .array($575) + +export const $574: $.Codec> = $577 -export const $578: $.Codec = $.stringUnion({ +export const $578: $.Codec = $.stringUnion({ 0: "TooManySubAccounts", 1: "NotFound", 2: "NotNamed", @@ -3880,30 +3965,35 @@ export const $578: $.Codec = $.stringUnion({ 16: "JudgementForDifferentIdentity", }) -export const $581: $.Codec = $.object(["delegate", $0], [ +export const $581: $.Codec = $.object(["delegate", $0], [ "proxy_type", $79, ], ["delay", $4]) -export const $582: $.Codec> = $.array($581) - -export const $580: $.Codec> = $582 +export const $582: $.Codec> = $.array($581) -export const $579: $.Codec<[Array, t.u128]> = $.tuple($580, $6) +export const $580: $.Codec> = $582 -export const $585: $.Codec = $.object( - ["real", $0], - ["call_hash", $11], - ["height", $4], +export const $579: $.Codec<[Array, t.types.u128]> = $.tuple( + $580, + $6, ) -export const $586: $.Codec> = $.array($585) +export const $585: $.Codec = $.object(["real", $0], [ + "call_hash", + $11, +], ["height", $4]) + +export const $586: $.Codec> = $.array($585) -export const $584: $.Codec> = $586 +export const $584: $.Codec> = $586 -export const $583: $.Codec<[Array, t.u128]> = $.tuple($584, $6) +export const $583: $.Codec<[Array, t.types.u128]> = $.tuple( + $584, + $6, +) -export const $587: $.Codec = $.stringUnion({ +export const $587: $.Codec = $.stringUnion({ 0: "TooMany", 1: "NotFound", 2: "NotProxy", @@ -3914,14 +4004,16 @@ export const $587: $.Codec = $.stringUnion({ 7: "NoSelfProxy", }) -export const $588: $.Codec<[t.sp_core.crypto.AccountId32, Uint8Array]> = $.tuple($0, $1) +export const $588: $.Codec<[t.types.sp_core.crypto.AccountId32, Uint8Array]> = $.tuple($0, $1) -export const $589: $.Codec = $.object(["when", $82], ["deposit", $6], [ - "depositor", - $0, -], ["approvals", $206]) +export const $589: $.Codec = $.object( + ["when", $82], + ["deposit", $6], + ["depositor", $0], + ["approvals", $206], +) -export const $590: $.Codec = $.stringUnion({ +export const $590: $.Codec = $.stringUnion({ 0: "MinimumThreshold", 1: "AlreadyApproved", 2: "NoApprovalsNeeded", @@ -3938,7 +4030,7 @@ export const $590: $.Codec = $.stringUnion({ 13: "AlreadyStored", }) -export const $592: $.Codec = $.taggedUnion("type", { +export const $592: $.Codec = $.taggedUnion("type", { 0: ["Proposed"], 1: ["Approved"], 2: ["Funded"], @@ -3947,7 +4039,7 @@ export const $592: $.Codec = $.taggedUnion("type 5: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], }) -export const $591: $.Codec = $.object( +export const $591: $.Codec = $.object( ["proposer", $0], ["value", $6], ["fee", $6], @@ -3958,7 +4050,7 @@ export const $591: $.Codec = $.object( export const $593: $.Codec = $12 -export const $594: $.Codec = $.stringUnion({ +export const $594: $.Codec = $.stringUnion({ 0: "InsufficientProposersBalance", 1: "InvalidIndex", 2: "ReasonTooBig", @@ -3972,14 +4064,17 @@ export const $594: $.Codec = $.stringUnion({ 10: "TooManyQueued", }) -export const $596: $.Codec = $.taggedUnion("type", { - 0: ["Added"], - 1: ["CuratorProposed", ["curator", $0]], - 2: ["Active", ["curator", $0]], - 3: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], -}) +export const $596: $.Codec = $.taggedUnion( + "type", + { + 0: ["Added"], + 1: ["CuratorProposed", ["curator", $0]], + 2: ["Active", ["curator", $0]], + 3: ["PendingPayout", ["curator", $0], ["beneficiary", $0], ["unlock_at", $4]], + }, +) -export const $595: $.Codec = $.object( +export const $595: $.Codec = $.object( ["parent_bounty", $4], ["value", $6], ["fee", $6], @@ -3987,13 +4082,13 @@ export const $595: $.Codec = $.object( ["status", $596], ) -export const $597: $.Codec = $.stringUnion({ +export const $597: $.Codec = $.stringUnion({ 0: "ParentBountyNotActive", 1: "InsufficientBountyBalance", 2: "TooManyChildBounties", }) -export const $598: $.Codec = $.object( +export const $598: $.Codec = $.object( ["reason", $11], ["who", $0], ["finder", $0], @@ -4003,7 +4098,7 @@ export const $598: $.Codec = $.object( ["finders_fee", $43], ) -export const $599: $.Codec = $.stringUnion({ +export const $599: $.Codec = $.stringUnion({ 0: "ReasonTooBig", 1: "AlreadyKnown", 2: "UnknownTip", @@ -4012,61 +4107,70 @@ export const $599: $.Codec = $.stringUnion({ 5: "Premature", }) -export const $601: $.Codec<[boolean, t.u32]> = $.tuple($43, $4) +export const $601: $.Codec<[boolean, t.types.u32]> = $.tuple($43, $4) -export const $600: $.Codec = $.taggedUnion("type", { - 0: ["Off"], - 1: ["Signed"], - 2: ["Unsigned", ["value", $601]], - 3: ["Emergency"], -}) +export const $600: $.Codec = $.taggedUnion( + "type", + { 0: ["Off"], 1: ["Signed"], 2: ["Unsigned", ["value", $601]], 3: ["Emergency"] }, +) -export const $602: $.Codec = $.object( +export const $602: $.Codec = $.object( ["supports", $365], ["score", $88], ["compute", $87], ) export const $605: $.Codec< - [t.sp_core.crypto.AccountId32, t.u64, Array] + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] > = $.tuple($0, $10, $491) export const $604: $.Codec< - Array<[t.sp_core.crypto.AccountId32, t.u64, Array]> + Array< + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] + > > = $.array($605) -export const $603: $.Codec = $.object([ +export const $603: $.Codec = $.object([ "voters", $604, ], ["targets", $206]) -export const $607: $.Codec> = $.map($88, $4) +export const $607: $.Codec> = $.map( + $88, + $4, +) -export const $606: $.Codec> = $607 +export const $606: $.Codec> = $607 -export const $609: $.Codec<[t.sp_npos_elections.ElectionScore, t.u32]> = $.tuple($88, $4) +export const $609: $.Codec<[t.types.sp_npos_elections.ElectionScore, t.types.u32]> = $.tuple( + $88, + $4, +) -export const $608: $.Codec> = $.array($609) +export const $608: $.Codec> = $.array( + $609, +) -export const $610: $.Codec = $ +export const $610: $.Codec = $ .object(["who", $0], ["deposit", $6], ["raw_solution", $311], ["call_fee", $6]) -export const $611: $.Codec = $.stringUnion({ - 0: "PreDispatchEarlySubmission", - 1: "PreDispatchWrongWinnerCount", - 2: "PreDispatchWeakSubmission", - 3: "SignedQueueFull", - 4: "SignedCannotPayDeposit", - 5: "SignedInvalidWitness", - 6: "SignedTooMuchWeight", - 7: "OcwCallWrongEra", - 8: "MissingSnapshotMetadata", - 9: "InvalidSubmissionIndex", - 10: "CallNotAllowed", - 11: "FallbackFailed", -}) - -export const $612: $.Codec = $.object( +export const $611: $.Codec = $ + .stringUnion({ + 0: "PreDispatchEarlySubmission", + 1: "PreDispatchWrongWinnerCount", + 2: "PreDispatchWeakSubmission", + 3: "SignedQueueFull", + 4: "SignedCannotPayDeposit", + 5: "SignedInvalidWitness", + 6: "SignedTooMuchWeight", + 7: "OcwCallWrongEra", + 8: "MissingSnapshotMetadata", + 9: "InvalidSubmissionIndex", + 10: "CallNotAllowed", + 11: "FallbackFailed", + }) + +export const $612: $.Codec = $.object( ["id", $0], ["prev", $92], ["next", $92], @@ -4074,77 +4178,87 @@ export const $612: $.Codec = $.object( ["score", $10], ) -export const $613: $.Codec = $.object(["head", $92], ["tail", $92]) +export const $613: $.Codec = $.object(["head", $92], [ + "tail", + $92, +]) -export const $614: $.Codec> = $.array($10) +export const $614: $.Codec> = $.array($10) -export const $616: $.Codec = $.stringUnion({ +export const $616: $.Codec = $.stringUnion({ 0: "Duplicate", 1: "NotHeavier", 2: "NotInSameBag", 3: "NodeNotFound", }) -export const $615: $.Codec = $.taggedUnion("type", { +export const $615: $.Codec = $.taggedUnion("type", { 0: ["List", ["value", $616]], }) -export const $619: $.Codec> = $.map($4, $6) +export const $619: $.Codec> = $.map($4, $6) -export const $618: $.Codec> = $619 +export const $618: $.Codec> = $619 -export const $617: $.Codec = $.object( +export const $617: $.Codec = $.object( ["pool_id", $4], ["points", $6], ["last_recorded_reward_counter", $479], ["unbonding_eras", $618], ) -export const $621: $.Codec<[t.u32, t.u128]> = $.tuple($4, $6) +export const $621: $.Codec<[t.types.u32, t.types.u128]> = $.tuple($4, $6) -export const $620: $.Codec> = $.array($621) +export const $620: $.Codec> = $.array($621) -export const $623: $.Codec = $.object( +export const $623: $.Codec = $.object( ["depositor", $0], ["root", $92], ["nominator", $92], ["state_toggler", $92], ) -export const $622: $.Codec = $.object( +export const $622: $.Codec = $.object( ["points", $6], ["state", $91], ["member_counter", $4], ["roles", $623], ) -export const $624: $.Codec = $.object( +export const $624: $.Codec = $.object( ["last_recorded_reward_counter", $479], ["last_recorded_total_payouts", $6], ["total_rewards_claimed", $6], ) -export const $626: $.Codec = $.object(["points", $6], [ +export const $626: $.Codec = $.object(["points", $6], [ "balance", $6, ]) -export const $628: $.Codec> = $.map($4, $626) +export const $628: $.Codec> = $.map( + $4, + $626, +) -export const $627: $.Codec> = $628 +export const $627: $.Codec> = $628 -export const $625: $.Codec = $.object(["no_era", $626], [ +export const $625: $.Codec = $.object(["no_era", $626], [ "with_era", $627, ]) -export const $630: $.Codec<[t.u32, t.pallet_nomination_pools.UnbondPool]> = $.tuple($4, $626) +export const $630: $.Codec<[t.types.u32, t.types.pallet_nomination_pools.UnbondPool]> = $.tuple( + $4, + $626, +) -export const $629: $.Codec> = $.array($630) +export const $629: $.Codec> = $ + .array($630) export const $631: $.Codec = $12 -export const $633: $.Codec = $.stringUnion({ +export const $633: $.Codec = $.stringUnion({ 0: "NotEnoughSpaceInUnbondPool", 1: "PoolNotFound", 2: "RewardPoolNotFound", @@ -4152,7 +4266,7 @@ export const $633: $.Codec = $. 4: "BondedStashKilledPrematurely", }) -export const $632: $.Codec = $.taggedUnion("type", { +export const $632: $.Codec = $.taggedUnion("type", { 0: ["PoolNotFound"], 1: ["PoolMemberNotFound"], 2: ["RewardPoolNotFound"], @@ -4176,16 +4290,17 @@ export const $632: $.Codec = $.taggedUni 20: ["PartialUnbondNotAllowedPermissionlessly"], }) -export const $636: $.Codec> = $94 +export const $636: $.Codec> = $94 -export const $634: $.Codec = $.object(["stash", $0], [ - "checked", - $636, -], ["deposit", $6]) +export const $634: $.Codec = $.object( + ["stash", $0], + ["checked", $636], + ["deposit", $6], +) -export const $635: $.Codec = C.$null +export const $635: $.Codec = C.$null -export const $637: $.Codec = $.stringUnion({ +export const $637: $.Codec = $.stringUnion({ 0: "NotController", 1: "AlreadyQueued", 2: "NotFullyBonded", @@ -4194,7 +4309,7 @@ export const $637: $.Codec = $.stringUnion({ 5: "CallNotAllowed", }) -export const $638: $.Codec = $ +export const $638: $.Codec = $ .object( ["max_code_size", $4], ["max_head_data_size", $4], @@ -4241,100 +4356,122 @@ export const $638: $.Codec = - $.tuple($4, $638) +export const $640: $.Codec< + [t.types.u32, t.types.polkadot_runtime_parachains.configuration.HostConfiguration] +> = $.tuple($4, $638) export const $639: $.Codec< - Array<[t.u32, t.polkadot_runtime_parachains.configuration.HostConfiguration]> + Array<[t.types.u32, t.types.polkadot_runtime_parachains.configuration.HostConfiguration]> > = $.array($640) -export const $641: $.Codec = $ +export const $641: $.Codec = $ .stringUnion({ 0: "InvalidNewValue" }) -export const $642: $.Codec> = $.array($385) +export const $642: $.Codec> = $.array($385) -export const $643: $.Codec> = $.array($213) +export const $643: $.Codec> = $.array( + $213, +) -export const $644: $.Codec = $ - .object(["bitfield", $382], ["submitted_at", $4]) +export const $644: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord +> = $.object(["bitfield", $382], ["submitted_at", $4]) -export const $645: $.Codec = $ - .object( - ["core", $105], - ["hash", $114], - ["descriptor", $97], - ["availability_votes", $383], - ["backers", $383], - ["relay_parent_number", $4], - ["backed_in_number", $4], - ["backing_group", $106], - ) +export const $645: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability +> = $.object( + ["core", $105], + ["hash", $114], + ["descriptor", $97], + ["availability_votes", $383], + ["backers", $383], + ["relay_parent_number", $4], + ["backed_in_number", $4], + ["backing_group", $106], +) -export const $646: $.Codec = $.stringUnion({ - 0: "UnsortedOrDuplicateValidatorIndices", - 1: "UnsortedOrDuplicateDisputeStatementSet", - 2: "UnsortedOrDuplicateBackedCandidates", - 3: "UnexpectedRelayParent", - 4: "WrongBitfieldSize", - 5: "BitfieldAllZeros", - 6: "BitfieldDuplicateOrUnordered", - 7: "ValidatorIndexOutOfBounds", - 8: "InvalidBitfieldSignature", - 9: "UnscheduledCandidate", - 10: "CandidateScheduledBeforeParaFree", - 11: "WrongCollator", - 12: "ScheduledOutOfOrder", - 13: "HeadDataTooLarge", - 14: "PrematureCodeUpgrade", - 15: "NewCodeTooLarge", - 16: "CandidateNotInParentContext", - 17: "InvalidGroupIndex", - 18: "InsufficientBacking", - 19: "InvalidBacking", - 20: "NotCollatorSigned", - 21: "ValidationDataHashMismatch", - 22: "IncorrectDownwardMessageHandling", - 23: "InvalidUpwardMessages", - 24: "HrmpWatermarkMishandling", - 25: "InvalidOutboundHrmp", - 26: "InvalidValidationCodeHash", - 27: "ParaHeadMismatch", - 28: "BitfieldReferencesFreedCore", -}) +export const $646: $.Codec = $ + .stringUnion({ + 0: "UnsortedOrDuplicateValidatorIndices", + 1: "UnsortedOrDuplicateDisputeStatementSet", + 2: "UnsortedOrDuplicateBackedCandidates", + 3: "UnexpectedRelayParent", + 4: "WrongBitfieldSize", + 5: "BitfieldAllZeros", + 6: "BitfieldDuplicateOrUnordered", + 7: "ValidatorIndexOutOfBounds", + 8: "InvalidBitfieldSignature", + 9: "UnscheduledCandidate", + 10: "CandidateScheduledBeforeParaFree", + 11: "WrongCollator", + 12: "ScheduledOutOfOrder", + 13: "HeadDataTooLarge", + 14: "PrematureCodeUpgrade", + 15: "NewCodeTooLarge", + 16: "CandidateNotInParentContext", + 17: "InvalidGroupIndex", + 18: "InsufficientBacking", + 19: "InvalidBacking", + 20: "NotCollatorSigned", + 21: "ValidationDataHashMismatch", + 22: "IncorrectDownwardMessageHandling", + 23: "InvalidUpwardMessages", + 24: "HrmpWatermarkMishandling", + 25: "InvalidOutboundHrmp", + 26: "InvalidValidationCodeHash", + 27: "ParaHeadMismatch", + 28: "BitfieldReferencesFreedCore", + }) export const $651: $.Codec< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] > = $.tuple($385, $396) export const $650: $.Codec< - Array<[t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation]> + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + > > = $.array($651) export const $649: $.Codec< [ - t.polkadot_primitives.v2.CandidateReceipt, - Array<[t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation]>, + t.types.polkadot_primitives.v2.CandidateReceipt, + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + >, ] > = $.tuple($96, $650) export const $648: $.Codec< Array< [ - t.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_primitives.v2.CandidateReceipt, Array< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] >, ] > > = $.array($649) -export const $647: $.Codec = $.object( +export const $647: $.Codec = $.object( ["session", $4], ["backing_validators_per_candidate", $648], ["disputes", $397], ) -export const $652: $.Codec = $ +export const $652: $.Codec = $ .stringUnion({ 0: "TooManyInclusionInherents", 1: "InvalidParentHeader", @@ -4344,122 +4481,119 @@ export const $652: $.Codec>> = $.array($642) - -export const $658: $.Codec = $.tuple($98, $99) +export const $653: $.Codec>> = $.array( + $642, +) -export const $657: $.Codec = $.object(["claim", $658], [ - "retries", - $4, -]) +export const $658: $.Codec = $.tuple($98, $99) -export const $656: $.Codec = $.object([ +export const $657: $.Codec = $.object([ "claim", - $657, -], ["core_offset", $4]) + $658, +], ["retries", $4]) -export const $655: $.Codec> = $ - .array($656) +export const $656: $.Codec = $ + .object(["claim", $657], ["core_offset", $4]) -export const $654: $.Codec = $.object( - ["queue", $655], - ["next_core_offset", $4], -) +export const $655: $.Codec> = + $.array($656) -export const $661: $.Codec = $.taggedUnion("type", { +export const $654: $.Codec = $ + .object(["queue", $655], ["next_core_offset", $4]) + +export const $661: $.Codec = $.taggedUnion("type", { 0: ["Parathread", ["value", $657]], 1: ["Parachain"], }) -export const $660: $.Codec = $.option($661) - -export const $659: $.Codec> = $.array( - $660, +export const $660: $.Codec = $.option( + $661, ) -export const $662: $.Codec> = $.array($98) +export const $659: $.Codec> = $ + .array($660) -export const $665: $.Codec = $.taggedUnion( - "type", - { 0: ["Parachain"], 1: ["Parathread", ["value", $.tuple($99, $4)]] }, -) +export const $662: $.Codec> = $.array($98) -export const $664: $.Codec = $.object( +export const $665: $.Codec = $ + .taggedUnion("type", { 0: ["Parachain"], 1: ["Parathread", ["value", $.tuple($99, $4)]] }) + +export const $664: $.Codec = $.object( ["core", $105], ["para_id", $98], ["kind", $665], ["group_idx", $106], ) -export const $663: $.Codec> = $.array( - $664, -) +export const $663: $.Codec> = $ + .array($664) -export const $668: $.Codec = $.taggedUnion( +export const $668: $.Codec = $.taggedUnion( "type", { 0: ["Onboarding", ["value", $98]], 1: ["Upgrade", ["id", $98], ["relay_parent_number", $4]] }, ) -export const $667: $.Codec> = $.array( - $668, -) +export const $667: $.Codec> = $ + .array($668) -export const $666: $.Codec = $.object( - ["votes_accept", $383], - ["votes_reject", $383], - ["age", $4], - ["created_at", $4], - ["causes", $667], -) +export const $666: $.Codec = $ + .object(["votes_accept", $383], ["votes_reject", $383], ["age", $4], ["created_at", $4], [ + "causes", + $667, + ]) -export const $669: $.Codec> = $.array( - $103, -) +export const $669: $.Codec> = $ + .array($103) -export const $670: $.Codec = $.stringUnion({ - 0: "Onboarding", - 1: "Parathread", - 2: "Parachain", - 3: "UpgradingParathread", - 4: "DowngradingParachain", - 5: "OffboardingParathread", - 6: "OffboardingParachain", -}) +export const $670: $.Codec = $.stringUnion( + { + 0: "Onboarding", + 1: "Parathread", + 2: "Parachain", + 3: "UpgradingParathread", + 4: "DowngradingParachain", + 5: "OffboardingParathread", + 6: "OffboardingParachain", + }, +) -export const $671: $.Codec<[t.polkadot_parachain.primitives.Id, t.u32]> = $.tuple($98, $4) +export const $671: $.Codec<[t.types.polkadot_parachain.primitives.Id, t.types.u32]> = $.tuple( + $98, + $4, +) -export const $674: $.Codec = $.object([ +export const $674: $.Codec = $.object([ "expected_at", $4, ], ["activated_at", $4]) -export const $673: $.Codec> = $.array( - $674, -) +export const $673: $.Codec> = $ + .array($674) -export const $672: $.Codec = $.object([ +export const $672: $.Codec = $.object([ "upgrade_times", $673, ], ["last_pruned", $236]) -export const $675: $.Codec> = $.array($671) +export const $675: $.Codec> = $ + .array($671) -export const $676: $.Codec = $.stringUnion({ +export const $676: $.Codec = $.stringUnion({ 0: "Abort", 1: "GoAhead", }) -export const $677: $.Codec = $.stringUnion({ +export const $677: $.Codec = $.stringUnion({ 0: "Present", }) -export const $678: $.Codec = $.object( +export const $678: $.Codec = $.object( ["genesis_head", $104], ["validation_code", $394], ["parachain", $43], ) -export const $679: $.Codec = $.stringUnion({ +export const $679: $.Codec = $.stringUnion({ 0: "NotRegistered", 1: "CannotOnboard", 2: "CannotOffboard", @@ -4475,42 +4609,44 @@ export const $679: $.Codec = $ 12: "CannotUpgradeCode", }) -export const $681: $.Codec = $ - .object(["validators", $643], ["queued", $643], ["session_index", $4]) +export const $681: $.Codec = + $.object(["validators", $643], ["queued", $643], ["session_index", $4]) -export const $680: $.Codec> = - $.array($681) +export const $680: $.Codec< + Array +> = $.array($681) -export const $683: $.Codec = $.object([ +export const $683: $.Codec = $.object([ "sent_at", $4, ], ["msg", $12]) -export const $682: $.Codec> = $.array( - $683, -) +export const $682: $.Codec> = $ + .array($683) -export const $684: $.Codec<[t.polkadot_parachain.primitives.Id, Uint8Array]> = $.tuple($98, $12) +export const $684: $.Codec<[t.types.polkadot_parachain.primitives.Id, Uint8Array]> = $.tuple( + $98, + $12, +) -export const $685: $.Codec = $.stringUnion({ +export const $685: $.Codec = $.stringUnion({ 0: "UnknownMessageIndex", 1: "WeightOverLimit", }) -export const $686: $.Codec = $.object( - ["confirmed", $43], - ["_age", $4], - ["sender_deposit", $6], - ["max_message_size", $4], - ["max_capacity", $4], - ["max_total_size", $4], -) +export const $686: $.Codec = $ + .object(["confirmed", $43], ["_age", $4], ["sender_deposit", $6], ["max_message_size", $4], [ + "max_capacity", + $4, + ], ["max_total_size", $4]) -export const $687: $.Codec> = $.array($112) +export const $687: $.Codec> = $.array( + $112, +) -export const $689: $.Codec = $.option($11) +export const $689: $.Codec = $.option($11) -export const $688: $.Codec = $.object( +export const $688: $.Codec = $.object( ["max_capacity", $4], ["max_total_size", $4], ["max_message_size", $4], @@ -4521,20 +4657,22 @@ export const $688: $.Codec = $.o ["recipient_deposit", $6], ) -export const $691: $.Codec = $.object([ +export const $691: $.Codec = $.object([ "sent_at", $4, ], ["data", $12]) -export const $690: $.Codec> = $.array($691) +export const $690: $.Codec> = $.array( + $691, +) -export const $693: $.Codec<[t.u32, Array]> = $.tuple($4, $662) +export const $693: $.Codec<[t.types.u32, Array]> = $ + .tuple($4, $662) -export const $692: $.Codec]>> = $.array( - $693, -) +export const $692: $.Codec]>> = + $.array($693) -export const $694: $.Codec = $.stringUnion({ +export const $694: $.Codec = $.stringUnion({ 0: "OpenHrmpChannelToSelf", 1: "OpenHrmpChannelInvalidRecipient", 2: "OpenHrmpChannelZeroCapacity", @@ -4556,11 +4694,13 @@ export const $694: $.Codec = $. 18: "WrongWitness", }) -export const $695: $.Codec> = $.array($214) +export const $695: $.Codec> = $.array( + $214, +) -export const $697: $.Codec> = $.array($215) +export const $697: $.Codec> = $.array($215) -export const $696: $.Codec = $.object( +export const $696: $.Codec = $.object( ["active_validator_indices", $642], ["random_seed", $1], ["dispute_period", $4], @@ -4576,110 +4716,152 @@ export const $696: $.Codec = $.object( ["needed_approvals", $4], ) -export const $698: $.Codec<[t.u32, t.polkadot_core_primitives.CandidateHash]> = $.tuple($4, $114) +export const $698: $.Codec<[t.types.u32, t.types.polkadot_core_primitives.CandidateHash]> = $.tuple( + $4, + $114, +) -export const $699: $.Codec = $.object( +export const $699: $.Codec = $.object( ["validators_for", $383], ["validators_against", $383], ["start", $4], ["concluded_at", $236], ) -export const $700: $.Codec = $.stringUnion({ - 0: "DuplicateDisputeStatementSets", - 1: "AncientDisputeStatement", - 2: "ValidatorIndexOutOfBounds", - 3: "InvalidSignature", - 4: "DuplicateStatement", - 5: "PotentialSpam", - 6: "SingleSidedDispute", -}) +export const $700: $.Codec = $ + .stringUnion({ + 0: "DuplicateDisputeStatementSets", + 1: "AncientDisputeStatement", + 2: "ValidatorIndexOutOfBounds", + 3: "InvalidSignature", + 4: "DuplicateStatement", + 5: "PotentialSpam", + 6: "SingleSidedDispute", + }) -export const $701: $.Codec = $.object( +export const $701: $.Codec = $.object( ["manager", $0], ["deposit", $6], ["locked", $43], ) -export const $702: $.Codec = $.stringUnion({ - 0: "NotRegistered", - 1: "AlreadyRegistered", - 2: "NotOwner", - 3: "CodeTooLarge", - 4: "HeadDataTooLarge", - 5: "NotParachain", - 6: "NotParathread", - 7: "CannotDeregister", - 8: "CannotDowngrade", - 9: "CannotUpgrade", - 10: "ParaLocked", - 11: "NotReserved", - 12: "EmptyCode", - 13: "CannotSwap", -}) - -export const $703: $.Codec> = $.array( - $452, -) +export const $702: $.Codec = $ + .stringUnion({ + 0: "NotRegistered", + 1: "AlreadyRegistered", + 2: "NotOwner", + 3: "CodeTooLarge", + 4: "HeadDataTooLarge", + 5: "NotParachain", + 6: "NotParathread", + 7: "CannotDeregister", + 8: "CannotDowngrade", + 9: "CannotUpgrade", + 10: "ParaLocked", + 11: "NotReserved", + 12: "EmptyCode", + 13: "CannotSwap", + }) + +export const $703: $.Codec> = + $.array($452) -export const $704: $.Codec = $.stringUnion({ +export const $704: $.Codec = $.stringUnion({ 0: "ParaNotOnboarding", 1: "LeaseError", }) -export const $705: $.Codec<[t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id]> = $ - .tuple($0, $98) +export const $705: $.Codec< + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id] +> = $.tuple($0, $98) export const $708: $.Codec< - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] + [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] > = $.tuple($0, $98, $6) export const $707: $.Codec< - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined > = $.option($708) export const $706: $.Codec< [ - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, - [t.sp_core.crypto.AccountId32, t.polkadot_parachain.primitives.Id, t.u128] | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, + | [t.types.sp_core.crypto.AccountId32, t.types.polkadot_parachain.primitives.Id, t.types.u128] + | undefined, ] > = $.sizedArray($707, 36) -export const $709: $.Codec = $.stringUnion({ +export const $709: $.Codec = $.stringUnion({ 0: "AuctionInProgress", 1: "LeasePeriodInPast", 2: "ParaNotRegistered", @@ -4689,12 +4871,14 @@ export const $709: $.Codec = $. 6: "AlreadyLeasedOut", }) -export const $711: $.Codec = $.taggedUnion( - "type", - { 0: ["Never"], 1: ["PreEnding", ["value", $4]], 2: ["Ending", ["value", $4]] }, -) +export const $711: $.Codec = $ + .taggedUnion("type", { + 0: ["Never"], + 1: ["PreEnding", ["value", $4]], + 2: ["Ending", ["value", $4]], + }) -export const $710: $.Codec = $.object( +export const $710: $.Codec = $.object( ["depositor", $0], ["verifier", $416], ["deposit", $6], @@ -4707,7 +4891,7 @@ export const $710: $.Codec = $.obj ["fund_index", $4], ) -export const $712: $.Codec = $.stringUnion({ +export const $712: $.Codec = $.stringUnion({ 0: "FirstPeriodInPast", 1: "FirstPeriodTooFarInFuture", 2: "LastPeriodBeforeFirstPeriod", @@ -4733,42 +4917,47 @@ export const $712: $.Codec = $ 22: "NoLeasePeriod", }) -export const $715: $.Codec<[t.u8, t.u8]> = $.tuple($2, $2) +export const $715: $.Codec<[t.types.u8, t.types.u8]> = $.tuple($2, $2) -export const $714: $.Codec<[t.u8, t.u8] | undefined> = $.option($715) +export const $714: $.Codec<[t.types.u8, t.types.u8] | undefined> = $.option($715) -export const $716: $.Codec = $.taggedUnion("type", { +export const $716: $.Codec = $.taggedUnion("type", { 0: ["V0", ["value", $429]], 1: ["V1", ["value", $434]], 2: ["V2", ["value", $140]], }) -export const $713: $.Codec = $.taggedUnion("type", { +export const $713: $.Codec = $.taggedUnion("type", { 0: ["Pending", ["responder", $155], ["maybe_notify", $714], ["timeout", $4]], 1: ["VersionNotifier", ["origin", $155], ["is_active", $43]], 2: ["Ready", ["response", $716], ["at", $4]], }) -export const $717: $.Codec<[t.u32, t.xcm.VersionedMultiLocation]> = $.tuple($4, $155) +export const $717: $.Codec<[t.types.u32, t.types.xcm.VersionedMultiLocation]> = $.tuple($4, $155) -export const $718: $.Codec<[t.u64, t.u64, t.u32]> = $.tuple($10, $10, $4) +export const $718: $.Codec<[t.types.u64, t.types.u64, t.types.u32]> = $.tuple($10, $10, $4) -export const $720: $.Codec<[t.xcm.VersionedMultiLocation, t.u32]> = $.tuple($155, $4) +export const $720: $.Codec<[t.types.xcm.VersionedMultiLocation, t.types.u32]> = $.tuple($155, $4) -export const $721: $.Codec> = $.array($720) +export const $721: $.Codec> = $.array( + $720, +) -export const $719: $.Codec> = $721 +export const $719: $.Codec> = $721 export const $723: $.Codec = $.option($12) -export const $722: $.Codec = $.taggedUnion("type", { - 0: ["MigrateSupportedVersion"], - 1: ["MigrateVersionNotifiers"], - 2: ["NotifyCurrentTargets", ["value", $723]], - 3: ["MigrateAndNotifyOldTargets"], -}) +export const $722: $.Codec = $.taggedUnion( + "type", + { + 0: ["MigrateSupportedVersion"], + 1: ["MigrateVersionNotifiers"], + 2: ["NotifyCurrentTargets", ["value", $723]], + 3: ["MigrateAndNotifyOldTargets"], + }, +) -export const $724: $.Codec = $.stringUnion({ +export const $724: $.Codec = $.stringUnion({ 0: "Unreachable", 1: "SendFailure", 2: "Filtered", @@ -4786,42 +4975,45 @@ export const $724: $.Codec = $.stringUnion({ export const $725: $.Codec = $12 -export const $727: $.Codec = - C.$null +export const $727: $.Codec< + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender +> = C.$null -export const $728: $.Codec = C.$null +export const $728: $.Codec = + C.$null -export const $729: $.Codec = C.$null +export const $729: $.Codec = + C.$null -export const $730: $.Codec = C.$null +export const $730: $.Codec = C.$null export const $732: $.Codec = C.$era export const $731: $.Codec = $732 -export const $733: $.Codec> = $125 +export const $733: $.Codec> = $125 -export const $734: $.Codec = C.$null +export const $734: $.Codec = C.$null -export const $735: $.Codec> = $58 +export const $735: $.Codec> = $58 -export const $736: $.Codec = C.$null +export const $736: $.Codec = C.$null export const $726: $.Codec< [ - t.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender, - t.frame_system.extensions.check_spec_version.CheckSpecVersion, - t.frame_system.extensions.check_tx_version.CheckTxVersion, - t.frame_system.extensions.check_genesis.CheckGenesis, + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender, + t.types.frame_system.extensions.check_spec_version.CheckSpecVersion, + t.types.frame_system.extensions.check_tx_version.CheckTxVersion, + t.types.frame_system.extensions.check_genesis.CheckGenesis, C.Era, - t.Compact, - t.frame_system.extensions.check_weight.CheckWeight, - t.Compact, - t.polkadot_runtime_common.claims.PrevalidateAttests, + t.Compact, + t.types.frame_system.extensions.check_weight.CheckWeight, + t.Compact, + t.types.polkadot_runtime_common.claims.PrevalidateAttests, ] > = $.tuple($727, $728, $729, $730, $731, $733, $734, $735, $736) -export const $737: $.Codec = C.$null +export const $737: $.Codec = C.$null export const _all: $.AnyCodec[] = [ $0, diff --git a/codegen/_output/westend/finality_grandpa/Equivocation/$$finality_grandpa.ts b/codegen/_output/westend/finality_grandpa/Equivocation/$$finality_grandpa.ts deleted file mode 100644 index 45ab3cd8b..000000000 --- a/codegen/_output/westend/finality_grandpa/Equivocation/$$finality_grandpa.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $precommit: $.Codec = - _codec.$224 - -export const $prevote: $.Codec = - _codec.$219 - -export interface Precommit { - round_number: t.u64 - identity: t.sp_finality_grandpa.app.Public - first: [t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature] - second: [t.finality_grandpa.Precommit, t.sp_finality_grandpa.app.Signature] -} - -export function Precommit(value: t.finality_grandpa.Equivocation.$$finality_grandpa.Precommit) { - return value -} - -export interface Prevote { - round_number: t.u64 - identity: t.sp_finality_grandpa.app.Public - first: [t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature] - second: [t.finality_grandpa.Prevote, t.sp_finality_grandpa.app.Signature] -} - -export function Prevote(value: t.finality_grandpa.Equivocation.$$finality_grandpa.Prevote) { - return value -} diff --git a/codegen/_output/westend/finality_grandpa/mod.ts b/codegen/_output/westend/finality_grandpa/mod.ts deleted file mode 100644 index 42e157d96..000000000 --- a/codegen/_output/westend/finality_grandpa/mod.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as Equivocation from "./Equivocation/mod.ts" - -export const $precommit: $.Codec = _codec.$225 - -export const $prevote: $.Codec = _codec.$220 - -export interface Precommit { - target_hash: t.primitive_types.H256 - target_number: t.u32 -} - -export function Precommit(value: t.finality_grandpa.Precommit) { - return value -} - -export interface Prevote { - target_hash: t.primitive_types.H256 - target_number: t.u32 -} - -export function Prevote(value: t.finality_grandpa.Prevote) { - return value -} diff --git a/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts b/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts deleted file mode 100644 index 0b7ef13b1..000000000 --- a/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export const $weightsPerClass: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass -> = _codec.$166 - -export interface WeightsPerClass { - normal: t.frame_system.limits.WeightsPerClass - operational: t.frame_system.limits.WeightsPerClass - mandatory: t.frame_system.limits.WeightsPerClass -} - -export function WeightsPerClass( - value: t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass, -) { - return value -} diff --git a/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts b/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts deleted file mode 100644 index 70b4175fe..000000000 --- a/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export const $weight: $.Codec< - t.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight -> = _codec.$7 - -export interface Weight { - normal: t.sp_weights.weight_v2.Weight - operational: t.sp_weights.weight_v2.Weight - mandatory: t.sp_weights.weight_v2.Weight -} - -export function Weight( - value: t.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight, -) { - return value -} diff --git a/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/mod.ts b/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/mod.ts deleted file mode 100644 index f17c65ea6..000000000 --- a/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/mod.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export * as $$frame_system from "./$$frame_system/mod.ts" -export * as $$sp_weights from "./$$sp_weights/mod.ts" - -export const $$$u32: $.Codec = _codec.$170 - -export interface $$u32 { - normal: t.u32 - operational: t.u32 - mandatory: t.u32 -} - -export function $$u32(value: t.frame_support.dispatch.PerDispatchClass.$$u32) { - return value -} diff --git a/codegen/_output/westend/frame_support/dispatch/mod.ts b/codegen/_output/westend/frame_support/dispatch/mod.ts deleted file mode 100644 index 41e096b5d..000000000 --- a/codegen/_output/westend/frame_support/dispatch/mod.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as PerDispatchClass from "./PerDispatchClass/mod.ts" - -export const $dispatchClass: $.Codec = _codec.$22 - -export const $dispatchInfo: $.Codec = _codec.$21 - -export const $pays: $.Codec = _codec.$23 - -export const $rawOrigin: $.Codec = _codec.$257 - -export type DispatchClass = "Normal" | "Operational" | "Mandatory" - -export interface DispatchInfo { - weight: t.sp_weights.weight_v2.Weight - class: t.frame_support.dispatch.DispatchClass - pays_fee: t.frame_support.dispatch.Pays -} - -export function DispatchInfo(value: t.frame_support.dispatch.DispatchInfo) { - return value -} - -export type Pays = "Yes" | "No" - -export type RawOrigin = - | t.frame_support.dispatch.RawOrigin.Root - | t.frame_support.dispatch.RawOrigin.Signed - | t.frame_support.dispatch.RawOrigin.None -export namespace RawOrigin { - export interface Root { - type: "Root" - } - export interface Signed { - type: "Signed" - value: t.sp_core.crypto.AccountId32 - } - export interface None { - type: "None" - } - export function Root(): t.frame_support.dispatch.RawOrigin.Root { - return { type: "Root" } - } - export function Signed( - value: t.frame_support.dispatch.RawOrigin.Signed["value"], - ): t.frame_support.dispatch.RawOrigin.Signed { - return { type: "Signed", value } - } - export function None(): t.frame_support.dispatch.RawOrigin.None { - return { type: "None" } - } -} diff --git a/codegen/_output/westend/frame_support/mod.ts b/codegen/_output/westend/frame_support/mod.ts deleted file mode 100644 index e3c066b58..000000000 --- a/codegen/_output/westend/frame_support/mod.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as dispatch from "./dispatch/mod.ts" -export * as traits from "./traits/mod.ts" - -export const $palletId: $.Codec = _codec.$560 - -export type PalletId = Uint8Array - -export function PalletId(value: t.frame_support.PalletId) { - return value -} diff --git a/codegen/_output/westend/frame_support/traits/misc.ts b/codegen/_output/westend/frame_support/traits/misc.ts deleted file mode 100644 index 9aeb1612a..000000000 --- a/codegen/_output/westend/frame_support/traits/misc.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $wrapperOpaque: $.Codec = _codec.$522 diff --git a/codegen/_output/westend/frame_support/traits/preimages.ts b/codegen/_output/westend/frame_support/traits/preimages.ts deleted file mode 100644 index f7b6cd24a..000000000 --- a/codegen/_output/westend/frame_support/traits/preimages.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $bounded: $.Codec = _codec.$180 - -export type Bounded = - | t.frame_support.traits.preimages.Bounded.Legacy - | t.frame_support.traits.preimages.Bounded.Inline - | t.frame_support.traits.preimages.Bounded.Lookup -export namespace Bounded { - export interface Legacy { - type: "Legacy" - hash: t.primitive_types.H256 - } - export interface Inline { - type: "Inline" - value: Uint8Array - } - export interface Lookup { - type: "Lookup" - hash: t.primitive_types.H256 - len: t.u32 - } - export function Legacy( - value: Omit, - ): t.frame_support.traits.preimages.Bounded.Legacy { - return { type: "Legacy", ...value } - } - export function Inline( - value: t.frame_support.traits.preimages.Bounded.Inline["value"], - ): t.frame_support.traits.preimages.Bounded.Inline { - return { type: "Inline", value } - } - export function Lookup( - value: Omit, - ): t.frame_support.traits.preimages.Bounded.Lookup { - return { type: "Lookup", ...value } - } -} diff --git a/codegen/_output/westend/frame_support/traits/tokens/misc.ts b/codegen/_output/westend/frame_support/traits/tokens/misc.ts deleted file mode 100644 index ee5be5d4b..000000000 --- a/codegen/_output/westend/frame_support/traits/tokens/misc.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export const $balanceStatus: $.Codec = _codec.$37 - -export type BalanceStatus = "Free" | "Reserved" diff --git a/codegen/_output/westend/frame_system/extensions/check_genesis.ts b/codegen/_output/westend/frame_system/extensions/check_genesis.ts deleted file mode 100644 index 558e0306a..000000000 --- a/codegen/_output/westend/frame_system/extensions/check_genesis.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkGenesis: $.Codec = - _codec.$730 - -export function CheckGenesis() { - return null -} - -export type CheckGenesis = null diff --git a/codegen/_output/westend/frame_system/extensions/check_non_zero_sender.ts b/codegen/_output/westend/frame_system/extensions/check_non_zero_sender.ts deleted file mode 100644 index 6400ed748..000000000 --- a/codegen/_output/westend/frame_system/extensions/check_non_zero_sender.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkNonZeroSender: $.Codec< - t.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender -> = _codec.$727 - -export function CheckNonZeroSender() { - return null -} - -export type CheckNonZeroSender = null diff --git a/codegen/_output/westend/frame_system/extensions/check_spec_version.ts b/codegen/_output/westend/frame_system/extensions/check_spec_version.ts deleted file mode 100644 index e692bdc9e..000000000 --- a/codegen/_output/westend/frame_system/extensions/check_spec_version.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkSpecVersion: $.Codec< - t.frame_system.extensions.check_spec_version.CheckSpecVersion -> = _codec.$728 - -export function CheckSpecVersion() { - return null -} - -export type CheckSpecVersion = null diff --git a/codegen/_output/westend/frame_system/extensions/check_tx_version.ts b/codegen/_output/westend/frame_system/extensions/check_tx_version.ts deleted file mode 100644 index d2ddd0d49..000000000 --- a/codegen/_output/westend/frame_system/extensions/check_tx_version.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkTxVersion: $.Codec = - _codec.$729 - -export function CheckTxVersion() { - return null -} - -export type CheckTxVersion = null diff --git a/codegen/_output/westend/frame_system/extensions/check_weight.ts b/codegen/_output/westend/frame_system/extensions/check_weight.ts deleted file mode 100644 index acb4a106e..000000000 --- a/codegen/_output/westend/frame_system/extensions/check_weight.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $checkWeight: $.Codec = _codec.$734 - -export function CheckWeight() { - return null -} - -export type CheckWeight = null diff --git a/codegen/_output/westend/frame_system/limits.ts b/codegen/_output/westend/frame_system/limits.ts deleted file mode 100644 index 1448f520d..000000000 --- a/codegen/_output/westend/frame_system/limits.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $blockLength: $.Codec = _codec.$169 - -export const $blockWeights: $.Codec = _codec.$165 - -export const $weightsPerClass: $.Codec = _codec.$167 - -export interface BlockLength { - max: t.frame_support.dispatch.PerDispatchClass.$$u32 -} - -export function BlockLength(value: t.frame_system.limits.BlockLength) { - return value -} - -export interface BlockWeights { - base_block: t.sp_weights.weight_v2.Weight - max_block: t.sp_weights.weight_v2.Weight - per_class: t.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass -} - -export function BlockWeights(value: t.frame_system.limits.BlockWeights) { - return value -} - -export interface WeightsPerClass { - base_extrinsic: t.sp_weights.weight_v2.Weight - max_extrinsic: t.sp_weights.weight_v2.Weight | undefined - max_total: t.sp_weights.weight_v2.Weight | undefined - reserved: t.sp_weights.weight_v2.Weight | undefined -} - -export function WeightsPerClass(value: t.frame_system.limits.WeightsPerClass) { - return value -} diff --git a/codegen/_output/westend/frame_system/mod.ts b/codegen/_output/westend/frame_system/mod.ts deleted file mode 100644 index fad2eca0c..000000000 --- a/codegen/_output/westend/frame_system/mod.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as extensions from "./extensions/mod.ts" -export * as limits from "./limits.ts" -export * as pallet from "./pallet.ts" - -export const $accountInfo: $.Codec = _codec.$3 - -export const $eventRecord: $.Codec = _codec.$18 - -export const $lastRuntimeUpgradeInfo: $.Codec = _codec.$159 - -export const $phase: $.Codec = _codec.$156 - -export interface AccountInfo { - nonce: t.u32 - consumers: t.u32 - providers: t.u32 - sufficients: t.u32 - data: t.pallet_balances.AccountData -} - -export function AccountInfo(value: t.frame_system.AccountInfo) { - return value -} - -export interface EventRecord { - phase: t.frame_system.Phase - event: t.polkadot_runtime.RuntimeEvent - topics: Array -} - -export function EventRecord(value: t.frame_system.EventRecord) { - return value -} - -export interface LastRuntimeUpgradeInfo { - spec_version: t.Compact - spec_name: string -} - -export function LastRuntimeUpgradeInfo(value: t.frame_system.LastRuntimeUpgradeInfo) { - return value -} - -export type Phase = - | t.frame_system.Phase.ApplyExtrinsic - | t.frame_system.Phase.Finalization - | t.frame_system.Phase.Initialization -export namespace Phase { - export interface ApplyExtrinsic { - type: "ApplyExtrinsic" - value: t.u32 - } - export interface Finalization { - type: "Finalization" - } - export interface Initialization { - type: "Initialization" - } - export function ApplyExtrinsic( - value: t.frame_system.Phase.ApplyExtrinsic["value"], - ): t.frame_system.Phase.ApplyExtrinsic { - return { type: "ApplyExtrinsic", value } - } - export function Finalization(): t.frame_system.Phase.Finalization { - return { type: "Finalization" } - } - export function Initialization(): t.frame_system.Phase.Initialization { - return { type: "Initialization" } - } -} diff --git a/codegen/_output/westend/mod.ts b/codegen/_output/westend/mod.ts index badbc43c5..621c80dbf 100644 --- a/codegen/_output/westend/mod.ts +++ b/codegen/_output/westend/mod.ts @@ -1,74 +1,5 @@ -import { $, C } from "./capi.ts" -import * as _codec from "./codecs.ts" - export * as _metadata from "./_metadata.ts" -export * as bitvec from "./bitvec/mod.ts" -export * as finality_grandpa from "./finality_grandpa/mod.ts" -export * as frame_support from "./frame_support/mod.ts" -export * as frame_system from "./frame_system/mod.ts" -export * as pallet_authorship from "./pallet_authorship/mod.ts" -export * as pallet_babe from "./pallet_babe/mod.ts" -export * as pallet_bags_list from "./pallet_bags_list/mod.ts" -export * as pallet_balances from "./pallet_balances/mod.ts" -export * as pallet_bounties from "./pallet_bounties/mod.ts" -export * as pallet_child_bounties from "./pallet_child_bounties/mod.ts" -export * as pallet_collective from "./pallet_collective/mod.ts" -export * as pallet_democracy from "./pallet_democracy/mod.ts" -export * as pallet_election_provider_multi_phase from "./pallet_election_provider_multi_phase/mod.ts" -export * as pallet_elections_phragmen from "./pallet_elections_phragmen/mod.ts" -export * as pallet_fast_unstake from "./pallet_fast_unstake/mod.ts" -export * as pallet_grandpa from "./pallet_grandpa/mod.ts" -export * as pallet_identity from "./pallet_identity/mod.ts" -export * as pallet_im_online from "./pallet_im_online/mod.ts" -export * as pallet_indices from "./pallet_indices/mod.ts" -export * as pallet_membership from "./pallet_membership/mod.ts" -export * as pallet_multisig from "./pallet_multisig/mod.ts" -export * as pallet_nomination_pools from "./pallet_nomination_pools/mod.ts" -export * as pallet_offences from "./pallet_offences/mod.ts" -export * as pallet_preimage from "./pallet_preimage/mod.ts" -export * as pallet_proxy from "./pallet_proxy/mod.ts" -export * as pallet_scheduler from "./pallet_scheduler/mod.ts" -export * as pallet_session from "./pallet_session/mod.ts" -export * as pallet_staking from "./pallet_staking/mod.ts" -export * as pallet_timestamp from "./pallet_timestamp/mod.ts" -export * as pallet_tips from "./pallet_tips/mod.ts" -export * as pallet_transaction_payment from "./pallet_transaction_payment/mod.ts" -export * as pallet_treasury from "./pallet_treasury/mod.ts" -export * as pallet_utility from "./pallet_utility/mod.ts" -export * as pallet_vesting from "./pallet_vesting/mod.ts" -export * as pallet_xcm from "./pallet_xcm/mod.ts" export * as pallets from "./pallets/mod.ts" -export * as polkadot_core_primitives from "./polkadot_core_primitives.ts" -export * as polkadot_parachain from "./polkadot_parachain/mod.ts" -export * as polkadot_primitives from "./polkadot_primitives/mod.ts" -export * as polkadot_runtime from "./polkadot_runtime.ts" -export * as polkadot_runtime_common from "./polkadot_runtime_common/mod.ts" -export * as polkadot_runtime_parachains from "./polkadot_runtime_parachains/mod.ts" -export * as primitive_types from "./primitive_types.ts" -export * as sp_arithmetic from "./sp_arithmetic/mod.ts" -export * as sp_authority_discovery from "./sp_authority_discovery/mod.ts" -export * as sp_consensus_babe from "./sp_consensus_babe/mod.ts" -export * as sp_consensus_slots from "./sp_consensus_slots.ts" -export * as sp_core from "./sp_core/mod.ts" -export * as sp_finality_grandpa from "./sp_finality_grandpa/mod.ts" -export * as sp_npos_elections from "./sp_npos_elections.ts" -export * as sp_runtime from "./sp_runtime/mod.ts" -export * as sp_session from "./sp_session.ts" -export * as sp_staking from "./sp_staking/mod.ts" -export * as sp_version from "./sp_version.ts" -export * as sp_weights from "./sp_weights/mod.ts" -export * as xcm from "./xcm/mod.ts" - -export const $era: $.Codec = _codec.$732 +export * as types from "./types/mod.ts" export type Compact = T - -export type u128 = bigint - -export type u16 = number - -export type u32 = number - -export type u64 = bigint - -export type u8 = number diff --git a/codegen/_output/westend/pallet_authorship/mod.ts b/codegen/_output/westend/pallet_authorship/mod.ts deleted file mode 100644 index a2e6949b9..000000000 --- a/codegen/_output/westend/pallet_authorship/mod.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $uncleEntryItem: $.Codec = _codec.$482 - -export type UncleEntryItem = - | t.pallet_authorship.UncleEntryItem.InclusionHeight - | t.pallet_authorship.UncleEntryItem.Uncle -export namespace UncleEntryItem { - export interface InclusionHeight { - type: "InclusionHeight" - value: t.u32 - } - export interface Uncle { - type: "Uncle" - value: [t.primitive_types.H256, t.sp_core.crypto.AccountId32 | undefined] - } - export function InclusionHeight( - value: t.pallet_authorship.UncleEntryItem.InclusionHeight["value"], - ): t.pallet_authorship.UncleEntryItem.InclusionHeight { - return { type: "InclusionHeight", value } - } - export function Uncle( - ...value: t.pallet_authorship.UncleEntryItem.Uncle["value"] - ): t.pallet_authorship.UncleEntryItem.Uncle { - return { type: "Uncle", value } - } -} diff --git a/codegen/_output/westend/pallet_bags_list/list.ts b/codegen/_output/westend/pallet_bags_list/list.ts deleted file mode 100644 index 2c7ff3b65..000000000 --- a/codegen/_output/westend/pallet_bags_list/list.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $bag: $.Codec = _codec.$613 - -export const $listError: $.Codec = _codec.$616 - -export const $node: $.Codec = _codec.$612 - -export interface Bag { - head: t.sp_core.crypto.AccountId32 | undefined - tail: t.sp_core.crypto.AccountId32 | undefined -} - -export function Bag(value: t.pallet_bags_list.list.Bag) { - return value -} - -export type ListError = "Duplicate" | "NotHeavier" | "NotInSameBag" | "NodeNotFound" - -export interface Node { - id: t.sp_core.crypto.AccountId32 - prev: t.sp_core.crypto.AccountId32 | undefined - next: t.sp_core.crypto.AccountId32 | undefined - bag_upper: t.u64 - score: t.u64 -} - -export function Node(value: t.pallet_bags_list.list.Node) { - return value -} diff --git a/codegen/_output/westend/pallet_balances/mod.ts b/codegen/_output/westend/pallet_balances/mod.ts deleted file mode 100644 index 4f241fc40..000000000 --- a/codegen/_output/westend/pallet_balances/mod.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $accountData: $.Codec = _codec.$5 - -export const $balanceLock: $.Codec = _codec.$471 - -export const $reasons: $.Codec = _codec.$472 - -export const $releases: $.Codec = _codec.$477 - -export const $reserveData: $.Codec = _codec.$475 - -export interface AccountData { - free: t.u128 - reserved: t.u128 - misc_frozen: t.u128 - fee_frozen: t.u128 -} - -export function AccountData(value: t.pallet_balances.AccountData) { - return value -} - -export interface BalanceLock { - id: Uint8Array - amount: t.u128 - reasons: t.pallet_balances.Reasons -} - -export function BalanceLock(value: t.pallet_balances.BalanceLock) { - return value -} - -export type Reasons = "Fee" | "Misc" | "All" - -export type Releases = "V1_0_0" | "V2_0_0" - -export interface ReserveData { - id: Uint8Array - amount: t.u128 -} - -export function ReserveData(value: t.pallet_balances.ReserveData) { - return value -} diff --git a/codegen/_output/westend/pallet_bounties/mod.ts b/codegen/_output/westend/pallet_bounties/mod.ts deleted file mode 100644 index 69d0638db..000000000 --- a/codegen/_output/westend/pallet_bounties/mod.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $bounty: $.Codec = _codec.$591 - -export const $bountyStatus: $.Codec = _codec.$592 - -export interface Bounty { - proposer: t.sp_core.crypto.AccountId32 - value: t.u128 - fee: t.u128 - curator_deposit: t.u128 - bond: t.u128 - status: t.pallet_bounties.BountyStatus -} - -export function Bounty(value: t.pallet_bounties.Bounty) { - return value -} - -export type BountyStatus = - | t.pallet_bounties.BountyStatus.Proposed - | t.pallet_bounties.BountyStatus.Approved - | t.pallet_bounties.BountyStatus.Funded - | t.pallet_bounties.BountyStatus.CuratorProposed - | t.pallet_bounties.BountyStatus.Active - | t.pallet_bounties.BountyStatus.PendingPayout -export namespace BountyStatus { - export interface Proposed { - type: "Proposed" - } - export interface Approved { - type: "Approved" - } - export interface Funded { - type: "Funded" - } - export interface CuratorProposed { - type: "CuratorProposed" - curator: t.sp_core.crypto.AccountId32 - } - export interface Active { - type: "Active" - curator: t.sp_core.crypto.AccountId32 - update_due: t.u32 - } - export interface PendingPayout { - type: "PendingPayout" - curator: t.sp_core.crypto.AccountId32 - beneficiary: t.sp_core.crypto.AccountId32 - unlock_at: t.u32 - } - export function Proposed(): t.pallet_bounties.BountyStatus.Proposed { - return { type: "Proposed" } - } - export function Approved(): t.pallet_bounties.BountyStatus.Approved { - return { type: "Approved" } - } - export function Funded(): t.pallet_bounties.BountyStatus.Funded { - return { type: "Funded" } - } - export function CuratorProposed( - value: Omit, - ): t.pallet_bounties.BountyStatus.CuratorProposed { - return { type: "CuratorProposed", ...value } - } - export function Active( - value: Omit, - ): t.pallet_bounties.BountyStatus.Active { - return { type: "Active", ...value } - } - export function PendingPayout( - value: Omit, - ): t.pallet_bounties.BountyStatus.PendingPayout { - return { type: "PendingPayout", ...value } - } -} diff --git a/codegen/_output/westend/pallet_child_bounties/mod.ts b/codegen/_output/westend/pallet_child_bounties/mod.ts deleted file mode 100644 index 73ae5cafd..000000000 --- a/codegen/_output/westend/pallet_child_bounties/mod.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $childBounty: $.Codec = _codec.$595 - -export const $childBountyStatus: $.Codec = _codec.$596 - -export interface ChildBounty { - parent_bounty: t.u32 - value: t.u128 - fee: t.u128 - curator_deposit: t.u128 - status: t.pallet_child_bounties.ChildBountyStatus -} - -export function ChildBounty(value: t.pallet_child_bounties.ChildBounty) { - return value -} - -export type ChildBountyStatus = - | t.pallet_child_bounties.ChildBountyStatus.Added - | t.pallet_child_bounties.ChildBountyStatus.CuratorProposed - | t.pallet_child_bounties.ChildBountyStatus.Active - | t.pallet_child_bounties.ChildBountyStatus.PendingPayout -export namespace ChildBountyStatus { - export interface Added { - type: "Added" - } - export interface CuratorProposed { - type: "CuratorProposed" - curator: t.sp_core.crypto.AccountId32 - } - export interface Active { - type: "Active" - curator: t.sp_core.crypto.AccountId32 - } - export interface PendingPayout { - type: "PendingPayout" - curator: t.sp_core.crypto.AccountId32 - beneficiary: t.sp_core.crypto.AccountId32 - unlock_at: t.u32 - } - export function Added(): t.pallet_child_bounties.ChildBountyStatus.Added { - return { type: "Added" } - } - export function CuratorProposed( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.CuratorProposed { - return { type: "CuratorProposed", ...value } - } - export function Active( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.Active { - return { type: "Active", ...value } - } - export function PendingPayout( - value: Omit, - ): t.pallet_child_bounties.ChildBountyStatus.PendingPayout { - return { type: "PendingPayout", ...value } - } -} diff --git a/codegen/_output/westend/pallet_collective/mod.ts b/codegen/_output/westend/pallet_collective/mod.ts deleted file mode 100644 index d3ddd8c32..000000000 --- a/codegen/_output/westend/pallet_collective/mod.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $rawOrigin: $.Codec = _codec.$258 - -export const $votes: $.Codec = _codec.$546 - -export type RawOrigin = - | t.pallet_collective.RawOrigin.Members - | t.pallet_collective.RawOrigin.Member - | t.pallet_collective.RawOrigin._Phantom -export namespace RawOrigin { - export interface Members { - type: "Members" - value: [t.u32, t.u32] - } - export interface Member { - type: "Member" - value: t.sp_core.crypto.AccountId32 - } - export interface _Phantom { - type: "_Phantom" - } - export function Members( - ...value: t.pallet_collective.RawOrigin.Members["value"] - ): t.pallet_collective.RawOrigin.Members { - return { type: "Members", value } - } - export function Member( - value: t.pallet_collective.RawOrigin.Member["value"], - ): t.pallet_collective.RawOrigin.Member { - return { type: "Member", value } - } - export function _Phantom(): t.pallet_collective.RawOrigin._Phantom { - return { type: "_Phantom" } - } -} - -export interface Votes { - index: t.u32 - threshold: t.u32 - ayes: Array - nays: Array - end: t.u32 -} - -export function Votes(value: t.pallet_collective.Votes) { - return value -} diff --git a/codegen/_output/westend/pallet_democracy/conviction.ts b/codegen/_output/westend/pallet_democracy/conviction.ts deleted file mode 100644 index dd2c491bb..000000000 --- a/codegen/_output/westend/pallet_democracy/conviction.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $conviction: $.Codec = _codec.$235 - -export type Conviction = - | "None" - | "Locked1x" - | "Locked2x" - | "Locked3x" - | "Locked4x" - | "Locked5x" - | "Locked6x" diff --git a/codegen/_output/westend/pallet_democracy/types.ts b/codegen/_output/westend/pallet_democracy/types.ts deleted file mode 100644 index 3c2087e74..000000000 --- a/codegen/_output/westend/pallet_democracy/types.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $delegations: $.Codec = _codec.$540 - -export const $referendumInfo: $.Codec = _codec.$533 - -export const $referendumStatus: $.Codec = _codec.$534 - -export const $tally: $.Codec = _codec.$535 - -export interface Delegations { - votes: t.u128 - capital: t.u128 -} - -export function Delegations(value: t.pallet_democracy.types.Delegations) { - return value -} - -export type ReferendumInfo = - | t.pallet_democracy.types.ReferendumInfo.Ongoing - | t.pallet_democracy.types.ReferendumInfo.Finished -export namespace ReferendumInfo { - export interface Ongoing { - type: "Ongoing" - value: t.pallet_democracy.types.ReferendumStatus - } - export interface Finished { - type: "Finished" - approved: boolean - end: t.u32 - } - export function Ongoing( - value: t.pallet_democracy.types.ReferendumInfo.Ongoing["value"], - ): t.pallet_democracy.types.ReferendumInfo.Ongoing { - return { type: "Ongoing", value } - } - export function Finished( - value: Omit, - ): t.pallet_democracy.types.ReferendumInfo.Finished { - return { type: "Finished", ...value } - } -} - -export interface ReferendumStatus { - end: t.u32 - proposal: t.frame_support.traits.preimages.Bounded - threshold: t.pallet_democracy.vote_threshold.VoteThreshold - delay: t.u32 - tally: t.pallet_democracy.types.Tally -} - -export function ReferendumStatus(value: t.pallet_democracy.types.ReferendumStatus) { - return value -} - -export interface Tally { - ayes: t.u128 - nays: t.u128 - turnout: t.u128 -} - -export function Tally(value: t.pallet_democracy.types.Tally) { - return value -} diff --git a/codegen/_output/westend/pallet_democracy/vote.ts b/codegen/_output/westend/pallet_democracy/vote.ts deleted file mode 100644 index 1125141fe..000000000 --- a/codegen/_output/westend/pallet_democracy/vote.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $accountVote: $.Codec = _codec.$63 - -export const $priorLock: $.Codec = _codec.$541 - -export const $vote: $.Codec = _codec.$64 - -export const $voting: $.Codec = _codec.$536 - -export type AccountVote = - | t.pallet_democracy.vote.AccountVote.Standard - | t.pallet_democracy.vote.AccountVote.Split -export namespace AccountVote { - export interface Standard { - type: "Standard" - vote: t.pallet_democracy.vote.Vote - balance: t.u128 - } - export interface Split { - type: "Split" - aye: t.u128 - nay: t.u128 - } - export function Standard( - value: Omit, - ): t.pallet_democracy.vote.AccountVote.Standard { - return { type: "Standard", ...value } - } - export function Split( - value: Omit, - ): t.pallet_democracy.vote.AccountVote.Split { - return { type: "Split", ...value } - } -} - -export type PriorLock = [t.u32, t.u128] - -export function PriorLock(...value: t.pallet_democracy.vote.PriorLock) { - return value -} - -export type Vote = t.u8 - -export function Vote(value: t.pallet_democracy.vote.Vote) { - return value -} - -export type Voting = - | t.pallet_democracy.vote.Voting.Direct - | t.pallet_democracy.vote.Voting.Delegating -export namespace Voting { - export interface Direct { - type: "Direct" - votes: Array<[t.u32, t.pallet_democracy.vote.AccountVote]> - delegations: t.pallet_democracy.types.Delegations - prior: t.pallet_democracy.vote.PriorLock - } - export interface Delegating { - type: "Delegating" - balance: t.u128 - target: t.sp_core.crypto.AccountId32 - conviction: t.pallet_democracy.conviction.Conviction - delegations: t.pallet_democracy.types.Delegations - prior: t.pallet_democracy.vote.PriorLock - } - export function Direct( - value: Omit, - ): t.pallet_democracy.vote.Voting.Direct { - return { type: "Direct", ...value } - } - export function Delegating( - value: Omit, - ): t.pallet_democracy.vote.Voting.Delegating { - return { type: "Delegating", ...value } - } -} diff --git a/codegen/_output/westend/pallet_democracy/vote_threshold.ts b/codegen/_output/westend/pallet_democracy/vote_threshold.ts deleted file mode 100644 index 336aa57c0..000000000 --- a/codegen/_output/westend/pallet_democracy/vote_threshold.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $voteThreshold: $.Codec = _codec.$62 - -export type VoteThreshold = "SuperMajorityApprove" | "SuperMajorityAgainst" | "SimpleMajority" diff --git a/codegen/_output/westend/pallet_election_provider_multi_phase/mod.ts b/codegen/_output/westend/pallet_election_provider_multi_phase/mod.ts deleted file mode 100644 index ab4732a0f..000000000 --- a/codegen/_output/westend/pallet_election_provider_multi_phase/mod.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as signed from "./signed.ts" - -export const $electionCompute: $.Codec = - _codec.$87 - -export const $phase: $.Codec = _codec.$600 - -export const $rawSolution: $.Codec = _codec.$311 - -export const $readySolution: $.Codec = - _codec.$602 - -export const $roundSnapshot: $.Codec = - _codec.$603 - -export const $solutionOrSnapshotSize: $.Codec< - t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize -> = _codec.$363 - -export type ElectionCompute = "OnChain" | "Signed" | "Unsigned" | "Fallback" | "Emergency" - -export type Phase = - | t.pallet_election_provider_multi_phase.Phase.Off - | t.pallet_election_provider_multi_phase.Phase.Signed - | t.pallet_election_provider_multi_phase.Phase.Unsigned - | t.pallet_election_provider_multi_phase.Phase.Emergency -export namespace Phase { - export interface Off { - type: "Off" - } - export interface Signed { - type: "Signed" - } - export interface Unsigned { - type: "Unsigned" - value: [boolean, t.u32] - } - export interface Emergency { - type: "Emergency" - } - export function Off(): t.pallet_election_provider_multi_phase.Phase.Off { - return { type: "Off" } - } - export function Signed(): t.pallet_election_provider_multi_phase.Phase.Signed { - return { type: "Signed" } - } - export function Unsigned( - value: t.pallet_election_provider_multi_phase.Phase.Unsigned["value"], - ): t.pallet_election_provider_multi_phase.Phase.Unsigned { - return { type: "Unsigned", value } - } - export function Emergency(): t.pallet_election_provider_multi_phase.Phase.Emergency { - return { type: "Emergency" } - } -} - -export interface RawSolution { - solution: t.polkadot_runtime.NposCompactSolution16 - score: t.sp_npos_elections.ElectionScore - round: t.u32 -} - -export function RawSolution(value: t.pallet_election_provider_multi_phase.RawSolution) { - return value -} - -export interface ReadySolution { - supports: Array<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> - score: t.sp_npos_elections.ElectionScore - compute: t.pallet_election_provider_multi_phase.ElectionCompute -} - -export function ReadySolution(value: t.pallet_election_provider_multi_phase.ReadySolution) { - return value -} - -export interface RoundSnapshot { - voters: Array<[t.sp_core.crypto.AccountId32, t.u64, Array]> - targets: Array -} - -export function RoundSnapshot(value: t.pallet_election_provider_multi_phase.RoundSnapshot) { - return value -} - -export interface SolutionOrSnapshotSize { - voters: t.Compact - targets: t.Compact -} - -export function SolutionOrSnapshotSize( - value: t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize, -) { - return value -} diff --git a/codegen/_output/westend/pallet_election_provider_multi_phase/signed.ts b/codegen/_output/westend/pallet_election_provider_multi_phase/signed.ts deleted file mode 100644 index f4a92ea3f..000000000 --- a/codegen/_output/westend/pallet_election_provider_multi_phase/signed.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $signedSubmission: $.Codec< - t.pallet_election_provider_multi_phase.signed.SignedSubmission -> = _codec.$610 - -export interface SignedSubmission { - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 - raw_solution: t.pallet_election_provider_multi_phase.RawSolution - call_fee: t.u128 -} - -export function SignedSubmission( - value: t.pallet_election_provider_multi_phase.signed.SignedSubmission, -) { - return value -} diff --git a/codegen/_output/westend/pallet_elections_phragmen/mod.ts b/codegen/_output/westend/pallet_elections_phragmen/mod.ts deleted file mode 100644 index b45ea1046..000000000 --- a/codegen/_output/westend/pallet_elections_phragmen/mod.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $renouncing: $.Codec = _codec.$242 - -export const $seatHolder: $.Codec = _codec.$551 - -export const $voter: $.Codec = _codec.$552 - -export type Renouncing = - | t.pallet_elections_phragmen.Renouncing.Member - | t.pallet_elections_phragmen.Renouncing.RunnerUp - | t.pallet_elections_phragmen.Renouncing.Candidate -export namespace Renouncing { - export interface Member { - type: "Member" - } - export interface RunnerUp { - type: "RunnerUp" - } - export interface Candidate { - type: "Candidate" - value: t.Compact - } - export function Member(): t.pallet_elections_phragmen.Renouncing.Member { - return { type: "Member" } - } - export function RunnerUp(): t.pallet_elections_phragmen.Renouncing.RunnerUp { - return { type: "RunnerUp" } - } - export function Candidate( - value: t.pallet_elections_phragmen.Renouncing.Candidate["value"], - ): t.pallet_elections_phragmen.Renouncing.Candidate { - return { type: "Candidate", value } - } -} - -export interface SeatHolder { - who: t.sp_core.crypto.AccountId32 - stake: t.u128 - deposit: t.u128 -} - -export function SeatHolder(value: t.pallet_elections_phragmen.SeatHolder) { - return value -} - -export interface Voter { - votes: Array - stake: t.u128 - deposit: t.u128 -} - -export function Voter(value: t.pallet_elections_phragmen.Voter) { - return value -} diff --git a/codegen/_output/westend/pallet_fast_unstake/types.ts b/codegen/_output/westend/pallet_fast_unstake/types.ts deleted file mode 100644 index 9714fd8b5..000000000 --- a/codegen/_output/westend/pallet_fast_unstake/types.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $unstakeRequest: $.Codec = _codec.$634 - -export interface UnstakeRequest { - stash: t.sp_core.crypto.AccountId32 - checked: Array - deposit: t.u128 -} - -export function UnstakeRequest(value: t.pallet_fast_unstake.types.UnstakeRequest) { - return value -} diff --git a/codegen/_output/westend/pallet_grandpa/mod.ts b/codegen/_output/westend/pallet_grandpa/mod.ts deleted file mode 100644 index fc0234231..000000000 --- a/codegen/_output/westend/pallet_grandpa/mod.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $storedPendingChange: $.Codec = _codec.$517 - -export const $storedState: $.Codec = _codec.$516 - -export interface StoredPendingChange { - scheduled_at: t.u32 - delay: t.u32 - next_authorities: Array<[t.sp_finality_grandpa.app.Public, t.u64]> - forced: t.u32 | undefined -} - -export function StoredPendingChange(value: t.pallet_grandpa.StoredPendingChange) { - return value -} - -export type StoredState = - | t.pallet_grandpa.StoredState.Live - | t.pallet_grandpa.StoredState.PendingPause - | t.pallet_grandpa.StoredState.Paused - | t.pallet_grandpa.StoredState.PendingResume -export namespace StoredState { - export interface Live { - type: "Live" - } - export interface PendingPause { - type: "PendingPause" - scheduled_at: t.u32 - delay: t.u32 - } - export interface Paused { - type: "Paused" - } - export interface PendingResume { - type: "PendingResume" - scheduled_at: t.u32 - delay: t.u32 - } - export function Live(): t.pallet_grandpa.StoredState.Live { - return { type: "Live" } - } - export function PendingPause( - value: Omit, - ): t.pallet_grandpa.StoredState.PendingPause { - return { type: "PendingPause", ...value } - } - export function Paused(): t.pallet_grandpa.StoredState.Paused { - return { type: "Paused" } - } - export function PendingResume( - value: Omit, - ): t.pallet_grandpa.StoredState.PendingResume { - return { type: "PendingResume", ...value } - } -} diff --git a/codegen/_output/westend/pallet_identity/types.ts b/codegen/_output/westend/pallet_identity/types.ts deleted file mode 100644 index 61a8e7b01..000000000 --- a/codegen/_output/westend/pallet_identity/types.ts +++ /dev/null @@ -1,498 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $data: $.Codec = _codec.$267 - -export const $identityField: $.Codec = _codec.$301 - -export const $identityInfo: $.Codec = _codec.$264 - -export const $judgement: $.Codec = _codec.$302 - -export const $registrarInfo: $.Codec = _codec.$576 - -export const $registration: $.Codec = _codec.$568 - -export type Data = - | t.pallet_identity.types.Data.None - | t.pallet_identity.types.Data.Raw0 - | t.pallet_identity.types.Data.Raw1 - | t.pallet_identity.types.Data.Raw2 - | t.pallet_identity.types.Data.Raw3 - | t.pallet_identity.types.Data.Raw4 - | t.pallet_identity.types.Data.Raw5 - | t.pallet_identity.types.Data.Raw6 - | t.pallet_identity.types.Data.Raw7 - | t.pallet_identity.types.Data.Raw8 - | t.pallet_identity.types.Data.Raw9 - | t.pallet_identity.types.Data.Raw10 - | t.pallet_identity.types.Data.Raw11 - | t.pallet_identity.types.Data.Raw12 - | t.pallet_identity.types.Data.Raw13 - | t.pallet_identity.types.Data.Raw14 - | t.pallet_identity.types.Data.Raw15 - | t.pallet_identity.types.Data.Raw16 - | t.pallet_identity.types.Data.Raw17 - | t.pallet_identity.types.Data.Raw18 - | t.pallet_identity.types.Data.Raw19 - | t.pallet_identity.types.Data.Raw20 - | t.pallet_identity.types.Data.Raw21 - | t.pallet_identity.types.Data.Raw22 - | t.pallet_identity.types.Data.Raw23 - | t.pallet_identity.types.Data.Raw24 - | t.pallet_identity.types.Data.Raw25 - | t.pallet_identity.types.Data.Raw26 - | t.pallet_identity.types.Data.Raw27 - | t.pallet_identity.types.Data.Raw28 - | t.pallet_identity.types.Data.Raw29 - | t.pallet_identity.types.Data.Raw30 - | t.pallet_identity.types.Data.Raw31 - | t.pallet_identity.types.Data.Raw32 - | t.pallet_identity.types.Data.BlakeTwo256 - | t.pallet_identity.types.Data.Sha256 - | t.pallet_identity.types.Data.Keccak256 - | t.pallet_identity.types.Data.ShaThree256 -export namespace Data { - export interface None { - type: "None" - } - export interface Raw0 { - type: "Raw0" - value: Uint8Array - } - export interface Raw1 { - type: "Raw1" - value: Uint8Array - } - export interface Raw2 { - type: "Raw2" - value: Uint8Array - } - export interface Raw3 { - type: "Raw3" - value: Uint8Array - } - export interface Raw4 { - type: "Raw4" - value: Uint8Array - } - export interface Raw5 { - type: "Raw5" - value: Uint8Array - } - export interface Raw6 { - type: "Raw6" - value: Uint8Array - } - export interface Raw7 { - type: "Raw7" - value: Uint8Array - } - export interface Raw8 { - type: "Raw8" - value: Uint8Array - } - export interface Raw9 { - type: "Raw9" - value: Uint8Array - } - export interface Raw10 { - type: "Raw10" - value: Uint8Array - } - export interface Raw11 { - type: "Raw11" - value: Uint8Array - } - export interface Raw12 { - type: "Raw12" - value: Uint8Array - } - export interface Raw13 { - type: "Raw13" - value: Uint8Array - } - export interface Raw14 { - type: "Raw14" - value: Uint8Array - } - export interface Raw15 { - type: "Raw15" - value: Uint8Array - } - export interface Raw16 { - type: "Raw16" - value: Uint8Array - } - export interface Raw17 { - type: "Raw17" - value: Uint8Array - } - export interface Raw18 { - type: "Raw18" - value: Uint8Array - } - export interface Raw19 { - type: "Raw19" - value: Uint8Array - } - export interface Raw20 { - type: "Raw20" - value: Uint8Array - } - export interface Raw21 { - type: "Raw21" - value: Uint8Array - } - export interface Raw22 { - type: "Raw22" - value: Uint8Array - } - export interface Raw23 { - type: "Raw23" - value: Uint8Array - } - export interface Raw24 { - type: "Raw24" - value: Uint8Array - } - export interface Raw25 { - type: "Raw25" - value: Uint8Array - } - export interface Raw26 { - type: "Raw26" - value: Uint8Array - } - export interface Raw27 { - type: "Raw27" - value: Uint8Array - } - export interface Raw28 { - type: "Raw28" - value: Uint8Array - } - export interface Raw29 { - type: "Raw29" - value: Uint8Array - } - export interface Raw30 { - type: "Raw30" - value: Uint8Array - } - export interface Raw31 { - type: "Raw31" - value: Uint8Array - } - export interface Raw32 { - type: "Raw32" - value: Uint8Array - } - export interface BlakeTwo256 { - type: "BlakeTwo256" - value: Uint8Array - } - export interface Sha256 { - type: "Sha256" - value: Uint8Array - } - export interface Keccak256 { - type: "Keccak256" - value: Uint8Array - } - export interface ShaThree256 { - type: "ShaThree256" - value: Uint8Array - } - export function None(): t.pallet_identity.types.Data.None { - return { type: "None" } - } - export function Raw0( - value: t.pallet_identity.types.Data.Raw0["value"], - ): t.pallet_identity.types.Data.Raw0 { - return { type: "Raw0", value } - } - export function Raw1( - value: t.pallet_identity.types.Data.Raw1["value"], - ): t.pallet_identity.types.Data.Raw1 { - return { type: "Raw1", value } - } - export function Raw2( - value: t.pallet_identity.types.Data.Raw2["value"], - ): t.pallet_identity.types.Data.Raw2 { - return { type: "Raw2", value } - } - export function Raw3( - value: t.pallet_identity.types.Data.Raw3["value"], - ): t.pallet_identity.types.Data.Raw3 { - return { type: "Raw3", value } - } - export function Raw4( - value: t.pallet_identity.types.Data.Raw4["value"], - ): t.pallet_identity.types.Data.Raw4 { - return { type: "Raw4", value } - } - export function Raw5( - value: t.pallet_identity.types.Data.Raw5["value"], - ): t.pallet_identity.types.Data.Raw5 { - return { type: "Raw5", value } - } - export function Raw6( - value: t.pallet_identity.types.Data.Raw6["value"], - ): t.pallet_identity.types.Data.Raw6 { - return { type: "Raw6", value } - } - export function Raw7( - value: t.pallet_identity.types.Data.Raw7["value"], - ): t.pallet_identity.types.Data.Raw7 { - return { type: "Raw7", value } - } - export function Raw8( - value: t.pallet_identity.types.Data.Raw8["value"], - ): t.pallet_identity.types.Data.Raw8 { - return { type: "Raw8", value } - } - export function Raw9( - value: t.pallet_identity.types.Data.Raw9["value"], - ): t.pallet_identity.types.Data.Raw9 { - return { type: "Raw9", value } - } - export function Raw10( - value: t.pallet_identity.types.Data.Raw10["value"], - ): t.pallet_identity.types.Data.Raw10 { - return { type: "Raw10", value } - } - export function Raw11( - value: t.pallet_identity.types.Data.Raw11["value"], - ): t.pallet_identity.types.Data.Raw11 { - return { type: "Raw11", value } - } - export function Raw12( - value: t.pallet_identity.types.Data.Raw12["value"], - ): t.pallet_identity.types.Data.Raw12 { - return { type: "Raw12", value } - } - export function Raw13( - value: t.pallet_identity.types.Data.Raw13["value"], - ): t.pallet_identity.types.Data.Raw13 { - return { type: "Raw13", value } - } - export function Raw14( - value: t.pallet_identity.types.Data.Raw14["value"], - ): t.pallet_identity.types.Data.Raw14 { - return { type: "Raw14", value } - } - export function Raw15( - value: t.pallet_identity.types.Data.Raw15["value"], - ): t.pallet_identity.types.Data.Raw15 { - return { type: "Raw15", value } - } - export function Raw16( - value: t.pallet_identity.types.Data.Raw16["value"], - ): t.pallet_identity.types.Data.Raw16 { - return { type: "Raw16", value } - } - export function Raw17( - value: t.pallet_identity.types.Data.Raw17["value"], - ): t.pallet_identity.types.Data.Raw17 { - return { type: "Raw17", value } - } - export function Raw18( - value: t.pallet_identity.types.Data.Raw18["value"], - ): t.pallet_identity.types.Data.Raw18 { - return { type: "Raw18", value } - } - export function Raw19( - value: t.pallet_identity.types.Data.Raw19["value"], - ): t.pallet_identity.types.Data.Raw19 { - return { type: "Raw19", value } - } - export function Raw20( - value: t.pallet_identity.types.Data.Raw20["value"], - ): t.pallet_identity.types.Data.Raw20 { - return { type: "Raw20", value } - } - export function Raw21( - value: t.pallet_identity.types.Data.Raw21["value"], - ): t.pallet_identity.types.Data.Raw21 { - return { type: "Raw21", value } - } - export function Raw22( - value: t.pallet_identity.types.Data.Raw22["value"], - ): t.pallet_identity.types.Data.Raw22 { - return { type: "Raw22", value } - } - export function Raw23( - value: t.pallet_identity.types.Data.Raw23["value"], - ): t.pallet_identity.types.Data.Raw23 { - return { type: "Raw23", value } - } - export function Raw24( - value: t.pallet_identity.types.Data.Raw24["value"], - ): t.pallet_identity.types.Data.Raw24 { - return { type: "Raw24", value } - } - export function Raw25( - value: t.pallet_identity.types.Data.Raw25["value"], - ): t.pallet_identity.types.Data.Raw25 { - return { type: "Raw25", value } - } - export function Raw26( - value: t.pallet_identity.types.Data.Raw26["value"], - ): t.pallet_identity.types.Data.Raw26 { - return { type: "Raw26", value } - } - export function Raw27( - value: t.pallet_identity.types.Data.Raw27["value"], - ): t.pallet_identity.types.Data.Raw27 { - return { type: "Raw27", value } - } - export function Raw28( - value: t.pallet_identity.types.Data.Raw28["value"], - ): t.pallet_identity.types.Data.Raw28 { - return { type: "Raw28", value } - } - export function Raw29( - value: t.pallet_identity.types.Data.Raw29["value"], - ): t.pallet_identity.types.Data.Raw29 { - return { type: "Raw29", value } - } - export function Raw30( - value: t.pallet_identity.types.Data.Raw30["value"], - ): t.pallet_identity.types.Data.Raw30 { - return { type: "Raw30", value } - } - export function Raw31( - value: t.pallet_identity.types.Data.Raw31["value"], - ): t.pallet_identity.types.Data.Raw31 { - return { type: "Raw31", value } - } - export function Raw32( - value: t.pallet_identity.types.Data.Raw32["value"], - ): t.pallet_identity.types.Data.Raw32 { - return { type: "Raw32", value } - } - export function BlakeTwo256( - value: t.pallet_identity.types.Data.BlakeTwo256["value"], - ): t.pallet_identity.types.Data.BlakeTwo256 { - return { type: "BlakeTwo256", value } - } - export function Sha256( - value: t.pallet_identity.types.Data.Sha256["value"], - ): t.pallet_identity.types.Data.Sha256 { - return { type: "Sha256", value } - } - export function Keccak256( - value: t.pallet_identity.types.Data.Keccak256["value"], - ): t.pallet_identity.types.Data.Keccak256 { - return { type: "Keccak256", value } - } - export function ShaThree256( - value: t.pallet_identity.types.Data.ShaThree256["value"], - ): t.pallet_identity.types.Data.ShaThree256 { - return { type: "ShaThree256", value } - } -} - -export type IdentityField = - | "Display" - | "Legal" - | "Web" - | "Riot" - | "Email" - | "PgpFingerprint" - | "Image" - | "Twitter" - -export interface IdentityInfo { - additional: Array<[t.pallet_identity.types.Data, t.pallet_identity.types.Data]> - display: t.pallet_identity.types.Data - legal: t.pallet_identity.types.Data - web: t.pallet_identity.types.Data - riot: t.pallet_identity.types.Data - email: t.pallet_identity.types.Data - pgp_fingerprint: Uint8Array | undefined - image: t.pallet_identity.types.Data - twitter: t.pallet_identity.types.Data -} - -export function IdentityInfo(value: t.pallet_identity.types.IdentityInfo) { - return value -} - -export type Judgement = - | t.pallet_identity.types.Judgement.Unknown - | t.pallet_identity.types.Judgement.FeePaid - | t.pallet_identity.types.Judgement.Reasonable - | t.pallet_identity.types.Judgement.KnownGood - | t.pallet_identity.types.Judgement.OutOfDate - | t.pallet_identity.types.Judgement.LowQuality - | t.pallet_identity.types.Judgement.Erroneous -export namespace Judgement { - export interface Unknown { - type: "Unknown" - } - export interface FeePaid { - type: "FeePaid" - value: t.u128 - } - export interface Reasonable { - type: "Reasonable" - } - export interface KnownGood { - type: "KnownGood" - } - export interface OutOfDate { - type: "OutOfDate" - } - export interface LowQuality { - type: "LowQuality" - } - export interface Erroneous { - type: "Erroneous" - } - export function Unknown(): t.pallet_identity.types.Judgement.Unknown { - return { type: "Unknown" } - } - export function FeePaid( - value: t.pallet_identity.types.Judgement.FeePaid["value"], - ): t.pallet_identity.types.Judgement.FeePaid { - return { type: "FeePaid", value } - } - export function Reasonable(): t.pallet_identity.types.Judgement.Reasonable { - return { type: "Reasonable" } - } - export function KnownGood(): t.pallet_identity.types.Judgement.KnownGood { - return { type: "KnownGood" } - } - export function OutOfDate(): t.pallet_identity.types.Judgement.OutOfDate { - return { type: "OutOfDate" } - } - export function LowQuality(): t.pallet_identity.types.Judgement.LowQuality { - return { type: "LowQuality" } - } - export function Erroneous(): t.pallet_identity.types.Judgement.Erroneous { - return { type: "Erroneous" } - } -} - -export interface RegistrarInfo { - account: t.sp_core.crypto.AccountId32 - fee: t.u128 - fields: t.u64 -} - -export function RegistrarInfo(value: t.pallet_identity.types.RegistrarInfo) { - return value -} - -export interface Registration { - judgements: Array<[t.u32, t.pallet_identity.types.Judgement]> - deposit: t.u128 - info: t.pallet_identity.types.IdentityInfo -} - -export function Registration(value: t.pallet_identity.types.Registration) { - return value -} diff --git a/codegen/_output/westend/pallet_im_online/mod.ts b/codegen/_output/westend/pallet_im_online/mod.ts deleted file mode 100644 index ff5fa7fb4..000000000 --- a/codegen/_output/westend/pallet_im_online/mod.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as sr25519 from "./sr25519/mod.ts" - -export const $boundedOpaqueNetworkState: $.Codec = - _codec.$523 - -export const $heartbeat: $.Codec = _codec.$228 - -export interface BoundedOpaqueNetworkState { - peer_id: Uint8Array - external_addresses: Array -} - -export function BoundedOpaqueNetworkState(value: t.pallet_im_online.BoundedOpaqueNetworkState) { - return value -} - -export interface Heartbeat { - block_number: t.u32 - network_state: t.sp_core.offchain.OpaqueNetworkState - session_index: t.u32 - authority_index: t.u32 - validators_len: t.u32 -} - -export function Heartbeat(value: t.pallet_im_online.Heartbeat) { - return value -} diff --git a/codegen/_output/westend/pallet_im_online/sr25519/app_sr25519.ts b/codegen/_output/westend/pallet_im_online/sr25519/app_sr25519.ts deleted file mode 100644 index 61759e84e..000000000 --- a/codegen/_output/westend/pallet_im_online/sr25519/app_sr25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$53 - -export const $signature: $.Codec = _codec.$233 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.pallet_im_online.sr25519.app_sr25519.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.pallet_im_online.sr25519.app_sr25519.Signature) { - return value -} diff --git a/codegen/_output/westend/pallet_multisig/mod.ts b/codegen/_output/westend/pallet_multisig/mod.ts deleted file mode 100644 index 3e930b936..000000000 --- a/codegen/_output/westend/pallet_multisig/mod.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $multisig: $.Codec = _codec.$589 - -export const $timepoint: $.Codec = _codec.$82 - -export interface Multisig { - when: t.pallet_multisig.Timepoint - deposit: t.u128 - depositor: t.sp_core.crypto.AccountId32 - approvals: Array -} - -export function Multisig(value: t.pallet_multisig.Multisig) { - return value -} - -export interface Timepoint { - height: t.u32 - index: t.u32 -} - -export function Timepoint(value: t.pallet_multisig.Timepoint) { - return value -} diff --git a/codegen/_output/westend/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts b/codegen/_output/westend/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts deleted file mode 100644 index fb559f463..000000000 --- a/codegen/_output/westend/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" - -export const $accountId32: $.Codec< - t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 -> = _codec.$373 - -export type AccountId32 = - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set - | t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove -export namespace AccountId32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_core.crypto.AccountId32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/westend/pallet_nomination_pools/ConfigOp/mod.ts b/codegen/_output/westend/pallet_nomination_pools/ConfigOp/mod.ts deleted file mode 100644 index d2e7ee56d..000000000 --- a/codegen/_output/westend/pallet_nomination_pools/ConfigOp/mod.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as $$sp_core from "./$$sp_core/mod.ts" - -export const $$$u128: $.Codec = _codec.$371 - -export const $$$u32: $.Codec = _codec.$372 - -export type $$u128 = - | t.pallet_nomination_pools.ConfigOp.$$u128.Noop - | t.pallet_nomination_pools.ConfigOp.$$u128.Set - | t.pallet_nomination_pools.ConfigOp.$$u128.Remove -export namespace $$u128 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u128 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$u128.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$u128.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$u128.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$u128.Remove { - return { type: "Remove" } - } -} - -export type $$u32 = - | t.pallet_nomination_pools.ConfigOp.$$u32.Noop - | t.pallet_nomination_pools.ConfigOp.$$u32.Set - | t.pallet_nomination_pools.ConfigOp.$$u32.Remove -export namespace $$u32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_nomination_pools.ConfigOp.$$u32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_nomination_pools.ConfigOp.$$u32.Set["value"], - ): t.pallet_nomination_pools.ConfigOp.$$u32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_nomination_pools.ConfigOp.$$u32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/westend/pallet_nomination_pools/mod.ts b/codegen/_output/westend/pallet_nomination_pools/mod.ts deleted file mode 100644 index e7343ef6b..000000000 --- a/codegen/_output/westend/pallet_nomination_pools/mod.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as ConfigOp from "./ConfigOp/mod.ts" -export * as pallet from "./pallet.ts" - -export const $bondExtra: $.Codec = _codec.$370 - -export const $bondedPoolInner: $.Codec = _codec.$622 - -export const $poolMember: $.Codec = _codec.$617 - -export const $poolRoles: $.Codec = _codec.$623 - -export const $poolState: $.Codec = _codec.$91 - -export const $rewardPool: $.Codec = _codec.$624 - -export const $subPools: $.Codec = _codec.$625 - -export const $unbondPool: $.Codec = _codec.$626 - -export type BondExtra = - | t.pallet_nomination_pools.BondExtra.FreeBalance - | t.pallet_nomination_pools.BondExtra.Rewards -export namespace BondExtra { - export interface FreeBalance { - type: "FreeBalance" - value: t.u128 - } - export interface Rewards { - type: "Rewards" - } - export function FreeBalance( - value: t.pallet_nomination_pools.BondExtra.FreeBalance["value"], - ): t.pallet_nomination_pools.BondExtra.FreeBalance { - return { type: "FreeBalance", value } - } - export function Rewards(): t.pallet_nomination_pools.BondExtra.Rewards { - return { type: "Rewards" } - } -} - -export interface BondedPoolInner { - points: t.u128 - state: t.pallet_nomination_pools.PoolState - member_counter: t.u32 - roles: t.pallet_nomination_pools.PoolRoles -} - -export function BondedPoolInner(value: t.pallet_nomination_pools.BondedPoolInner) { - return value -} - -export interface PoolMember { - pool_id: t.u32 - points: t.u128 - last_recorded_reward_counter: t.sp_arithmetic.fixed_point.FixedU128 - unbonding_eras: Map -} - -export function PoolMember(value: t.pallet_nomination_pools.PoolMember) { - return value -} - -export interface PoolRoles { - depositor: t.sp_core.crypto.AccountId32 - root: t.sp_core.crypto.AccountId32 | undefined - nominator: t.sp_core.crypto.AccountId32 | undefined - state_toggler: t.sp_core.crypto.AccountId32 | undefined -} - -export function PoolRoles(value: t.pallet_nomination_pools.PoolRoles) { - return value -} - -export type PoolState = "Open" | "Blocked" | "Destroying" - -export interface RewardPool { - last_recorded_reward_counter: t.sp_arithmetic.fixed_point.FixedU128 - last_recorded_total_payouts: t.u128 - total_rewards_claimed: t.u128 -} - -export function RewardPool(value: t.pallet_nomination_pools.RewardPool) { - return value -} - -export interface SubPools { - no_era: t.pallet_nomination_pools.UnbondPool - with_era: Map -} - -export function SubPools(value: t.pallet_nomination_pools.SubPools) { - return value -} - -export interface UnbondPool { - points: t.u128 - balance: t.u128 -} - -export function UnbondPool(value: t.pallet_nomination_pools.UnbondPool) { - return value -} diff --git a/codegen/_output/westend/pallet_preimage/mod.ts b/codegen/_output/westend/pallet_preimage/mod.ts deleted file mode 100644 index 23fdfaa18..000000000 --- a/codegen/_output/westend/pallet_preimage/mod.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $requestStatus: $.Codec = _codec.$451 - -export type RequestStatus = - | t.pallet_preimage.RequestStatus.Unrequested - | t.pallet_preimage.RequestStatus.Requested -export namespace RequestStatus { - export interface Unrequested { - type: "Unrequested" - deposit: [t.sp_core.crypto.AccountId32, t.u128] - len: t.u32 - } - export interface Requested { - type: "Requested" - deposit: [t.sp_core.crypto.AccountId32, t.u128] | undefined - count: t.u32 - len: t.u32 | undefined - } - export function Unrequested( - value: Omit, - ): t.pallet_preimage.RequestStatus.Unrequested { - return { type: "Unrequested", ...value } - } - export function Requested( - value: Omit, - ): t.pallet_preimage.RequestStatus.Requested { - return { type: "Requested", ...value } - } -} diff --git a/codegen/_output/westend/pallet_proxy/mod.ts b/codegen/_output/westend/pallet_proxy/mod.ts deleted file mode 100644 index 77dc9f480..000000000 --- a/codegen/_output/westend/pallet_proxy/mod.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $announcement: $.Codec = _codec.$585 - -export const $proxyDefinition: $.Codec = _codec.$581 - -export interface Announcement { - real: t.sp_core.crypto.AccountId32 - call_hash: t.primitive_types.H256 - height: t.u32 -} - -export function Announcement(value: t.pallet_proxy.Announcement) { - return value -} - -export interface ProxyDefinition { - delegate: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 -} - -export function ProxyDefinition(value: t.pallet_proxy.ProxyDefinition) { - return value -} diff --git a/codegen/_output/westend/pallet_scheduler/mod.ts b/codegen/_output/westend/pallet_scheduler/mod.ts deleted file mode 100644 index 797decaad..000000000 --- a/codegen/_output/westend/pallet_scheduler/mod.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $scheduled: $.Codec = _codec.$179 - -export interface Scheduled { - maybe_id: Uint8Array | undefined - priority: t.u8 - call: t.frame_support.traits.preimages.Bounded - maybe_periodic: [t.u32, t.u32] | undefined - origin: t.polkadot_runtime.OriginCaller -} - -export function Scheduled(value: t.pallet_scheduler.Scheduled) { - return value -} diff --git a/codegen/_output/westend/pallet_staking/mod.ts b/codegen/_output/westend/pallet_staking/mod.ts deleted file mode 100644 index 5843c06ba..000000000 --- a/codegen/_output/westend/pallet_staking/mod.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet/mod.ts" -export * as slashing from "./slashing.ts" - -export const $activeEraInfo: $.Codec = _codec.$492 - -export const $eraRewardPoints: $.Codec = _codec.$495 - -export const $exposure: $.Codec = _codec.$57 - -export const $forcing: $.Codec = _codec.$499 - -export const $individualExposure: $.Codec = _codec.$60 - -export const $nominations: $.Codec = _codec.$490 - -export const $releases: $.Codec = _codec.$507 - -export const $rewardDestination: $.Codec = _codec.$203 - -export const $stakingLedger: $.Codec = _codec.$485 - -export const $unappliedSlash: $.Codec = _codec.$501 - -export const $unlockChunk: $.Codec = _codec.$487 - -export const $validatorPrefs: $.Codec = _codec.$40 - -export interface ActiveEraInfo { - index: t.u32 - start: t.u64 | undefined -} - -export function ActiveEraInfo(value: t.pallet_staking.ActiveEraInfo) { - return value -} - -export interface EraRewardPoints { - total: t.u32 - individual: Map -} - -export function EraRewardPoints(value: t.pallet_staking.EraRewardPoints) { - return value -} - -export interface Exposure { - total: t.Compact - own: t.Compact - others: Array -} - -export function Exposure(value: t.pallet_staking.Exposure) { - return value -} - -export type Forcing = "NotForcing" | "ForceNew" | "ForceNone" | "ForceAlways" - -export interface IndividualExposure { - who: t.sp_core.crypto.AccountId32 - value: t.Compact -} - -export function IndividualExposure(value: t.pallet_staking.IndividualExposure) { - return value -} - -export interface Nominations { - targets: Array - submitted_in: t.u32 - suppressed: boolean -} - -export function Nominations(value: t.pallet_staking.Nominations) { - return value -} - -export type Releases = - | "V1_0_0Ancient" - | "V2_0_0" - | "V3_0_0" - | "V4_0_0" - | "V5_0_0" - | "V6_0_0" - | "V7_0_0" - | "V8_0_0" - | "V9_0_0" - | "V10_0_0" - | "V11_0_0" - | "V12_0_0" - -export type RewardDestination = - | t.pallet_staking.RewardDestination.Staked - | t.pallet_staking.RewardDestination.Stash - | t.pallet_staking.RewardDestination.Controller - | t.pallet_staking.RewardDestination.Account - | t.pallet_staking.RewardDestination.None -export namespace RewardDestination { - export interface Staked { - type: "Staked" - } - export interface Stash { - type: "Stash" - } - export interface Controller { - type: "Controller" - } - export interface Account { - type: "Account" - value: t.sp_core.crypto.AccountId32 - } - export interface None { - type: "None" - } - export function Staked(): t.pallet_staking.RewardDestination.Staked { - return { type: "Staked" } - } - export function Stash(): t.pallet_staking.RewardDestination.Stash { - return { type: "Stash" } - } - export function Controller(): t.pallet_staking.RewardDestination.Controller { - return { type: "Controller" } - } - export function Account( - value: t.pallet_staking.RewardDestination.Account["value"], - ): t.pallet_staking.RewardDestination.Account { - return { type: "Account", value } - } - export function None(): t.pallet_staking.RewardDestination.None { - return { type: "None" } - } -} - -export interface StakingLedger { - stash: t.sp_core.crypto.AccountId32 - total: t.Compact - active: t.Compact - unlocking: Array - claimed_rewards: Array -} - -export function StakingLedger(value: t.pallet_staking.StakingLedger) { - return value -} - -export interface UnappliedSlash { - validator: t.sp_core.crypto.AccountId32 - own: t.u128 - others: Array<[t.sp_core.crypto.AccountId32, t.u128]> - reporters: Array - payout: t.u128 -} - -export function UnappliedSlash(value: t.pallet_staking.UnappliedSlash) { - return value -} - -export interface UnlockChunk { - value: t.Compact - era: t.Compact -} - -export function UnlockChunk(value: t.pallet_staking.UnlockChunk) { - return value -} - -export interface ValidatorPrefs { - commission: t.Compact - blocked: boolean -} - -export function ValidatorPrefs(value: t.pallet_staking.ValidatorPrefs) { - return value -} diff --git a/codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts b/codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts deleted file mode 100644 index 34e3f793e..000000000 --- a/codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { $ } from "../../../../../capi.ts" -import * as _codec from "../../../../../codecs.ts" -import type * as t from "../../../../../mod.ts" - -export const $perbill: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill -> = _codec.$210 - -export const $percent: $.Codec< - t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent -> = _codec.$209 - -export type Perbill = - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove -export namespace Perbill { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_arithmetic.per_things.Perbill - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove { - return { type: "Remove" } - } -} - -export type Percent = - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove -export namespace Percent { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.sp_arithmetic.per_things.Percent - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/mod.ts b/codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/mod.ts deleted file mode 100644 index c64836e7a..000000000 --- a/codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/mod.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { $ } from "../../../../capi.ts" -import * as _codec from "../../../../codecs.ts" -import type * as t from "../../../../mod.ts" - -export * as $$sp_arithmetic from "./$$sp_arithmetic/mod.ts" - -export const $$$u128: $.Codec = _codec.$207 - -export const $$$u32: $.Codec = _codec.$208 - -export type $$u128 = - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove -export namespace $$u128 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u128 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove { - return { type: "Remove" } - } -} - -export type $$u32 = - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set - | t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove -export namespace $$u32 { - export interface Noop { - type: "Noop" - } - export interface Set { - type: "Set" - value: t.u32 - } - export interface Remove { - type: "Remove" - } - export function Noop(): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop { - return { type: "Noop" } - } - export function Set( - value: t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set["value"], - ): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set { - return { type: "Set", value } - } - export function Remove(): t.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove { - return { type: "Remove" } - } -} diff --git a/codegen/_output/westend/pallet_staking/slashing.ts b/codegen/_output/westend/pallet_staking/slashing.ts deleted file mode 100644 index cc2a18d2a..000000000 --- a/codegen/_output/westend/pallet_staking/slashing.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $slashingSpans: $.Codec = _codec.$503 - -export const $spanRecord: $.Codec = _codec.$504 - -export interface SlashingSpans { - span_index: t.u32 - last_start: t.u32 - last_nonzero_slash: t.u32 - prior: Array -} - -export function SlashingSpans(value: t.pallet_staking.slashing.SlashingSpans) { - return value -} - -export interface SpanRecord { - slashed: t.u128 - paid_out: t.u128 -} - -export function SpanRecord(value: t.pallet_staking.slashing.SpanRecord) { - return value -} diff --git a/codegen/_output/westend/pallet_tips/mod.ts b/codegen/_output/westend/pallet_tips/mod.ts deleted file mode 100644 index 522e3fef6..000000000 --- a/codegen/_output/westend/pallet_tips/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $openTip: $.Codec = _codec.$598 - -export interface OpenTip { - reason: t.primitive_types.H256 - who: t.sp_core.crypto.AccountId32 - finder: t.sp_core.crypto.AccountId32 - deposit: t.u128 - closes: t.u32 | undefined - tips: Array<[t.sp_core.crypto.AccountId32, t.u128]> - finders_fee: boolean -} - -export function OpenTip(value: t.pallet_tips.OpenTip) { - return value -} diff --git a/codegen/_output/westend/pallet_transaction_payment/mod.ts b/codegen/_output/westend/pallet_transaction_payment/mod.ts deleted file mode 100644 index 9d33267c4..000000000 --- a/codegen/_output/westend/pallet_transaction_payment/mod.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $releases: $.Codec = _codec.$480 - -export type Releases = "V1Ancient" | "V2" diff --git a/codegen/_output/westend/pallet_treasury/mod.ts b/codegen/_output/westend/pallet_treasury/mod.ts deleted file mode 100644 index 372f4c69e..000000000 --- a/codegen/_output/westend/pallet_treasury/mod.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $proposal: $.Codec = _codec.$556 - -export interface Proposal { - proposer: t.sp_core.crypto.AccountId32 - value: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 - bond: t.u128 -} - -export function Proposal(value: t.pallet_treasury.Proposal) { - return value -} diff --git a/codegen/_output/westend/pallet_vesting/mod.ts b/codegen/_output/westend/pallet_vesting/mod.ts deleted file mode 100644 index e4f930af2..000000000 --- a/codegen/_output/westend/pallet_vesting/mod.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as pallet from "./pallet.ts" -export * as vesting_info from "./vesting_info.ts" - -export const $releases: $.Codec = _codec.$565 - -export type Releases = "V0" | "V1" diff --git a/codegen/_output/westend/pallet_vesting/vesting_info.ts b/codegen/_output/westend/pallet_vesting/vesting_info.ts deleted file mode 100644 index 493a479c6..000000000 --- a/codegen/_output/westend/pallet_vesting/vesting_info.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $vestingInfo: $.Codec = _codec.$253 - -export interface VestingInfo { - locked: t.u128 - per_block: t.u128 - starting_block: t.u32 -} - -export function VestingInfo(value: t.pallet_vesting.vesting_info.VestingInfo) { - return value -} diff --git a/codegen/_output/westend/pallets/Auctions.ts b/codegen/_output/westend/pallets/Auctions.ts index 2a684058d..11ac25fc7 100644 --- a/codegen/_output/westend/pallets/Auctions.ts +++ b/codegen/_output/westend/pallets/Auctions.ts @@ -70,8 +70,8 @@ export const Winning = { * bid win. This amount is held throughout the range. */ export function bid( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { ...value, type: "bid" } } } @@ -80,7 +80,7 @@ export function bid( * * Can only be called by Root origin. */ -export function cancel_auction(): t.polkadot_runtime.RuntimeCall { +export function cancel_auction(): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { type: "cancel_auction" } } } @@ -92,7 +92,7 @@ export function cancel_auction(): t.polkadot_runtime.RuntimeCall { * `lease_period_index` of the initial lease period of the four that are to be auctioned. */ export function new_auction( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Auctions", value: { ...value, type: "new_auction" } } } diff --git a/codegen/_output/westend/pallets/Authorship.ts b/codegen/_output/westend/pallets/Authorship.ts index 83838aae1..a8a3ed241 100644 --- a/codegen/_output/westend/pallets/Authorship.ts +++ b/codegen/_output/westend/pallets/Authorship.ts @@ -30,7 +30,7 @@ export const Uncles = { /** Provide a set of uncles. */ export function set_uncles( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Authorship", value: { ...value, type: "set_uncles" } } } diff --git a/codegen/_output/westend/pallets/Babe.ts b/codegen/_output/westend/pallets/Babe.ts index 622165525..60c8ec3e0 100644 --- a/codegen/_output/westend/pallets/Babe.ts +++ b/codegen/_output/westend/pallets/Babe.ts @@ -203,8 +203,8 @@ export const UnderConstruction = { * not been enacted yet. */ export function plan_config_change( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "plan_config_change" } } } @@ -215,8 +215,8 @@ export function plan_config_change( * be reported. */ export function report_equivocation( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "report_equivocation" } } } @@ -231,7 +231,7 @@ export function report_equivocation( * reporter. */ export function report_equivocation_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Babe", value: { ...value, type: "report_equivocation_unsigned" } } } diff --git a/codegen/_output/westend/pallets/Balances.ts b/codegen/_output/westend/pallets/Balances.ts index e0a24d0af..94013e84d 100644 --- a/codegen/_output/westend/pallets/Balances.ts +++ b/codegen/_output/westend/pallets/Balances.ts @@ -88,8 +88,8 @@ export const TotalIssuance = { * # */ export function force_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "force_transfer" } } } @@ -99,8 +99,8 @@ export function force_transfer( * Can only be called by ROOT. */ export function force_unreserve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "force_unreserve" } } } @@ -115,8 +115,8 @@ export function force_unreserve( * The dispatch origin for this call is `root`. */ export function set_balance( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "set_balance" } } } @@ -148,8 +148,8 @@ export function set_balance( * # */ export function transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer" } } } @@ -173,8 +173,8 @@ export function transfer( * # */ export function transfer_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer_all" } } } @@ -187,7 +187,7 @@ export function transfer_all( * [`transfer`]: struct.Pallet.html#method.transfer */ export function transfer_keep_alive( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Balances", value: { ...value, type: "transfer_keep_alive" } } } diff --git a/codegen/_output/westend/pallets/Bounties.ts b/codegen/_output/westend/pallets/Bounties.ts index e28487021..38eb59c51 100644 --- a/codegen/_output/westend/pallets/Bounties.ts +++ b/codegen/_output/westend/pallets/Bounties.ts @@ -49,8 +49,8 @@ export const BountyDescriptions = { * # */ export function accept_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "accept_curator" } } } @@ -65,8 +65,8 @@ export function accept_curator( * # */ export function approve_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "approve_bounty" } } } @@ -84,8 +84,8 @@ export function approve_bounty( * # */ export function award_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "award_bounty" } } } @@ -101,8 +101,8 @@ export function award_bounty( * # */ export function claim_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "claim_bounty" } } } @@ -119,8 +119,8 @@ export function claim_bounty( * # */ export function close_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "close_bounty" } } } @@ -137,8 +137,8 @@ export function close_bounty( * # */ export function extend_bounty_expiry( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "extend_bounty_expiry" } } } @@ -157,8 +157,8 @@ export function extend_bounty_expiry( * - `description`: The description of this bounty. */ export function propose_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "propose_bounty" } } } @@ -172,8 +172,8 @@ export function propose_bounty( * # */ export function propose_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "propose_curator" } } } @@ -198,7 +198,7 @@ export function propose_curator( * # */ export function unassign_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Bounties", value: { ...value, type: "unassign_curator" } } } diff --git a/codegen/_output/westend/pallets/ChildBounties.ts b/codegen/_output/westend/pallets/ChildBounties.ts index 90a6ec24d..9e28106f9 100644 --- a/codegen/_output/westend/pallets/ChildBounties.ts +++ b/codegen/_output/westend/pallets/ChildBounties.ts @@ -72,8 +72,8 @@ export const ParentChildBounties = { * - `child_bounty_id`: Index of child bounty. */ export function accept_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "accept_curator" } } } @@ -99,8 +99,8 @@ export function accept_curator( * - `description`: Text description for the child-bounty. */ export function add_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "add_child_bounty" } } } @@ -124,8 +124,8 @@ export function add_child_bounty( * - `beneficiary`: Beneficiary account. */ export function award_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "award_child_bounty" } } } @@ -148,8 +148,8 @@ export function award_child_bounty( * - `child_bounty_id`: Index of child bounty. */ export function claim_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "claim_child_bounty" } } } @@ -178,8 +178,8 @@ export function claim_child_bounty( * - `child_bounty_id`: Index of child bounty. */ export function close_child_bounty( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "close_child_bounty" } } } @@ -201,8 +201,8 @@ export function close_child_bounty( * - `fee`: payment fee to child-bounty curator for execution. */ export function propose_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "propose_curator" } } } @@ -243,7 +243,7 @@ export function propose_curator( * - `child_bounty_id`: Index of child bounty. */ export function unassign_curator( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ChildBounties", value: { ...value, type: "unassign_curator" } } } diff --git a/codegen/_output/westend/pallets/Claims.ts b/codegen/_output/westend/pallets/Claims.ts index 0c28984e6..edf86e907 100644 --- a/codegen/_output/westend/pallets/Claims.ts +++ b/codegen/_output/westend/pallets/Claims.ts @@ -64,8 +64,8 @@ export const Vesting = { * */ export function attest( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "attest" } } } @@ -96,8 +96,8 @@ export function attest( * */ export function claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "claim" } } } @@ -130,8 +130,8 @@ export function claim( * */ export function claim_attest( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "claim_attest" } } } @@ -153,13 +153,13 @@ export function claim_attest( * */ export function mint_claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "mint_claim" } } } export function move_claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Claims", value: { ...value, type: "move_claim" } } } diff --git a/codegen/_output/westend/pallets/Configuration.ts b/codegen/_output/westend/pallets/Configuration.ts index 30cf79ed3..1406bb479 100644 --- a/codegen/_output/westend/pallets/Configuration.ts +++ b/codegen/_output/westend/pallets/Configuration.ts @@ -45,40 +45,40 @@ export const PendingConfigs = { */ export function set_bypass_consistency_check( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_bypass_consistency_check" } } } /** Set the availability period for parachains. */ export function set_chain_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_chain_availability_period" } } } /** Set the acceptance period for an included candidate. */ export function set_code_retention_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_code_retention_period" } } } /** Set the dispute conclusion by time out period. */ export function set_dispute_conclusion_by_time_out_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_conclusion_by_time_out_period" }, @@ -88,27 +88,30 @@ export function set_dispute_conclusion_by_time_out_period( /** Set the maximum number of dispute spam slots. */ export function set_dispute_max_spam_slots( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_max_spam_slots" } } } /** Set the dispute period, in number of sessions to keep for disputes. */ export function set_dispute_period( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_period" } } } /** Set the dispute post conclusion acceptance period. */ export function set_dispute_post_conclusion_acceptance_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_dispute_post_conclusion_acceptance_period" }, @@ -118,50 +121,50 @@ export function set_dispute_post_conclusion_acceptance_period( /** Set the parachain validator-group rotation frequency */ export function set_group_rotation_frequency( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_group_rotation_frequency" } } } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_capacity( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_capacity" } } } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export function set_hrmp_channel_max_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_message_size" } } } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_total_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_channel_max_total_size" } } } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export function set_hrmp_max_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_message_num_per_candidate" }, @@ -171,10 +174,10 @@ export function set_hrmp_max_message_num_per_candidate( /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export function set_hrmp_max_parachain_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parachain_inbound_channels" }, @@ -184,10 +187,10 @@ export function set_hrmp_max_parachain_inbound_channels( /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export function set_hrmp_max_parachain_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parachain_outbound_channels" }, @@ -197,10 +200,10 @@ export function set_hrmp_max_parachain_outbound_channels( /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export function set_hrmp_max_parathread_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parathread_inbound_channels" }, @@ -210,10 +213,10 @@ export function set_hrmp_max_parathread_inbound_channels( /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export function set_hrmp_max_parathread_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_max_parathread_outbound_channels" }, @@ -223,10 +226,10 @@ export function set_hrmp_max_parathread_outbound_channels( /** Sets the number of sessions after which an HRMP open channel request expires. */ export function set_hrmp_open_request_ttl( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_open_request_ttl" } } } @@ -236,64 +239,70 @@ export function set_hrmp_open_request_ttl( */ export function set_hrmp_recipient_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_recipient_deposit" } } } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export function set_hrmp_sender_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_hrmp_sender_deposit" } } } /** Set the max validation code size for incoming upgrades. */ export function set_max_code_size( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_code_size" } } } /** Set the critical downward message size. */ export function set_max_downward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_downward_message_size" } } } /** Set the max head data size for paras. */ export function set_max_head_data_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_head_data_size" } } } /** Set the max POV block size for incoming upgrades. */ export function set_max_pov_size( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_pov_size" } } } /** Sets the maximum number of messages that a candidate can contain. */ export function set_max_upward_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_message_num_per_candidate" }, @@ -303,47 +312,50 @@ export function set_max_upward_message_num_per_candidate( /** Sets the maximum size of an upward message that can be sent by a candidate. */ export function set_max_upward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_message_size" } } } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_count( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_queue_count" } } } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_upward_queue_size" } } } /** Set the maximum number of validators to use in parachain consensus. */ export function set_max_validators( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_validators" } } } /** Set the maximum number of validators to assign to any core. */ export function set_max_validators_per_core( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_max_validators_per_core" } } } @@ -355,10 +367,10 @@ export function set_max_validators_per_core( */ export function set_minimum_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_minimum_validation_upgrade_delay" }, @@ -367,15 +379,21 @@ export function set_minimum_validation_upgrade_delay( /** Set the total number of delay tranches. */ export function set_n_delay_tranches( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_n_delay_tranches" } } } /** Set the number of validators needed to approve a block. */ export function set_needed_approvals( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_needed_approvals" } } } @@ -384,121 +402,130 @@ export function set_needed_approvals( * Must be at least 1. */ export function set_no_show_slots( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_no_show_slots" } } } /** Set the number of parathread execution cores. */ export function set_parathread_cores( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_parathread_cores" } } } /** Set the number of retries for a particular parathread. */ export function set_parathread_retries( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_parathread_retries" } } } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export function set_pvf_checking_enabled( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_pvf_checking_enabled" } } } /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export function set_pvf_voting_ttl( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_pvf_voting_ttl" } } } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export function set_relay_vrf_modulo_samples( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_relay_vrf_modulo_samples" } } } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export function set_scheduling_lookahead( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_scheduling_lookahead" } } } /** Set the availability period for parathreads. */ export function set_thread_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_thread_availability_period" } } } /** Sets the maximum amount of weight any individual upward message may consume. */ export function set_ump_max_individual_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_ump_max_individual_weight" } } } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export function set_ump_service_total_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_ump_service_total_weight" } } } /** Set the validation upgrade cooldown. */ export function set_validation_upgrade_cooldown( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_validation_upgrade_cooldown" } } } /** Set the validation upgrade delay. */ export function set_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_validation_upgrade_delay" } } } /** Set the zeroth delay tranche width. */ export function set_zeroth_delay_tranche_width( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "Configuration", value: { ...value, type: "set_zeroth_delay_tranche_width" } } } diff --git a/codegen/_output/westend/pallets/Council.ts b/codegen/_output/westend/pallets/Council.ts index d39cb07f8..c29fe873b 100644 --- a/codegen/_output/westend/pallets/Council.ts +++ b/codegen/_output/westend/pallets/Council.ts @@ -91,8 +91,8 @@ export const Voting = { * # */ export function close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "close" } } } @@ -131,8 +131,8 @@ export function close( * # */ export function close_old_weight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "close_old_weight" } } } @@ -153,8 +153,8 @@ export function close_old_weight( * # */ export function disapprove_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "disapprove_proposal" } } } @@ -172,8 +172,8 @@ export function disapprove_proposal( * # */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "execute" } } } @@ -207,8 +207,8 @@ export function execute( * # */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "propose" } } } @@ -247,8 +247,8 @@ export function propose( * # */ export function set_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "set_members" } } } @@ -270,7 +270,7 @@ export function set_members( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Council", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/westend/pallets/Crowdloan.ts b/codegen/_output/westend/pallets/Crowdloan.ts index a8dbd2785..688c6953b 100644 --- a/codegen/_output/westend/pallets/Crowdloan.ts +++ b/codegen/_output/westend/pallets/Crowdloan.ts @@ -47,8 +47,8 @@ export const NextFundIndex = { * Origin must be Signed, and the user must have contributed to the crowdloan. */ export function add_memo( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "add_memo" } } } @@ -57,8 +57,8 @@ export function add_memo( * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "contribute" } } } @@ -67,8 +67,8 @@ export function contribute( * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "contribute_all" } } } @@ -79,15 +79,15 @@ export function contribute_all( * by the parachain manager. */ export function create( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "create" } } } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export function dissolve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "dissolve" } } } @@ -97,8 +97,8 @@ export function dissolve( * Can only be called by Root origin. */ export function edit( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "edit" } } } @@ -108,8 +108,8 @@ export function edit( * Origin must be Signed, and the fund has non-zero raise. */ export function poke( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "poke" } } } @@ -121,8 +121,8 @@ export function poke( * Origin must be signed, but can come from anyone. */ export function refund( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "refund" } } } @@ -146,7 +146,7 @@ export function refund( * - `index`: The parachain to whose crowdloan the contribution was made. */ export function withdraw( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Crowdloan", value: { ...value, type: "withdraw" } } } diff --git a/codegen/_output/westend/pallets/Democracy.ts b/codegen/_output/westend/pallets/Democracy.ts index d2b0b6df4..6efe7333f 100644 --- a/codegen/_output/westend/pallets/Democracy.ts +++ b/codegen/_output/westend/pallets/Democracy.ts @@ -146,8 +146,8 @@ export const VotingOf = { * reasonable value). */ export function blacklist( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "blacklist" } } } @@ -161,8 +161,8 @@ export function blacklist( * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ export function cancel_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "cancel_proposal" } } } @@ -176,8 +176,8 @@ export function cancel_proposal( * # Weight: `O(1)`. */ export function cancel_referendum( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "cancel_referendum" } } } @@ -188,7 +188,7 @@ export function cancel_referendum( * * Weight: `O(1)`. */ -export function clear_public_proposals(): t.polkadot_runtime.RuntimeCall { +export function clear_public_proposals(): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { type: "clear_public_proposals" } } } @@ -215,8 +215,8 @@ export function clear_public_proposals(): t.polkadot_runtime.RuntimeCall { * voted on. Weight is charged as if maximum votes. */ export function delegate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "delegate" } } } @@ -231,8 +231,8 @@ export function delegate( * Weight: `O(1)`. */ export function emergency_cancel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "emergency_cancel" } } } @@ -245,8 +245,8 @@ export function emergency_cancel( * - `proposal_hash`: The preimage hash of the proposal. */ export function external_propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose" } } } @@ -264,8 +264,8 @@ export function external_propose( * Weight: `O(1)` */ export function external_propose_default( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose_default" } } } @@ -283,8 +283,8 @@ export function external_propose_default( * Weight: `O(1)` */ export function external_propose_majority( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "external_propose_majority" } } } @@ -307,8 +307,8 @@ export function external_propose_majority( * Weight: `O(1)` */ export function fast_track( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "fast_track" } } } @@ -324,8 +324,8 @@ export function fast_track( * Emits `Proposed`. */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "propose" } } } @@ -347,8 +347,8 @@ export function propose( * Weight is calculated for the maximum number of vote. */ export function remove_other_vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "remove_other_vote" } } } @@ -382,8 +382,8 @@ export function remove_other_vote( * Weight is calculated for the maximum number of vote. */ export function remove_vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "remove_vote" } } } @@ -396,8 +396,8 @@ export function remove_vote( * - `proposal`: The index of the proposal to second. */ export function second( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "second" } } } @@ -415,7 +415,7 @@ export function second( * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ -export function undelegate(): t.polkadot_runtime.RuntimeCall { +export function undelegate(): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { type: "undelegate" } } } @@ -429,8 +429,8 @@ export function undelegate(): t.polkadot_runtime.RuntimeCall { * Weight: `O(R)` with R number of vote of target. */ export function unlock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "unlock" } } } @@ -446,8 +446,8 @@ export function unlock( * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ export function veto_external( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "veto_external" } } } @@ -461,7 +461,7 @@ export function veto_external( * - `vote`: The vote configuration. */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Democracy", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/westend/pallets/ElectionProviderMultiPhase.ts b/codegen/_output/westend/pallets/ElectionProviderMultiPhase.ts index b916efffe..3a438e083 100644 --- a/codegen/_output/westend/pallets/ElectionProviderMultiPhase.ts +++ b/codegen/_output/westend/pallets/ElectionProviderMultiPhase.ts @@ -142,8 +142,8 @@ export const SnapshotMetadata = { * calling [`Call::set_emergency_election_result`]. */ export function governance_fallback( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "governance_fallback" } } } @@ -159,10 +159,10 @@ export function governance_fallback( */ export function set_emergency_election_result( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "set_emergency_election_result" }, @@ -178,10 +178,10 @@ export function set_emergency_election_result( */ export function set_minimum_untrusted_score( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, "type" >, -): t.polkadot_runtime.RuntimeCall { +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "set_minimum_untrusted_score" }, @@ -200,8 +200,8 @@ export function set_minimum_untrusted_score( * might be rewarded, slashed, or get all or a part of the deposit back. */ export function submit( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "submit" } } } @@ -222,7 +222,7 @@ export function submit( * No deposit or reward is associated with this submission. */ export function submit_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ElectionProviderMultiPhase", value: { ...value, type: "submit_unsigned" } } } diff --git a/codegen/_output/westend/pallets/FastUnstake.ts b/codegen/_output/westend/pallets/FastUnstake.ts index 00d6afe84..b659ceb40 100644 --- a/codegen/_output/westend/pallets/FastUnstake.ts +++ b/codegen/_output/westend/pallets/FastUnstake.ts @@ -55,8 +55,8 @@ export const Queue = { * Dispatch origin must be signed by the [`Config::ControlOrigin`]. */ export function control( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { ...value, type: "control" } } } @@ -69,7 +69,7 @@ export function control( * calling `register_fast_unstake`. This should probably be followed by a call to * `Staking::rebond`. */ -export function deregister(): t.polkadot_runtime.RuntimeCall { +export function deregister(): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { type: "deregister" } } } @@ -93,6 +93,6 @@ export function deregister(): t.polkadot_runtime.RuntimeCall { * the normal staking system, but they lose part of their unbonding chunks due to consuming * the chain's resources. */ -export function register_fast_unstake(): t.polkadot_runtime.RuntimeCall { +export function register_fast_unstake(): t.types.polkadot_runtime.RuntimeCall { return { type: "FastUnstake", value: { type: "register_fast_unstake" } } } diff --git a/codegen/_output/westend/pallets/Grandpa.ts b/codegen/_output/westend/pallets/Grandpa.ts index cc48e77eb..1b9dc06cf 100644 --- a/codegen/_output/westend/pallets/Grandpa.ts +++ b/codegen/_output/westend/pallets/Grandpa.ts @@ -79,8 +79,8 @@ export const State = { * Only callable by root. */ export function note_stalled( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "note_stalled" } } } @@ -91,8 +91,8 @@ export function note_stalled( * will be reported. */ export function report_equivocation( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "report_equivocation" } } } @@ -108,7 +108,7 @@ export function report_equivocation( * reporter. */ export function report_equivocation_unsigned( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Grandpa", value: { ...value, type: "report_equivocation_unsigned" } } } diff --git a/codegen/_output/westend/pallets/Hrmp.ts b/codegen/_output/westend/pallets/Hrmp.ts index 379910e66..574868fe8 100644 --- a/codegen/_output/westend/pallets/Hrmp.ts +++ b/codegen/_output/westend/pallets/Hrmp.ts @@ -172,8 +172,8 @@ export const HrmpWatermarks = { * Number of inbound and outbound channels for `para` must be provided as witness data of weighing. */ export function force_clean_hrmp( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_clean_hrmp" } } } @@ -186,8 +186,8 @@ export function force_clean_hrmp( * Relay Chain, e.g. a common good parachain. */ export function force_open_hrmp_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_open_hrmp_channel" } } } @@ -200,8 +200,11 @@ export function force_open_hrmp_channel( * Total number of closing channels must be provided as witness data of weighing. */ export function force_process_hrmp_close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_process_hrmp_close" } } } @@ -214,8 +217,8 @@ export function force_process_hrmp_close( * Total number of opening channels must be provided as witness data of weighing. */ export function force_process_hrmp_open( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "force_process_hrmp_open" } } } @@ -225,8 +228,11 @@ export function force_process_hrmp_open( * The channel will be opened only on the next session boundary. */ export function hrmp_accept_open_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_accept_open_channel" } } } @@ -241,8 +247,11 @@ export function hrmp_accept_open_channel( * witness data. */ export function hrmp_cancel_open_request( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_cancel_open_request" } } } @@ -253,8 +262,8 @@ export function hrmp_cancel_open_request( * The closure can only happen on a session change. */ export function hrmp_close_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_close_channel" } } } @@ -271,7 +280,7 @@ export function hrmp_close_channel( * change. */ export function hrmp_init_open_channel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Hrmp", value: { ...value, type: "hrmp_init_open_channel" } } } diff --git a/codegen/_output/westend/pallets/Identity.ts b/codegen/_output/westend/pallets/Identity.ts index d0caa8037..c538e7b1e 100644 --- a/codegen/_output/westend/pallets/Identity.ts +++ b/codegen/_output/westend/pallets/Identity.ts @@ -72,8 +72,8 @@ export const SuperOf = { * # */ export function add_registrar( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "add_registrar" } } } @@ -87,8 +87,8 @@ export function add_registrar( * sub identity of `sub`. */ export function add_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "add_sub" } } } @@ -112,8 +112,8 @@ export function add_sub( * # */ export function cancel_request( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "cancel_request" } } } @@ -137,7 +137,7 @@ export function cancel_request( * - One event. * # */ -export function clear_identity(): t.polkadot_runtime.RuntimeCall { +export function clear_identity(): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { type: "clear_identity" } } } @@ -163,8 +163,8 @@ export function clear_identity(): t.polkadot_runtime.RuntimeCall { * # */ export function kill_identity( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "kill_identity" } } } @@ -191,8 +191,8 @@ export function kill_identity( * # */ export function provide_judgement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "provide_judgement" } } } @@ -208,7 +208,7 @@ export function provide_judgement( * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ -export function quit_sub(): t.polkadot_runtime.RuntimeCall { +export function quit_sub(): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { type: "quit_sub" } } } @@ -222,8 +222,8 @@ export function quit_sub(): t.polkadot_runtime.RuntimeCall { * sub identity of `sub`. */ export function remove_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "remove_sub" } } } @@ -234,8 +234,8 @@ export function remove_sub( * sub identity of `sub`. */ export function rename_sub( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "rename_sub" } } } @@ -265,8 +265,8 @@ export function rename_sub( * # */ export function request_judgement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "request_judgement" } } } @@ -286,8 +286,8 @@ export function request_judgement( * # */ export function set_account_id( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_account_id" } } } @@ -307,8 +307,8 @@ export function set_account_id( * # */ export function set_fee( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_fee" } } } @@ -328,8 +328,8 @@ export function set_fee( * # */ export function set_fields( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_fields" } } } @@ -355,8 +355,8 @@ export function set_fields( * # */ export function set_identity( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_identity" } } } @@ -384,7 +384,7 @@ export function set_identity( * # */ export function set_subs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Identity", value: { ...value, type: "set_subs" } } } diff --git a/codegen/_output/westend/pallets/ImOnline.ts b/codegen/_output/westend/pallets/ImOnline.ts index b74de1209..17433d668 100644 --- a/codegen/_output/westend/pallets/ImOnline.ts +++ b/codegen/_output/westend/pallets/ImOnline.ts @@ -67,7 +67,7 @@ export const ReceivedHeartbeats = { * # */ export function heartbeat( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ImOnline", value: { ...value, type: "heartbeat" } } } diff --git a/codegen/_output/westend/pallets/Indices.ts b/codegen/_output/westend/pallets/Indices.ts index ef5567b14..6c48c3a11 100644 --- a/codegen/_output/westend/pallets/Indices.ts +++ b/codegen/_output/westend/pallets/Indices.ts @@ -32,8 +32,8 @@ export const Accounts = { * # */ export function claim( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "claim" } } } @@ -61,8 +61,8 @@ export function claim( * # */ export function force_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "force_transfer" } } } @@ -87,8 +87,8 @@ export function force_transfer( * # */ export function free( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "free" } } } @@ -113,8 +113,8 @@ export function free( * # */ export function freeze( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "freeze" } } } @@ -141,7 +141,7 @@ export function freeze( * # */ export function transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Indices", value: { ...value, type: "transfer" } } } diff --git a/codegen/_output/westend/pallets/Initializer.ts b/codegen/_output/westend/pallets/Initializer.ts index 5c4fc4498..6bc8b433b 100644 --- a/codegen/_output/westend/pallets/Initializer.ts +++ b/codegen/_output/westend/pallets/Initializer.ts @@ -42,7 +42,7 @@ export const HasInitialized = { * chain are valid and should be finalized. */ export function force_approve( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Initializer", value: { ...value, type: "force_approve" } } } diff --git a/codegen/_output/westend/pallets/Multisig.ts b/codegen/_output/westend/pallets/Multisig.ts index 326dd142b..361443f31 100644 --- a/codegen/_output/westend/pallets/Multisig.ts +++ b/codegen/_output/westend/pallets/Multisig.ts @@ -48,8 +48,8 @@ export const Multisigs = { * # */ export function approve_as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "approve_as_multi" } } } @@ -101,8 +101,8 @@ export function approve_as_multi( * # */ export function as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "as_multi" } } } @@ -125,8 +125,8 @@ export function as_multi( * # */ export function as_multi_threshold_1( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "as_multi_threshold_1" } } } @@ -159,7 +159,7 @@ export function as_multi_threshold_1( * # */ export function cancel_as_multi( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Multisig", value: { ...value, type: "cancel_as_multi" } } } diff --git a/codegen/_output/westend/pallets/NominationPools.ts b/codegen/_output/westend/pallets/NominationPools.ts index c524076d6..b27120267 100644 --- a/codegen/_output/westend/pallets/NominationPools.ts +++ b/codegen/_output/westend/pallets/NominationPools.ts @@ -201,8 +201,8 @@ export const SubPoolsStorage = { * Bonding extra funds implies an automatic payout of all pending rewards as well. */ export function bond_extra( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "bond_extra" } } } @@ -216,8 +216,8 @@ export function bond_extra( * account. */ export function chill( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "chill" } } } @@ -229,7 +229,7 @@ export function chill( * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". */ -export function claim_payout(): t.polkadot_runtime.RuntimeCall { +export function claim_payout(): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { type: "claim_payout" } } } @@ -253,8 +253,8 @@ export function claim_payout(): t.polkadot_runtime.RuntimeCall { * needs at have at least `amount + existential_deposit` transferrable. */ export function create( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "create" } } } @@ -271,8 +271,8 @@ export function create( * * Only a pool with [`PoolState::Open`] can be joined */ export function join( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "join" } } } @@ -286,8 +286,8 @@ export function join( * account. */ export function nominate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "nominate" } } } @@ -300,8 +300,8 @@ export function nominate( * they attempt to unbond. */ export function pool_withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "pool_withdraw_unbonded" } } } @@ -318,8 +318,8 @@ export function pool_withdraw_unbonded( * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. */ export function set_configs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_configs" } } } @@ -330,8 +330,8 @@ export function set_configs( * of the pool. */ export function set_metadata( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_metadata" } } } @@ -348,8 +348,8 @@ export function set_metadata( * then the state of the pool can be permissionlessly changed to `Destroying`. */ export function set_state( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "set_state" } } } @@ -384,8 +384,8 @@ export function set_state( * `NoMoreChunks` error from the staking system. */ export function unbond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "unbond" } } } @@ -399,8 +399,8 @@ export function unbond( * most pool members and they should be informed of changes to pool roles. */ export function update_roles( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "update_roles" } } } @@ -426,7 +426,7 @@ export function update_roles( * If the target is the depositor, the pool will be destroyed. */ export function withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "NominationPools", value: { ...value, type: "withdraw_unbonded" } } } diff --git a/codegen/_output/westend/pallets/ParaInherent.ts b/codegen/_output/westend/pallets/ParaInherent.ts index 99714c021..587241087 100644 --- a/codegen/_output/westend/pallets/ParaInherent.ts +++ b/codegen/_output/westend/pallets/ParaInherent.ts @@ -28,7 +28,7 @@ export const OnChainVotes = { /** Enter the paras inherent. This will process bitfields and backed candidates. */ export function enter( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "ParaInherent", value: { ...value, type: "enter" } } } diff --git a/codegen/_output/westend/pallets/Paras.ts b/codegen/_output/westend/pallets/Paras.ts index 09d9e3990..89d407f49 100644 --- a/codegen/_output/westend/pallets/Paras.ts +++ b/codegen/_output/westend/pallets/Paras.ts @@ -265,15 +265,18 @@ export const UpgradeRestrictionSignal = { * the go-ahead signal while the PVF pre-checking feature is enabled. */ export function add_trusted_validation_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "add_trusted_validation_code" } } } /** Note a new block head for para within the context of the current block. */ export function force_note_new_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_note_new_head" } } } @@ -283,29 +286,32 @@ export function force_note_new_head( * initializer... */ export function force_queue_action( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_queue_action" } } } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export function force_schedule_code_upgrade( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_schedule_code_upgrade" } } } /** Set the storage for the parachain validation code immediately. */ export function force_set_current_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_set_current_code" } } } /** Set the storage for the current parachain head data immediately. */ export function force_set_current_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "force_set_current_head" } } } @@ -314,8 +320,11 @@ export function force_set_current_head( * enacts the results if that was the last vote before achieving the supermajority. */ export function include_pvf_check_statement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "include_pvf_check_statement" } } } @@ -327,7 +336,10 @@ export function include_pvf_check_statement( * dispatching. */ export function poke_unused_validation_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Paras", value: { ...value, type: "poke_unused_validation_code" } } } diff --git a/codegen/_output/westend/pallets/ParasDisputes.ts b/codegen/_output/westend/pallets/ParasDisputes.ts index 599086069..6bac6f10b 100644 --- a/codegen/_output/westend/pallets/ParasDisputes.ts +++ b/codegen/_output/westend/pallets/ParasDisputes.ts @@ -64,6 +64,6 @@ export const SpamSlots = { value: _codec.$94, } -export function force_unfreeze(): t.polkadot_runtime.RuntimeCall { +export function force_unfreeze(): t.types.polkadot_runtime.RuntimeCall { return { type: "ParasDisputes", value: "force_unfreeze" } } diff --git a/codegen/_output/westend/pallets/PhragmenElection.ts b/codegen/_output/westend/pallets/PhragmenElection.ts index 5c8d82e72..e68ca3af3 100644 --- a/codegen/_output/westend/pallets/PhragmenElection.ts +++ b/codegen/_output/westend/pallets/PhragmenElection.ts @@ -80,8 +80,8 @@ export const Voting = { * # */ export function clean_defunct_voters( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "clean_defunct_voters" } } } @@ -106,8 +106,8 @@ export function clean_defunct_voters( * # */ export function remove_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "remove_member" } } } @@ -118,7 +118,7 @@ export function remove_member( * * The dispatch origin of this call must be signed and be a voter. */ -export function remove_voter(): t.polkadot_runtime.RuntimeCall { +export function remove_voter(): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { type: "remove_voter" } } } @@ -143,8 +143,8 @@ export function remove_voter(): t.polkadot_runtime.RuntimeCall { * # */ export function renounce_candidacy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "renounce_candidacy" } } } @@ -166,8 +166,8 @@ export function renounce_candidacy( * # */ export function submit_candidacy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "submit_candidacy" } } } @@ -197,7 +197,7 @@ export function submit_candidacy( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "PhragmenElection", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/westend/pallets/Preimage.ts b/codegen/_output/westend/pallets/Preimage.ts index 9a21906ce..669848d8a 100644 --- a/codegen/_output/westend/pallets/Preimage.ts +++ b/codegen/_output/westend/pallets/Preimage.ts @@ -26,8 +26,8 @@ export const StatusFor = { * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ export function note_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "note_preimage" } } } @@ -38,8 +38,8 @@ export function note_preimage( * a user may have paid, and take the control of the preimage out of their hands. */ export function request_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "request_preimage" } } } @@ -52,8 +52,8 @@ export function request_preimage( * - `len`: The length of the preimage of `hash`. */ export function unnote_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "unnote_preimage" } } } @@ -63,7 +63,7 @@ export function unnote_preimage( * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ export function unrequest_preimage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Preimage", value: { ...value, type: "unrequest_preimage" } } } diff --git a/codegen/_output/westend/pallets/Proxy.ts b/codegen/_output/westend/pallets/Proxy.ts index 4c78c42c1..667c8dcc9 100644 --- a/codegen/_output/westend/pallets/Proxy.ts +++ b/codegen/_output/westend/pallets/Proxy.ts @@ -35,8 +35,8 @@ export const Proxies = { * zero. */ export function add_proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "add_proxy" } } } @@ -58,8 +58,8 @@ export function add_proxy( * - `call_hash`: The hash of the call to be made by the `real` account. */ export function announce( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "announce" } } } @@ -84,8 +84,8 @@ export function announce( * Fails if there are insufficient funds to pay for deposit. */ export function create_pure( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "create_pure" } } } @@ -108,8 +108,8 @@ export function create_pure( * account whose `pure` call has corresponding parameters. */ export function kill_pure( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "kill_pure" } } } @@ -127,8 +127,8 @@ export function kill_pure( * - `call`: The call to be made by the `real` account. */ export function proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "proxy" } } } @@ -146,8 +146,8 @@ export function proxy( * - `call`: The call to be made by the `real` account. */ export function proxy_announced( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "proxy_announced" } } } @@ -164,8 +164,8 @@ export function proxy_announced( * - `call_hash`: The hash of the call to be made. */ export function reject_announcement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "reject_announcement" } } } @@ -182,8 +182,8 @@ export function reject_announcement( * - `call_hash`: The hash of the call to be made by the `real` account. */ export function remove_announcement( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "remove_announcement" } } } @@ -195,7 +195,7 @@ export function remove_announcement( * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ -export function remove_proxies(): t.polkadot_runtime.RuntimeCall { +export function remove_proxies(): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { type: "remove_proxies" } } } @@ -209,7 +209,7 @@ export function remove_proxies(): t.polkadot_runtime.RuntimeCall { * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ export function remove_proxy( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Proxy", value: { ...value, type: "remove_proxy" } } } diff --git a/codegen/_output/westend/pallets/Registrar.ts b/codegen/_output/westend/pallets/Registrar.ts index 23b3d3c87..4a50b1a52 100644 --- a/codegen/_output/westend/pallets/Registrar.ts +++ b/codegen/_output/westend/pallets/Registrar.ts @@ -41,8 +41,8 @@ export const PendingSwap = { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function add_lock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "add_lock" } } } @@ -52,8 +52,8 @@ export function add_lock( * The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread. */ export function deregister( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "deregister" } } } @@ -66,8 +66,8 @@ export function deregister( * can be registered, including sub-1000 IDs which are System Parachains. */ export function force_register( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "force_register" } } } @@ -88,8 +88,8 @@ export function force_register( * The `Registered` event is emitted in case of success. */ export function register( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "register" } } } @@ -100,8 +100,8 @@ export function register( * Can only be called by the Root origin or the parachain. */ export function remove_lock( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "remove_lock" } } } @@ -121,7 +121,7 @@ export function remove_lock( * ## Events * The `Reserved` event is emitted in case of success, which provides the ID reserved for use. */ -export function reserve(): t.polkadot_runtime.RuntimeCall { +export function reserve(): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { type: "reserve" } } } @@ -131,8 +131,11 @@ export function reserve(): t.polkadot_runtime.RuntimeCall { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function schedule_code_upgrade( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit< + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, + "type" + >, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "schedule_code_upgrade" } } } @@ -142,8 +145,8 @@ export function schedule_code_upgrade( * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function set_current_head( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "set_current_head" } } } @@ -161,7 +164,7 @@ export function set_current_head( * and the auction deposit are switched. */ export function swap( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Registrar", value: { ...value, type: "swap" } } } diff --git a/codegen/_output/westend/pallets/Scheduler.ts b/codegen/_output/westend/pallets/Scheduler.ts index e499f3a60..98ed2fb19 100644 --- a/codegen/_output/westend/pallets/Scheduler.ts +++ b/codegen/_output/westend/pallets/Scheduler.ts @@ -35,22 +35,22 @@ export const Lookup = { /** Cancel an anonymously scheduled task. */ export function cancel( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "cancel" } } } /** Cancel a named scheduled task. */ export function cancel_named( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "cancel_named" } } } /** Anonymously schedule a task. */ export function schedule( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule" } } } @@ -62,15 +62,15 @@ export function schedule( * # */ export function schedule_after( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_after" } } } /** Schedule a named task. */ export function schedule_named( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_named" } } } @@ -82,7 +82,7 @@ export function schedule_named( * # */ export function schedule_named_after( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Scheduler", value: { ...value, type: "schedule_named_after" } } } diff --git a/codegen/_output/westend/pallets/Session.ts b/codegen/_output/westend/pallets/Session.ts index aaef74b84..d55559324 100644 --- a/codegen/_output/westend/pallets/Session.ts +++ b/codegen/_output/westend/pallets/Session.ts @@ -95,7 +95,7 @@ export const Validators = { * - DbWrites per key id: `KeyOwner` * # */ -export function purge_keys(): t.polkadot_runtime.RuntimeCall { +export function purge_keys(): t.types.polkadot_runtime.RuntimeCall { return { type: "Session", value: { type: "purge_keys" } } } @@ -116,7 +116,7 @@ export function purge_keys(): t.polkadot_runtime.RuntimeCall { * # */ export function set_keys( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Session", value: { ...value, type: "set_keys" } } } diff --git a/codegen/_output/westend/pallets/Slots.ts b/codegen/_output/westend/pallets/Slots.ts index f4380df60..c45355a0e 100644 --- a/codegen/_output/westend/pallets/Slots.ts +++ b/codegen/_output/westend/pallets/Slots.ts @@ -34,8 +34,8 @@ export const Leases = { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function clear_all_leases( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "clear_all_leases" } } } @@ -46,8 +46,8 @@ export function clear_all_leases( * The dispatch origin for this call must match `T::ForceOrigin`. */ export function force_lease( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "force_lease" } } } @@ -61,7 +61,7 @@ export function force_lease( * Origin must be signed, but can be called by anyone. */ export function trigger_onboard( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Slots", value: { ...value, type: "trigger_onboard" } } } diff --git a/codegen/_output/westend/pallets/Staking.ts b/codegen/_output/westend/pallets/Staking.ts index 0797b8b1d..2ab1664ce 100644 --- a/codegen/_output/westend/pallets/Staking.ts +++ b/codegen/_output/westend/pallets/Staking.ts @@ -479,8 +479,8 @@ export const Validators = { * # */ export function bond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "bond" } } } @@ -502,8 +502,8 @@ export function bond( * # */ export function bond_extra( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "bond_extra" } } } @@ -515,8 +515,8 @@ export function bond_extra( * Parameters: era and indices of the slashes for that era to kill. */ export function cancel_deferred_slash( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "cancel_deferred_slash" } } } @@ -533,7 +533,7 @@ export function cancel_deferred_slash( * - Writes are limited to the `origin` account key. * # */ -export function chill(): t.polkadot_runtime.RuntimeCall { +export function chill(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "chill" } } } @@ -566,8 +566,8 @@ export function chill(): t.polkadot_runtime.RuntimeCall { * who do not satisfy these requirements. */ export function chill_other( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "chill_other" } } } @@ -577,8 +577,8 @@ export function chill_other( * can call this. */ export function force_apply_min_commission( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "force_apply_min_commission" } } } @@ -600,7 +600,7 @@ export function force_apply_min_commission( * - Write ForceEra * # */ -export function force_new_era(): t.polkadot_runtime.RuntimeCall { +export function force_new_era(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_new_era" } } } @@ -615,7 +615,7 @@ export function force_new_era(): t.polkadot_runtime.RuntimeCall { * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ -export function force_new_era_always(): t.polkadot_runtime.RuntimeCall { +export function force_new_era_always(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_new_era_always" } } } @@ -636,7 +636,7 @@ export function force_new_era_always(): t.polkadot_runtime.RuntimeCall { * - Write: ForceEra * # */ -export function force_no_eras(): t.polkadot_runtime.RuntimeCall { +export function force_no_eras(): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { type: "force_no_eras" } } } @@ -646,8 +646,8 @@ export function force_no_eras(): t.polkadot_runtime.RuntimeCall { * The dispatch origin must be Root. */ export function force_unstake( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "force_unstake" } } } @@ -661,8 +661,8 @@ export function force_unstake( * # */ export function increase_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "increase_validator_count" } } } @@ -680,8 +680,8 @@ export function increase_validator_count( * block any further nominations. */ export function kick( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "kick" } } } @@ -699,8 +699,8 @@ export function kick( * # */ export function nominate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "nominate" } } } @@ -728,8 +728,8 @@ export function nominate( * # */ export function payout_stakers( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "payout_stakers" } } } @@ -748,8 +748,8 @@ export function payout_stakers( * Refunds the transaction fees upon successful execution. */ export function reap_stash( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "reap_stash" } } } @@ -765,8 +765,8 @@ export function reap_stash( * # */ export function rebond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "rebond" } } } @@ -780,8 +780,8 @@ export function rebond( * # */ export function scale_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "scale_validator_count" } } } @@ -804,8 +804,8 @@ export function scale_validator_count( * # */ export function set_controller( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_controller" } } } @@ -815,8 +815,8 @@ export function set_controller( * The dispatch origin must be Root. */ export function set_invulnerables( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_invulnerables" } } } @@ -839,8 +839,8 @@ export function set_invulnerables( * # */ export function set_payee( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_payee" } } } @@ -864,8 +864,8 @@ export function set_payee( * to kick people under the new limits, `chill_other` should be called. */ export function set_staking_configs( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_staking_configs" } } } @@ -880,8 +880,8 @@ export function set_staking_configs( * # */ export function set_validator_count( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "set_validator_count" } } } @@ -907,8 +907,8 @@ export function set_validator_count( * See also [`Call::withdraw_unbonded`]. */ export function unbond( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "unbond" } } } @@ -920,8 +920,8 @@ export function unbond( * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ export function validate( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "validate" } } } @@ -943,7 +943,7 @@ export function validate( * # */ export function withdraw_unbonded( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Staking", value: { ...value, type: "withdraw_unbonded" } } } diff --git a/codegen/_output/westend/pallets/System.ts b/codegen/_output/westend/pallets/System.ts index 16aee5b15..1cf99909c 100644 --- a/codegen/_output/westend/pallets/System.ts +++ b/codegen/_output/westend/pallets/System.ts @@ -170,8 +170,8 @@ export const UpgradedToU32RefCount = { /** A dispatch that will fill the block weight up to the given ratio. */ export function fill_block( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "fill_block" } } } @@ -182,15 +182,15 @@ export function fill_block( * the prefix we are removing to accurately calculate the weight of this function. */ export function kill_prefix( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "kill_prefix" } } } /** Kill some items from storage. */ export function kill_storage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "kill_storage" } } } @@ -202,15 +202,15 @@ export function kill_storage( * # */ export function remark( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "remark" } } } /** Make some on-chain remark and emit event. */ export function remark_with_event( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "remark_with_event" } } } @@ -229,8 +229,8 @@ export function remark_with_event( * # */ export function set_code( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_code" } } } @@ -246,21 +246,21 @@ export function set_code( * block. # */ export function set_code_without_checks( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_code_without_checks" } } } /** Set the number of pages in the WebAssembly environment's heap. */ export function set_heap_pages( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_heap_pages" } } } /** Set some items of storage. */ export function set_storage( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "System", value: { ...value, type: "set_storage" } } } diff --git a/codegen/_output/westend/pallets/TechnicalCommittee.ts b/codegen/_output/westend/pallets/TechnicalCommittee.ts index ef8a8713e..6673173eb 100644 --- a/codegen/_output/westend/pallets/TechnicalCommittee.ts +++ b/codegen/_output/westend/pallets/TechnicalCommittee.ts @@ -91,8 +91,8 @@ export const Voting = { * # */ export function close( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "close" } } } @@ -131,8 +131,8 @@ export function close( * # */ export function close_old_weight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "close_old_weight" } } } @@ -153,8 +153,8 @@ export function close_old_weight( * # */ export function disapprove_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "disapprove_proposal" } } } @@ -172,8 +172,8 @@ export function disapprove_proposal( * # */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "execute" } } } @@ -207,8 +207,8 @@ export function execute( * # */ export function propose( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "propose" } } } @@ -247,8 +247,8 @@ export function propose( * # */ export function set_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "set_members" } } } @@ -270,7 +270,7 @@ export function set_members( * # */ export function vote( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalCommittee", value: { ...value, type: "vote" } } } diff --git a/codegen/_output/westend/pallets/TechnicalMembership.ts b/codegen/_output/westend/pallets/TechnicalMembership.ts index 6c7460838..b5a5331f1 100644 --- a/codegen/_output/westend/pallets/TechnicalMembership.ts +++ b/codegen/_output/westend/pallets/TechnicalMembership.ts @@ -25,8 +25,8 @@ export const Prime = { * May only be called from `T::AddOrigin`. */ export function add_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "add_member" } } } @@ -38,8 +38,8 @@ export function add_member( * Prime membership is passed from the origin account to `new`, if extant. */ export function change_key( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "change_key" } } } @@ -48,7 +48,7 @@ export function change_key( * * May only be called from `T::PrimeOrigin`. */ -export function clear_prime(): t.polkadot_runtime.RuntimeCall { +export function clear_prime(): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { type: "clear_prime" } } } @@ -58,8 +58,8 @@ export function clear_prime(): t.polkadot_runtime.RuntimeCall { * May only be called from `T::RemoveOrigin`. */ export function remove_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "remove_member" } } } @@ -70,8 +70,8 @@ export function remove_member( * May only be called from `T::ResetOrigin`. */ export function reset_members( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "reset_members" } } } @@ -81,8 +81,8 @@ export function reset_members( * May only be called from `T::PrimeOrigin`. */ export function set_prime( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "set_prime" } } } @@ -94,7 +94,7 @@ export function set_prime( * Prime membership is *not* passed from `remove` to `add`, if extant. */ export function swap_member( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "TechnicalMembership", value: { ...value, type: "swap_member" } } } diff --git a/codegen/_output/westend/pallets/Timestamp.ts b/codegen/_output/westend/pallets/Timestamp.ts index 7d2fbc242..98f831d32 100644 --- a/codegen/_output/westend/pallets/Timestamp.ts +++ b/codegen/_output/westend/pallets/Timestamp.ts @@ -32,7 +32,7 @@ export const Now = { type: "Plain", modifier: "Default", hashers: [], key: [], v * # */ export function set( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Timestamp", value: { ...value, type: "set" } } } diff --git a/codegen/_output/westend/pallets/Tips.ts b/codegen/_output/westend/pallets/Tips.ts index b4eaa8e83..6e7639c2f 100644 --- a/codegen/_output/westend/pallets/Tips.ts +++ b/codegen/_output/westend/pallets/Tips.ts @@ -46,8 +46,8 @@ export const Tips = { * # */ export function close_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "close_tip" } } } @@ -73,8 +73,8 @@ export function close_tip( * # */ export function report_awesome( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "report_awesome" } } } @@ -100,8 +100,8 @@ export function report_awesome( * # */ export function retract_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "retract_tip" } } } @@ -120,8 +120,8 @@ export function retract_tip( * # */ export function slash_tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "slash_tip" } } } @@ -152,8 +152,8 @@ export function slash_tip( * # */ export function tip( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "tip" } } } @@ -182,7 +182,7 @@ export function tip( * # */ export function tip_new( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Tips", value: { ...value, type: "tip_new" } } } diff --git a/codegen/_output/westend/pallets/Treasury.ts b/codegen/_output/westend/pallets/Treasury.ts index a65f54575..1f93620f2 100644 --- a/codegen/_output/westend/pallets/Treasury.ts +++ b/codegen/_output/westend/pallets/Treasury.ts @@ -42,8 +42,8 @@ export const Proposals = { * # */ export function approve_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "approve_proposal" } } } @@ -59,8 +59,8 @@ export function approve_proposal( * # */ export function propose_spend( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "propose_spend" } } } @@ -76,8 +76,8 @@ export function propose_spend( * # */ export function reject_proposal( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "reject_proposal" } } } @@ -99,8 +99,8 @@ export function reject_proposal( * exist altogether, thus there is no way it would have been approved in the first place. */ export function remove_approval( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "remove_approval" } } } @@ -115,7 +115,7 @@ export function remove_approval( * beneficiary. */ export function spend( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Treasury", value: { ...value, type: "spend" } } } diff --git a/codegen/_output/westend/pallets/Ump.ts b/codegen/_output/westend/pallets/Ump.ts index d362ca1a4..817207c25 100644 --- a/codegen/_output/westend/pallets/Ump.ts +++ b/codegen/_output/westend/pallets/Ump.ts @@ -109,7 +109,7 @@ export const RelayDispatchQueues = { * - `OverweightServiced`: On success. */ export function service_overweight( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Ump", value: { ...value, type: "service_overweight" } } } diff --git a/codegen/_output/westend/pallets/Utility.ts b/codegen/_output/westend/pallets/Utility.ts index 05b704bba..1483e7521 100644 --- a/codegen/_output/westend/pallets/Utility.ts +++ b/codegen/_output/westend/pallets/Utility.ts @@ -16,8 +16,8 @@ import type * as t from "../mod.ts" * The dispatch origin for this call must be _Signed_. */ export function as_derivative( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "as_derivative" } } } @@ -43,8 +43,8 @@ export function as_derivative( * event is deposited. */ export function batch( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "batch" } } } @@ -65,8 +65,8 @@ export function batch( * # */ export function batch_all( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "batch_all" } } } @@ -83,8 +83,8 @@ export function batch_all( * # */ export function dispatch_as( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "dispatch_as" } } } @@ -105,7 +105,7 @@ export function dispatch_as( * # */ export function force_batch( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Utility", value: { ...value, type: "force_batch" } } } diff --git a/codegen/_output/westend/pallets/Vesting.ts b/codegen/_output/westend/pallets/Vesting.ts index 7f5b1a9c8..878fb6f4e 100644 --- a/codegen/_output/westend/pallets/Vesting.ts +++ b/codegen/_output/westend/pallets/Vesting.ts @@ -45,8 +45,8 @@ export const Vesting = { * # */ export function force_vested_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "force_vested_transfer" } } } @@ -74,8 +74,8 @@ export function force_vested_transfer( * - `schedule2_index`: index of the second schedule to merge. */ export function merge_schedules( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "merge_schedules" } } } @@ -94,7 +94,7 @@ export function merge_schedules( * - Writes: Vesting Storage, Balances Locks, [Sender Account] * # */ -export function vest(): t.polkadot_runtime.RuntimeCall { +export function vest(): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { type: "vest" } } } @@ -116,8 +116,8 @@ export function vest(): t.polkadot_runtime.RuntimeCall { * # */ export function vest_other( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "vest_other" } } } @@ -141,7 +141,7 @@ export function vest_other( * # */ export function vested_transfer( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "Vesting", value: { ...value, type: "vested_transfer" } } } diff --git a/codegen/_output/westend/pallets/VoterList.ts b/codegen/_output/westend/pallets/VoterList.ts index 67113267d..b9d36aa53 100644 --- a/codegen/_output/westend/pallets/VoterList.ts +++ b/codegen/_output/westend/pallets/VoterList.ts @@ -48,8 +48,8 @@ export const ListNodes = { * - and `origin` has a greater `Score` than `lighter`. */ export function put_in_front_of( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "VoterList", value: { ...value, type: "put_in_front_of" } } } @@ -66,7 +66,7 @@ export function put_in_front_of( * If `dislocated` does not exists, it returns an error. */ export function rebag( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "VoterList", value: { ...value, type: "rebag" } } } diff --git a/codegen/_output/westend/pallets/XcmPallet.ts b/codegen/_output/westend/pallets/XcmPallet.ts index 6cbbd708e..c03154e71 100644 --- a/codegen/_output/westend/pallets/XcmPallet.ts +++ b/codegen/_output/westend/pallets/XcmPallet.ts @@ -112,8 +112,8 @@ export const VersionNotifyTargets = { * to completion; only that *some* of it was executed. */ export function execute( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "execute" } } } @@ -125,8 +125,8 @@ export function execute( * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. */ export function force_default_xcm_version( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_default_xcm_version" } } } @@ -137,8 +137,8 @@ export function force_default_xcm_version( * - `location`: The location to which we should subscribe for XCM version notifications. */ export function force_subscribe_version_notify( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_subscribe_version_notify" } } } @@ -151,8 +151,8 @@ export function force_subscribe_version_notify( * notifications which we no longer desire. */ export function force_unsubscribe_version_notify( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_unsubscribe_version_notify" } } } @@ -165,8 +165,8 @@ export function force_unsubscribe_version_notify( * - `xcm_version`: The latest version of XCM that `location` supports. */ export function force_xcm_version( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "force_xcm_version" } } } @@ -191,8 +191,8 @@ export function force_xcm_version( * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_reserve_transfer_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "limited_reserve_transfer_assets" } } } @@ -216,8 +216,8 @@ export function limited_reserve_transfer_assets( * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_teleport_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "limited_teleport_assets" } } } @@ -240,14 +240,14 @@ export function limited_teleport_assets( * fees. */ export function reserve_transfer_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "reserve_transfer_assets" } } } export function send( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "send" } } } @@ -269,7 +269,7 @@ export function send( * fees. */ export function teleport_assets( - value: Omit, -): t.polkadot_runtime.RuntimeCall { + value: Omit, +): t.types.polkadot_runtime.RuntimeCall { return { type: "XcmPallet", value: { ...value, type: "teleport_assets" } } } diff --git a/codegen/_output/westend/polkadot_core_primitives.ts b/codegen/_output/westend/polkadot_core_primitives.ts deleted file mode 100644 index a8e55ae4f..000000000 --- a/codegen/_output/westend/polkadot_core_primitives.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $candidateHash: $.Codec = _codec.$114 - -export const $inboundDownwardMessage: $.Codec = - _codec.$683 - -export const $inboundHrmpMessage: $.Codec = - _codec.$691 - -export const $outboundHrmpMessage: $.Codec = - _codec.$392 - -export type CandidateHash = t.primitive_types.H256 - -export function CandidateHash(value: t.polkadot_core_primitives.CandidateHash) { - return value -} - -export interface InboundDownwardMessage { - sent_at: t.u32 - msg: Uint8Array -} - -export function InboundDownwardMessage(value: t.polkadot_core_primitives.InboundDownwardMessage) { - return value -} - -export interface InboundHrmpMessage { - sent_at: t.u32 - data: Uint8Array -} - -export function InboundHrmpMessage(value: t.polkadot_core_primitives.InboundHrmpMessage) { - return value -} - -export interface OutboundHrmpMessage { - recipient: t.polkadot_parachain.primitives.Id - data: Uint8Array -} - -export function OutboundHrmpMessage(value: t.polkadot_core_primitives.OutboundHrmpMessage) { - return value -} diff --git a/codegen/_output/westend/polkadot_parachain/primitives.ts b/codegen/_output/westend/polkadot_parachain/primitives.ts deleted file mode 100644 index f9ab65262..000000000 --- a/codegen/_output/westend/polkadot_parachain/primitives.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $headData: $.Codec = _codec.$104 - -export const $hrmpChannelId: $.Codec = _codec.$112 - -export const $id: $.Codec = _codec.$98 - -export const $validationCode: $.Codec = _codec.$394 - -export const $validationCodeHash: $.Codec = - _codec.$103 - -export type HeadData = Uint8Array - -export function HeadData(value: t.polkadot_parachain.primitives.HeadData) { - return value -} - -export interface HrmpChannelId { - sender: t.polkadot_parachain.primitives.Id - recipient: t.polkadot_parachain.primitives.Id -} - -export function HrmpChannelId(value: t.polkadot_parachain.primitives.HrmpChannelId) { - return value -} - -export type Id = t.u32 - -export function Id(value: t.polkadot_parachain.primitives.Id) { - return value -} - -export type ValidationCode = Uint8Array - -export function ValidationCode(value: t.polkadot_parachain.primitives.ValidationCode) { - return value -} - -export type ValidationCodeHash = t.primitive_types.H256 - -export function ValidationCodeHash(value: t.polkadot_parachain.primitives.ValidationCodeHash) { - return value -} diff --git a/codegen/_output/westend/polkadot_primitives/v2/assignment_app.ts b/codegen/_output/westend/polkadot_primitives/v2/assignment_app.ts deleted file mode 100644 index b9c1ce5c3..000000000 --- a/codegen/_output/westend/polkadot_primitives/v2/assignment_app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$214 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.assignment_app.Public) { - return value -} diff --git a/codegen/_output/westend/polkadot_primitives/v2/collator_app.ts b/codegen/_output/westend/polkadot_primitives/v2/collator_app.ts deleted file mode 100644 index eb96a0a47..000000000 --- a/codegen/_output/westend/polkadot_primitives/v2/collator_app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$99 - -export const $signature: $.Codec = _codec.$100 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.collator_app.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.polkadot_primitives.v2.collator_app.Signature) { - return value -} diff --git a/codegen/_output/westend/polkadot_primitives/v2/mod.ts b/codegen/_output/westend/polkadot_primitives/v2/mod.ts deleted file mode 100644 index 4ad2b58a2..000000000 --- a/codegen/_output/westend/polkadot_primitives/v2/mod.ts +++ /dev/null @@ -1,368 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as assignment_app from "./assignment_app.ts" -export * as collator_app from "./collator_app.ts" -export * as signed from "./signed.ts" -export * as validator_app from "./validator_app.ts" - -export const $availabilityBitfield: $.Codec = - _codec.$382 - -export const $backedCandidate: $.Codec = _codec.$388 - -export const $candidateCommitments: $.Codec = - _codec.$390 - -export const $candidateDescriptor: $.Codec = - _codec.$97 - -export const $candidateReceipt: $.Codec = _codec.$96 - -export const $committedCandidateReceipt: $.Codec< - t.polkadot_primitives.v2.CommittedCandidateReceipt -> = _codec.$389 - -export const $coreIndex: $.Codec = _codec.$105 - -export const $coreOccupied: $.Codec = _codec.$661 - -export const $disputeState: $.Codec = _codec.$699 - -export const $disputeStatement: $.Codec = _codec.$401 - -export const $disputeStatementSet: $.Codec = - _codec.$398 - -export const $groupIndex: $.Codec = _codec.$106 - -export const $inherentData: $.Codec = _codec.$379 - -export const $invalidDisputeStatementKind: $.Codec< - t.polkadot_primitives.v2.InvalidDisputeStatementKind -> = _codec.$403 - -export const $parathreadClaim: $.Codec = _codec.$658 - -export const $parathreadEntry: $.Codec = _codec.$657 - -export const $pvfCheckStatement: $.Codec = _codec.$405 - -export const $scrapedOnChainVotes: $.Codec = - _codec.$647 - -export const $sessionInfo: $.Codec = _codec.$696 - -export const $upgradeGoAhead: $.Codec = _codec.$676 - -export const $upgradeRestriction: $.Codec = _codec.$677 - -export const $validDisputeStatementKind: $.Codec< - t.polkadot_primitives.v2.ValidDisputeStatementKind -> = _codec.$402 - -export const $validatorIndex: $.Codec = _codec.$385 - -export const $validityAttestation: $.Codec = - _codec.$396 - -export type AvailabilityBitfield = $.BitSequence - -export function AvailabilityBitfield(value: t.polkadot_primitives.v2.AvailabilityBitfield) { - return value -} - -export interface BackedCandidate { - candidate: t.polkadot_primitives.v2.CommittedCandidateReceipt - validity_votes: Array - validator_indices: $.BitSequence -} - -export function BackedCandidate(value: t.polkadot_primitives.v2.BackedCandidate) { - return value -} - -export interface CandidateCommitments { - upward_messages: Array - horizontal_messages: Array - new_validation_code: t.polkadot_parachain.primitives.ValidationCode | undefined - head_data: t.polkadot_parachain.primitives.HeadData - processed_downward_messages: t.u32 - hrmp_watermark: t.u32 -} - -export function CandidateCommitments(value: t.polkadot_primitives.v2.CandidateCommitments) { - return value -} - -export interface CandidateDescriptor { - para_id: t.polkadot_parachain.primitives.Id - relay_parent: t.primitive_types.H256 - collator: t.polkadot_primitives.v2.collator_app.Public - persisted_validation_data_hash: t.primitive_types.H256 - pov_hash: t.primitive_types.H256 - erasure_root: t.primitive_types.H256 - signature: t.polkadot_primitives.v2.collator_app.Signature - para_head: t.primitive_types.H256 - validation_code_hash: t.polkadot_parachain.primitives.ValidationCodeHash -} - -export function CandidateDescriptor(value: t.polkadot_primitives.v2.CandidateDescriptor) { - return value -} - -export interface CandidateReceipt { - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - commitments_hash: t.primitive_types.H256 -} - -export function CandidateReceipt(value: t.polkadot_primitives.v2.CandidateReceipt) { - return value -} - -export interface CommittedCandidateReceipt { - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - commitments: t.polkadot_primitives.v2.CandidateCommitments -} - -export function CommittedCandidateReceipt( - value: t.polkadot_primitives.v2.CommittedCandidateReceipt, -) { - return value -} - -export type CoreIndex = t.u32 - -export function CoreIndex(value: t.polkadot_primitives.v2.CoreIndex) { - return value -} - -export type CoreOccupied = - | t.polkadot_primitives.v2.CoreOccupied.Parathread - | t.polkadot_primitives.v2.CoreOccupied.Parachain -export namespace CoreOccupied { - export interface Parathread { - type: "Parathread" - value: t.polkadot_primitives.v2.ParathreadEntry - } - export interface Parachain { - type: "Parachain" - } - export function Parathread( - value: t.polkadot_primitives.v2.CoreOccupied.Parathread["value"], - ): t.polkadot_primitives.v2.CoreOccupied.Parathread { - return { type: "Parathread", value } - } - export function Parachain(): t.polkadot_primitives.v2.CoreOccupied.Parachain { - return { type: "Parachain" } - } -} - -export interface DisputeState { - validators_for: $.BitSequence - validators_against: $.BitSequence - start: t.u32 - concluded_at: t.u32 | undefined -} - -export function DisputeState(value: t.polkadot_primitives.v2.DisputeState) { - return value -} - -export type DisputeStatement = - | t.polkadot_primitives.v2.DisputeStatement.Valid - | t.polkadot_primitives.v2.DisputeStatement.Invalid -export namespace DisputeStatement { - export interface Valid { - type: "Valid" - value: t.polkadot_primitives.v2.ValidDisputeStatementKind - } - export interface Invalid { - type: "Invalid" - value: t.polkadot_primitives.v2.InvalidDisputeStatementKind - } - export function Valid( - value: t.polkadot_primitives.v2.DisputeStatement.Valid["value"], - ): t.polkadot_primitives.v2.DisputeStatement.Valid { - return { type: "Valid", value } - } - export function Invalid( - value: t.polkadot_primitives.v2.DisputeStatement.Invalid["value"], - ): t.polkadot_primitives.v2.DisputeStatement.Invalid { - return { type: "Invalid", value } - } -} - -export interface DisputeStatementSet { - candidate_hash: t.polkadot_core_primitives.CandidateHash - session: t.u32 - statements: Array< - [ - t.polkadot_primitives.v2.DisputeStatement, - t.polkadot_primitives.v2.ValidatorIndex, - t.polkadot_primitives.v2.validator_app.Signature, - ] - > -} - -export function DisputeStatementSet(value: t.polkadot_primitives.v2.DisputeStatementSet) { - return value -} - -export type GroupIndex = t.u32 - -export function GroupIndex(value: t.polkadot_primitives.v2.GroupIndex) { - return value -} - -export interface InherentData { - bitfields: Array - backed_candidates: Array - disputes: Array - parent_header: t.sp_runtime.generic.header.Header -} - -export function InherentData(value: t.polkadot_primitives.v2.InherentData) { - return value -} - -export type InvalidDisputeStatementKind = "Explicit" - -export type ParathreadClaim = [ - t.polkadot_parachain.primitives.Id, - t.polkadot_primitives.v2.collator_app.Public, -] - -export function ParathreadClaim(...value: t.polkadot_primitives.v2.ParathreadClaim) { - return value -} - -export interface ParathreadEntry { - claim: t.polkadot_primitives.v2.ParathreadClaim - retries: t.u32 -} - -export function ParathreadEntry(value: t.polkadot_primitives.v2.ParathreadEntry) { - return value -} - -export interface PvfCheckStatement { - accept: boolean - subject: t.polkadot_parachain.primitives.ValidationCodeHash - session_index: t.u32 - validator_index: t.polkadot_primitives.v2.ValidatorIndex -} - -export function PvfCheckStatement(value: t.polkadot_primitives.v2.PvfCheckStatement) { - return value -} - -export interface ScrapedOnChainVotes { - session: t.u32 - backing_validators_per_candidate: Array< - [ - t.polkadot_primitives.v2.CandidateReceipt, - Array< - [t.polkadot_primitives.v2.ValidatorIndex, t.polkadot_primitives.v2.ValidityAttestation] - >, - ] - > - disputes: Array -} - -export function ScrapedOnChainVotes(value: t.polkadot_primitives.v2.ScrapedOnChainVotes) { - return value -} - -export interface SessionInfo { - active_validator_indices: Array - random_seed: Uint8Array - dispute_period: t.u32 - validators: Array - discovery_keys: Array - assignment_keys: Array - validator_groups: Array> - n_cores: t.u32 - zeroth_delay_tranche_width: t.u32 - relay_vrf_modulo_samples: t.u32 - n_delay_tranches: t.u32 - no_show_slots: t.u32 - needed_approvals: t.u32 -} - -export function SessionInfo(value: t.polkadot_primitives.v2.SessionInfo) { - return value -} - -export type UpgradeGoAhead = "Abort" | "GoAhead" - -export type UpgradeRestriction = "Present" - -export type ValidDisputeStatementKind = - | t.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit - | t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded - | t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid - | t.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking -export namespace ValidDisputeStatementKind { - export interface Explicit { - type: "Explicit" - } - export interface BackingSeconded { - type: "BackingSeconded" - value: t.primitive_types.H256 - } - export interface BackingValid { - type: "BackingValid" - value: t.primitive_types.H256 - } - export interface ApprovalChecking { - type: "ApprovalChecking" - } - export function Explicit(): t.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit { - return { type: "Explicit" } - } - export function BackingSeconded( - value: t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded["value"], - ): t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded { - return { type: "BackingSeconded", value } - } - export function BackingValid( - value: t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid["value"], - ): t.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid { - return { type: "BackingValid", value } - } - export function ApprovalChecking(): t.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking { - return { type: "ApprovalChecking" } - } -} - -export type ValidatorIndex = t.u32 - -export function ValidatorIndex(value: t.polkadot_primitives.v2.ValidatorIndex) { - return value -} - -export type ValidityAttestation = - | t.polkadot_primitives.v2.ValidityAttestation.Implicit - | t.polkadot_primitives.v2.ValidityAttestation.Explicit -export namespace ValidityAttestation { - export interface Implicit { - type: "Implicit" - value: t.polkadot_primitives.v2.validator_app.Signature - } - export interface Explicit { - type: "Explicit" - value: t.polkadot_primitives.v2.validator_app.Signature - } - export function Implicit( - value: t.polkadot_primitives.v2.ValidityAttestation.Implicit["value"], - ): t.polkadot_primitives.v2.ValidityAttestation.Implicit { - return { type: "Implicit", value } - } - export function Explicit( - value: t.polkadot_primitives.v2.ValidityAttestation.Explicit["value"], - ): t.polkadot_primitives.v2.ValidityAttestation.Explicit { - return { type: "Explicit", value } - } -} diff --git a/codegen/_output/westend/polkadot_primitives/v2/signed.ts b/codegen/_output/westend/polkadot_primitives/v2/signed.ts deleted file mode 100644 index e2d11430f..000000000 --- a/codegen/_output/westend/polkadot_primitives/v2/signed.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $uncheckedSigned: $.Codec = - _codec.$381 - -export interface UncheckedSigned { - payload: t.polkadot_primitives.v2.AvailabilityBitfield - validator_index: t.polkadot_primitives.v2.ValidatorIndex - signature: t.polkadot_primitives.v2.validator_app.Signature -} - -export function UncheckedSigned(value: t.polkadot_primitives.v2.signed.UncheckedSigned) { - return value -} diff --git a/codegen/_output/westend/polkadot_primitives/v2/validator_app.ts b/codegen/_output/westend/polkadot_primitives/v2/validator_app.ts deleted file mode 100644 index e56ded198..000000000 --- a/codegen/_output/westend/polkadot_primitives/v2/validator_app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $public: $.Codec = _codec.$213 - -export const $signature: $.Codec = _codec.$386 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.polkadot_primitives.v2.validator_app.Public) { - return value -} - -export type Signature = t.sp_core.sr25519.Signature - -export function Signature(value: t.polkadot_primitives.v2.validator_app.Signature) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime.ts b/codegen/_output/westend/polkadot_runtime.ts deleted file mode 100644 index d07d2f44d..000000000 --- a/codegen/_output/westend/polkadot_runtime.ts +++ /dev/null @@ -1,1223 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $nposCompactSolution16: $.Codec = _codec.$312 - -export const $originCaller: $.Codec = _codec.$256 - -export const $proxyType: $.Codec = _codec.$79 - -export const $runtime: $.Codec = _codec.$737 - -export const $runtimeCall: $.Codec = _codec.$181 - -export const $runtimeEvent: $.Codec = _codec.$19 - -export const $sessionKeys: $.Codec = _codec.$212 - -export interface NposCompactSolution16 { - votes1: Array<[t.Compact, t.Compact]> - votes2: Array< - [ - t.Compact, - [t.Compact, t.Compact], - t.Compact, - ] - > - votes3: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes4: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes5: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes6: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes7: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes8: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes9: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes10: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes11: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes12: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes13: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes14: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes15: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > - votes16: Array< - [ - t.Compact, - [ - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - [t.Compact, t.Compact], - ], - t.Compact, - ] - > -} - -export function NposCompactSolution16(value: t.polkadot_runtime.NposCompactSolution16) { - return value -} - -export type OriginCaller = - | t.polkadot_runtime.OriginCaller.system - | t.polkadot_runtime.OriginCaller.Council - | t.polkadot_runtime.OriginCaller.TechnicalCommittee - | t.polkadot_runtime.OriginCaller.ParachainsOrigin - | t.polkadot_runtime.OriginCaller.XcmPallet - | t.polkadot_runtime.OriginCaller.Void -export namespace OriginCaller { - export interface system { - type: "system" - value: t.frame_support.dispatch.RawOrigin - } - export interface Council { - type: "Council" - value: t.pallet_collective.RawOrigin - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.RawOrigin - } - export interface ParachainsOrigin { - type: "ParachainsOrigin" - value: t.polkadot_runtime_parachains.origin.pallet.Origin - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Origin - } - export interface Void { - type: "Void" - value: t.sp_core.Void - } - export function system( - value: t.polkadot_runtime.OriginCaller.system["value"], - ): t.polkadot_runtime.OriginCaller.system { - return { type: "system", value } - } - export function Council( - value: t.polkadot_runtime.OriginCaller.Council["value"], - ): t.polkadot_runtime.OriginCaller.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.OriginCaller.TechnicalCommittee["value"], - ): t.polkadot_runtime.OriginCaller.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function ParachainsOrigin( - value: t.polkadot_runtime.OriginCaller.ParachainsOrigin["value"], - ): t.polkadot_runtime.OriginCaller.ParachainsOrigin { - return { type: "ParachainsOrigin", value } - } - export function XcmPallet( - value: t.polkadot_runtime.OriginCaller.XcmPallet["value"], - ): t.polkadot_runtime.OriginCaller.XcmPallet { - return { type: "XcmPallet", value } - } - export function Void( - value: t.polkadot_runtime.OriginCaller.Void["value"], - ): t.polkadot_runtime.OriginCaller.Void { - return { type: "Void", value } - } -} - -export type ProxyType = - | "Any" - | "NonTransfer" - | "Governance" - | "Staking" - | "IdentityJudgement" - | "CancelProxy" - | "Auction" - -export function Runtime() { - return null -} - -export type Runtime = null - -export type RuntimeCall = - | t.polkadot_runtime.RuntimeCall.System - | t.polkadot_runtime.RuntimeCall.Scheduler - | t.polkadot_runtime.RuntimeCall.Preimage - | t.polkadot_runtime.RuntimeCall.Babe - | t.polkadot_runtime.RuntimeCall.Timestamp - | t.polkadot_runtime.RuntimeCall.Indices - | t.polkadot_runtime.RuntimeCall.Balances - | t.polkadot_runtime.RuntimeCall.Authorship - | t.polkadot_runtime.RuntimeCall.Staking - | t.polkadot_runtime.RuntimeCall.Session - | t.polkadot_runtime.RuntimeCall.Grandpa - | t.polkadot_runtime.RuntimeCall.ImOnline - | t.polkadot_runtime.RuntimeCall.Democracy - | t.polkadot_runtime.RuntimeCall.Council - | t.polkadot_runtime.RuntimeCall.TechnicalCommittee - | t.polkadot_runtime.RuntimeCall.PhragmenElection - | t.polkadot_runtime.RuntimeCall.TechnicalMembership - | t.polkadot_runtime.RuntimeCall.Treasury - | t.polkadot_runtime.RuntimeCall.Claims - | t.polkadot_runtime.RuntimeCall.Vesting - | t.polkadot_runtime.RuntimeCall.Utility - | t.polkadot_runtime.RuntimeCall.Identity - | t.polkadot_runtime.RuntimeCall.Proxy - | t.polkadot_runtime.RuntimeCall.Multisig - | t.polkadot_runtime.RuntimeCall.Bounties - | t.polkadot_runtime.RuntimeCall.ChildBounties - | t.polkadot_runtime.RuntimeCall.Tips - | t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase - | t.polkadot_runtime.RuntimeCall.VoterList - | t.polkadot_runtime.RuntimeCall.NominationPools - | t.polkadot_runtime.RuntimeCall.FastUnstake - | t.polkadot_runtime.RuntimeCall.Configuration - | t.polkadot_runtime.RuntimeCall.ParasShared - | t.polkadot_runtime.RuntimeCall.ParaInclusion - | t.polkadot_runtime.RuntimeCall.ParaInherent - | t.polkadot_runtime.RuntimeCall.Paras - | t.polkadot_runtime.RuntimeCall.Initializer - | t.polkadot_runtime.RuntimeCall.Dmp - | t.polkadot_runtime.RuntimeCall.Ump - | t.polkadot_runtime.RuntimeCall.Hrmp - | t.polkadot_runtime.RuntimeCall.ParasDisputes - | t.polkadot_runtime.RuntimeCall.Registrar - | t.polkadot_runtime.RuntimeCall.Slots - | t.polkadot_runtime.RuntimeCall.Auctions - | t.polkadot_runtime.RuntimeCall.Crowdloan - | t.polkadot_runtime.RuntimeCall.XcmPallet -export namespace RuntimeCall { - export interface System { - type: "System" - value: t.frame_system.pallet.Call - } - export interface Scheduler { - type: "Scheduler" - value: t.pallet_scheduler.pallet.Call - } - export interface Preimage { - type: "Preimage" - value: t.pallet_preimage.pallet.Call - } - export interface Babe { - type: "Babe" - value: t.pallet_babe.pallet.Call - } - export interface Timestamp { - type: "Timestamp" - value: t.pallet_timestamp.pallet.Call - } - export interface Indices { - type: "Indices" - value: t.pallet_indices.pallet.Call - } - export interface Balances { - type: "Balances" - value: t.pallet_balances.pallet.Call - } - export interface Authorship { - type: "Authorship" - value: t.pallet_authorship.pallet.Call - } - export interface Staking { - type: "Staking" - value: t.pallet_staking.pallet.pallet.Call - } - export interface Session { - type: "Session" - value: t.pallet_session.pallet.Call - } - export interface Grandpa { - type: "Grandpa" - value: t.pallet_grandpa.pallet.Call - } - export interface ImOnline { - type: "ImOnline" - value: t.pallet_im_online.pallet.Call - } - export interface Democracy { - type: "Democracy" - value: t.pallet_democracy.pallet.Call - } - export interface Council { - type: "Council" - value: t.pallet_collective.pallet.Call - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.pallet.Call - } - export interface PhragmenElection { - type: "PhragmenElection" - value: t.pallet_elections_phragmen.pallet.Call - } - export interface TechnicalMembership { - type: "TechnicalMembership" - value: t.pallet_membership.pallet.Call - } - export interface Treasury { - type: "Treasury" - value: t.pallet_treasury.pallet.Call - } - export interface Claims { - type: "Claims" - value: t.polkadot_runtime_common.claims.pallet.Call - } - export interface Vesting { - type: "Vesting" - value: t.pallet_vesting.pallet.Call - } - export interface Utility { - type: "Utility" - value: t.pallet_utility.pallet.Call - } - export interface Identity { - type: "Identity" - value: t.pallet_identity.pallet.Call - } - export interface Proxy { - type: "Proxy" - value: t.pallet_proxy.pallet.Call - } - export interface Multisig { - type: "Multisig" - value: t.pallet_multisig.pallet.Call - } - export interface Bounties { - type: "Bounties" - value: t.pallet_bounties.pallet.Call - } - export interface ChildBounties { - type: "ChildBounties" - value: t.pallet_child_bounties.pallet.Call - } - export interface Tips { - type: "Tips" - value: t.pallet_tips.pallet.Call - } - export interface ElectionProviderMultiPhase { - type: "ElectionProviderMultiPhase" - value: t.pallet_election_provider_multi_phase.pallet.Call - } - export interface VoterList { - type: "VoterList" - value: t.pallet_bags_list.pallet.Call - } - export interface NominationPools { - type: "NominationPools" - value: t.pallet_nomination_pools.pallet.Call - } - export interface FastUnstake { - type: "FastUnstake" - value: t.pallet_fast_unstake.pallet.Call - } - export interface Configuration { - type: "Configuration" - value: t.polkadot_runtime_parachains.configuration.pallet.Call - } - export interface ParasShared { - type: "ParasShared" - value: t.polkadot_runtime_parachains.shared.pallet.Call - } - export interface ParaInclusion { - type: "ParaInclusion" - value: t.polkadot_runtime_parachains.inclusion.pallet.Call - } - export interface ParaInherent { - type: "ParaInherent" - value: t.polkadot_runtime_parachains.paras_inherent.pallet.Call - } - export interface Paras { - type: "Paras" - value: t.polkadot_runtime_parachains.paras.pallet.Call - } - export interface Initializer { - type: "Initializer" - value: t.polkadot_runtime_parachains.initializer.pallet.Call - } - export interface Dmp { - type: "Dmp" - value: t.polkadot_runtime_parachains.dmp.pallet.Call - } - export interface Ump { - type: "Ump" - value: t.polkadot_runtime_parachains.ump.pallet.Call - } - export interface Hrmp { - type: "Hrmp" - value: t.polkadot_runtime_parachains.hrmp.pallet.Call - } - export interface ParasDisputes { - type: "ParasDisputes" - value: t.polkadot_runtime_parachains.disputes.pallet.Call - } - export interface Registrar { - type: "Registrar" - value: t.polkadot_runtime_common.paras_registrar.pallet.Call - } - export interface Slots { - type: "Slots" - value: t.polkadot_runtime_common.slots.pallet.Call - } - export interface Auctions { - type: "Auctions" - value: t.polkadot_runtime_common.auctions.pallet.Call - } - export interface Crowdloan { - type: "Crowdloan" - value: t.polkadot_runtime_common.crowdloan.pallet.Call - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Call - } - export function System( - value: t.polkadot_runtime.RuntimeCall.System["value"], - ): t.polkadot_runtime.RuntimeCall.System { - return { type: "System", value } - } - export function Scheduler( - value: t.polkadot_runtime.RuntimeCall.Scheduler["value"], - ): t.polkadot_runtime.RuntimeCall.Scheduler { - return { type: "Scheduler", value } - } - export function Preimage( - value: t.polkadot_runtime.RuntimeCall.Preimage["value"], - ): t.polkadot_runtime.RuntimeCall.Preimage { - return { type: "Preimage", value } - } - export function Babe( - value: t.polkadot_runtime.RuntimeCall.Babe["value"], - ): t.polkadot_runtime.RuntimeCall.Babe { - return { type: "Babe", value } - } - export function Timestamp( - value: t.polkadot_runtime.RuntimeCall.Timestamp["value"], - ): t.polkadot_runtime.RuntimeCall.Timestamp { - return { type: "Timestamp", value } - } - export function Indices( - value: t.polkadot_runtime.RuntimeCall.Indices["value"], - ): t.polkadot_runtime.RuntimeCall.Indices { - return { type: "Indices", value } - } - export function Balances( - value: t.polkadot_runtime.RuntimeCall.Balances["value"], - ): t.polkadot_runtime.RuntimeCall.Balances { - return { type: "Balances", value } - } - export function Authorship( - value: t.polkadot_runtime.RuntimeCall.Authorship["value"], - ): t.polkadot_runtime.RuntimeCall.Authorship { - return { type: "Authorship", value } - } - export function Staking( - value: t.polkadot_runtime.RuntimeCall.Staking["value"], - ): t.polkadot_runtime.RuntimeCall.Staking { - return { type: "Staking", value } - } - export function Session( - value: t.polkadot_runtime.RuntimeCall.Session["value"], - ): t.polkadot_runtime.RuntimeCall.Session { - return { type: "Session", value } - } - export function Grandpa( - value: t.polkadot_runtime.RuntimeCall.Grandpa["value"], - ): t.polkadot_runtime.RuntimeCall.Grandpa { - return { type: "Grandpa", value } - } - export function ImOnline( - value: t.polkadot_runtime.RuntimeCall.ImOnline["value"], - ): t.polkadot_runtime.RuntimeCall.ImOnline { - return { type: "ImOnline", value } - } - export function Democracy( - value: t.polkadot_runtime.RuntimeCall.Democracy["value"], - ): t.polkadot_runtime.RuntimeCall.Democracy { - return { type: "Democracy", value } - } - export function Council( - value: t.polkadot_runtime.RuntimeCall.Council["value"], - ): t.polkadot_runtime.RuntimeCall.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.RuntimeCall.TechnicalCommittee["value"], - ): t.polkadot_runtime.RuntimeCall.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function PhragmenElection( - value: t.polkadot_runtime.RuntimeCall.PhragmenElection["value"], - ): t.polkadot_runtime.RuntimeCall.PhragmenElection { - return { type: "PhragmenElection", value } - } - export function TechnicalMembership( - value: t.polkadot_runtime.RuntimeCall.TechnicalMembership["value"], - ): t.polkadot_runtime.RuntimeCall.TechnicalMembership { - return { type: "TechnicalMembership", value } - } - export function Treasury( - value: t.polkadot_runtime.RuntimeCall.Treasury["value"], - ): t.polkadot_runtime.RuntimeCall.Treasury { - return { type: "Treasury", value } - } - export function Claims( - value: t.polkadot_runtime.RuntimeCall.Claims["value"], - ): t.polkadot_runtime.RuntimeCall.Claims { - return { type: "Claims", value } - } - export function Vesting( - value: t.polkadot_runtime.RuntimeCall.Vesting["value"], - ): t.polkadot_runtime.RuntimeCall.Vesting { - return { type: "Vesting", value } - } - export function Utility( - value: t.polkadot_runtime.RuntimeCall.Utility["value"], - ): t.polkadot_runtime.RuntimeCall.Utility { - return { type: "Utility", value } - } - export function Identity( - value: t.polkadot_runtime.RuntimeCall.Identity["value"], - ): t.polkadot_runtime.RuntimeCall.Identity { - return { type: "Identity", value } - } - export function Proxy( - value: t.polkadot_runtime.RuntimeCall.Proxy["value"], - ): t.polkadot_runtime.RuntimeCall.Proxy { - return { type: "Proxy", value } - } - export function Multisig( - value: t.polkadot_runtime.RuntimeCall.Multisig["value"], - ): t.polkadot_runtime.RuntimeCall.Multisig { - return { type: "Multisig", value } - } - export function Bounties( - value: t.polkadot_runtime.RuntimeCall.Bounties["value"], - ): t.polkadot_runtime.RuntimeCall.Bounties { - return { type: "Bounties", value } - } - export function ChildBounties( - value: t.polkadot_runtime.RuntimeCall.ChildBounties["value"], - ): t.polkadot_runtime.RuntimeCall.ChildBounties { - return { type: "ChildBounties", value } - } - export function Tips( - value: t.polkadot_runtime.RuntimeCall.Tips["value"], - ): t.polkadot_runtime.RuntimeCall.Tips { - return { type: "Tips", value } - } - export function ElectionProviderMultiPhase( - value: t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase["value"], - ): t.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase { - return { type: "ElectionProviderMultiPhase", value } - } - export function VoterList( - value: t.polkadot_runtime.RuntimeCall.VoterList["value"], - ): t.polkadot_runtime.RuntimeCall.VoterList { - return { type: "VoterList", value } - } - export function NominationPools( - value: t.polkadot_runtime.RuntimeCall.NominationPools["value"], - ): t.polkadot_runtime.RuntimeCall.NominationPools { - return { type: "NominationPools", value } - } - export function FastUnstake( - value: t.polkadot_runtime.RuntimeCall.FastUnstake["value"], - ): t.polkadot_runtime.RuntimeCall.FastUnstake { - return { type: "FastUnstake", value } - } - export function Configuration( - value: t.polkadot_runtime.RuntimeCall.Configuration["value"], - ): t.polkadot_runtime.RuntimeCall.Configuration { - return { type: "Configuration", value } - } - export function ParasShared( - value: t.polkadot_runtime.RuntimeCall.ParasShared["value"], - ): t.polkadot_runtime.RuntimeCall.ParasShared { - return { type: "ParasShared", value } - } - export function ParaInclusion( - value: t.polkadot_runtime.RuntimeCall.ParaInclusion["value"], - ): t.polkadot_runtime.RuntimeCall.ParaInclusion { - return { type: "ParaInclusion", value } - } - export function ParaInherent( - value: t.polkadot_runtime.RuntimeCall.ParaInherent["value"], - ): t.polkadot_runtime.RuntimeCall.ParaInherent { - return { type: "ParaInherent", value } - } - export function Paras( - value: t.polkadot_runtime.RuntimeCall.Paras["value"], - ): t.polkadot_runtime.RuntimeCall.Paras { - return { type: "Paras", value } - } - export function Initializer( - value: t.polkadot_runtime.RuntimeCall.Initializer["value"], - ): t.polkadot_runtime.RuntimeCall.Initializer { - return { type: "Initializer", value } - } - export function Dmp( - value: t.polkadot_runtime.RuntimeCall.Dmp["value"], - ): t.polkadot_runtime.RuntimeCall.Dmp { - return { type: "Dmp", value } - } - export function Ump( - value: t.polkadot_runtime.RuntimeCall.Ump["value"], - ): t.polkadot_runtime.RuntimeCall.Ump { - return { type: "Ump", value } - } - export function Hrmp( - value: t.polkadot_runtime.RuntimeCall.Hrmp["value"], - ): t.polkadot_runtime.RuntimeCall.Hrmp { - return { type: "Hrmp", value } - } - export function ParasDisputes( - value: t.polkadot_runtime.RuntimeCall.ParasDisputes["value"], - ): t.polkadot_runtime.RuntimeCall.ParasDisputes { - return { type: "ParasDisputes", value } - } - export function Registrar( - value: t.polkadot_runtime.RuntimeCall.Registrar["value"], - ): t.polkadot_runtime.RuntimeCall.Registrar { - return { type: "Registrar", value } - } - export function Slots( - value: t.polkadot_runtime.RuntimeCall.Slots["value"], - ): t.polkadot_runtime.RuntimeCall.Slots { - return { type: "Slots", value } - } - export function Auctions( - value: t.polkadot_runtime.RuntimeCall.Auctions["value"], - ): t.polkadot_runtime.RuntimeCall.Auctions { - return { type: "Auctions", value } - } - export function Crowdloan( - value: t.polkadot_runtime.RuntimeCall.Crowdloan["value"], - ): t.polkadot_runtime.RuntimeCall.Crowdloan { - return { type: "Crowdloan", value } - } - export function XcmPallet( - value: t.polkadot_runtime.RuntimeCall.XcmPallet["value"], - ): t.polkadot_runtime.RuntimeCall.XcmPallet { - return { type: "XcmPallet", value } - } -} - -export type RuntimeEvent = - | t.polkadot_runtime.RuntimeEvent.System - | t.polkadot_runtime.RuntimeEvent.Scheduler - | t.polkadot_runtime.RuntimeEvent.Preimage - | t.polkadot_runtime.RuntimeEvent.Indices - | t.polkadot_runtime.RuntimeEvent.Balances - | t.polkadot_runtime.RuntimeEvent.TransactionPayment - | t.polkadot_runtime.RuntimeEvent.Staking - | t.polkadot_runtime.RuntimeEvent.Offences - | t.polkadot_runtime.RuntimeEvent.Session - | t.polkadot_runtime.RuntimeEvent.Grandpa - | t.polkadot_runtime.RuntimeEvent.ImOnline - | t.polkadot_runtime.RuntimeEvent.Democracy - | t.polkadot_runtime.RuntimeEvent.Council - | t.polkadot_runtime.RuntimeEvent.TechnicalCommittee - | t.polkadot_runtime.RuntimeEvent.PhragmenElection - | t.polkadot_runtime.RuntimeEvent.TechnicalMembership - | t.polkadot_runtime.RuntimeEvent.Treasury - | t.polkadot_runtime.RuntimeEvent.Claims - | t.polkadot_runtime.RuntimeEvent.Vesting - | t.polkadot_runtime.RuntimeEvent.Utility - | t.polkadot_runtime.RuntimeEvent.Identity - | t.polkadot_runtime.RuntimeEvent.Proxy - | t.polkadot_runtime.RuntimeEvent.Multisig - | t.polkadot_runtime.RuntimeEvent.Bounties - | t.polkadot_runtime.RuntimeEvent.ChildBounties - | t.polkadot_runtime.RuntimeEvent.Tips - | t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase - | t.polkadot_runtime.RuntimeEvent.VoterList - | t.polkadot_runtime.RuntimeEvent.NominationPools - | t.polkadot_runtime.RuntimeEvent.FastUnstake - | t.polkadot_runtime.RuntimeEvent.ParaInclusion - | t.polkadot_runtime.RuntimeEvent.Paras - | t.polkadot_runtime.RuntimeEvent.Ump - | t.polkadot_runtime.RuntimeEvent.Hrmp - | t.polkadot_runtime.RuntimeEvent.ParasDisputes - | t.polkadot_runtime.RuntimeEvent.Registrar - | t.polkadot_runtime.RuntimeEvent.Slots - | t.polkadot_runtime.RuntimeEvent.Auctions - | t.polkadot_runtime.RuntimeEvent.Crowdloan - | t.polkadot_runtime.RuntimeEvent.XcmPallet -export namespace RuntimeEvent { - export interface System { - type: "System" - value: t.frame_system.pallet.Event - } - export interface Scheduler { - type: "Scheduler" - value: t.pallet_scheduler.pallet.Event - } - export interface Preimage { - type: "Preimage" - value: t.pallet_preimage.pallet.Event - } - export interface Indices { - type: "Indices" - value: t.pallet_indices.pallet.Event - } - export interface Balances { - type: "Balances" - value: t.pallet_balances.pallet.Event - } - export interface TransactionPayment { - type: "TransactionPayment" - value: t.pallet_transaction_payment.pallet.Event - } - export interface Staking { - type: "Staking" - value: t.pallet_staking.pallet.pallet.Event - } - export interface Offences { - type: "Offences" - value: t.pallet_offences.pallet.Event - } - export interface Session { - type: "Session" - value: t.pallet_session.pallet.Event - } - export interface Grandpa { - type: "Grandpa" - value: t.pallet_grandpa.pallet.Event - } - export interface ImOnline { - type: "ImOnline" - value: t.pallet_im_online.pallet.Event - } - export interface Democracy { - type: "Democracy" - value: t.pallet_democracy.pallet.Event - } - export interface Council { - type: "Council" - value: t.pallet_collective.pallet.Event - } - export interface TechnicalCommittee { - type: "TechnicalCommittee" - value: t.pallet_collective.pallet.Event - } - export interface PhragmenElection { - type: "PhragmenElection" - value: t.pallet_elections_phragmen.pallet.Event - } - export interface TechnicalMembership { - type: "TechnicalMembership" - value: t.pallet_membership.pallet.Event - } - export interface Treasury { - type: "Treasury" - value: t.pallet_treasury.pallet.Event - } - export interface Claims { - type: "Claims" - value: t.polkadot_runtime_common.claims.pallet.Event - } - export interface Vesting { - type: "Vesting" - value: t.pallet_vesting.pallet.Event - } - export interface Utility { - type: "Utility" - value: t.pallet_utility.pallet.Event - } - export interface Identity { - type: "Identity" - value: t.pallet_identity.pallet.Event - } - export interface Proxy { - type: "Proxy" - value: t.pallet_proxy.pallet.Event - } - export interface Multisig { - type: "Multisig" - value: t.pallet_multisig.pallet.Event - } - export interface Bounties { - type: "Bounties" - value: t.pallet_bounties.pallet.Event - } - export interface ChildBounties { - type: "ChildBounties" - value: t.pallet_child_bounties.pallet.Event - } - export interface Tips { - type: "Tips" - value: t.pallet_tips.pallet.Event - } - export interface ElectionProviderMultiPhase { - type: "ElectionProviderMultiPhase" - value: t.pallet_election_provider_multi_phase.pallet.Event - } - export interface VoterList { - type: "VoterList" - value: t.pallet_bags_list.pallet.Event - } - export interface NominationPools { - type: "NominationPools" - value: t.pallet_nomination_pools.pallet.Event - } - export interface FastUnstake { - type: "FastUnstake" - value: t.pallet_fast_unstake.pallet.Event - } - export interface ParaInclusion { - type: "ParaInclusion" - value: t.polkadot_runtime_parachains.inclusion.pallet.Event - } - export interface Paras { - type: "Paras" - value: t.polkadot_runtime_parachains.paras.pallet.Event - } - export interface Ump { - type: "Ump" - value: t.polkadot_runtime_parachains.ump.pallet.Event - } - export interface Hrmp { - type: "Hrmp" - value: t.polkadot_runtime_parachains.hrmp.pallet.Event - } - export interface ParasDisputes { - type: "ParasDisputes" - value: t.polkadot_runtime_parachains.disputes.pallet.Event - } - export interface Registrar { - type: "Registrar" - value: t.polkadot_runtime_common.paras_registrar.pallet.Event - } - export interface Slots { - type: "Slots" - value: t.polkadot_runtime_common.slots.pallet.Event - } - export interface Auctions { - type: "Auctions" - value: t.polkadot_runtime_common.auctions.pallet.Event - } - export interface Crowdloan { - type: "Crowdloan" - value: t.polkadot_runtime_common.crowdloan.pallet.Event - } - export interface XcmPallet { - type: "XcmPallet" - value: t.pallet_xcm.pallet.Event - } - export function System( - value: t.polkadot_runtime.RuntimeEvent.System["value"], - ): t.polkadot_runtime.RuntimeEvent.System { - return { type: "System", value } - } - export function Scheduler( - value: t.polkadot_runtime.RuntimeEvent.Scheduler["value"], - ): t.polkadot_runtime.RuntimeEvent.Scheduler { - return { type: "Scheduler", value } - } - export function Preimage( - value: t.polkadot_runtime.RuntimeEvent.Preimage["value"], - ): t.polkadot_runtime.RuntimeEvent.Preimage { - return { type: "Preimage", value } - } - export function Indices( - value: t.polkadot_runtime.RuntimeEvent.Indices["value"], - ): t.polkadot_runtime.RuntimeEvent.Indices { - return { type: "Indices", value } - } - export function Balances( - value: t.polkadot_runtime.RuntimeEvent.Balances["value"], - ): t.polkadot_runtime.RuntimeEvent.Balances { - return { type: "Balances", value } - } - export function TransactionPayment( - value: t.polkadot_runtime.RuntimeEvent.TransactionPayment["value"], - ): t.polkadot_runtime.RuntimeEvent.TransactionPayment { - return { type: "TransactionPayment", value } - } - export function Staking( - value: t.polkadot_runtime.RuntimeEvent.Staking["value"], - ): t.polkadot_runtime.RuntimeEvent.Staking { - return { type: "Staking", value } - } - export function Offences( - value: t.polkadot_runtime.RuntimeEvent.Offences["value"], - ): t.polkadot_runtime.RuntimeEvent.Offences { - return { type: "Offences", value } - } - export function Session( - value: t.polkadot_runtime.RuntimeEvent.Session["value"], - ): t.polkadot_runtime.RuntimeEvent.Session { - return { type: "Session", value } - } - export function Grandpa( - value: t.polkadot_runtime.RuntimeEvent.Grandpa["value"], - ): t.polkadot_runtime.RuntimeEvent.Grandpa { - return { type: "Grandpa", value } - } - export function ImOnline( - value: t.polkadot_runtime.RuntimeEvent.ImOnline["value"], - ): t.polkadot_runtime.RuntimeEvent.ImOnline { - return { type: "ImOnline", value } - } - export function Democracy( - value: t.polkadot_runtime.RuntimeEvent.Democracy["value"], - ): t.polkadot_runtime.RuntimeEvent.Democracy { - return { type: "Democracy", value } - } - export function Council( - value: t.polkadot_runtime.RuntimeEvent.Council["value"], - ): t.polkadot_runtime.RuntimeEvent.Council { - return { type: "Council", value } - } - export function TechnicalCommittee( - value: t.polkadot_runtime.RuntimeEvent.TechnicalCommittee["value"], - ): t.polkadot_runtime.RuntimeEvent.TechnicalCommittee { - return { type: "TechnicalCommittee", value } - } - export function PhragmenElection( - value: t.polkadot_runtime.RuntimeEvent.PhragmenElection["value"], - ): t.polkadot_runtime.RuntimeEvent.PhragmenElection { - return { type: "PhragmenElection", value } - } - export function TechnicalMembership( - value: t.polkadot_runtime.RuntimeEvent.TechnicalMembership["value"], - ): t.polkadot_runtime.RuntimeEvent.TechnicalMembership { - return { type: "TechnicalMembership", value } - } - export function Treasury( - value: t.polkadot_runtime.RuntimeEvent.Treasury["value"], - ): t.polkadot_runtime.RuntimeEvent.Treasury { - return { type: "Treasury", value } - } - export function Claims( - value: t.polkadot_runtime.RuntimeEvent.Claims["value"], - ): t.polkadot_runtime.RuntimeEvent.Claims { - return { type: "Claims", value } - } - export function Vesting( - value: t.polkadot_runtime.RuntimeEvent.Vesting["value"], - ): t.polkadot_runtime.RuntimeEvent.Vesting { - return { type: "Vesting", value } - } - export function Utility( - value: t.polkadot_runtime.RuntimeEvent.Utility["value"], - ): t.polkadot_runtime.RuntimeEvent.Utility { - return { type: "Utility", value } - } - export function Identity( - value: t.polkadot_runtime.RuntimeEvent.Identity["value"], - ): t.polkadot_runtime.RuntimeEvent.Identity { - return { type: "Identity", value } - } - export function Proxy( - value: t.polkadot_runtime.RuntimeEvent.Proxy["value"], - ): t.polkadot_runtime.RuntimeEvent.Proxy { - return { type: "Proxy", value } - } - export function Multisig( - value: t.polkadot_runtime.RuntimeEvent.Multisig["value"], - ): t.polkadot_runtime.RuntimeEvent.Multisig { - return { type: "Multisig", value } - } - export function Bounties( - value: t.polkadot_runtime.RuntimeEvent.Bounties["value"], - ): t.polkadot_runtime.RuntimeEvent.Bounties { - return { type: "Bounties", value } - } - export function ChildBounties( - value: t.polkadot_runtime.RuntimeEvent.ChildBounties["value"], - ): t.polkadot_runtime.RuntimeEvent.ChildBounties { - return { type: "ChildBounties", value } - } - export function Tips( - value: t.polkadot_runtime.RuntimeEvent.Tips["value"], - ): t.polkadot_runtime.RuntimeEvent.Tips { - return { type: "Tips", value } - } - export function ElectionProviderMultiPhase( - value: t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase["value"], - ): t.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase { - return { type: "ElectionProviderMultiPhase", value } - } - export function VoterList( - value: t.polkadot_runtime.RuntimeEvent.VoterList["value"], - ): t.polkadot_runtime.RuntimeEvent.VoterList { - return { type: "VoterList", value } - } - export function NominationPools( - value: t.polkadot_runtime.RuntimeEvent.NominationPools["value"], - ): t.polkadot_runtime.RuntimeEvent.NominationPools { - return { type: "NominationPools", value } - } - export function FastUnstake( - value: t.polkadot_runtime.RuntimeEvent.FastUnstake["value"], - ): t.polkadot_runtime.RuntimeEvent.FastUnstake { - return { type: "FastUnstake", value } - } - export function ParaInclusion( - value: t.polkadot_runtime.RuntimeEvent.ParaInclusion["value"], - ): t.polkadot_runtime.RuntimeEvent.ParaInclusion { - return { type: "ParaInclusion", value } - } - export function Paras( - value: t.polkadot_runtime.RuntimeEvent.Paras["value"], - ): t.polkadot_runtime.RuntimeEvent.Paras { - return { type: "Paras", value } - } - export function Ump( - value: t.polkadot_runtime.RuntimeEvent.Ump["value"], - ): t.polkadot_runtime.RuntimeEvent.Ump { - return { type: "Ump", value } - } - export function Hrmp( - value: t.polkadot_runtime.RuntimeEvent.Hrmp["value"], - ): t.polkadot_runtime.RuntimeEvent.Hrmp { - return { type: "Hrmp", value } - } - export function ParasDisputes( - value: t.polkadot_runtime.RuntimeEvent.ParasDisputes["value"], - ): t.polkadot_runtime.RuntimeEvent.ParasDisputes { - return { type: "ParasDisputes", value } - } - export function Registrar( - value: t.polkadot_runtime.RuntimeEvent.Registrar["value"], - ): t.polkadot_runtime.RuntimeEvent.Registrar { - return { type: "Registrar", value } - } - export function Slots( - value: t.polkadot_runtime.RuntimeEvent.Slots["value"], - ): t.polkadot_runtime.RuntimeEvent.Slots { - return { type: "Slots", value } - } - export function Auctions( - value: t.polkadot_runtime.RuntimeEvent.Auctions["value"], - ): t.polkadot_runtime.RuntimeEvent.Auctions { - return { type: "Auctions", value } - } - export function Crowdloan( - value: t.polkadot_runtime.RuntimeEvent.Crowdloan["value"], - ): t.polkadot_runtime.RuntimeEvent.Crowdloan { - return { type: "Crowdloan", value } - } - export function XcmPallet( - value: t.polkadot_runtime.RuntimeEvent.XcmPallet["value"], - ): t.polkadot_runtime.RuntimeEvent.XcmPallet { - return { type: "XcmPallet", value } - } -} - -export interface SessionKeys { - grandpa: t.sp_finality_grandpa.app.Public - babe: t.sp_consensus_babe.app.Public - im_online: t.pallet_im_online.sr25519.app_sr25519.Public - para_validator: t.polkadot_primitives.v2.validator_app.Public - para_assignment: t.polkadot_primitives.v2.assignment_app.Public - authority_discovery: t.sp_authority_discovery.app.Public -} - -export function SessionKeys(value: t.polkadot_runtime.SessionKeys) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime_common/claims/mod.ts b/codegen/_output/westend/polkadot_runtime_common/claims/mod.ts deleted file mode 100644 index 205db5f73..000000000 --- a/codegen/_output/westend/polkadot_runtime_common/claims/mod.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $ecdsaSignature: $.Codec = _codec.$246 - -export const $ethereumAddress: $.Codec = - _codec.$73 - -export const $prevalidateAttests: $.Codec = - _codec.$736 - -export const $statementKind: $.Codec = _codec.$251 - -export type EcdsaSignature = Uint8Array - -export function EcdsaSignature(value: t.polkadot_runtime_common.claims.EcdsaSignature) { - return value -} - -export type EthereumAddress = Uint8Array - -export function EthereumAddress(value: t.polkadot_runtime_common.claims.EthereumAddress) { - return value -} - -export function PrevalidateAttests() { - return null -} - -export type PrevalidateAttests = null - -export type StatementKind = "Regular" | "Saft" diff --git a/codegen/_output/westend/polkadot_runtime_common/crowdloan/mod.ts b/codegen/_output/westend/polkadot_runtime_common/crowdloan/mod.ts deleted file mode 100644 index a65019c60..000000000 --- a/codegen/_output/westend/polkadot_runtime_common/crowdloan/mod.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $fundInfo: $.Codec = _codec.$710 - -export const $lastContribution: $.Codec = - _codec.$711 - -export interface FundInfo { - depositor: t.sp_core.crypto.AccountId32 - verifier: t.sp_runtime.MultiSigner | undefined - deposit: t.u128 - raised: t.u128 - end: t.u32 - cap: t.u128 - last_contribution: t.polkadot_runtime_common.crowdloan.LastContribution - first_period: t.u32 - last_period: t.u32 - fund_index: t.u32 -} - -export function FundInfo(value: t.polkadot_runtime_common.crowdloan.FundInfo) { - return value -} - -export type LastContribution = - | t.polkadot_runtime_common.crowdloan.LastContribution.Never - | t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding - | t.polkadot_runtime_common.crowdloan.LastContribution.Ending -export namespace LastContribution { - export interface Never { - type: "Never" - } - export interface PreEnding { - type: "PreEnding" - value: t.u32 - } - export interface Ending { - type: "Ending" - value: t.u32 - } - export function Never(): t.polkadot_runtime_common.crowdloan.LastContribution.Never { - return { type: "Never" } - } - export function PreEnding( - value: t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding["value"], - ): t.polkadot_runtime_common.crowdloan.LastContribution.PreEnding { - return { type: "PreEnding", value } - } - export function Ending( - value: t.polkadot_runtime_common.crowdloan.LastContribution.Ending["value"], - ): t.polkadot_runtime_common.crowdloan.LastContribution.Ending { - return { type: "Ending", value } - } -} diff --git a/codegen/_output/westend/polkadot_runtime_common/paras_registrar/mod.ts b/codegen/_output/westend/polkadot_runtime_common/paras_registrar/mod.ts deleted file mode 100644 index 952b109ba..000000000 --- a/codegen/_output/westend/polkadot_runtime_common/paras_registrar/mod.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $paraInfo: $.Codec = _codec.$701 - -export interface ParaInfo { - manager: t.sp_core.crypto.AccountId32 - deposit: t.u128 - locked: boolean -} - -export function ParaInfo(value: t.polkadot_runtime_common.paras_registrar.ParaInfo) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/configuration/mod.ts b/codegen/_output/westend/polkadot_runtime_parachains/configuration/mod.ts deleted file mode 100644 index 58a100e5b..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/configuration/mod.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $hostConfiguration: $.Codec< - t.polkadot_runtime_parachains.configuration.HostConfiguration -> = _codec.$638 - -export interface HostConfiguration { - max_code_size: t.u32 - max_head_data_size: t.u32 - max_upward_queue_count: t.u32 - max_upward_queue_size: t.u32 - max_upward_message_size: t.u32 - max_upward_message_num_per_candidate: t.u32 - hrmp_max_message_num_per_candidate: t.u32 - validation_upgrade_cooldown: t.u32 - validation_upgrade_delay: t.u32 - max_pov_size: t.u32 - max_downward_message_size: t.u32 - ump_service_total_weight: t.sp_weights.weight_v2.Weight - hrmp_max_parachain_outbound_channels: t.u32 - hrmp_max_parathread_outbound_channels: t.u32 - hrmp_sender_deposit: t.u128 - hrmp_recipient_deposit: t.u128 - hrmp_channel_max_capacity: t.u32 - hrmp_channel_max_total_size: t.u32 - hrmp_max_parachain_inbound_channels: t.u32 - hrmp_max_parathread_inbound_channels: t.u32 - hrmp_channel_max_message_size: t.u32 - code_retention_period: t.u32 - parathread_cores: t.u32 - parathread_retries: t.u32 - group_rotation_frequency: t.u32 - chain_availability_period: t.u32 - thread_availability_period: t.u32 - scheduling_lookahead: t.u32 - max_validators_per_core: t.u32 | undefined - max_validators: t.u32 | undefined - dispute_period: t.u32 - dispute_post_conclusion_acceptance_period: t.u32 - dispute_max_spam_slots: t.u32 - dispute_conclusion_by_time_out_period: t.u32 - no_show_slots: t.u32 - n_delay_tranches: t.u32 - zeroth_delay_tranche_width: t.u32 - needed_approvals: t.u32 - relay_vrf_modulo_samples: t.u32 - ump_max_individual_weight: t.sp_weights.weight_v2.Weight - pvf_checking_enabled: boolean - pvf_voting_ttl: t.u32 - minimum_validation_upgrade_delay: t.u32 -} - -export function HostConfiguration( - value: t.polkadot_runtime_parachains.configuration.HostConfiguration, -) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/disputes/mod.ts b/codegen/_output/westend/polkadot_runtime_parachains/disputes/mod.ts deleted file mode 100644 index d1f7d5c78..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/disputes/mod.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $disputeLocation: $.Codec = - _codec.$115 - -export const $disputeResult: $.Codec = - _codec.$116 - -export type DisputeLocation = "Local" | "Remote" - -export type DisputeResult = "Valid" | "Invalid" diff --git a/codegen/_output/westend/polkadot_runtime_parachains/dmp/pallet.ts b/codegen/_output/westend/polkadot_runtime_parachains/dmp/pallet.ts deleted file mode 100644 index 824aca702..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/dmp/pallet.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $call: $.Codec = _codec.$407 - -/** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = never diff --git a/codegen/_output/westend/polkadot_runtime_parachains/hrmp/mod.ts b/codegen/_output/westend/polkadot_runtime_parachains/hrmp/mod.ts deleted file mode 100644 index 80f6f4046..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/hrmp/mod.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $hrmpChannel: $.Codec = _codec.$688 - -export const $hrmpOpenChannelRequest: $.Codec< - t.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest -> = _codec.$686 - -export interface HrmpChannel { - max_capacity: t.u32 - max_total_size: t.u32 - max_message_size: t.u32 - msg_count: t.u32 - total_size: t.u32 - mqc_head: t.primitive_types.H256 | undefined - sender_deposit: t.u128 - recipient_deposit: t.u128 -} - -export function HrmpChannel(value: t.polkadot_runtime_parachains.hrmp.HrmpChannel) { - return value -} - -export interface HrmpOpenChannelRequest { - confirmed: boolean - _age: t.u32 - sender_deposit: t.u128 - max_message_size: t.u32 - max_capacity: t.u32 - max_total_size: t.u32 -} - -export function HrmpOpenChannelRequest( - value: t.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest, -) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/inclusion/mod.ts b/codegen/_output/westend/polkadot_runtime_parachains/inclusion/mod.ts deleted file mode 100644 index 8d4b05566..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/inclusion/mod.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $availabilityBitfieldRecord: $.Codec< - t.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord -> = _codec.$644 - -export const $candidatePendingAvailability: $.Codec< - t.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability -> = _codec.$645 - -export interface AvailabilityBitfieldRecord { - bitfield: t.polkadot_primitives.v2.AvailabilityBitfield - submitted_at: t.u32 -} - -export function AvailabilityBitfieldRecord( - value: t.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord, -) { - return value -} - -export interface CandidatePendingAvailability { - core: t.polkadot_primitives.v2.CoreIndex - hash: t.polkadot_core_primitives.CandidateHash - descriptor: t.polkadot_primitives.v2.CandidateDescriptor - availability_votes: $.BitSequence - backers: $.BitSequence - relay_parent_number: t.u32 - backed_in_number: t.u32 - backing_group: t.polkadot_primitives.v2.GroupIndex -} - -export function CandidatePendingAvailability( - value: t.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability, -) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/initializer/mod.ts b/codegen/_output/westend/polkadot_runtime_parachains/initializer/mod.ts deleted file mode 100644 index 13dbb8fd9..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/initializer/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $bufferedSessionChange: $.Codec< - t.polkadot_runtime_parachains.initializer.BufferedSessionChange -> = _codec.$681 - -export interface BufferedSessionChange { - validators: Array - queued: Array - session_index: t.u32 -} - -export function BufferedSessionChange( - value: t.polkadot_runtime_parachains.initializer.BufferedSessionChange, -) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/origin/pallet.ts b/codegen/_output/westend/polkadot_runtime_parachains/origin/pallet.ts deleted file mode 100644 index ae5aabd46..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/origin/pallet.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $origin: $.Codec = _codec.$260 - -export type Origin = t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain -export namespace Origin { - export interface Parachain { - type: "Parachain" - value: t.polkadot_parachain.primitives.Id - } - export function Parachain( - value: t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain["value"], - ): t.polkadot_runtime_parachains.origin.pallet.Origin.Parachain { - return { type: "Parachain", value } - } -} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/paras/mod.ts b/codegen/_output/westend/polkadot_runtime_parachains/paras/mod.ts deleted file mode 100644 index 4d940b368..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/paras/mod.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as pallet from "./pallet.ts" - -export const $paraGenesisArgs: $.Codec = - _codec.$678 - -export const $paraLifecycle: $.Codec = - _codec.$670 - -export const $paraPastCodeMeta: $.Codec = - _codec.$672 - -export const $pvfCheckActiveVoteState: $.Codec< - t.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState -> = _codec.$666 - -export const $pvfCheckCause: $.Codec = - _codec.$668 - -export const $replacementTimes: $.Codec = - _codec.$674 - -export interface ParaGenesisArgs { - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode - parachain: boolean -} - -export function ParaGenesisArgs(value: t.polkadot_runtime_parachains.paras.ParaGenesisArgs) { - return value -} - -export type ParaLifecycle = - | "Onboarding" - | "Parathread" - | "Parachain" - | "UpgradingParathread" - | "DowngradingParachain" - | "OffboardingParathread" - | "OffboardingParachain" - -export interface ParaPastCodeMeta { - upgrade_times: Array - last_pruned: t.u32 | undefined -} - -export function ParaPastCodeMeta(value: t.polkadot_runtime_parachains.paras.ParaPastCodeMeta) { - return value -} - -export interface PvfCheckActiveVoteState { - votes_accept: $.BitSequence - votes_reject: $.BitSequence - age: t.u32 - created_at: t.u32 - causes: Array -} - -export function PvfCheckActiveVoteState( - value: t.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState, -) { - return value -} - -export type PvfCheckCause = - | t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding - | t.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade -export namespace PvfCheckCause { - export interface Onboarding { - type: "Onboarding" - value: t.polkadot_parachain.primitives.Id - } - export interface Upgrade { - type: "Upgrade" - id: t.polkadot_parachain.primitives.Id - relay_parent_number: t.u32 - } - export function Onboarding( - value: t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding["value"], - ): t.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding { - return { type: "Onboarding", value } - } - export function Upgrade( - value: Omit, - ): t.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade { - return { type: "Upgrade", ...value } - } -} - -export interface ReplacementTimes { - expected_at: t.u32 - activated_at: t.u32 -} - -export function ReplacementTimes(value: t.polkadot_runtime_parachains.paras.ReplacementTimes) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/scheduler.ts b/codegen/_output/westend/polkadot_runtime_parachains/scheduler.ts deleted file mode 100644 index 7fdaa4ecb..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/scheduler.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $assignmentKind: $.Codec = - _codec.$665 - -export const $coreAssignment: $.Codec = - _codec.$664 - -export const $parathreadClaimQueue: $.Codec< - t.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue -> = _codec.$654 - -export const $queuedParathread: $.Codec = - _codec.$656 - -export type AssignmentKind = - | t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain - | t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread -export namespace AssignmentKind { - export interface Parachain { - type: "Parachain" - } - export interface Parathread { - type: "Parathread" - value: [t.polkadot_primitives.v2.collator_app.Public, t.u32] - } - export function Parachain(): t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain { - return { type: "Parachain" } - } - export function Parathread( - ...value: t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread["value"] - ): t.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread { - return { type: "Parathread", value } - } -} - -export interface CoreAssignment { - core: t.polkadot_primitives.v2.CoreIndex - para_id: t.polkadot_parachain.primitives.Id - kind: t.polkadot_runtime_parachains.scheduler.AssignmentKind - group_idx: t.polkadot_primitives.v2.GroupIndex -} - -export function CoreAssignment(value: t.polkadot_runtime_parachains.scheduler.CoreAssignment) { - return value -} - -export interface ParathreadClaimQueue { - queue: Array - next_core_offset: t.u32 -} - -export function ParathreadClaimQueue( - value: t.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue, -) { - return value -} - -export interface QueuedParathread { - claim: t.polkadot_primitives.v2.ParathreadEntry - core_offset: t.u32 -} - -export function QueuedParathread(value: t.polkadot_runtime_parachains.scheduler.QueuedParathread) { - return value -} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/shared/pallet.ts b/codegen/_output/westend/polkadot_runtime_parachains/shared/pallet.ts deleted file mode 100644 index c40d97d4d..000000000 --- a/codegen/_output/westend/polkadot_runtime_parachains/shared/pallet.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $call: $.Codec = _codec.$376 - -/** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = never diff --git a/codegen/_output/westend/primitive_types.ts b/codegen/_output/westend/primitive_types.ts deleted file mode 100644 index 10f714849..000000000 --- a/codegen/_output/westend/primitive_types.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $h256: $.Codec = _codec.$11 - -export type H256 = Uint8Array - -export function H256(value: t.primitive_types.H256) { - return value -} diff --git a/codegen/_output/westend/sp_arithmetic/fixed_point.ts b/codegen/_output/westend/sp_arithmetic/fixed_point.ts deleted file mode 100644 index 674cc82fd..000000000 --- a/codegen/_output/westend/sp_arithmetic/fixed_point.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $fixedU128: $.Codec = _codec.$479 - -export type FixedU128 = t.u128 - -export function FixedU128(value: t.sp_arithmetic.fixed_point.FixedU128) { - return value -} diff --git a/codegen/_output/westend/sp_arithmetic/per_things.ts b/codegen/_output/westend/sp_arithmetic/per_things.ts deleted file mode 100644 index c152d090b..000000000 --- a/codegen/_output/westend/sp_arithmetic/per_things.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $perU16: $.Codec = _codec.$320 - -export const $perbill: $.Codec = _codec.$42 - -export const $percent: $.Codec = _codec.$205 - -export const $permill: $.Codec = _codec.$558 - -export type PerU16 = t.u16 - -export function PerU16(value: t.sp_arithmetic.per_things.PerU16) { - return value -} - -export type Perbill = t.u32 - -export function Perbill(value: t.sp_arithmetic.per_things.Perbill) { - return value -} - -export type Percent = t.u8 - -export function Percent(value: t.sp_arithmetic.per_things.Percent) { - return value -} - -export type Permill = t.u32 - -export function Permill(value: t.sp_arithmetic.per_things.Permill) { - return value -} diff --git a/codegen/_output/westend/sp_authority_discovery/app.ts b/codegen/_output/westend/sp_authority_discovery/app.ts deleted file mode 100644 index 918896eec..000000000 --- a/codegen/_output/westend/sp_authority_discovery/app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$215 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.sp_authority_discovery.app.Public) { - return value -} diff --git a/codegen/_output/westend/sp_consensus_babe/app.ts b/codegen/_output/westend/sp_consensus_babe/app.ts deleted file mode 100644 index 40f9ba509..000000000 --- a/codegen/_output/westend/sp_consensus_babe/app.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$189 - -export type Public = t.sp_core.sr25519.Public - -export function Public(value: t.sp_consensus_babe.app.Public) { - return value -} diff --git a/codegen/_output/westend/sp_consensus_babe/digests.ts b/codegen/_output/westend/sp_consensus_babe/digests.ts deleted file mode 100644 index 423b1d1b6..000000000 --- a/codegen/_output/westend/sp_consensus_babe/digests.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $nextConfigDescriptor: $.Codec = - _codec.$192 - -export const $preDigest: $.Codec = _codec.$462 - -export const $primaryPreDigest: $.Codec = _codec.$463 - -export const $secondaryPlainPreDigest: $.Codec< - t.sp_consensus_babe.digests.SecondaryPlainPreDigest -> = _codec.$464 - -export const $secondaryVRFPreDigest: $.Codec = - _codec.$465 - -export type NextConfigDescriptor = t.sp_consensus_babe.digests.NextConfigDescriptor.V1 -export namespace NextConfigDescriptor { - export interface V1 { - type: "V1" - c: [t.u64, t.u64] - allowed_slots: t.sp_consensus_babe.AllowedSlots - } - export function V1( - value: Omit, - ): t.sp_consensus_babe.digests.NextConfigDescriptor.V1 { - return { type: "V1", ...value } - } -} - -export type PreDigest = - | t.sp_consensus_babe.digests.PreDigest.Primary - | t.sp_consensus_babe.digests.PreDigest.SecondaryPlain - | t.sp_consensus_babe.digests.PreDigest.SecondaryVRF -export namespace PreDigest { - export interface Primary { - type: "Primary" - value: t.sp_consensus_babe.digests.PrimaryPreDigest - } - export interface SecondaryPlain { - type: "SecondaryPlain" - value: t.sp_consensus_babe.digests.SecondaryPlainPreDigest - } - export interface SecondaryVRF { - type: "SecondaryVRF" - value: t.sp_consensus_babe.digests.SecondaryVRFPreDigest - } - export function Primary( - value: t.sp_consensus_babe.digests.PreDigest.Primary["value"], - ): t.sp_consensus_babe.digests.PreDigest.Primary { - return { type: "Primary", value } - } - export function SecondaryPlain( - value: t.sp_consensus_babe.digests.PreDigest.SecondaryPlain["value"], - ): t.sp_consensus_babe.digests.PreDigest.SecondaryPlain { - return { type: "SecondaryPlain", value } - } - export function SecondaryVRF( - value: t.sp_consensus_babe.digests.PreDigest.SecondaryVRF["value"], - ): t.sp_consensus_babe.digests.PreDigest.SecondaryVRF { - return { type: "SecondaryVRF", value } - } -} - -export interface PrimaryPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot - vrf_output: Uint8Array - vrf_proof: Uint8Array -} - -export function PrimaryPreDigest(value: t.sp_consensus_babe.digests.PrimaryPreDigest) { - return value -} - -export interface SecondaryPlainPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot -} - -export function SecondaryPlainPreDigest( - value: t.sp_consensus_babe.digests.SecondaryPlainPreDigest, -) { - return value -} - -export interface SecondaryVRFPreDigest { - authority_index: t.u32 - slot: t.sp_consensus_slots.Slot - vrf_output: Uint8Array - vrf_proof: Uint8Array -} - -export function SecondaryVRFPreDigest(value: t.sp_consensus_babe.digests.SecondaryVRFPreDigest) { - return value -} diff --git a/codegen/_output/westend/sp_consensus_babe/mod.ts b/codegen/_output/westend/sp_consensus_babe/mod.ts deleted file mode 100644 index a38c9e392..000000000 --- a/codegen/_output/westend/sp_consensus_babe/mod.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as app from "./app.ts" -export * as digests from "./digests.ts" - -export const $allowedSlots: $.Codec = _codec.$194 - -export const $babeEpochConfiguration: $.Codec = - _codec.$466 - -export type AllowedSlots = - | "PrimarySlots" - | "PrimaryAndSecondaryPlainSlots" - | "PrimaryAndSecondaryVRFSlots" - -export interface BabeEpochConfiguration { - c: [t.u64, t.u64] - allowed_slots: t.sp_consensus_babe.AllowedSlots -} - -export function BabeEpochConfiguration(value: t.sp_consensus_babe.BabeEpochConfiguration) { - return value -} diff --git a/codegen/_output/westend/sp_consensus_slots.ts b/codegen/_output/westend/sp_consensus_slots.ts deleted file mode 100644 index 841934e60..000000000 --- a/codegen/_output/westend/sp_consensus_slots.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $equivocationProof: $.Codec = _codec.$186 - -export const $slot: $.Codec = _codec.$190 - -export interface EquivocationProof { - offender: t.sp_consensus_babe.app.Public - slot: t.sp_consensus_slots.Slot - first_header: t.sp_runtime.generic.header.Header - second_header: t.sp_runtime.generic.header.Header -} - -export function EquivocationProof(value: t.sp_consensus_slots.EquivocationProof) { - return value -} - -export type Slot = t.u64 - -export function Slot(value: t.sp_consensus_slots.Slot) { - return value -} diff --git a/codegen/_output/westend/sp_core/crypto.ts b/codegen/_output/westend/sp_core/crypto.ts deleted file mode 100644 index 8fa0bc6b2..000000000 --- a/codegen/_output/westend/sp_core/crypto.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $accountId32: $.Codec = _codec.$0 - -export const $keyTypeId: $.Codec = _codec.$514 - -export type AccountId32 = Uint8Array - -export function AccountId32(value: t.sp_core.crypto.AccountId32) { - return value -} - -export type KeyTypeId = Uint8Array - -export function KeyTypeId(value: t.sp_core.crypto.KeyTypeId) { - return value -} diff --git a/codegen/_output/westend/sp_core/ecdsa.ts b/codegen/_output/westend/sp_core/ecdsa.ts deleted file mode 100644 index b69928dff..000000000 --- a/codegen/_output/westend/sp_core/ecdsa.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$418 - -export const $signature: $.Codec = _codec.$422 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.ecdsa.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.ecdsa.Signature) { - return value -} diff --git a/codegen/_output/westend/sp_core/ed25519.ts b/codegen/_output/westend/sp_core/ed25519.ts deleted file mode 100644 index ed142f6b4..000000000 --- a/codegen/_output/westend/sp_core/ed25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$51 - -export const $signature: $.Codec = _codec.$222 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.ed25519.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.ed25519.Signature) { - return value -} diff --git a/codegen/_output/westend/sp_core/mod.ts b/codegen/_output/westend/sp_core/mod.ts deleted file mode 100644 index ab5fac89c..000000000 --- a/codegen/_output/westend/sp_core/mod.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as crypto from "./crypto.ts" -export * as ecdsa from "./ecdsa.ts" -export * as ed25519 from "./ed25519.ts" -export * as offchain from "./offchain.ts" -export * as sr25519 from "./sr25519.ts" - -export const $opaquePeerId: $.Codec = _codec.$230 - -export const $void: $.Codec = _codec.$262 - -export type OpaquePeerId = Uint8Array - -export function OpaquePeerId(value: t.sp_core.OpaquePeerId) { - return value -} - -export type Void = never diff --git a/codegen/_output/westend/sp_core/offchain.ts b/codegen/_output/westend/sp_core/offchain.ts deleted file mode 100644 index 3aa308902..000000000 --- a/codegen/_output/westend/sp_core/offchain.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $opaqueMultiaddr: $.Codec = _codec.$232 - -export const $opaqueNetworkState: $.Codec = _codec.$229 - -export type OpaqueMultiaddr = Uint8Array - -export function OpaqueMultiaddr(value: t.sp_core.offchain.OpaqueMultiaddr) { - return value -} - -export interface OpaqueNetworkState { - peer_id: t.sp_core.OpaquePeerId - external_addresses: Array -} - -export function OpaqueNetworkState(value: t.sp_core.offchain.OpaqueNetworkState) { - return value -} diff --git a/codegen/_output/westend/sp_core/sr25519.ts b/codegen/_output/westend/sp_core/sr25519.ts deleted file mode 100644 index a8a042cf8..000000000 --- a/codegen/_output/westend/sp_core/sr25519.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$54 - -export const $signature: $.Codec = _codec.$101 - -export type Public = Uint8Array - -export function Public(value: t.sp_core.sr25519.Public) { - return value -} - -export type Signature = Uint8Array - -export function Signature(value: t.sp_core.sr25519.Signature) { - return value -} diff --git a/codegen/_output/westend/sp_finality_grandpa/app.ts b/codegen/_output/westend/sp_finality_grandpa/app.ts deleted file mode 100644 index 511c7a3b0..000000000 --- a/codegen/_output/westend/sp_finality_grandpa/app.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $public: $.Codec = _codec.$50 - -export const $signature: $.Codec = _codec.$221 - -export type Public = t.sp_core.ed25519.Public - -export function Public(value: t.sp_finality_grandpa.app.Public) { - return value -} - -export type Signature = t.sp_core.ed25519.Signature - -export function Signature(value: t.sp_finality_grandpa.app.Signature) { - return value -} diff --git a/codegen/_output/westend/sp_finality_grandpa/mod.ts b/codegen/_output/westend/sp_finality_grandpa/mod.ts deleted file mode 100644 index ea0fdf364..000000000 --- a/codegen/_output/westend/sp_finality_grandpa/mod.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as app from "./app.ts" - -export const $equivocation: $.Codec = _codec.$218 - -export const $equivocationProof: $.Codec = _codec.$217 - -export type Equivocation = - | t.sp_finality_grandpa.Equivocation.Prevote - | t.sp_finality_grandpa.Equivocation.Precommit -export namespace Equivocation { - export interface Prevote { - type: "Prevote" - value: t.finality_grandpa.Equivocation.$$finality_grandpa.Prevote - } - export interface Precommit { - type: "Precommit" - value: t.finality_grandpa.Equivocation.$$finality_grandpa.Precommit - } - export function Prevote( - value: t.sp_finality_grandpa.Equivocation.Prevote["value"], - ): t.sp_finality_grandpa.Equivocation.Prevote { - return { type: "Prevote", value } - } - export function Precommit( - value: t.sp_finality_grandpa.Equivocation.Precommit["value"], - ): t.sp_finality_grandpa.Equivocation.Precommit { - return { type: "Precommit", value } - } -} - -export interface EquivocationProof { - set_id: t.u64 - equivocation: t.sp_finality_grandpa.Equivocation -} - -export function EquivocationProof(value: t.sp_finality_grandpa.EquivocationProof) { - return value -} diff --git a/codegen/_output/westend/sp_npos_elections.ts b/codegen/_output/westend/sp_npos_elections.ts deleted file mode 100644 index 7bbe5b644..000000000 --- a/codegen/_output/westend/sp_npos_elections.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $electionScore: $.Codec = _codec.$88 - -export const $support: $.Codec = _codec.$367 - -export interface ElectionScore { - minimal_stake: t.u128 - sum_stake: t.u128 - sum_stake_squared: t.u128 -} - -export function ElectionScore(value: t.sp_npos_elections.ElectionScore) { - return value -} - -export interface Support { - total: t.u128 - voters: Array<[t.sp_core.crypto.AccountId32, t.u128]> -} - -export function Support(value: t.sp_npos_elections.Support) { - return value -} diff --git a/codegen/_output/westend/sp_runtime/generic/digest.ts b/codegen/_output/westend/sp_runtime/generic/digest.ts deleted file mode 100644 index 1b574b774..000000000 --- a/codegen/_output/westend/sp_runtime/generic/digest.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $digest: $.Codec = _codec.$13 - -export const $digestItem: $.Codec = _codec.$15 - -export interface Digest { - logs: Array -} - -export function Digest(value: t.sp_runtime.generic.digest.Digest) { - return value -} - -export type DigestItem = - | t.sp_runtime.generic.digest.DigestItem.PreRuntime - | t.sp_runtime.generic.digest.DigestItem.Consensus - | t.sp_runtime.generic.digest.DigestItem.Seal - | t.sp_runtime.generic.digest.DigestItem.Other - | t.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated -export namespace DigestItem { - export interface PreRuntime { - type: "PreRuntime" - value: [Uint8Array, Uint8Array] - } - export interface Consensus { - type: "Consensus" - value: [Uint8Array, Uint8Array] - } - export interface Seal { - type: "Seal" - value: [Uint8Array, Uint8Array] - } - export interface Other { - type: "Other" - value: Uint8Array - } - export interface RuntimeEnvironmentUpdated { - type: "RuntimeEnvironmentUpdated" - } - export function PreRuntime( - ...value: t.sp_runtime.generic.digest.DigestItem.PreRuntime["value"] - ): t.sp_runtime.generic.digest.DigestItem.PreRuntime { - return { type: "PreRuntime", value } - } - export function Consensus( - ...value: t.sp_runtime.generic.digest.DigestItem.Consensus["value"] - ): t.sp_runtime.generic.digest.DigestItem.Consensus { - return { type: "Consensus", value } - } - export function Seal( - ...value: t.sp_runtime.generic.digest.DigestItem.Seal["value"] - ): t.sp_runtime.generic.digest.DigestItem.Seal { - return { type: "Seal", value } - } - export function Other( - value: t.sp_runtime.generic.digest.DigestItem.Other["value"], - ): t.sp_runtime.generic.digest.DigestItem.Other { - return { type: "Other", value } - } - export function RuntimeEnvironmentUpdated(): t.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated { - return { type: "RuntimeEnvironmentUpdated" } - } -} diff --git a/codegen/_output/westend/sp_runtime/generic/header.ts b/codegen/_output/westend/sp_runtime/generic/header.ts deleted file mode 100644 index 70f43e755..000000000 --- a/codegen/_output/westend/sp_runtime/generic/header.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $header: $.Codec = _codec.$187 - -export interface Header { - parent_hash: t.primitive_types.H256 - number: t.Compact - state_root: t.primitive_types.H256 - extrinsics_root: t.primitive_types.H256 - digest: t.sp_runtime.generic.digest.Digest -} - -export function Header(value: t.sp_runtime.generic.header.Header) { - return value -} diff --git a/codegen/_output/westend/sp_runtime/mod.ts b/codegen/_output/westend/sp_runtime/mod.ts deleted file mode 100644 index a8b3cf982..000000000 --- a/codegen/_output/westend/sp_runtime/mod.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as generic from "./generic/mod.ts" -export * as multiaddress from "./multiaddress.ts" -export * as traits from "./traits.ts" - -export const $arithmeticError: $.Codec = _codec.$27 - -export const $dispatchError: $.Codec = _codec.$24 - -export const $moduleError: $.Codec = _codec.$25 - -export const $multiSignature: $.Codec = _codec.$421 - -export const $multiSigner: $.Codec = _codec.$417 - -export const $tokenError: $.Codec = _codec.$26 - -export const $transactionalError: $.Codec = _codec.$28 - -export type ArithmeticError = "Underflow" | "Overflow" | "DivisionByZero" - -export type DispatchError = - | t.sp_runtime.DispatchError.Other - | t.sp_runtime.DispatchError.CannotLookup - | t.sp_runtime.DispatchError.BadOrigin - | t.sp_runtime.DispatchError.Module - | t.sp_runtime.DispatchError.ConsumerRemaining - | t.sp_runtime.DispatchError.NoProviders - | t.sp_runtime.DispatchError.TooManyConsumers - | t.sp_runtime.DispatchError.Token - | t.sp_runtime.DispatchError.Arithmetic - | t.sp_runtime.DispatchError.Transactional - | t.sp_runtime.DispatchError.Exhausted - | t.sp_runtime.DispatchError.Corruption - | t.sp_runtime.DispatchError.Unavailable -export namespace DispatchError { - export interface Other { - type: "Other" - } - export interface CannotLookup { - type: "CannotLookup" - } - export interface BadOrigin { - type: "BadOrigin" - } - export interface Module { - type: "Module" - value: t.sp_runtime.ModuleError - } - export interface ConsumerRemaining { - type: "ConsumerRemaining" - } - export interface NoProviders { - type: "NoProviders" - } - export interface TooManyConsumers { - type: "TooManyConsumers" - } - export interface Token { - type: "Token" - value: t.sp_runtime.TokenError - } - export interface Arithmetic { - type: "Arithmetic" - value: t.sp_runtime.ArithmeticError - } - export interface Transactional { - type: "Transactional" - value: t.sp_runtime.TransactionalError - } - export interface Exhausted { - type: "Exhausted" - } - export interface Corruption { - type: "Corruption" - } - export interface Unavailable { - type: "Unavailable" - } - export function Other(): t.sp_runtime.DispatchError.Other { - return { type: "Other" } - } - export function CannotLookup(): t.sp_runtime.DispatchError.CannotLookup { - return { type: "CannotLookup" } - } - export function BadOrigin(): t.sp_runtime.DispatchError.BadOrigin { - return { type: "BadOrigin" } - } - export function Module( - value: t.sp_runtime.DispatchError.Module["value"], - ): t.sp_runtime.DispatchError.Module { - return { type: "Module", value } - } - export function ConsumerRemaining(): t.sp_runtime.DispatchError.ConsumerRemaining { - return { type: "ConsumerRemaining" } - } - export function NoProviders(): t.sp_runtime.DispatchError.NoProviders { - return { type: "NoProviders" } - } - export function TooManyConsumers(): t.sp_runtime.DispatchError.TooManyConsumers { - return { type: "TooManyConsumers" } - } - export function Token( - value: t.sp_runtime.DispatchError.Token["value"], - ): t.sp_runtime.DispatchError.Token { - return { type: "Token", value } - } - export function Arithmetic( - value: t.sp_runtime.DispatchError.Arithmetic["value"], - ): t.sp_runtime.DispatchError.Arithmetic { - return { type: "Arithmetic", value } - } - export function Transactional( - value: t.sp_runtime.DispatchError.Transactional["value"], - ): t.sp_runtime.DispatchError.Transactional { - return { type: "Transactional", value } - } - export function Exhausted(): t.sp_runtime.DispatchError.Exhausted { - return { type: "Exhausted" } - } - export function Corruption(): t.sp_runtime.DispatchError.Corruption { - return { type: "Corruption" } - } - export function Unavailable(): t.sp_runtime.DispatchError.Unavailable { - return { type: "Unavailable" } - } -} - -export interface ModuleError { - index: t.u8 - error: Uint8Array -} - -export function ModuleError(value: t.sp_runtime.ModuleError) { - return value -} - -export type MultiSignature = - | t.sp_runtime.MultiSignature.Ed25519 - | t.sp_runtime.MultiSignature.Sr25519 - | t.sp_runtime.MultiSignature.Ecdsa -export namespace MultiSignature { - export interface Ed25519 { - type: "Ed25519" - value: t.sp_core.ed25519.Signature - } - export interface Sr25519 { - type: "Sr25519" - value: t.sp_core.sr25519.Signature - } - export interface Ecdsa { - type: "Ecdsa" - value: t.sp_core.ecdsa.Signature - } - export function Ed25519( - value: t.sp_runtime.MultiSignature.Ed25519["value"], - ): t.sp_runtime.MultiSignature.Ed25519 { - return { type: "Ed25519", value } - } - export function Sr25519( - value: t.sp_runtime.MultiSignature.Sr25519["value"], - ): t.sp_runtime.MultiSignature.Sr25519 { - return { type: "Sr25519", value } - } - export function Ecdsa( - value: t.sp_runtime.MultiSignature.Ecdsa["value"], - ): t.sp_runtime.MultiSignature.Ecdsa { - return { type: "Ecdsa", value } - } -} - -export type MultiSigner = - | t.sp_runtime.MultiSigner.Ed25519 - | t.sp_runtime.MultiSigner.Sr25519 - | t.sp_runtime.MultiSigner.Ecdsa -export namespace MultiSigner { - export interface Ed25519 { - type: "Ed25519" - value: t.sp_core.ed25519.Public - } - export interface Sr25519 { - type: "Sr25519" - value: t.sp_core.sr25519.Public - } - export interface Ecdsa { - type: "Ecdsa" - value: t.sp_core.ecdsa.Public - } - export function Ed25519( - value: t.sp_runtime.MultiSigner.Ed25519["value"], - ): t.sp_runtime.MultiSigner.Ed25519 { - return { type: "Ed25519", value } - } - export function Sr25519( - value: t.sp_runtime.MultiSigner.Sr25519["value"], - ): t.sp_runtime.MultiSigner.Sr25519 { - return { type: "Sr25519", value } - } - export function Ecdsa( - value: t.sp_runtime.MultiSigner.Ecdsa["value"], - ): t.sp_runtime.MultiSigner.Ecdsa { - return { type: "Ecdsa", value } - } -} - -export type TokenError = - | "NoFunds" - | "WouldDie" - | "BelowMinimum" - | "CannotCreate" - | "UnknownAsset" - | "Frozen" - | "Unsupported" - -export type TransactionalError = "LimitReached" | "NoLayer" diff --git a/codegen/_output/westend/sp_runtime/multiaddress.ts b/codegen/_output/westend/sp_runtime/multiaddress.ts deleted file mode 100644 index 4dc61094d..000000000 --- a/codegen/_output/westend/sp_runtime/multiaddress.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $multiAddress: $.Codec = _codec.$197 - -export type MultiAddress = - | t.sp_runtime.multiaddress.MultiAddress.Id - | t.sp_runtime.multiaddress.MultiAddress.Index - | t.sp_runtime.multiaddress.MultiAddress.Raw - | t.sp_runtime.multiaddress.MultiAddress.Address32 - | t.sp_runtime.multiaddress.MultiAddress.Address20 -export namespace MultiAddress { - export interface Id { - type: "Id" - value: t.sp_core.crypto.AccountId32 - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Raw { - type: "Raw" - value: Uint8Array - } - export interface Address32 { - type: "Address32" - value: Uint8Array - } - export interface Address20 { - type: "Address20" - value: Uint8Array - } - export function Id( - value: t.sp_runtime.multiaddress.MultiAddress.Id["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Id { - return { type: "Id", value } - } - export function Index( - value: t.sp_runtime.multiaddress.MultiAddress.Index["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Index { - return { type: "Index", value } - } - export function Raw( - value: t.sp_runtime.multiaddress.MultiAddress.Raw["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Raw { - return { type: "Raw", value } - } - export function Address32( - value: t.sp_runtime.multiaddress.MultiAddress.Address32["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Address32 { - return { type: "Address32", value } - } - export function Address20( - value: t.sp_runtime.multiaddress.MultiAddress.Address20["value"], - ): t.sp_runtime.multiaddress.MultiAddress.Address20 { - return { type: "Address20", value } - } -} diff --git a/codegen/_output/westend/sp_runtime/traits.ts b/codegen/_output/westend/sp_runtime/traits.ts deleted file mode 100644 index 942c3712f..000000000 --- a/codegen/_output/westend/sp_runtime/traits.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $blakeTwo256: $.Codec = _codec.$188 - -export function BlakeTwo256() { - return null -} - -export type BlakeTwo256 = null diff --git a/codegen/_output/westend/sp_session.ts b/codegen/_output/westend/sp_session.ts deleted file mode 100644 index 3ebb285df..000000000 --- a/codegen/_output/westend/sp_session.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $membershipProof: $.Codec = _codec.$191 - -export interface MembershipProof { - session: t.u32 - trie_nodes: Array - validator_count: t.u32 -} - -export function MembershipProof(value: t.sp_session.MembershipProof) { - return value -} diff --git a/codegen/_output/westend/sp_staking/offence.ts b/codegen/_output/westend/sp_staking/offence.ts deleted file mode 100644 index 02918d79f..000000000 --- a/codegen/_output/westend/sp_staking/offence.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $offenceDetails: $.Codec = _codec.$509 - -export interface OffenceDetails { - offender: [t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure] - reporters: Array -} - -export function OffenceDetails(value: t.sp_staking.offence.OffenceDetails) { - return value -} diff --git a/codegen/_output/westend/sp_version.ts b/codegen/_output/westend/sp_version.ts deleted file mode 100644 index 3f8103413..000000000 --- a/codegen/_output/westend/sp_version.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { $ } from "./capi.ts" -import * as _codec from "./codecs.ts" -import type * as t from "./mod.ts" - -export const $runtimeVersion: $.Codec = _codec.$172 - -export interface RuntimeVersion { - spec_name: string - impl_name: string - authoring_version: t.u32 - spec_version: t.u32 - impl_version: t.u32 - apis: Array<[Uint8Array, t.u32]> - transaction_version: t.u32 - state_version: t.u8 -} - -export function RuntimeVersion(value: t.sp_version.RuntimeVersion) { - return value -} diff --git a/codegen/_output/westend/sp_weights/mod.ts b/codegen/_output/westend/sp_weights/mod.ts deleted file mode 100644 index 88c479fdd..000000000 --- a/codegen/_output/westend/sp_weights/mod.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as weight_v2 from "./weight_v2.ts" - -export const $oldWeight: $.Codec = _codec.$239 - -export const $runtimeDbWeight: $.Codec = _codec.$171 - -export type OldWeight = t.u64 - -export function OldWeight(value: t.sp_weights.OldWeight) { - return value -} - -export interface RuntimeDbWeight { - read: t.u64 - write: t.u64 -} - -export function RuntimeDbWeight(value: t.sp_weights.RuntimeDbWeight) { - return value -} diff --git a/codegen/_output/westend/sp_weights/weight_v2.ts b/codegen/_output/westend/sp_weights/weight_v2.ts deleted file mode 100644 index 755882259..000000000 --- a/codegen/_output/westend/sp_weights/weight_v2.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export const $weight: $.Codec = _codec.$8 - -export interface Weight { - ref_time: t.Compact - proof_size: t.Compact -} - -export function Weight(value: t.sp_weights.weight_v2.Weight) { - return value -} diff --git a/codegen/_output/westend/bitvec/mod.ts b/codegen/_output/westend/types/bitvec/mod.ts similarity index 100% rename from codegen/_output/westend/bitvec/mod.ts rename to codegen/_output/westend/types/bitvec/mod.ts diff --git a/codegen/_output/westend/types/bitvec/order.ts b/codegen/_output/westend/types/bitvec/order.ts new file mode 100644 index 000000000..935f6bcef --- /dev/null +++ b/codegen/_output/westend/types/bitvec/order.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $lsb0: $.Codec = _codec.$384 + +export function Lsb0() { + return null +} + +export type Lsb0 = null diff --git a/codegen/_output/westend/types/finality_grandpa/Equivocation/$$finality_grandpa.ts b/codegen/_output/westend/types/finality_grandpa/Equivocation/$$finality_grandpa.ts new file mode 100644 index 000000000..1c207b7ac --- /dev/null +++ b/codegen/_output/westend/types/finality_grandpa/Equivocation/$$finality_grandpa.ts @@ -0,0 +1,34 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $precommit: $.Codec< + t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit +> = _codec.$224 + +export const $prevote: $.Codec = + _codec.$219 + +export interface Precommit { + round_number: t.types.u64 + identity: t.types.sp_finality_grandpa.app.Public + first: [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] + second: [t.types.finality_grandpa.Precommit, t.types.sp_finality_grandpa.app.Signature] +} + +export function Precommit( + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit, +) { + return value +} + +export interface Prevote { + round_number: t.types.u64 + identity: t.types.sp_finality_grandpa.app.Public + first: [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] + second: [t.types.finality_grandpa.Prevote, t.types.sp_finality_grandpa.app.Signature] +} + +export function Prevote(value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Prevote) { + return value +} diff --git a/codegen/_output/westend/finality_grandpa/Equivocation/mod.ts b/codegen/_output/westend/types/finality_grandpa/Equivocation/mod.ts similarity index 100% rename from codegen/_output/westend/finality_grandpa/Equivocation/mod.ts rename to codegen/_output/westend/types/finality_grandpa/Equivocation/mod.ts diff --git a/codegen/_output/westend/types/finality_grandpa/mod.ts b/codegen/_output/westend/types/finality_grandpa/mod.ts new file mode 100644 index 000000000..c8be0a838 --- /dev/null +++ b/codegen/_output/westend/types/finality_grandpa/mod.ts @@ -0,0 +1,27 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as Equivocation from "./Equivocation/mod.ts" + +export const $precommit: $.Codec = _codec.$225 + +export const $prevote: $.Codec = _codec.$220 + +export interface Precommit { + target_hash: t.types.primitive_types.H256 + target_number: t.types.u32 +} + +export function Precommit(value: t.types.finality_grandpa.Precommit) { + return value +} + +export interface Prevote { + target_hash: t.types.primitive_types.H256 + target_number: t.types.u32 +} + +export function Prevote(value: t.types.finality_grandpa.Prevote) { + return value +} diff --git a/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts b/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts new file mode 100644 index 000000000..750971775 --- /dev/null +++ b/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$frame_system/limits.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export const $weightsPerClass: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass +> = _codec.$166 + +export interface WeightsPerClass { + normal: t.types.frame_system.limits.WeightsPerClass + operational: t.types.frame_system.limits.WeightsPerClass + mandatory: t.types.frame_system.limits.WeightsPerClass +} + +export function WeightsPerClass( + value: t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass, +) { + return value +} diff --git a/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts b/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts similarity index 100% rename from codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts rename to codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$frame_system/mod.ts diff --git a/codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts b/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts similarity index 100% rename from codegen/_output/westend/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts rename to codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/mod.ts diff --git a/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts b/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts new file mode 100644 index 000000000..78ff1d029 --- /dev/null +++ b/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/$$sp_weights/weight_v2.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export const $weight: $.Codec< + t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight +> = _codec.$7 + +export interface Weight { + normal: t.types.sp_weights.weight_v2.Weight + operational: t.types.sp_weights.weight_v2.Weight + mandatory: t.types.sp_weights.weight_v2.Weight +} + +export function Weight( + value: t.types.frame_support.dispatch.PerDispatchClass.$$sp_weights.weight_v2.Weight, +) { + return value +} diff --git a/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/mod.ts b/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/mod.ts new file mode 100644 index 000000000..68fdf3c0d --- /dev/null +++ b/codegen/_output/westend/types/frame_support/dispatch/PerDispatchClass/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export * as $$frame_system from "./$$frame_system/mod.ts" +export * as $$sp_weights from "./$$sp_weights/mod.ts" + +export const $$$u32: $.Codec = _codec.$170 + +export interface $$u32 { + normal: t.types.u32 + operational: t.types.u32 + mandatory: t.types.u32 +} + +export function $$u32(value: t.types.frame_support.dispatch.PerDispatchClass.$$u32) { + return value +} diff --git a/codegen/_output/westend/types/frame_support/dispatch/mod.ts b/codegen/_output/westend/types/frame_support/dispatch/mod.ts new file mode 100644 index 000000000..0b6ae050e --- /dev/null +++ b/codegen/_output/westend/types/frame_support/dispatch/mod.ts @@ -0,0 +1,55 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as PerDispatchClass from "./PerDispatchClass/mod.ts" + +export const $dispatchClass: $.Codec = _codec.$22 + +export const $dispatchInfo: $.Codec = _codec.$21 + +export const $pays: $.Codec = _codec.$23 + +export const $rawOrigin: $.Codec = _codec.$257 + +export type DispatchClass = "Normal" | "Operational" | "Mandatory" + +export interface DispatchInfo { + weight: t.types.sp_weights.weight_v2.Weight + class: t.types.frame_support.dispatch.DispatchClass + pays_fee: t.types.frame_support.dispatch.Pays +} + +export function DispatchInfo(value: t.types.frame_support.dispatch.DispatchInfo) { + return value +} + +export type Pays = "Yes" | "No" + +export type RawOrigin = + | t.types.frame_support.dispatch.RawOrigin.Root + | t.types.frame_support.dispatch.RawOrigin.Signed + | t.types.frame_support.dispatch.RawOrigin.None +export namespace RawOrigin { + export interface Root { + type: "Root" + } + export interface Signed { + type: "Signed" + value: t.types.sp_core.crypto.AccountId32 + } + export interface None { + type: "None" + } + export function Root(): t.types.frame_support.dispatch.RawOrigin.Root { + return { type: "Root" } + } + export function Signed( + value: t.types.frame_support.dispatch.RawOrigin.Signed["value"], + ): t.types.frame_support.dispatch.RawOrigin.Signed { + return { type: "Signed", value } + } + export function None(): t.types.frame_support.dispatch.RawOrigin.None { + return { type: "None" } + } +} diff --git a/codegen/_output/westend/types/frame_support/mod.ts b/codegen/_output/westend/types/frame_support/mod.ts new file mode 100644 index 000000000..c96f0dc75 --- /dev/null +++ b/codegen/_output/westend/types/frame_support/mod.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as dispatch from "./dispatch/mod.ts" +export * as traits from "./traits/mod.ts" + +export const $palletId: $.Codec = _codec.$560 + +export type PalletId = Uint8Array + +export function PalletId(value: t.types.frame_support.PalletId) { + return value +} diff --git a/codegen/_output/westend/types/frame_support/traits/misc.ts b/codegen/_output/westend/types/frame_support/traits/misc.ts new file mode 100644 index 000000000..50833b76d --- /dev/null +++ b/codegen/_output/westend/types/frame_support/traits/misc.ts @@ -0,0 +1,6 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $wrapperOpaque: $.Codec = + _codec.$522 diff --git a/codegen/_output/westend/frame_support/traits/mod.ts b/codegen/_output/westend/types/frame_support/traits/mod.ts similarity index 100% rename from codegen/_output/westend/frame_support/traits/mod.ts rename to codegen/_output/westend/types/frame_support/traits/mod.ts diff --git a/codegen/_output/westend/types/frame_support/traits/preimages.ts b/codegen/_output/westend/types/frame_support/traits/preimages.ts new file mode 100644 index 000000000..6c288bd3f --- /dev/null +++ b/codegen/_output/westend/types/frame_support/traits/preimages.ts @@ -0,0 +1,40 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $bounded: $.Codec = _codec.$180 + +export type Bounded = + | t.types.frame_support.traits.preimages.Bounded.Legacy + | t.types.frame_support.traits.preimages.Bounded.Inline + | t.types.frame_support.traits.preimages.Bounded.Lookup +export namespace Bounded { + export interface Legacy { + type: "Legacy" + hash: t.types.primitive_types.H256 + } + export interface Inline { + type: "Inline" + value: Uint8Array + } + export interface Lookup { + type: "Lookup" + hash: t.types.primitive_types.H256 + len: t.types.u32 + } + export function Legacy( + value: Omit, + ): t.types.frame_support.traits.preimages.Bounded.Legacy { + return { type: "Legacy", ...value } + } + export function Inline( + value: t.types.frame_support.traits.preimages.Bounded.Inline["value"], + ): t.types.frame_support.traits.preimages.Bounded.Inline { + return { type: "Inline", value } + } + export function Lookup( + value: Omit, + ): t.types.frame_support.traits.preimages.Bounded.Lookup { + return { type: "Lookup", ...value } + } +} diff --git a/codegen/_output/westend/types/frame_support/traits/tokens/misc.ts b/codegen/_output/westend/types/frame_support/traits/tokens/misc.ts new file mode 100644 index 000000000..ad411b772 --- /dev/null +++ b/codegen/_output/westend/types/frame_support/traits/tokens/misc.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export const $balanceStatus: $.Codec = + _codec.$37 + +export type BalanceStatus = "Free" | "Reserved" diff --git a/codegen/_output/westend/frame_support/traits/tokens/mod.ts b/codegen/_output/westend/types/frame_support/traits/tokens/mod.ts similarity index 100% rename from codegen/_output/westend/frame_support/traits/tokens/mod.ts rename to codegen/_output/westend/types/frame_support/traits/tokens/mod.ts diff --git a/codegen/_output/westend/types/frame_system/extensions/check_genesis.ts b/codegen/_output/westend/types/frame_system/extensions/check_genesis.ts new file mode 100644 index 000000000..9217e24b6 --- /dev/null +++ b/codegen/_output/westend/types/frame_system/extensions/check_genesis.ts @@ -0,0 +1,12 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkGenesis: $.Codec = + _codec.$730 + +export function CheckGenesis() { + return null +} + +export type CheckGenesis = null diff --git a/codegen/_output/westend/types/frame_system/extensions/check_non_zero_sender.ts b/codegen/_output/westend/types/frame_system/extensions/check_non_zero_sender.ts new file mode 100644 index 000000000..d67c5ed3a --- /dev/null +++ b/codegen/_output/westend/types/frame_system/extensions/check_non_zero_sender.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkNonZeroSender: $.Codec< + t.types.frame_system.extensions.check_non_zero_sender.CheckNonZeroSender +> = _codec.$727 + +export function CheckNonZeroSender() { + return null +} + +export type CheckNonZeroSender = null diff --git a/codegen/_output/westend/types/frame_system/extensions/check_spec_version.ts b/codegen/_output/westend/types/frame_system/extensions/check_spec_version.ts new file mode 100644 index 000000000..d5841d0a2 --- /dev/null +++ b/codegen/_output/westend/types/frame_system/extensions/check_spec_version.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkSpecVersion: $.Codec< + t.types.frame_system.extensions.check_spec_version.CheckSpecVersion +> = _codec.$728 + +export function CheckSpecVersion() { + return null +} + +export type CheckSpecVersion = null diff --git a/codegen/_output/westend/types/frame_system/extensions/check_tx_version.ts b/codegen/_output/westend/types/frame_system/extensions/check_tx_version.ts new file mode 100644 index 000000000..d7214c76e --- /dev/null +++ b/codegen/_output/westend/types/frame_system/extensions/check_tx_version.ts @@ -0,0 +1,13 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkTxVersion: $.Codec< + t.types.frame_system.extensions.check_tx_version.CheckTxVersion +> = _codec.$729 + +export function CheckTxVersion() { + return null +} + +export type CheckTxVersion = null diff --git a/codegen/_output/westend/types/frame_system/extensions/check_weight.ts b/codegen/_output/westend/types/frame_system/extensions/check_weight.ts new file mode 100644 index 000000000..57d4346d4 --- /dev/null +++ b/codegen/_output/westend/types/frame_system/extensions/check_weight.ts @@ -0,0 +1,12 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $checkWeight: $.Codec = + _codec.$734 + +export function CheckWeight() { + return null +} + +export type CheckWeight = null diff --git a/codegen/_output/westend/frame_system/extensions/mod.ts b/codegen/_output/westend/types/frame_system/extensions/mod.ts similarity index 100% rename from codegen/_output/westend/frame_system/extensions/mod.ts rename to codegen/_output/westend/types/frame_system/extensions/mod.ts diff --git a/codegen/_output/westend/types/frame_system/limits.ts b/codegen/_output/westend/types/frame_system/limits.ts new file mode 100644 index 000000000..0bd584eb6 --- /dev/null +++ b/codegen/_output/westend/types/frame_system/limits.ts @@ -0,0 +1,38 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $blockLength: $.Codec = _codec.$169 + +export const $blockWeights: $.Codec = _codec.$165 + +export const $weightsPerClass: $.Codec = _codec.$167 + +export interface BlockLength { + max: t.types.frame_support.dispatch.PerDispatchClass.$$u32 +} + +export function BlockLength(value: t.types.frame_system.limits.BlockLength) { + return value +} + +export interface BlockWeights { + base_block: t.types.sp_weights.weight_v2.Weight + max_block: t.types.sp_weights.weight_v2.Weight + per_class: t.types.frame_support.dispatch.PerDispatchClass.$$frame_system.limits.WeightsPerClass +} + +export function BlockWeights(value: t.types.frame_system.limits.BlockWeights) { + return value +} + +export interface WeightsPerClass { + base_extrinsic: t.types.sp_weights.weight_v2.Weight + max_extrinsic: t.types.sp_weights.weight_v2.Weight | undefined + max_total: t.types.sp_weights.weight_v2.Weight | undefined + reserved: t.types.sp_weights.weight_v2.Weight | undefined +} + +export function WeightsPerClass(value: t.types.frame_system.limits.WeightsPerClass) { + return value +} diff --git a/codegen/_output/westend/types/frame_system/mod.ts b/codegen/_output/westend/types/frame_system/mod.ts new file mode 100644 index 000000000..9d3020762 --- /dev/null +++ b/codegen/_output/westend/types/frame_system/mod.ts @@ -0,0 +1,75 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as extensions from "./extensions/mod.ts" +export * as limits from "./limits.ts" +export * as pallet from "./pallet.ts" + +export const $accountInfo: $.Codec = _codec.$3 + +export const $eventRecord: $.Codec = _codec.$18 + +export const $lastRuntimeUpgradeInfo: $.Codec = + _codec.$159 + +export const $phase: $.Codec = _codec.$156 + +export interface AccountInfo { + nonce: t.types.u32 + consumers: t.types.u32 + providers: t.types.u32 + sufficients: t.types.u32 + data: t.types.pallet_balances.AccountData +} + +export function AccountInfo(value: t.types.frame_system.AccountInfo) { + return value +} + +export interface EventRecord { + phase: t.types.frame_system.Phase + event: t.types.polkadot_runtime.RuntimeEvent + topics: Array +} + +export function EventRecord(value: t.types.frame_system.EventRecord) { + return value +} + +export interface LastRuntimeUpgradeInfo { + spec_version: t.Compact + spec_name: string +} + +export function LastRuntimeUpgradeInfo(value: t.types.frame_system.LastRuntimeUpgradeInfo) { + return value +} + +export type Phase = + | t.types.frame_system.Phase.ApplyExtrinsic + | t.types.frame_system.Phase.Finalization + | t.types.frame_system.Phase.Initialization +export namespace Phase { + export interface ApplyExtrinsic { + type: "ApplyExtrinsic" + value: t.types.u32 + } + export interface Finalization { + type: "Finalization" + } + export interface Initialization { + type: "Initialization" + } + export function ApplyExtrinsic( + value: t.types.frame_system.Phase.ApplyExtrinsic["value"], + ): t.types.frame_system.Phase.ApplyExtrinsic { + return { type: "ApplyExtrinsic", value } + } + export function Finalization(): t.types.frame_system.Phase.Finalization { + return { type: "Finalization" } + } + export function Initialization(): t.types.frame_system.Phase.Initialization { + return { type: "Initialization" } + } +} diff --git a/codegen/_output/westend/frame_system/pallet.ts b/codegen/_output/westend/types/frame_system/pallet.ts similarity index 64% rename from codegen/_output/westend/frame_system/pallet.ts rename to codegen/_output/westend/types/frame_system/pallet.ts index 4ffb7de47..9893cfdc6 100644 --- a/codegen/_output/westend/frame_system/pallet.ts +++ b/codegen/_output/westend/types/frame_system/pallet.ts @@ -1,29 +1,29 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$161 +export const $call: $.Codec = _codec.$161 -export const $error: $.Codec = _codec.$176 +export const $error: $.Codec = _codec.$176 -export const $event: $.Codec = _codec.$20 +export const $event: $.Codec = _codec.$20 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.frame_system.pallet.Call.fill_block - | t.frame_system.pallet.Call.remark - | t.frame_system.pallet.Call.set_heap_pages - | t.frame_system.pallet.Call.set_code - | t.frame_system.pallet.Call.set_code_without_checks - | t.frame_system.pallet.Call.set_storage - | t.frame_system.pallet.Call.kill_storage - | t.frame_system.pallet.Call.kill_prefix - | t.frame_system.pallet.Call.remark_with_event + | t.types.frame_system.pallet.Call.fill_block + | t.types.frame_system.pallet.Call.remark + | t.types.frame_system.pallet.Call.set_heap_pages + | t.types.frame_system.pallet.Call.set_code + | t.types.frame_system.pallet.Call.set_code_without_checks + | t.types.frame_system.pallet.Call.set_storage + | t.types.frame_system.pallet.Call.kill_storage + | t.types.frame_system.pallet.Call.kill_prefix + | t.types.frame_system.pallet.Call.remark_with_event export namespace Call { /** A dispatch that will fill the block weight up to the given ratio. */ export interface fill_block { type: "fill_block" - ratio: t.sp_arithmetic.per_things.Perbill + ratio: t.types.sp_arithmetic.per_things.Perbill } /** * Make some on-chain remark. @@ -39,7 +39,7 @@ export namespace Call { /** Set the number of pages in the WebAssembly environment's heap. */ export interface set_heap_pages { type: "set_heap_pages" - pages: t.u64 + pages: t.types.u64 } /** * Set the new runtime code. @@ -93,7 +93,7 @@ export namespace Call { export interface kill_prefix { type: "kill_prefix" prefix: Uint8Array - subkeys: t.u32 + subkeys: t.types.u32 } /** Make some on-chain remark and emit event. */ export interface remark_with_event { @@ -102,8 +102,8 @@ export namespace Call { } /** A dispatch that will fill the block weight up to the given ratio. */ export function fill_block( - value: Omit, - ): t.frame_system.pallet.Call.fill_block { + value: Omit, + ): t.types.frame_system.pallet.Call.fill_block { return { type: "fill_block", ...value } } /** @@ -114,14 +114,14 @@ export namespace Call { * # */ export function remark( - value: Omit, - ): t.frame_system.pallet.Call.remark { + value: Omit, + ): t.types.frame_system.pallet.Call.remark { return { type: "remark", ...value } } /** Set the number of pages in the WebAssembly environment's heap. */ export function set_heap_pages( - value: Omit, - ): t.frame_system.pallet.Call.set_heap_pages { + value: Omit, + ): t.types.frame_system.pallet.Call.set_heap_pages { return { type: "set_heap_pages", ...value } } /** @@ -139,8 +139,8 @@ export namespace Call { * # */ export function set_code( - value: Omit, - ): t.frame_system.pallet.Call.set_code { + value: Omit, + ): t.types.frame_system.pallet.Call.set_code { return { type: "set_code", ...value } } /** @@ -155,20 +155,20 @@ export namespace Call { * block. # */ export function set_code_without_checks( - value: Omit, - ): t.frame_system.pallet.Call.set_code_without_checks { + value: Omit, + ): t.types.frame_system.pallet.Call.set_code_without_checks { return { type: "set_code_without_checks", ...value } } /** Set some items of storage. */ export function set_storage( - value: Omit, - ): t.frame_system.pallet.Call.set_storage { + value: Omit, + ): t.types.frame_system.pallet.Call.set_storage { return { type: "set_storage", ...value } } /** Kill some items from storage. */ export function kill_storage( - value: Omit, - ): t.frame_system.pallet.Call.kill_storage { + value: Omit, + ): t.types.frame_system.pallet.Call.kill_storage { return { type: "kill_storage", ...value } } /** @@ -178,14 +178,14 @@ export namespace Call { * the prefix we are removing to accurately calculate the weight of this function. */ export function kill_prefix( - value: Omit, - ): t.frame_system.pallet.Call.kill_prefix { + value: Omit, + ): t.types.frame_system.pallet.Call.kill_prefix { return { type: "kill_prefix", ...value } } /** Make some on-chain remark and emit event. */ export function remark_with_event( - value: Omit, - ): t.frame_system.pallet.Call.remark_with_event { + value: Omit, + ): t.types.frame_system.pallet.Call.remark_with_event { return { type: "remark_with_event", ...value } } } @@ -201,23 +201,23 @@ export type Error = /** Event for the System pallet. */ export type Event = - | t.frame_system.pallet.Event.ExtrinsicSuccess - | t.frame_system.pallet.Event.ExtrinsicFailed - | t.frame_system.pallet.Event.CodeUpdated - | t.frame_system.pallet.Event.NewAccount - | t.frame_system.pallet.Event.KilledAccount - | t.frame_system.pallet.Event.Remarked + | t.types.frame_system.pallet.Event.ExtrinsicSuccess + | t.types.frame_system.pallet.Event.ExtrinsicFailed + | t.types.frame_system.pallet.Event.CodeUpdated + | t.types.frame_system.pallet.Event.NewAccount + | t.types.frame_system.pallet.Event.KilledAccount + | t.types.frame_system.pallet.Event.Remarked export namespace Event { /** An extrinsic completed successfully. */ export interface ExtrinsicSuccess { type: "ExtrinsicSuccess" - dispatch_info: t.frame_support.dispatch.DispatchInfo + dispatch_info: t.types.frame_support.dispatch.DispatchInfo } /** An extrinsic failed. */ export interface ExtrinsicFailed { type: "ExtrinsicFailed" - dispatch_error: t.sp_runtime.DispatchError - dispatch_info: t.frame_support.dispatch.DispatchInfo + dispatch_error: t.types.sp_runtime.DispatchError + dispatch_info: t.types.frame_support.dispatch.DispatchInfo } /** `:code` was updated. */ export interface CodeUpdated { @@ -226,51 +226,51 @@ export namespace Event { /** A new account was created. */ export interface NewAccount { type: "NewAccount" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** An account was reaped. */ export interface KilledAccount { type: "KilledAccount" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** On on-chain remark happened. */ export interface Remarked { type: "Remarked" - sender: t.sp_core.crypto.AccountId32 - hash: t.primitive_types.H256 + sender: t.types.sp_core.crypto.AccountId32 + hash: t.types.primitive_types.H256 } /** An extrinsic completed successfully. */ export function ExtrinsicSuccess( - value: Omit, - ): t.frame_system.pallet.Event.ExtrinsicSuccess { + value: Omit, + ): t.types.frame_system.pallet.Event.ExtrinsicSuccess { return { type: "ExtrinsicSuccess", ...value } } /** An extrinsic failed. */ export function ExtrinsicFailed( - value: Omit, - ): t.frame_system.pallet.Event.ExtrinsicFailed { + value: Omit, + ): t.types.frame_system.pallet.Event.ExtrinsicFailed { return { type: "ExtrinsicFailed", ...value } } /** `:code` was updated. */ - export function CodeUpdated(): t.frame_system.pallet.Event.CodeUpdated { + export function CodeUpdated(): t.types.frame_system.pallet.Event.CodeUpdated { return { type: "CodeUpdated" } } /** A new account was created. */ export function NewAccount( - value: Omit, - ): t.frame_system.pallet.Event.NewAccount { + value: Omit, + ): t.types.frame_system.pallet.Event.NewAccount { return { type: "NewAccount", ...value } } /** An account was reaped. */ export function KilledAccount( - value: Omit, - ): t.frame_system.pallet.Event.KilledAccount { + value: Omit, + ): t.types.frame_system.pallet.Event.KilledAccount { return { type: "KilledAccount", ...value } } /** On on-chain remark happened. */ export function Remarked( - value: Omit, - ): t.frame_system.pallet.Event.Remarked { + value: Omit, + ): t.types.frame_system.pallet.Event.Remarked { return { type: "Remarked", ...value } } } diff --git a/codegen/_output/westend/types/mod.ts b/codegen/_output/westend/types/mod.ts new file mode 100644 index 000000000..1e8000c3b --- /dev/null +++ b/codegen/_output/westend/types/mod.ts @@ -0,0 +1,70 @@ +import { $, C } from "../capi.ts" +import * as _codec from "../codecs.ts" + +export * as bitvec from "./bitvec/mod.ts" +export * as finality_grandpa from "./finality_grandpa/mod.ts" +export * as frame_support from "./frame_support/mod.ts" +export * as frame_system from "./frame_system/mod.ts" +export * as pallet_authorship from "./pallet_authorship/mod.ts" +export * as pallet_babe from "./pallet_babe/mod.ts" +export * as pallet_bags_list from "./pallet_bags_list/mod.ts" +export * as pallet_balances from "./pallet_balances/mod.ts" +export * as pallet_bounties from "./pallet_bounties/mod.ts" +export * as pallet_child_bounties from "./pallet_child_bounties/mod.ts" +export * as pallet_collective from "./pallet_collective/mod.ts" +export * as pallet_democracy from "./pallet_democracy/mod.ts" +export * as pallet_election_provider_multi_phase from "./pallet_election_provider_multi_phase/mod.ts" +export * as pallet_elections_phragmen from "./pallet_elections_phragmen/mod.ts" +export * as pallet_fast_unstake from "./pallet_fast_unstake/mod.ts" +export * as pallet_grandpa from "./pallet_grandpa/mod.ts" +export * as pallet_identity from "./pallet_identity/mod.ts" +export * as pallet_im_online from "./pallet_im_online/mod.ts" +export * as pallet_indices from "./pallet_indices/mod.ts" +export * as pallet_membership from "./pallet_membership/mod.ts" +export * as pallet_multisig from "./pallet_multisig/mod.ts" +export * as pallet_nomination_pools from "./pallet_nomination_pools/mod.ts" +export * as pallet_offences from "./pallet_offences/mod.ts" +export * as pallet_preimage from "./pallet_preimage/mod.ts" +export * as pallet_proxy from "./pallet_proxy/mod.ts" +export * as pallet_scheduler from "./pallet_scheduler/mod.ts" +export * as pallet_session from "./pallet_session/mod.ts" +export * as pallet_staking from "./pallet_staking/mod.ts" +export * as pallet_timestamp from "./pallet_timestamp/mod.ts" +export * as pallet_tips from "./pallet_tips/mod.ts" +export * as pallet_transaction_payment from "./pallet_transaction_payment/mod.ts" +export * as pallet_treasury from "./pallet_treasury/mod.ts" +export * as pallet_utility from "./pallet_utility/mod.ts" +export * as pallet_vesting from "./pallet_vesting/mod.ts" +export * as pallet_xcm from "./pallet_xcm/mod.ts" +export * as polkadot_core_primitives from "./polkadot_core_primitives.ts" +export * as polkadot_parachain from "./polkadot_parachain/mod.ts" +export * as polkadot_primitives from "./polkadot_primitives/mod.ts" +export * as polkadot_runtime from "./polkadot_runtime.ts" +export * as polkadot_runtime_common from "./polkadot_runtime_common/mod.ts" +export * as polkadot_runtime_parachains from "./polkadot_runtime_parachains/mod.ts" +export * as primitive_types from "./primitive_types.ts" +export * as sp_arithmetic from "./sp_arithmetic/mod.ts" +export * as sp_authority_discovery from "./sp_authority_discovery/mod.ts" +export * as sp_consensus_babe from "./sp_consensus_babe/mod.ts" +export * as sp_consensus_slots from "./sp_consensus_slots.ts" +export * as sp_core from "./sp_core/mod.ts" +export * as sp_finality_grandpa from "./sp_finality_grandpa/mod.ts" +export * as sp_npos_elections from "./sp_npos_elections.ts" +export * as sp_runtime from "./sp_runtime/mod.ts" +export * as sp_session from "./sp_session.ts" +export * as sp_staking from "./sp_staking/mod.ts" +export * as sp_version from "./sp_version.ts" +export * as sp_weights from "./sp_weights/mod.ts" +export * as xcm from "./xcm/mod.ts" + +export const $era: $.Codec = _codec.$732 + +export type u128 = bigint + +export type u16 = number + +export type u32 = number + +export type u64 = bigint + +export type u8 = number diff --git a/codegen/_output/westend/types/pallet_authorship/mod.ts b/codegen/_output/westend/types/pallet_authorship/mod.ts new file mode 100644 index 000000000..ef19eeff5 --- /dev/null +++ b/codegen/_output/westend/types/pallet_authorship/mod.ts @@ -0,0 +1,31 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $uncleEntryItem: $.Codec = _codec.$482 + +export type UncleEntryItem = + | t.types.pallet_authorship.UncleEntryItem.InclusionHeight + | t.types.pallet_authorship.UncleEntryItem.Uncle +export namespace UncleEntryItem { + export interface InclusionHeight { + type: "InclusionHeight" + value: t.types.u32 + } + export interface Uncle { + type: "Uncle" + value: [t.types.primitive_types.H256, t.types.sp_core.crypto.AccountId32 | undefined] + } + export function InclusionHeight( + value: t.types.pallet_authorship.UncleEntryItem.InclusionHeight["value"], + ): t.types.pallet_authorship.UncleEntryItem.InclusionHeight { + return { type: "InclusionHeight", value } + } + export function Uncle( + ...value: t.types.pallet_authorship.UncleEntryItem.Uncle["value"] + ): t.types.pallet_authorship.UncleEntryItem.Uncle { + return { type: "Uncle", value } + } +} diff --git a/codegen/_output/westend/pallet_authorship/pallet.ts b/codegen/_output/westend/types/pallet_authorship/pallet.ts similarity index 52% rename from codegen/_output/westend/pallet_authorship/pallet.ts rename to codegen/_output/westend/types/pallet_authorship/pallet.ts index 80e38fee7..79d0bba91 100644 --- a/codegen/_output/westend/pallet_authorship/pallet.ts +++ b/codegen/_output/westend/types/pallet_authorship/pallet.ts @@ -1,23 +1,23 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$200 +export const $call: $.Codec = _codec.$200 -export const $error: $.Codec = _codec.$484 +export const $error: $.Codec = _codec.$484 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_authorship.pallet.Call.set_uncles +export type Call = t.types.pallet_authorship.pallet.Call.set_uncles export namespace Call { /** Provide a set of uncles. */ export interface set_uncles { type: "set_uncles" - new_uncles: Array + new_uncles: Array } /** Provide a set of uncles. */ export function set_uncles( - value: Omit, - ): t.pallet_authorship.pallet.Call.set_uncles { + value: Omit, + ): t.types.pallet_authorship.pallet.Call.set_uncles { return { type: "set_uncles", ...value } } } diff --git a/codegen/_output/westend/pallet_babe/mod.ts b/codegen/_output/westend/types/pallet_babe/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_babe/mod.ts rename to codegen/_output/westend/types/pallet_babe/mod.ts diff --git a/codegen/_output/westend/pallet_babe/pallet.ts b/codegen/_output/westend/types/pallet_babe/pallet.ts similarity index 71% rename from codegen/_output/westend/pallet_babe/pallet.ts rename to codegen/_output/westend/types/pallet_babe/pallet.ts index a5520e28d..d57335b38 100644 --- a/codegen/_output/westend/pallet_babe/pallet.ts +++ b/codegen/_output/westend/types/pallet_babe/pallet.ts @@ -1,16 +1,16 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$185 +export const $call: $.Codec = _codec.$185 -export const $error: $.Codec = _codec.$467 +export const $error: $.Codec = _codec.$467 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_babe.pallet.Call.report_equivocation - | t.pallet_babe.pallet.Call.report_equivocation_unsigned - | t.pallet_babe.pallet.Call.plan_config_change + | t.types.pallet_babe.pallet.Call.report_equivocation + | t.types.pallet_babe.pallet.Call.report_equivocation_unsigned + | t.types.pallet_babe.pallet.Call.plan_config_change export namespace Call { /** * Report authority equivocation/misbehavior. This method will verify @@ -20,8 +20,8 @@ export namespace Call { */ export interface report_equivocation { type: "report_equivocation" - equivocation_proof: t.sp_consensus_slots.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_consensus_slots.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Report authority equivocation/misbehavior. This method will verify @@ -35,8 +35,8 @@ export namespace Call { */ export interface report_equivocation_unsigned { type: "report_equivocation_unsigned" - equivocation_proof: t.sp_consensus_slots.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_consensus_slots.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Plan an epoch config change. The epoch config change is recorded and will be enacted on @@ -46,7 +46,7 @@ export namespace Call { */ export interface plan_config_change { type: "plan_config_change" - config: t.sp_consensus_babe.digests.NextConfigDescriptor + config: t.types.sp_consensus_babe.digests.NextConfigDescriptor } /** * Report authority equivocation/misbehavior. This method will verify @@ -55,8 +55,8 @@ export namespace Call { * be reported. */ export function report_equivocation( - value: Omit, - ): t.pallet_babe.pallet.Call.report_equivocation { + value: Omit, + ): t.types.pallet_babe.pallet.Call.report_equivocation { return { type: "report_equivocation", ...value } } /** @@ -70,8 +70,8 @@ export namespace Call { * reporter. */ export function report_equivocation_unsigned( - value: Omit, - ): t.pallet_babe.pallet.Call.report_equivocation_unsigned { + value: Omit, + ): t.types.pallet_babe.pallet.Call.report_equivocation_unsigned { return { type: "report_equivocation_unsigned", ...value } } /** @@ -81,8 +81,8 @@ export namespace Call { * not been enacted yet. */ export function plan_config_change( - value: Omit, - ): t.pallet_babe.pallet.Call.plan_config_change { + value: Omit, + ): t.types.pallet_babe.pallet.Call.plan_config_change { return { type: "plan_config_change", ...value } } } diff --git a/codegen/_output/westend/types/pallet_bags_list/list.ts b/codegen/_output/westend/types/pallet_bags_list/list.ts new file mode 100644 index 000000000..7948bdffa --- /dev/null +++ b/codegen/_output/westend/types/pallet_bags_list/list.ts @@ -0,0 +1,32 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $bag: $.Codec = _codec.$613 + +export const $listError: $.Codec = _codec.$616 + +export const $node: $.Codec = _codec.$612 + +export interface Bag { + head: t.types.sp_core.crypto.AccountId32 | undefined + tail: t.types.sp_core.crypto.AccountId32 | undefined +} + +export function Bag(value: t.types.pallet_bags_list.list.Bag) { + return value +} + +export type ListError = "Duplicate" | "NotHeavier" | "NotInSameBag" | "NodeNotFound" + +export interface Node { + id: t.types.sp_core.crypto.AccountId32 + prev: t.types.sp_core.crypto.AccountId32 | undefined + next: t.types.sp_core.crypto.AccountId32 | undefined + bag_upper: t.types.u64 + score: t.types.u64 +} + +export function Node(value: t.types.pallet_bags_list.list.Node) { + return value +} diff --git a/codegen/_output/westend/pallet_bags_list/mod.ts b/codegen/_output/westend/types/pallet_bags_list/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_bags_list/mod.ts rename to codegen/_output/westend/types/pallet_bags_list/mod.ts diff --git a/codegen/_output/kusama/pallet_bags_list/pallet.ts b/codegen/_output/westend/types/pallet_bags_list/pallet.ts similarity index 65% rename from codegen/_output/kusama/pallet_bags_list/pallet.ts rename to codegen/_output/westend/types/pallet_bags_list/pallet.ts index 24e9d23d4..783e83a34 100644 --- a/codegen/_output/kusama/pallet_bags_list/pallet.ts +++ b/codegen/_output/westend/types/pallet_bags_list/pallet.ts @@ -1,17 +1,17 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$368 +export const $call: $.Codec = _codec.$368 -export const $error: $.Codec = _codec.$615 +export const $error: $.Codec = _codec.$615 -export const $event: $.Codec = _codec.$89 +export const $event: $.Codec = _codec.$89 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_bags_list.pallet.Call.rebag - | t.pallet_bags_list.pallet.Call.put_in_front_of + | t.types.pallet_bags_list.pallet.Call.rebag + | t.types.pallet_bags_list.pallet.Call.put_in_front_of export namespace Call { /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently @@ -27,7 +27,7 @@ export namespace Call { */ export interface rebag { type: "rebag" - dislocated: t.sp_runtime.multiaddress.MultiAddress + dislocated: t.types.sp_runtime.multiaddress.MultiAddress } /** * Move the caller's Id directly in front of `lighter`. @@ -41,7 +41,7 @@ export namespace Call { */ export interface put_in_front_of { type: "put_in_front_of" - lighter: t.sp_runtime.multiaddress.MultiAddress + lighter: t.types.sp_runtime.multiaddress.MultiAddress } /** * Declare that some `dislocated` account has, through rewards or penalties, sufficiently @@ -56,8 +56,8 @@ export namespace Call { * If `dislocated` does not exists, it returns an error. */ export function rebag( - value: Omit, - ): t.pallet_bags_list.pallet.Call.rebag { + value: Omit, + ): t.types.pallet_bags_list.pallet.Call.rebag { return { type: "rebag", ...value } } /** @@ -71,56 +71,56 @@ export namespace Call { * - and `origin` has a greater `Score` than `lighter`. */ export function put_in_front_of( - value: Omit, - ): t.pallet_bags_list.pallet.Call.put_in_front_of { + value: Omit, + ): t.types.pallet_bags_list.pallet.Call.put_in_front_of { return { type: "put_in_front_of", ...value } } } /** Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) of this pallet. */ -export type Error = t.pallet_bags_list.pallet.Error.List +export type Error = t.types.pallet_bags_list.pallet.Error.List export namespace Error { /** A error in the list interface implementation. */ export interface List { type: "List" - value: t.pallet_bags_list.list.ListError + value: t.types.pallet_bags_list.list.ListError } /** A error in the list interface implementation. */ export function List( - value: t.pallet_bags_list.pallet.Error.List["value"], - ): t.pallet_bags_list.pallet.Error.List { + value: t.types.pallet_bags_list.pallet.Error.List["value"], + ): t.types.pallet_bags_list.pallet.Error.List { return { type: "List", value } } } /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_bags_list.pallet.Event.Rebagged - | t.pallet_bags_list.pallet.Event.ScoreUpdated + | t.types.pallet_bags_list.pallet.Event.Rebagged + | t.types.pallet_bags_list.pallet.Event.ScoreUpdated export namespace Event { /** Moved an account from one bag to another. */ export interface Rebagged { type: "Rebagged" - who: t.sp_core.crypto.AccountId32 - from: t.u64 - to: t.u64 + who: t.types.sp_core.crypto.AccountId32 + from: t.types.u64 + to: t.types.u64 } /** Updated the score of some account to the given amount. */ export interface ScoreUpdated { type: "ScoreUpdated" - who: t.sp_core.crypto.AccountId32 - new_score: t.u64 + who: t.types.sp_core.crypto.AccountId32 + new_score: t.types.u64 } /** Moved an account from one bag to another. */ export function Rebagged( - value: Omit, - ): t.pallet_bags_list.pallet.Event.Rebagged { + value: Omit, + ): t.types.pallet_bags_list.pallet.Event.Rebagged { return { type: "Rebagged", ...value } } /** Updated the score of some account to the given amount. */ export function ScoreUpdated( - value: Omit, - ): t.pallet_bags_list.pallet.Event.ScoreUpdated { + value: Omit, + ): t.types.pallet_bags_list.pallet.Event.ScoreUpdated { return { type: "ScoreUpdated", ...value } } } diff --git a/codegen/_output/westend/types/pallet_balances/mod.ts b/codegen/_output/westend/types/pallet_balances/mod.ts new file mode 100644 index 000000000..64bd303ec --- /dev/null +++ b/codegen/_output/westend/types/pallet_balances/mod.ts @@ -0,0 +1,49 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $accountData: $.Codec = _codec.$5 + +export const $balanceLock: $.Codec = _codec.$471 + +export const $reasons: $.Codec = _codec.$472 + +export const $releases: $.Codec = _codec.$477 + +export const $reserveData: $.Codec = _codec.$475 + +export interface AccountData { + free: t.types.u128 + reserved: t.types.u128 + misc_frozen: t.types.u128 + fee_frozen: t.types.u128 +} + +export function AccountData(value: t.types.pallet_balances.AccountData) { + return value +} + +export interface BalanceLock { + id: Uint8Array + amount: t.types.u128 + reasons: t.types.pallet_balances.Reasons +} + +export function BalanceLock(value: t.types.pallet_balances.BalanceLock) { + return value +} + +export type Reasons = "Fee" | "Misc" | "All" + +export type Releases = "V1_0_0" | "V2_0_0" + +export interface ReserveData { + id: Uint8Array + amount: t.types.u128 +} + +export function ReserveData(value: t.types.pallet_balances.ReserveData) { + return value +} diff --git a/codegen/_output/westend/pallet_balances/pallet.ts b/codegen/_output/westend/types/pallet_balances/pallet.ts similarity index 69% rename from codegen/_output/westend/pallet_balances/pallet.ts rename to codegen/_output/westend/types/pallet_balances/pallet.ts index a46b3f365..cd175644c 100644 --- a/codegen/_output/westend/pallet_balances/pallet.ts +++ b/codegen/_output/westend/types/pallet_balances/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$199 +export const $call: $.Codec = _codec.$199 -export const $error: $.Codec = _codec.$478 +export const $error: $.Codec = _codec.$478 -export const $event: $.Codec = _codec.$36 +export const $event: $.Codec = _codec.$36 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_balances.pallet.Call.transfer - | t.pallet_balances.pallet.Call.set_balance - | t.pallet_balances.pallet.Call.force_transfer - | t.pallet_balances.pallet.Call.transfer_keep_alive - | t.pallet_balances.pallet.Call.transfer_all - | t.pallet_balances.pallet.Call.force_unreserve + | t.types.pallet_balances.pallet.Call.transfer + | t.types.pallet_balances.pallet.Call.set_balance + | t.types.pallet_balances.pallet.Call.force_transfer + | t.types.pallet_balances.pallet.Call.transfer_keep_alive + | t.types.pallet_balances.pallet.Call.transfer_all + | t.types.pallet_balances.pallet.Call.force_unreserve export namespace Call { /** * Transfer some liquid free balance to another account. @@ -46,8 +46,8 @@ export namespace Call { */ export interface transfer { type: "transfer" - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Set the balances of a given account. @@ -61,9 +61,9 @@ export namespace Call { */ export interface set_balance { type: "set_balance" - who: t.sp_runtime.multiaddress.MultiAddress - new_free: t.Compact - new_reserved: t.Compact + who: t.types.sp_runtime.multiaddress.MultiAddress + new_free: t.Compact + new_reserved: t.Compact } /** * Exactly as `transfer`, except the origin must be root and the source account may be @@ -75,9 +75,9 @@ export namespace Call { */ export interface force_transfer { type: "force_transfer" - source: t.sp_runtime.multiaddress.MultiAddress - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + source: t.types.sp_runtime.multiaddress.MultiAddress + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Same as the [`transfer`] call, but with a check that the transfer will not kill the @@ -89,8 +89,8 @@ export namespace Call { */ export interface transfer_keep_alive { type: "transfer_keep_alive" - dest: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact + dest: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact } /** * Transfer the entire transferable balance from the caller account. @@ -113,7 +113,7 @@ export namespace Call { */ export interface transfer_all { type: "transfer_all" - dest: t.sp_runtime.multiaddress.MultiAddress + dest: t.types.sp_runtime.multiaddress.MultiAddress keep_alive: boolean } /** @@ -123,8 +123,8 @@ export namespace Call { */ export interface force_unreserve { type: "force_unreserve" - who: t.sp_runtime.multiaddress.MultiAddress - amount: t.u128 + who: t.types.sp_runtime.multiaddress.MultiAddress + amount: t.types.u128 } /** * Transfer some liquid free balance to another account. @@ -154,8 +154,8 @@ export namespace Call { * # */ export function transfer( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer { return { type: "transfer", ...value } } /** @@ -169,8 +169,8 @@ export namespace Call { * The dispatch origin for this call is `root`. */ export function set_balance( - value: Omit, - ): t.pallet_balances.pallet.Call.set_balance { + value: Omit, + ): t.types.pallet_balances.pallet.Call.set_balance { return { type: "set_balance", ...value } } /** @@ -182,8 +182,8 @@ export namespace Call { * # */ export function force_transfer( - value: Omit, - ): t.pallet_balances.pallet.Call.force_transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Call.force_transfer { return { type: "force_transfer", ...value } } /** @@ -195,8 +195,8 @@ export namespace Call { * [`transfer`]: struct.Pallet.html#method.transfer */ export function transfer_keep_alive( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer_keep_alive { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer_keep_alive { return { type: "transfer_keep_alive", ...value } } /** @@ -219,8 +219,8 @@ export namespace Call { * # */ export function transfer_all( - value: Omit, - ): t.pallet_balances.pallet.Call.transfer_all { + value: Omit, + ): t.types.pallet_balances.pallet.Call.transfer_all { return { type: "transfer_all", ...value } } /** @@ -229,8 +229,8 @@ export namespace Call { * Can only be called by ROOT. */ export function force_unreserve( - value: Omit, - ): t.pallet_balances.pallet.Call.force_unreserve { + value: Omit, + ): t.types.pallet_balances.pallet.Call.force_unreserve { return { type: "force_unreserve", ...value } } } @@ -248,22 +248,22 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_balances.pallet.Event.Endowed - | t.pallet_balances.pallet.Event.DustLost - | t.pallet_balances.pallet.Event.Transfer - | t.pallet_balances.pallet.Event.BalanceSet - | t.pallet_balances.pallet.Event.Reserved - | t.pallet_balances.pallet.Event.Unreserved - | t.pallet_balances.pallet.Event.ReserveRepatriated - | t.pallet_balances.pallet.Event.Deposit - | t.pallet_balances.pallet.Event.Withdraw - | t.pallet_balances.pallet.Event.Slashed + | t.types.pallet_balances.pallet.Event.Endowed + | t.types.pallet_balances.pallet.Event.DustLost + | t.types.pallet_balances.pallet.Event.Transfer + | t.types.pallet_balances.pallet.Event.BalanceSet + | t.types.pallet_balances.pallet.Event.Reserved + | t.types.pallet_balances.pallet.Event.Unreserved + | t.types.pallet_balances.pallet.Event.ReserveRepatriated + | t.types.pallet_balances.pallet.Event.Deposit + | t.types.pallet_balances.pallet.Event.Withdraw + | t.types.pallet_balances.pallet.Event.Slashed export namespace Event { /** An account was created with some free balance. */ export interface Endowed { type: "Endowed" - account: t.sp_core.crypto.AccountId32 - free_balance: t.u128 + account: t.types.sp_core.crypto.AccountId32 + free_balance: t.types.u128 } /** * An account was removed whose balance was non-zero but below ExistentialDeposit, @@ -271,34 +271,34 @@ export namespace Event { */ export interface DustLost { type: "DustLost" - account: t.sp_core.crypto.AccountId32 - amount: t.u128 + account: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Transfer succeeded. */ export interface Transfer { type: "Transfer" - from: t.sp_core.crypto.AccountId32 - to: t.sp_core.crypto.AccountId32 - amount: t.u128 + from: t.types.sp_core.crypto.AccountId32 + to: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A balance was set by root. */ export interface BalanceSet { type: "BalanceSet" - who: t.sp_core.crypto.AccountId32 - free: t.u128 - reserved: t.u128 + who: t.types.sp_core.crypto.AccountId32 + free: t.types.u128 + reserved: t.types.u128 } /** Some balance was reserved (moved from free to reserved). */ export interface Reserved { type: "Reserved" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some balance was unreserved (moved from reserved to free). */ export interface Unreserved { type: "Unreserved" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * Some balance was moved from the reserve of the first account to the second account. @@ -306,33 +306,33 @@ export namespace Event { */ export interface ReserveRepatriated { type: "ReserveRepatriated" - from: t.sp_core.crypto.AccountId32 - to: t.sp_core.crypto.AccountId32 - amount: t.u128 - destination_status: t.frame_support.traits.tokens.misc.BalanceStatus + from: t.types.sp_core.crypto.AccountId32 + to: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 + destination_status: t.types.frame_support.traits.tokens.misc.BalanceStatus } /** Some amount was deposited (e.g. for transaction fees). */ export interface Deposit { type: "Deposit" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some amount was withdrawn from the account (e.g. for transaction fees). */ export interface Withdraw { type: "Withdraw" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** Some amount was removed from the account (e.g. for misbehavior). */ export interface Slashed { type: "Slashed" - who: t.sp_core.crypto.AccountId32 - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** An account was created with some free balance. */ export function Endowed( - value: Omit, - ): t.pallet_balances.pallet.Event.Endowed { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Endowed { return { type: "Endowed", ...value } } /** @@ -340,32 +340,32 @@ export namespace Event { * resulting in an outright loss. */ export function DustLost( - value: Omit, - ): t.pallet_balances.pallet.Event.DustLost { + value: Omit, + ): t.types.pallet_balances.pallet.Event.DustLost { return { type: "DustLost", ...value } } /** Transfer succeeded. */ export function Transfer( - value: Omit, - ): t.pallet_balances.pallet.Event.Transfer { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Transfer { return { type: "Transfer", ...value } } /** A balance was set by root. */ export function BalanceSet( - value: Omit, - ): t.pallet_balances.pallet.Event.BalanceSet { + value: Omit, + ): t.types.pallet_balances.pallet.Event.BalanceSet { return { type: "BalanceSet", ...value } } /** Some balance was reserved (moved from free to reserved). */ export function Reserved( - value: Omit, - ): t.pallet_balances.pallet.Event.Reserved { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Reserved { return { type: "Reserved", ...value } } /** Some balance was unreserved (moved from reserved to free). */ export function Unreserved( - value: Omit, - ): t.pallet_balances.pallet.Event.Unreserved { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Unreserved { return { type: "Unreserved", ...value } } /** @@ -373,26 +373,26 @@ export namespace Event { * Final argument indicates the destination balance type. */ export function ReserveRepatriated( - value: Omit, - ): t.pallet_balances.pallet.Event.ReserveRepatriated { + value: Omit, + ): t.types.pallet_balances.pallet.Event.ReserveRepatriated { return { type: "ReserveRepatriated", ...value } } /** Some amount was deposited (e.g. for transaction fees). */ export function Deposit( - value: Omit, - ): t.pallet_balances.pallet.Event.Deposit { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Deposit { return { type: "Deposit", ...value } } /** Some amount was withdrawn from the account (e.g. for transaction fees). */ export function Withdraw( - value: Omit, - ): t.pallet_balances.pallet.Event.Withdraw { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Withdraw { return { type: "Withdraw", ...value } } /** Some amount was removed from the account (e.g. for misbehavior). */ export function Slashed( - value: Omit, - ): t.pallet_balances.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_balances.pallet.Event.Slashed { return { type: "Slashed", ...value } } } diff --git a/codegen/_output/westend/types/pallet_bounties/mod.ts b/codegen/_output/westend/types/pallet_bounties/mod.ts new file mode 100644 index 000000000..e5425d665 --- /dev/null +++ b/codegen/_output/westend/types/pallet_bounties/mod.ts @@ -0,0 +1,80 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $bounty: $.Codec = _codec.$591 + +export const $bountyStatus: $.Codec = _codec.$592 + +export interface Bounty { + proposer: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 + fee: t.types.u128 + curator_deposit: t.types.u128 + bond: t.types.u128 + status: t.types.pallet_bounties.BountyStatus +} + +export function Bounty(value: t.types.pallet_bounties.Bounty) { + return value +} + +export type BountyStatus = + | t.types.pallet_bounties.BountyStatus.Proposed + | t.types.pallet_bounties.BountyStatus.Approved + | t.types.pallet_bounties.BountyStatus.Funded + | t.types.pallet_bounties.BountyStatus.CuratorProposed + | t.types.pallet_bounties.BountyStatus.Active + | t.types.pallet_bounties.BountyStatus.PendingPayout +export namespace BountyStatus { + export interface Proposed { + type: "Proposed" + } + export interface Approved { + type: "Approved" + } + export interface Funded { + type: "Funded" + } + export interface CuratorProposed { + type: "CuratorProposed" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface Active { + type: "Active" + curator: t.types.sp_core.crypto.AccountId32 + update_due: t.types.u32 + } + export interface PendingPayout { + type: "PendingPayout" + curator: t.types.sp_core.crypto.AccountId32 + beneficiary: t.types.sp_core.crypto.AccountId32 + unlock_at: t.types.u32 + } + export function Proposed(): t.types.pallet_bounties.BountyStatus.Proposed { + return { type: "Proposed" } + } + export function Approved(): t.types.pallet_bounties.BountyStatus.Approved { + return { type: "Approved" } + } + export function Funded(): t.types.pallet_bounties.BountyStatus.Funded { + return { type: "Funded" } + } + export function CuratorProposed( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.CuratorProposed { + return { type: "CuratorProposed", ...value } + } + export function Active( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.Active { + return { type: "Active", ...value } + } + export function PendingPayout( + value: Omit, + ): t.types.pallet_bounties.BountyStatus.PendingPayout { + return { type: "PendingPayout", ...value } + } +} diff --git a/codegen/_output/polkadot/pallet_bounties/pallet.ts b/codegen/_output/westend/types/pallet_bounties/pallet.ts similarity index 71% rename from codegen/_output/polkadot/pallet_bounties/pallet.ts rename to codegen/_output/westend/types/pallet_bounties/pallet.ts index 312005e0f..f08c878f0 100644 --- a/codegen/_output/polkadot/pallet_bounties/pallet.ts +++ b/codegen/_output/westend/types/pallet_bounties/pallet.ts @@ -1,24 +1,24 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$307 +export const $call: $.Codec = _codec.$307 -export const $error: $.Codec = _codec.$594 +export const $error: $.Codec = _codec.$594 -export const $event: $.Codec = _codec.$83 +export const $event: $.Codec = _codec.$83 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_bounties.pallet.Call.propose_bounty - | t.pallet_bounties.pallet.Call.approve_bounty - | t.pallet_bounties.pallet.Call.propose_curator - | t.pallet_bounties.pallet.Call.unassign_curator - | t.pallet_bounties.pallet.Call.accept_curator - | t.pallet_bounties.pallet.Call.award_bounty - | t.pallet_bounties.pallet.Call.claim_bounty - | t.pallet_bounties.pallet.Call.close_bounty - | t.pallet_bounties.pallet.Call.extend_bounty_expiry + | t.types.pallet_bounties.pallet.Call.propose_bounty + | t.types.pallet_bounties.pallet.Call.approve_bounty + | t.types.pallet_bounties.pallet.Call.propose_curator + | t.types.pallet_bounties.pallet.Call.unassign_curator + | t.types.pallet_bounties.pallet.Call.accept_curator + | t.types.pallet_bounties.pallet.Call.award_bounty + | t.types.pallet_bounties.pallet.Call.claim_bounty + | t.types.pallet_bounties.pallet.Call.close_bounty + | t.types.pallet_bounties.pallet.Call.extend_bounty_expiry export namespace Call { /** * Propose a new bounty. @@ -36,7 +36,7 @@ export namespace Call { */ export interface propose_bounty { type: "propose_bounty" - value: t.Compact + value: t.Compact description: Uint8Array } /** @@ -51,7 +51,7 @@ export namespace Call { */ export interface approve_bounty { type: "approve_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Assign a curator to a funded bounty. @@ -64,9 +64,9 @@ export namespace Call { */ export interface propose_curator { type: "propose_curator" - bounty_id: t.Compact - curator: t.sp_runtime.multiaddress.MultiAddress - fee: t.Compact + bounty_id: t.Compact + curator: t.types.sp_runtime.multiaddress.MultiAddress + fee: t.Compact } /** * Unassign curator from a bounty. @@ -90,7 +90,7 @@ export namespace Call { */ export interface unassign_curator { type: "unassign_curator" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Accept the curator role for a bounty. @@ -104,7 +104,7 @@ export namespace Call { */ export interface accept_curator { type: "accept_curator" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Award bounty to a beneficiary account. The beneficiary will be able to claim the funds @@ -121,8 +121,8 @@ export namespace Call { */ export interface award_bounty { type: "award_bounty" - bounty_id: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + bounty_id: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Claim the payout from an awarded bounty after payout delay. @@ -137,7 +137,7 @@ export namespace Call { */ export interface claim_bounty { type: "claim_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Cancel a proposed or active bounty. All the funds will be sent to treasury and @@ -153,7 +153,7 @@ export namespace Call { */ export interface close_bounty { type: "close_bounty" - bounty_id: t.Compact + bounty_id: t.Compact } /** * Extend the expiry time of an active bounty. @@ -169,7 +169,7 @@ export namespace Call { */ export interface extend_bounty_expiry { type: "extend_bounty_expiry" - bounty_id: t.Compact + bounty_id: t.Compact remark: Uint8Array } /** @@ -187,8 +187,8 @@ export namespace Call { * - `description`: The description of this bounty. */ export function propose_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.propose_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.propose_bounty { return { type: "propose_bounty", ...value } } /** @@ -202,8 +202,8 @@ export namespace Call { * # */ export function approve_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.approve_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.approve_bounty { return { type: "approve_bounty", ...value } } /** @@ -216,8 +216,8 @@ export namespace Call { * # */ export function propose_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.propose_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.propose_curator { return { type: "propose_curator", ...value } } /** @@ -241,8 +241,8 @@ export namespace Call { * # */ export function unassign_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.unassign_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.unassign_curator { return { type: "unassign_curator", ...value } } /** @@ -256,8 +256,8 @@ export namespace Call { * # */ export function accept_curator( - value: Omit, - ): t.pallet_bounties.pallet.Call.accept_curator { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.accept_curator { return { type: "accept_curator", ...value } } /** @@ -274,8 +274,8 @@ export namespace Call { * # */ export function award_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.award_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.award_bounty { return { type: "award_bounty", ...value } } /** @@ -290,8 +290,8 @@ export namespace Call { * # */ export function claim_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.claim_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.claim_bounty { return { type: "claim_bounty", ...value } } /** @@ -307,8 +307,8 @@ export namespace Call { * # */ export function close_bounty( - value: Omit, - ): t.pallet_bounties.pallet.Call.close_bounty { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.close_bounty { return { type: "close_bounty", ...value } } /** @@ -324,8 +324,8 @@ export namespace Call { * # */ export function extend_bounty_expiry( - value: Omit, - ): t.pallet_bounties.pallet.Call.extend_bounty_expiry { + value: Omit, + ): t.types.pallet_bounties.pallet.Call.extend_bounty_expiry { return { type: "extend_bounty_expiry", ...value } } } @@ -346,93 +346,93 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_bounties.pallet.Event.BountyProposed - | t.pallet_bounties.pallet.Event.BountyRejected - | t.pallet_bounties.pallet.Event.BountyBecameActive - | t.pallet_bounties.pallet.Event.BountyAwarded - | t.pallet_bounties.pallet.Event.BountyClaimed - | t.pallet_bounties.pallet.Event.BountyCanceled - | t.pallet_bounties.pallet.Event.BountyExtended + | t.types.pallet_bounties.pallet.Event.BountyProposed + | t.types.pallet_bounties.pallet.Event.BountyRejected + | t.types.pallet_bounties.pallet.Event.BountyBecameActive + | t.types.pallet_bounties.pallet.Event.BountyAwarded + | t.types.pallet_bounties.pallet.Event.BountyClaimed + | t.types.pallet_bounties.pallet.Event.BountyCanceled + | t.types.pallet_bounties.pallet.Event.BountyExtended export namespace Event { /** New bounty proposal. */ export interface BountyProposed { type: "BountyProposed" - index: t.u32 + index: t.types.u32 } /** A bounty proposal was rejected; funds were slashed. */ export interface BountyRejected { type: "BountyRejected" - index: t.u32 - bond: t.u128 + index: t.types.u32 + bond: t.types.u128 } /** A bounty proposal is funded and became active. */ export interface BountyBecameActive { type: "BountyBecameActive" - index: t.u32 + index: t.types.u32 } /** A bounty is awarded to a beneficiary. */ export interface BountyAwarded { type: "BountyAwarded" - index: t.u32 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A bounty is claimed by beneficiary. */ export interface BountyClaimed { type: "BountyClaimed" - index: t.u32 - payout: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + payout: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A bounty is cancelled. */ export interface BountyCanceled { type: "BountyCanceled" - index: t.u32 + index: t.types.u32 } /** A bounty expiry is extended. */ export interface BountyExtended { type: "BountyExtended" - index: t.u32 + index: t.types.u32 } /** New bounty proposal. */ export function BountyProposed( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyProposed { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyProposed { return { type: "BountyProposed", ...value } } /** A bounty proposal was rejected; funds were slashed. */ export function BountyRejected( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyRejected { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyRejected { return { type: "BountyRejected", ...value } } /** A bounty proposal is funded and became active. */ export function BountyBecameActive( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyBecameActive { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyBecameActive { return { type: "BountyBecameActive", ...value } } /** A bounty is awarded to a beneficiary. */ export function BountyAwarded( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyAwarded { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyAwarded { return { type: "BountyAwarded", ...value } } /** A bounty is claimed by beneficiary. */ export function BountyClaimed( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyClaimed { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyClaimed { return { type: "BountyClaimed", ...value } } /** A bounty is cancelled. */ export function BountyCanceled( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyCanceled { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyCanceled { return { type: "BountyCanceled", ...value } } /** A bounty expiry is extended. */ export function BountyExtended( - value: Omit, - ): t.pallet_bounties.pallet.Event.BountyExtended { + value: Omit, + ): t.types.pallet_bounties.pallet.Event.BountyExtended { return { type: "BountyExtended", ...value } } } diff --git a/codegen/_output/westend/types/pallet_child_bounties/mod.ts b/codegen/_output/westend/types/pallet_child_bounties/mod.ts new file mode 100644 index 000000000..9355697ec --- /dev/null +++ b/codegen/_output/westend/types/pallet_child_bounties/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $childBounty: $.Codec = _codec.$595 + +export const $childBountyStatus: $.Codec = + _codec.$596 + +export interface ChildBounty { + parent_bounty: t.types.u32 + value: t.types.u128 + fee: t.types.u128 + curator_deposit: t.types.u128 + status: t.types.pallet_child_bounties.ChildBountyStatus +} + +export function ChildBounty(value: t.types.pallet_child_bounties.ChildBounty) { + return value +} + +export type ChildBountyStatus = + | t.types.pallet_child_bounties.ChildBountyStatus.Added + | t.types.pallet_child_bounties.ChildBountyStatus.CuratorProposed + | t.types.pallet_child_bounties.ChildBountyStatus.Active + | t.types.pallet_child_bounties.ChildBountyStatus.PendingPayout +export namespace ChildBountyStatus { + export interface Added { + type: "Added" + } + export interface CuratorProposed { + type: "CuratorProposed" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface Active { + type: "Active" + curator: t.types.sp_core.crypto.AccountId32 + } + export interface PendingPayout { + type: "PendingPayout" + curator: t.types.sp_core.crypto.AccountId32 + beneficiary: t.types.sp_core.crypto.AccountId32 + unlock_at: t.types.u32 + } + export function Added(): t.types.pallet_child_bounties.ChildBountyStatus.Added { + return { type: "Added" } + } + export function CuratorProposed( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.CuratorProposed { + return { type: "CuratorProposed", ...value } + } + export function Active( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.Active { + return { type: "Active", ...value } + } + export function PendingPayout( + value: Omit, + ): t.types.pallet_child_bounties.ChildBountyStatus.PendingPayout { + return { type: "PendingPayout", ...value } + } +} diff --git a/codegen/_output/kusama/pallet_child_bounties/pallet.ts b/codegen/_output/westend/types/pallet_child_bounties/pallet.ts similarity index 79% rename from codegen/_output/kusama/pallet_child_bounties/pallet.ts rename to codegen/_output/westend/types/pallet_child_bounties/pallet.ts index 85d228af3..bca3b2363 100644 --- a/codegen/_output/kusama/pallet_child_bounties/pallet.ts +++ b/codegen/_output/westend/types/pallet_child_bounties/pallet.ts @@ -1,22 +1,22 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$308 +export const $call: $.Codec = _codec.$308 -export const $error: $.Codec = _codec.$597 +export const $error: $.Codec = _codec.$597 -export const $event: $.Codec = _codec.$84 +export const $event: $.Codec = _codec.$84 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_child_bounties.pallet.Call.add_child_bounty - | t.pallet_child_bounties.pallet.Call.propose_curator - | t.pallet_child_bounties.pallet.Call.accept_curator - | t.pallet_child_bounties.pallet.Call.unassign_curator - | t.pallet_child_bounties.pallet.Call.award_child_bounty - | t.pallet_child_bounties.pallet.Call.claim_child_bounty - | t.pallet_child_bounties.pallet.Call.close_child_bounty + | t.types.pallet_child_bounties.pallet.Call.add_child_bounty + | t.types.pallet_child_bounties.pallet.Call.propose_curator + | t.types.pallet_child_bounties.pallet.Call.accept_curator + | t.types.pallet_child_bounties.pallet.Call.unassign_curator + | t.types.pallet_child_bounties.pallet.Call.award_child_bounty + | t.types.pallet_child_bounties.pallet.Call.claim_child_bounty + | t.types.pallet_child_bounties.pallet.Call.close_child_bounty export namespace Call { /** * Add a new child-bounty. @@ -41,8 +41,8 @@ export namespace Call { */ export interface add_child_bounty { type: "add_child_bounty" - parent_bounty_id: t.Compact - value: t.Compact + parent_bounty_id: t.Compact + value: t.Compact description: Uint8Array } /** @@ -64,10 +64,10 @@ export namespace Call { */ export interface propose_curator { type: "propose_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact - curator: t.sp_runtime.multiaddress.MultiAddress - fee: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact + curator: t.types.sp_runtime.multiaddress.MultiAddress + fee: t.Compact } /** * Accept the curator role for the child-bounty. @@ -92,8 +92,8 @@ export namespace Call { */ export interface accept_curator { type: "accept_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Unassign curator from a child-bounty. @@ -133,8 +133,8 @@ export namespace Call { */ export interface unassign_curator { type: "unassign_curator" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Award child-bounty to a beneficiary. @@ -157,9 +157,9 @@ export namespace Call { */ export interface award_child_bounty { type: "award_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + parent_bounty_id: t.Compact + child_bounty_id: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Claim the payout from an awarded child-bounty after payout delay. @@ -181,8 +181,8 @@ export namespace Call { */ export interface claim_child_bounty { type: "claim_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Cancel a proposed or active child-bounty. Child-bounty account funds @@ -210,8 +210,8 @@ export namespace Call { */ export interface close_child_bounty { type: "close_child_bounty" - parent_bounty_id: t.Compact - child_bounty_id: t.Compact + parent_bounty_id: t.Compact + child_bounty_id: t.Compact } /** * Add a new child-bounty. @@ -235,8 +235,8 @@ export namespace Call { * - `description`: Text description for the child-bounty. */ export function add_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.add_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.add_child_bounty { return { type: "add_child_bounty", ...value } } /** @@ -257,8 +257,8 @@ export namespace Call { * - `fee`: payment fee to child-bounty curator for execution. */ export function propose_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.propose_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.propose_curator { return { type: "propose_curator", ...value } } /** @@ -283,8 +283,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function accept_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.accept_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.accept_curator { return { type: "accept_curator", ...value } } /** @@ -324,8 +324,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function unassign_curator( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.unassign_curator { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.unassign_curator { return { type: "unassign_curator", ...value } } /** @@ -348,8 +348,8 @@ export namespace Call { * - `beneficiary`: Beneficiary account. */ export function award_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.award_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.award_child_bounty { return { type: "award_child_bounty", ...value } } /** @@ -371,8 +371,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function claim_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.claim_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.claim_child_bounty { return { type: "claim_child_bounty", ...value } } /** @@ -400,8 +400,8 @@ export namespace Call { * - `child_bounty_id`: Index of child bounty. */ export function close_child_bounty( - value: Omit, - ): t.pallet_child_bounties.pallet.Call.close_child_bounty { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Call.close_child_bounty { return { type: "close_child_bounty", ...value } } } @@ -411,60 +411,60 @@ export type Error = "ParentBountyNotActive" | "InsufficientBountyBalance" | "Too /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_child_bounties.pallet.Event.Added - | t.pallet_child_bounties.pallet.Event.Awarded - | t.pallet_child_bounties.pallet.Event.Claimed - | t.pallet_child_bounties.pallet.Event.Canceled + | t.types.pallet_child_bounties.pallet.Event.Added + | t.types.pallet_child_bounties.pallet.Event.Awarded + | t.types.pallet_child_bounties.pallet.Event.Claimed + | t.types.pallet_child_bounties.pallet.Event.Canceled export namespace Event { /** A child-bounty is added. */ export interface Added { type: "Added" - index: t.u32 - child_index: t.u32 + index: t.types.u32 + child_index: t.types.u32 } /** A child-bounty is awarded to a beneficiary. */ export interface Awarded { type: "Awarded" - index: t.u32 - child_index: t.u32 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + child_index: t.types.u32 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A child-bounty is claimed by beneficiary. */ export interface Claimed { type: "Claimed" - index: t.u32 - child_index: t.u32 - payout: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + index: t.types.u32 + child_index: t.types.u32 + payout: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** A child-bounty is cancelled. */ export interface Canceled { type: "Canceled" - index: t.u32 - child_index: t.u32 + index: t.types.u32 + child_index: t.types.u32 } /** A child-bounty is added. */ export function Added( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Added { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Added { return { type: "Added", ...value } } /** A child-bounty is awarded to a beneficiary. */ export function Awarded( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Awarded { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Awarded { return { type: "Awarded", ...value } } /** A child-bounty is claimed by beneficiary. */ export function Claimed( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Claimed { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Claimed { return { type: "Claimed", ...value } } /** A child-bounty is cancelled. */ export function Canceled( - value: Omit, - ): t.pallet_child_bounties.pallet.Event.Canceled { + value: Omit, + ): t.types.pallet_child_bounties.pallet.Event.Canceled { return { type: "Canceled", ...value } } } diff --git a/codegen/_output/westend/types/pallet_collective/mod.ts b/codegen/_output/westend/types/pallet_collective/mod.ts new file mode 100644 index 000000000..020fac5da --- /dev/null +++ b/codegen/_output/westend/types/pallet_collective/mod.ts @@ -0,0 +1,52 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $rawOrigin: $.Codec = _codec.$258 + +export const $votes: $.Codec = _codec.$546 + +export type RawOrigin = + | t.types.pallet_collective.RawOrigin.Members + | t.types.pallet_collective.RawOrigin.Member + | t.types.pallet_collective.RawOrigin._Phantom +export namespace RawOrigin { + export interface Members { + type: "Members" + value: [t.types.u32, t.types.u32] + } + export interface Member { + type: "Member" + value: t.types.sp_core.crypto.AccountId32 + } + export interface _Phantom { + type: "_Phantom" + } + export function Members( + ...value: t.types.pallet_collective.RawOrigin.Members["value"] + ): t.types.pallet_collective.RawOrigin.Members { + return { type: "Members", value } + } + export function Member( + value: t.types.pallet_collective.RawOrigin.Member["value"], + ): t.types.pallet_collective.RawOrigin.Member { + return { type: "Member", value } + } + export function _Phantom(): t.types.pallet_collective.RawOrigin._Phantom { + return { type: "_Phantom" } + } +} + +export interface Votes { + index: t.types.u32 + threshold: t.types.u32 + ayes: Array + nays: Array + end: t.types.u32 +} + +export function Votes(value: t.types.pallet_collective.Votes) { + return value +} diff --git a/codegen/_output/kusama/pallet_collective/pallet.ts b/codegen/_output/westend/types/pallet_collective/pallet.ts similarity index 80% rename from codegen/_output/kusama/pallet_collective/pallet.ts rename to codegen/_output/westend/types/pallet_collective/pallet.ts index a15fd391a..f189d56db 100644 --- a/codegen/_output/kusama/pallet_collective/pallet.ts +++ b/codegen/_output/westend/types/pallet_collective/pallet.ts @@ -1,22 +1,22 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$237 +export const $call: $.Codec = _codec.$237 -export const $error: $.Codec = _codec.$547 +export const $error: $.Codec = _codec.$547 -export const $event: $.Codec = _codec.$65 +export const $event: $.Codec = _codec.$65 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_collective.pallet.Call.set_members - | t.pallet_collective.pallet.Call.execute - | t.pallet_collective.pallet.Call.propose - | t.pallet_collective.pallet.Call.vote - | t.pallet_collective.pallet.Call.close_old_weight - | t.pallet_collective.pallet.Call.disapprove_proposal - | t.pallet_collective.pallet.Call.close + | t.types.pallet_collective.pallet.Call.set_members + | t.types.pallet_collective.pallet.Call.execute + | t.types.pallet_collective.pallet.Call.propose + | t.types.pallet_collective.pallet.Call.vote + | t.types.pallet_collective.pallet.Call.close_old_weight + | t.types.pallet_collective.pallet.Call.disapprove_proposal + | t.types.pallet_collective.pallet.Call.close export namespace Call { /** * Set the collective's membership. @@ -54,9 +54,9 @@ export namespace Call { */ export interface set_members { type: "set_members" - new_members: Array - prime: t.sp_core.crypto.AccountId32 | undefined - old_count: t.u32 + new_members: Array + prime: t.types.sp_core.crypto.AccountId32 | undefined + old_count: t.types.u32 } /** * Dispatch a proposal from a member using the `Member` origin. @@ -73,8 +73,8 @@ export namespace Call { */ export interface execute { type: "execute" - proposal: t.polkadot_runtime.RuntimeCall - length_bound: t.Compact + proposal: t.types.polkadot_runtime.RuntimeCall + length_bound: t.Compact } /** * Add a new proposal to either be voted on or executed directly. @@ -107,9 +107,9 @@ export namespace Call { */ export interface propose { type: "propose" - threshold: t.Compact - proposal: t.polkadot_runtime.RuntimeCall - length_bound: t.Compact + threshold: t.Compact + proposal: t.types.polkadot_runtime.RuntimeCall + length_bound: t.Compact } /** * Add an aye or nay vote for the sender to the given proposal. @@ -130,8 +130,8 @@ export namespace Call { */ export interface vote { type: "vote" - proposal: t.primitive_types.H256 - index: t.Compact + proposal: t.types.primitive_types.H256 + index: t.Compact approve: boolean } /** @@ -170,10 +170,10 @@ export namespace Call { */ export interface close_old_weight { type: "close_old_weight" - proposal_hash: t.primitive_types.H256 - index: t.Compact - proposal_weight_bound: t.Compact - length_bound: t.Compact + proposal_hash: t.types.primitive_types.H256 + index: t.Compact + proposal_weight_bound: t.Compact + length_bound: t.Compact } /** * Disapprove a proposal, close, and remove it from the system, regardless of its current @@ -193,7 +193,7 @@ export namespace Call { */ export interface disapprove_proposal { type: "disapprove_proposal" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** * Close a vote that is either approved, disapproved or whose voting period has ended. @@ -231,10 +231,10 @@ export namespace Call { */ export interface close { type: "close" - proposal_hash: t.primitive_types.H256 - index: t.Compact - proposal_weight_bound: t.sp_weights.weight_v2.Weight - length_bound: t.Compact + proposal_hash: t.types.primitive_types.H256 + index: t.Compact + proposal_weight_bound: t.types.sp_weights.weight_v2.Weight + length_bound: t.Compact } /** * Set the collective's membership. @@ -271,8 +271,8 @@ export namespace Call { * # */ export function set_members( - value: Omit, - ): t.pallet_collective.pallet.Call.set_members { + value: Omit, + ): t.types.pallet_collective.pallet.Call.set_members { return { type: "set_members", ...value } } /** @@ -289,8 +289,8 @@ export namespace Call { * # */ export function execute( - value: Omit, - ): t.pallet_collective.pallet.Call.execute { + value: Omit, + ): t.types.pallet_collective.pallet.Call.execute { return { type: "execute", ...value } } /** @@ -323,8 +323,8 @@ export namespace Call { * # */ export function propose( - value: Omit, - ): t.pallet_collective.pallet.Call.propose { + value: Omit, + ): t.types.pallet_collective.pallet.Call.propose { return { type: "propose", ...value } } /** @@ -345,8 +345,8 @@ export namespace Call { * # */ export function vote( - value: Omit, - ): t.pallet_collective.pallet.Call.vote { + value: Omit, + ): t.types.pallet_collective.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -384,8 +384,8 @@ export namespace Call { * # */ export function close_old_weight( - value: Omit, - ): t.pallet_collective.pallet.Call.close_old_weight { + value: Omit, + ): t.types.pallet_collective.pallet.Call.close_old_weight { return { type: "close_old_weight", ...value } } /** @@ -405,8 +405,8 @@ export namespace Call { * # */ export function disapprove_proposal( - value: Omit, - ): t.pallet_collective.pallet.Call.disapprove_proposal { + value: Omit, + ): t.types.pallet_collective.pallet.Call.disapprove_proposal { return { type: "disapprove_proposal", ...value } } /** @@ -444,8 +444,8 @@ export namespace Call { * # */ export function close( - value: Omit, - ): t.pallet_collective.pallet.Call.close { + value: Omit, + ): t.types.pallet_collective.pallet.Call.close { return { type: "close", ...value } } } @@ -465,13 +465,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_collective.pallet.Event.Proposed - | t.pallet_collective.pallet.Event.Voted - | t.pallet_collective.pallet.Event.Approved - | t.pallet_collective.pallet.Event.Disapproved - | t.pallet_collective.pallet.Event.Executed - | t.pallet_collective.pallet.Event.MemberExecuted - | t.pallet_collective.pallet.Event.Closed + | t.types.pallet_collective.pallet.Event.Proposed + | t.types.pallet_collective.pallet.Event.Voted + | t.types.pallet_collective.pallet.Event.Approved + | t.types.pallet_collective.pallet.Event.Disapproved + | t.types.pallet_collective.pallet.Event.Executed + | t.types.pallet_collective.pallet.Event.MemberExecuted + | t.types.pallet_collective.pallet.Event.Closed export namespace Event { /** * A motion (given hash) has been proposed (by given account) with a threshold (given @@ -479,10 +479,10 @@ export namespace Event { */ export interface Proposed { type: "Proposed" - account: t.sp_core.crypto.AccountId32 - proposal_index: t.u32 - proposal_hash: t.primitive_types.H256 - threshold: t.u32 + account: t.types.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + proposal_hash: t.types.primitive_types.H256 + threshold: t.types.u32 } /** * A motion (given hash) has been voted on by given account, leaving @@ -490,48 +490,48 @@ export namespace Event { */ export interface Voted { type: "Voted" - account: t.sp_core.crypto.AccountId32 - proposal_hash: t.primitive_types.H256 + account: t.types.sp_core.crypto.AccountId32 + proposal_hash: t.types.primitive_types.H256 voted: boolean - yes: t.u32 - no: t.u32 + yes: t.types.u32 + no: t.types.u32 } /** A motion was approved by the required threshold. */ export interface Approved { type: "Approved" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** A motion was not approved by the required threshold. */ export interface Disapproved { type: "Disapproved" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** A motion was executed; result will be `Ok` if it returned without error. */ export interface Executed { type: "Executed" - proposal_hash: t.primitive_types.H256 - result: null | C.ChainError + proposal_hash: t.types.primitive_types.H256 + result: null | C.ChainError } /** A single member did some action; result will be `Ok` if it returned without error. */ export interface MemberExecuted { type: "MemberExecuted" - proposal_hash: t.primitive_types.H256 - result: null | C.ChainError + proposal_hash: t.types.primitive_types.H256 + result: null | C.ChainError } /** A proposal was closed because its threshold was reached or after its duration was up. */ export interface Closed { type: "Closed" - proposal_hash: t.primitive_types.H256 - yes: t.u32 - no: t.u32 + proposal_hash: t.types.primitive_types.H256 + yes: t.types.u32 + no: t.types.u32 } /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). */ export function Proposed( - value: Omit, - ): t.pallet_collective.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** @@ -539,38 +539,38 @@ export namespace Event { * a tally (yes votes and no votes given respectively as `MemberCount`). */ export function Voted( - value: Omit, - ): t.pallet_collective.pallet.Event.Voted { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Voted { return { type: "Voted", ...value } } /** A motion was approved by the required threshold. */ export function Approved( - value: Omit, - ): t.pallet_collective.pallet.Event.Approved { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Approved { return { type: "Approved", ...value } } /** A motion was not approved by the required threshold. */ export function Disapproved( - value: Omit, - ): t.pallet_collective.pallet.Event.Disapproved { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Disapproved { return { type: "Disapproved", ...value } } /** A motion was executed; result will be `Ok` if it returned without error. */ export function Executed( - value: Omit, - ): t.pallet_collective.pallet.Event.Executed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Executed { return { type: "Executed", ...value } } /** A single member did some action; result will be `Ok` if it returned without error. */ export function MemberExecuted( - value: Omit, - ): t.pallet_collective.pallet.Event.MemberExecuted { + value: Omit, + ): t.types.pallet_collective.pallet.Event.MemberExecuted { return { type: "MemberExecuted", ...value } } /** A proposal was closed because its threshold was reached or after its duration was up. */ export function Closed( - value: Omit, - ): t.pallet_collective.pallet.Event.Closed { + value: Omit, + ): t.types.pallet_collective.pallet.Event.Closed { return { type: "Closed", ...value } } } diff --git a/codegen/_output/westend/types/pallet_democracy/conviction.ts b/codegen/_output/westend/types/pallet_democracy/conviction.ts new file mode 100644 index 000000000..c35068358 --- /dev/null +++ b/codegen/_output/westend/types/pallet_democracy/conviction.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $conviction: $.Codec = _codec.$235 + +export type Conviction = + | "None" + | "Locked1x" + | "Locked2x" + | "Locked3x" + | "Locked4x" + | "Locked5x" + | "Locked6x" diff --git a/codegen/_output/westend/pallet_democracy/mod.ts b/codegen/_output/westend/types/pallet_democracy/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_democracy/mod.ts rename to codegen/_output/westend/types/pallet_democracy/mod.ts diff --git a/codegen/_output/westend/pallet_democracy/pallet.ts b/codegen/_output/westend/types/pallet_democracy/pallet.ts similarity index 75% rename from codegen/_output/westend/pallet_democracy/pallet.ts rename to codegen/_output/westend/types/pallet_democracy/pallet.ts index e138410cc..3981f4554 100644 --- a/codegen/_output/westend/pallet_democracy/pallet.ts +++ b/codegen/_output/westend/types/pallet_democracy/pallet.ts @@ -1,33 +1,33 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$234 +export const $call: $.Codec = _codec.$234 -export const $error: $.Codec = _codec.$544 +export const $error: $.Codec = _codec.$544 -export const $event: $.Codec = _codec.$61 +export const $event: $.Codec = _codec.$61 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_democracy.pallet.Call.propose - | t.pallet_democracy.pallet.Call.second - | t.pallet_democracy.pallet.Call.vote - | t.pallet_democracy.pallet.Call.emergency_cancel - | t.pallet_democracy.pallet.Call.external_propose - | t.pallet_democracy.pallet.Call.external_propose_majority - | t.pallet_democracy.pallet.Call.external_propose_default - | t.pallet_democracy.pallet.Call.fast_track - | t.pallet_democracy.pallet.Call.veto_external - | t.pallet_democracy.pallet.Call.cancel_referendum - | t.pallet_democracy.pallet.Call.delegate - | t.pallet_democracy.pallet.Call.undelegate - | t.pallet_democracy.pallet.Call.clear_public_proposals - | t.pallet_democracy.pallet.Call.unlock - | t.pallet_democracy.pallet.Call.remove_vote - | t.pallet_democracy.pallet.Call.remove_other_vote - | t.pallet_democracy.pallet.Call.blacklist - | t.pallet_democracy.pallet.Call.cancel_proposal + | t.types.pallet_democracy.pallet.Call.propose + | t.types.pallet_democracy.pallet.Call.second + | t.types.pallet_democracy.pallet.Call.vote + | t.types.pallet_democracy.pallet.Call.emergency_cancel + | t.types.pallet_democracy.pallet.Call.external_propose + | t.types.pallet_democracy.pallet.Call.external_propose_majority + | t.types.pallet_democracy.pallet.Call.external_propose_default + | t.types.pallet_democracy.pallet.Call.fast_track + | t.types.pallet_democracy.pallet.Call.veto_external + | t.types.pallet_democracy.pallet.Call.cancel_referendum + | t.types.pallet_democracy.pallet.Call.delegate + | t.types.pallet_democracy.pallet.Call.undelegate + | t.types.pallet_democracy.pallet.Call.clear_public_proposals + | t.types.pallet_democracy.pallet.Call.unlock + | t.types.pallet_democracy.pallet.Call.remove_vote + | t.types.pallet_democracy.pallet.Call.remove_other_vote + | t.types.pallet_democracy.pallet.Call.blacklist + | t.types.pallet_democracy.pallet.Call.cancel_proposal export namespace Call { /** * Propose a sensitive action to be taken. @@ -42,8 +42,8 @@ export namespace Call { */ export interface propose { type: "propose" - proposal: t.frame_support.traits.preimages.Bounded - value: t.Compact + proposal: t.types.frame_support.traits.preimages.Bounded + value: t.Compact } /** * Signals agreement with a particular proposal. @@ -55,7 +55,7 @@ export namespace Call { */ export interface second { type: "second" - proposal: t.Compact + proposal: t.Compact } /** * Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal; @@ -68,8 +68,8 @@ export namespace Call { */ export interface vote { type: "vote" - ref_index: t.Compact - vote: t.pallet_democracy.vote.AccountVote + ref_index: t.Compact + vote: t.types.pallet_democracy.vote.AccountVote } /** * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same @@ -83,7 +83,7 @@ export namespace Call { */ export interface emergency_cancel { type: "emergency_cancel" - ref_index: t.u32 + ref_index: t.types.u32 } /** * Schedule a referendum to be tabled once it is legal to schedule an external @@ -95,7 +95,7 @@ export namespace Call { */ export interface external_propose { type: "external_propose" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule a majority-carries referendum to be tabled next once it is legal to schedule @@ -112,7 +112,7 @@ export namespace Call { */ export interface external_propose_majority { type: "external_propose_majority" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to @@ -129,7 +129,7 @@ export namespace Call { */ export interface external_propose_default { type: "external_propose_default" - proposal: t.frame_support.traits.preimages.Bounded + proposal: t.types.frame_support.traits.preimages.Bounded } /** * Schedule the currently externally-proposed majority-carries referendum to be tabled @@ -151,9 +151,9 @@ export namespace Call { */ export interface fast_track { type: "fast_track" - proposal_hash: t.primitive_types.H256 - voting_period: t.u32 - delay: t.u32 + proposal_hash: t.types.primitive_types.H256 + voting_period: t.types.u32 + delay: t.types.u32 } /** * Veto and blacklist the external proposal hash. @@ -168,7 +168,7 @@ export namespace Call { */ export interface veto_external { type: "veto_external" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** * Remove a referendum. @@ -181,7 +181,7 @@ export namespace Call { */ export interface cancel_referendum { type: "cancel_referendum" - ref_index: t.Compact + ref_index: t.Compact } /** * Delegate the voting power (with some given conviction) of the sending account. @@ -207,9 +207,9 @@ export namespace Call { */ export interface delegate { type: "delegate" - to: t.sp_runtime.multiaddress.MultiAddress - conviction: t.pallet_democracy.conviction.Conviction - balance: t.u128 + to: t.types.sp_runtime.multiaddress.MultiAddress + conviction: t.types.pallet_democracy.conviction.Conviction + balance: t.types.u128 } /** * Undelegate the voting power of the sending account. @@ -249,7 +249,7 @@ export namespace Call { */ export interface unlock { type: "unlock" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove a vote for a referendum. @@ -282,7 +282,7 @@ export namespace Call { */ export interface remove_vote { type: "remove_vote" - index: t.u32 + index: t.types.u32 } /** * Remove a vote for a referendum. @@ -303,8 +303,8 @@ export namespace Call { */ export interface remove_other_vote { type: "remove_other_vote" - target: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + target: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 } /** * Permanently place a proposal into the blacklist. This prevents it from ever being @@ -325,8 +325,8 @@ export namespace Call { */ export interface blacklist { type: "blacklist" - proposal_hash: t.primitive_types.H256 - maybe_ref_index: t.u32 | undefined + proposal_hash: t.types.primitive_types.H256 + maybe_ref_index: t.types.u32 | undefined } /** * Remove a proposal. @@ -339,7 +339,7 @@ export namespace Call { */ export interface cancel_proposal { type: "cancel_proposal" - prop_index: t.Compact + prop_index: t.Compact } /** * Propose a sensitive action to be taken. @@ -353,8 +353,8 @@ export namespace Call { * Emits `Proposed`. */ export function propose( - value: Omit, - ): t.pallet_democracy.pallet.Call.propose { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.propose { return { type: "propose", ...value } } /** @@ -366,8 +366,8 @@ export namespace Call { * - `proposal`: The index of the proposal to second. */ export function second( - value: Omit, - ): t.pallet_democracy.pallet.Call.second { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.second { return { type: "second", ...value } } /** @@ -380,8 +380,8 @@ export namespace Call { * - `vote`: The vote configuration. */ export function vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -395,8 +395,8 @@ export namespace Call { * Weight: `O(1)`. */ export function emergency_cancel( - value: Omit, - ): t.pallet_democracy.pallet.Call.emergency_cancel { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.emergency_cancel { return { type: "emergency_cancel", ...value } } /** @@ -408,8 +408,8 @@ export namespace Call { * - `proposal_hash`: The preimage hash of the proposal. */ export function external_propose( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose { return { type: "external_propose", ...value } } /** @@ -426,8 +426,8 @@ export namespace Call { * Weight: `O(1)` */ export function external_propose_majority( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose_majority { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose_majority { return { type: "external_propose_majority", ...value } } /** @@ -444,8 +444,8 @@ export namespace Call { * Weight: `O(1)` */ export function external_propose_default( - value: Omit, - ): t.pallet_democracy.pallet.Call.external_propose_default { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.external_propose_default { return { type: "external_propose_default", ...value } } /** @@ -467,8 +467,8 @@ export namespace Call { * Weight: `O(1)` */ export function fast_track( - value: Omit, - ): t.pallet_democracy.pallet.Call.fast_track { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.fast_track { return { type: "fast_track", ...value } } /** @@ -483,8 +483,8 @@ export namespace Call { * Weight: `O(V + log(V))` where V is number of `existing vetoers` */ export function veto_external( - value: Omit, - ): t.pallet_democracy.pallet.Call.veto_external { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.veto_external { return { type: "veto_external", ...value } } /** @@ -497,8 +497,8 @@ export namespace Call { * # Weight: `O(1)`. */ export function cancel_referendum( - value: Omit, - ): t.pallet_democracy.pallet.Call.cancel_referendum { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.cancel_referendum { return { type: "cancel_referendum", ...value } } /** @@ -524,8 +524,8 @@ export namespace Call { * voted on. Weight is charged as if maximum votes. */ export function delegate( - value: Omit, - ): t.pallet_democracy.pallet.Call.delegate { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.delegate { return { type: "delegate", ...value } } /** @@ -542,7 +542,7 @@ export namespace Call { * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. */ - export function undelegate(): t.pallet_democracy.pallet.Call.undelegate { + export function undelegate(): t.types.pallet_democracy.pallet.Call.undelegate { return { type: "undelegate" } } /** @@ -552,7 +552,7 @@ export namespace Call { * * Weight: `O(1)`. */ - export function clear_public_proposals(): t.pallet_democracy.pallet.Call.clear_public_proposals { + export function clear_public_proposals(): t.types.pallet_democracy.pallet.Call.clear_public_proposals { return { type: "clear_public_proposals" } } /** @@ -565,8 +565,8 @@ export namespace Call { * Weight: `O(R)` with R number of vote of target. */ export function unlock( - value: Omit, - ): t.pallet_democracy.pallet.Call.unlock { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.unlock { return { type: "unlock", ...value } } /** @@ -599,8 +599,8 @@ export namespace Call { * Weight is calculated for the maximum number of vote. */ export function remove_vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.remove_vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.remove_vote { return { type: "remove_vote", ...value } } /** @@ -621,8 +621,8 @@ export namespace Call { * Weight is calculated for the maximum number of vote. */ export function remove_other_vote( - value: Omit, - ): t.pallet_democracy.pallet.Call.remove_other_vote { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.remove_other_vote { return { type: "remove_other_vote", ...value } } /** @@ -643,8 +643,8 @@ export namespace Call { * reasonable value). */ export function blacklist( - value: Omit, - ): t.pallet_democracy.pallet.Call.blacklist { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.blacklist { return { type: "blacklist", ...value } } /** @@ -657,8 +657,8 @@ export namespace Call { * Weight: `O(p)` where `p = PublicProps::::decode_len()` */ export function cancel_proposal( - value: Omit, - ): t.pallet_democracy.pallet.Call.cancel_proposal { + value: Omit, + ): t.types.pallet_democracy.pallet.Call.cancel_proposal { return { type: "cancel_proposal", ...value } } } @@ -691,32 +691,32 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_democracy.pallet.Event.Proposed - | t.pallet_democracy.pallet.Event.Tabled - | t.pallet_democracy.pallet.Event.ExternalTabled - | t.pallet_democracy.pallet.Event.Started - | t.pallet_democracy.pallet.Event.Passed - | t.pallet_democracy.pallet.Event.NotPassed - | t.pallet_democracy.pallet.Event.Cancelled - | t.pallet_democracy.pallet.Event.Delegated - | t.pallet_democracy.pallet.Event.Undelegated - | t.pallet_democracy.pallet.Event.Vetoed - | t.pallet_democracy.pallet.Event.Blacklisted - | t.pallet_democracy.pallet.Event.Voted - | t.pallet_democracy.pallet.Event.Seconded - | t.pallet_democracy.pallet.Event.ProposalCanceled + | t.types.pallet_democracy.pallet.Event.Proposed + | t.types.pallet_democracy.pallet.Event.Tabled + | t.types.pallet_democracy.pallet.Event.ExternalTabled + | t.types.pallet_democracy.pallet.Event.Started + | t.types.pallet_democracy.pallet.Event.Passed + | t.types.pallet_democracy.pallet.Event.NotPassed + | t.types.pallet_democracy.pallet.Event.Cancelled + | t.types.pallet_democracy.pallet.Event.Delegated + | t.types.pallet_democracy.pallet.Event.Undelegated + | t.types.pallet_democracy.pallet.Event.Vetoed + | t.types.pallet_democracy.pallet.Event.Blacklisted + | t.types.pallet_democracy.pallet.Event.Voted + | t.types.pallet_democracy.pallet.Event.Seconded + | t.types.pallet_democracy.pallet.Event.ProposalCanceled export namespace Event { /** A motion has been proposed by a public account. */ export interface Proposed { type: "Proposed" - proposal_index: t.u32 - deposit: t.u128 + proposal_index: t.types.u32 + deposit: t.types.u128 } /** A public proposal has been tabled for referendum vote. */ export interface Tabled { type: "Tabled" - proposal_index: t.u32 - deposit: t.u128 + proposal_index: t.types.u32 + deposit: t.types.u128 } /** An external proposal has been tabled. */ export interface ExternalTabled { @@ -725,145 +725,145 @@ export namespace Event { /** A referendum has begun. */ export interface Started { type: "Started" - ref_index: t.u32 - threshold: t.pallet_democracy.vote_threshold.VoteThreshold + ref_index: t.types.u32 + threshold: t.types.pallet_democracy.vote_threshold.VoteThreshold } /** A proposal has been approved by referendum. */ export interface Passed { type: "Passed" - ref_index: t.u32 + ref_index: t.types.u32 } /** A proposal has been rejected by referendum. */ export interface NotPassed { type: "NotPassed" - ref_index: t.u32 + ref_index: t.types.u32 } /** A referendum has been cancelled. */ export interface Cancelled { type: "Cancelled" - ref_index: t.u32 + ref_index: t.types.u32 } /** An account has delegated their vote to another account. */ export interface Delegated { type: "Delegated" - who: t.sp_core.crypto.AccountId32 - target: t.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 + target: t.types.sp_core.crypto.AccountId32 } /** An account has cancelled a previous delegation operation. */ export interface Undelegated { type: "Undelegated" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** An external proposal has been vetoed. */ export interface Vetoed { type: "Vetoed" - who: t.sp_core.crypto.AccountId32 - proposal_hash: t.primitive_types.H256 - until: t.u32 + who: t.types.sp_core.crypto.AccountId32 + proposal_hash: t.types.primitive_types.H256 + until: t.types.u32 } /** A proposal_hash has been blacklisted permanently. */ export interface Blacklisted { type: "Blacklisted" - proposal_hash: t.primitive_types.H256 + proposal_hash: t.types.primitive_types.H256 } /** An account has voted in a referendum */ export interface Voted { type: "Voted" - voter: t.sp_core.crypto.AccountId32 - ref_index: t.u32 - vote: t.pallet_democracy.vote.AccountVote + voter: t.types.sp_core.crypto.AccountId32 + ref_index: t.types.u32 + vote: t.types.pallet_democracy.vote.AccountVote } /** An account has secconded a proposal */ export interface Seconded { type: "Seconded" - seconder: t.sp_core.crypto.AccountId32 - prop_index: t.u32 + seconder: t.types.sp_core.crypto.AccountId32 + prop_index: t.types.u32 } /** A proposal got canceled. */ export interface ProposalCanceled { type: "ProposalCanceled" - prop_index: t.u32 + prop_index: t.types.u32 } /** A motion has been proposed by a public account. */ export function Proposed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** A public proposal has been tabled for referendum vote. */ export function Tabled( - value: Omit, - ): t.pallet_democracy.pallet.Event.Tabled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Tabled { return { type: "Tabled", ...value } } /** An external proposal has been tabled. */ - export function ExternalTabled(): t.pallet_democracy.pallet.Event.ExternalTabled { + export function ExternalTabled(): t.types.pallet_democracy.pallet.Event.ExternalTabled { return { type: "ExternalTabled" } } /** A referendum has begun. */ export function Started( - value: Omit, - ): t.pallet_democracy.pallet.Event.Started { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Started { return { type: "Started", ...value } } /** A proposal has been approved by referendum. */ export function Passed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Passed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Passed { return { type: "Passed", ...value } } /** A proposal has been rejected by referendum. */ export function NotPassed( - value: Omit, - ): t.pallet_democracy.pallet.Event.NotPassed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.NotPassed { return { type: "NotPassed", ...value } } /** A referendum has been cancelled. */ export function Cancelled( - value: Omit, - ): t.pallet_democracy.pallet.Event.Cancelled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Cancelled { return { type: "Cancelled", ...value } } /** An account has delegated their vote to another account. */ export function Delegated( - value: Omit, - ): t.pallet_democracy.pallet.Event.Delegated { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Delegated { return { type: "Delegated", ...value } } /** An account has cancelled a previous delegation operation. */ export function Undelegated( - value: Omit, - ): t.pallet_democracy.pallet.Event.Undelegated { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Undelegated { return { type: "Undelegated", ...value } } /** An external proposal has been vetoed. */ export function Vetoed( - value: Omit, - ): t.pallet_democracy.pallet.Event.Vetoed { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Vetoed { return { type: "Vetoed", ...value } } /** A proposal_hash has been blacklisted permanently. */ export function Blacklisted( - value: Omit, - ): t.pallet_democracy.pallet.Event.Blacklisted { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Blacklisted { return { type: "Blacklisted", ...value } } /** An account has voted in a referendum */ export function Voted( - value: Omit, - ): t.pallet_democracy.pallet.Event.Voted { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Voted { return { type: "Voted", ...value } } /** An account has secconded a proposal */ export function Seconded( - value: Omit, - ): t.pallet_democracy.pallet.Event.Seconded { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.Seconded { return { type: "Seconded", ...value } } /** A proposal got canceled. */ export function ProposalCanceled( - value: Omit, - ): t.pallet_democracy.pallet.Event.ProposalCanceled { + value: Omit, + ): t.types.pallet_democracy.pallet.Event.ProposalCanceled { return { type: "ProposalCanceled", ...value } } } diff --git a/codegen/_output/westend/types/pallet_democracy/types.ts b/codegen/_output/westend/types/pallet_democracy/types.ts new file mode 100644 index 000000000..f0129bbe9 --- /dev/null +++ b/codegen/_output/westend/types/pallet_democracy/types.ts @@ -0,0 +1,68 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $delegations: $.Codec = _codec.$540 + +export const $referendumInfo: $.Codec = _codec.$533 + +export const $referendumStatus: $.Codec = + _codec.$534 + +export const $tally: $.Codec = _codec.$535 + +export interface Delegations { + votes: t.types.u128 + capital: t.types.u128 +} + +export function Delegations(value: t.types.pallet_democracy.types.Delegations) { + return value +} + +export type ReferendumInfo = + | t.types.pallet_democracy.types.ReferendumInfo.Ongoing + | t.types.pallet_democracy.types.ReferendumInfo.Finished +export namespace ReferendumInfo { + export interface Ongoing { + type: "Ongoing" + value: t.types.pallet_democracy.types.ReferendumStatus + } + export interface Finished { + type: "Finished" + approved: boolean + end: t.types.u32 + } + export function Ongoing( + value: t.types.pallet_democracy.types.ReferendumInfo.Ongoing["value"], + ): t.types.pallet_democracy.types.ReferendumInfo.Ongoing { + return { type: "Ongoing", value } + } + export function Finished( + value: Omit, + ): t.types.pallet_democracy.types.ReferendumInfo.Finished { + return { type: "Finished", ...value } + } +} + +export interface ReferendumStatus { + end: t.types.u32 + proposal: t.types.frame_support.traits.preimages.Bounded + threshold: t.types.pallet_democracy.vote_threshold.VoteThreshold + delay: t.types.u32 + tally: t.types.pallet_democracy.types.Tally +} + +export function ReferendumStatus(value: t.types.pallet_democracy.types.ReferendumStatus) { + return value +} + +export interface Tally { + ayes: t.types.u128 + nays: t.types.u128 + turnout: t.types.u128 +} + +export function Tally(value: t.types.pallet_democracy.types.Tally) { + return value +} diff --git a/codegen/_output/westend/types/pallet_democracy/vote.ts b/codegen/_output/westend/types/pallet_democracy/vote.ts new file mode 100644 index 000000000..14238d064 --- /dev/null +++ b/codegen/_output/westend/types/pallet_democracy/vote.ts @@ -0,0 +1,79 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $accountVote: $.Codec = _codec.$63 + +export const $priorLock: $.Codec = _codec.$541 + +export const $vote: $.Codec = _codec.$64 + +export const $voting: $.Codec = _codec.$536 + +export type AccountVote = + | t.types.pallet_democracy.vote.AccountVote.Standard + | t.types.pallet_democracy.vote.AccountVote.Split +export namespace AccountVote { + export interface Standard { + type: "Standard" + vote: t.types.pallet_democracy.vote.Vote + balance: t.types.u128 + } + export interface Split { + type: "Split" + aye: t.types.u128 + nay: t.types.u128 + } + export function Standard( + value: Omit, + ): t.types.pallet_democracy.vote.AccountVote.Standard { + return { type: "Standard", ...value } + } + export function Split( + value: Omit, + ): t.types.pallet_democracy.vote.AccountVote.Split { + return { type: "Split", ...value } + } +} + +export type PriorLock = [t.types.u32, t.types.u128] + +export function PriorLock(...value: t.types.pallet_democracy.vote.PriorLock) { + return value +} + +export type Vote = t.types.u8 + +export function Vote(value: t.types.pallet_democracy.vote.Vote) { + return value +} + +export type Voting = + | t.types.pallet_democracy.vote.Voting.Direct + | t.types.pallet_democracy.vote.Voting.Delegating +export namespace Voting { + export interface Direct { + type: "Direct" + votes: Array<[t.types.u32, t.types.pallet_democracy.vote.AccountVote]> + delegations: t.types.pallet_democracy.types.Delegations + prior: t.types.pallet_democracy.vote.PriorLock + } + export interface Delegating { + type: "Delegating" + balance: t.types.u128 + target: t.types.sp_core.crypto.AccountId32 + conviction: t.types.pallet_democracy.conviction.Conviction + delegations: t.types.pallet_democracy.types.Delegations + prior: t.types.pallet_democracy.vote.PriorLock + } + export function Direct( + value: Omit, + ): t.types.pallet_democracy.vote.Voting.Direct { + return { type: "Direct", ...value } + } + export function Delegating( + value: Omit, + ): t.types.pallet_democracy.vote.Voting.Delegating { + return { type: "Delegating", ...value } + } +} diff --git a/codegen/_output/westend/types/pallet_democracy/vote_threshold.ts b/codegen/_output/westend/types/pallet_democracy/vote_threshold.ts new file mode 100644 index 000000000..6bb511ea0 --- /dev/null +++ b/codegen/_output/westend/types/pallet_democracy/vote_threshold.ts @@ -0,0 +1,8 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $voteThreshold: $.Codec = + _codec.$62 + +export type VoteThreshold = "SuperMajorityApprove" | "SuperMajorityAgainst" | "SimpleMajority" diff --git a/codegen/_output/westend/types/pallet_election_provider_multi_phase/mod.ts b/codegen/_output/westend/types/pallet_election_provider_multi_phase/mod.ts new file mode 100644 index 000000000..2db454efe --- /dev/null +++ b/codegen/_output/westend/types/pallet_election_provider_multi_phase/mod.ts @@ -0,0 +1,104 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as signed from "./signed.ts" + +export const $electionCompute: $.Codec< + t.types.pallet_election_provider_multi_phase.ElectionCompute +> = _codec.$87 + +export const $phase: $.Codec = _codec.$600 + +export const $rawSolution: $.Codec = + _codec.$311 + +export const $readySolution: $.Codec = + _codec.$602 + +export const $roundSnapshot: $.Codec = + _codec.$603 + +export const $solutionOrSnapshotSize: $.Codec< + t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize +> = _codec.$363 + +export type ElectionCompute = "OnChain" | "Signed" | "Unsigned" | "Fallback" | "Emergency" + +export type Phase = + | t.types.pallet_election_provider_multi_phase.Phase.Off + | t.types.pallet_election_provider_multi_phase.Phase.Signed + | t.types.pallet_election_provider_multi_phase.Phase.Unsigned + | t.types.pallet_election_provider_multi_phase.Phase.Emergency +export namespace Phase { + export interface Off { + type: "Off" + } + export interface Signed { + type: "Signed" + } + export interface Unsigned { + type: "Unsigned" + value: [boolean, t.types.u32] + } + export interface Emergency { + type: "Emergency" + } + export function Off(): t.types.pallet_election_provider_multi_phase.Phase.Off { + return { type: "Off" } + } + export function Signed(): t.types.pallet_election_provider_multi_phase.Phase.Signed { + return { type: "Signed" } + } + export function Unsigned( + value: t.types.pallet_election_provider_multi_phase.Phase.Unsigned["value"], + ): t.types.pallet_election_provider_multi_phase.Phase.Unsigned { + return { type: "Unsigned", value } + } + export function Emergency(): t.types.pallet_election_provider_multi_phase.Phase.Emergency { + return { type: "Emergency" } + } +} + +export interface RawSolution { + solution: t.types.polkadot_runtime.NposCompactSolution16 + score: t.types.sp_npos_elections.ElectionScore + round: t.types.u32 +} + +export function RawSolution(value: t.types.pallet_election_provider_multi_phase.RawSolution) { + return value +} + +export interface ReadySolution { + supports: Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> + score: t.types.sp_npos_elections.ElectionScore + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute +} + +export function ReadySolution(value: t.types.pallet_election_provider_multi_phase.ReadySolution) { + return value +} + +export interface RoundSnapshot { + voters: Array< + [t.types.sp_core.crypto.AccountId32, t.types.u64, Array] + > + targets: Array +} + +export function RoundSnapshot(value: t.types.pallet_election_provider_multi_phase.RoundSnapshot) { + return value +} + +export interface SolutionOrSnapshotSize { + voters: t.Compact + targets: t.Compact +} + +export function SolutionOrSnapshotSize( + value: t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize, +) { + return value +} diff --git a/codegen/_output/westend/pallet_election_provider_multi_phase/pallet.ts b/codegen/_output/westend/types/pallet_election_provider_multi_phase/pallet.ts similarity index 65% rename from codegen/_output/westend/pallet_election_provider_multi_phase/pallet.ts rename to codegen/_output/westend/types/pallet_election_provider_multi_phase/pallet.ts index 4c2c8e6b3..f887c8e4c 100644 --- a/codegen/_output/westend/pallet_election_provider_multi_phase/pallet.ts +++ b/codegen/_output/westend/types/pallet_election_provider_multi_phase/pallet.ts @@ -1,20 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$310 +export const $call: $.Codec = _codec.$310 -export const $error: $.Codec = _codec.$611 +export const $error: $.Codec = + _codec.$611 -export const $event: $.Codec = _codec.$86 +export const $event: $.Codec = _codec.$86 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned - | t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score - | t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result - | t.pallet_election_provider_multi_phase.pallet.Call.submit - | t.pallet_election_provider_multi_phase.pallet.Call.governance_fallback + | t.types.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned + | t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score + | t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result + | t.types.pallet_election_provider_multi_phase.pallet.Call.submit + | t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback export namespace Call { /** * Submit a solution for the unsigned phase. @@ -34,8 +35,8 @@ export namespace Call { */ export interface submit_unsigned { type: "submit_unsigned" - raw_solution: t.pallet_election_provider_multi_phase.RawSolution - witness: t.pallet_election_provider_multi_phase.SolutionOrSnapshotSize + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution + witness: t.types.pallet_election_provider_multi_phase.SolutionOrSnapshotSize } /** * Set a new value for `MinimumUntrustedScore`. @@ -46,7 +47,7 @@ export namespace Call { */ export interface set_minimum_untrusted_score { type: "set_minimum_untrusted_score" - maybe_next_score: t.sp_npos_elections.ElectionScore | undefined + maybe_next_score: t.types.sp_npos_elections.ElectionScore | undefined } /** * Set a solution in the queue, to be handed out to the client of this pallet in the next @@ -60,7 +61,7 @@ export namespace Call { */ export interface set_emergency_election_result { type: "set_emergency_election_result" - supports: Array<[t.sp_core.crypto.AccountId32, t.sp_npos_elections.Support]> + supports: Array<[t.types.sp_core.crypto.AccountId32, t.types.sp_npos_elections.Support]> } /** * Submit a solution for the signed phase. @@ -75,7 +76,7 @@ export namespace Call { */ export interface submit { type: "submit" - raw_solution: t.pallet_election_provider_multi_phase.RawSolution + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution } /** * Trigger the governance fallback. @@ -85,8 +86,8 @@ export namespace Call { */ export interface governance_fallback { type: "governance_fallback" - maybe_max_voters: t.u32 | undefined - maybe_max_targets: t.u32 | undefined + maybe_max_voters: t.types.u32 | undefined + maybe_max_targets: t.types.u32 | undefined } /** * Submit a solution for the unsigned phase. @@ -105,8 +106,8 @@ export namespace Call { * No deposit or reward is associated with this submission. */ export function submit_unsigned( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.submit_unsigned { return { type: "submit_unsigned", ...value } } /** @@ -118,10 +119,10 @@ export namespace Call { */ export function set_minimum_untrusted_score( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score, "type" >, - ): t.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score { + ): t.types.pallet_election_provider_multi_phase.pallet.Call.set_minimum_untrusted_score { return { type: "set_minimum_untrusted_score", ...value } } /** @@ -136,10 +137,10 @@ export namespace Call { */ export function set_emergency_election_result( value: Omit< - t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, + t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result, "type" >, - ): t.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result { + ): t.types.pallet_election_provider_multi_phase.pallet.Call.set_emergency_election_result { return { type: "set_emergency_election_result", ...value } } /** @@ -154,8 +155,8 @@ export namespace Call { * might be rewarded, slashed, or get all or a part of the deposit back. */ export function submit( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.submit { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.submit { return { type: "submit", ...value } } /** @@ -165,8 +166,11 @@ export namespace Call { * calling [`Call::set_emergency_election_result`]. */ export function governance_fallback( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Call.governance_fallback { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Call.governance_fallback { return { type: "governance_fallback", ...value } } } @@ -188,13 +192,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_election_provider_multi_phase.pallet.Event.SolutionStored - | t.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized - | t.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed - | t.pallet_election_provider_multi_phase.pallet.Event.Rewarded - | t.pallet_election_provider_multi_phase.pallet.Event.Slashed - | t.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted - | t.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted + | t.types.pallet_election_provider_multi_phase.pallet.Event.SolutionStored + | t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized + | t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed + | t.types.pallet_election_provider_multi_phase.pallet.Event.Rewarded + | t.types.pallet_election_provider_multi_phase.pallet.Event.Slashed + | t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted + | t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted export namespace Event { /** * A solution was stored with the given compute. @@ -206,14 +210,14 @@ export namespace Event { */ export interface SolutionStored { type: "SolutionStored" - compute: t.pallet_election_provider_multi_phase.ElectionCompute + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute prev_ejected: boolean } /** The election has been finalized, with the given computation and score. */ export interface ElectionFinalized { type: "ElectionFinalized" - compute: t.pallet_election_provider_multi_phase.ElectionCompute - score: t.sp_npos_elections.ElectionScore + compute: t.types.pallet_election_provider_multi_phase.ElectionCompute + score: t.types.sp_npos_elections.ElectionScore } /** * An election failed. @@ -226,24 +230,24 @@ export namespace Event { /** An account has been rewarded for their signed submission being finalized. */ export interface Rewarded { type: "Rewarded" - account: t.sp_core.crypto.AccountId32 - value: t.u128 + account: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 } /** An account has been slashed for submitting an invalid signed submission. */ export interface Slashed { type: "Slashed" - account: t.sp_core.crypto.AccountId32 - value: t.u128 + account: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 } /** The signed phase of the given round has started. */ export interface SignedPhaseStarted { type: "SignedPhaseStarted" - round: t.u32 + round: t.types.u32 } /** The unsigned phase of the given round has started. */ export interface UnsignedPhaseStarted { type: "UnsignedPhaseStarted" - round: t.u32 + round: t.types.u32 } /** * A solution was stored with the given compute. @@ -254,14 +258,17 @@ export namespace Event { * The `bool` is `true` when a previous solution was ejected to make room for this one. */ export function SolutionStored( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.SolutionStored { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.SolutionStored { return { type: "SolutionStored", ...value } } /** The election has been finalized, with the given computation and score. */ export function ElectionFinalized( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFinalized { return { type: "ElectionFinalized", ...value } } /** @@ -269,31 +276,37 @@ export namespace Event { * * Not much can be said about which computes failed in the process. */ - export function ElectionFailed(): t.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed { + export function ElectionFailed(): t.types.pallet_election_provider_multi_phase.pallet.Event.ElectionFailed { return { type: "ElectionFailed" } } /** An account has been rewarded for their signed submission being finalized. */ export function Rewarded( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.Rewarded { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.Rewarded { return { type: "Rewarded", ...value } } /** An account has been slashed for submitting an invalid signed submission. */ export function Slashed( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** The signed phase of the given round has started. */ export function SignedPhaseStarted( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.SignedPhaseStarted { return { type: "SignedPhaseStarted", ...value } } /** The unsigned phase of the given round has started. */ export function UnsignedPhaseStarted( - value: Omit, - ): t.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted { + value: Omit< + t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted, + "type" + >, + ): t.types.pallet_election_provider_multi_phase.pallet.Event.UnsignedPhaseStarted { return { type: "UnsignedPhaseStarted", ...value } } } diff --git a/codegen/_output/westend/types/pallet_election_provider_multi_phase/signed.ts b/codegen/_output/westend/types/pallet_election_provider_multi_phase/signed.ts new file mode 100644 index 000000000..6fbed6f87 --- /dev/null +++ b/codegen/_output/westend/types/pallet_election_provider_multi_phase/signed.ts @@ -0,0 +1,20 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $signedSubmission: $.Codec< + t.types.pallet_election_provider_multi_phase.signed.SignedSubmission +> = _codec.$610 + +export interface SignedSubmission { + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + raw_solution: t.types.pallet_election_provider_multi_phase.RawSolution + call_fee: t.types.u128 +} + +export function SignedSubmission( + value: t.types.pallet_election_provider_multi_phase.signed.SignedSubmission, +) { + return value +} diff --git a/codegen/_output/westend/types/pallet_elections_phragmen/mod.ts b/codegen/_output/westend/types/pallet_elections_phragmen/mod.ts new file mode 100644 index 000000000..2dbfe20df --- /dev/null +++ b/codegen/_output/westend/types/pallet_elections_phragmen/mod.ts @@ -0,0 +1,59 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $renouncing: $.Codec = _codec.$242 + +export const $seatHolder: $.Codec = _codec.$551 + +export const $voter: $.Codec = _codec.$552 + +export type Renouncing = + | t.types.pallet_elections_phragmen.Renouncing.Member + | t.types.pallet_elections_phragmen.Renouncing.RunnerUp + | t.types.pallet_elections_phragmen.Renouncing.Candidate +export namespace Renouncing { + export interface Member { + type: "Member" + } + export interface RunnerUp { + type: "RunnerUp" + } + export interface Candidate { + type: "Candidate" + value: t.Compact + } + export function Member(): t.types.pallet_elections_phragmen.Renouncing.Member { + return { type: "Member" } + } + export function RunnerUp(): t.types.pallet_elections_phragmen.Renouncing.RunnerUp { + return { type: "RunnerUp" } + } + export function Candidate( + value: t.types.pallet_elections_phragmen.Renouncing.Candidate["value"], + ): t.types.pallet_elections_phragmen.Renouncing.Candidate { + return { type: "Candidate", value } + } +} + +export interface SeatHolder { + who: t.types.sp_core.crypto.AccountId32 + stake: t.types.u128 + deposit: t.types.u128 +} + +export function SeatHolder(value: t.types.pallet_elections_phragmen.SeatHolder) { + return value +} + +export interface Voter { + votes: Array + stake: t.types.u128 + deposit: t.types.u128 +} + +export function Voter(value: t.types.pallet_elections_phragmen.Voter) { + return value +} diff --git a/codegen/_output/kusama/pallet_elections_phragmen/pallet.ts b/codegen/_output/westend/types/pallet_elections_phragmen/pallet.ts similarity index 77% rename from codegen/_output/kusama/pallet_elections_phragmen/pallet.ts rename to codegen/_output/westend/types/pallet_elections_phragmen/pallet.ts index 4867e13f0..f8d119b2b 100644 --- a/codegen/_output/kusama/pallet_elections_phragmen/pallet.ts +++ b/codegen/_output/westend/types/pallet_elections_phragmen/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$241 +export const $call: $.Codec = _codec.$241 -export const $error: $.Codec = _codec.$553 +export const $error: $.Codec = _codec.$553 -export const $event: $.Codec = _codec.$67 +export const $event: $.Codec = _codec.$67 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_elections_phragmen.pallet.Call.vote - | t.pallet_elections_phragmen.pallet.Call.remove_voter - | t.pallet_elections_phragmen.pallet.Call.submit_candidacy - | t.pallet_elections_phragmen.pallet.Call.renounce_candidacy - | t.pallet_elections_phragmen.pallet.Call.remove_member - | t.pallet_elections_phragmen.pallet.Call.clean_defunct_voters + | t.types.pallet_elections_phragmen.pallet.Call.vote + | t.types.pallet_elections_phragmen.pallet.Call.remove_voter + | t.types.pallet_elections_phragmen.pallet.Call.submit_candidacy + | t.types.pallet_elections_phragmen.pallet.Call.renounce_candidacy + | t.types.pallet_elections_phragmen.pallet.Call.remove_member + | t.types.pallet_elections_phragmen.pallet.Call.clean_defunct_voters export namespace Call { /** * Vote for a set of candidates for the upcoming round of election. This can be called to @@ -44,8 +44,8 @@ export namespace Call { */ export interface vote { type: "vote" - votes: Array - value: t.Compact + votes: Array + value: t.Compact } /** * Remove `origin` as a voter. @@ -76,7 +76,7 @@ export namespace Call { */ export interface submit_candidacy { type: "submit_candidacy" - candidate_count: t.Compact + candidate_count: t.Compact } /** * Renounce one's intention to be a candidate for the next election round. 3 potential @@ -100,7 +100,7 @@ export namespace Call { */ export interface renounce_candidacy { type: "renounce_candidacy" - renouncing: t.pallet_elections_phragmen.Renouncing + renouncing: t.types.pallet_elections_phragmen.Renouncing } /** * Remove a particular member from the set. This is effective immediately and the bond of @@ -124,7 +124,7 @@ export namespace Call { */ export interface remove_member { type: "remove_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress slash_bond: boolean rerun_election: boolean } @@ -142,8 +142,8 @@ export namespace Call { */ export interface clean_defunct_voters { type: "clean_defunct_voters" - num_voters: t.u32 - num_defunct: t.u32 + num_voters: t.types.u32 + num_defunct: t.types.u32 } /** * Vote for a set of candidates for the upcoming round of election. This can be called to @@ -171,8 +171,8 @@ export namespace Call { * # */ export function vote( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.vote { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.vote { return { type: "vote", ...value } } /** @@ -182,7 +182,7 @@ export namespace Call { * * The dispatch origin of this call must be signed and be a voter. */ - export function remove_voter(): t.pallet_elections_phragmen.pallet.Call.remove_voter { + export function remove_voter(): t.types.pallet_elections_phragmen.pallet.Call.remove_voter { return { type: "remove_voter" } } /** @@ -203,8 +203,8 @@ export namespace Call { * # */ export function submit_candidacy( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.submit_candidacy { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.submit_candidacy { return { type: "submit_candidacy", ...value } } /** @@ -228,8 +228,8 @@ export namespace Call { * # */ export function renounce_candidacy( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.renounce_candidacy { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.renounce_candidacy { return { type: "renounce_candidacy", ...value } } /** @@ -253,8 +253,8 @@ export namespace Call { * # */ export function remove_member( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.remove_member { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.remove_member { return { type: "remove_member", ...value } } /** @@ -270,8 +270,8 @@ export namespace Call { * # */ export function clean_defunct_voters( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Call.clean_defunct_voters { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Call.clean_defunct_voters { return { type: "clean_defunct_voters", ...value } } } @@ -298,13 +298,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_elections_phragmen.pallet.Event.NewTerm - | t.pallet_elections_phragmen.pallet.Event.EmptyTerm - | t.pallet_elections_phragmen.pallet.Event.ElectionError - | t.pallet_elections_phragmen.pallet.Event.MemberKicked - | t.pallet_elections_phragmen.pallet.Event.Renounced - | t.pallet_elections_phragmen.pallet.Event.CandidateSlashed - | t.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed + | t.types.pallet_elections_phragmen.pallet.Event.NewTerm + | t.types.pallet_elections_phragmen.pallet.Event.EmptyTerm + | t.types.pallet_elections_phragmen.pallet.Event.ElectionError + | t.types.pallet_elections_phragmen.pallet.Event.MemberKicked + | t.types.pallet_elections_phragmen.pallet.Event.Renounced + | t.types.pallet_elections_phragmen.pallet.Event.CandidateSlashed + | t.types.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed export namespace Event { /** * A new term with new_members. This indicates that enough candidates existed to run @@ -315,7 +315,7 @@ export namespace Event { */ export interface NewTerm { type: "NewTerm" - new_members: Array<[t.sp_core.crypto.AccountId32, t.u128]> + new_members: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> } /** * No (or not enough) candidates existed for this round. This is different from @@ -334,12 +334,12 @@ export namespace Event { */ export interface MemberKicked { type: "MemberKicked" - member: t.sp_core.crypto.AccountId32 + member: t.types.sp_core.crypto.AccountId32 } /** Someone has renounced their candidacy. */ export interface Renounced { type: "Renounced" - candidate: t.sp_core.crypto.AccountId32 + candidate: t.types.sp_core.crypto.AccountId32 } /** * A candidate was slashed by amount due to failing to obtain a seat as member or @@ -349,14 +349,14 @@ export namespace Event { */ export interface CandidateSlashed { type: "CandidateSlashed" - candidate: t.sp_core.crypto.AccountId32 - amount: t.u128 + candidate: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A seat holder was slashed by amount by being forcefully removed from the set. */ export interface SeatHolderSlashed { type: "SeatHolderSlashed" - seat_holder: t.sp_core.crypto.AccountId32 - amount: t.u128 + seat_holder: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * A new term with new_members. This indicates that enough candidates existed to run @@ -366,19 +366,19 @@ export namespace Event { * begin with. */ export function NewTerm( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.NewTerm { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.NewTerm { return { type: "NewTerm", ...value } } /** * No (or not enough) candidates existed for this round. This is different from * `NewTerm(\[\])`. See the description of `NewTerm`. */ - export function EmptyTerm(): t.pallet_elections_phragmen.pallet.Event.EmptyTerm { + export function EmptyTerm(): t.types.pallet_elections_phragmen.pallet.Event.EmptyTerm { return { type: "EmptyTerm" } } /** Internal error happened while trying to perform election. */ - export function ElectionError(): t.pallet_elections_phragmen.pallet.Event.ElectionError { + export function ElectionError(): t.types.pallet_elections_phragmen.pallet.Event.ElectionError { return { type: "ElectionError" } } /** @@ -386,14 +386,14 @@ export namespace Event { * `EmptyTerm`. */ export function MemberKicked( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.MemberKicked { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.MemberKicked { return { type: "MemberKicked", ...value } } /** Someone has renounced their candidacy. */ export function Renounced( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.Renounced { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.Renounced { return { type: "Renounced", ...value } } /** @@ -403,14 +403,14 @@ export namespace Event { * Note that old members and runners-up are also candidates. */ export function CandidateSlashed( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.CandidateSlashed { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.CandidateSlashed { return { type: "CandidateSlashed", ...value } } /** A seat holder was slashed by amount by being forcefully removed from the set. */ export function SeatHolderSlashed( - value: Omit, - ): t.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed { + value: Omit, + ): t.types.pallet_elections_phragmen.pallet.Event.SeatHolderSlashed { return { type: "SeatHolderSlashed", ...value } } } diff --git a/codegen/_output/westend/pallet_fast_unstake/mod.ts b/codegen/_output/westend/types/pallet_fast_unstake/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_fast_unstake/mod.ts rename to codegen/_output/westend/types/pallet_fast_unstake/mod.ts diff --git a/codegen/_output/polkadot/pallet_fast_unstake/pallet.ts b/codegen/_output/westend/types/pallet_fast_unstake/pallet.ts similarity index 69% rename from codegen/_output/polkadot/pallet_fast_unstake/pallet.ts rename to codegen/_output/westend/types/pallet_fast_unstake/pallet.ts index f71b89fd1..593f22acc 100644 --- a/codegen/_output/polkadot/pallet_fast_unstake/pallet.ts +++ b/codegen/_output/westend/types/pallet_fast_unstake/pallet.ts @@ -1,20 +1,20 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$374 +export const $call: $.Codec = _codec.$374 -export const $error: $.Codec = _codec.$637 +export const $error: $.Codec = _codec.$637 -export const $event: $.Codec = _codec.$93 +export const $event: $.Codec = _codec.$93 -export const $maxChecking: $.Codec = _codec.$635 +export const $maxChecking: $.Codec = _codec.$635 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_fast_unstake.pallet.Call.register_fast_unstake - | t.pallet_fast_unstake.pallet.Call.deregister - | t.pallet_fast_unstake.pallet.Call.control + | t.types.pallet_fast_unstake.pallet.Call.register_fast_unstake + | t.types.pallet_fast_unstake.pallet.Call.deregister + | t.types.pallet_fast_unstake.pallet.Call.control export namespace Call { /** * Register oneself for fast-unstake. @@ -58,7 +58,7 @@ export namespace Call { */ export interface control { type: "control" - unchecked_eras_to_check: t.u32 + unchecked_eras_to_check: t.types.u32 } /** * Register oneself for fast-unstake. @@ -80,7 +80,7 @@ export namespace Call { * the normal staking system, but they lose part of their unbonding chunks due to consuming * the chain's resources. */ - export function register_fast_unstake(): t.pallet_fast_unstake.pallet.Call.register_fast_unstake { + export function register_fast_unstake(): t.types.pallet_fast_unstake.pallet.Call.register_fast_unstake { return { type: "register_fast_unstake" } } /** @@ -92,7 +92,7 @@ export namespace Call { * calling `register_fast_unstake`. This should probably be followed by a call to * `Staking::rebond`. */ - export function deregister(): t.pallet_fast_unstake.pallet.Call.deregister { + export function deregister(): t.types.pallet_fast_unstake.pallet.Call.deregister { return { type: "deregister" } } /** @@ -101,8 +101,8 @@ export namespace Call { * Dispatch origin must be signed by the [`Config::ControlOrigin`]. */ export function control( - value: Omit, - ): t.pallet_fast_unstake.pallet.Call.control { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Call.control { return { type: "control", ...value } } } @@ -118,29 +118,29 @@ export type Error = /** The events of this pallet. */ export type Event = - | t.pallet_fast_unstake.pallet.Event.Unstaked - | t.pallet_fast_unstake.pallet.Event.Slashed - | t.pallet_fast_unstake.pallet.Event.Checking - | t.pallet_fast_unstake.pallet.Event.Errored - | t.pallet_fast_unstake.pallet.Event.InternalError + | t.types.pallet_fast_unstake.pallet.Event.Unstaked + | t.types.pallet_fast_unstake.pallet.Event.Slashed + | t.types.pallet_fast_unstake.pallet.Event.Checking + | t.types.pallet_fast_unstake.pallet.Event.Errored + | t.types.pallet_fast_unstake.pallet.Event.InternalError export namespace Event { /** A staker was unstaked. */ export interface Unstaked { type: "Unstaked" - stash: t.sp_core.crypto.AccountId32 - result: null | C.ChainError + stash: t.types.sp_core.crypto.AccountId32 + result: null | C.ChainError } /** A staker was slashed for requesting fast-unstake whilst being exposed. */ export interface Slashed { type: "Slashed" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A staker was partially checked for the given eras, but the process did not finish. */ export interface Checking { type: "Checking" - stash: t.sp_core.crypto.AccountId32 - eras: Array + stash: t.types.sp_core.crypto.AccountId32 + eras: Array } /** * Some internal error happened while migrating stash. They are removed as head as a @@ -148,7 +148,7 @@ export namespace Event { */ export interface Errored { type: "Errored" - stash: t.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** An internal error happened. Operations will be paused now. */ export interface InternalError { @@ -156,20 +156,20 @@ export namespace Event { } /** A staker was unstaked. */ export function Unstaked( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Unstaked { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Unstaked { return { type: "Unstaked", ...value } } /** A staker was slashed for requesting fast-unstake whilst being exposed. */ export function Slashed( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** A staker was partially checked for the given eras, but the process did not finish. */ export function Checking( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Checking { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Checking { return { type: "Checking", ...value } } /** @@ -177,12 +177,12 @@ export namespace Event { * consequence. */ export function Errored( - value: Omit, - ): t.pallet_fast_unstake.pallet.Event.Errored { + value: Omit, + ): t.types.pallet_fast_unstake.pallet.Event.Errored { return { type: "Errored", ...value } } /** An internal error happened. Operations will be paused now. */ - export function InternalError(): t.pallet_fast_unstake.pallet.Event.InternalError { + export function InternalError(): t.types.pallet_fast_unstake.pallet.Event.InternalError { return { type: "InternalError" } } } diff --git a/codegen/_output/westend/types/pallet_fast_unstake/types.ts b/codegen/_output/westend/types/pallet_fast_unstake/types.ts new file mode 100644 index 000000000..e29dae328 --- /dev/null +++ b/codegen/_output/westend/types/pallet_fast_unstake/types.ts @@ -0,0 +1,16 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $unstakeRequest: $.Codec = + _codec.$634 + +export interface UnstakeRequest { + stash: t.types.sp_core.crypto.AccountId32 + checked: Array + deposit: t.types.u128 +} + +export function UnstakeRequest(value: t.types.pallet_fast_unstake.types.UnstakeRequest) { + return value +} diff --git a/codegen/_output/westend/types/pallet_grandpa/mod.ts b/codegen/_output/westend/types/pallet_grandpa/mod.ts new file mode 100644 index 000000000..699b2d179 --- /dev/null +++ b/codegen/_output/westend/types/pallet_grandpa/mod.ts @@ -0,0 +1,60 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $storedPendingChange: $.Codec = _codec.$517 + +export const $storedState: $.Codec = _codec.$516 + +export interface StoredPendingChange { + scheduled_at: t.types.u32 + delay: t.types.u32 + next_authorities: Array<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> + forced: t.types.u32 | undefined +} + +export function StoredPendingChange(value: t.types.pallet_grandpa.StoredPendingChange) { + return value +} + +export type StoredState = + | t.types.pallet_grandpa.StoredState.Live + | t.types.pallet_grandpa.StoredState.PendingPause + | t.types.pallet_grandpa.StoredState.Paused + | t.types.pallet_grandpa.StoredState.PendingResume +export namespace StoredState { + export interface Live { + type: "Live" + } + export interface PendingPause { + type: "PendingPause" + scheduled_at: t.types.u32 + delay: t.types.u32 + } + export interface Paused { + type: "Paused" + } + export interface PendingResume { + type: "PendingResume" + scheduled_at: t.types.u32 + delay: t.types.u32 + } + export function Live(): t.types.pallet_grandpa.StoredState.Live { + return { type: "Live" } + } + export function PendingPause( + value: Omit, + ): t.types.pallet_grandpa.StoredState.PendingPause { + return { type: "PendingPause", ...value } + } + export function Paused(): t.types.pallet_grandpa.StoredState.Paused { + return { type: "Paused" } + } + export function PendingResume( + value: Omit, + ): t.types.pallet_grandpa.StoredState.PendingResume { + return { type: "PendingResume", ...value } + } +} diff --git a/codegen/_output/westend/pallet_grandpa/pallet.ts b/codegen/_output/westend/types/pallet_grandpa/pallet.ts similarity index 72% rename from codegen/_output/westend/pallet_grandpa/pallet.ts rename to codegen/_output/westend/types/pallet_grandpa/pallet.ts index cfe60ddee..922a4100f 100644 --- a/codegen/_output/westend/pallet_grandpa/pallet.ts +++ b/codegen/_output/westend/types/pallet_grandpa/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$216 +export const $call: $.Codec = _codec.$216 -export const $error: $.Codec = _codec.$519 +export const $error: $.Codec = _codec.$519 -export const $event: $.Codec = _codec.$47 +export const $event: $.Codec = _codec.$47 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_grandpa.pallet.Call.report_equivocation - | t.pallet_grandpa.pallet.Call.report_equivocation_unsigned - | t.pallet_grandpa.pallet.Call.note_stalled + | t.types.pallet_grandpa.pallet.Call.report_equivocation + | t.types.pallet_grandpa.pallet.Call.report_equivocation_unsigned + | t.types.pallet_grandpa.pallet.Call.note_stalled export namespace Call { /** * Report voter equivocation/misbehavior. This method will verify the @@ -22,8 +22,8 @@ export namespace Call { */ export interface report_equivocation { type: "report_equivocation" - equivocation_proof: t.sp_finality_grandpa.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_finality_grandpa.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Report voter equivocation/misbehavior. This method will verify the @@ -38,8 +38,8 @@ export namespace Call { */ export interface report_equivocation_unsigned { type: "report_equivocation_unsigned" - equivocation_proof: t.sp_finality_grandpa.EquivocationProof - key_owner_proof: t.sp_session.MembershipProof + equivocation_proof: t.types.sp_finality_grandpa.EquivocationProof + key_owner_proof: t.types.sp_session.MembershipProof } /** * Note that the current authority set of the GRANDPA finality gadget has stalled. @@ -57,8 +57,8 @@ export namespace Call { */ export interface note_stalled { type: "note_stalled" - delay: t.u32 - best_finalized_block_number: t.u32 + delay: t.types.u32 + best_finalized_block_number: t.types.u32 } /** * Report voter equivocation/misbehavior. This method will verify the @@ -67,8 +67,8 @@ export namespace Call { * will be reported. */ export function report_equivocation( - value: Omit, - ): t.pallet_grandpa.pallet.Call.report_equivocation { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.report_equivocation { return { type: "report_equivocation", ...value } } /** @@ -83,8 +83,8 @@ export namespace Call { * reporter. */ export function report_equivocation_unsigned( - value: Omit, - ): t.pallet_grandpa.pallet.Call.report_equivocation_unsigned { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.report_equivocation_unsigned { return { type: "report_equivocation_unsigned", ...value } } /** @@ -102,8 +102,8 @@ export namespace Call { * Only callable by root. */ export function note_stalled( - value: Omit, - ): t.pallet_grandpa.pallet.Call.note_stalled { + value: Omit, + ): t.types.pallet_grandpa.pallet.Call.note_stalled { return { type: "note_stalled", ...value } } } @@ -120,14 +120,14 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_grandpa.pallet.Event.NewAuthorities - | t.pallet_grandpa.pallet.Event.Paused - | t.pallet_grandpa.pallet.Event.Resumed + | t.types.pallet_grandpa.pallet.Event.NewAuthorities + | t.types.pallet_grandpa.pallet.Event.Paused + | t.types.pallet_grandpa.pallet.Event.Resumed export namespace Event { /** New authority set has been applied. */ export interface NewAuthorities { type: "NewAuthorities" - authority_set: Array<[t.sp_finality_grandpa.app.Public, t.u64]> + authority_set: Array<[t.types.sp_finality_grandpa.app.Public, t.types.u64]> } /** Current authority set has been paused. */ export interface Paused { @@ -139,16 +139,16 @@ export namespace Event { } /** New authority set has been applied. */ export function NewAuthorities( - value: Omit, - ): t.pallet_grandpa.pallet.Event.NewAuthorities { + value: Omit, + ): t.types.pallet_grandpa.pallet.Event.NewAuthorities { return { type: "NewAuthorities", ...value } } /** Current authority set has been paused. */ - export function Paused(): t.pallet_grandpa.pallet.Event.Paused { + export function Paused(): t.types.pallet_grandpa.pallet.Event.Paused { return { type: "Paused" } } /** Current authority set has been resumed. */ - export function Resumed(): t.pallet_grandpa.pallet.Event.Resumed { + export function Resumed(): t.types.pallet_grandpa.pallet.Event.Resumed { return { type: "Resumed" } } } diff --git a/codegen/_output/westend/pallet_identity/mod.ts b/codegen/_output/westend/types/pallet_identity/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_identity/mod.ts rename to codegen/_output/westend/types/pallet_identity/mod.ts diff --git a/codegen/_output/westend/pallet_identity/pallet.ts b/codegen/_output/westend/types/pallet_identity/pallet.ts similarity index 77% rename from codegen/_output/westend/pallet_identity/pallet.ts rename to codegen/_output/westend/types/pallet_identity/pallet.ts index 98461520b..4dea704fd 100644 --- a/codegen/_output/westend/pallet_identity/pallet.ts +++ b/codegen/_output/westend/types/pallet_identity/pallet.ts @@ -1,30 +1,30 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$263 +export const $call: $.Codec = _codec.$263 -export const $error: $.Codec = _codec.$578 +export const $error: $.Codec = _codec.$578 -export const $event: $.Codec = _codec.$77 +export const $event: $.Codec = _codec.$77 /** Identity pallet declaration. */ export type Call = - | t.pallet_identity.pallet.Call.add_registrar - | t.pallet_identity.pallet.Call.set_identity - | t.pallet_identity.pallet.Call.set_subs - | t.pallet_identity.pallet.Call.clear_identity - | t.pallet_identity.pallet.Call.request_judgement - | t.pallet_identity.pallet.Call.cancel_request - | t.pallet_identity.pallet.Call.set_fee - | t.pallet_identity.pallet.Call.set_account_id - | t.pallet_identity.pallet.Call.set_fields - | t.pallet_identity.pallet.Call.provide_judgement - | t.pallet_identity.pallet.Call.kill_identity - | t.pallet_identity.pallet.Call.add_sub - | t.pallet_identity.pallet.Call.rename_sub - | t.pallet_identity.pallet.Call.remove_sub - | t.pallet_identity.pallet.Call.quit_sub + | t.types.pallet_identity.pallet.Call.add_registrar + | t.types.pallet_identity.pallet.Call.set_identity + | t.types.pallet_identity.pallet.Call.set_subs + | t.types.pallet_identity.pallet.Call.clear_identity + | t.types.pallet_identity.pallet.Call.request_judgement + | t.types.pallet_identity.pallet.Call.cancel_request + | t.types.pallet_identity.pallet.Call.set_fee + | t.types.pallet_identity.pallet.Call.set_account_id + | t.types.pallet_identity.pallet.Call.set_fields + | t.types.pallet_identity.pallet.Call.provide_judgement + | t.types.pallet_identity.pallet.Call.kill_identity + | t.types.pallet_identity.pallet.Call.add_sub + | t.types.pallet_identity.pallet.Call.rename_sub + | t.types.pallet_identity.pallet.Call.remove_sub + | t.types.pallet_identity.pallet.Call.quit_sub export namespace Call { /** * Add a registrar to the system. @@ -43,7 +43,7 @@ export namespace Call { */ export interface add_registrar { type: "add_registrar" - account: t.sp_runtime.multiaddress.MultiAddress + account: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set an account's identity information and reserve the appropriate deposit. @@ -68,7 +68,7 @@ export namespace Call { */ export interface set_identity { type: "set_identity" - info: t.pallet_identity.types.IdentityInfo + info: t.types.pallet_identity.types.IdentityInfo } /** * Set the sub-accounts of the sender. @@ -95,7 +95,7 @@ export namespace Call { */ export interface set_subs { type: "set_subs" - subs: Array<[t.sp_core.crypto.AccountId32, t.pallet_identity.types.Data]> + subs: Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_identity.types.Data]> } /** * Clear an account's identity info and all sub-accounts and return all deposits. @@ -147,8 +147,8 @@ export namespace Call { */ export interface request_judgement { type: "request_judgement" - reg_index: t.Compact - max_fee: t.Compact + reg_index: t.Compact + max_fee: t.Compact } /** * Cancel a previous request. @@ -171,7 +171,7 @@ export namespace Call { */ export interface cancel_request { type: "cancel_request" - reg_index: t.u32 + reg_index: t.types.u32 } /** * Set the fee required for a judgement to be requested from a registrar. @@ -190,8 +190,8 @@ export namespace Call { */ export interface set_fee { type: "set_fee" - index: t.Compact - fee: t.Compact + index: t.Compact + fee: t.Compact } /** * Change the account associated with a registrar. @@ -210,8 +210,8 @@ export namespace Call { */ export interface set_account_id { type: "set_account_id" - index: t.Compact - new: t.sp_runtime.multiaddress.MultiAddress + index: t.Compact + new: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set the field information for a registrar. @@ -230,8 +230,8 @@ export namespace Call { */ export interface set_fields { type: "set_fields" - index: t.Compact - fields: t.u64 + index: t.Compact + fields: t.types.u64 } /** * Provide a judgement for an account's identity. @@ -257,10 +257,10 @@ export namespace Call { */ export interface provide_judgement { type: "provide_judgement" - reg_index: t.Compact - target: t.sp_runtime.multiaddress.MultiAddress - judgement: t.pallet_identity.types.Judgement - identity: t.primitive_types.H256 + reg_index: t.Compact + target: t.types.sp_runtime.multiaddress.MultiAddress + judgement: t.types.pallet_identity.types.Judgement + identity: t.types.primitive_types.H256 } /** * Remove an account's identity and sub-account information and slash the deposits. @@ -285,7 +285,7 @@ export namespace Call { */ export interface kill_identity { type: "kill_identity" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Add the given account to the sender's subs. @@ -298,8 +298,8 @@ export namespace Call { */ export interface add_sub { type: "add_sub" - sub: t.sp_runtime.multiaddress.MultiAddress - data: t.pallet_identity.types.Data + sub: t.types.sp_runtime.multiaddress.MultiAddress + data: t.types.pallet_identity.types.Data } /** * Alter the associated name of the given sub-account. @@ -309,8 +309,8 @@ export namespace Call { */ export interface rename_sub { type: "rename_sub" - sub: t.sp_runtime.multiaddress.MultiAddress - data: t.pallet_identity.types.Data + sub: t.types.sp_runtime.multiaddress.MultiAddress + data: t.types.pallet_identity.types.Data } /** * Remove the given account from the sender's subs. @@ -323,7 +323,7 @@ export namespace Call { */ export interface remove_sub { type: "remove_sub" - sub: t.sp_runtime.multiaddress.MultiAddress + sub: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove the sender as a sub-account. @@ -356,8 +356,8 @@ export namespace Call { * # */ export function add_registrar( - value: Omit, - ): t.pallet_identity.pallet.Call.add_registrar { + value: Omit, + ): t.types.pallet_identity.pallet.Call.add_registrar { return { type: "add_registrar", ...value } } /** @@ -382,8 +382,8 @@ export namespace Call { * # */ export function set_identity( - value: Omit, - ): t.pallet_identity.pallet.Call.set_identity { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_identity { return { type: "set_identity", ...value } } /** @@ -410,8 +410,8 @@ export namespace Call { * # */ export function set_subs( - value: Omit, - ): t.pallet_identity.pallet.Call.set_subs { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_subs { return { type: "set_subs", ...value } } /** @@ -434,7 +434,7 @@ export namespace Call { * - One event. * # */ - export function clear_identity(): t.pallet_identity.pallet.Call.clear_identity { + export function clear_identity(): t.types.pallet_identity.pallet.Call.clear_identity { return { type: "clear_identity" } } /** @@ -463,8 +463,8 @@ export namespace Call { * # */ export function request_judgement( - value: Omit, - ): t.pallet_identity.pallet.Call.request_judgement { + value: Omit, + ): t.types.pallet_identity.pallet.Call.request_judgement { return { type: "request_judgement", ...value } } /** @@ -487,8 +487,8 @@ export namespace Call { * # */ export function cancel_request( - value: Omit, - ): t.pallet_identity.pallet.Call.cancel_request { + value: Omit, + ): t.types.pallet_identity.pallet.Call.cancel_request { return { type: "cancel_request", ...value } } /** @@ -507,8 +507,8 @@ export namespace Call { * # */ export function set_fee( - value: Omit, - ): t.pallet_identity.pallet.Call.set_fee { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_fee { return { type: "set_fee", ...value } } /** @@ -527,8 +527,8 @@ export namespace Call { * # */ export function set_account_id( - value: Omit, - ): t.pallet_identity.pallet.Call.set_account_id { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_account_id { return { type: "set_account_id", ...value } } /** @@ -547,8 +547,8 @@ export namespace Call { * # */ export function set_fields( - value: Omit, - ): t.pallet_identity.pallet.Call.set_fields { + value: Omit, + ): t.types.pallet_identity.pallet.Call.set_fields { return { type: "set_fields", ...value } } /** @@ -574,8 +574,8 @@ export namespace Call { * # */ export function provide_judgement( - value: Omit, - ): t.pallet_identity.pallet.Call.provide_judgement { + value: Omit, + ): t.types.pallet_identity.pallet.Call.provide_judgement { return { type: "provide_judgement", ...value } } /** @@ -600,8 +600,8 @@ export namespace Call { * # */ export function kill_identity( - value: Omit, - ): t.pallet_identity.pallet.Call.kill_identity { + value: Omit, + ): t.types.pallet_identity.pallet.Call.kill_identity { return { type: "kill_identity", ...value } } /** @@ -614,8 +614,8 @@ export namespace Call { * sub identity of `sub`. */ export function add_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.add_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.add_sub { return { type: "add_sub", ...value } } /** @@ -625,8 +625,8 @@ export namespace Call { * sub identity of `sub`. */ export function rename_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.rename_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.rename_sub { return { type: "rename_sub", ...value } } /** @@ -639,8 +639,8 @@ export namespace Call { * sub identity of `sub`. */ export function remove_sub( - value: Omit, - ): t.pallet_identity.pallet.Call.remove_sub { + value: Omit, + ): t.types.pallet_identity.pallet.Call.remove_sub { return { type: "remove_sub", ...value } } /** @@ -655,7 +655,7 @@ export namespace Call { * NOTE: This should not normally be used, but is provided in the case that the non- * controller of an account is maliciously registered as a sub-account. */ - export function quit_sub(): t.pallet_identity.pallet.Call.quit_sub { + export function quit_sub(): t.types.pallet_identity.pallet.Call.quit_sub { return { type: "quit_sub" } } } @@ -682,70 +682,70 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_identity.pallet.Event.IdentitySet - | t.pallet_identity.pallet.Event.IdentityCleared - | t.pallet_identity.pallet.Event.IdentityKilled - | t.pallet_identity.pallet.Event.JudgementRequested - | t.pallet_identity.pallet.Event.JudgementUnrequested - | t.pallet_identity.pallet.Event.JudgementGiven - | t.pallet_identity.pallet.Event.RegistrarAdded - | t.pallet_identity.pallet.Event.SubIdentityAdded - | t.pallet_identity.pallet.Event.SubIdentityRemoved - | t.pallet_identity.pallet.Event.SubIdentityRevoked + | t.types.pallet_identity.pallet.Event.IdentitySet + | t.types.pallet_identity.pallet.Event.IdentityCleared + | t.types.pallet_identity.pallet.Event.IdentityKilled + | t.types.pallet_identity.pallet.Event.JudgementRequested + | t.types.pallet_identity.pallet.Event.JudgementUnrequested + | t.types.pallet_identity.pallet.Event.JudgementGiven + | t.types.pallet_identity.pallet.Event.RegistrarAdded + | t.types.pallet_identity.pallet.Event.SubIdentityAdded + | t.types.pallet_identity.pallet.Event.SubIdentityRemoved + | t.types.pallet_identity.pallet.Event.SubIdentityRevoked export namespace Event { /** A name was set or reset (which will remove all judgements). */ export interface IdentitySet { type: "IdentitySet" - who: t.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 } /** A name was cleared, and the given balance returned. */ export interface IdentityCleared { type: "IdentityCleared" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A name was removed and the given balance slashed. */ export interface IdentityKilled { type: "IdentityKilled" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A judgement was asked from a registrar. */ export interface JudgementRequested { type: "JudgementRequested" - who: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A judgement request was retracted. */ export interface JudgementUnrequested { type: "JudgementUnrequested" - who: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A judgement was given by a registrar. */ export interface JudgementGiven { type: "JudgementGiven" - target: t.sp_core.crypto.AccountId32 - registrar_index: t.u32 + target: t.types.sp_core.crypto.AccountId32 + registrar_index: t.types.u32 } /** A registrar was added. */ export interface RegistrarAdded { type: "RegistrarAdded" - registrar_index: t.u32 + registrar_index: t.types.u32 } /** A sub-identity was added to an identity and the deposit paid. */ export interface SubIdentityAdded { type: "SubIdentityAdded" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A sub-identity was removed from an identity and the deposit freed. */ export interface SubIdentityRemoved { type: "SubIdentityRemoved" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** * A sub-identity was cleared, and the given deposit repatriated from the @@ -753,62 +753,62 @@ export namespace Event { */ export interface SubIdentityRevoked { type: "SubIdentityRevoked" - sub: t.sp_core.crypto.AccountId32 - main: t.sp_core.crypto.AccountId32 - deposit: t.u128 + sub: t.types.sp_core.crypto.AccountId32 + main: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A name was set or reset (which will remove all judgements). */ export function IdentitySet( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentitySet { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentitySet { return { type: "IdentitySet", ...value } } /** A name was cleared, and the given balance returned. */ export function IdentityCleared( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentityCleared { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentityCleared { return { type: "IdentityCleared", ...value } } /** A name was removed and the given balance slashed. */ export function IdentityKilled( - value: Omit, - ): t.pallet_identity.pallet.Event.IdentityKilled { + value: Omit, + ): t.types.pallet_identity.pallet.Event.IdentityKilled { return { type: "IdentityKilled", ...value } } /** A judgement was asked from a registrar. */ export function JudgementRequested( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementRequested { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementRequested { return { type: "JudgementRequested", ...value } } /** A judgement request was retracted. */ export function JudgementUnrequested( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementUnrequested { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementUnrequested { return { type: "JudgementUnrequested", ...value } } /** A judgement was given by a registrar. */ export function JudgementGiven( - value: Omit, - ): t.pallet_identity.pallet.Event.JudgementGiven { + value: Omit, + ): t.types.pallet_identity.pallet.Event.JudgementGiven { return { type: "JudgementGiven", ...value } } /** A registrar was added. */ export function RegistrarAdded( - value: Omit, - ): t.pallet_identity.pallet.Event.RegistrarAdded { + value: Omit, + ): t.types.pallet_identity.pallet.Event.RegistrarAdded { return { type: "RegistrarAdded", ...value } } /** A sub-identity was added to an identity and the deposit paid. */ export function SubIdentityAdded( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityAdded { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityAdded { return { type: "SubIdentityAdded", ...value } } /** A sub-identity was removed from an identity and the deposit freed. */ export function SubIdentityRemoved( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityRemoved { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityRemoved { return { type: "SubIdentityRemoved", ...value } } /** @@ -816,8 +816,8 @@ export namespace Event { * main identity account to the sub-identity account. */ export function SubIdentityRevoked( - value: Omit, - ): t.pallet_identity.pallet.Event.SubIdentityRevoked { + value: Omit, + ): t.types.pallet_identity.pallet.Event.SubIdentityRevoked { return { type: "SubIdentityRevoked", ...value } } } diff --git a/codegen/_output/westend/types/pallet_identity/types.ts b/codegen/_output/westend/types/pallet_identity/types.ts new file mode 100644 index 000000000..29c467c24 --- /dev/null +++ b/codegen/_output/westend/types/pallet_identity/types.ts @@ -0,0 +1,498 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $data: $.Codec = _codec.$267 + +export const $identityField: $.Codec = _codec.$301 + +export const $identityInfo: $.Codec = _codec.$264 + +export const $judgement: $.Codec = _codec.$302 + +export const $registrarInfo: $.Codec = _codec.$576 + +export const $registration: $.Codec = _codec.$568 + +export type Data = + | t.types.pallet_identity.types.Data.None + | t.types.pallet_identity.types.Data.Raw0 + | t.types.pallet_identity.types.Data.Raw1 + | t.types.pallet_identity.types.Data.Raw2 + | t.types.pallet_identity.types.Data.Raw3 + | t.types.pallet_identity.types.Data.Raw4 + | t.types.pallet_identity.types.Data.Raw5 + | t.types.pallet_identity.types.Data.Raw6 + | t.types.pallet_identity.types.Data.Raw7 + | t.types.pallet_identity.types.Data.Raw8 + | t.types.pallet_identity.types.Data.Raw9 + | t.types.pallet_identity.types.Data.Raw10 + | t.types.pallet_identity.types.Data.Raw11 + | t.types.pallet_identity.types.Data.Raw12 + | t.types.pallet_identity.types.Data.Raw13 + | t.types.pallet_identity.types.Data.Raw14 + | t.types.pallet_identity.types.Data.Raw15 + | t.types.pallet_identity.types.Data.Raw16 + | t.types.pallet_identity.types.Data.Raw17 + | t.types.pallet_identity.types.Data.Raw18 + | t.types.pallet_identity.types.Data.Raw19 + | t.types.pallet_identity.types.Data.Raw20 + | t.types.pallet_identity.types.Data.Raw21 + | t.types.pallet_identity.types.Data.Raw22 + | t.types.pallet_identity.types.Data.Raw23 + | t.types.pallet_identity.types.Data.Raw24 + | t.types.pallet_identity.types.Data.Raw25 + | t.types.pallet_identity.types.Data.Raw26 + | t.types.pallet_identity.types.Data.Raw27 + | t.types.pallet_identity.types.Data.Raw28 + | t.types.pallet_identity.types.Data.Raw29 + | t.types.pallet_identity.types.Data.Raw30 + | t.types.pallet_identity.types.Data.Raw31 + | t.types.pallet_identity.types.Data.Raw32 + | t.types.pallet_identity.types.Data.BlakeTwo256 + | t.types.pallet_identity.types.Data.Sha256 + | t.types.pallet_identity.types.Data.Keccak256 + | t.types.pallet_identity.types.Data.ShaThree256 +export namespace Data { + export interface None { + type: "None" + } + export interface Raw0 { + type: "Raw0" + value: Uint8Array + } + export interface Raw1 { + type: "Raw1" + value: Uint8Array + } + export interface Raw2 { + type: "Raw2" + value: Uint8Array + } + export interface Raw3 { + type: "Raw3" + value: Uint8Array + } + export interface Raw4 { + type: "Raw4" + value: Uint8Array + } + export interface Raw5 { + type: "Raw5" + value: Uint8Array + } + export interface Raw6 { + type: "Raw6" + value: Uint8Array + } + export interface Raw7 { + type: "Raw7" + value: Uint8Array + } + export interface Raw8 { + type: "Raw8" + value: Uint8Array + } + export interface Raw9 { + type: "Raw9" + value: Uint8Array + } + export interface Raw10 { + type: "Raw10" + value: Uint8Array + } + export interface Raw11 { + type: "Raw11" + value: Uint8Array + } + export interface Raw12 { + type: "Raw12" + value: Uint8Array + } + export interface Raw13 { + type: "Raw13" + value: Uint8Array + } + export interface Raw14 { + type: "Raw14" + value: Uint8Array + } + export interface Raw15 { + type: "Raw15" + value: Uint8Array + } + export interface Raw16 { + type: "Raw16" + value: Uint8Array + } + export interface Raw17 { + type: "Raw17" + value: Uint8Array + } + export interface Raw18 { + type: "Raw18" + value: Uint8Array + } + export interface Raw19 { + type: "Raw19" + value: Uint8Array + } + export interface Raw20 { + type: "Raw20" + value: Uint8Array + } + export interface Raw21 { + type: "Raw21" + value: Uint8Array + } + export interface Raw22 { + type: "Raw22" + value: Uint8Array + } + export interface Raw23 { + type: "Raw23" + value: Uint8Array + } + export interface Raw24 { + type: "Raw24" + value: Uint8Array + } + export interface Raw25 { + type: "Raw25" + value: Uint8Array + } + export interface Raw26 { + type: "Raw26" + value: Uint8Array + } + export interface Raw27 { + type: "Raw27" + value: Uint8Array + } + export interface Raw28 { + type: "Raw28" + value: Uint8Array + } + export interface Raw29 { + type: "Raw29" + value: Uint8Array + } + export interface Raw30 { + type: "Raw30" + value: Uint8Array + } + export interface Raw31 { + type: "Raw31" + value: Uint8Array + } + export interface Raw32 { + type: "Raw32" + value: Uint8Array + } + export interface BlakeTwo256 { + type: "BlakeTwo256" + value: Uint8Array + } + export interface Sha256 { + type: "Sha256" + value: Uint8Array + } + export interface Keccak256 { + type: "Keccak256" + value: Uint8Array + } + export interface ShaThree256 { + type: "ShaThree256" + value: Uint8Array + } + export function None(): t.types.pallet_identity.types.Data.None { + return { type: "None" } + } + export function Raw0( + value: t.types.pallet_identity.types.Data.Raw0["value"], + ): t.types.pallet_identity.types.Data.Raw0 { + return { type: "Raw0", value } + } + export function Raw1( + value: t.types.pallet_identity.types.Data.Raw1["value"], + ): t.types.pallet_identity.types.Data.Raw1 { + return { type: "Raw1", value } + } + export function Raw2( + value: t.types.pallet_identity.types.Data.Raw2["value"], + ): t.types.pallet_identity.types.Data.Raw2 { + return { type: "Raw2", value } + } + export function Raw3( + value: t.types.pallet_identity.types.Data.Raw3["value"], + ): t.types.pallet_identity.types.Data.Raw3 { + return { type: "Raw3", value } + } + export function Raw4( + value: t.types.pallet_identity.types.Data.Raw4["value"], + ): t.types.pallet_identity.types.Data.Raw4 { + return { type: "Raw4", value } + } + export function Raw5( + value: t.types.pallet_identity.types.Data.Raw5["value"], + ): t.types.pallet_identity.types.Data.Raw5 { + return { type: "Raw5", value } + } + export function Raw6( + value: t.types.pallet_identity.types.Data.Raw6["value"], + ): t.types.pallet_identity.types.Data.Raw6 { + return { type: "Raw6", value } + } + export function Raw7( + value: t.types.pallet_identity.types.Data.Raw7["value"], + ): t.types.pallet_identity.types.Data.Raw7 { + return { type: "Raw7", value } + } + export function Raw8( + value: t.types.pallet_identity.types.Data.Raw8["value"], + ): t.types.pallet_identity.types.Data.Raw8 { + return { type: "Raw8", value } + } + export function Raw9( + value: t.types.pallet_identity.types.Data.Raw9["value"], + ): t.types.pallet_identity.types.Data.Raw9 { + return { type: "Raw9", value } + } + export function Raw10( + value: t.types.pallet_identity.types.Data.Raw10["value"], + ): t.types.pallet_identity.types.Data.Raw10 { + return { type: "Raw10", value } + } + export function Raw11( + value: t.types.pallet_identity.types.Data.Raw11["value"], + ): t.types.pallet_identity.types.Data.Raw11 { + return { type: "Raw11", value } + } + export function Raw12( + value: t.types.pallet_identity.types.Data.Raw12["value"], + ): t.types.pallet_identity.types.Data.Raw12 { + return { type: "Raw12", value } + } + export function Raw13( + value: t.types.pallet_identity.types.Data.Raw13["value"], + ): t.types.pallet_identity.types.Data.Raw13 { + return { type: "Raw13", value } + } + export function Raw14( + value: t.types.pallet_identity.types.Data.Raw14["value"], + ): t.types.pallet_identity.types.Data.Raw14 { + return { type: "Raw14", value } + } + export function Raw15( + value: t.types.pallet_identity.types.Data.Raw15["value"], + ): t.types.pallet_identity.types.Data.Raw15 { + return { type: "Raw15", value } + } + export function Raw16( + value: t.types.pallet_identity.types.Data.Raw16["value"], + ): t.types.pallet_identity.types.Data.Raw16 { + return { type: "Raw16", value } + } + export function Raw17( + value: t.types.pallet_identity.types.Data.Raw17["value"], + ): t.types.pallet_identity.types.Data.Raw17 { + return { type: "Raw17", value } + } + export function Raw18( + value: t.types.pallet_identity.types.Data.Raw18["value"], + ): t.types.pallet_identity.types.Data.Raw18 { + return { type: "Raw18", value } + } + export function Raw19( + value: t.types.pallet_identity.types.Data.Raw19["value"], + ): t.types.pallet_identity.types.Data.Raw19 { + return { type: "Raw19", value } + } + export function Raw20( + value: t.types.pallet_identity.types.Data.Raw20["value"], + ): t.types.pallet_identity.types.Data.Raw20 { + return { type: "Raw20", value } + } + export function Raw21( + value: t.types.pallet_identity.types.Data.Raw21["value"], + ): t.types.pallet_identity.types.Data.Raw21 { + return { type: "Raw21", value } + } + export function Raw22( + value: t.types.pallet_identity.types.Data.Raw22["value"], + ): t.types.pallet_identity.types.Data.Raw22 { + return { type: "Raw22", value } + } + export function Raw23( + value: t.types.pallet_identity.types.Data.Raw23["value"], + ): t.types.pallet_identity.types.Data.Raw23 { + return { type: "Raw23", value } + } + export function Raw24( + value: t.types.pallet_identity.types.Data.Raw24["value"], + ): t.types.pallet_identity.types.Data.Raw24 { + return { type: "Raw24", value } + } + export function Raw25( + value: t.types.pallet_identity.types.Data.Raw25["value"], + ): t.types.pallet_identity.types.Data.Raw25 { + return { type: "Raw25", value } + } + export function Raw26( + value: t.types.pallet_identity.types.Data.Raw26["value"], + ): t.types.pallet_identity.types.Data.Raw26 { + return { type: "Raw26", value } + } + export function Raw27( + value: t.types.pallet_identity.types.Data.Raw27["value"], + ): t.types.pallet_identity.types.Data.Raw27 { + return { type: "Raw27", value } + } + export function Raw28( + value: t.types.pallet_identity.types.Data.Raw28["value"], + ): t.types.pallet_identity.types.Data.Raw28 { + return { type: "Raw28", value } + } + export function Raw29( + value: t.types.pallet_identity.types.Data.Raw29["value"], + ): t.types.pallet_identity.types.Data.Raw29 { + return { type: "Raw29", value } + } + export function Raw30( + value: t.types.pallet_identity.types.Data.Raw30["value"], + ): t.types.pallet_identity.types.Data.Raw30 { + return { type: "Raw30", value } + } + export function Raw31( + value: t.types.pallet_identity.types.Data.Raw31["value"], + ): t.types.pallet_identity.types.Data.Raw31 { + return { type: "Raw31", value } + } + export function Raw32( + value: t.types.pallet_identity.types.Data.Raw32["value"], + ): t.types.pallet_identity.types.Data.Raw32 { + return { type: "Raw32", value } + } + export function BlakeTwo256( + value: t.types.pallet_identity.types.Data.BlakeTwo256["value"], + ): t.types.pallet_identity.types.Data.BlakeTwo256 { + return { type: "BlakeTwo256", value } + } + export function Sha256( + value: t.types.pallet_identity.types.Data.Sha256["value"], + ): t.types.pallet_identity.types.Data.Sha256 { + return { type: "Sha256", value } + } + export function Keccak256( + value: t.types.pallet_identity.types.Data.Keccak256["value"], + ): t.types.pallet_identity.types.Data.Keccak256 { + return { type: "Keccak256", value } + } + export function ShaThree256( + value: t.types.pallet_identity.types.Data.ShaThree256["value"], + ): t.types.pallet_identity.types.Data.ShaThree256 { + return { type: "ShaThree256", value } + } +} + +export type IdentityField = + | "Display" + | "Legal" + | "Web" + | "Riot" + | "Email" + | "PgpFingerprint" + | "Image" + | "Twitter" + +export interface IdentityInfo { + additional: Array<[t.types.pallet_identity.types.Data, t.types.pallet_identity.types.Data]> + display: t.types.pallet_identity.types.Data + legal: t.types.pallet_identity.types.Data + web: t.types.pallet_identity.types.Data + riot: t.types.pallet_identity.types.Data + email: t.types.pallet_identity.types.Data + pgp_fingerprint: Uint8Array | undefined + image: t.types.pallet_identity.types.Data + twitter: t.types.pallet_identity.types.Data +} + +export function IdentityInfo(value: t.types.pallet_identity.types.IdentityInfo) { + return value +} + +export type Judgement = + | t.types.pallet_identity.types.Judgement.Unknown + | t.types.pallet_identity.types.Judgement.FeePaid + | t.types.pallet_identity.types.Judgement.Reasonable + | t.types.pallet_identity.types.Judgement.KnownGood + | t.types.pallet_identity.types.Judgement.OutOfDate + | t.types.pallet_identity.types.Judgement.LowQuality + | t.types.pallet_identity.types.Judgement.Erroneous +export namespace Judgement { + export interface Unknown { + type: "Unknown" + } + export interface FeePaid { + type: "FeePaid" + value: t.types.u128 + } + export interface Reasonable { + type: "Reasonable" + } + export interface KnownGood { + type: "KnownGood" + } + export interface OutOfDate { + type: "OutOfDate" + } + export interface LowQuality { + type: "LowQuality" + } + export interface Erroneous { + type: "Erroneous" + } + export function Unknown(): t.types.pallet_identity.types.Judgement.Unknown { + return { type: "Unknown" } + } + export function FeePaid( + value: t.types.pallet_identity.types.Judgement.FeePaid["value"], + ): t.types.pallet_identity.types.Judgement.FeePaid { + return { type: "FeePaid", value } + } + export function Reasonable(): t.types.pallet_identity.types.Judgement.Reasonable { + return { type: "Reasonable" } + } + export function KnownGood(): t.types.pallet_identity.types.Judgement.KnownGood { + return { type: "KnownGood" } + } + export function OutOfDate(): t.types.pallet_identity.types.Judgement.OutOfDate { + return { type: "OutOfDate" } + } + export function LowQuality(): t.types.pallet_identity.types.Judgement.LowQuality { + return { type: "LowQuality" } + } + export function Erroneous(): t.types.pallet_identity.types.Judgement.Erroneous { + return { type: "Erroneous" } + } +} + +export interface RegistrarInfo { + account: t.types.sp_core.crypto.AccountId32 + fee: t.types.u128 + fields: t.types.u64 +} + +export function RegistrarInfo(value: t.types.pallet_identity.types.RegistrarInfo) { + return value +} + +export interface Registration { + judgements: Array<[t.types.u32, t.types.pallet_identity.types.Judgement]> + deposit: t.types.u128 + info: t.types.pallet_identity.types.IdentityInfo +} + +export function Registration(value: t.types.pallet_identity.types.Registration) { + return value +} diff --git a/codegen/_output/westend/types/pallet_im_online/mod.ts b/codegen/_output/westend/types/pallet_im_online/mod.ts new file mode 100644 index 000000000..55795bb60 --- /dev/null +++ b/codegen/_output/westend/types/pallet_im_online/mod.ts @@ -0,0 +1,35 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as sr25519 from "./sr25519/mod.ts" + +export const $boundedOpaqueNetworkState: $.Codec< + t.types.pallet_im_online.BoundedOpaqueNetworkState +> = _codec.$523 + +export const $heartbeat: $.Codec = _codec.$228 + +export interface BoundedOpaqueNetworkState { + peer_id: Uint8Array + external_addresses: Array +} + +export function BoundedOpaqueNetworkState( + value: t.types.pallet_im_online.BoundedOpaqueNetworkState, +) { + return value +} + +export interface Heartbeat { + block_number: t.types.u32 + network_state: t.types.sp_core.offchain.OpaqueNetworkState + session_index: t.types.u32 + authority_index: t.types.u32 + validators_len: t.types.u32 +} + +export function Heartbeat(value: t.types.pallet_im_online.Heartbeat) { + return value +} diff --git a/codegen/_output/polkadot/pallet_im_online/pallet.ts b/codegen/_output/westend/types/pallet_im_online/pallet.ts similarity index 62% rename from codegen/_output/polkadot/pallet_im_online/pallet.ts rename to codegen/_output/westend/types/pallet_im_online/pallet.ts index 14625fcff..c0e2242de 100644 --- a/codegen/_output/polkadot/pallet_im_online/pallet.ts +++ b/codegen/_output/westend/types/pallet_im_online/pallet.ts @@ -1,15 +1,15 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$227 +export const $call: $.Codec = _codec.$227 -export const $error: $.Codec = _codec.$527 +export const $error: $.Codec = _codec.$527 -export const $event: $.Codec = _codec.$52 +export const $event: $.Codec = _codec.$52 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_im_online.pallet.Call.heartbeat +export type Call = t.types.pallet_im_online.pallet.Call.heartbeat export namespace Call { /** * # @@ -24,8 +24,8 @@ export namespace Call { */ export interface heartbeat { type: "heartbeat" - heartbeat: t.pallet_im_online.Heartbeat - signature: t.pallet_im_online.sr25519.app_sr25519.Signature + heartbeat: t.types.pallet_im_online.Heartbeat + signature: t.types.pallet_im_online.sr25519.app_sr25519.Signature } /** * # @@ -39,8 +39,8 @@ export namespace Call { * # */ export function heartbeat( - value: Omit, - ): t.pallet_im_online.pallet.Call.heartbeat { + value: Omit, + ): t.types.pallet_im_online.pallet.Call.heartbeat { return { type: "heartbeat", ...value } } } @@ -50,14 +50,14 @@ export type Error = "InvalidKey" | "DuplicatedHeartbeat" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_im_online.pallet.Event.HeartbeatReceived - | t.pallet_im_online.pallet.Event.AllGood - | t.pallet_im_online.pallet.Event.SomeOffline + | t.types.pallet_im_online.pallet.Event.HeartbeatReceived + | t.types.pallet_im_online.pallet.Event.AllGood + | t.types.pallet_im_online.pallet.Event.SomeOffline export namespace Event { /** A new heartbeat was received from `AuthorityId`. */ export interface HeartbeatReceived { type: "HeartbeatReceived" - authority_id: t.pallet_im_online.sr25519.app_sr25519.Public + authority_id: t.types.pallet_im_online.sr25519.app_sr25519.Public } /** At the end of the session, no offence was committed. */ export interface AllGood { @@ -66,22 +66,22 @@ export namespace Event { /** At the end of the session, at least one validator was found to be offline. */ export interface SomeOffline { type: "SomeOffline" - offline: Array<[t.sp_core.crypto.AccountId32, t.pallet_staking.Exposure]> + offline: Array<[t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure]> } /** A new heartbeat was received from `AuthorityId`. */ export function HeartbeatReceived( - value: Omit, - ): t.pallet_im_online.pallet.Event.HeartbeatReceived { + value: Omit, + ): t.types.pallet_im_online.pallet.Event.HeartbeatReceived { return { type: "HeartbeatReceived", ...value } } /** At the end of the session, no offence was committed. */ - export function AllGood(): t.pallet_im_online.pallet.Event.AllGood { + export function AllGood(): t.types.pallet_im_online.pallet.Event.AllGood { return { type: "AllGood" } } /** At the end of the session, at least one validator was found to be offline. */ export function SomeOffline( - value: Omit, - ): t.pallet_im_online.pallet.Event.SomeOffline { + value: Omit, + ): t.types.pallet_im_online.pallet.Event.SomeOffline { return { type: "SomeOffline", ...value } } } diff --git a/codegen/_output/westend/types/pallet_im_online/sr25519/app_sr25519.ts b/codegen/_output/westend/types/pallet_im_online/sr25519/app_sr25519.ts new file mode 100644 index 000000000..4bfb0f9b6 --- /dev/null +++ b/codegen/_output/westend/types/pallet_im_online/sr25519/app_sr25519.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$53 + +export const $signature: $.Codec = + _codec.$233 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.pallet_im_online.sr25519.app_sr25519.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.pallet_im_online.sr25519.app_sr25519.Signature) { + return value +} diff --git a/codegen/_output/westend/pallet_im_online/sr25519/mod.ts b/codegen/_output/westend/types/pallet_im_online/sr25519/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_im_online/sr25519/mod.ts rename to codegen/_output/westend/types/pallet_im_online/sr25519/mod.ts diff --git a/codegen/_output/westend/pallet_indices/mod.ts b/codegen/_output/westend/types/pallet_indices/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_indices/mod.ts rename to codegen/_output/westend/types/pallet_indices/mod.ts diff --git a/codegen/_output/polkadot/pallet_indices/pallet.ts b/codegen/_output/westend/types/pallet_indices/pallet.ts similarity index 79% rename from codegen/_output/polkadot/pallet_indices/pallet.ts rename to codegen/_output/westend/types/pallet_indices/pallet.ts index 3cd9b537a..8957b3ebb 100644 --- a/codegen/_output/polkadot/pallet_indices/pallet.ts +++ b/codegen/_output/westend/types/pallet_indices/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$196 +export const $call: $.Codec = _codec.$196 -export const $error: $.Codec = _codec.$469 +export const $error: $.Codec = _codec.$469 -export const $event: $.Codec = _codec.$35 +export const $event: $.Codec = _codec.$35 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_indices.pallet.Call.claim - | t.pallet_indices.pallet.Call.transfer - | t.pallet_indices.pallet.Call.free - | t.pallet_indices.pallet.Call.force_transfer - | t.pallet_indices.pallet.Call.freeze + | t.types.pallet_indices.pallet.Call.claim + | t.types.pallet_indices.pallet.Call.transfer + | t.types.pallet_indices.pallet.Call.free + | t.types.pallet_indices.pallet.Call.force_transfer + | t.types.pallet_indices.pallet.Call.freeze export namespace Call { /** * Assign an previously unassigned index. @@ -38,7 +38,7 @@ export namespace Call { */ export interface claim { type: "claim" - index: t.u32 + index: t.types.u32 } /** * Assign an index already owned by the sender to another account. The balance reservation @@ -64,8 +64,8 @@ export namespace Call { */ export interface transfer { type: "transfer" - new: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + new: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 } /** * Free up an index owned by the sender. @@ -89,7 +89,7 @@ export namespace Call { */ export interface free { type: "free" - index: t.u32 + index: t.types.u32 } /** * Force an index to an account. This doesn't require a deposit. If the index is already @@ -116,8 +116,8 @@ export namespace Call { */ export interface force_transfer { type: "force_transfer" - new: t.sp_runtime.multiaddress.MultiAddress - index: t.u32 + new: t.types.sp_runtime.multiaddress.MultiAddress + index: t.types.u32 freeze: boolean } /** @@ -142,7 +142,7 @@ export namespace Call { */ export interface freeze { type: "freeze" - index: t.u32 + index: t.types.u32 } /** * Assign an previously unassigned index. @@ -165,8 +165,8 @@ export namespace Call { * # */ export function claim( - value: Omit, - ): t.pallet_indices.pallet.Call.claim { + value: Omit, + ): t.types.pallet_indices.pallet.Call.claim { return { type: "claim", ...value } } /** @@ -192,8 +192,8 @@ export namespace Call { * # */ export function transfer( - value: Omit, - ): t.pallet_indices.pallet.Call.transfer { + value: Omit, + ): t.types.pallet_indices.pallet.Call.transfer { return { type: "transfer", ...value } } /** @@ -217,8 +217,8 @@ export namespace Call { * # */ export function free( - value: Omit, - ): t.pallet_indices.pallet.Call.free { + value: Omit, + ): t.types.pallet_indices.pallet.Call.free { return { type: "free", ...value } } /** @@ -245,8 +245,8 @@ export namespace Call { * # */ export function force_transfer( - value: Omit, - ): t.pallet_indices.pallet.Call.force_transfer { + value: Omit, + ): t.types.pallet_indices.pallet.Call.force_transfer { return { type: "force_transfer", ...value } } /** @@ -270,8 +270,8 @@ export namespace Call { * # */ export function freeze( - value: Omit, - ): t.pallet_indices.pallet.Call.freeze { + value: Omit, + ): t.types.pallet_indices.pallet.Call.freeze { return { type: "freeze", ...value } } } @@ -281,43 +281,43 @@ export type Error = "NotAssigned" | "NotOwner" | "InUse" | "NotTransfer" | "Perm /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_indices.pallet.Event.IndexAssigned - | t.pallet_indices.pallet.Event.IndexFreed - | t.pallet_indices.pallet.Event.IndexFrozen + | t.types.pallet_indices.pallet.Event.IndexAssigned + | t.types.pallet_indices.pallet.Event.IndexFreed + | t.types.pallet_indices.pallet.Event.IndexFrozen export namespace Event { /** A account index was assigned. */ export interface IndexAssigned { type: "IndexAssigned" - who: t.sp_core.crypto.AccountId32 - index: t.u32 + who: t.types.sp_core.crypto.AccountId32 + index: t.types.u32 } /** A account index has been freed up (unassigned). */ export interface IndexFreed { type: "IndexFreed" - index: t.u32 + index: t.types.u32 } /** A account index has been frozen to its current account ID. */ export interface IndexFrozen { type: "IndexFrozen" - index: t.u32 - who: t.sp_core.crypto.AccountId32 + index: t.types.u32 + who: t.types.sp_core.crypto.AccountId32 } /** A account index was assigned. */ export function IndexAssigned( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexAssigned { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexAssigned { return { type: "IndexAssigned", ...value } } /** A account index has been freed up (unassigned). */ export function IndexFreed( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexFreed { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexFreed { return { type: "IndexFreed", ...value } } /** A account index has been frozen to its current account ID. */ export function IndexFrozen( - value: Omit, - ): t.pallet_indices.pallet.Event.IndexFrozen { + value: Omit, + ): t.types.pallet_indices.pallet.Event.IndexFrozen { return { type: "IndexFrozen", ...value } } } diff --git a/codegen/_output/westend/pallet_membership/mod.ts b/codegen/_output/westend/types/pallet_membership/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_membership/mod.ts rename to codegen/_output/westend/types/pallet_membership/mod.ts diff --git a/codegen/_output/westend/pallet_membership/pallet.ts b/codegen/_output/westend/types/pallet_membership/pallet.ts similarity index 63% rename from codegen/_output/westend/pallet_membership/pallet.ts rename to codegen/_output/westend/types/pallet_membership/pallet.ts index 36a442d33..c55baa921 100644 --- a/codegen/_output/westend/pallet_membership/pallet.ts +++ b/codegen/_output/westend/types/pallet_membership/pallet.ts @@ -1,22 +1,22 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$243 +export const $call: $.Codec = _codec.$243 -export const $error: $.Codec = _codec.$555 +export const $error: $.Codec = _codec.$555 -export const $event: $.Codec = _codec.$70 +export const $event: $.Codec = _codec.$70 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_membership.pallet.Call.add_member - | t.pallet_membership.pallet.Call.remove_member - | t.pallet_membership.pallet.Call.swap_member - | t.pallet_membership.pallet.Call.reset_members - | t.pallet_membership.pallet.Call.change_key - | t.pallet_membership.pallet.Call.set_prime - | t.pallet_membership.pallet.Call.clear_prime + | t.types.pallet_membership.pallet.Call.add_member + | t.types.pallet_membership.pallet.Call.remove_member + | t.types.pallet_membership.pallet.Call.swap_member + | t.types.pallet_membership.pallet.Call.reset_members + | t.types.pallet_membership.pallet.Call.change_key + | t.types.pallet_membership.pallet.Call.set_prime + | t.types.pallet_membership.pallet.Call.clear_prime export namespace Call { /** * Add a member `who` to the set. @@ -25,7 +25,7 @@ export namespace Call { */ export interface add_member { type: "add_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove a member `who` from the set. @@ -34,7 +34,7 @@ export namespace Call { */ export interface remove_member { type: "remove_member" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Swap out one member `remove` for another `add`. @@ -45,8 +45,8 @@ export namespace Call { */ export interface swap_member { type: "swap_member" - remove: t.sp_runtime.multiaddress.MultiAddress - add: t.sp_runtime.multiaddress.MultiAddress + remove: t.types.sp_runtime.multiaddress.MultiAddress + add: t.types.sp_runtime.multiaddress.MultiAddress } /** * Change the membership to a new set, disregarding the existing membership. Be nice and @@ -56,7 +56,7 @@ export namespace Call { */ export interface reset_members { type: "reset_members" - members: Array + members: Array } /** * Swap out the sending member for some other key `new`. @@ -67,7 +67,7 @@ export namespace Call { */ export interface change_key { type: "change_key" - new: t.sp_runtime.multiaddress.MultiAddress + new: t.types.sp_runtime.multiaddress.MultiAddress } /** * Set the prime member. Must be a current member. @@ -76,7 +76,7 @@ export namespace Call { */ export interface set_prime { type: "set_prime" - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Remove the prime member if it exists. @@ -92,8 +92,8 @@ export namespace Call { * May only be called from `T::AddOrigin`. */ export function add_member( - value: Omit, - ): t.pallet_membership.pallet.Call.add_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.add_member { return { type: "add_member", ...value } } /** @@ -102,8 +102,8 @@ export namespace Call { * May only be called from `T::RemoveOrigin`. */ export function remove_member( - value: Omit, - ): t.pallet_membership.pallet.Call.remove_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.remove_member { return { type: "remove_member", ...value } } /** @@ -114,8 +114,8 @@ export namespace Call { * Prime membership is *not* passed from `remove` to `add`, if extant. */ export function swap_member( - value: Omit, - ): t.pallet_membership.pallet.Call.swap_member { + value: Omit, + ): t.types.pallet_membership.pallet.Call.swap_member { return { type: "swap_member", ...value } } /** @@ -125,8 +125,8 @@ export namespace Call { * May only be called from `T::ResetOrigin`. */ export function reset_members( - value: Omit, - ): t.pallet_membership.pallet.Call.reset_members { + value: Omit, + ): t.types.pallet_membership.pallet.Call.reset_members { return { type: "reset_members", ...value } } /** @@ -137,8 +137,8 @@ export namespace Call { * Prime membership is passed from the origin account to `new`, if extant. */ export function change_key( - value: Omit, - ): t.pallet_membership.pallet.Call.change_key { + value: Omit, + ): t.types.pallet_membership.pallet.Call.change_key { return { type: "change_key", ...value } } /** @@ -147,8 +147,8 @@ export namespace Call { * May only be called from `T::PrimeOrigin`. */ export function set_prime( - value: Omit, - ): t.pallet_membership.pallet.Call.set_prime { + value: Omit, + ): t.types.pallet_membership.pallet.Call.set_prime { return { type: "set_prime", ...value } } /** @@ -156,7 +156,7 @@ export namespace Call { * * May only be called from `T::PrimeOrigin`. */ - export function clear_prime(): t.pallet_membership.pallet.Call.clear_prime { + export function clear_prime(): t.types.pallet_membership.pallet.Call.clear_prime { return { type: "clear_prime" } } } diff --git a/codegen/_output/westend/types/pallet_multisig/mod.ts b/codegen/_output/westend/types/pallet_multisig/mod.ts new file mode 100644 index 000000000..98c0d71ef --- /dev/null +++ b/codegen/_output/westend/types/pallet_multisig/mod.ts @@ -0,0 +1,29 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $multisig: $.Codec = _codec.$589 + +export const $timepoint: $.Codec = _codec.$82 + +export interface Multisig { + when: t.types.pallet_multisig.Timepoint + deposit: t.types.u128 + depositor: t.types.sp_core.crypto.AccountId32 + approvals: Array +} + +export function Multisig(value: t.types.pallet_multisig.Multisig) { + return value +} + +export interface Timepoint { + height: t.types.u32 + index: t.types.u32 +} + +export function Timepoint(value: t.types.pallet_multisig.Timepoint) { + return value +} diff --git a/codegen/_output/polkadot/pallet_multisig/pallet.ts b/codegen/_output/westend/types/pallet_multisig/pallet.ts similarity index 81% rename from codegen/_output/polkadot/pallet_multisig/pallet.ts rename to codegen/_output/westend/types/pallet_multisig/pallet.ts index ec9e5b0e0..708e406ff 100644 --- a/codegen/_output/polkadot/pallet_multisig/pallet.ts +++ b/codegen/_output/westend/types/pallet_multisig/pallet.ts @@ -1,19 +1,19 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$305 +export const $call: $.Codec = _codec.$305 -export const $error: $.Codec = _codec.$590 +export const $error: $.Codec = _codec.$590 -export const $event: $.Codec = _codec.$81 +export const $event: $.Codec = _codec.$81 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_multisig.pallet.Call.as_multi_threshold_1 - | t.pallet_multisig.pallet.Call.as_multi - | t.pallet_multisig.pallet.Call.approve_as_multi - | t.pallet_multisig.pallet.Call.cancel_as_multi + | t.types.pallet_multisig.pallet.Call.as_multi_threshold_1 + | t.types.pallet_multisig.pallet.Call.as_multi + | t.types.pallet_multisig.pallet.Call.approve_as_multi + | t.types.pallet_multisig.pallet.Call.cancel_as_multi export namespace Call { /** * Immediately dispatch a multi-signature call using a single approval from the caller. @@ -35,8 +35,8 @@ export namespace Call { */ export interface as_multi_threshold_1 { type: "as_multi_threshold_1" - other_signatories: Array - call: t.polkadot_runtime.RuntimeCall + other_signatories: Array + call: t.types.polkadot_runtime.RuntimeCall } /** * Register approval for a dispatch to be made from a deterministic composite account if @@ -87,11 +87,11 @@ export namespace Call { */ export interface as_multi { type: "as_multi" - threshold: t.u16 - other_signatories: Array - maybe_timepoint: t.pallet_multisig.Timepoint | undefined - call: t.polkadot_runtime.RuntimeCall - max_weight: t.sp_weights.weight_v2.Weight + threshold: t.types.u16 + other_signatories: Array + maybe_timepoint: t.types.pallet_multisig.Timepoint | undefined + call: t.types.polkadot_runtime.RuntimeCall + max_weight: t.types.sp_weights.weight_v2.Weight } /** * Register approval for a dispatch to be made from a deterministic composite account if @@ -132,11 +132,11 @@ export namespace Call { */ export interface approve_as_multi { type: "approve_as_multi" - threshold: t.u16 - other_signatories: Array - maybe_timepoint: t.pallet_multisig.Timepoint | undefined + threshold: t.types.u16 + other_signatories: Array + maybe_timepoint: t.types.pallet_multisig.Timepoint | undefined call_hash: Uint8Array - max_weight: t.sp_weights.weight_v2.Weight + max_weight: t.types.sp_weights.weight_v2.Weight } /** * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously @@ -168,9 +168,9 @@ export namespace Call { */ export interface cancel_as_multi { type: "cancel_as_multi" - threshold: t.u16 - other_signatories: Array - timepoint: t.pallet_multisig.Timepoint + threshold: t.types.u16 + other_signatories: Array + timepoint: t.types.pallet_multisig.Timepoint call_hash: Uint8Array } /** @@ -192,8 +192,8 @@ export namespace Call { * # */ export function as_multi_threshold_1( - value: Omit, - ): t.pallet_multisig.pallet.Call.as_multi_threshold_1 { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.as_multi_threshold_1 { return { type: "as_multi_threshold_1", ...value } } /** @@ -244,8 +244,8 @@ export namespace Call { * # */ export function as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.as_multi { return { type: "as_multi", ...value } } /** @@ -286,8 +286,8 @@ export namespace Call { * # */ export function approve_as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.approve_as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.approve_as_multi { return { type: "approve_as_multi", ...value } } /** @@ -319,8 +319,8 @@ export namespace Call { * # */ export function cancel_as_multi( - value: Omit, - ): t.pallet_multisig.pallet.Call.cancel_as_multi { + value: Omit, + ): t.types.pallet_multisig.pallet.Call.cancel_as_multi { return { type: "cancel_as_multi", ...value } } } @@ -344,65 +344,65 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_multisig.pallet.Event.NewMultisig - | t.pallet_multisig.pallet.Event.MultisigApproval - | t.pallet_multisig.pallet.Event.MultisigExecuted - | t.pallet_multisig.pallet.Event.MultisigCancelled + | t.types.pallet_multisig.pallet.Event.NewMultisig + | t.types.pallet_multisig.pallet.Event.MultisigApproval + | t.types.pallet_multisig.pallet.Event.MultisigExecuted + | t.types.pallet_multisig.pallet.Event.MultisigCancelled export namespace Event { /** A new multisig operation has begun. */ export interface NewMultisig { type: "NewMultisig" - approving: t.sp_core.crypto.AccountId32 - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A multisig operation has been approved by someone. */ export interface MultisigApproval { type: "MultisigApproval" - approving: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A multisig operation has been executed. */ export interface MultisigExecuted { type: "MultisigExecuted" - approving: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + approving: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array - result: null | C.ChainError + result: null | C.ChainError } /** A multisig operation has been cancelled. */ export interface MultisigCancelled { type: "MultisigCancelled" - cancelling: t.sp_core.crypto.AccountId32 - timepoint: t.pallet_multisig.Timepoint - multisig: t.sp_core.crypto.AccountId32 + cancelling: t.types.sp_core.crypto.AccountId32 + timepoint: t.types.pallet_multisig.Timepoint + multisig: t.types.sp_core.crypto.AccountId32 call_hash: Uint8Array } /** A new multisig operation has begun. */ export function NewMultisig( - value: Omit, - ): t.pallet_multisig.pallet.Event.NewMultisig { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.NewMultisig { return { type: "NewMultisig", ...value } } /** A multisig operation has been approved by someone. */ export function MultisigApproval( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigApproval { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigApproval { return { type: "MultisigApproval", ...value } } /** A multisig operation has been executed. */ export function MultisigExecuted( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigExecuted { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigExecuted { return { type: "MultisigExecuted", ...value } } /** A multisig operation has been cancelled. */ export function MultisigCancelled( - value: Omit, - ): t.pallet_multisig.pallet.Event.MultisigCancelled { + value: Omit, + ): t.types.pallet_multisig.pallet.Event.MultisigCancelled { return { type: "MultisigCancelled", ...value } } } diff --git a/codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts b/codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts new file mode 100644 index 000000000..ae906cd2b --- /dev/null +++ b/codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/$$sp_core/crypto.ts @@ -0,0 +1,35 @@ +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" + +export const $accountId32: $.Codec< + t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 +> = _codec.$373 + +export type AccountId32 = + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set + | t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove +export namespace AccountId32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_core.crypto.AccountId32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/westend/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts b/codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts rename to codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/$$sp_core/mod.ts diff --git a/codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/mod.ts b/codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/mod.ts new file mode 100644 index 000000000..49285a4a4 --- /dev/null +++ b/codegen/_output/westend/types/pallet_nomination_pools/ConfigOp/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as $$sp_core from "./$$sp_core/mod.ts" + +export const $$$u128: $.Codec = _codec.$371 + +export const $$$u32: $.Codec = _codec.$372 + +export type $$u128 = + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Set + | t.types.pallet_nomination_pools.ConfigOp.$$u128.Remove +export namespace $$u128 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u128 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$u128.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$u128.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$u128.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$u128.Remove { + return { type: "Remove" } + } +} + +export type $$u32 = + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Noop + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Set + | t.types.pallet_nomination_pools.ConfigOp.$$u32.Remove +export namespace $$u32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_nomination_pools.ConfigOp.$$u32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_nomination_pools.ConfigOp.$$u32.Set["value"], + ): t.types.pallet_nomination_pools.ConfigOp.$$u32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_nomination_pools.ConfigOp.$$u32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/westend/types/pallet_nomination_pools/mod.ts b/codegen/_output/westend/types/pallet_nomination_pools/mod.ts new file mode 100644 index 000000000..c5c85112b --- /dev/null +++ b/codegen/_output/westend/types/pallet_nomination_pools/mod.ts @@ -0,0 +1,107 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as ConfigOp from "./ConfigOp/mod.ts" +export * as pallet from "./pallet.ts" + +export const $bondExtra: $.Codec = _codec.$370 + +export const $bondedPoolInner: $.Codec = + _codec.$622 + +export const $poolMember: $.Codec = _codec.$617 + +export const $poolRoles: $.Codec = _codec.$623 + +export const $poolState: $.Codec = _codec.$91 + +export const $rewardPool: $.Codec = _codec.$624 + +export const $subPools: $.Codec = _codec.$625 + +export const $unbondPool: $.Codec = _codec.$626 + +export type BondExtra = + | t.types.pallet_nomination_pools.BondExtra.FreeBalance + | t.types.pallet_nomination_pools.BondExtra.Rewards +export namespace BondExtra { + export interface FreeBalance { + type: "FreeBalance" + value: t.types.u128 + } + export interface Rewards { + type: "Rewards" + } + export function FreeBalance( + value: t.types.pallet_nomination_pools.BondExtra.FreeBalance["value"], + ): t.types.pallet_nomination_pools.BondExtra.FreeBalance { + return { type: "FreeBalance", value } + } + export function Rewards(): t.types.pallet_nomination_pools.BondExtra.Rewards { + return { type: "Rewards" } + } +} + +export interface BondedPoolInner { + points: t.types.u128 + state: t.types.pallet_nomination_pools.PoolState + member_counter: t.types.u32 + roles: t.types.pallet_nomination_pools.PoolRoles +} + +export function BondedPoolInner(value: t.types.pallet_nomination_pools.BondedPoolInner) { + return value +} + +export interface PoolMember { + pool_id: t.types.u32 + points: t.types.u128 + last_recorded_reward_counter: t.types.sp_arithmetic.fixed_point.FixedU128 + unbonding_eras: Map +} + +export function PoolMember(value: t.types.pallet_nomination_pools.PoolMember) { + return value +} + +export interface PoolRoles { + depositor: t.types.sp_core.crypto.AccountId32 + root: t.types.sp_core.crypto.AccountId32 | undefined + nominator: t.types.sp_core.crypto.AccountId32 | undefined + state_toggler: t.types.sp_core.crypto.AccountId32 | undefined +} + +export function PoolRoles(value: t.types.pallet_nomination_pools.PoolRoles) { + return value +} + +export type PoolState = "Open" | "Blocked" | "Destroying" + +export interface RewardPool { + last_recorded_reward_counter: t.types.sp_arithmetic.fixed_point.FixedU128 + last_recorded_total_payouts: t.types.u128 + total_rewards_claimed: t.types.u128 +} + +export function RewardPool(value: t.types.pallet_nomination_pools.RewardPool) { + return value +} + +export interface SubPools { + no_era: t.types.pallet_nomination_pools.UnbondPool + with_era: Map +} + +export function SubPools(value: t.types.pallet_nomination_pools.SubPools) { + return value +} + +export interface UnbondPool { + points: t.types.u128 + balance: t.types.u128 +} + +export function UnbondPool(value: t.types.pallet_nomination_pools.UnbondPool) { + return value +} diff --git a/codegen/_output/kusama/pallet_nomination_pools/pallet.ts b/codegen/_output/westend/types/pallet_nomination_pools/pallet.ts similarity index 69% rename from codegen/_output/kusama/pallet_nomination_pools/pallet.ts rename to codegen/_output/westend/types/pallet_nomination_pools/pallet.ts index acbefdc55..68dbe5fbf 100644 --- a/codegen/_output/kusama/pallet_nomination_pools/pallet.ts +++ b/codegen/_output/westend/types/pallet_nomination_pools/pallet.ts @@ -1,30 +1,31 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$369 +export const $call: $.Codec = _codec.$369 -export const $defensiveError: $.Codec = _codec.$633 +export const $defensiveError: $.Codec = + _codec.$633 -export const $error: $.Codec = _codec.$632 +export const $error: $.Codec = _codec.$632 -export const $event: $.Codec = _codec.$90 +export const $event: $.Codec = _codec.$90 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_nomination_pools.pallet.Call.join - | t.pallet_nomination_pools.pallet.Call.bond_extra - | t.pallet_nomination_pools.pallet.Call.claim_payout - | t.pallet_nomination_pools.pallet.Call.unbond - | t.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded - | t.pallet_nomination_pools.pallet.Call.withdraw_unbonded - | t.pallet_nomination_pools.pallet.Call.create - | t.pallet_nomination_pools.pallet.Call.nominate - | t.pallet_nomination_pools.pallet.Call.set_state - | t.pallet_nomination_pools.pallet.Call.set_metadata - | t.pallet_nomination_pools.pallet.Call.set_configs - | t.pallet_nomination_pools.pallet.Call.update_roles - | t.pallet_nomination_pools.pallet.Call.chill + | t.types.pallet_nomination_pools.pallet.Call.join + | t.types.pallet_nomination_pools.pallet.Call.bond_extra + | t.types.pallet_nomination_pools.pallet.Call.claim_payout + | t.types.pallet_nomination_pools.pallet.Call.unbond + | t.types.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded + | t.types.pallet_nomination_pools.pallet.Call.withdraw_unbonded + | t.types.pallet_nomination_pools.pallet.Call.create + | t.types.pallet_nomination_pools.pallet.Call.nominate + | t.types.pallet_nomination_pools.pallet.Call.set_state + | t.types.pallet_nomination_pools.pallet.Call.set_metadata + | t.types.pallet_nomination_pools.pallet.Call.set_configs + | t.types.pallet_nomination_pools.pallet.Call.update_roles + | t.types.pallet_nomination_pools.pallet.Call.chill export namespace Call { /** * Stake funds with a pool. The amount to bond is transferred from the member to the @@ -40,8 +41,8 @@ export namespace Call { */ export interface join { type: "join" - amount: t.Compact - pool_id: t.u32 + amount: t.Compact + pool_id: t.types.u32 } /** * Bond `extra` more funds from `origin` into the pool to which they already belong. @@ -53,7 +54,7 @@ export namespace Call { */ export interface bond_extra { type: "bond_extra" - extra: t.pallet_nomination_pools.BondExtra + extra: t.types.pallet_nomination_pools.BondExtra } /** * A bonded member can use this to claim their payout based on the rewards that the pool @@ -98,8 +99,8 @@ export namespace Call { */ export interface unbond { type: "unbond" - member_account: t.sp_runtime.multiaddress.MultiAddress - unbonding_points: t.Compact + member_account: t.types.sp_runtime.multiaddress.MultiAddress + unbonding_points: t.Compact } /** * Call `withdraw_unbonded` for the pools account. This call can be made by any account. @@ -111,8 +112,8 @@ export namespace Call { */ export interface pool_withdraw_unbonded { type: "pool_withdraw_unbonded" - pool_id: t.u32 - num_slashing_spans: t.u32 + pool_id: t.types.u32 + num_slashing_spans: t.types.u32 } /** * Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an @@ -137,8 +138,8 @@ export namespace Call { */ export interface withdraw_unbonded { type: "withdraw_unbonded" - member_account: t.sp_runtime.multiaddress.MultiAddress - num_slashing_spans: t.u32 + member_account: t.types.sp_runtime.multiaddress.MultiAddress + num_slashing_spans: t.types.u32 } /** * Create a new delegation pool. @@ -161,10 +162,10 @@ export namespace Call { */ export interface create { type: "create" - amount: t.Compact - root: t.sp_runtime.multiaddress.MultiAddress - nominator: t.sp_runtime.multiaddress.MultiAddress - state_toggler: t.sp_runtime.multiaddress.MultiAddress + amount: t.Compact + root: t.types.sp_runtime.multiaddress.MultiAddress + nominator: t.types.sp_runtime.multiaddress.MultiAddress + state_toggler: t.types.sp_runtime.multiaddress.MultiAddress } /** * Nominate on behalf of the pool. @@ -177,8 +178,8 @@ export namespace Call { */ export interface nominate { type: "nominate" - pool_id: t.u32 - validators: Array + pool_id: t.types.u32 + validators: Array } /** * Set a new state for the pool. @@ -194,8 +195,8 @@ export namespace Call { */ export interface set_state { type: "set_state" - pool_id: t.u32 - state: t.pallet_nomination_pools.PoolState + pool_id: t.types.u32 + state: t.types.pallet_nomination_pools.PoolState } /** * Set a new metadata for the pool. @@ -205,7 +206,7 @@ export namespace Call { */ export interface set_metadata { type: "set_metadata" - pool_id: t.u32 + pool_id: t.types.u32 metadata: Uint8Array } /** @@ -222,11 +223,11 @@ export namespace Call { */ export interface set_configs { type: "set_configs" - min_join_bond: t.pallet_nomination_pools.ConfigOp.$$u128 - min_create_bond: t.pallet_nomination_pools.ConfigOp.$$u128 - max_pools: t.pallet_nomination_pools.ConfigOp.$$u32 - max_members: t.pallet_nomination_pools.ConfigOp.$$u32 - max_members_per_pool: t.pallet_nomination_pools.ConfigOp.$$u32 + min_join_bond: t.types.pallet_nomination_pools.ConfigOp.$$u128 + min_create_bond: t.types.pallet_nomination_pools.ConfigOp.$$u128 + max_pools: t.types.pallet_nomination_pools.ConfigOp.$$u32 + max_members: t.types.pallet_nomination_pools.ConfigOp.$$u32 + max_members_per_pool: t.types.pallet_nomination_pools.ConfigOp.$$u32 } /** * Update the roles of the pool. @@ -239,10 +240,10 @@ export namespace Call { */ export interface update_roles { type: "update_roles" - pool_id: t.u32 - new_root: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 - new_nominator: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 - new_state_toggler: t.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + pool_id: t.types.u32 + new_root: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + new_nominator: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 + new_state_toggler: t.types.pallet_nomination_pools.ConfigOp.$$sp_core.crypto.AccountId32 } /** * Chill on behalf of the pool. @@ -255,7 +256,7 @@ export namespace Call { */ export interface chill { type: "chill" - pool_id: t.u32 + pool_id: t.types.u32 } /** * Stake funds with a pool. The amount to bond is transferred from the member to the @@ -270,8 +271,8 @@ export namespace Call { * * Only a pool with [`PoolState::Open`] can be joined */ export function join( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.join { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.join { return { type: "join", ...value } } /** @@ -283,8 +284,8 @@ export namespace Call { * Bonding extra funds implies an automatic payout of all pending rewards as well. */ export function bond_extra( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.bond_extra { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.bond_extra { return { type: "bond_extra", ...value } } /** @@ -295,7 +296,7 @@ export namespace Call { * The member will earn rewards pro rata based on the members stake vs the sum of the * members in the pools stake. Rewards do not "expire". */ - export function claim_payout(): t.pallet_nomination_pools.pallet.Call.claim_payout { + export function claim_payout(): t.types.pallet_nomination_pools.pallet.Call.claim_payout { return { type: "claim_payout" } } /** @@ -329,8 +330,8 @@ export namespace Call { * `NoMoreChunks` error from the staking system. */ export function unbond( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.unbond { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.unbond { return { type: "unbond", ...value } } /** @@ -342,8 +343,8 @@ export namespace Call { * they attempt to unbond. */ export function pool_withdraw_unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.pool_withdraw_unbonded { return { type: "pool_withdraw_unbonded", ...value } } /** @@ -368,8 +369,8 @@ export namespace Call { * If the target is the depositor, the pool will be destroyed. */ export function withdraw_unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.withdraw_unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.withdraw_unbonded { return { type: "withdraw_unbonded", ...value } } /** @@ -392,8 +393,8 @@ export namespace Call { * needs at have at least `amount + existential_deposit` transferrable. */ export function create( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.create { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.create { return { type: "create", ...value } } /** @@ -406,8 +407,8 @@ export namespace Call { * account. */ export function nominate( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.nominate { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.nominate { return { type: "nominate", ...value } } /** @@ -423,8 +424,8 @@ export namespace Call { * then the state of the pool can be permissionlessly changed to `Destroying`. */ export function set_state( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_state { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_state { return { type: "set_state", ...value } } /** @@ -434,8 +435,8 @@ export namespace Call { * of the pool. */ export function set_metadata( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_metadata { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_metadata { return { type: "set_metadata", ...value } } /** @@ -451,8 +452,8 @@ export namespace Call { * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]. */ export function set_configs( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.set_configs { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.set_configs { return { type: "set_configs", ...value } } /** @@ -465,8 +466,8 @@ export namespace Call { * most pool members and they should be informed of changes to pool roles. */ export function update_roles( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.update_roles { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.update_roles { return { type: "update_roles", ...value } } /** @@ -479,8 +480,8 @@ export namespace Call { * account. */ export function chill( - value: Omit, - ): t.pallet_nomination_pools.pallet.Call.chill { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Call.chill { return { type: "chill", ...value } } } @@ -494,27 +495,27 @@ export type DefensiveError = /** Custom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/) of this pallet. */ export type Error = - | t.pallet_nomination_pools.pallet.Error.PoolNotFound - | t.pallet_nomination_pools.pallet.Error.PoolMemberNotFound - | t.pallet_nomination_pools.pallet.Error.RewardPoolNotFound - | t.pallet_nomination_pools.pallet.Error.SubPoolsNotFound - | t.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool - | t.pallet_nomination_pools.pallet.Error.FullyUnbonding - | t.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit - | t.pallet_nomination_pools.pallet.Error.CannotWithdrawAny - | t.pallet_nomination_pools.pallet.Error.MinimumBondNotMet - | t.pallet_nomination_pools.pallet.Error.OverflowRisk - | t.pallet_nomination_pools.pallet.Error.NotDestroying - | t.pallet_nomination_pools.pallet.Error.NotNominator - | t.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying - | t.pallet_nomination_pools.pallet.Error.NotOpen - | t.pallet_nomination_pools.pallet.Error.MaxPools - | t.pallet_nomination_pools.pallet.Error.MaxPoolMembers - | t.pallet_nomination_pools.pallet.Error.CanNotChangeState - | t.pallet_nomination_pools.pallet.Error.DoesNotHavePermission - | t.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen - | t.pallet_nomination_pools.pallet.Error.Defensive - | t.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly + | t.types.pallet_nomination_pools.pallet.Error.PoolNotFound + | t.types.pallet_nomination_pools.pallet.Error.PoolMemberNotFound + | t.types.pallet_nomination_pools.pallet.Error.RewardPoolNotFound + | t.types.pallet_nomination_pools.pallet.Error.SubPoolsNotFound + | t.types.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool + | t.types.pallet_nomination_pools.pallet.Error.FullyUnbonding + | t.types.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit + | t.types.pallet_nomination_pools.pallet.Error.CannotWithdrawAny + | t.types.pallet_nomination_pools.pallet.Error.MinimumBondNotMet + | t.types.pallet_nomination_pools.pallet.Error.OverflowRisk + | t.types.pallet_nomination_pools.pallet.Error.NotDestroying + | t.types.pallet_nomination_pools.pallet.Error.NotNominator + | t.types.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying + | t.types.pallet_nomination_pools.pallet.Error.NotOpen + | t.types.pallet_nomination_pools.pallet.Error.MaxPools + | t.types.pallet_nomination_pools.pallet.Error.MaxPoolMembers + | t.types.pallet_nomination_pools.pallet.Error.CanNotChangeState + | t.types.pallet_nomination_pools.pallet.Error.DoesNotHavePermission + | t.types.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen + | t.types.pallet_nomination_pools.pallet.Error.Defensive + | t.types.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly export namespace Error { /** A (bonded) pool id does not exist. */ export interface PoolNotFound { @@ -613,48 +614,48 @@ export namespace Error { */ export interface Defensive { type: "Defensive" - value: t.pallet_nomination_pools.pallet.DefensiveError + value: t.types.pallet_nomination_pools.pallet.DefensiveError } /** Partial unbonding now allowed permissionlessly. */ export interface PartialUnbondNotAllowedPermissionlessly { type: "PartialUnbondNotAllowedPermissionlessly" } /** A (bonded) pool id does not exist. */ - export function PoolNotFound(): t.pallet_nomination_pools.pallet.Error.PoolNotFound { + export function PoolNotFound(): t.types.pallet_nomination_pools.pallet.Error.PoolNotFound { return { type: "PoolNotFound" } } /** An account is not a member. */ - export function PoolMemberNotFound(): t.pallet_nomination_pools.pallet.Error.PoolMemberNotFound { + export function PoolMemberNotFound(): t.types.pallet_nomination_pools.pallet.Error.PoolMemberNotFound { return { type: "PoolMemberNotFound" } } /** A reward pool does not exist. In all cases this is a system logic error. */ - export function RewardPoolNotFound(): t.pallet_nomination_pools.pallet.Error.RewardPoolNotFound { + export function RewardPoolNotFound(): t.types.pallet_nomination_pools.pallet.Error.RewardPoolNotFound { return { type: "RewardPoolNotFound" } } /** A sub pool does not exist. */ - export function SubPoolsNotFound(): t.pallet_nomination_pools.pallet.Error.SubPoolsNotFound { + export function SubPoolsNotFound(): t.types.pallet_nomination_pools.pallet.Error.SubPoolsNotFound { return { type: "SubPoolsNotFound" } } /** * An account is already delegating in another pool. An account may only belong to one * pool at a time. */ - export function AccountBelongsToOtherPool(): t.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool { + export function AccountBelongsToOtherPool(): t.types.pallet_nomination_pools.pallet.Error.AccountBelongsToOtherPool { return { type: "AccountBelongsToOtherPool" } } /** * The member is fully unbonded (and thus cannot access the bonded and reward pool * anymore to, for example, collect rewards). */ - export function FullyUnbonding(): t.pallet_nomination_pools.pallet.Error.FullyUnbonding { + export function FullyUnbonding(): t.types.pallet_nomination_pools.pallet.Error.FullyUnbonding { return { type: "FullyUnbonding" } } /** The member cannot unbond further chunks due to reaching the limit. */ - export function MaxUnbondingLimit(): t.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit { + export function MaxUnbondingLimit(): t.types.pallet_nomination_pools.pallet.Error.MaxUnbondingLimit { return { type: "MaxUnbondingLimit" } } /** None of the funds can be withdrawn yet because the bonding duration has not passed. */ - export function CannotWithdrawAny(): t.pallet_nomination_pools.pallet.Error.CannotWithdrawAny { + export function CannotWithdrawAny(): t.types.pallet_nomination_pools.pallet.Error.CannotWithdrawAny { return { type: "CannotWithdrawAny" } } /** @@ -664,50 +665,50 @@ export namespace Error { * `Pallet::depositor_min_bond`. The caller does not have nominating * permissions for the pool. Members can never unbond to a value below `MinJoinBond`. */ - export function MinimumBondNotMet(): t.pallet_nomination_pools.pallet.Error.MinimumBondNotMet { + export function MinimumBondNotMet(): t.types.pallet_nomination_pools.pallet.Error.MinimumBondNotMet { return { type: "MinimumBondNotMet" } } /** The transaction could not be executed due to overflow risk for the pool. */ - export function OverflowRisk(): t.pallet_nomination_pools.pallet.Error.OverflowRisk { + export function OverflowRisk(): t.types.pallet_nomination_pools.pallet.Error.OverflowRisk { return { type: "OverflowRisk" } } /** * A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for * other members to be permissionlessly unbonded. */ - export function NotDestroying(): t.pallet_nomination_pools.pallet.Error.NotDestroying { + export function NotDestroying(): t.types.pallet_nomination_pools.pallet.Error.NotDestroying { return { type: "NotDestroying" } } /** The caller does not have nominating permissions for the pool. */ - export function NotNominator(): t.pallet_nomination_pools.pallet.Error.NotNominator { + export function NotNominator(): t.types.pallet_nomination_pools.pallet.Error.NotNominator { return { type: "NotNominator" } } /** Either a) the caller cannot make a valid kick or b) the pool is not destroying. */ - export function NotKickerOrDestroying(): t.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying { + export function NotKickerOrDestroying(): t.types.pallet_nomination_pools.pallet.Error.NotKickerOrDestroying { return { type: "NotKickerOrDestroying" } } /** The pool is not open to join */ - export function NotOpen(): t.pallet_nomination_pools.pallet.Error.NotOpen { + export function NotOpen(): t.types.pallet_nomination_pools.pallet.Error.NotOpen { return { type: "NotOpen" } } /** The system is maxed out on pools. */ - export function MaxPools(): t.pallet_nomination_pools.pallet.Error.MaxPools { + export function MaxPools(): t.types.pallet_nomination_pools.pallet.Error.MaxPools { return { type: "MaxPools" } } /** Too many members in the pool or system. */ - export function MaxPoolMembers(): t.pallet_nomination_pools.pallet.Error.MaxPoolMembers { + export function MaxPoolMembers(): t.types.pallet_nomination_pools.pallet.Error.MaxPoolMembers { return { type: "MaxPoolMembers" } } /** The pools state cannot be changed. */ - export function CanNotChangeState(): t.pallet_nomination_pools.pallet.Error.CanNotChangeState { + export function CanNotChangeState(): t.types.pallet_nomination_pools.pallet.Error.CanNotChangeState { return { type: "CanNotChangeState" } } /** The caller does not have adequate permissions. */ - export function DoesNotHavePermission(): t.pallet_nomination_pools.pallet.Error.DoesNotHavePermission { + export function DoesNotHavePermission(): t.types.pallet_nomination_pools.pallet.Error.DoesNotHavePermission { return { type: "DoesNotHavePermission" } } /** Metadata exceeds [`Config::MaxMetadataLen`] */ - export function MetadataExceedsMaxLen(): t.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen { + export function MetadataExceedsMaxLen(): t.types.pallet_nomination_pools.pallet.Error.MetadataExceedsMaxLen { return { type: "MetadataExceedsMaxLen" } } /** @@ -715,50 +716,50 @@ export namespace Error { * maintainers. */ export function Defensive( - value: t.pallet_nomination_pools.pallet.Error.Defensive["value"], - ): t.pallet_nomination_pools.pallet.Error.Defensive { + value: t.types.pallet_nomination_pools.pallet.Error.Defensive["value"], + ): t.types.pallet_nomination_pools.pallet.Error.Defensive { return { type: "Defensive", value } } /** Partial unbonding now allowed permissionlessly. */ - export function PartialUnbondNotAllowedPermissionlessly(): t.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly { + export function PartialUnbondNotAllowedPermissionlessly(): t.types.pallet_nomination_pools.pallet.Error.PartialUnbondNotAllowedPermissionlessly { return { type: "PartialUnbondNotAllowedPermissionlessly" } } } /** Events of this pallet. */ export type Event = - | t.pallet_nomination_pools.pallet.Event.Created - | t.pallet_nomination_pools.pallet.Event.Bonded - | t.pallet_nomination_pools.pallet.Event.PaidOut - | t.pallet_nomination_pools.pallet.Event.Unbonded - | t.pallet_nomination_pools.pallet.Event.Withdrawn - | t.pallet_nomination_pools.pallet.Event.Destroyed - | t.pallet_nomination_pools.pallet.Event.StateChanged - | t.pallet_nomination_pools.pallet.Event.MemberRemoved - | t.pallet_nomination_pools.pallet.Event.RolesUpdated - | t.pallet_nomination_pools.pallet.Event.PoolSlashed - | t.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed + | t.types.pallet_nomination_pools.pallet.Event.Created + | t.types.pallet_nomination_pools.pallet.Event.Bonded + | t.types.pallet_nomination_pools.pallet.Event.PaidOut + | t.types.pallet_nomination_pools.pallet.Event.Unbonded + | t.types.pallet_nomination_pools.pallet.Event.Withdrawn + | t.types.pallet_nomination_pools.pallet.Event.Destroyed + | t.types.pallet_nomination_pools.pallet.Event.StateChanged + | t.types.pallet_nomination_pools.pallet.Event.MemberRemoved + | t.types.pallet_nomination_pools.pallet.Event.RolesUpdated + | t.types.pallet_nomination_pools.pallet.Event.PoolSlashed + | t.types.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed export namespace Event { /** A pool has been created. */ export interface Created { type: "Created" - depositor: t.sp_core.crypto.AccountId32 - pool_id: t.u32 + depositor: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 } /** A member has became bonded in a pool. */ export interface Bonded { type: "Bonded" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - bonded: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + bonded: t.types.u128 joined: boolean } /** A payout has been made to a member. */ export interface PaidOut { type: "PaidOut" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - payout: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + payout: t.types.u128 } /** * A member has unbonded from their pool. @@ -775,11 +776,11 @@ export namespace Event { */ export interface Unbonded { type: "Unbonded" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - balance: t.u128 - points: t.u128 - era: t.u32 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + balance: t.types.u128 + points: t.types.u128 + era: t.types.u32 } /** * A member has withdrawn from their pool. @@ -791,21 +792,21 @@ export namespace Event { */ export interface Withdrawn { type: "Withdrawn" - member: t.sp_core.crypto.AccountId32 - pool_id: t.u32 - balance: t.u128 - points: t.u128 + member: t.types.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + balance: t.types.u128 + points: t.types.u128 } /** A pool has been destroyed. */ export interface Destroyed { type: "Destroyed" - pool_id: t.u32 + pool_id: t.types.u32 } /** The state of a pool has changed */ export interface StateChanged { type: "StateChanged" - pool_id: t.u32 - new_state: t.pallet_nomination_pools.PoolState + pool_id: t.types.u32 + new_state: t.types.pallet_nomination_pools.PoolState } /** * A member has been removed from a pool. @@ -814,8 +815,8 @@ export namespace Event { */ export interface MemberRemoved { type: "MemberRemoved" - pool_id: t.u32 - member: t.sp_core.crypto.AccountId32 + pool_id: t.types.u32 + member: t.types.sp_core.crypto.AccountId32 } /** * The roles of a pool have been updated to the given new roles. Note that the depositor @@ -823,39 +824,39 @@ export namespace Event { */ export interface RolesUpdated { type: "RolesUpdated" - root: t.sp_core.crypto.AccountId32 | undefined - state_toggler: t.sp_core.crypto.AccountId32 | undefined - nominator: t.sp_core.crypto.AccountId32 | undefined + root: t.types.sp_core.crypto.AccountId32 | undefined + state_toggler: t.types.sp_core.crypto.AccountId32 | undefined + nominator: t.types.sp_core.crypto.AccountId32 | undefined } /** The active balance of pool `pool_id` has been slashed to `balance`. */ export interface PoolSlashed { type: "PoolSlashed" - pool_id: t.u32 - balance: t.u128 + pool_id: t.types.u32 + balance: t.types.u128 } /** The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ export interface UnbondingPoolSlashed { type: "UnbondingPoolSlashed" - pool_id: t.u32 - era: t.u32 - balance: t.u128 + pool_id: t.types.u32 + era: t.types.u32 + balance: t.types.u128 } /** A pool has been created. */ export function Created( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Created { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Created { return { type: "Created", ...value } } /** A member has became bonded in a pool. */ export function Bonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Bonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Bonded { return { type: "Bonded", ...value } } /** A payout has been made to a member. */ export function PaidOut( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.PaidOut { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.PaidOut { return { type: "PaidOut", ...value } } /** @@ -872,8 +873,8 @@ export namespace Event { * requested to be unbonded. */ export function Unbonded( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Unbonded { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Unbonded { return { type: "Unbonded", ...value } } /** @@ -885,20 +886,20 @@ export namespace Event { * will be 1. */ export function Withdrawn( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Withdrawn { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Withdrawn { return { type: "Withdrawn", ...value } } /** A pool has been destroyed. */ export function Destroyed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.Destroyed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.Destroyed { return { type: "Destroyed", ...value } } /** The state of a pool has changed */ export function StateChanged( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.StateChanged { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.StateChanged { return { type: "StateChanged", ...value } } /** @@ -907,8 +908,8 @@ export namespace Event { * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). */ export function MemberRemoved( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.MemberRemoved { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.MemberRemoved { return { type: "MemberRemoved", ...value } } /** @@ -916,20 +917,20 @@ export namespace Event { * can never change. */ export function RolesUpdated( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.RolesUpdated { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.RolesUpdated { return { type: "RolesUpdated", ...value } } /** The active balance of pool `pool_id` has been slashed to `balance`. */ export function PoolSlashed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.PoolSlashed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.PoolSlashed { return { type: "PoolSlashed", ...value } } /** The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. */ export function UnbondingPoolSlashed( - value: Omit, - ): t.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed { + value: Omit, + ): t.types.pallet_nomination_pools.pallet.Event.UnbondingPoolSlashed { return { type: "UnbondingPoolSlashed", ...value } } } diff --git a/codegen/_output/westend/pallet_offences/mod.ts b/codegen/_output/westend/types/pallet_offences/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_offences/mod.ts rename to codegen/_output/westend/types/pallet_offences/mod.ts diff --git a/codegen/_output/polkadot/pallet_offences/pallet.ts b/codegen/_output/westend/types/pallet_offences/pallet.ts similarity index 62% rename from codegen/_output/polkadot/pallet_offences/pallet.ts rename to codegen/_output/westend/types/pallet_offences/pallet.ts index 6475526f3..649196c9b 100644 --- a/codegen/_output/polkadot/pallet_offences/pallet.ts +++ b/codegen/_output/westend/types/pallet_offences/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $event: $.Codec = _codec.$44 +export const $event: $.Codec = _codec.$44 /** Events type. */ -export type Event = t.pallet_offences.pallet.Event.Offence +export type Event = t.types.pallet_offences.pallet.Event.Offence export namespace Event { /** * There is an offence reported of the given `kind` happened at the `session_index` and @@ -23,8 +23,8 @@ export namespace Event { * \[kind, timeslot\]. */ export function Offence( - value: Omit, - ): t.pallet_offences.pallet.Event.Offence { + value: Omit, + ): t.types.pallet_offences.pallet.Event.Offence { return { type: "Offence", ...value } } } diff --git a/codegen/_output/westend/types/pallet_preimage/mod.ts b/codegen/_output/westend/types/pallet_preimage/mod.ts new file mode 100644 index 000000000..324126816 --- /dev/null +++ b/codegen/_output/westend/types/pallet_preimage/mod.ts @@ -0,0 +1,34 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $requestStatus: $.Codec = _codec.$451 + +export type RequestStatus = + | t.types.pallet_preimage.RequestStatus.Unrequested + | t.types.pallet_preimage.RequestStatus.Requested +export namespace RequestStatus { + export interface Unrequested { + type: "Unrequested" + deposit: [t.types.sp_core.crypto.AccountId32, t.types.u128] + len: t.types.u32 + } + export interface Requested { + type: "Requested" + deposit: [t.types.sp_core.crypto.AccountId32, t.types.u128] | undefined + count: t.types.u32 + len: t.types.u32 | undefined + } + export function Unrequested( + value: Omit, + ): t.types.pallet_preimage.RequestStatus.Unrequested { + return { type: "Unrequested", ...value } + } + export function Requested( + value: Omit, + ): t.types.pallet_preimage.RequestStatus.Requested { + return { type: "Requested", ...value } + } +} diff --git a/codegen/_output/westend/pallet_preimage/pallet.ts b/codegen/_output/westend/types/pallet_preimage/pallet.ts similarity index 66% rename from codegen/_output/westend/pallet_preimage/pallet.ts rename to codegen/_output/westend/types/pallet_preimage/pallet.ts index fdef5e58f..b642211ec 100644 --- a/codegen/_output/westend/pallet_preimage/pallet.ts +++ b/codegen/_output/westend/types/pallet_preimage/pallet.ts @@ -1,19 +1,19 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$184 +export const $call: $.Codec = _codec.$184 -export const $error: $.Codec = _codec.$455 +export const $error: $.Codec = _codec.$455 -export const $event: $.Codec = _codec.$34 +export const $event: $.Codec = _codec.$34 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_preimage.pallet.Call.note_preimage - | t.pallet_preimage.pallet.Call.unnote_preimage - | t.pallet_preimage.pallet.Call.request_preimage - | t.pallet_preimage.pallet.Call.unrequest_preimage + | t.types.pallet_preimage.pallet.Call.note_preimage + | t.types.pallet_preimage.pallet.Call.unnote_preimage + | t.types.pallet_preimage.pallet.Call.request_preimage + | t.types.pallet_preimage.pallet.Call.unrequest_preimage export namespace Call { /** * Register a preimage on-chain. @@ -35,7 +35,7 @@ export namespace Call { */ export interface unnote_preimage { type: "unnote_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Request a preimage be uploaded to the chain without paying any fees or deposits. @@ -45,7 +45,7 @@ export namespace Call { */ export interface request_preimage { type: "request_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Clear a previously made request for a preimage. @@ -54,7 +54,7 @@ export namespace Call { */ export interface unrequest_preimage { type: "unrequest_preimage" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Register a preimage on-chain. @@ -63,8 +63,8 @@ export namespace Call { * the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. */ export function note_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.note_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.note_preimage { return { type: "note_preimage", ...value } } /** @@ -76,8 +76,8 @@ export namespace Call { * - `len`: The length of the preimage of `hash`. */ export function unnote_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.unnote_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.unnote_preimage { return { type: "unnote_preimage", ...value } } /** @@ -87,8 +87,8 @@ export namespace Call { * a user may have paid, and take the control of the preimage out of their hands. */ export function request_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.request_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.request_preimage { return { type: "request_preimage", ...value } } /** @@ -97,8 +97,8 @@ export namespace Call { * NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. */ export function unrequest_preimage( - value: Omit, - ): t.pallet_preimage.pallet.Call.unrequest_preimage { + value: Omit, + ): t.types.pallet_preimage.pallet.Call.unrequest_preimage { return { type: "unrequest_preimage", ...value } } } @@ -114,41 +114,41 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_preimage.pallet.Event.Noted - | t.pallet_preimage.pallet.Event.Requested - | t.pallet_preimage.pallet.Event.Cleared + | t.types.pallet_preimage.pallet.Event.Noted + | t.types.pallet_preimage.pallet.Event.Requested + | t.types.pallet_preimage.pallet.Event.Cleared export namespace Event { /** A preimage has been noted. */ export interface Noted { type: "Noted" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has been requested. */ export interface Requested { type: "Requested" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has ben cleared. */ export interface Cleared { type: "Cleared" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** A preimage has been noted. */ export function Noted( - value: Omit, - ): t.pallet_preimage.pallet.Event.Noted { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Noted { return { type: "Noted", ...value } } /** A preimage has been requested. */ export function Requested( - value: Omit, - ): t.pallet_preimage.pallet.Event.Requested { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Requested { return { type: "Requested", ...value } } /** A preimage has ben cleared. */ export function Cleared( - value: Omit, - ): t.pallet_preimage.pallet.Event.Cleared { + value: Omit, + ): t.types.pallet_preimage.pallet.Event.Cleared { return { type: "Cleared", ...value } } } diff --git a/codegen/_output/westend/types/pallet_proxy/mod.ts b/codegen/_output/westend/types/pallet_proxy/mod.ts new file mode 100644 index 000000000..db212b5e5 --- /dev/null +++ b/codegen/_output/westend/types/pallet_proxy/mod.ts @@ -0,0 +1,29 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $announcement: $.Codec = _codec.$585 + +export const $proxyDefinition: $.Codec = _codec.$581 + +export interface Announcement { + real: t.types.sp_core.crypto.AccountId32 + call_hash: t.types.primitive_types.H256 + height: t.types.u32 +} + +export function Announcement(value: t.types.pallet_proxy.Announcement) { + return value +} + +export interface ProxyDefinition { + delegate: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 +} + +export function ProxyDefinition(value: t.types.pallet_proxy.ProxyDefinition) { + return value +} diff --git a/codegen/_output/westend/pallet_proxy/pallet.ts b/codegen/_output/westend/types/pallet_proxy/pallet.ts similarity index 74% rename from codegen/_output/westend/pallet_proxy/pallet.ts rename to codegen/_output/westend/types/pallet_proxy/pallet.ts index e98acf198..8833ea7d3 100644 --- a/codegen/_output/westend/pallet_proxy/pallet.ts +++ b/codegen/_output/westend/types/pallet_proxy/pallet.ts @@ -1,25 +1,25 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$303 +export const $call: $.Codec = _codec.$303 -export const $error: $.Codec = _codec.$587 +export const $error: $.Codec = _codec.$587 -export const $event: $.Codec = _codec.$78 +export const $event: $.Codec = _codec.$78 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_proxy.pallet.Call.proxy - | t.pallet_proxy.pallet.Call.add_proxy - | t.pallet_proxy.pallet.Call.remove_proxy - | t.pallet_proxy.pallet.Call.remove_proxies - | t.pallet_proxy.pallet.Call.create_pure - | t.pallet_proxy.pallet.Call.kill_pure - | t.pallet_proxy.pallet.Call.announce - | t.pallet_proxy.pallet.Call.remove_announcement - | t.pallet_proxy.pallet.Call.reject_announcement - | t.pallet_proxy.pallet.Call.proxy_announced + | t.types.pallet_proxy.pallet.Call.proxy + | t.types.pallet_proxy.pallet.Call.add_proxy + | t.types.pallet_proxy.pallet.Call.remove_proxy + | t.types.pallet_proxy.pallet.Call.remove_proxies + | t.types.pallet_proxy.pallet.Call.create_pure + | t.types.pallet_proxy.pallet.Call.kill_pure + | t.types.pallet_proxy.pallet.Call.announce + | t.types.pallet_proxy.pallet.Call.remove_announcement + | t.types.pallet_proxy.pallet.Call.reject_announcement + | t.types.pallet_proxy.pallet.Call.proxy_announced export namespace Call { /** * Dispatch the given `call` from an account that the sender is authorised for through @@ -36,9 +36,9 @@ export namespace Call { */ export interface proxy { type: "proxy" - real: t.sp_runtime.multiaddress.MultiAddress - force_proxy_type: t.polkadot_runtime.ProxyType | undefined - call: t.polkadot_runtime.RuntimeCall + real: t.types.sp_runtime.multiaddress.MultiAddress + force_proxy_type: t.types.polkadot_runtime.ProxyType | undefined + call: t.types.polkadot_runtime.RuntimeCall } /** * Register a proxy account for the sender that is able to make calls on its behalf. @@ -53,9 +53,9 @@ export namespace Call { */ export interface add_proxy { type: "add_proxy" - delegate: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** * Unregister a proxy account for the sender. @@ -68,9 +68,9 @@ export namespace Call { */ export interface remove_proxy { type: "remove_proxy" - delegate: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** * Unregister all proxy accounts for the sender. @@ -105,9 +105,9 @@ export namespace Call { */ export interface create_pure { type: "create_pure" - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 - index: t.u16 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 + index: t.types.u16 } /** * Removes a previously spawned pure proxy. @@ -129,11 +129,11 @@ export namespace Call { */ export interface kill_pure { type: "kill_pure" - spawner: t.sp_runtime.multiaddress.MultiAddress - proxy_type: t.polkadot_runtime.ProxyType - index: t.u16 - height: t.Compact - ext_index: t.Compact + spawner: t.types.sp_runtime.multiaddress.MultiAddress + proxy_type: t.types.polkadot_runtime.ProxyType + index: t.types.u16 + height: t.Compact + ext_index: t.Compact } /** * Publish the hash of a proxy-call that will be made in the future. @@ -154,8 +154,8 @@ export namespace Call { */ export interface announce { type: "announce" - real: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + real: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Remove a given announcement. @@ -171,8 +171,8 @@ export namespace Call { */ export interface remove_announcement { type: "remove_announcement" - real: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + real: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Remove the given announcement of a delegate. @@ -188,8 +188,8 @@ export namespace Call { */ export interface reject_announcement { type: "reject_announcement" - delegate: t.sp_runtime.multiaddress.MultiAddress - call_hash: t.primitive_types.H256 + delegate: t.types.sp_runtime.multiaddress.MultiAddress + call_hash: t.types.primitive_types.H256 } /** * Dispatch the given `call` from an account that the sender is authorized for through @@ -206,10 +206,10 @@ export namespace Call { */ export interface proxy_announced { type: "proxy_announced" - delegate: t.sp_runtime.multiaddress.MultiAddress - real: t.sp_runtime.multiaddress.MultiAddress - force_proxy_type: t.polkadot_runtime.ProxyType | undefined - call: t.polkadot_runtime.RuntimeCall + delegate: t.types.sp_runtime.multiaddress.MultiAddress + real: t.types.sp_runtime.multiaddress.MultiAddress + force_proxy_type: t.types.polkadot_runtime.ProxyType | undefined + call: t.types.polkadot_runtime.RuntimeCall } /** * Dispatch the given `call` from an account that the sender is authorised for through @@ -225,8 +225,8 @@ export namespace Call { * - `call`: The call to be made by the `real` account. */ export function proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.proxy { return { type: "proxy", ...value } } /** @@ -241,8 +241,8 @@ export namespace Call { * zero. */ export function add_proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.add_proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.add_proxy { return { type: "add_proxy", ...value } } /** @@ -255,8 +255,8 @@ export namespace Call { * - `proxy_type`: The permissions currently enabled for the removed proxy account. */ export function remove_proxy( - value: Omit, - ): t.pallet_proxy.pallet.Call.remove_proxy { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.remove_proxy { return { type: "remove_proxy", ...value } } /** @@ -267,7 +267,7 @@ export namespace Call { * WARNING: This may be called on accounts created by `pure`, however if done, then * the unreserved fees will be inaccessible. **All access to this account will be lost.** */ - export function remove_proxies(): t.pallet_proxy.pallet.Call.remove_proxies { + export function remove_proxies(): t.types.pallet_proxy.pallet.Call.remove_proxies { return { type: "remove_proxies" } } /** @@ -291,8 +291,8 @@ export namespace Call { * Fails if there are insufficient funds to pay for deposit. */ export function create_pure( - value: Omit, - ): t.pallet_proxy.pallet.Call.create_pure { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.create_pure { return { type: "create_pure", ...value } } /** @@ -314,8 +314,8 @@ export namespace Call { * account whose `pure` call has corresponding parameters. */ export function kill_pure( - value: Omit, - ): t.pallet_proxy.pallet.Call.kill_pure { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.kill_pure { return { type: "kill_pure", ...value } } /** @@ -336,8 +336,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made by the `real` account. */ export function announce( - value: Omit, - ): t.pallet_proxy.pallet.Call.announce { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.announce { return { type: "announce", ...value } } /** @@ -353,8 +353,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made by the `real` account. */ export function remove_announcement( - value: Omit, - ): t.pallet_proxy.pallet.Call.remove_announcement { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.remove_announcement { return { type: "remove_announcement", ...value } } /** @@ -370,8 +370,8 @@ export namespace Call { * - `call_hash`: The hash of the call to be made. */ export function reject_announcement( - value: Omit, - ): t.pallet_proxy.pallet.Call.reject_announcement { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.reject_announcement { return { type: "reject_announcement", ...value } } /** @@ -388,8 +388,8 @@ export namespace Call { * - `call`: The call to be made by the `real` account. */ export function proxy_announced( - value: Omit, - ): t.pallet_proxy.pallet.Call.proxy_announced { + value: Omit, + ): t.types.pallet_proxy.pallet.Call.proxy_announced { return { type: "proxy_announced", ...value } } } @@ -407,16 +407,16 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_proxy.pallet.Event.ProxyExecuted - | t.pallet_proxy.pallet.Event.PureCreated - | t.pallet_proxy.pallet.Event.Announced - | t.pallet_proxy.pallet.Event.ProxyAdded - | t.pallet_proxy.pallet.Event.ProxyRemoved + | t.types.pallet_proxy.pallet.Event.ProxyExecuted + | t.types.pallet_proxy.pallet.Event.PureCreated + | t.types.pallet_proxy.pallet.Event.Announced + | t.types.pallet_proxy.pallet.Event.ProxyAdded + | t.types.pallet_proxy.pallet.Event.ProxyRemoved export namespace Event { /** A proxy was executed correctly, with the given. */ export interface ProxyExecuted { type: "ProxyExecuted" - result: null | C.ChainError + result: null | C.ChainError } /** * A pure account has been created by new proxy with given @@ -424,38 +424,38 @@ export namespace Event { */ export interface PureCreated { type: "PureCreated" - pure: t.sp_core.crypto.AccountId32 - who: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - disambiguation_index: t.u16 + pure: t.types.sp_core.crypto.AccountId32 + who: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + disambiguation_index: t.types.u16 } /** An announcement was placed to make a call in the future. */ export interface Announced { type: "Announced" - real: t.sp_core.crypto.AccountId32 - proxy: t.sp_core.crypto.AccountId32 - call_hash: t.primitive_types.H256 + real: t.types.sp_core.crypto.AccountId32 + proxy: t.types.sp_core.crypto.AccountId32 + call_hash: t.types.primitive_types.H256 } /** A proxy was added. */ export interface ProxyAdded { type: "ProxyAdded" - delegator: t.sp_core.crypto.AccountId32 - delegatee: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegator: t.types.sp_core.crypto.AccountId32 + delegatee: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** A proxy was removed. */ export interface ProxyRemoved { type: "ProxyRemoved" - delegator: t.sp_core.crypto.AccountId32 - delegatee: t.sp_core.crypto.AccountId32 - proxy_type: t.polkadot_runtime.ProxyType - delay: t.u32 + delegator: t.types.sp_core.crypto.AccountId32 + delegatee: t.types.sp_core.crypto.AccountId32 + proxy_type: t.types.polkadot_runtime.ProxyType + delay: t.types.u32 } /** A proxy was executed correctly, with the given. */ export function ProxyExecuted( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyExecuted { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyExecuted { return { type: "ProxyExecuted", ...value } } /** @@ -463,26 +463,26 @@ export namespace Event { * disambiguation index and proxy type. */ export function PureCreated( - value: Omit, - ): t.pallet_proxy.pallet.Event.PureCreated { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.PureCreated { return { type: "PureCreated", ...value } } /** An announcement was placed to make a call in the future. */ export function Announced( - value: Omit, - ): t.pallet_proxy.pallet.Event.Announced { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.Announced { return { type: "Announced", ...value } } /** A proxy was added. */ export function ProxyAdded( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyAdded { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyAdded { return { type: "ProxyAdded", ...value } } /** A proxy was removed. */ export function ProxyRemoved( - value: Omit, - ): t.pallet_proxy.pallet.Event.ProxyRemoved { + value: Omit, + ): t.types.pallet_proxy.pallet.Event.ProxyRemoved { return { type: "ProxyRemoved", ...value } } } diff --git a/codegen/_output/westend/types/pallet_scheduler/mod.ts b/codegen/_output/westend/types/pallet_scheduler/mod.ts new file mode 100644 index 000000000..6aa7c8d49 --- /dev/null +++ b/codegen/_output/westend/types/pallet_scheduler/mod.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $scheduled: $.Codec = _codec.$179 + +export interface Scheduled { + maybe_id: Uint8Array | undefined + priority: t.types.u8 + call: t.types.frame_support.traits.preimages.Bounded + maybe_periodic: [t.types.u32, t.types.u32] | undefined + origin: t.types.polkadot_runtime.OriginCaller +} + +export function Scheduled(value: t.types.pallet_scheduler.Scheduled) { + return value +} diff --git a/codegen/_output/polkadot/pallet_scheduler/pallet.ts b/codegen/_output/westend/types/pallet_scheduler/pallet.ts similarity index 52% rename from codegen/_output/polkadot/pallet_scheduler/pallet.ts rename to codegen/_output/westend/types/pallet_scheduler/pallet.ts index f960ab872..407f45522 100644 --- a/codegen/_output/polkadot/pallet_scheduler/pallet.ts +++ b/codegen/_output/westend/types/pallet_scheduler/pallet.ts @@ -1,44 +1,44 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$182 +export const $call: $.Codec = _codec.$182 -export const $error: $.Codec = _codec.$450 +export const $error: $.Codec = _codec.$450 -export const $event: $.Codec = _codec.$29 +export const $event: $.Codec = _codec.$29 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_scheduler.pallet.Call.schedule - | t.pallet_scheduler.pallet.Call.cancel - | t.pallet_scheduler.pallet.Call.schedule_named - | t.pallet_scheduler.pallet.Call.cancel_named - | t.pallet_scheduler.pallet.Call.schedule_after - | t.pallet_scheduler.pallet.Call.schedule_named_after + | t.types.pallet_scheduler.pallet.Call.schedule + | t.types.pallet_scheduler.pallet.Call.cancel + | t.types.pallet_scheduler.pallet.Call.schedule_named + | t.types.pallet_scheduler.pallet.Call.cancel_named + | t.types.pallet_scheduler.pallet.Call.schedule_after + | t.types.pallet_scheduler.pallet.Call.schedule_named_after export namespace Call { /** Anonymously schedule a task. */ export interface schedule { type: "schedule" - when: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + when: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Cancel an anonymously scheduled task. */ export interface cancel { type: "cancel" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Schedule a named task. */ export interface schedule_named { type: "schedule_named" id: Uint8Array - when: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + when: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Cancel a named scheduled task. */ export interface cancel_named { @@ -54,10 +54,10 @@ export namespace Call { */ export interface schedule_after { type: "schedule_after" - after: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + after: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** * Schedule a named task after a delay. @@ -69,33 +69,33 @@ export namespace Call { export interface schedule_named_after { type: "schedule_named_after" id: Uint8Array - after: t.u32 - maybe_periodic: [t.u32, t.u32] | undefined - priority: t.u8 - call: t.polkadot_runtime.RuntimeCall + after: t.types.u32 + maybe_periodic: [t.types.u32, t.types.u32] | undefined + priority: t.types.u8 + call: t.types.polkadot_runtime.RuntimeCall } /** Anonymously schedule a task. */ export function schedule( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule { return { type: "schedule", ...value } } /** Cancel an anonymously scheduled task. */ export function cancel( - value: Omit, - ): t.pallet_scheduler.pallet.Call.cancel { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.cancel { return { type: "cancel", ...value } } /** Schedule a named task. */ export function schedule_named( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_named { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_named { return { type: "schedule_named", ...value } } /** Cancel a named scheduled task. */ export function cancel_named( - value: Omit, - ): t.pallet_scheduler.pallet.Call.cancel_named { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.cancel_named { return { type: "cancel_named", ...value } } /** @@ -106,8 +106,8 @@ export namespace Call { * # */ export function schedule_after( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_after { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_after { return { type: "schedule_after", ...value } } /** @@ -118,8 +118,8 @@ export namespace Call { * # */ export function schedule_named_after( - value: Omit, - ): t.pallet_scheduler.pallet.Call.schedule_named_after { + value: Omit, + ): t.types.pallet_scheduler.pallet.Call.schedule_named_after { return { type: "schedule_named_after", ...value } } } @@ -134,84 +134,84 @@ export type Error = /** Events type. */ export type Event = - | t.pallet_scheduler.pallet.Event.Scheduled - | t.pallet_scheduler.pallet.Event.Canceled - | t.pallet_scheduler.pallet.Event.Dispatched - | t.pallet_scheduler.pallet.Event.CallUnavailable - | t.pallet_scheduler.pallet.Event.PeriodicFailed - | t.pallet_scheduler.pallet.Event.PermanentlyOverweight + | t.types.pallet_scheduler.pallet.Event.Scheduled + | t.types.pallet_scheduler.pallet.Event.Canceled + | t.types.pallet_scheduler.pallet.Event.Dispatched + | t.types.pallet_scheduler.pallet.Event.CallUnavailable + | t.types.pallet_scheduler.pallet.Event.PeriodicFailed + | t.types.pallet_scheduler.pallet.Event.PermanentlyOverweight export namespace Event { /** Scheduled some task. */ export interface Scheduled { type: "Scheduled" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Canceled some task. */ export interface Canceled { type: "Canceled" - when: t.u32 - index: t.u32 + when: t.types.u32 + index: t.types.u32 } /** Dispatched some task. */ export interface Dispatched { type: "Dispatched" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined - result: null | C.ChainError + result: null | C.ChainError } /** The call for the provided hash was not found so the task has been aborted. */ export interface CallUnavailable { type: "CallUnavailable" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** The given task was unable to be renewed since the agenda is full at that block. */ export interface PeriodicFailed { type: "PeriodicFailed" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** The given task can never be executed since it is overweight. */ export interface PermanentlyOverweight { type: "PermanentlyOverweight" - task: [t.u32, t.u32] + task: [t.types.u32, t.types.u32] id: Uint8Array | undefined } /** Scheduled some task. */ export function Scheduled( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Scheduled { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Scheduled { return { type: "Scheduled", ...value } } /** Canceled some task. */ export function Canceled( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Canceled { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Canceled { return { type: "Canceled", ...value } } /** Dispatched some task. */ export function Dispatched( - value: Omit, - ): t.pallet_scheduler.pallet.Event.Dispatched { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.Dispatched { return { type: "Dispatched", ...value } } /** The call for the provided hash was not found so the task has been aborted. */ export function CallUnavailable( - value: Omit, - ): t.pallet_scheduler.pallet.Event.CallUnavailable { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.CallUnavailable { return { type: "CallUnavailable", ...value } } /** The given task was unable to be renewed since the agenda is full at that block. */ export function PeriodicFailed( - value: Omit, - ): t.pallet_scheduler.pallet.Event.PeriodicFailed { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.PeriodicFailed { return { type: "PeriodicFailed", ...value } } /** The given task can never be executed since it is overweight. */ export function PermanentlyOverweight( - value: Omit, - ): t.pallet_scheduler.pallet.Event.PermanentlyOverweight { + value: Omit, + ): t.types.pallet_scheduler.pallet.Event.PermanentlyOverweight { return { type: "PermanentlyOverweight", ...value } } } diff --git a/codegen/_output/westend/pallet_session/mod.ts b/codegen/_output/westend/types/pallet_session/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_session/mod.ts rename to codegen/_output/westend/types/pallet_session/mod.ts diff --git a/codegen/_output/westend/pallet_session/pallet.ts b/codegen/_output/westend/types/pallet_session/pallet.ts similarity index 80% rename from codegen/_output/westend/pallet_session/pallet.ts rename to codegen/_output/westend/types/pallet_session/pallet.ts index ef7524106..f8f962a9f 100644 --- a/codegen/_output/westend/pallet_session/pallet.ts +++ b/codegen/_output/westend/types/pallet_session/pallet.ts @@ -1,15 +1,17 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$211 +export const $call: $.Codec = _codec.$211 -export const $error: $.Codec = _codec.$515 +export const $error: $.Codec = _codec.$515 -export const $event: $.Codec = _codec.$46 +export const $event: $.Codec = _codec.$46 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_session.pallet.Call.set_keys | t.pallet_session.pallet.Call.purge_keys +export type Call = + | t.types.pallet_session.pallet.Call.set_keys + | t.types.pallet_session.pallet.Call.purge_keys export namespace Call { /** * Sets the session key(s) of the function caller to `keys`. @@ -29,7 +31,7 @@ export namespace Call { */ export interface set_keys { type: "set_keys" - keys: t.polkadot_runtime.SessionKeys + keys: t.types.polkadot_runtime.SessionKeys proof: Uint8Array } /** @@ -70,8 +72,8 @@ export namespace Call { * # */ export function set_keys( - value: Omit, - ): t.pallet_session.pallet.Call.set_keys { + value: Omit, + ): t.types.pallet_session.pallet.Call.set_keys { return { type: "set_keys", ...value } } /** @@ -92,7 +94,7 @@ export namespace Call { * - DbWrites per key id: `KeyOwner` * # */ - export function purge_keys(): t.pallet_session.pallet.Call.purge_keys { + export function purge_keys(): t.types.pallet_session.pallet.Call.purge_keys { return { type: "purge_keys" } } } @@ -106,7 +108,7 @@ export type Error = | "NoAccount" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.pallet_session.pallet.Event.NewSession +export type Event = t.types.pallet_session.pallet.Event.NewSession export namespace Event { /** * New session has happened. Note that the argument is the session index, not the @@ -114,15 +116,15 @@ export namespace Event { */ export interface NewSession { type: "NewSession" - session_index: t.u32 + session_index: t.types.u32 } /** * New session has happened. Note that the argument is the session index, not the * block number as the type might suggest. */ export function NewSession( - value: Omit, - ): t.pallet_session.pallet.Event.NewSession { + value: Omit, + ): t.types.pallet_session.pallet.Event.NewSession { return { type: "NewSession", ...value } } } diff --git a/codegen/_output/westend/types/pallet_staking/mod.ts b/codegen/_output/westend/types/pallet_staking/mod.ts new file mode 100644 index 000000000..8f1e68cf8 --- /dev/null +++ b/codegen/_output/westend/types/pallet_staking/mod.ts @@ -0,0 +1,177 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet/mod.ts" +export * as slashing from "./slashing.ts" + +export const $activeEraInfo: $.Codec = _codec.$492 + +export const $eraRewardPoints: $.Codec = _codec.$495 + +export const $exposure: $.Codec = _codec.$57 + +export const $forcing: $.Codec = _codec.$499 + +export const $individualExposure: $.Codec = _codec.$60 + +export const $nominations: $.Codec = _codec.$490 + +export const $releases: $.Codec = _codec.$507 + +export const $rewardDestination: $.Codec = _codec.$203 + +export const $stakingLedger: $.Codec = _codec.$485 + +export const $unappliedSlash: $.Codec = _codec.$501 + +export const $unlockChunk: $.Codec = _codec.$487 + +export const $validatorPrefs: $.Codec = _codec.$40 + +export interface ActiveEraInfo { + index: t.types.u32 + start: t.types.u64 | undefined +} + +export function ActiveEraInfo(value: t.types.pallet_staking.ActiveEraInfo) { + return value +} + +export interface EraRewardPoints { + total: t.types.u32 + individual: Map +} + +export function EraRewardPoints(value: t.types.pallet_staking.EraRewardPoints) { + return value +} + +export interface Exposure { + total: t.Compact + own: t.Compact + others: Array +} + +export function Exposure(value: t.types.pallet_staking.Exposure) { + return value +} + +export type Forcing = "NotForcing" | "ForceNew" | "ForceNone" | "ForceAlways" + +export interface IndividualExposure { + who: t.types.sp_core.crypto.AccountId32 + value: t.Compact +} + +export function IndividualExposure(value: t.types.pallet_staking.IndividualExposure) { + return value +} + +export interface Nominations { + targets: Array + submitted_in: t.types.u32 + suppressed: boolean +} + +export function Nominations(value: t.types.pallet_staking.Nominations) { + return value +} + +export type Releases = + | "V1_0_0Ancient" + | "V2_0_0" + | "V3_0_0" + | "V4_0_0" + | "V5_0_0" + | "V6_0_0" + | "V7_0_0" + | "V8_0_0" + | "V9_0_0" + | "V10_0_0" + | "V11_0_0" + | "V12_0_0" + +export type RewardDestination = + | t.types.pallet_staking.RewardDestination.Staked + | t.types.pallet_staking.RewardDestination.Stash + | t.types.pallet_staking.RewardDestination.Controller + | t.types.pallet_staking.RewardDestination.Account + | t.types.pallet_staking.RewardDestination.None +export namespace RewardDestination { + export interface Staked { + type: "Staked" + } + export interface Stash { + type: "Stash" + } + export interface Controller { + type: "Controller" + } + export interface Account { + type: "Account" + value: t.types.sp_core.crypto.AccountId32 + } + export interface None { + type: "None" + } + export function Staked(): t.types.pallet_staking.RewardDestination.Staked { + return { type: "Staked" } + } + export function Stash(): t.types.pallet_staking.RewardDestination.Stash { + return { type: "Stash" } + } + export function Controller(): t.types.pallet_staking.RewardDestination.Controller { + return { type: "Controller" } + } + export function Account( + value: t.types.pallet_staking.RewardDestination.Account["value"], + ): t.types.pallet_staking.RewardDestination.Account { + return { type: "Account", value } + } + export function None(): t.types.pallet_staking.RewardDestination.None { + return { type: "None" } + } +} + +export interface StakingLedger { + stash: t.types.sp_core.crypto.AccountId32 + total: t.Compact + active: t.Compact + unlocking: Array + claimed_rewards: Array +} + +export function StakingLedger(value: t.types.pallet_staking.StakingLedger) { + return value +} + +export interface UnappliedSlash { + validator: t.types.sp_core.crypto.AccountId32 + own: t.types.u128 + others: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> + reporters: Array + payout: t.types.u128 +} + +export function UnappliedSlash(value: t.types.pallet_staking.UnappliedSlash) { + return value +} + +export interface UnlockChunk { + value: t.Compact + era: t.Compact +} + +export function UnlockChunk(value: t.types.pallet_staking.UnlockChunk) { + return value +} + +export interface ValidatorPrefs { + commission: t.Compact + blocked: boolean +} + +export function ValidatorPrefs(value: t.types.pallet_staking.ValidatorPrefs) { + return value +} diff --git a/codegen/_output/westend/pallet_staking/pallet/mod.ts b/codegen/_output/westend/types/pallet_staking/pallet/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_staking/pallet/mod.ts rename to codegen/_output/westend/types/pallet_staking/pallet/mod.ts diff --git a/codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts b/codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts rename to codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/mod.ts diff --git a/codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts b/codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts new file mode 100644 index 000000000..724ded6e5 --- /dev/null +++ b/codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/$$sp_arithmetic/per_things.ts @@ -0,0 +1,69 @@ +import { $ } from "../../../../../../capi.ts" +import * as _codec from "../../../../../../codecs.ts" +import type * as t from "../../../../../../mod.ts" + +export const $perbill: $.Codec< + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill +> = _codec.$210 + +export const $percent: $.Codec< + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent +> = _codec.$209 + +export type Perbill = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove +export namespace Perbill { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_arithmetic.per_things.Perbill + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Noop { + return { type: "Noop" } + } + export function Set( + value: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill.Remove { + return { type: "Remove" } + } +} + +export type Percent = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove +export namespace Percent { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.sp_arithmetic.per_things.Percent + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Noop { + return { type: "Noop" } + } + export function Set( + value: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts b/codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts new file mode 100644 index 000000000..bfc666f9b --- /dev/null +++ b/codegen/_output/westend/types/pallet_staking/pallet/pallet/ConfigOp/mod.ts @@ -0,0 +1,65 @@ +import { $ } from "../../../../../capi.ts" +import * as _codec from "../../../../../codecs.ts" +import type * as t from "../../../../../mod.ts" + +export * as $$sp_arithmetic from "./$$sp_arithmetic/mod.ts" + +export const $$$u128: $.Codec = _codec.$207 + +export const $$$u32: $.Codec = _codec.$208 + +export type $$u128 = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove +export namespace $$u128 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u128 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128.Remove { + return { type: "Remove" } + } +} + +export type $$u32 = + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set + | t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove +export namespace $$u32 { + export interface Noop { + type: "Noop" + } + export interface Set { + type: "Set" + value: t.types.u32 + } + export interface Remove { + type: "Remove" + } + export function Noop(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Noop { + return { type: "Noop" } + } + export function Set( + value: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set["value"], + ): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Set { + return { type: "Set", value } + } + export function Remove(): t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32.Remove { + return { type: "Remove" } + } +} diff --git a/codegen/_output/westend/pallet_staking/pallet/pallet/mod.ts b/codegen/_output/westend/types/pallet_staking/pallet/pallet/mod.ts similarity index 76% rename from codegen/_output/westend/pallet_staking/pallet/pallet/mod.ts rename to codegen/_output/westend/types/pallet_staking/pallet/pallet/mod.ts index 0e0dd4bc3..14378b453 100644 --- a/codegen/_output/westend/pallet_staking/pallet/pallet/mod.ts +++ b/codegen/_output/westend/types/pallet_staking/pallet/pallet/mod.ts @@ -1,42 +1,42 @@ -import { $ } from "../../../capi.ts" -import * as _codec from "../../../codecs.ts" -import type * as t from "../../../mod.ts" +import { $ } from "../../../../capi.ts" +import * as _codec from "../../../../codecs.ts" +import type * as t from "../../../../mod.ts" export * as ConfigOp from "./ConfigOp/mod.ts" -export const $call: $.Codec = _codec.$202 +export const $call: $.Codec = _codec.$202 -export const $error: $.Codec = _codec.$508 +export const $error: $.Codec = _codec.$508 -export const $event: $.Codec = _codec.$39 +export const $event: $.Codec = _codec.$39 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_staking.pallet.pallet.Call.bond - | t.pallet_staking.pallet.pallet.Call.bond_extra - | t.pallet_staking.pallet.pallet.Call.unbond - | t.pallet_staking.pallet.pallet.Call.withdraw_unbonded - | t.pallet_staking.pallet.pallet.Call.validate - | t.pallet_staking.pallet.pallet.Call.nominate - | t.pallet_staking.pallet.pallet.Call.chill - | t.pallet_staking.pallet.pallet.Call.set_payee - | t.pallet_staking.pallet.pallet.Call.set_controller - | t.pallet_staking.pallet.pallet.Call.set_validator_count - | t.pallet_staking.pallet.pallet.Call.increase_validator_count - | t.pallet_staking.pallet.pallet.Call.scale_validator_count - | t.pallet_staking.pallet.pallet.Call.force_no_eras - | t.pallet_staking.pallet.pallet.Call.force_new_era - | t.pallet_staking.pallet.pallet.Call.set_invulnerables - | t.pallet_staking.pallet.pallet.Call.force_unstake - | t.pallet_staking.pallet.pallet.Call.force_new_era_always - | t.pallet_staking.pallet.pallet.Call.cancel_deferred_slash - | t.pallet_staking.pallet.pallet.Call.payout_stakers - | t.pallet_staking.pallet.pallet.Call.rebond - | t.pallet_staking.pallet.pallet.Call.reap_stash - | t.pallet_staking.pallet.pallet.Call.kick - | t.pallet_staking.pallet.pallet.Call.set_staking_configs - | t.pallet_staking.pallet.pallet.Call.chill_other - | t.pallet_staking.pallet.pallet.Call.force_apply_min_commission + | t.types.pallet_staking.pallet.pallet.Call.bond + | t.types.pallet_staking.pallet.pallet.Call.bond_extra + | t.types.pallet_staking.pallet.pallet.Call.unbond + | t.types.pallet_staking.pallet.pallet.Call.withdraw_unbonded + | t.types.pallet_staking.pallet.pallet.Call.validate + | t.types.pallet_staking.pallet.pallet.Call.nominate + | t.types.pallet_staking.pallet.pallet.Call.chill + | t.types.pallet_staking.pallet.pallet.Call.set_payee + | t.types.pallet_staking.pallet.pallet.Call.set_controller + | t.types.pallet_staking.pallet.pallet.Call.set_validator_count + | t.types.pallet_staking.pallet.pallet.Call.increase_validator_count + | t.types.pallet_staking.pallet.pallet.Call.scale_validator_count + | t.types.pallet_staking.pallet.pallet.Call.force_no_eras + | t.types.pallet_staking.pallet.pallet.Call.force_new_era + | t.types.pallet_staking.pallet.pallet.Call.set_invulnerables + | t.types.pallet_staking.pallet.pallet.Call.force_unstake + | t.types.pallet_staking.pallet.pallet.Call.force_new_era_always + | t.types.pallet_staking.pallet.pallet.Call.cancel_deferred_slash + | t.types.pallet_staking.pallet.pallet.Call.payout_stakers + | t.types.pallet_staking.pallet.pallet.Call.rebond + | t.types.pallet_staking.pallet.pallet.Call.reap_stash + | t.types.pallet_staking.pallet.pallet.Call.kick + | t.types.pallet_staking.pallet.pallet.Call.set_staking_configs + | t.types.pallet_staking.pallet.pallet.Call.chill_other + | t.types.pallet_staking.pallet.pallet.Call.force_apply_min_commission export namespace Call { /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will @@ -59,9 +59,9 @@ export namespace Call { */ export interface bond { type: "bond" - controller: t.sp_runtime.multiaddress.MultiAddress - value: t.Compact - payee: t.pallet_staking.RewardDestination + controller: t.types.sp_runtime.multiaddress.MultiAddress + value: t.Compact + payee: t.types.pallet_staking.RewardDestination } /** * Add some extra amount that have appeared in the stash `free_balance` into the balance up @@ -82,7 +82,7 @@ export namespace Call { */ export interface bond_extra { type: "bond_extra" - max_additional: t.Compact + max_additional: t.Compact } /** * Schedule a portion of the stash to be unlocked ready for transfer out after the bond @@ -107,7 +107,7 @@ export namespace Call { */ export interface unbond { type: "unbond" - value: t.Compact + value: t.Compact } /** * Remove any unlocked chunks from the `unlocking` queue from our management. @@ -128,7 +128,7 @@ export namespace Call { */ export interface withdraw_unbonded { type: "withdraw_unbonded" - num_slashing_spans: t.u32 + num_slashing_spans: t.types.u32 } /** * Declare the desire to validate for the origin controller. @@ -139,7 +139,7 @@ export namespace Call { */ export interface validate { type: "validate" - prefs: t.pallet_staking.ValidatorPrefs + prefs: t.types.pallet_staking.ValidatorPrefs } /** * Declare the desire to nominate `targets` for the origin controller. @@ -156,7 +156,7 @@ export namespace Call { */ export interface nominate { type: "nominate" - targets: Array + targets: Array } /** * Declare no desire to either validate or nominate. @@ -194,7 +194,7 @@ export namespace Call { */ export interface set_payee { type: "set_payee" - payee: t.pallet_staking.RewardDestination + payee: t.types.pallet_staking.RewardDestination } /** * (Re-)set the controller of a stash. @@ -216,7 +216,7 @@ export namespace Call { */ export interface set_controller { type: "set_controller" - controller: t.sp_runtime.multiaddress.MultiAddress + controller: t.types.sp_runtime.multiaddress.MultiAddress } /** * Sets the ideal number of validators. @@ -230,7 +230,7 @@ export namespace Call { */ export interface set_validator_count { type: "set_validator_count" - new: t.Compact + new: t.Compact } /** * Increments the ideal number of validators. @@ -243,7 +243,7 @@ export namespace Call { */ export interface increase_validator_count { type: "increase_validator_count" - additional: t.Compact + additional: t.Compact } /** * Scale up the ideal number of validators by a factor. @@ -256,7 +256,7 @@ export namespace Call { */ export interface scale_validator_count { type: "scale_validator_count" - factor: t.sp_arithmetic.per_things.Percent + factor: t.types.sp_arithmetic.per_things.Percent } /** * Force there to be no new eras indefinitely. @@ -306,7 +306,7 @@ export namespace Call { */ export interface set_invulnerables { type: "set_invulnerables" - invulnerables: Array + invulnerables: Array } /** * Force a current staker to become completely unstaked, immediately. @@ -315,8 +315,8 @@ export namespace Call { */ export interface force_unstake { type: "force_unstake" - stash: t.sp_core.crypto.AccountId32 - num_slashing_spans: t.u32 + stash: t.types.sp_core.crypto.AccountId32 + num_slashing_spans: t.types.u32 } /** * Force there to be a new era at the end of sessions indefinitely. @@ -341,8 +341,8 @@ export namespace Call { */ export interface cancel_deferred_slash { type: "cancel_deferred_slash" - era: t.u32 - slash_indices: Array + era: t.types.u32 + slash_indices: Array } /** * Pay out all the stakers behind a single validator for a single era. @@ -369,8 +369,8 @@ export namespace Call { */ export interface payout_stakers { type: "payout_stakers" - validator_stash: t.sp_core.crypto.AccountId32 - era: t.u32 + validator_stash: t.types.sp_core.crypto.AccountId32 + era: t.types.u32 } /** * Rebond a portion of the stash scheduled to be unlocked. @@ -385,7 +385,7 @@ export namespace Call { */ export interface rebond { type: "rebond" - value: t.Compact + value: t.Compact } /** * Remove all data structures concerning a staker/stash once it is at a state where it can @@ -403,8 +403,8 @@ export namespace Call { */ export interface reap_stash { type: "reap_stash" - stash: t.sp_core.crypto.AccountId32 - num_slashing_spans: t.u32 + stash: t.types.sp_core.crypto.AccountId32 + num_slashing_spans: t.types.u32 } /** * Remove the given nominations from the calling validator. @@ -421,7 +421,7 @@ export namespace Call { */ export interface kick { type: "kick" - who: Array + who: Array } /** * Update the various staking configurations . @@ -444,12 +444,13 @@ export namespace Call { */ export interface set_staking_configs { type: "set_staking_configs" - min_nominator_bond: t.pallet_staking.pallet.pallet.ConfigOp.$$u128 - min_validator_bond: t.pallet_staking.pallet.pallet.ConfigOp.$$u128 - max_nominator_count: t.pallet_staking.pallet.pallet.ConfigOp.$$u32 - max_validator_count: t.pallet_staking.pallet.pallet.ConfigOp.$$u32 - chill_threshold: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent - min_commission: t.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill + min_nominator_bond: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128 + min_validator_bond: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u128 + max_nominator_count: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32 + max_validator_count: t.types.pallet_staking.pallet.pallet.ConfigOp.$$u32 + chill_threshold: + t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Percent + min_commission: t.types.pallet_staking.pallet.pallet.ConfigOp.$$sp_arithmetic.per_things.Perbill } /** * Declare a `controller` to stop participating as either a validator or nominator. @@ -481,7 +482,7 @@ export namespace Call { */ export interface chill_other { type: "chill_other" - controller: t.sp_core.crypto.AccountId32 + controller: t.types.sp_core.crypto.AccountId32 } /** * Force a validator to have at least the minimum commission. This will not affect a @@ -490,7 +491,7 @@ export namespace Call { */ export interface force_apply_min_commission { type: "force_apply_min_commission" - validator_stash: t.sp_core.crypto.AccountId32 + validator_stash: t.types.sp_core.crypto.AccountId32 } /** * Take the origin account as a stash and lock up `value` of its balance. `controller` will @@ -512,8 +513,8 @@ export namespace Call { * # */ export function bond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.bond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.bond { return { type: "bond", ...value } } /** @@ -534,8 +535,8 @@ export namespace Call { * # */ export function bond_extra( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.bond_extra { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.bond_extra { return { type: "bond_extra", ...value } } /** @@ -560,8 +561,8 @@ export namespace Call { * See also [`Call::withdraw_unbonded`]. */ export function unbond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.unbond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.unbond { return { type: "unbond", ...value } } /** @@ -582,8 +583,8 @@ export namespace Call { * # */ export function withdraw_unbonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.withdraw_unbonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.withdraw_unbonded { return { type: "withdraw_unbonded", ...value } } /** @@ -594,8 +595,8 @@ export namespace Call { * The dispatch origin for this call must be _Signed_ by the controller, not the stash. */ export function validate( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.validate { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.validate { return { type: "validate", ...value } } /** @@ -612,8 +613,8 @@ export namespace Call { * # */ export function nominate( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.nominate { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.nominate { return { type: "nominate", ...value } } /** @@ -629,7 +630,7 @@ export namespace Call { * - Writes are limited to the `origin` account key. * # */ - export function chill(): t.pallet_staking.pallet.pallet.Call.chill { + export function chill(): t.types.pallet_staking.pallet.pallet.Call.chill { return { type: "chill" } } /** @@ -651,8 +652,8 @@ export namespace Call { * # */ export function set_payee( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_payee { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_payee { return { type: "set_payee", ...value } } /** @@ -674,8 +675,8 @@ export namespace Call { * # */ export function set_controller( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_controller { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_controller { return { type: "set_controller", ...value } } /** @@ -689,8 +690,8 @@ export namespace Call { * # */ export function set_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_validator_count { return { type: "set_validator_count", ...value } } /** @@ -703,8 +704,8 @@ export namespace Call { * # */ export function increase_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.increase_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.increase_validator_count { return { type: "increase_validator_count", ...value } } /** @@ -717,8 +718,8 @@ export namespace Call { * # */ export function scale_validator_count( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.scale_validator_count { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.scale_validator_count { return { type: "scale_validator_count", ...value } } /** @@ -738,7 +739,7 @@ export namespace Call { * - Write: ForceEra * # */ - export function force_no_eras(): t.pallet_staking.pallet.pallet.Call.force_no_eras { + export function force_no_eras(): t.types.pallet_staking.pallet.pallet.Call.force_no_eras { return { type: "force_no_eras" } } /** @@ -759,7 +760,7 @@ export namespace Call { * - Write ForceEra * # */ - export function force_new_era(): t.pallet_staking.pallet.pallet.Call.force_new_era { + export function force_new_era(): t.types.pallet_staking.pallet.pallet.Call.force_new_era { return { type: "force_new_era" } } /** @@ -768,8 +769,8 @@ export namespace Call { * The dispatch origin must be Root. */ export function set_invulnerables( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_invulnerables { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_invulnerables { return { type: "set_invulnerables", ...value } } /** @@ -778,8 +779,8 @@ export namespace Call { * The dispatch origin must be Root. */ export function force_unstake( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.force_unstake { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.force_unstake { return { type: "force_unstake", ...value } } /** @@ -793,7 +794,7 @@ export namespace Call { * If this is called just before a new era is triggered, the election process may not * have enough blocks to get a result. */ - export function force_new_era_always(): t.pallet_staking.pallet.pallet.Call.force_new_era_always { + export function force_new_era_always(): t.types.pallet_staking.pallet.pallet.Call.force_new_era_always { return { type: "force_new_era_always" } } /** @@ -804,8 +805,8 @@ export namespace Call { * Parameters: era and indices of the slashes for that era to kill. */ export function cancel_deferred_slash( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.cancel_deferred_slash { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.cancel_deferred_slash { return { type: "cancel_deferred_slash", ...value } } /** @@ -832,8 +833,8 @@ export namespace Call { * # */ export function payout_stakers( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.payout_stakers { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.payout_stakers { return { type: "payout_stakers", ...value } } /** @@ -848,8 +849,8 @@ export namespace Call { * # */ export function rebond( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.rebond { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.rebond { return { type: "rebond", ...value } } /** @@ -867,8 +868,8 @@ export namespace Call { * Refunds the transaction fees upon successful execution. */ export function reap_stash( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.reap_stash { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.reap_stash { return { type: "reap_stash", ...value } } /** @@ -885,8 +886,8 @@ export namespace Call { * block any further nominations. */ export function kick( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.kick { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.kick { return { type: "kick", ...value } } /** @@ -909,8 +910,8 @@ export namespace Call { * to kick people under the new limits, `chill_other` should be called. */ export function set_staking_configs( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.set_staking_configs { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.set_staking_configs { return { type: "set_staking_configs", ...value } } /** @@ -942,8 +943,8 @@ export namespace Call { * who do not satisfy these requirements. */ export function chill_other( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.chill_other { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.chill_other { return { type: "chill_other", ...value } } /** @@ -952,8 +953,8 @@ export namespace Call { * can call this. */ export function force_apply_min_commission( - value: Omit, - ): t.pallet_staking.pallet.pallet.Call.force_apply_min_commission { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Call.force_apply_min_commission { return { type: "force_apply_min_commission", ...value } } } @@ -988,19 +989,19 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_staking.pallet.pallet.Event.EraPaid - | t.pallet_staking.pallet.pallet.Event.Rewarded - | t.pallet_staking.pallet.pallet.Event.Slashed - | t.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded - | t.pallet_staking.pallet.pallet.Event.StakersElected - | t.pallet_staking.pallet.pallet.Event.Bonded - | t.pallet_staking.pallet.pallet.Event.Unbonded - | t.pallet_staking.pallet.pallet.Event.Withdrawn - | t.pallet_staking.pallet.pallet.Event.Kicked - | t.pallet_staking.pallet.pallet.Event.StakingElectionFailed - | t.pallet_staking.pallet.pallet.Event.Chilled - | t.pallet_staking.pallet.pallet.Event.PayoutStarted - | t.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet + | t.types.pallet_staking.pallet.pallet.Event.EraPaid + | t.types.pallet_staking.pallet.pallet.Event.Rewarded + | t.types.pallet_staking.pallet.pallet.Event.Slashed + | t.types.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded + | t.types.pallet_staking.pallet.pallet.Event.StakersElected + | t.types.pallet_staking.pallet.pallet.Event.Bonded + | t.types.pallet_staking.pallet.pallet.Event.Unbonded + | t.types.pallet_staking.pallet.pallet.Event.Withdrawn + | t.types.pallet_staking.pallet.pallet.Event.Kicked + | t.types.pallet_staking.pallet.pallet.Event.StakingElectionFailed + | t.types.pallet_staking.pallet.pallet.Event.Chilled + | t.types.pallet_staking.pallet.pallet.Event.PayoutStarted + | t.types.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet export namespace Event { /** * The era payout has been set; the first balance is the validator-payout; the second is @@ -1008,21 +1009,21 @@ export namespace Event { */ export interface EraPaid { type: "EraPaid" - era_index: t.u32 - validator_payout: t.u128 - remainder: t.u128 + era_index: t.types.u32 + validator_payout: t.types.u128 + remainder: t.types.u128 } /** The nominator has been rewarded by this amount. */ export interface Rewarded { type: "Rewarded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** One staker (and potentially its nominators) has been slashed by the given amount. */ export interface Slashed { type: "Slashed" - staker: t.sp_core.crypto.AccountId32 - amount: t.u128 + staker: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * An old slashing report from a prior era was discarded because it could @@ -1030,7 +1031,7 @@ export namespace Event { */ export interface OldSlashingReportDiscarded { type: "OldSlashingReportDiscarded" - session_index: t.u32 + session_index: t.types.u32 } /** A new set of stakers was elected. */ export interface StakersElected { @@ -1044,14 +1045,14 @@ export namespace Event { */ export interface Bonded { type: "Bonded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** An account has unbonded this amount. */ export interface Unbonded { type: "Unbonded" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` @@ -1059,14 +1060,14 @@ export namespace Event { */ export interface Withdrawn { type: "Withdrawn" - stash: t.sp_core.crypto.AccountId32 - amount: t.u128 + stash: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A nominator has been kicked from a validator. */ export interface Kicked { type: "Kicked" - nominator: t.sp_core.crypto.AccountId32 - stash: t.sp_core.crypto.AccountId32 + nominator: t.types.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** The election failed. No new era is planned. */ export interface StakingElectionFailed { @@ -1075,39 +1076,39 @@ export namespace Event { /** An account has stopped participating as either a validator or nominator. */ export interface Chilled { type: "Chilled" - stash: t.sp_core.crypto.AccountId32 + stash: t.types.sp_core.crypto.AccountId32 } /** The stakers' rewards are getting paid. */ export interface PayoutStarted { type: "PayoutStarted" - era_index: t.u32 - validator_stash: t.sp_core.crypto.AccountId32 + era_index: t.types.u32 + validator_stash: t.types.sp_core.crypto.AccountId32 } /** A validator has set their preferences. */ export interface ValidatorPrefsSet { type: "ValidatorPrefsSet" - stash: t.sp_core.crypto.AccountId32 - prefs: t.pallet_staking.ValidatorPrefs + stash: t.types.sp_core.crypto.AccountId32 + prefs: t.types.pallet_staking.ValidatorPrefs } /** * The era payout has been set; the first balance is the validator-payout; the second is * the remainder from the maximum amount of reward. */ export function EraPaid( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.EraPaid { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.EraPaid { return { type: "EraPaid", ...value } } /** The nominator has been rewarded by this amount. */ export function Rewarded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Rewarded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Rewarded { return { type: "Rewarded", ...value } } /** One staker (and potentially its nominators) has been slashed by the given amount. */ export function Slashed( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Slashed { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Slashed { return { type: "Slashed", ...value } } /** @@ -1115,12 +1116,12 @@ export namespace Event { * not be processed. */ export function OldSlashingReportDiscarded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.OldSlashingReportDiscarded { return { type: "OldSlashingReportDiscarded", ...value } } /** A new set of stakers was elected. */ - export function StakersElected(): t.pallet_staking.pallet.pallet.Event.StakersElected { + export function StakersElected(): t.types.pallet_staking.pallet.pallet.Event.StakersElected { return { type: "StakersElected" } } /** @@ -1130,14 +1131,14 @@ export namespace Event { * it will not be emitted for staking rewards when they are added to stake. */ export function Bonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Bonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Bonded { return { type: "Bonded", ...value } } /** An account has unbonded this amount. */ export function Unbonded( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Unbonded { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Unbonded { return { type: "Unbonded", ...value } } /** @@ -1145,36 +1146,36 @@ export namespace Event { * from the unlocking queue. */ export function Withdrawn( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Withdrawn { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Withdrawn { return { type: "Withdrawn", ...value } } /** A nominator has been kicked from a validator. */ export function Kicked( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Kicked { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Kicked { return { type: "Kicked", ...value } } /** The election failed. No new era is planned. */ - export function StakingElectionFailed(): t.pallet_staking.pallet.pallet.Event.StakingElectionFailed { + export function StakingElectionFailed(): t.types.pallet_staking.pallet.pallet.Event.StakingElectionFailed { return { type: "StakingElectionFailed" } } /** An account has stopped participating as either a validator or nominator. */ export function Chilled( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.Chilled { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.Chilled { return { type: "Chilled", ...value } } /** The stakers' rewards are getting paid. */ export function PayoutStarted( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.PayoutStarted { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.PayoutStarted { return { type: "PayoutStarted", ...value } } /** A validator has set their preferences. */ export function ValidatorPrefsSet( - value: Omit, - ): t.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet { + value: Omit, + ): t.types.pallet_staking.pallet.pallet.Event.ValidatorPrefsSet { return { type: "ValidatorPrefsSet", ...value } } } diff --git a/codegen/_output/westend/types/pallet_staking/slashing.ts b/codegen/_output/westend/types/pallet_staking/slashing.ts new file mode 100644 index 000000000..a7b31d855 --- /dev/null +++ b/codegen/_output/westend/types/pallet_staking/slashing.ts @@ -0,0 +1,27 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $slashingSpans: $.Codec = _codec.$503 + +export const $spanRecord: $.Codec = _codec.$504 + +export interface SlashingSpans { + span_index: t.types.u32 + last_start: t.types.u32 + last_nonzero_slash: t.types.u32 + prior: Array +} + +export function SlashingSpans(value: t.types.pallet_staking.slashing.SlashingSpans) { + return value +} + +export interface SpanRecord { + slashed: t.types.u128 + paid_out: t.types.u128 +} + +export function SpanRecord(value: t.types.pallet_staking.slashing.SpanRecord) { + return value +} diff --git a/codegen/_output/westend/pallet_timestamp/mod.ts b/codegen/_output/westend/types/pallet_timestamp/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_timestamp/mod.ts rename to codegen/_output/westend/types/pallet_timestamp/mod.ts diff --git a/codegen/_output/polkadot/pallet_timestamp/pallet.ts b/codegen/_output/westend/types/pallet_timestamp/pallet.ts similarity index 79% rename from codegen/_output/polkadot/pallet_timestamp/pallet.ts rename to codegen/_output/westend/types/pallet_timestamp/pallet.ts index 0130fc41e..ab76a88c7 100644 --- a/codegen/_output/polkadot/pallet_timestamp/pallet.ts +++ b/codegen/_output/westend/types/pallet_timestamp/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$195 +export const $call: $.Codec = _codec.$195 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.pallet_timestamp.pallet.Call.set +export type Call = t.types.pallet_timestamp.pallet.Call.set export namespace Call { /** * Set the current time. @@ -27,7 +27,7 @@ export namespace Call { */ export interface set { type: "set" - now: t.Compact + now: t.Compact } /** * Set the current time. @@ -48,8 +48,8 @@ export namespace Call { * # */ export function set( - value: Omit, - ): t.pallet_timestamp.pallet.Call.set { + value: Omit, + ): t.types.pallet_timestamp.pallet.Call.set { return { type: "set", ...value } } } diff --git a/codegen/_output/westend/types/pallet_tips/mod.ts b/codegen/_output/westend/types/pallet_tips/mod.ts new file mode 100644 index 000000000..dd1c4a6fd --- /dev/null +++ b/codegen/_output/westend/types/pallet_tips/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $openTip: $.Codec = _codec.$598 + +export interface OpenTip { + reason: t.types.primitive_types.H256 + who: t.types.sp_core.crypto.AccountId32 + finder: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + closes: t.types.u32 | undefined + tips: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> + finders_fee: boolean +} + +export function OpenTip(value: t.types.pallet_tips.OpenTip) { + return value +} diff --git a/codegen/_output/polkadot/pallet_tips/pallet.ts b/codegen/_output/westend/types/pallet_tips/pallet.ts similarity index 81% rename from codegen/_output/polkadot/pallet_tips/pallet.ts rename to codegen/_output/westend/types/pallet_tips/pallet.ts index 355e46651..5d9de5b29 100644 --- a/codegen/_output/polkadot/pallet_tips/pallet.ts +++ b/codegen/_output/westend/types/pallet_tips/pallet.ts @@ -1,21 +1,21 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$309 +export const $call: $.Codec = _codec.$309 -export const $error: $.Codec = _codec.$599 +export const $error: $.Codec = _codec.$599 -export const $event: $.Codec = _codec.$85 +export const $event: $.Codec = _codec.$85 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_tips.pallet.Call.report_awesome - | t.pallet_tips.pallet.Call.retract_tip - | t.pallet_tips.pallet.Call.tip_new - | t.pallet_tips.pallet.Call.tip - | t.pallet_tips.pallet.Call.close_tip - | t.pallet_tips.pallet.Call.slash_tip + | t.types.pallet_tips.pallet.Call.report_awesome + | t.types.pallet_tips.pallet.Call.retract_tip + | t.types.pallet_tips.pallet.Call.tip_new + | t.types.pallet_tips.pallet.Call.tip + | t.types.pallet_tips.pallet.Call.close_tip + | t.types.pallet_tips.pallet.Call.slash_tip export namespace Call { /** * Report something `reason` that deserves a tip and claim any eventual the finder's fee. @@ -41,7 +41,7 @@ export namespace Call { export interface report_awesome { type: "report_awesome" reason: Uint8Array - who: t.sp_runtime.multiaddress.MultiAddress + who: t.types.sp_runtime.multiaddress.MultiAddress } /** * Retract a prior tip-report from `report_awesome`, and cancel the process of tipping. @@ -66,7 +66,7 @@ export namespace Call { */ export interface retract_tip { type: "retract_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Give a tip for something new; no finder's fee will be taken. @@ -95,8 +95,8 @@ export namespace Call { export interface tip_new { type: "tip_new" reason: Uint8Array - who: t.sp_runtime.multiaddress.MultiAddress - tip_value: t.Compact + who: t.types.sp_runtime.multiaddress.MultiAddress + tip_value: t.Compact } /** * Declare a tip value for an already-open tip. @@ -126,8 +126,8 @@ export namespace Call { */ export interface tip { type: "tip" - hash: t.primitive_types.H256 - tip_value: t.Compact + hash: t.types.primitive_types.H256 + tip_value: t.Compact } /** * Close and payout a tip. @@ -149,7 +149,7 @@ export namespace Call { */ export interface close_tip { type: "close_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Remove and slash an already-open tip. @@ -167,7 +167,7 @@ export namespace Call { */ export interface slash_tip { type: "slash_tip" - hash: t.primitive_types.H256 + hash: t.types.primitive_types.H256 } /** * Report something `reason` that deserves a tip and claim any eventual the finder's fee. @@ -191,8 +191,8 @@ export namespace Call { * # */ export function report_awesome( - value: Omit, - ): t.pallet_tips.pallet.Call.report_awesome { + value: Omit, + ): t.types.pallet_tips.pallet.Call.report_awesome { return { type: "report_awesome", ...value } } /** @@ -217,8 +217,8 @@ export namespace Call { * # */ export function retract_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.retract_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.retract_tip { return { type: "retract_tip", ...value } } /** @@ -246,8 +246,8 @@ export namespace Call { * # */ export function tip_new( - value: Omit, - ): t.pallet_tips.pallet.Call.tip_new { + value: Omit, + ): t.types.pallet_tips.pallet.Call.tip_new { return { type: "tip_new", ...value } } /** @@ -277,8 +277,8 @@ export namespace Call { * # */ export function tip( - value: Omit, - ): t.pallet_tips.pallet.Call.tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.tip { return { type: "tip", ...value } } /** @@ -300,8 +300,8 @@ export namespace Call { * # */ export function close_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.close_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.close_tip { return { type: "close_tip", ...value } } /** @@ -319,8 +319,8 @@ export namespace Call { * # */ export function slash_tip( - value: Omit, - ): t.pallet_tips.pallet.Call.slash_tip { + value: Omit, + ): t.types.pallet_tips.pallet.Call.slash_tip { return { type: "slash_tip", ...value } } } @@ -336,69 +336,69 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_tips.pallet.Event.NewTip - | t.pallet_tips.pallet.Event.TipClosing - | t.pallet_tips.pallet.Event.TipClosed - | t.pallet_tips.pallet.Event.TipRetracted - | t.pallet_tips.pallet.Event.TipSlashed + | t.types.pallet_tips.pallet.Event.NewTip + | t.types.pallet_tips.pallet.Event.TipClosing + | t.types.pallet_tips.pallet.Event.TipClosed + | t.types.pallet_tips.pallet.Event.TipRetracted + | t.types.pallet_tips.pallet.Event.TipSlashed export namespace Event { /** A new tip suggestion has been opened. */ export interface NewTip { type: "NewTip" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has reached threshold and is closing. */ export interface TipClosing { type: "TipClosing" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has been closed. */ export interface TipClosed { type: "TipClosed" - tip_hash: t.primitive_types.H256 - who: t.sp_core.crypto.AccountId32 - payout: t.u128 + tip_hash: t.types.primitive_types.H256 + who: t.types.sp_core.crypto.AccountId32 + payout: t.types.u128 } /** A tip suggestion has been retracted. */ export interface TipRetracted { type: "TipRetracted" - tip_hash: t.primitive_types.H256 + tip_hash: t.types.primitive_types.H256 } /** A tip suggestion has been slashed. */ export interface TipSlashed { type: "TipSlashed" - tip_hash: t.primitive_types.H256 - finder: t.sp_core.crypto.AccountId32 - deposit: t.u128 + tip_hash: t.types.primitive_types.H256 + finder: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 } /** A new tip suggestion has been opened. */ export function NewTip( - value: Omit, - ): t.pallet_tips.pallet.Event.NewTip { + value: Omit, + ): t.types.pallet_tips.pallet.Event.NewTip { return { type: "NewTip", ...value } } /** A tip suggestion has reached threshold and is closing. */ export function TipClosing( - value: Omit, - ): t.pallet_tips.pallet.Event.TipClosing { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipClosing { return { type: "TipClosing", ...value } } /** A tip suggestion has been closed. */ export function TipClosed( - value: Omit, - ): t.pallet_tips.pallet.Event.TipClosed { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipClosed { return { type: "TipClosed", ...value } } /** A tip suggestion has been retracted. */ export function TipRetracted( - value: Omit, - ): t.pallet_tips.pallet.Event.TipRetracted { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipRetracted { return { type: "TipRetracted", ...value } } /** A tip suggestion has been slashed. */ export function TipSlashed( - value: Omit, - ): t.pallet_tips.pallet.Event.TipSlashed { + value: Omit, + ): t.types.pallet_tips.pallet.Event.TipSlashed { return { type: "TipSlashed", ...value } } } diff --git a/codegen/_output/westend/types/pallet_transaction_payment/mod.ts b/codegen/_output/westend/types/pallet_transaction_payment/mod.ts new file mode 100644 index 000000000..53822ce2a --- /dev/null +++ b/codegen/_output/westend/types/pallet_transaction_payment/mod.ts @@ -0,0 +1,9 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $releases: $.Codec = _codec.$480 + +export type Releases = "V1Ancient" | "V2" diff --git a/codegen/_output/polkadot/pallet_transaction_payment/pallet.ts b/codegen/_output/westend/types/pallet_transaction_payment/pallet.ts similarity index 50% rename from codegen/_output/polkadot/pallet_transaction_payment/pallet.ts rename to codegen/_output/westend/types/pallet_transaction_payment/pallet.ts index 12c5c03e1..f912e47f5 100644 --- a/codegen/_output/polkadot/pallet_transaction_payment/pallet.ts +++ b/codegen/_output/westend/types/pallet_transaction_payment/pallet.ts @@ -1,11 +1,11 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $event: $.Codec = _codec.$38 +export const $event: $.Codec = _codec.$38 /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.pallet_transaction_payment.pallet.Event.TransactionFeePaid +export type Event = t.types.pallet_transaction_payment.pallet.Event.TransactionFeePaid export namespace Event { /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, @@ -13,17 +13,17 @@ export namespace Event { */ export interface TransactionFeePaid { type: "TransactionFeePaid" - who: t.sp_core.crypto.AccountId32 - actual_fee: t.u128 - tip: t.u128 + who: t.types.sp_core.crypto.AccountId32 + actual_fee: t.types.u128 + tip: t.types.u128 } /** * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee, * has been paid by `who`. */ export function TransactionFeePaid( - value: Omit, - ): t.pallet_transaction_payment.pallet.Event.TransactionFeePaid { + value: Omit, + ): t.types.pallet_transaction_payment.pallet.Event.TransactionFeePaid { return { type: "TransactionFeePaid", ...value } } } diff --git a/codegen/_output/westend/types/pallet_treasury/mod.ts b/codegen/_output/westend/types/pallet_treasury/mod.ts new file mode 100644 index 000000000..bada52441 --- /dev/null +++ b/codegen/_output/westend/types/pallet_treasury/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $proposal: $.Codec = _codec.$556 + +export interface Proposal { + proposer: t.types.sp_core.crypto.AccountId32 + value: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 + bond: t.types.u128 +} + +export function Proposal(value: t.types.pallet_treasury.Proposal) { + return value +} diff --git a/codegen/_output/polkadot/pallet_treasury/pallet.ts b/codegen/_output/westend/types/pallet_treasury/pallet.ts similarity index 68% rename from codegen/_output/polkadot/pallet_treasury/pallet.ts rename to codegen/_output/westend/types/pallet_treasury/pallet.ts index f5458cc71..e1999734e 100644 --- a/codegen/_output/polkadot/pallet_treasury/pallet.ts +++ b/codegen/_output/westend/types/pallet_treasury/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$244 +export const $call: $.Codec = _codec.$244 -export const $error: $.Codec = _codec.$561 +export const $error: $.Codec = _codec.$561 -export const $event: $.Codec = _codec.$71 +export const $event: $.Codec = _codec.$71 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_treasury.pallet.Call.propose_spend - | t.pallet_treasury.pallet.Call.reject_proposal - | t.pallet_treasury.pallet.Call.approve_proposal - | t.pallet_treasury.pallet.Call.spend - | t.pallet_treasury.pallet.Call.remove_approval + | t.types.pallet_treasury.pallet.Call.propose_spend + | t.types.pallet_treasury.pallet.Call.reject_proposal + | t.types.pallet_treasury.pallet.Call.approve_proposal + | t.types.pallet_treasury.pallet.Call.spend + | t.types.pallet_treasury.pallet.Call.remove_approval export namespace Call { /** * Put forward a suggestion for spending. A deposit proportional to the value @@ -29,8 +29,8 @@ export namespace Call { */ export interface propose_spend { type: "propose_spend" - value: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + value: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Reject a proposed spend. The original deposit will be slashed. @@ -45,7 +45,7 @@ export namespace Call { */ export interface reject_proposal { type: "reject_proposal" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary @@ -61,7 +61,7 @@ export namespace Call { */ export interface approve_proposal { type: "approve_proposal" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Propose and approve a spend of treasury funds. @@ -75,8 +75,8 @@ export namespace Call { */ export interface spend { type: "spend" - amount: t.Compact - beneficiary: t.sp_runtime.multiaddress.MultiAddress + amount: t.Compact + beneficiary: t.types.sp_runtime.multiaddress.MultiAddress } /** * Force a previously approved proposal to be removed from the approval queue. @@ -97,7 +97,7 @@ export namespace Call { */ export interface remove_approval { type: "remove_approval" - proposal_id: t.Compact + proposal_id: t.Compact } /** * Put forward a suggestion for spending. A deposit proportional to the value @@ -111,8 +111,8 @@ export namespace Call { * # */ export function propose_spend( - value: Omit, - ): t.pallet_treasury.pallet.Call.propose_spend { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.propose_spend { return { type: "propose_spend", ...value } } /** @@ -127,8 +127,8 @@ export namespace Call { * # */ export function reject_proposal( - value: Omit, - ): t.pallet_treasury.pallet.Call.reject_proposal { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.reject_proposal { return { type: "reject_proposal", ...value } } /** @@ -144,8 +144,8 @@ export namespace Call { * # */ export function approve_proposal( - value: Omit, - ): t.pallet_treasury.pallet.Call.approve_proposal { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.approve_proposal { return { type: "approve_proposal", ...value } } /** @@ -159,8 +159,8 @@ export namespace Call { * beneficiary. */ export function spend( - value: Omit, - ): t.pallet_treasury.pallet.Call.spend { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.spend { return { type: "spend", ...value } } /** @@ -181,8 +181,8 @@ export namespace Call { * exist altogether, thus there is no way it would have been approved in the first place. */ export function remove_approval( - value: Omit, - ): t.pallet_treasury.pallet.Call.remove_approval { + value: Omit, + ): t.types.pallet_treasury.pallet.Call.remove_approval { return { type: "remove_approval", ...value } } } @@ -197,106 +197,106 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_treasury.pallet.Event.Proposed - | t.pallet_treasury.pallet.Event.Spending - | t.pallet_treasury.pallet.Event.Awarded - | t.pallet_treasury.pallet.Event.Rejected - | t.pallet_treasury.pallet.Event.Burnt - | t.pallet_treasury.pallet.Event.Rollover - | t.pallet_treasury.pallet.Event.Deposit - | t.pallet_treasury.pallet.Event.SpendApproved + | t.types.pallet_treasury.pallet.Event.Proposed + | t.types.pallet_treasury.pallet.Event.Spending + | t.types.pallet_treasury.pallet.Event.Awarded + | t.types.pallet_treasury.pallet.Event.Rejected + | t.types.pallet_treasury.pallet.Event.Burnt + | t.types.pallet_treasury.pallet.Event.Rollover + | t.types.pallet_treasury.pallet.Event.Deposit + | t.types.pallet_treasury.pallet.Event.SpendApproved export namespace Event { /** New proposal. */ export interface Proposed { type: "Proposed" - proposal_index: t.u32 + proposal_index: t.types.u32 } /** We have ended a spend period and will now allocate funds. */ export interface Spending { type: "Spending" - budget_remaining: t.u128 + budget_remaining: t.types.u128 } /** Some funds have been allocated. */ export interface Awarded { type: "Awarded" - proposal_index: t.u32 - award: t.u128 - account: t.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + award: t.types.u128 + account: t.types.sp_core.crypto.AccountId32 } /** A proposal was rejected; funds were slashed. */ export interface Rejected { type: "Rejected" - proposal_index: t.u32 - slashed: t.u128 + proposal_index: t.types.u32 + slashed: t.types.u128 } /** Some of our funds have been burnt. */ export interface Burnt { type: "Burnt" - burnt_funds: t.u128 + burnt_funds: t.types.u128 } /** Spending has finished; this is the amount that rolls over until next spend. */ export interface Rollover { type: "Rollover" - rollover_balance: t.u128 + rollover_balance: t.types.u128 } /** Some funds have been deposited. */ export interface Deposit { type: "Deposit" - value: t.u128 + value: t.types.u128 } /** A new spend proposal has been approved. */ export interface SpendApproved { type: "SpendApproved" - proposal_index: t.u32 - amount: t.u128 - beneficiary: t.sp_core.crypto.AccountId32 + proposal_index: t.types.u32 + amount: t.types.u128 + beneficiary: t.types.sp_core.crypto.AccountId32 } /** New proposal. */ export function Proposed( - value: Omit, - ): t.pallet_treasury.pallet.Event.Proposed { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Proposed { return { type: "Proposed", ...value } } /** We have ended a spend period and will now allocate funds. */ export function Spending( - value: Omit, - ): t.pallet_treasury.pallet.Event.Spending { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Spending { return { type: "Spending", ...value } } /** Some funds have been allocated. */ export function Awarded( - value: Omit, - ): t.pallet_treasury.pallet.Event.Awarded { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Awarded { return { type: "Awarded", ...value } } /** A proposal was rejected; funds were slashed. */ export function Rejected( - value: Omit, - ): t.pallet_treasury.pallet.Event.Rejected { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Rejected { return { type: "Rejected", ...value } } /** Some of our funds have been burnt. */ export function Burnt( - value: Omit, - ): t.pallet_treasury.pallet.Event.Burnt { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Burnt { return { type: "Burnt", ...value } } /** Spending has finished; this is the amount that rolls over until next spend. */ export function Rollover( - value: Omit, - ): t.pallet_treasury.pallet.Event.Rollover { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Rollover { return { type: "Rollover", ...value } } /** Some funds have been deposited. */ export function Deposit( - value: Omit, - ): t.pallet_treasury.pallet.Event.Deposit { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.Deposit { return { type: "Deposit", ...value } } /** A new spend proposal has been approved. */ export function SpendApproved( - value: Omit, - ): t.pallet_treasury.pallet.Event.SpendApproved { + value: Omit, + ): t.types.pallet_treasury.pallet.Event.SpendApproved { return { type: "SpendApproved", ...value } } } diff --git a/codegen/_output/westend/pallet_utility/mod.ts b/codegen/_output/westend/types/pallet_utility/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_utility/mod.ts rename to codegen/_output/westend/types/pallet_utility/mod.ts diff --git a/codegen/_output/westend/pallet_utility/pallet.ts b/codegen/_output/westend/types/pallet_utility/pallet.ts similarity index 76% rename from codegen/_output/westend/pallet_utility/pallet.ts rename to codegen/_output/westend/types/pallet_utility/pallet.ts index 50befdeac..2d5f19068 100644 --- a/codegen/_output/westend/pallet_utility/pallet.ts +++ b/codegen/_output/westend/types/pallet_utility/pallet.ts @@ -1,20 +1,20 @@ -import { $, C } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $, C } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$254 +export const $call: $.Codec = _codec.$254 -export const $error: $.Codec = _codec.$567 +export const $error: $.Codec = _codec.$567 -export const $event: $.Codec = _codec.$76 +export const $event: $.Codec = _codec.$76 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_utility.pallet.Call.batch - | t.pallet_utility.pallet.Call.as_derivative - | t.pallet_utility.pallet.Call.batch_all - | t.pallet_utility.pallet.Call.dispatch_as - | t.pallet_utility.pallet.Call.force_batch + | t.types.pallet_utility.pallet.Call.batch + | t.types.pallet_utility.pallet.Call.as_derivative + | t.types.pallet_utility.pallet.Call.batch_all + | t.types.pallet_utility.pallet.Call.dispatch_as + | t.types.pallet_utility.pallet.Call.force_batch export namespace Call { /** * Send a batch of dispatch calls. @@ -39,7 +39,7 @@ export namespace Call { */ export interface batch { type: "batch" - calls: Array + calls: Array } /** * Send a call through an indexed pseudonym of the sender. @@ -58,8 +58,8 @@ export namespace Call { */ export interface as_derivative { type: "as_derivative" - index: t.u16 - call: t.polkadot_runtime.RuntimeCall + index: t.types.u16 + call: t.types.polkadot_runtime.RuntimeCall } /** * Send a batch of dispatch calls and atomically execute them. @@ -79,7 +79,7 @@ export namespace Call { */ export interface batch_all { type: "batch_all" - calls: Array + calls: Array } /** * Dispatches a function call with a provided origin. @@ -95,8 +95,8 @@ export namespace Call { */ export interface dispatch_as { type: "dispatch_as" - as_origin: t.polkadot_runtime.OriginCaller - call: t.polkadot_runtime.RuntimeCall + as_origin: t.types.polkadot_runtime.OriginCaller + call: t.types.polkadot_runtime.RuntimeCall } /** * Send a batch of dispatch calls. @@ -116,7 +116,7 @@ export namespace Call { */ export interface force_batch { type: "force_batch" - calls: Array + calls: Array } /** * Send a batch of dispatch calls. @@ -140,8 +140,8 @@ export namespace Call { * event is deposited. */ export function batch( - value: Omit, - ): t.pallet_utility.pallet.Call.batch { + value: Omit, + ): t.types.pallet_utility.pallet.Call.batch { return { type: "batch", ...value } } /** @@ -160,8 +160,8 @@ export namespace Call { * The dispatch origin for this call must be _Signed_. */ export function as_derivative( - value: Omit, - ): t.pallet_utility.pallet.Call.as_derivative { + value: Omit, + ): t.types.pallet_utility.pallet.Call.as_derivative { return { type: "as_derivative", ...value } } /** @@ -181,8 +181,8 @@ export namespace Call { * # */ export function batch_all( - value: Omit, - ): t.pallet_utility.pallet.Call.batch_all { + value: Omit, + ): t.types.pallet_utility.pallet.Call.batch_all { return { type: "batch_all", ...value } } /** @@ -198,8 +198,8 @@ export namespace Call { * # */ export function dispatch_as( - value: Omit, - ): t.pallet_utility.pallet.Call.dispatch_as { + value: Omit, + ): t.types.pallet_utility.pallet.Call.dispatch_as { return { type: "dispatch_as", ...value } } /** @@ -219,8 +219,8 @@ export namespace Call { * # */ export function force_batch( - value: Omit, - ): t.pallet_utility.pallet.Call.force_batch { + value: Omit, + ): t.types.pallet_utility.pallet.Call.force_batch { return { type: "force_batch", ...value } } } @@ -230,12 +230,12 @@ export type Error = "TooManyCalls" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_utility.pallet.Event.BatchInterrupted - | t.pallet_utility.pallet.Event.BatchCompleted - | t.pallet_utility.pallet.Event.BatchCompletedWithErrors - | t.pallet_utility.pallet.Event.ItemCompleted - | t.pallet_utility.pallet.Event.ItemFailed - | t.pallet_utility.pallet.Event.DispatchedAs + | t.types.pallet_utility.pallet.Event.BatchInterrupted + | t.types.pallet_utility.pallet.Event.BatchCompleted + | t.types.pallet_utility.pallet.Event.BatchCompletedWithErrors + | t.types.pallet_utility.pallet.Event.ItemCompleted + | t.types.pallet_utility.pallet.Event.ItemFailed + | t.types.pallet_utility.pallet.Event.DispatchedAs export namespace Event { /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as @@ -243,8 +243,8 @@ export namespace Event { */ export interface BatchInterrupted { type: "BatchInterrupted" - index: t.u32 - error: t.sp_runtime.DispatchError + index: t.types.u32 + error: t.types.sp_runtime.DispatchError } /** Batch of dispatches completed fully with no error. */ export interface BatchCompleted { @@ -261,44 +261,44 @@ export namespace Event { /** A single item within a Batch of dispatches has completed with error. */ export interface ItemFailed { type: "ItemFailed" - error: t.sp_runtime.DispatchError + error: t.types.sp_runtime.DispatchError } /** A call was dispatched. */ export interface DispatchedAs { type: "DispatchedAs" - result: null | C.ChainError + result: null | C.ChainError } /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. */ export function BatchInterrupted( - value: Omit, - ): t.pallet_utility.pallet.Event.BatchInterrupted { + value: Omit, + ): t.types.pallet_utility.pallet.Event.BatchInterrupted { return { type: "BatchInterrupted", ...value } } /** Batch of dispatches completed fully with no error. */ - export function BatchCompleted(): t.pallet_utility.pallet.Event.BatchCompleted { + export function BatchCompleted(): t.types.pallet_utility.pallet.Event.BatchCompleted { return { type: "BatchCompleted" } } /** Batch of dispatches completed but has errors. */ - export function BatchCompletedWithErrors(): t.pallet_utility.pallet.Event.BatchCompletedWithErrors { + export function BatchCompletedWithErrors(): t.types.pallet_utility.pallet.Event.BatchCompletedWithErrors { return { type: "BatchCompletedWithErrors" } } /** A single item within a Batch of dispatches has completed with no error. */ - export function ItemCompleted(): t.pallet_utility.pallet.Event.ItemCompleted { + export function ItemCompleted(): t.types.pallet_utility.pallet.Event.ItemCompleted { return { type: "ItemCompleted" } } /** A single item within a Batch of dispatches has completed with error. */ export function ItemFailed( - value: Omit, - ): t.pallet_utility.pallet.Event.ItemFailed { + value: Omit, + ): t.types.pallet_utility.pallet.Event.ItemFailed { return { type: "ItemFailed", ...value } } /** A call was dispatched. */ export function DispatchedAs( - value: Omit, - ): t.pallet_utility.pallet.Event.DispatchedAs { + value: Omit, + ): t.types.pallet_utility.pallet.Event.DispatchedAs { return { type: "DispatchedAs", ...value } } } diff --git a/codegen/_output/westend/types/pallet_vesting/mod.ts b/codegen/_output/westend/types/pallet_vesting/mod.ts new file mode 100644 index 000000000..96ae61e7f --- /dev/null +++ b/codegen/_output/westend/types/pallet_vesting/mod.ts @@ -0,0 +1,10 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as pallet from "./pallet.ts" +export * as vesting_info from "./vesting_info.ts" + +export const $releases: $.Codec = _codec.$565 + +export type Releases = "V0" | "V1" diff --git a/codegen/_output/westend/pallet_vesting/pallet.ts b/codegen/_output/westend/types/pallet_vesting/pallet.ts similarity index 80% rename from codegen/_output/westend/pallet_vesting/pallet.ts rename to codegen/_output/westend/types/pallet_vesting/pallet.ts index 46b136022..fb66f1292 100644 --- a/codegen/_output/westend/pallet_vesting/pallet.ts +++ b/codegen/_output/westend/types/pallet_vesting/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$252 +export const $call: $.Codec = _codec.$252 -export const $error: $.Codec = _codec.$566 +export const $error: $.Codec = _codec.$566 -export const $event: $.Codec = _codec.$75 +export const $event: $.Codec = _codec.$75 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_vesting.pallet.Call.vest - | t.pallet_vesting.pallet.Call.vest_other - | t.pallet_vesting.pallet.Call.vested_transfer - | t.pallet_vesting.pallet.Call.force_vested_transfer - | t.pallet_vesting.pallet.Call.merge_schedules + | t.types.pallet_vesting.pallet.Call.vest + | t.types.pallet_vesting.pallet.Call.vest_other + | t.types.pallet_vesting.pallet.Call.vested_transfer + | t.types.pallet_vesting.pallet.Call.force_vested_transfer + | t.types.pallet_vesting.pallet.Call.merge_schedules export namespace Call { /** * Unlock any vested funds of the sender account. @@ -53,7 +53,7 @@ export namespace Call { */ export interface vest_other { type: "vest_other" - target: t.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress } /** * Create a vested transfer. @@ -76,8 +76,8 @@ export namespace Call { */ export interface vested_transfer { type: "vested_transfer" - target: t.sp_runtime.multiaddress.MultiAddress - schedule: t.pallet_vesting.vesting_info.VestingInfo + target: t.types.sp_runtime.multiaddress.MultiAddress + schedule: t.types.pallet_vesting.vesting_info.VestingInfo } /** * Force a vested transfer. @@ -101,9 +101,9 @@ export namespace Call { */ export interface force_vested_transfer { type: "force_vested_transfer" - source: t.sp_runtime.multiaddress.MultiAddress - target: t.sp_runtime.multiaddress.MultiAddress - schedule: t.pallet_vesting.vesting_info.VestingInfo + source: t.types.sp_runtime.multiaddress.MultiAddress + target: t.types.sp_runtime.multiaddress.MultiAddress + schedule: t.types.pallet_vesting.vesting_info.VestingInfo } /** * Merge two vesting schedules together, creating a new vesting schedule that unlocks over @@ -130,8 +130,8 @@ export namespace Call { */ export interface merge_schedules { type: "merge_schedules" - schedule1_index: t.u32 - schedule2_index: t.u32 + schedule1_index: t.types.u32 + schedule2_index: t.types.u32 } /** * Unlock any vested funds of the sender account. @@ -148,7 +148,7 @@ export namespace Call { * - Writes: Vesting Storage, Balances Locks, [Sender Account] * # */ - export function vest(): t.pallet_vesting.pallet.Call.vest { + export function vest(): t.types.pallet_vesting.pallet.Call.vest { return { type: "vest" } } /** @@ -169,8 +169,8 @@ export namespace Call { * # */ export function vest_other( - value: Omit, - ): t.pallet_vesting.pallet.Call.vest_other { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.vest_other { return { type: "vest_other", ...value } } /** @@ -193,8 +193,8 @@ export namespace Call { * # */ export function vested_transfer( - value: Omit, - ): t.pallet_vesting.pallet.Call.vested_transfer { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.vested_transfer { return { type: "vested_transfer", ...value } } /** @@ -218,8 +218,8 @@ export namespace Call { * # */ export function force_vested_transfer( - value: Omit, - ): t.pallet_vesting.pallet.Call.force_vested_transfer { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.force_vested_transfer { return { type: "force_vested_transfer", ...value } } /** @@ -246,8 +246,8 @@ export namespace Call { * - `schedule2_index`: index of the second schedule to merge. */ export function merge_schedules( - value: Omit, - ): t.pallet_vesting.pallet.Call.merge_schedules { + value: Omit, + ): t.types.pallet_vesting.pallet.Call.merge_schedules { return { type: "merge_schedules", ...value } } } @@ -262,8 +262,8 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_vesting.pallet.Event.VestingUpdated - | t.pallet_vesting.pallet.Event.VestingCompleted + | t.types.pallet_vesting.pallet.Event.VestingUpdated + | t.types.pallet_vesting.pallet.Event.VestingCompleted export namespace Event { /** * The amount vested has been updated. This could indicate a change in funds available. @@ -271,27 +271,27 @@ export namespace Event { */ export interface VestingUpdated { type: "VestingUpdated" - account: t.sp_core.crypto.AccountId32 - unvested: t.u128 + account: t.types.sp_core.crypto.AccountId32 + unvested: t.types.u128 } /** An \[account\] has become fully vested. */ export interface VestingCompleted { type: "VestingCompleted" - account: t.sp_core.crypto.AccountId32 + account: t.types.sp_core.crypto.AccountId32 } /** * The amount vested has been updated. This could indicate a change in funds available. * The balance given is the amount which is left unvested (and thus locked). */ export function VestingUpdated( - value: Omit, - ): t.pallet_vesting.pallet.Event.VestingUpdated { + value: Omit, + ): t.types.pallet_vesting.pallet.Event.VestingUpdated { return { type: "VestingUpdated", ...value } } /** An \[account\] has become fully vested. */ export function VestingCompleted( - value: Omit, - ): t.pallet_vesting.pallet.Event.VestingCompleted { + value: Omit, + ): t.types.pallet_vesting.pallet.Event.VestingCompleted { return { type: "VestingCompleted", ...value } } } diff --git a/codegen/_output/westend/types/pallet_vesting/vesting_info.ts b/codegen/_output/westend/types/pallet_vesting/vesting_info.ts new file mode 100644 index 000000000..ab4a9cfe5 --- /dev/null +++ b/codegen/_output/westend/types/pallet_vesting/vesting_info.ts @@ -0,0 +1,15 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $vestingInfo: $.Codec = _codec.$253 + +export interface VestingInfo { + locked: t.types.u128 + per_block: t.types.u128 + starting_block: t.types.u32 +} + +export function VestingInfo(value: t.types.pallet_vesting.vesting_info.VestingInfo) { + return value +} diff --git a/codegen/_output/westend/pallet_xcm/mod.ts b/codegen/_output/westend/types/pallet_xcm/mod.ts similarity index 100% rename from codegen/_output/westend/pallet_xcm/mod.ts rename to codegen/_output/westend/types/pallet_xcm/mod.ts diff --git a/codegen/_output/westend/pallet_xcm/pallet.ts b/codegen/_output/westend/types/pallet_xcm/pallet.ts similarity index 71% rename from codegen/_output/westend/pallet_xcm/pallet.ts rename to codegen/_output/westend/types/pallet_xcm/pallet.ts index 170fd1d2f..98a7c2a00 100644 --- a/codegen/_output/westend/pallet_xcm/pallet.ts +++ b/codegen/_output/westend/types/pallet_xcm/pallet.ts @@ -1,37 +1,37 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" -export const $call: $.Codec = _codec.$423 +export const $call: $.Codec = _codec.$423 -export const $error: $.Codec = _codec.$724 +export const $error: $.Codec = _codec.$724 -export const $event: $.Codec = _codec.$121 +export const $event: $.Codec = _codec.$121 -export const $origin: $.Codec = _codec.$261 +export const $origin: $.Codec = _codec.$261 -export const $queryStatus: $.Codec = _codec.$713 +export const $queryStatus: $.Codec = _codec.$713 -export const $versionMigrationStage: $.Codec = +export const $versionMigrationStage: $.Codec = _codec.$722 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.pallet_xcm.pallet.Call.send - | t.pallet_xcm.pallet.Call.teleport_assets - | t.pallet_xcm.pallet.Call.reserve_transfer_assets - | t.pallet_xcm.pallet.Call.execute - | t.pallet_xcm.pallet.Call.force_xcm_version - | t.pallet_xcm.pallet.Call.force_default_xcm_version - | t.pallet_xcm.pallet.Call.force_subscribe_version_notify - | t.pallet_xcm.pallet.Call.force_unsubscribe_version_notify - | t.pallet_xcm.pallet.Call.limited_reserve_transfer_assets - | t.pallet_xcm.pallet.Call.limited_teleport_assets + | t.types.pallet_xcm.pallet.Call.send + | t.types.pallet_xcm.pallet.Call.teleport_assets + | t.types.pallet_xcm.pallet.Call.reserve_transfer_assets + | t.types.pallet_xcm.pallet.Call.execute + | t.types.pallet_xcm.pallet.Call.force_xcm_version + | t.types.pallet_xcm.pallet.Call.force_default_xcm_version + | t.types.pallet_xcm.pallet.Call.force_subscribe_version_notify + | t.types.pallet_xcm.pallet.Call.force_unsubscribe_version_notify + | t.types.pallet_xcm.pallet.Call.limited_reserve_transfer_assets + | t.types.pallet_xcm.pallet.Call.limited_teleport_assets export namespace Call { export interface send { type: "send" - dest: t.xcm.VersionedMultiLocation - message: t.xcm.VersionedXcm + dest: t.types.xcm.VersionedMultiLocation + message: t.types.xcm.VersionedXcm } /** * Teleport some assets from the local chain to some destination chain. @@ -52,10 +52,10 @@ export namespace Call { */ export interface teleport_assets { type: "teleport_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 } /** * Transfer some assets from the local chain to the sovereign account of a destination @@ -77,10 +77,10 @@ export namespace Call { */ export interface reserve_transfer_assets { type: "reserve_transfer_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 } /** * Execute an XCM message from a local, signed, origin. @@ -97,8 +97,8 @@ export namespace Call { */ export interface execute { type: "execute" - message: t.xcm.VersionedXcm - max_weight: t.u64 + message: t.types.xcm.VersionedXcm + max_weight: t.types.u64 } /** * Extoll that a particular destination can be communicated with through a particular @@ -110,8 +110,8 @@ export namespace Call { */ export interface force_xcm_version { type: "force_xcm_version" - location: t.xcm.v1.multilocation.MultiLocation - xcm_version: t.u32 + location: t.types.xcm.v1.multilocation.MultiLocation + xcm_version: t.types.u32 } /** * Set a safe XCM version (the version that XCM should be encoded with if the most recent @@ -122,7 +122,7 @@ export namespace Call { */ export interface force_default_xcm_version { type: "force_default_xcm_version" - maybe_xcm_version: t.u32 | undefined + maybe_xcm_version: t.types.u32 | undefined } /** * Ask a location to notify us regarding their XCM version and any changes to it. @@ -132,7 +132,7 @@ export namespace Call { */ export interface force_subscribe_version_notify { type: "force_subscribe_version_notify" - location: t.xcm.VersionedMultiLocation + location: t.types.xcm.VersionedMultiLocation } /** * Require that a particular destination should no longer notify us regarding any XCM @@ -144,7 +144,7 @@ export namespace Call { */ export interface force_unsubscribe_version_notify { type: "force_unsubscribe_version_notify" - location: t.xcm.VersionedMultiLocation + location: t.types.xcm.VersionedMultiLocation } /** * Transfer some assets from the local chain to the sovereign account of a destination @@ -168,11 +168,11 @@ export namespace Call { */ export interface limited_reserve_transfer_assets { type: "limited_reserve_transfer_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 - weight_limit: t.xcm.v2.WeightLimit + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 + weight_limit: t.types.xcm.v2.WeightLimit } /** * Teleport some assets from the local chain to some destination chain. @@ -195,15 +195,15 @@ export namespace Call { */ export interface limited_teleport_assets { type: "limited_teleport_assets" - dest: t.xcm.VersionedMultiLocation - beneficiary: t.xcm.VersionedMultiLocation - assets: t.xcm.VersionedMultiAssets - fee_asset_item: t.u32 - weight_limit: t.xcm.v2.WeightLimit + dest: t.types.xcm.VersionedMultiLocation + beneficiary: t.types.xcm.VersionedMultiLocation + assets: t.types.xcm.VersionedMultiAssets + fee_asset_item: t.types.u32 + weight_limit: t.types.xcm.v2.WeightLimit } export function send( - value: Omit, - ): t.pallet_xcm.pallet.Call.send { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.send { return { type: "send", ...value } } /** @@ -224,8 +224,8 @@ export namespace Call { * fees. */ export function teleport_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.teleport_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.teleport_assets { return { type: "teleport_assets", ...value } } /** @@ -247,8 +247,8 @@ export namespace Call { * fees. */ export function reserve_transfer_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.reserve_transfer_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.reserve_transfer_assets { return { type: "reserve_transfer_assets", ...value } } /** @@ -265,8 +265,8 @@ export namespace Call { * to completion; only that *some* of it was executed. */ export function execute( - value: Omit, - ): t.pallet_xcm.pallet.Call.execute { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.execute { return { type: "execute", ...value } } /** @@ -278,8 +278,8 @@ export namespace Call { * - `xcm_version`: The latest version of XCM that `location` supports. */ export function force_xcm_version( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_xcm_version { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_xcm_version { return { type: "force_xcm_version", ...value } } /** @@ -290,8 +290,8 @@ export namespace Call { * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. */ export function force_default_xcm_version( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_default_xcm_version { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_default_xcm_version { return { type: "force_default_xcm_version", ...value } } /** @@ -301,8 +301,8 @@ export namespace Call { * - `location`: The location to which we should subscribe for XCM version notifications. */ export function force_subscribe_version_notify( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_subscribe_version_notify { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_subscribe_version_notify { return { type: "force_subscribe_version_notify", ...value } } /** @@ -314,8 +314,8 @@ export namespace Call { * notifications which we no longer desire. */ export function force_unsubscribe_version_notify( - value: Omit, - ): t.pallet_xcm.pallet.Call.force_unsubscribe_version_notify { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.force_unsubscribe_version_notify { return { type: "force_unsubscribe_version_notify", ...value } } /** @@ -339,8 +339,8 @@ export namespace Call { * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_reserve_transfer_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.limited_reserve_transfer_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.limited_reserve_transfer_assets { return { type: "limited_reserve_transfer_assets", ...value } } /** @@ -363,8 +363,8 @@ export namespace Call { * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. */ export function limited_teleport_assets( - value: Omit, - ): t.pallet_xcm.pallet.Call.limited_teleport_assets { + value: Omit, + ): t.types.pallet_xcm.pallet.Call.limited_teleport_assets { return { type: "limited_teleport_assets", ...value } } } @@ -387,23 +387,23 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.pallet_xcm.pallet.Event.Attempted - | t.pallet_xcm.pallet.Event.Sent - | t.pallet_xcm.pallet.Event.UnexpectedResponse - | t.pallet_xcm.pallet.Event.ResponseReady - | t.pallet_xcm.pallet.Event.Notified - | t.pallet_xcm.pallet.Event.NotifyOverweight - | t.pallet_xcm.pallet.Event.NotifyDispatchError - | t.pallet_xcm.pallet.Event.NotifyDecodeFailed - | t.pallet_xcm.pallet.Event.InvalidResponder - | t.pallet_xcm.pallet.Event.InvalidResponderVersion - | t.pallet_xcm.pallet.Event.ResponseTaken - | t.pallet_xcm.pallet.Event.AssetsTrapped - | t.pallet_xcm.pallet.Event.VersionChangeNotified - | t.pallet_xcm.pallet.Event.SupportedVersionChanged - | t.pallet_xcm.pallet.Event.NotifyTargetSendFail - | t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail - | t.pallet_xcm.pallet.Event.AssetsClaimed + | t.types.pallet_xcm.pallet.Event.Attempted + | t.types.pallet_xcm.pallet.Event.Sent + | t.types.pallet_xcm.pallet.Event.UnexpectedResponse + | t.types.pallet_xcm.pallet.Event.ResponseReady + | t.types.pallet_xcm.pallet.Event.Notified + | t.types.pallet_xcm.pallet.Event.NotifyOverweight + | t.types.pallet_xcm.pallet.Event.NotifyDispatchError + | t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed + | t.types.pallet_xcm.pallet.Event.InvalidResponder + | t.types.pallet_xcm.pallet.Event.InvalidResponderVersion + | t.types.pallet_xcm.pallet.Event.ResponseTaken + | t.types.pallet_xcm.pallet.Event.AssetsTrapped + | t.types.pallet_xcm.pallet.Event.VersionChangeNotified + | t.types.pallet_xcm.pallet.Event.SupportedVersionChanged + | t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail + | t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail + | t.types.pallet_xcm.pallet.Event.AssetsClaimed export namespace Event { /** * Execution of an XCM message was attempted. @@ -412,7 +412,7 @@ export namespace Event { */ export interface Attempted { type: "Attempted" - value: t.xcm.v2.traits.Outcome + value: t.types.xcm.v2.traits.Outcome } /** * A XCM message was sent. @@ -422,9 +422,9 @@ export namespace Event { export interface Sent { type: "Sent" value: [ - t.xcm.v1.multilocation.MultiLocation, - t.xcm.v1.multilocation.MultiLocation, - Array, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.v1.multilocation.MultiLocation, + Array, ] } /** @@ -436,7 +436,7 @@ export namespace Event { */ export interface UnexpectedResponse { type: "UnexpectedResponse" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64] } /** * Query response has been received and is ready for taking with `take_response`. There is @@ -446,7 +446,7 @@ export namespace Event { */ export interface ResponseReady { type: "ResponseReady" - value: [t.u64, t.xcm.v2.Response] + value: [t.types.u64, t.types.xcm.v2.Response] } /** * Query response has been received and query is removed. The registered notification has @@ -456,7 +456,7 @@ export namespace Event { */ export interface Notified { type: "Notified" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Query response has been received and query is removed. The registered notification could @@ -467,7 +467,13 @@ export namespace Event { */ export interface NotifyOverweight { type: "NotifyOverweight" - value: [t.u64, t.u8, t.u8, t.sp_weights.weight_v2.Weight, t.sp_weights.weight_v2.Weight] + value: [ + t.types.u64, + t.types.u8, + t.types.u8, + t.types.sp_weights.weight_v2.Weight, + t.types.sp_weights.weight_v2.Weight, + ] } /** * Query response has been received and query is removed. There was a general error with @@ -477,7 +483,7 @@ export namespace Event { */ export interface NotifyDispatchError { type: "NotifyDispatchError" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Query response has been received and query is removed. The dispatch was unable to be @@ -488,7 +494,7 @@ export namespace Event { */ export interface NotifyDecodeFailed { type: "NotifyDecodeFailed" - value: [t.u64, t.u8, t.u8] + value: [t.types.u64, t.types.u8, t.types.u8] } /** * Expected query response has been received but the origin location of the response does @@ -500,9 +506,9 @@ export namespace Event { export interface InvalidResponder { type: "InvalidResponder" value: [ - t.xcm.v1.multilocation.MultiLocation, - t.u64, - t.xcm.v1.multilocation.MultiLocation | undefined, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.u64, + t.types.xcm.v1.multilocation.MultiLocation | undefined, ] } /** @@ -518,7 +524,7 @@ export namespace Event { */ export interface InvalidResponderVersion { type: "InvalidResponderVersion" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64] } /** * Received query response has been read and removed. @@ -527,7 +533,7 @@ export namespace Event { */ export interface ResponseTaken { type: "ResponseTaken" - value: t.u64 + value: t.types.u64 } /** * Some assets have been placed in an asset trap. @@ -537,9 +543,9 @@ export namespace Event { export interface AssetsTrapped { type: "AssetsTrapped" value: [ - t.primitive_types.H256, - t.xcm.v1.multilocation.MultiLocation, - t.xcm.VersionedMultiAssets, + t.types.primitive_types.H256, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.VersionedMultiAssets, ] } /** @@ -549,7 +555,7 @@ export namespace Event { */ export interface VersionChangeNotified { type: "VersionChangeNotified" - value: [t.xcm.v1.multilocation.MultiLocation, t.u32] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u32] } /** * The supported version of a location has been changed. This might be through an @@ -559,7 +565,7 @@ export namespace Event { */ export interface SupportedVersionChanged { type: "SupportedVersionChanged" - value: [t.xcm.v1.multilocation.MultiLocation, t.u32] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u32] } /** * A given location which had a version change subscription was dropped owing to an error @@ -569,7 +575,7 @@ export namespace Event { */ export interface NotifyTargetSendFail { type: "NotifyTargetSendFail" - value: [t.xcm.v1.multilocation.MultiLocation, t.u64, t.xcm.v2.traits.Error] + value: [t.types.xcm.v1.multilocation.MultiLocation, t.types.u64, t.types.xcm.v2.traits.Error] } /** * A given location which had a version change subscription was dropped owing to an error @@ -579,7 +585,7 @@ export namespace Event { */ export interface NotifyTargetMigrationFail { type: "NotifyTargetMigrationFail" - value: [t.xcm.VersionedMultiLocation, t.u64] + value: [t.types.xcm.VersionedMultiLocation, t.types.u64] } /** * Some assets have been claimed from an asset trap @@ -589,9 +595,9 @@ export namespace Event { export interface AssetsClaimed { type: "AssetsClaimed" value: [ - t.primitive_types.H256, - t.xcm.v1.multilocation.MultiLocation, - t.xcm.VersionedMultiAssets, + t.types.primitive_types.H256, + t.types.xcm.v1.multilocation.MultiLocation, + t.types.xcm.VersionedMultiAssets, ] } /** @@ -600,8 +606,8 @@ export namespace Event { * \[ outcome \] */ export function Attempted( - value: t.pallet_xcm.pallet.Event.Attempted["value"], - ): t.pallet_xcm.pallet.Event.Attempted { + value: t.types.pallet_xcm.pallet.Event.Attempted["value"], + ): t.types.pallet_xcm.pallet.Event.Attempted { return { type: "Attempted", value } } /** @@ -610,8 +616,8 @@ export namespace Event { * \[ origin, destination, message \] */ export function Sent( - ...value: t.pallet_xcm.pallet.Event.Sent["value"] - ): t.pallet_xcm.pallet.Event.Sent { + ...value: t.types.pallet_xcm.pallet.Event.Sent["value"] + ): t.types.pallet_xcm.pallet.Event.Sent { return { type: "Sent", value } } /** @@ -622,8 +628,8 @@ export namespace Event { * \[ origin location, id \] */ export function UnexpectedResponse( - ...value: t.pallet_xcm.pallet.Event.UnexpectedResponse["value"] - ): t.pallet_xcm.pallet.Event.UnexpectedResponse { + ...value: t.types.pallet_xcm.pallet.Event.UnexpectedResponse["value"] + ): t.types.pallet_xcm.pallet.Event.UnexpectedResponse { return { type: "UnexpectedResponse", value } } /** @@ -633,8 +639,8 @@ export namespace Event { * \[ id, response \] */ export function ResponseReady( - ...value: t.pallet_xcm.pallet.Event.ResponseReady["value"] - ): t.pallet_xcm.pallet.Event.ResponseReady { + ...value: t.types.pallet_xcm.pallet.Event.ResponseReady["value"] + ): t.types.pallet_xcm.pallet.Event.ResponseReady { return { type: "ResponseReady", value } } /** @@ -644,8 +650,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function Notified( - ...value: t.pallet_xcm.pallet.Event.Notified["value"] - ): t.pallet_xcm.pallet.Event.Notified { + ...value: t.types.pallet_xcm.pallet.Event.Notified["value"] + ): t.types.pallet_xcm.pallet.Event.Notified { return { type: "Notified", value } } /** @@ -656,8 +662,8 @@ export namespace Event { * \[ id, pallet index, call index, actual weight, max budgeted weight \] */ export function NotifyOverweight( - ...value: t.pallet_xcm.pallet.Event.NotifyOverweight["value"] - ): t.pallet_xcm.pallet.Event.NotifyOverweight { + ...value: t.types.pallet_xcm.pallet.Event.NotifyOverweight["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyOverweight { return { type: "NotifyOverweight", value } } /** @@ -667,8 +673,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function NotifyDispatchError( - ...value: t.pallet_xcm.pallet.Event.NotifyDispatchError["value"] - ): t.pallet_xcm.pallet.Event.NotifyDispatchError { + ...value: t.types.pallet_xcm.pallet.Event.NotifyDispatchError["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyDispatchError { return { type: "NotifyDispatchError", value } } /** @@ -679,8 +685,8 @@ export namespace Event { * \[ id, pallet index, call index \] */ export function NotifyDecodeFailed( - ...value: t.pallet_xcm.pallet.Event.NotifyDecodeFailed["value"] - ): t.pallet_xcm.pallet.Event.NotifyDecodeFailed { + ...value: t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyDecodeFailed { return { type: "NotifyDecodeFailed", value } } /** @@ -691,8 +697,8 @@ export namespace Event { * \[ origin location, id, expected location \] */ export function InvalidResponder( - ...value: t.pallet_xcm.pallet.Event.InvalidResponder["value"] - ): t.pallet_xcm.pallet.Event.InvalidResponder { + ...value: t.types.pallet_xcm.pallet.Event.InvalidResponder["value"] + ): t.types.pallet_xcm.pallet.Event.InvalidResponder { return { type: "InvalidResponder", value } } /** @@ -707,8 +713,8 @@ export namespace Event { * \[ origin location, id \] */ export function InvalidResponderVersion( - ...value: t.pallet_xcm.pallet.Event.InvalidResponderVersion["value"] - ): t.pallet_xcm.pallet.Event.InvalidResponderVersion { + ...value: t.types.pallet_xcm.pallet.Event.InvalidResponderVersion["value"] + ): t.types.pallet_xcm.pallet.Event.InvalidResponderVersion { return { type: "InvalidResponderVersion", value } } /** @@ -717,8 +723,8 @@ export namespace Event { * \[ id \] */ export function ResponseTaken( - value: t.pallet_xcm.pallet.Event.ResponseTaken["value"], - ): t.pallet_xcm.pallet.Event.ResponseTaken { + value: t.types.pallet_xcm.pallet.Event.ResponseTaken["value"], + ): t.types.pallet_xcm.pallet.Event.ResponseTaken { return { type: "ResponseTaken", value } } /** @@ -727,8 +733,8 @@ export namespace Event { * \[ hash, origin, assets \] */ export function AssetsTrapped( - ...value: t.pallet_xcm.pallet.Event.AssetsTrapped["value"] - ): t.pallet_xcm.pallet.Event.AssetsTrapped { + ...value: t.types.pallet_xcm.pallet.Event.AssetsTrapped["value"] + ): t.types.pallet_xcm.pallet.Event.AssetsTrapped { return { type: "AssetsTrapped", value } } /** @@ -737,8 +743,8 @@ export namespace Event { * \[ destination, result \] */ export function VersionChangeNotified( - ...value: t.pallet_xcm.pallet.Event.VersionChangeNotified["value"] - ): t.pallet_xcm.pallet.Event.VersionChangeNotified { + ...value: t.types.pallet_xcm.pallet.Event.VersionChangeNotified["value"] + ): t.types.pallet_xcm.pallet.Event.VersionChangeNotified { return { type: "VersionChangeNotified", value } } /** @@ -748,8 +754,8 @@ export namespace Event { * \[ location, XCM version \] */ export function SupportedVersionChanged( - ...value: t.pallet_xcm.pallet.Event.SupportedVersionChanged["value"] - ): t.pallet_xcm.pallet.Event.SupportedVersionChanged { + ...value: t.types.pallet_xcm.pallet.Event.SupportedVersionChanged["value"] + ): t.types.pallet_xcm.pallet.Event.SupportedVersionChanged { return { type: "SupportedVersionChanged", value } } /** @@ -759,8 +765,8 @@ export namespace Event { * \[ location, query ID, error \] */ export function NotifyTargetSendFail( - ...value: t.pallet_xcm.pallet.Event.NotifyTargetSendFail["value"] - ): t.pallet_xcm.pallet.Event.NotifyTargetSendFail { + ...value: t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyTargetSendFail { return { type: "NotifyTargetSendFail", value } } /** @@ -770,8 +776,8 @@ export namespace Event { * \[ location, query ID \] */ export function NotifyTargetMigrationFail( - ...value: t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail["value"] - ): t.pallet_xcm.pallet.Event.NotifyTargetMigrationFail { + ...value: t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail["value"] + ): t.types.pallet_xcm.pallet.Event.NotifyTargetMigrationFail { return { type: "NotifyTargetMigrationFail", value } } /** @@ -780,77 +786,79 @@ export namespace Event { * \[ hash, origin, assets \] */ export function AssetsClaimed( - ...value: t.pallet_xcm.pallet.Event.AssetsClaimed["value"] - ): t.pallet_xcm.pallet.Event.AssetsClaimed { + ...value: t.types.pallet_xcm.pallet.Event.AssetsClaimed["value"] + ): t.types.pallet_xcm.pallet.Event.AssetsClaimed { return { type: "AssetsClaimed", value } } } -export type Origin = t.pallet_xcm.pallet.Origin.Xcm | t.pallet_xcm.pallet.Origin.Response +export type Origin = + | t.types.pallet_xcm.pallet.Origin.Xcm + | t.types.pallet_xcm.pallet.Origin.Response export namespace Origin { export interface Xcm { type: "Xcm" - value: t.xcm.v1.multilocation.MultiLocation + value: t.types.xcm.v1.multilocation.MultiLocation } export interface Response { type: "Response" - value: t.xcm.v1.multilocation.MultiLocation + value: t.types.xcm.v1.multilocation.MultiLocation } export function Xcm( - value: t.pallet_xcm.pallet.Origin.Xcm["value"], - ): t.pallet_xcm.pallet.Origin.Xcm { + value: t.types.pallet_xcm.pallet.Origin.Xcm["value"], + ): t.types.pallet_xcm.pallet.Origin.Xcm { return { type: "Xcm", value } } export function Response( - value: t.pallet_xcm.pallet.Origin.Response["value"], - ): t.pallet_xcm.pallet.Origin.Response { + value: t.types.pallet_xcm.pallet.Origin.Response["value"], + ): t.types.pallet_xcm.pallet.Origin.Response { return { type: "Response", value } } } export type QueryStatus = - | t.pallet_xcm.pallet.QueryStatus.Pending - | t.pallet_xcm.pallet.QueryStatus.VersionNotifier - | t.pallet_xcm.pallet.QueryStatus.Ready + | t.types.pallet_xcm.pallet.QueryStatus.Pending + | t.types.pallet_xcm.pallet.QueryStatus.VersionNotifier + | t.types.pallet_xcm.pallet.QueryStatus.Ready export namespace QueryStatus { export interface Pending { type: "Pending" - responder: t.xcm.VersionedMultiLocation - maybe_notify: [t.u8, t.u8] | undefined - timeout: t.u32 + responder: t.types.xcm.VersionedMultiLocation + maybe_notify: [t.types.u8, t.types.u8] | undefined + timeout: t.types.u32 } export interface VersionNotifier { type: "VersionNotifier" - origin: t.xcm.VersionedMultiLocation + origin: t.types.xcm.VersionedMultiLocation is_active: boolean } export interface Ready { type: "Ready" - response: t.xcm.VersionedResponse - at: t.u32 + response: t.types.xcm.VersionedResponse + at: t.types.u32 } export function Pending( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.Pending { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.Pending { return { type: "Pending", ...value } } export function VersionNotifier( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.VersionNotifier { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.VersionNotifier { return { type: "VersionNotifier", ...value } } export function Ready( - value: Omit, - ): t.pallet_xcm.pallet.QueryStatus.Ready { + value: Omit, + ): t.types.pallet_xcm.pallet.QueryStatus.Ready { return { type: "Ready", ...value } } } export type VersionMigrationStage = - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers - | t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets - | t.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers + | t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets + | t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets export namespace VersionMigrationStage { export interface MigrateSupportedVersion { type: "MigrateSupportedVersion" @@ -865,18 +873,18 @@ export namespace VersionMigrationStage { export interface MigrateAndNotifyOldTargets { type: "MigrateAndNotifyOldTargets" } - export function MigrateSupportedVersion(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion { + export function MigrateSupportedVersion(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateSupportedVersion { return { type: "MigrateSupportedVersion" } } - export function MigrateVersionNotifiers(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers { + export function MigrateVersionNotifiers(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateVersionNotifiers { return { type: "MigrateVersionNotifiers" } } export function NotifyCurrentTargets( - value: t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets["value"], - ): t.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets { + value: t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets["value"], + ): t.types.pallet_xcm.pallet.VersionMigrationStage.NotifyCurrentTargets { return { type: "NotifyCurrentTargets", value } } - export function MigrateAndNotifyOldTargets(): t.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets { + export function MigrateAndNotifyOldTargets(): t.types.pallet_xcm.pallet.VersionMigrationStage.MigrateAndNotifyOldTargets { return { type: "MigrateAndNotifyOldTargets" } } } diff --git a/codegen/_output/westend/types/polkadot_core_primitives.ts b/codegen/_output/westend/types/polkadot_core_primitives.ts new file mode 100644 index 000000000..535b94e7a --- /dev/null +++ b/codegen/_output/westend/types/polkadot_core_primitives.ts @@ -0,0 +1,50 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $candidateHash: $.Codec = _codec.$114 + +export const $inboundDownwardMessage: $.Codec< + t.types.polkadot_core_primitives.InboundDownwardMessage +> = _codec.$683 + +export const $inboundHrmpMessage: $.Codec = + _codec.$691 + +export const $outboundHrmpMessage: $.Codec = + _codec.$392 + +export type CandidateHash = t.types.primitive_types.H256 + +export function CandidateHash(value: t.types.polkadot_core_primitives.CandidateHash) { + return value +} + +export interface InboundDownwardMessage { + sent_at: t.types.u32 + msg: Uint8Array +} + +export function InboundDownwardMessage( + value: t.types.polkadot_core_primitives.InboundDownwardMessage, +) { + return value +} + +export interface InboundHrmpMessage { + sent_at: t.types.u32 + data: Uint8Array +} + +export function InboundHrmpMessage(value: t.types.polkadot_core_primitives.InboundHrmpMessage) { + return value +} + +export interface OutboundHrmpMessage { + recipient: t.types.polkadot_parachain.primitives.Id + data: Uint8Array +} + +export function OutboundHrmpMessage(value: t.types.polkadot_core_primitives.OutboundHrmpMessage) { + return value +} diff --git a/codegen/_output/westend/polkadot_parachain/mod.ts b/codegen/_output/westend/types/polkadot_parachain/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_parachain/mod.ts rename to codegen/_output/westend/types/polkadot_parachain/mod.ts diff --git a/codegen/_output/westend/types/polkadot_parachain/primitives.ts b/codegen/_output/westend/types/polkadot_parachain/primitives.ts new file mode 100644 index 000000000..b1e2f7973 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_parachain/primitives.ts @@ -0,0 +1,52 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $headData: $.Codec = _codec.$104 + +export const $hrmpChannelId: $.Codec = + _codec.$112 + +export const $id: $.Codec = _codec.$98 + +export const $validationCode: $.Codec = + _codec.$394 + +export const $validationCodeHash: $.Codec< + t.types.polkadot_parachain.primitives.ValidationCodeHash +> = _codec.$103 + +export type HeadData = Uint8Array + +export function HeadData(value: t.types.polkadot_parachain.primitives.HeadData) { + return value +} + +export interface HrmpChannelId { + sender: t.types.polkadot_parachain.primitives.Id + recipient: t.types.polkadot_parachain.primitives.Id +} + +export function HrmpChannelId(value: t.types.polkadot_parachain.primitives.HrmpChannelId) { + return value +} + +export type Id = t.types.u32 + +export function Id(value: t.types.polkadot_parachain.primitives.Id) { + return value +} + +export type ValidationCode = Uint8Array + +export function ValidationCode(value: t.types.polkadot_parachain.primitives.ValidationCode) { + return value +} + +export type ValidationCodeHash = t.types.primitive_types.H256 + +export function ValidationCodeHash( + value: t.types.polkadot_parachain.primitives.ValidationCodeHash, +) { + return value +} diff --git a/codegen/_output/westend/polkadot_primitives/mod.ts b/codegen/_output/westend/types/polkadot_primitives/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_primitives/mod.ts rename to codegen/_output/westend/types/polkadot_primitives/mod.ts diff --git a/codegen/_output/westend/types/polkadot_primitives/v2/assignment_app.ts b/codegen/_output/westend/types/polkadot_primitives/v2/assignment_app.ts new file mode 100644 index 000000000..0f57693fe --- /dev/null +++ b/codegen/_output/westend/types/polkadot_primitives/v2/assignment_app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$214 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.assignment_app.Public) { + return value +} diff --git a/codegen/_output/westend/types/polkadot_primitives/v2/collator_app.ts b/codegen/_output/westend/types/polkadot_primitives/v2/collator_app.ts new file mode 100644 index 000000000..380e89642 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_primitives/v2/collator_app.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$99 + +export const $signature: $.Codec = + _codec.$100 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.collator_app.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.polkadot_primitives.v2.collator_app.Signature) { + return value +} diff --git a/codegen/_output/westend/types/polkadot_primitives/v2/mod.ts b/codegen/_output/westend/types/polkadot_primitives/v2/mod.ts new file mode 100644 index 000000000..4a6f7229c --- /dev/null +++ b/codegen/_output/westend/types/polkadot_primitives/v2/mod.ts @@ -0,0 +1,375 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as assignment_app from "./assignment_app.ts" +export * as collator_app from "./collator_app.ts" +export * as signed from "./signed.ts" +export * as validator_app from "./validator_app.ts" + +export const $availabilityBitfield: $.Codec = + _codec.$382 + +export const $backedCandidate: $.Codec = _codec.$388 + +export const $candidateCommitments: $.Codec = + _codec.$390 + +export const $candidateDescriptor: $.Codec = + _codec.$97 + +export const $candidateReceipt: $.Codec = + _codec.$96 + +export const $committedCandidateReceipt: $.Codec< + t.types.polkadot_primitives.v2.CommittedCandidateReceipt +> = _codec.$389 + +export const $coreIndex: $.Codec = _codec.$105 + +export const $coreOccupied: $.Codec = _codec.$661 + +export const $disputeState: $.Codec = _codec.$699 + +export const $disputeStatement: $.Codec = + _codec.$401 + +export const $disputeStatementSet: $.Codec = + _codec.$398 + +export const $groupIndex: $.Codec = _codec.$106 + +export const $inherentData: $.Codec = _codec.$379 + +export const $invalidDisputeStatementKind: $.Codec< + t.types.polkadot_primitives.v2.InvalidDisputeStatementKind +> = _codec.$403 + +export const $parathreadClaim: $.Codec = _codec.$658 + +export const $parathreadEntry: $.Codec = _codec.$657 + +export const $pvfCheckStatement: $.Codec = + _codec.$405 + +export const $scrapedOnChainVotes: $.Codec = + _codec.$647 + +export const $sessionInfo: $.Codec = _codec.$696 + +export const $upgradeGoAhead: $.Codec = _codec.$676 + +export const $upgradeRestriction: $.Codec = + _codec.$677 + +export const $validDisputeStatementKind: $.Codec< + t.types.polkadot_primitives.v2.ValidDisputeStatementKind +> = _codec.$402 + +export const $validatorIndex: $.Codec = _codec.$385 + +export const $validityAttestation: $.Codec = + _codec.$396 + +export type AvailabilityBitfield = $.BitSequence + +export function AvailabilityBitfield(value: t.types.polkadot_primitives.v2.AvailabilityBitfield) { + return value +} + +export interface BackedCandidate { + candidate: t.types.polkadot_primitives.v2.CommittedCandidateReceipt + validity_votes: Array + validator_indices: $.BitSequence +} + +export function BackedCandidate(value: t.types.polkadot_primitives.v2.BackedCandidate) { + return value +} + +export interface CandidateCommitments { + upward_messages: Array + horizontal_messages: Array + new_validation_code: t.types.polkadot_parachain.primitives.ValidationCode | undefined + head_data: t.types.polkadot_parachain.primitives.HeadData + processed_downward_messages: t.types.u32 + hrmp_watermark: t.types.u32 +} + +export function CandidateCommitments(value: t.types.polkadot_primitives.v2.CandidateCommitments) { + return value +} + +export interface CandidateDescriptor { + para_id: t.types.polkadot_parachain.primitives.Id + relay_parent: t.types.primitive_types.H256 + collator: t.types.polkadot_primitives.v2.collator_app.Public + persisted_validation_data_hash: t.types.primitive_types.H256 + pov_hash: t.types.primitive_types.H256 + erasure_root: t.types.primitive_types.H256 + signature: t.types.polkadot_primitives.v2.collator_app.Signature + para_head: t.types.primitive_types.H256 + validation_code_hash: t.types.polkadot_parachain.primitives.ValidationCodeHash +} + +export function CandidateDescriptor(value: t.types.polkadot_primitives.v2.CandidateDescriptor) { + return value +} + +export interface CandidateReceipt { + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + commitments_hash: t.types.primitive_types.H256 +} + +export function CandidateReceipt(value: t.types.polkadot_primitives.v2.CandidateReceipt) { + return value +} + +export interface CommittedCandidateReceipt { + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + commitments: t.types.polkadot_primitives.v2.CandidateCommitments +} + +export function CommittedCandidateReceipt( + value: t.types.polkadot_primitives.v2.CommittedCandidateReceipt, +) { + return value +} + +export type CoreIndex = t.types.u32 + +export function CoreIndex(value: t.types.polkadot_primitives.v2.CoreIndex) { + return value +} + +export type CoreOccupied = + | t.types.polkadot_primitives.v2.CoreOccupied.Parathread + | t.types.polkadot_primitives.v2.CoreOccupied.Parachain +export namespace CoreOccupied { + export interface Parathread { + type: "Parathread" + value: t.types.polkadot_primitives.v2.ParathreadEntry + } + export interface Parachain { + type: "Parachain" + } + export function Parathread( + value: t.types.polkadot_primitives.v2.CoreOccupied.Parathread["value"], + ): t.types.polkadot_primitives.v2.CoreOccupied.Parathread { + return { type: "Parathread", value } + } + export function Parachain(): t.types.polkadot_primitives.v2.CoreOccupied.Parachain { + return { type: "Parachain" } + } +} + +export interface DisputeState { + validators_for: $.BitSequence + validators_against: $.BitSequence + start: t.types.u32 + concluded_at: t.types.u32 | undefined +} + +export function DisputeState(value: t.types.polkadot_primitives.v2.DisputeState) { + return value +} + +export type DisputeStatement = + | t.types.polkadot_primitives.v2.DisputeStatement.Valid + | t.types.polkadot_primitives.v2.DisputeStatement.Invalid +export namespace DisputeStatement { + export interface Valid { + type: "Valid" + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind + } + export interface Invalid { + type: "Invalid" + value: t.types.polkadot_primitives.v2.InvalidDisputeStatementKind + } + export function Valid( + value: t.types.polkadot_primitives.v2.DisputeStatement.Valid["value"], + ): t.types.polkadot_primitives.v2.DisputeStatement.Valid { + return { type: "Valid", value } + } + export function Invalid( + value: t.types.polkadot_primitives.v2.DisputeStatement.Invalid["value"], + ): t.types.polkadot_primitives.v2.DisputeStatement.Invalid { + return { type: "Invalid", value } + } +} + +export interface DisputeStatementSet { + candidate_hash: t.types.polkadot_core_primitives.CandidateHash + session: t.types.u32 + statements: Array< + [ + t.types.polkadot_primitives.v2.DisputeStatement, + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.validator_app.Signature, + ] + > +} + +export function DisputeStatementSet(value: t.types.polkadot_primitives.v2.DisputeStatementSet) { + return value +} + +export type GroupIndex = t.types.u32 + +export function GroupIndex(value: t.types.polkadot_primitives.v2.GroupIndex) { + return value +} + +export interface InherentData { + bitfields: Array + backed_candidates: Array + disputes: Array + parent_header: t.types.sp_runtime.generic.header.Header +} + +export function InherentData(value: t.types.polkadot_primitives.v2.InherentData) { + return value +} + +export type InvalidDisputeStatementKind = "Explicit" + +export type ParathreadClaim = [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_primitives.v2.collator_app.Public, +] + +export function ParathreadClaim(...value: t.types.polkadot_primitives.v2.ParathreadClaim) { + return value +} + +export interface ParathreadEntry { + claim: t.types.polkadot_primitives.v2.ParathreadClaim + retries: t.types.u32 +} + +export function ParathreadEntry(value: t.types.polkadot_primitives.v2.ParathreadEntry) { + return value +} + +export interface PvfCheckStatement { + accept: boolean + subject: t.types.polkadot_parachain.primitives.ValidationCodeHash + session_index: t.types.u32 + validator_index: t.types.polkadot_primitives.v2.ValidatorIndex +} + +export function PvfCheckStatement(value: t.types.polkadot_primitives.v2.PvfCheckStatement) { + return value +} + +export interface ScrapedOnChainVotes { + session: t.types.u32 + backing_validators_per_candidate: Array< + [ + t.types.polkadot_primitives.v2.CandidateReceipt, + Array< + [ + t.types.polkadot_primitives.v2.ValidatorIndex, + t.types.polkadot_primitives.v2.ValidityAttestation, + ] + >, + ] + > + disputes: Array +} + +export function ScrapedOnChainVotes(value: t.types.polkadot_primitives.v2.ScrapedOnChainVotes) { + return value +} + +export interface SessionInfo { + active_validator_indices: Array + random_seed: Uint8Array + dispute_period: t.types.u32 + validators: Array + discovery_keys: Array + assignment_keys: Array + validator_groups: Array> + n_cores: t.types.u32 + zeroth_delay_tranche_width: t.types.u32 + relay_vrf_modulo_samples: t.types.u32 + n_delay_tranches: t.types.u32 + no_show_slots: t.types.u32 + needed_approvals: t.types.u32 +} + +export function SessionInfo(value: t.types.polkadot_primitives.v2.SessionInfo) { + return value +} + +export type UpgradeGoAhead = "Abort" | "GoAhead" + +export type UpgradeRestriction = "Present" + +export type ValidDisputeStatementKind = + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid + | t.types.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking +export namespace ValidDisputeStatementKind { + export interface Explicit { + type: "Explicit" + } + export interface BackingSeconded { + type: "BackingSeconded" + value: t.types.primitive_types.H256 + } + export interface BackingValid { + type: "BackingValid" + value: t.types.primitive_types.H256 + } + export interface ApprovalChecking { + type: "ApprovalChecking" + } + export function Explicit(): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.Explicit { + return { type: "Explicit" } + } + export function BackingSeconded( + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded["value"], + ): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingSeconded { + return { type: "BackingSeconded", value } + } + export function BackingValid( + value: t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid["value"], + ): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.BackingValid { + return { type: "BackingValid", value } + } + export function ApprovalChecking(): t.types.polkadot_primitives.v2.ValidDisputeStatementKind.ApprovalChecking { + return { type: "ApprovalChecking" } + } +} + +export type ValidatorIndex = t.types.u32 + +export function ValidatorIndex(value: t.types.polkadot_primitives.v2.ValidatorIndex) { + return value +} + +export type ValidityAttestation = + | t.types.polkadot_primitives.v2.ValidityAttestation.Implicit + | t.types.polkadot_primitives.v2.ValidityAttestation.Explicit +export namespace ValidityAttestation { + export interface Implicit { + type: "Implicit" + value: t.types.polkadot_primitives.v2.validator_app.Signature + } + export interface Explicit { + type: "Explicit" + value: t.types.polkadot_primitives.v2.validator_app.Signature + } + export function Implicit( + value: t.types.polkadot_primitives.v2.ValidityAttestation.Implicit["value"], + ): t.types.polkadot_primitives.v2.ValidityAttestation.Implicit { + return { type: "Implicit", value } + } + export function Explicit( + value: t.types.polkadot_primitives.v2.ValidityAttestation.Explicit["value"], + ): t.types.polkadot_primitives.v2.ValidityAttestation.Explicit { + return { type: "Explicit", value } + } +} diff --git a/codegen/_output/westend/types/polkadot_primitives/v2/signed.ts b/codegen/_output/westend/types/polkadot_primitives/v2/signed.ts new file mode 100644 index 000000000..20d05131a --- /dev/null +++ b/codegen/_output/westend/types/polkadot_primitives/v2/signed.ts @@ -0,0 +1,16 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $uncheckedSigned: $.Codec = + _codec.$381 + +export interface UncheckedSigned { + payload: t.types.polkadot_primitives.v2.AvailabilityBitfield + validator_index: t.types.polkadot_primitives.v2.ValidatorIndex + signature: t.types.polkadot_primitives.v2.validator_app.Signature +} + +export function UncheckedSigned(value: t.types.polkadot_primitives.v2.signed.UncheckedSigned) { + return value +} diff --git a/codegen/_output/westend/types/polkadot_primitives/v2/validator_app.ts b/codegen/_output/westend/types/polkadot_primitives/v2/validator_app.ts new file mode 100644 index 000000000..fc40bffc1 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_primitives/v2/validator_app.ts @@ -0,0 +1,20 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $public: $.Codec = _codec.$213 + +export const $signature: $.Codec = + _codec.$386 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.polkadot_primitives.v2.validator_app.Public) { + return value +} + +export type Signature = t.types.sp_core.sr25519.Signature + +export function Signature(value: t.types.polkadot_primitives.v2.validator_app.Signature) { + return value +} diff --git a/codegen/_output/westend/types/polkadot_runtime.ts b/codegen/_output/westend/types/polkadot_runtime.ts new file mode 100644 index 000000000..ad598446e --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime.ts @@ -0,0 +1,1224 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $nposCompactSolution16: $.Codec = + _codec.$312 + +export const $originCaller: $.Codec = _codec.$256 + +export const $proxyType: $.Codec = _codec.$79 + +export const $runtime: $.Codec = _codec.$737 + +export const $runtimeCall: $.Codec = _codec.$181 + +export const $runtimeEvent: $.Codec = _codec.$19 + +export const $sessionKeys: $.Codec = _codec.$212 + +export interface NposCompactSolution16 { + votes1: Array<[t.Compact, t.Compact]> + votes2: Array< + [ + t.Compact, + [t.Compact, t.Compact], + t.Compact, + ] + > + votes3: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes4: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes5: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes6: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes7: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes8: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes9: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes10: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes11: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes12: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes13: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes14: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes15: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > + votes16: Array< + [ + t.Compact, + [ + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + [t.Compact, t.Compact], + ], + t.Compact, + ] + > +} + +export function NposCompactSolution16(value: t.types.polkadot_runtime.NposCompactSolution16) { + return value +} + +export type OriginCaller = + | t.types.polkadot_runtime.OriginCaller.system + | t.types.polkadot_runtime.OriginCaller.Council + | t.types.polkadot_runtime.OriginCaller.TechnicalCommittee + | t.types.polkadot_runtime.OriginCaller.ParachainsOrigin + | t.types.polkadot_runtime.OriginCaller.XcmPallet + | t.types.polkadot_runtime.OriginCaller.Void +export namespace OriginCaller { + export interface system { + type: "system" + value: t.types.frame_support.dispatch.RawOrigin + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.RawOrigin + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.RawOrigin + } + export interface ParachainsOrigin { + type: "ParachainsOrigin" + value: t.types.polkadot_runtime_parachains.origin.pallet.Origin + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Origin + } + export interface Void { + type: "Void" + value: t.types.sp_core.Void + } + export function system( + value: t.types.polkadot_runtime.OriginCaller.system["value"], + ): t.types.polkadot_runtime.OriginCaller.system { + return { type: "system", value } + } + export function Council( + value: t.types.polkadot_runtime.OriginCaller.Council["value"], + ): t.types.polkadot_runtime.OriginCaller.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.OriginCaller.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.OriginCaller.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function ParachainsOrigin( + value: t.types.polkadot_runtime.OriginCaller.ParachainsOrigin["value"], + ): t.types.polkadot_runtime.OriginCaller.ParachainsOrigin { + return { type: "ParachainsOrigin", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.OriginCaller.XcmPallet["value"], + ): t.types.polkadot_runtime.OriginCaller.XcmPallet { + return { type: "XcmPallet", value } + } + export function Void( + value: t.types.polkadot_runtime.OriginCaller.Void["value"], + ): t.types.polkadot_runtime.OriginCaller.Void { + return { type: "Void", value } + } +} + +export type ProxyType = + | "Any" + | "NonTransfer" + | "Governance" + | "Staking" + | "IdentityJudgement" + | "CancelProxy" + | "Auction" + +export function Runtime() { + return null +} + +export type Runtime = null + +export type RuntimeCall = + | t.types.polkadot_runtime.RuntimeCall.System + | t.types.polkadot_runtime.RuntimeCall.Scheduler + | t.types.polkadot_runtime.RuntimeCall.Preimage + | t.types.polkadot_runtime.RuntimeCall.Babe + | t.types.polkadot_runtime.RuntimeCall.Timestamp + | t.types.polkadot_runtime.RuntimeCall.Indices + | t.types.polkadot_runtime.RuntimeCall.Balances + | t.types.polkadot_runtime.RuntimeCall.Authorship + | t.types.polkadot_runtime.RuntimeCall.Staking + | t.types.polkadot_runtime.RuntimeCall.Session + | t.types.polkadot_runtime.RuntimeCall.Grandpa + | t.types.polkadot_runtime.RuntimeCall.ImOnline + | t.types.polkadot_runtime.RuntimeCall.Democracy + | t.types.polkadot_runtime.RuntimeCall.Council + | t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee + | t.types.polkadot_runtime.RuntimeCall.PhragmenElection + | t.types.polkadot_runtime.RuntimeCall.TechnicalMembership + | t.types.polkadot_runtime.RuntimeCall.Treasury + | t.types.polkadot_runtime.RuntimeCall.Claims + | t.types.polkadot_runtime.RuntimeCall.Vesting + | t.types.polkadot_runtime.RuntimeCall.Utility + | t.types.polkadot_runtime.RuntimeCall.Identity + | t.types.polkadot_runtime.RuntimeCall.Proxy + | t.types.polkadot_runtime.RuntimeCall.Multisig + | t.types.polkadot_runtime.RuntimeCall.Bounties + | t.types.polkadot_runtime.RuntimeCall.ChildBounties + | t.types.polkadot_runtime.RuntimeCall.Tips + | t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase + | t.types.polkadot_runtime.RuntimeCall.VoterList + | t.types.polkadot_runtime.RuntimeCall.NominationPools + | t.types.polkadot_runtime.RuntimeCall.FastUnstake + | t.types.polkadot_runtime.RuntimeCall.Configuration + | t.types.polkadot_runtime.RuntimeCall.ParasShared + | t.types.polkadot_runtime.RuntimeCall.ParaInclusion + | t.types.polkadot_runtime.RuntimeCall.ParaInherent + | t.types.polkadot_runtime.RuntimeCall.Paras + | t.types.polkadot_runtime.RuntimeCall.Initializer + | t.types.polkadot_runtime.RuntimeCall.Dmp + | t.types.polkadot_runtime.RuntimeCall.Ump + | t.types.polkadot_runtime.RuntimeCall.Hrmp + | t.types.polkadot_runtime.RuntimeCall.ParasDisputes + | t.types.polkadot_runtime.RuntimeCall.Registrar + | t.types.polkadot_runtime.RuntimeCall.Slots + | t.types.polkadot_runtime.RuntimeCall.Auctions + | t.types.polkadot_runtime.RuntimeCall.Crowdloan + | t.types.polkadot_runtime.RuntimeCall.XcmPallet +export namespace RuntimeCall { + export interface System { + type: "System" + value: t.types.frame_system.pallet.Call + } + export interface Scheduler { + type: "Scheduler" + value: t.types.pallet_scheduler.pallet.Call + } + export interface Preimage { + type: "Preimage" + value: t.types.pallet_preimage.pallet.Call + } + export interface Babe { + type: "Babe" + value: t.types.pallet_babe.pallet.Call + } + export interface Timestamp { + type: "Timestamp" + value: t.types.pallet_timestamp.pallet.Call + } + export interface Indices { + type: "Indices" + value: t.types.pallet_indices.pallet.Call + } + export interface Balances { + type: "Balances" + value: t.types.pallet_balances.pallet.Call + } + export interface Authorship { + type: "Authorship" + value: t.types.pallet_authorship.pallet.Call + } + export interface Staking { + type: "Staking" + value: t.types.pallet_staking.pallet.pallet.Call + } + export interface Session { + type: "Session" + value: t.types.pallet_session.pallet.Call + } + export interface Grandpa { + type: "Grandpa" + value: t.types.pallet_grandpa.pallet.Call + } + export interface ImOnline { + type: "ImOnline" + value: t.types.pallet_im_online.pallet.Call + } + export interface Democracy { + type: "Democracy" + value: t.types.pallet_democracy.pallet.Call + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.pallet.Call + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.pallet.Call + } + export interface PhragmenElection { + type: "PhragmenElection" + value: t.types.pallet_elections_phragmen.pallet.Call + } + export interface TechnicalMembership { + type: "TechnicalMembership" + value: t.types.pallet_membership.pallet.Call + } + export interface Treasury { + type: "Treasury" + value: t.types.pallet_treasury.pallet.Call + } + export interface Claims { + type: "Claims" + value: t.types.polkadot_runtime_common.claims.pallet.Call + } + export interface Vesting { + type: "Vesting" + value: t.types.pallet_vesting.pallet.Call + } + export interface Utility { + type: "Utility" + value: t.types.pallet_utility.pallet.Call + } + export interface Identity { + type: "Identity" + value: t.types.pallet_identity.pallet.Call + } + export interface Proxy { + type: "Proxy" + value: t.types.pallet_proxy.pallet.Call + } + export interface Multisig { + type: "Multisig" + value: t.types.pallet_multisig.pallet.Call + } + export interface Bounties { + type: "Bounties" + value: t.types.pallet_bounties.pallet.Call + } + export interface ChildBounties { + type: "ChildBounties" + value: t.types.pallet_child_bounties.pallet.Call + } + export interface Tips { + type: "Tips" + value: t.types.pallet_tips.pallet.Call + } + export interface ElectionProviderMultiPhase { + type: "ElectionProviderMultiPhase" + value: t.types.pallet_election_provider_multi_phase.pallet.Call + } + export interface VoterList { + type: "VoterList" + value: t.types.pallet_bags_list.pallet.Call + } + export interface NominationPools { + type: "NominationPools" + value: t.types.pallet_nomination_pools.pallet.Call + } + export interface FastUnstake { + type: "FastUnstake" + value: t.types.pallet_fast_unstake.pallet.Call + } + export interface Configuration { + type: "Configuration" + value: t.types.polkadot_runtime_parachains.configuration.pallet.Call + } + export interface ParasShared { + type: "ParasShared" + value: t.types.polkadot_runtime_parachains.shared.pallet.Call + } + export interface ParaInclusion { + type: "ParaInclusion" + value: t.types.polkadot_runtime_parachains.inclusion.pallet.Call + } + export interface ParaInherent { + type: "ParaInherent" + value: t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call + } + export interface Paras { + type: "Paras" + value: t.types.polkadot_runtime_parachains.paras.pallet.Call + } + export interface Initializer { + type: "Initializer" + value: t.types.polkadot_runtime_parachains.initializer.pallet.Call + } + export interface Dmp { + type: "Dmp" + value: t.types.polkadot_runtime_parachains.dmp.pallet.Call + } + export interface Ump { + type: "Ump" + value: t.types.polkadot_runtime_parachains.ump.pallet.Call + } + export interface Hrmp { + type: "Hrmp" + value: t.types.polkadot_runtime_parachains.hrmp.pallet.Call + } + export interface ParasDisputes { + type: "ParasDisputes" + value: t.types.polkadot_runtime_parachains.disputes.pallet.Call + } + export interface Registrar { + type: "Registrar" + value: t.types.polkadot_runtime_common.paras_registrar.pallet.Call + } + export interface Slots { + type: "Slots" + value: t.types.polkadot_runtime_common.slots.pallet.Call + } + export interface Auctions { + type: "Auctions" + value: t.types.polkadot_runtime_common.auctions.pallet.Call + } + export interface Crowdloan { + type: "Crowdloan" + value: t.types.polkadot_runtime_common.crowdloan.pallet.Call + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Call + } + export function System( + value: t.types.polkadot_runtime.RuntimeCall.System["value"], + ): t.types.polkadot_runtime.RuntimeCall.System { + return { type: "System", value } + } + export function Scheduler( + value: t.types.polkadot_runtime.RuntimeCall.Scheduler["value"], + ): t.types.polkadot_runtime.RuntimeCall.Scheduler { + return { type: "Scheduler", value } + } + export function Preimage( + value: t.types.polkadot_runtime.RuntimeCall.Preimage["value"], + ): t.types.polkadot_runtime.RuntimeCall.Preimage { + return { type: "Preimage", value } + } + export function Babe( + value: t.types.polkadot_runtime.RuntimeCall.Babe["value"], + ): t.types.polkadot_runtime.RuntimeCall.Babe { + return { type: "Babe", value } + } + export function Timestamp( + value: t.types.polkadot_runtime.RuntimeCall.Timestamp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Timestamp { + return { type: "Timestamp", value } + } + export function Indices( + value: t.types.polkadot_runtime.RuntimeCall.Indices["value"], + ): t.types.polkadot_runtime.RuntimeCall.Indices { + return { type: "Indices", value } + } + export function Balances( + value: t.types.polkadot_runtime.RuntimeCall.Balances["value"], + ): t.types.polkadot_runtime.RuntimeCall.Balances { + return { type: "Balances", value } + } + export function Authorship( + value: t.types.polkadot_runtime.RuntimeCall.Authorship["value"], + ): t.types.polkadot_runtime.RuntimeCall.Authorship { + return { type: "Authorship", value } + } + export function Staking( + value: t.types.polkadot_runtime.RuntimeCall.Staking["value"], + ): t.types.polkadot_runtime.RuntimeCall.Staking { + return { type: "Staking", value } + } + export function Session( + value: t.types.polkadot_runtime.RuntimeCall.Session["value"], + ): t.types.polkadot_runtime.RuntimeCall.Session { + return { type: "Session", value } + } + export function Grandpa( + value: t.types.polkadot_runtime.RuntimeCall.Grandpa["value"], + ): t.types.polkadot_runtime.RuntimeCall.Grandpa { + return { type: "Grandpa", value } + } + export function ImOnline( + value: t.types.polkadot_runtime.RuntimeCall.ImOnline["value"], + ): t.types.polkadot_runtime.RuntimeCall.ImOnline { + return { type: "ImOnline", value } + } + export function Democracy( + value: t.types.polkadot_runtime.RuntimeCall.Democracy["value"], + ): t.types.polkadot_runtime.RuntimeCall.Democracy { + return { type: "Democracy", value } + } + export function Council( + value: t.types.polkadot_runtime.RuntimeCall.Council["value"], + ): t.types.polkadot_runtime.RuntimeCall.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.RuntimeCall.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function PhragmenElection( + value: t.types.polkadot_runtime.RuntimeCall.PhragmenElection["value"], + ): t.types.polkadot_runtime.RuntimeCall.PhragmenElection { + return { type: "PhragmenElection", value } + } + export function TechnicalMembership( + value: t.types.polkadot_runtime.RuntimeCall.TechnicalMembership["value"], + ): t.types.polkadot_runtime.RuntimeCall.TechnicalMembership { + return { type: "TechnicalMembership", value } + } + export function Treasury( + value: t.types.polkadot_runtime.RuntimeCall.Treasury["value"], + ): t.types.polkadot_runtime.RuntimeCall.Treasury { + return { type: "Treasury", value } + } + export function Claims( + value: t.types.polkadot_runtime.RuntimeCall.Claims["value"], + ): t.types.polkadot_runtime.RuntimeCall.Claims { + return { type: "Claims", value } + } + export function Vesting( + value: t.types.polkadot_runtime.RuntimeCall.Vesting["value"], + ): t.types.polkadot_runtime.RuntimeCall.Vesting { + return { type: "Vesting", value } + } + export function Utility( + value: t.types.polkadot_runtime.RuntimeCall.Utility["value"], + ): t.types.polkadot_runtime.RuntimeCall.Utility { + return { type: "Utility", value } + } + export function Identity( + value: t.types.polkadot_runtime.RuntimeCall.Identity["value"], + ): t.types.polkadot_runtime.RuntimeCall.Identity { + return { type: "Identity", value } + } + export function Proxy( + value: t.types.polkadot_runtime.RuntimeCall.Proxy["value"], + ): t.types.polkadot_runtime.RuntimeCall.Proxy { + return { type: "Proxy", value } + } + export function Multisig( + value: t.types.polkadot_runtime.RuntimeCall.Multisig["value"], + ): t.types.polkadot_runtime.RuntimeCall.Multisig { + return { type: "Multisig", value } + } + export function Bounties( + value: t.types.polkadot_runtime.RuntimeCall.Bounties["value"], + ): t.types.polkadot_runtime.RuntimeCall.Bounties { + return { type: "Bounties", value } + } + export function ChildBounties( + value: t.types.polkadot_runtime.RuntimeCall.ChildBounties["value"], + ): t.types.polkadot_runtime.RuntimeCall.ChildBounties { + return { type: "ChildBounties", value } + } + export function Tips( + value: t.types.polkadot_runtime.RuntimeCall.Tips["value"], + ): t.types.polkadot_runtime.RuntimeCall.Tips { + return { type: "Tips", value } + } + export function ElectionProviderMultiPhase( + value: t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase["value"], + ): t.types.polkadot_runtime.RuntimeCall.ElectionProviderMultiPhase { + return { type: "ElectionProviderMultiPhase", value } + } + export function VoterList( + value: t.types.polkadot_runtime.RuntimeCall.VoterList["value"], + ): t.types.polkadot_runtime.RuntimeCall.VoterList { + return { type: "VoterList", value } + } + export function NominationPools( + value: t.types.polkadot_runtime.RuntimeCall.NominationPools["value"], + ): t.types.polkadot_runtime.RuntimeCall.NominationPools { + return { type: "NominationPools", value } + } + export function FastUnstake( + value: t.types.polkadot_runtime.RuntimeCall.FastUnstake["value"], + ): t.types.polkadot_runtime.RuntimeCall.FastUnstake { + return { type: "FastUnstake", value } + } + export function Configuration( + value: t.types.polkadot_runtime.RuntimeCall.Configuration["value"], + ): t.types.polkadot_runtime.RuntimeCall.Configuration { + return { type: "Configuration", value } + } + export function ParasShared( + value: t.types.polkadot_runtime.RuntimeCall.ParasShared["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParasShared { + return { type: "ParasShared", value } + } + export function ParaInclusion( + value: t.types.polkadot_runtime.RuntimeCall.ParaInclusion["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParaInclusion { + return { type: "ParaInclusion", value } + } + export function ParaInherent( + value: t.types.polkadot_runtime.RuntimeCall.ParaInherent["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParaInherent { + return { type: "ParaInherent", value } + } + export function Paras( + value: t.types.polkadot_runtime.RuntimeCall.Paras["value"], + ): t.types.polkadot_runtime.RuntimeCall.Paras { + return { type: "Paras", value } + } + export function Initializer( + value: t.types.polkadot_runtime.RuntimeCall.Initializer["value"], + ): t.types.polkadot_runtime.RuntimeCall.Initializer { + return { type: "Initializer", value } + } + export function Dmp( + value: t.types.polkadot_runtime.RuntimeCall.Dmp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Dmp { + return { type: "Dmp", value } + } + export function Ump( + value: t.types.polkadot_runtime.RuntimeCall.Ump["value"], + ): t.types.polkadot_runtime.RuntimeCall.Ump { + return { type: "Ump", value } + } + export function Hrmp( + value: t.types.polkadot_runtime.RuntimeCall.Hrmp["value"], + ): t.types.polkadot_runtime.RuntimeCall.Hrmp { + return { type: "Hrmp", value } + } + export function ParasDisputes( + value: t.types.polkadot_runtime.RuntimeCall.ParasDisputes["value"], + ): t.types.polkadot_runtime.RuntimeCall.ParasDisputes { + return { type: "ParasDisputes", value } + } + export function Registrar( + value: t.types.polkadot_runtime.RuntimeCall.Registrar["value"], + ): t.types.polkadot_runtime.RuntimeCall.Registrar { + return { type: "Registrar", value } + } + export function Slots( + value: t.types.polkadot_runtime.RuntimeCall.Slots["value"], + ): t.types.polkadot_runtime.RuntimeCall.Slots { + return { type: "Slots", value } + } + export function Auctions( + value: t.types.polkadot_runtime.RuntimeCall.Auctions["value"], + ): t.types.polkadot_runtime.RuntimeCall.Auctions { + return { type: "Auctions", value } + } + export function Crowdloan( + value: t.types.polkadot_runtime.RuntimeCall.Crowdloan["value"], + ): t.types.polkadot_runtime.RuntimeCall.Crowdloan { + return { type: "Crowdloan", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.RuntimeCall.XcmPallet["value"], + ): t.types.polkadot_runtime.RuntimeCall.XcmPallet { + return { type: "XcmPallet", value } + } +} + +export type RuntimeEvent = + | t.types.polkadot_runtime.RuntimeEvent.System + | t.types.polkadot_runtime.RuntimeEvent.Scheduler + | t.types.polkadot_runtime.RuntimeEvent.Preimage + | t.types.polkadot_runtime.RuntimeEvent.Indices + | t.types.polkadot_runtime.RuntimeEvent.Balances + | t.types.polkadot_runtime.RuntimeEvent.TransactionPayment + | t.types.polkadot_runtime.RuntimeEvent.Staking + | t.types.polkadot_runtime.RuntimeEvent.Offences + | t.types.polkadot_runtime.RuntimeEvent.Session + | t.types.polkadot_runtime.RuntimeEvent.Grandpa + | t.types.polkadot_runtime.RuntimeEvent.ImOnline + | t.types.polkadot_runtime.RuntimeEvent.Democracy + | t.types.polkadot_runtime.RuntimeEvent.Council + | t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee + | t.types.polkadot_runtime.RuntimeEvent.PhragmenElection + | t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership + | t.types.polkadot_runtime.RuntimeEvent.Treasury + | t.types.polkadot_runtime.RuntimeEvent.Claims + | t.types.polkadot_runtime.RuntimeEvent.Vesting + | t.types.polkadot_runtime.RuntimeEvent.Utility + | t.types.polkadot_runtime.RuntimeEvent.Identity + | t.types.polkadot_runtime.RuntimeEvent.Proxy + | t.types.polkadot_runtime.RuntimeEvent.Multisig + | t.types.polkadot_runtime.RuntimeEvent.Bounties + | t.types.polkadot_runtime.RuntimeEvent.ChildBounties + | t.types.polkadot_runtime.RuntimeEvent.Tips + | t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase + | t.types.polkadot_runtime.RuntimeEvent.VoterList + | t.types.polkadot_runtime.RuntimeEvent.NominationPools + | t.types.polkadot_runtime.RuntimeEvent.FastUnstake + | t.types.polkadot_runtime.RuntimeEvent.ParaInclusion + | t.types.polkadot_runtime.RuntimeEvent.Paras + | t.types.polkadot_runtime.RuntimeEvent.Ump + | t.types.polkadot_runtime.RuntimeEvent.Hrmp + | t.types.polkadot_runtime.RuntimeEvent.ParasDisputes + | t.types.polkadot_runtime.RuntimeEvent.Registrar + | t.types.polkadot_runtime.RuntimeEvent.Slots + | t.types.polkadot_runtime.RuntimeEvent.Auctions + | t.types.polkadot_runtime.RuntimeEvent.Crowdloan + | t.types.polkadot_runtime.RuntimeEvent.XcmPallet +export namespace RuntimeEvent { + export interface System { + type: "System" + value: t.types.frame_system.pallet.Event + } + export interface Scheduler { + type: "Scheduler" + value: t.types.pallet_scheduler.pallet.Event + } + export interface Preimage { + type: "Preimage" + value: t.types.pallet_preimage.pallet.Event + } + export interface Indices { + type: "Indices" + value: t.types.pallet_indices.pallet.Event + } + export interface Balances { + type: "Balances" + value: t.types.pallet_balances.pallet.Event + } + export interface TransactionPayment { + type: "TransactionPayment" + value: t.types.pallet_transaction_payment.pallet.Event + } + export interface Staking { + type: "Staking" + value: t.types.pallet_staking.pallet.pallet.Event + } + export interface Offences { + type: "Offences" + value: t.types.pallet_offences.pallet.Event + } + export interface Session { + type: "Session" + value: t.types.pallet_session.pallet.Event + } + export interface Grandpa { + type: "Grandpa" + value: t.types.pallet_grandpa.pallet.Event + } + export interface ImOnline { + type: "ImOnline" + value: t.types.pallet_im_online.pallet.Event + } + export interface Democracy { + type: "Democracy" + value: t.types.pallet_democracy.pallet.Event + } + export interface Council { + type: "Council" + value: t.types.pallet_collective.pallet.Event + } + export interface TechnicalCommittee { + type: "TechnicalCommittee" + value: t.types.pallet_collective.pallet.Event + } + export interface PhragmenElection { + type: "PhragmenElection" + value: t.types.pallet_elections_phragmen.pallet.Event + } + export interface TechnicalMembership { + type: "TechnicalMembership" + value: t.types.pallet_membership.pallet.Event + } + export interface Treasury { + type: "Treasury" + value: t.types.pallet_treasury.pallet.Event + } + export interface Claims { + type: "Claims" + value: t.types.polkadot_runtime_common.claims.pallet.Event + } + export interface Vesting { + type: "Vesting" + value: t.types.pallet_vesting.pallet.Event + } + export interface Utility { + type: "Utility" + value: t.types.pallet_utility.pallet.Event + } + export interface Identity { + type: "Identity" + value: t.types.pallet_identity.pallet.Event + } + export interface Proxy { + type: "Proxy" + value: t.types.pallet_proxy.pallet.Event + } + export interface Multisig { + type: "Multisig" + value: t.types.pallet_multisig.pallet.Event + } + export interface Bounties { + type: "Bounties" + value: t.types.pallet_bounties.pallet.Event + } + export interface ChildBounties { + type: "ChildBounties" + value: t.types.pallet_child_bounties.pallet.Event + } + export interface Tips { + type: "Tips" + value: t.types.pallet_tips.pallet.Event + } + export interface ElectionProviderMultiPhase { + type: "ElectionProviderMultiPhase" + value: t.types.pallet_election_provider_multi_phase.pallet.Event + } + export interface VoterList { + type: "VoterList" + value: t.types.pallet_bags_list.pallet.Event + } + export interface NominationPools { + type: "NominationPools" + value: t.types.pallet_nomination_pools.pallet.Event + } + export interface FastUnstake { + type: "FastUnstake" + value: t.types.pallet_fast_unstake.pallet.Event + } + export interface ParaInclusion { + type: "ParaInclusion" + value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event + } + export interface Paras { + type: "Paras" + value: t.types.polkadot_runtime_parachains.paras.pallet.Event + } + export interface Ump { + type: "Ump" + value: t.types.polkadot_runtime_parachains.ump.pallet.Event + } + export interface Hrmp { + type: "Hrmp" + value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event + } + export interface ParasDisputes { + type: "ParasDisputes" + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event + } + export interface Registrar { + type: "Registrar" + value: t.types.polkadot_runtime_common.paras_registrar.pallet.Event + } + export interface Slots { + type: "Slots" + value: t.types.polkadot_runtime_common.slots.pallet.Event + } + export interface Auctions { + type: "Auctions" + value: t.types.polkadot_runtime_common.auctions.pallet.Event + } + export interface Crowdloan { + type: "Crowdloan" + value: t.types.polkadot_runtime_common.crowdloan.pallet.Event + } + export interface XcmPallet { + type: "XcmPallet" + value: t.types.pallet_xcm.pallet.Event + } + export function System( + value: t.types.polkadot_runtime.RuntimeEvent.System["value"], + ): t.types.polkadot_runtime.RuntimeEvent.System { + return { type: "System", value } + } + export function Scheduler( + value: t.types.polkadot_runtime.RuntimeEvent.Scheduler["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Scheduler { + return { type: "Scheduler", value } + } + export function Preimage( + value: t.types.polkadot_runtime.RuntimeEvent.Preimage["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Preimage { + return { type: "Preimage", value } + } + export function Indices( + value: t.types.polkadot_runtime.RuntimeEvent.Indices["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Indices { + return { type: "Indices", value } + } + export function Balances( + value: t.types.polkadot_runtime.RuntimeEvent.Balances["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Balances { + return { type: "Balances", value } + } + export function TransactionPayment( + value: t.types.polkadot_runtime.RuntimeEvent.TransactionPayment["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TransactionPayment { + return { type: "TransactionPayment", value } + } + export function Staking( + value: t.types.polkadot_runtime.RuntimeEvent.Staking["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Staking { + return { type: "Staking", value } + } + export function Offences( + value: t.types.polkadot_runtime.RuntimeEvent.Offences["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Offences { + return { type: "Offences", value } + } + export function Session( + value: t.types.polkadot_runtime.RuntimeEvent.Session["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Session { + return { type: "Session", value } + } + export function Grandpa( + value: t.types.polkadot_runtime.RuntimeEvent.Grandpa["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Grandpa { + return { type: "Grandpa", value } + } + export function ImOnline( + value: t.types.polkadot_runtime.RuntimeEvent.ImOnline["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ImOnline { + return { type: "ImOnline", value } + } + export function Democracy( + value: t.types.polkadot_runtime.RuntimeEvent.Democracy["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Democracy { + return { type: "Democracy", value } + } + export function Council( + value: t.types.polkadot_runtime.RuntimeEvent.Council["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Council { + return { type: "Council", value } + } + export function TechnicalCommittee( + value: t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TechnicalCommittee { + return { type: "TechnicalCommittee", value } + } + export function PhragmenElection( + value: t.types.polkadot_runtime.RuntimeEvent.PhragmenElection["value"], + ): t.types.polkadot_runtime.RuntimeEvent.PhragmenElection { + return { type: "PhragmenElection", value } + } + export function TechnicalMembership( + value: t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership["value"], + ): t.types.polkadot_runtime.RuntimeEvent.TechnicalMembership { + return { type: "TechnicalMembership", value } + } + export function Treasury( + value: t.types.polkadot_runtime.RuntimeEvent.Treasury["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Treasury { + return { type: "Treasury", value } + } + export function Claims( + value: t.types.polkadot_runtime.RuntimeEvent.Claims["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Claims { + return { type: "Claims", value } + } + export function Vesting( + value: t.types.polkadot_runtime.RuntimeEvent.Vesting["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Vesting { + return { type: "Vesting", value } + } + export function Utility( + value: t.types.polkadot_runtime.RuntimeEvent.Utility["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Utility { + return { type: "Utility", value } + } + export function Identity( + value: t.types.polkadot_runtime.RuntimeEvent.Identity["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Identity { + return { type: "Identity", value } + } + export function Proxy( + value: t.types.polkadot_runtime.RuntimeEvent.Proxy["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Proxy { + return { type: "Proxy", value } + } + export function Multisig( + value: t.types.polkadot_runtime.RuntimeEvent.Multisig["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Multisig { + return { type: "Multisig", value } + } + export function Bounties( + value: t.types.polkadot_runtime.RuntimeEvent.Bounties["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Bounties { + return { type: "Bounties", value } + } + export function ChildBounties( + value: t.types.polkadot_runtime.RuntimeEvent.ChildBounties["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ChildBounties { + return { type: "ChildBounties", value } + } + export function Tips( + value: t.types.polkadot_runtime.RuntimeEvent.Tips["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Tips { + return { type: "Tips", value } + } + export function ElectionProviderMultiPhase( + value: t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ElectionProviderMultiPhase { + return { type: "ElectionProviderMultiPhase", value } + } + export function VoterList( + value: t.types.polkadot_runtime.RuntimeEvent.VoterList["value"], + ): t.types.polkadot_runtime.RuntimeEvent.VoterList { + return { type: "VoterList", value } + } + export function NominationPools( + value: t.types.polkadot_runtime.RuntimeEvent.NominationPools["value"], + ): t.types.polkadot_runtime.RuntimeEvent.NominationPools { + return { type: "NominationPools", value } + } + export function FastUnstake( + value: t.types.polkadot_runtime.RuntimeEvent.FastUnstake["value"], + ): t.types.polkadot_runtime.RuntimeEvent.FastUnstake { + return { type: "FastUnstake", value } + } + export function ParaInclusion( + value: t.types.polkadot_runtime.RuntimeEvent.ParaInclusion["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ParaInclusion { + return { type: "ParaInclusion", value } + } + export function Paras( + value: t.types.polkadot_runtime.RuntimeEvent.Paras["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Paras { + return { type: "Paras", value } + } + export function Ump( + value: t.types.polkadot_runtime.RuntimeEvent.Ump["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Ump { + return { type: "Ump", value } + } + export function Hrmp( + value: t.types.polkadot_runtime.RuntimeEvent.Hrmp["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Hrmp { + return { type: "Hrmp", value } + } + export function ParasDisputes( + value: t.types.polkadot_runtime.RuntimeEvent.ParasDisputes["value"], + ): t.types.polkadot_runtime.RuntimeEvent.ParasDisputes { + return { type: "ParasDisputes", value } + } + export function Registrar( + value: t.types.polkadot_runtime.RuntimeEvent.Registrar["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Registrar { + return { type: "Registrar", value } + } + export function Slots( + value: t.types.polkadot_runtime.RuntimeEvent.Slots["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Slots { + return { type: "Slots", value } + } + export function Auctions( + value: t.types.polkadot_runtime.RuntimeEvent.Auctions["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Auctions { + return { type: "Auctions", value } + } + export function Crowdloan( + value: t.types.polkadot_runtime.RuntimeEvent.Crowdloan["value"], + ): t.types.polkadot_runtime.RuntimeEvent.Crowdloan { + return { type: "Crowdloan", value } + } + export function XcmPallet( + value: t.types.polkadot_runtime.RuntimeEvent.XcmPallet["value"], + ): t.types.polkadot_runtime.RuntimeEvent.XcmPallet { + return { type: "XcmPallet", value } + } +} + +export interface SessionKeys { + grandpa: t.types.sp_finality_grandpa.app.Public + babe: t.types.sp_consensus_babe.app.Public + im_online: t.types.pallet_im_online.sr25519.app_sr25519.Public + para_validator: t.types.polkadot_primitives.v2.validator_app.Public + para_assignment: t.types.polkadot_primitives.v2.assignment_app.Public + authority_discovery: t.types.sp_authority_discovery.app.Public +} + +export function SessionKeys(value: t.types.polkadot_runtime.SessionKeys) { + return value +} diff --git a/codegen/_output/westend/polkadot_runtime_common/auctions/mod.ts b/codegen/_output/westend/types/polkadot_runtime_common/auctions/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_common/auctions/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_common/auctions/mod.ts diff --git a/codegen/_output/polkadot/polkadot_runtime_common/auctions/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_common/auctions/pallet.ts similarity index 63% rename from codegen/_output/polkadot/polkadot_runtime_common/auctions/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_common/auctions/pallet.ts index 4a353fb96..5e8049d64 100644 --- a/codegen/_output/polkadot/polkadot_runtime_common/auctions/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_common/auctions/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$413 +export const $call: $.Codec = _codec.$413 -export const $error: $.Codec = _codec.$709 +export const $error: $.Codec = _codec.$709 -export const $event: $.Codec = _codec.$119 +export const $event: $.Codec = _codec.$119 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.auctions.pallet.Call.new_auction - | t.polkadot_runtime_common.auctions.pallet.Call.bid - | t.polkadot_runtime_common.auctions.pallet.Call.cancel_auction + | t.types.polkadot_runtime_common.auctions.pallet.Call.new_auction + | t.types.polkadot_runtime_common.auctions.pallet.Call.bid + | t.types.polkadot_runtime_common.auctions.pallet.Call.cancel_auction export namespace Call { /** * Create a new auction. @@ -23,8 +23,8 @@ export namespace Call { */ export interface new_auction { type: "new_auction" - duration: t.Compact - lease_period_index: t.Compact + duration: t.Compact + lease_period_index: t.Compact } /** * Make a new bid from an account (including a parachain account) for deploying a new @@ -46,11 +46,11 @@ export namespace Call { */ export interface bid { type: "bid" - para: t.Compact - auction_index: t.Compact - first_slot: t.Compact - last_slot: t.Compact - amount: t.Compact + para: t.Compact + auction_index: t.Compact + first_slot: t.Compact + last_slot: t.Compact + amount: t.Compact } /** * Cancel an in-progress auction. @@ -68,8 +68,8 @@ export namespace Call { * `lease_period_index` of the initial lease period of the four that are to be auctioned. */ export function new_auction( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Call.new_auction { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Call.new_auction { return { type: "new_auction", ...value } } /** @@ -91,8 +91,8 @@ export namespace Call { * bid win. This amount is held throughout the range. */ export function bid( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Call.bid { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Call.bid { return { type: "bid", ...value } } /** @@ -100,7 +100,7 @@ export namespace Call { * * Can only be called by Root origin. */ - export function cancel_auction(): t.polkadot_runtime_common.auctions.pallet.Call.cancel_auction { + export function cancel_auction(): t.types.polkadot_runtime_common.auctions.pallet.Call.cancel_auction { return { type: "cancel_auction" } } } @@ -117,13 +117,13 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted - | t.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed - | t.polkadot_runtime_common.auctions.pallet.Event.Reserved - | t.polkadot_runtime_common.auctions.pallet.Event.Unreserved - | t.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated - | t.polkadot_runtime_common.auctions.pallet.Event.BidAccepted - | t.polkadot_runtime_common.auctions.pallet.Event.WinningOffset + | t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted + | t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed + | t.types.polkadot_runtime_common.auctions.pallet.Event.Reserved + | t.types.polkadot_runtime_common.auctions.pallet.Event.Unreserved + | t.types.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated + | t.types.polkadot_runtime_common.auctions.pallet.Event.BidAccepted + | t.types.polkadot_runtime_common.auctions.pallet.Event.WinningOffset export namespace Event { /** * An auction started. Provides its index and the block number where it will begin to @@ -131,14 +131,14 @@ export namespace Event { */ export interface AuctionStarted { type: "AuctionStarted" - auction_index: t.u32 - lease_period: t.u32 - ending: t.u32 + auction_index: t.types.u32 + lease_period: t.types.u32 + ending: t.types.u32 } /** An auction ended. All funds become unreserved. */ export interface AuctionClosed { type: "AuctionClosed" - auction_index: t.u32 + auction_index: t.types.u32 } /** * Funds were reserved for a winning bid. First balance is the extra amount reserved. @@ -146,15 +146,15 @@ export namespace Event { */ export interface Reserved { type: "Reserved" - bidder: t.sp_core.crypto.AccountId32 - extra_reserved: t.u128 - total_amount: t.u128 + bidder: t.types.sp_core.crypto.AccountId32 + extra_reserved: t.types.u128 + total_amount: t.types.u128 } /** Funds were unreserved since bidder is no longer active. `[bidder, amount]` */ export interface Unreserved { type: "Unreserved" - bidder: t.sp_core.crypto.AccountId32 - amount: t.u128 + bidder: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** * Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve @@ -162,38 +162,38 @@ export namespace Event { */ export interface ReserveConfiscated { type: "ReserveConfiscated" - para_id: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - amount: t.u128 + para_id: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 } /** A new bid has been accepted as the current winner. */ export interface BidAccepted { type: "BidAccepted" - bidder: t.sp_core.crypto.AccountId32 - para_id: t.polkadot_parachain.primitives.Id - amount: t.u128 - first_slot: t.u32 - last_slot: t.u32 + bidder: t.types.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 + first_slot: t.types.u32 + last_slot: t.types.u32 } /** The winning offset was chosen for an auction. This will map into the `Winning` storage map. */ export interface WinningOffset { type: "WinningOffset" - auction_index: t.u32 - block_number: t.u32 + auction_index: t.types.u32 + block_number: t.types.u32 } /** * An auction started. Provides its index and the block number where it will begin to * close and the first lease period of the quadruplet that is auctioned. */ export function AuctionStarted( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionStarted { return { type: "AuctionStarted", ...value } } /** An auction ended. All funds become unreserved. */ export function AuctionClosed( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.AuctionClosed { return { type: "AuctionClosed", ...value } } /** @@ -201,14 +201,14 @@ export namespace Event { * Second is the total. */ export function Reserved( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.Reserved { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.Reserved { return { type: "Reserved", ...value } } /** Funds were unreserved since bidder is no longer active. `[bidder, amount]` */ export function Unreserved( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.Unreserved { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.Unreserved { return { type: "Unreserved", ...value } } /** @@ -216,20 +216,20 @@ export namespace Event { * but no parachain slot has been leased. */ export function ReserveConfiscated( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.ReserveConfiscated { return { type: "ReserveConfiscated", ...value } } /** A new bid has been accepted as the current winner. */ export function BidAccepted( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.BidAccepted { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.BidAccepted { return { type: "BidAccepted", ...value } } /** The winning offset was chosen for an auction. This will map into the `Winning` storage map. */ export function WinningOffset( - value: Omit, - ): t.polkadot_runtime_common.auctions.pallet.Event.WinningOffset { + value: Omit, + ): t.types.polkadot_runtime_common.auctions.pallet.Event.WinningOffset { return { type: "WinningOffset", ...value } } } diff --git a/codegen/_output/westend/types/polkadot_runtime_common/claims/mod.ts b/codegen/_output/westend/types/polkadot_runtime_common/claims/mod.ts new file mode 100644 index 000000000..f49778009 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_common/claims/mod.ts @@ -0,0 +1,38 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $ecdsaSignature: $.Codec = + _codec.$246 + +export const $ethereumAddress: $.Codec = + _codec.$73 + +export const $prevalidateAttests: $.Codec< + t.types.polkadot_runtime_common.claims.PrevalidateAttests +> = _codec.$736 + +export const $statementKind: $.Codec = + _codec.$251 + +export type EcdsaSignature = Uint8Array + +export function EcdsaSignature(value: t.types.polkadot_runtime_common.claims.EcdsaSignature) { + return value +} + +export type EthereumAddress = Uint8Array + +export function EthereumAddress(value: t.types.polkadot_runtime_common.claims.EthereumAddress) { + return value +} + +export function PrevalidateAttests() { + return null +} + +export type PrevalidateAttests = null + +export type StatementKind = "Regular" | "Saft" diff --git a/codegen/_output/westend/polkadot_runtime_common/claims/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_common/claims/pallet.ts similarity index 74% rename from codegen/_output/westend/polkadot_runtime_common/claims/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_common/claims/pallet.ts index 74fb89717..ccd1ddbab 100644 --- a/codegen/_output/westend/polkadot_runtime_common/claims/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_common/claims/pallet.ts @@ -1,20 +1,20 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$245 +export const $call: $.Codec = _codec.$245 -export const $error: $.Codec = _codec.$562 +export const $error: $.Codec = _codec.$562 -export const $event: $.Codec = _codec.$72 +export const $event: $.Codec = _codec.$72 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.claims.pallet.Call.claim - | t.polkadot_runtime_common.claims.pallet.Call.mint_claim - | t.polkadot_runtime_common.claims.pallet.Call.claim_attest - | t.polkadot_runtime_common.claims.pallet.Call.attest - | t.polkadot_runtime_common.claims.pallet.Call.move_claim + | t.types.polkadot_runtime_common.claims.pallet.Call.claim + | t.types.polkadot_runtime_common.claims.pallet.Call.mint_claim + | t.types.polkadot_runtime_common.claims.pallet.Call.claim_attest + | t.types.polkadot_runtime_common.claims.pallet.Call.attest + | t.types.polkadot_runtime_common.claims.pallet.Call.move_claim export namespace Call { /** * Make a claim to collect your DOTs. @@ -44,8 +44,8 @@ export namespace Call { */ export interface claim { type: "claim" - dest: t.sp_core.crypto.AccountId32 - ethereum_signature: t.polkadot_runtime_common.claims.EcdsaSignature + dest: t.types.sp_core.crypto.AccountId32 + ethereum_signature: t.types.polkadot_runtime_common.claims.EcdsaSignature } /** * Mint a new claim to collect DOTs. @@ -66,10 +66,10 @@ export namespace Call { */ export interface mint_claim { type: "mint_claim" - who: t.polkadot_runtime_common.claims.EthereumAddress - value: t.u128 - vesting_schedule: [t.u128, t.u128, t.u32] | undefined - statement: t.polkadot_runtime_common.claims.StatementKind | undefined + who: t.types.polkadot_runtime_common.claims.EthereumAddress + value: t.types.u128 + vesting_schedule: [t.types.u128, t.types.u128, t.types.u32] | undefined + statement: t.types.polkadot_runtime_common.claims.StatementKind | undefined } /** * Make a claim to collect your DOTs by signing a statement. @@ -101,8 +101,8 @@ export namespace Call { */ export interface claim_attest { type: "claim_attest" - dest: t.sp_core.crypto.AccountId32 - ethereum_signature: t.polkadot_runtime_common.claims.EcdsaSignature + dest: t.types.sp_core.crypto.AccountId32 + ethereum_signature: t.types.polkadot_runtime_common.claims.EcdsaSignature statement: Uint8Array } /** @@ -130,9 +130,9 @@ export namespace Call { } export interface move_claim { type: "move_claim" - old: t.polkadot_runtime_common.claims.EthereumAddress - new: t.polkadot_runtime_common.claims.EthereumAddress - maybe_preclaim: t.sp_core.crypto.AccountId32 | undefined + old: t.types.polkadot_runtime_common.claims.EthereumAddress + new: t.types.polkadot_runtime_common.claims.EthereumAddress + maybe_preclaim: t.types.sp_core.crypto.AccountId32 | undefined } /** * Make a claim to collect your DOTs. @@ -161,8 +161,8 @@ export namespace Call { * */ export function claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.claim { return { type: "claim", ...value } } /** @@ -183,8 +183,8 @@ export namespace Call { * */ export function mint_claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.mint_claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.mint_claim { return { type: "mint_claim", ...value } } /** @@ -216,8 +216,8 @@ export namespace Call { * */ export function claim_attest( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.claim_attest { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.claim_attest { return { type: "claim_attest", ...value } } /** @@ -240,13 +240,13 @@ export namespace Call { * */ export function attest( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.attest { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.attest { return { type: "attest", ...value } } export function move_claim( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Call.move_claim { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Call.move_claim { return { type: "move_claim", ...value } } } @@ -261,19 +261,19 @@ export type Error = | "VestedBalanceExists" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ -export type Event = t.polkadot_runtime_common.claims.pallet.Event.Claimed +export type Event = t.types.polkadot_runtime_common.claims.pallet.Event.Claimed export namespace Event { /** Someone claimed some DOTs. */ export interface Claimed { type: "Claimed" - who: t.sp_core.crypto.AccountId32 - ethereum_address: t.polkadot_runtime_common.claims.EthereumAddress - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + ethereum_address: t.types.polkadot_runtime_common.claims.EthereumAddress + amount: t.types.u128 } /** Someone claimed some DOTs. */ export function Claimed( - value: Omit, - ): t.polkadot_runtime_common.claims.pallet.Event.Claimed { + value: Omit, + ): t.types.polkadot_runtime_common.claims.pallet.Event.Claimed { return { type: "Claimed", ...value } } } diff --git a/codegen/_output/westend/types/polkadot_runtime_common/crowdloan/mod.ts b/codegen/_output/westend/types/polkadot_runtime_common/crowdloan/mod.ts new file mode 100644 index 000000000..9879ba1f4 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_common/crowdloan/mod.ts @@ -0,0 +1,59 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $fundInfo: $.Codec = _codec.$710 + +export const $lastContribution: $.Codec< + t.types.polkadot_runtime_common.crowdloan.LastContribution +> = _codec.$711 + +export interface FundInfo { + depositor: t.types.sp_core.crypto.AccountId32 + verifier: t.types.sp_runtime.MultiSigner | undefined + deposit: t.types.u128 + raised: t.types.u128 + end: t.types.u32 + cap: t.types.u128 + last_contribution: t.types.polkadot_runtime_common.crowdloan.LastContribution + first_period: t.types.u32 + last_period: t.types.u32 + fund_index: t.types.u32 +} + +export function FundInfo(value: t.types.polkadot_runtime_common.crowdloan.FundInfo) { + return value +} + +export type LastContribution = + | t.types.polkadot_runtime_common.crowdloan.LastContribution.Never + | t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding + | t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending +export namespace LastContribution { + export interface Never { + type: "Never" + } + export interface PreEnding { + type: "PreEnding" + value: t.types.u32 + } + export interface Ending { + type: "Ending" + value: t.types.u32 + } + export function Never(): t.types.polkadot_runtime_common.crowdloan.LastContribution.Never { + return { type: "Never" } + } + export function PreEnding( + value: t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding["value"], + ): t.types.polkadot_runtime_common.crowdloan.LastContribution.PreEnding { + return { type: "PreEnding", value } + } + export function Ending( + value: t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending["value"], + ): t.types.polkadot_runtime_common.crowdloan.LastContribution.Ending { + return { type: "Ending", value } + } +} diff --git a/codegen/_output/polkadot/polkadot_runtime_common/crowdloan/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_common/crowdloan/pallet.ts similarity index 57% rename from codegen/_output/polkadot/polkadot_runtime_common/crowdloan/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_common/crowdloan/pallet.ts index 1cdbdc4bb..194d2991e 100644 --- a/codegen/_output/polkadot/polkadot_runtime_common/crowdloan/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_common/crowdloan/pallet.ts @@ -1,24 +1,24 @@ -import { $, C } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $, C } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$415 +export const $call: $.Codec = _codec.$415 -export const $error: $.Codec = _codec.$712 +export const $error: $.Codec = _codec.$712 -export const $event: $.Codec = _codec.$120 +export const $event: $.Codec = _codec.$120 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.crowdloan.pallet.Call.create - | t.polkadot_runtime_common.crowdloan.pallet.Call.contribute - | t.polkadot_runtime_common.crowdloan.pallet.Call.withdraw - | t.polkadot_runtime_common.crowdloan.pallet.Call.refund - | t.polkadot_runtime_common.crowdloan.pallet.Call.dissolve - | t.polkadot_runtime_common.crowdloan.pallet.Call.edit - | t.polkadot_runtime_common.crowdloan.pallet.Call.add_memo - | t.polkadot_runtime_common.crowdloan.pallet.Call.poke - | t.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.create + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.withdraw + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.refund + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.dissolve + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.edit + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.add_memo + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.poke + | t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all export namespace Call { /** * Create a new crowdloaning campaign for a parachain slot with the given lease period range. @@ -28,12 +28,12 @@ export namespace Call { */ export interface create { type: "create" - index: t.Compact - cap: t.Compact - first_period: t.Compact - last_period: t.Compact - end: t.Compact - verifier: t.sp_runtime.MultiSigner | undefined + index: t.Compact + cap: t.Compact + first_period: t.Compact + last_period: t.Compact + end: t.Compact + verifier: t.types.sp_runtime.MultiSigner | undefined } /** * Contribute to a crowd sale. This will transfer some balance over to fund a parachain @@ -41,9 +41,9 @@ export namespace Call { */ export interface contribute { type: "contribute" - index: t.Compact - value: t.Compact - signature: t.sp_runtime.MultiSignature | undefined + index: t.Compact + value: t.Compact + signature: t.types.sp_runtime.MultiSignature | undefined } /** * Withdraw full balance of a specific contributor. @@ -66,8 +66,8 @@ export namespace Call { */ export interface withdraw { type: "withdraw" - who: t.sp_core.crypto.AccountId32 - index: t.Compact + who: t.types.sp_core.crypto.AccountId32 + index: t.Compact } /** * Automatically refund contributors of an ended crowdloan. @@ -78,12 +78,12 @@ export namespace Call { */ export interface refund { type: "refund" - index: t.Compact + index: t.Compact } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export interface dissolve { type: "dissolve" - index: t.Compact + index: t.Compact } /** * Edit the configuration for an in-progress crowdloan. @@ -92,12 +92,12 @@ export namespace Call { */ export interface edit { type: "edit" - index: t.Compact - cap: t.Compact - first_period: t.Compact - last_period: t.Compact - end: t.Compact - verifier: t.sp_runtime.MultiSigner | undefined + index: t.Compact + cap: t.Compact + first_period: t.Compact + last_period: t.Compact + end: t.Compact + verifier: t.types.sp_runtime.MultiSigner | undefined } /** * Add an optional memo to an existing crowdloan contribution. @@ -106,7 +106,7 @@ export namespace Call { */ export interface add_memo { type: "add_memo" - index: t.polkadot_parachain.primitives.Id + index: t.types.polkadot_parachain.primitives.Id memo: Uint8Array } /** @@ -116,7 +116,7 @@ export namespace Call { */ export interface poke { type: "poke" - index: t.polkadot_parachain.primitives.Id + index: t.types.polkadot_parachain.primitives.Id } /** * Contribute your entire balance to a crowd sale. This will transfer the entire balance of a user over to fund a parachain @@ -124,8 +124,8 @@ export namespace Call { */ export interface contribute_all { type: "contribute_all" - index: t.Compact - signature: t.sp_runtime.MultiSignature | undefined + index: t.Compact + signature: t.types.sp_runtime.MultiSignature | undefined } /** * Create a new crowdloaning campaign for a parachain slot with the given lease period range. @@ -134,8 +134,8 @@ export namespace Call { * by the parachain manager. */ export function create( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.create { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.create { return { type: "create", ...value } } /** @@ -143,8 +143,8 @@ export namespace Call { * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.contribute { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute { return { type: "contribute", ...value } } /** @@ -167,8 +167,8 @@ export namespace Call { * - `index`: The parachain to whose crowdloan the contribution was made. */ export function withdraw( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.withdraw { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.withdraw { return { type: "withdraw", ...value } } /** @@ -179,14 +179,14 @@ export namespace Call { * Origin must be signed, but can come from anyone. */ export function refund( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.refund { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.refund { return { type: "refund", ...value } } /** Remove a fund after the retirement period has ended and all funds have been returned. */ export function dissolve( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.dissolve { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.dissolve { return { type: "dissolve", ...value } } /** @@ -195,8 +195,8 @@ export namespace Call { * Can only be called by Root origin. */ export function edit( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.edit { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.edit { return { type: "edit", ...value } } /** @@ -205,8 +205,8 @@ export namespace Call { * Origin must be Signed, and the user must have contributed to the crowdloan. */ export function add_memo( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.add_memo { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.add_memo { return { type: "add_memo", ...value } } /** @@ -215,8 +215,8 @@ export namespace Call { * Origin must be Signed, and the fund has non-zero raise. */ export function poke( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.poke { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.poke { return { type: "poke", ...value } } /** @@ -224,8 +224,8 @@ export namespace Call { * slot. It will be withdrawable when the crowdloan has ended and the funds are unused. */ export function contribute_all( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Call.contribute_all { return { type: "contribute_all", ...value } } } @@ -258,35 +258,35 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.crowdloan.pallet.Event.Created - | t.polkadot_runtime_common.crowdloan.pallet.Event.Contributed - | t.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew - | t.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded - | t.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded - | t.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved - | t.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult - | t.polkadot_runtime_common.crowdloan.pallet.Event.Edited - | t.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated - | t.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Created + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Contributed + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.Edited + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated + | t.types.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise export namespace Event { /** Create a new crowdloaning campaign. */ export interface Created { type: "Created" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Contributed to a crowd sale. */ export interface Contributed { type: "Contributed" - who: t.sp_core.crypto.AccountId32 - fund_index: t.polkadot_parachain.primitives.Id - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + fund_index: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 } /** Withdrew full balance of a contributor. */ export interface Withdrew { type: "Withdrew" - who: t.sp_core.crypto.AccountId32 - fund_index: t.polkadot_parachain.primitives.Id - amount: t.u128 + who: t.types.sp_core.crypto.AccountId32 + fund_index: t.types.polkadot_parachain.primitives.Id + amount: t.types.u128 } /** * The loans in a fund have been partially dissolved, i.e. there are some left @@ -294,57 +294,57 @@ export namespace Event { */ export interface PartiallyRefunded { type: "PartiallyRefunded" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** All loans in a fund have been refunded. */ export interface AllRefunded { type: "AllRefunded" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Fund is dissolved. */ export interface Dissolved { type: "Dissolved" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** The result of trying to submit a new bid to the Slots pallet. */ export interface HandleBidResult { type: "HandleBidResult" - para_id: t.polkadot_parachain.primitives.Id - result: null | C.ChainError + para_id: t.types.polkadot_parachain.primitives.Id + result: null | C.ChainError } /** The configuration to a crowdloan has been edited. */ export interface Edited { type: "Edited" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** A memo has been updated. */ export interface MemoUpdated { type: "MemoUpdated" - who: t.sp_core.crypto.AccountId32 - para_id: t.polkadot_parachain.primitives.Id + who: t.types.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id memo: Uint8Array } /** A parachain has been moved to `NewRaise` */ export interface AddedToNewRaise { type: "AddedToNewRaise" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } /** Create a new crowdloaning campaign. */ export function Created( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Created { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Created { return { type: "Created", ...value } } /** Contributed to a crowd sale. */ export function Contributed( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Contributed { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Contributed { return { type: "Contributed", ...value } } /** Withdrew full balance of a contributor. */ export function Withdrew( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Withdrew { return { type: "Withdrew", ...value } } /** @@ -352,44 +352,44 @@ export namespace Event { * over child keys that still need to be killed. */ export function PartiallyRefunded( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.PartiallyRefunded { return { type: "PartiallyRefunded", ...value } } /** All loans in a fund have been refunded. */ export function AllRefunded( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.AllRefunded { return { type: "AllRefunded", ...value } } /** Fund is dissolved. */ export function Dissolved( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Dissolved { return { type: "Dissolved", ...value } } /** The result of trying to submit a new bid to the Slots pallet. */ export function HandleBidResult( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.HandleBidResult { return { type: "HandleBidResult", ...value } } /** The configuration to a crowdloan has been edited. */ export function Edited( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.Edited { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.Edited { return { type: "Edited", ...value } } /** A memo has been updated. */ export function MemoUpdated( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.MemoUpdated { return { type: "MemoUpdated", ...value } } /** A parachain has been moved to `NewRaise` */ export function AddedToNewRaise( - value: Omit, - ): t.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise { + value: Omit, + ): t.types.polkadot_runtime_common.crowdloan.pallet.Event.AddedToNewRaise { return { type: "AddedToNewRaise", ...value } } } diff --git a/codegen/_output/westend/polkadot_runtime_common/mod.ts b/codegen/_output/westend/types/polkadot_runtime_common/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_common/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_common/mod.ts diff --git a/codegen/_output/westend/types/polkadot_runtime_common/paras_registrar/mod.ts b/codegen/_output/westend/types/polkadot_runtime_common/paras_registrar/mod.ts new file mode 100644 index 000000000..f6bde2e47 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_common/paras_registrar/mod.ts @@ -0,0 +1,18 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $paraInfo: $.Codec = + _codec.$701 + +export interface ParaInfo { + manager: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + locked: boolean +} + +export function ParaInfo(value: t.types.polkadot_runtime_common.paras_registrar.ParaInfo) { + return value +} diff --git a/codegen/_output/kusama/polkadot_runtime_common/paras_registrar/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_common/paras_registrar/pallet.ts similarity index 65% rename from codegen/_output/kusama/polkadot_runtime_common/paras_registrar/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_common/paras_registrar/pallet.ts index 8dcb503a8..0eee601ee 100644 --- a/codegen/_output/kusama/polkadot_runtime_common/paras_registrar/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_common/paras_registrar/pallet.ts @@ -1,24 +1,27 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$411 +export const $call: $.Codec = + _codec.$411 -export const $error: $.Codec = _codec.$702 +export const $error: $.Codec = + _codec.$702 -export const $event: $.Codec = _codec.$117 +export const $event: $.Codec = + _codec.$117 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.paras_registrar.pallet.Call.register - | t.polkadot_runtime_common.paras_registrar.pallet.Call.force_register - | t.polkadot_runtime_common.paras_registrar.pallet.Call.deregister - | t.polkadot_runtime_common.paras_registrar.pallet.Call.swap - | t.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock - | t.polkadot_runtime_common.paras_registrar.pallet.Call.reserve - | t.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock - | t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade - | t.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.register + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.force_register + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.deregister + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.swap + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.reserve + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade + | t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head export namespace Call { /** * Register head data and validation code for a reserved Para Id. @@ -38,9 +41,9 @@ export namespace Call { */ export interface register { type: "register" - id: t.polkadot_parachain.primitives.Id - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode + id: t.types.polkadot_parachain.primitives.Id + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Force the registration of a Para Id on the relay chain. @@ -52,11 +55,11 @@ export namespace Call { */ export interface force_register { type: "force_register" - who: t.sp_core.crypto.AccountId32 - deposit: t.u128 - id: t.polkadot_parachain.primitives.Id - genesis_head: t.polkadot_parachain.primitives.HeadData - validation_code: t.polkadot_parachain.primitives.ValidationCode + who: t.types.sp_core.crypto.AccountId32 + deposit: t.types.u128 + id: t.types.polkadot_parachain.primitives.Id + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Deregister a Para Id, freeing all data and returning any deposit. @@ -65,7 +68,7 @@ export namespace Call { */ export interface deregister { type: "deregister" - id: t.polkadot_parachain.primitives.Id + id: t.types.polkadot_parachain.primitives.Id } /** * Swap a parachain with another parachain or parathread. @@ -82,8 +85,8 @@ export namespace Call { */ export interface swap { type: "swap" - id: t.polkadot_parachain.primitives.Id - other: t.polkadot_parachain.primitives.Id + id: t.types.polkadot_parachain.primitives.Id + other: t.types.polkadot_parachain.primitives.Id } /** * Remove a manager lock from a para. This will allow the manager of a @@ -93,7 +96,7 @@ export namespace Call { */ export interface remove_lock { type: "remove_lock" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Reserve a Para Id on the relay chain. @@ -122,7 +125,7 @@ export namespace Call { */ export interface add_lock { type: "add_lock" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Schedule a parachain upgrade. @@ -131,8 +134,8 @@ export namespace Call { */ export interface schedule_code_upgrade { type: "schedule_code_upgrade" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Set the parachain's current head. @@ -141,8 +144,8 @@ export namespace Call { */ export interface set_current_head { type: "set_current_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** * Register head data and validation code for a reserved Para Id. @@ -161,8 +164,8 @@ export namespace Call { * The `Registered` event is emitted in case of success. */ export function register( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.register { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.register { return { type: "register", ...value } } /** @@ -174,8 +177,8 @@ export namespace Call { * can be registered, including sub-1000 IDs which are System Parachains. */ export function force_register( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.force_register { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.force_register { return { type: "force_register", ...value } } /** @@ -184,8 +187,8 @@ export namespace Call { * The caller must be Root, the `para` owner, or the `para` itself. The para must be a parathread. */ export function deregister( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.deregister { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.deregister { return { type: "deregister", ...value } } /** @@ -202,8 +205,8 @@ export namespace Call { * and the auction deposit are switched. */ export function swap( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.swap { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.swap { return { type: "swap", ...value } } /** @@ -213,8 +216,8 @@ export namespace Call { * Can only be called by the Root origin or the parachain. */ export function remove_lock( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.remove_lock { return { type: "remove_lock", ...value } } /** @@ -233,7 +236,7 @@ export namespace Call { * ## Events * The `Reserved` event is emitted in case of success, which provides the ID reserved for use. */ - export function reserve(): t.polkadot_runtime_common.paras_registrar.pallet.Call.reserve { + export function reserve(): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.reserve { return { type: "reserve" } } /** @@ -243,8 +246,8 @@ export namespace Call { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function add_lock( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.add_lock { return { type: "add_lock", ...value } } /** @@ -254,10 +257,10 @@ export namespace Call { */ export function schedule_code_upgrade( value: Omit< - t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade, "type" >, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade { + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.schedule_code_upgrade { return { type: "schedule_code_upgrade", ...value } } /** @@ -266,8 +269,11 @@ export namespace Call { * Can be called by Root, the parachain, or the parachain manager if the parachain is unlocked. */ export function set_current_head( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head { + value: Omit< + t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head, + "type" + >, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Call.set_current_head { return { type: "set_current_head", ...value } } } @@ -291,37 +297,37 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Registered - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered - | t.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Registered + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered + | t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved export namespace Event { export interface Registered { type: "Registered" - para_id: t.polkadot_parachain.primitives.Id - manager: t.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + manager: t.types.sp_core.crypto.AccountId32 } export interface Deregistered { type: "Deregistered" - para_id: t.polkadot_parachain.primitives.Id + para_id: t.types.polkadot_parachain.primitives.Id } export interface Reserved { type: "Reserved" - para_id: t.polkadot_parachain.primitives.Id - who: t.sp_core.crypto.AccountId32 + para_id: t.types.polkadot_parachain.primitives.Id + who: t.types.sp_core.crypto.AccountId32 } export function Registered( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Registered { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Registered { return { type: "Registered", ...value } } export function Deregistered( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Deregistered { return { type: "Deregistered", ...value } } export function Reserved( - value: Omit, - ): t.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved { + value: Omit, + ): t.types.polkadot_runtime_common.paras_registrar.pallet.Event.Reserved { return { type: "Reserved", ...value } } } diff --git a/codegen/_output/westend/polkadot_runtime_common/slots/mod.ts b/codegen/_output/westend/types/polkadot_runtime_common/slots/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_common/slots/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_common/slots/mod.ts diff --git a/codegen/_output/polkadot/polkadot_runtime_common/slots/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_common/slots/pallet.ts similarity index 61% rename from codegen/_output/polkadot/polkadot_runtime_common/slots/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_common/slots/pallet.ts index 9abcf29d1..1887e3651 100644 --- a/codegen/_output/polkadot/polkadot_runtime_common/slots/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_common/slots/pallet.ts @@ -1,18 +1,18 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$412 +export const $call: $.Codec = _codec.$412 -export const $error: $.Codec = _codec.$704 +export const $error: $.Codec = _codec.$704 -export const $event: $.Codec = _codec.$118 +export const $event: $.Codec = _codec.$118 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_common.slots.pallet.Call.force_lease - | t.polkadot_runtime_common.slots.pallet.Call.clear_all_leases - | t.polkadot_runtime_common.slots.pallet.Call.trigger_onboard + | t.types.polkadot_runtime_common.slots.pallet.Call.force_lease + | t.types.polkadot_runtime_common.slots.pallet.Call.clear_all_leases + | t.types.polkadot_runtime_common.slots.pallet.Call.trigger_onboard export namespace Call { /** * Just a connect into the `lease_out` call, in case Root wants to force some lease to happen @@ -22,11 +22,11 @@ export namespace Call { */ export interface force_lease { type: "force_lease" - para: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - amount: t.u128 - period_begin: t.u32 - period_count: t.u32 + para: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + amount: t.types.u128 + period_begin: t.types.u32 + period_count: t.types.u32 } /** * Clear all leases for a Para Id, refunding any deposits back to the original owners. @@ -35,7 +35,7 @@ export namespace Call { */ export interface clear_all_leases { type: "clear_all_leases" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Try to onboard a parachain that has a lease for the current lease period. @@ -48,7 +48,7 @@ export namespace Call { */ export interface trigger_onboard { type: "trigger_onboard" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Just a connect into the `lease_out` call, in case Root wants to force some lease to happen @@ -57,8 +57,8 @@ export namespace Call { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function force_lease( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.force_lease { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.force_lease { return { type: "force_lease", ...value } } /** @@ -67,8 +67,8 @@ export namespace Call { * The dispatch origin for this call must match `T::ForceOrigin`. */ export function clear_all_leases( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.clear_all_leases { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.clear_all_leases { return { type: "clear_all_leases", ...value } } /** @@ -81,8 +81,8 @@ export namespace Call { * Origin must be signed, but can be called by anyone. */ export function trigger_onboard( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Call.trigger_onboard { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Call.trigger_onboard { return { type: "trigger_onboard", ...value } } } @@ -92,13 +92,13 @@ export type Error = "ParaNotOnboarding" | "LeaseError" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod - | t.polkadot_runtime_common.slots.pallet.Event.Leased + | t.types.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod + | t.types.polkadot_runtime_common.slots.pallet.Event.Leased export namespace Event { /** A new `[lease_period]` is beginning. */ export interface NewLeasePeriod { type: "NewLeasePeriod" - lease_period: t.u32 + lease_period: t.types.u32 } /** * A para has won the right to a continuous set of lease periods as a parachain. @@ -107,17 +107,17 @@ export namespace Event { */ export interface Leased { type: "Leased" - para_id: t.polkadot_parachain.primitives.Id - leaser: t.sp_core.crypto.AccountId32 - period_begin: t.u32 - period_count: t.u32 - extra_reserved: t.u128 - total_amount: t.u128 + para_id: t.types.polkadot_parachain.primitives.Id + leaser: t.types.sp_core.crypto.AccountId32 + period_begin: t.types.u32 + period_count: t.types.u32 + extra_reserved: t.types.u128 + total_amount: t.types.u128 } /** A new `[lease_period]` is beginning. */ export function NewLeasePeriod( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Event.NewLeasePeriod { return { type: "NewLeasePeriod", ...value } } /** @@ -126,8 +126,8 @@ export namespace Event { * Second balance is the total amount reserved. */ export function Leased( - value: Omit, - ): t.polkadot_runtime_common.slots.pallet.Event.Leased { + value: Omit, + ): t.types.polkadot_runtime_common.slots.pallet.Event.Leased { return { type: "Leased", ...value } } } diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/configuration/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/configuration/mod.ts new file mode 100644 index 000000000..d8267fcbd --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/configuration/mod.ts @@ -0,0 +1,61 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $hostConfiguration: $.Codec< + t.types.polkadot_runtime_parachains.configuration.HostConfiguration +> = _codec.$638 + +export interface HostConfiguration { + max_code_size: t.types.u32 + max_head_data_size: t.types.u32 + max_upward_queue_count: t.types.u32 + max_upward_queue_size: t.types.u32 + max_upward_message_size: t.types.u32 + max_upward_message_num_per_candidate: t.types.u32 + hrmp_max_message_num_per_candidate: t.types.u32 + validation_upgrade_cooldown: t.types.u32 + validation_upgrade_delay: t.types.u32 + max_pov_size: t.types.u32 + max_downward_message_size: t.types.u32 + ump_service_total_weight: t.types.sp_weights.weight_v2.Weight + hrmp_max_parachain_outbound_channels: t.types.u32 + hrmp_max_parathread_outbound_channels: t.types.u32 + hrmp_sender_deposit: t.types.u128 + hrmp_recipient_deposit: t.types.u128 + hrmp_channel_max_capacity: t.types.u32 + hrmp_channel_max_total_size: t.types.u32 + hrmp_max_parachain_inbound_channels: t.types.u32 + hrmp_max_parathread_inbound_channels: t.types.u32 + hrmp_channel_max_message_size: t.types.u32 + code_retention_period: t.types.u32 + parathread_cores: t.types.u32 + parathread_retries: t.types.u32 + group_rotation_frequency: t.types.u32 + chain_availability_period: t.types.u32 + thread_availability_period: t.types.u32 + scheduling_lookahead: t.types.u32 + max_validators_per_core: t.types.u32 | undefined + max_validators: t.types.u32 | undefined + dispute_period: t.types.u32 + dispute_post_conclusion_acceptance_period: t.types.u32 + dispute_max_spam_slots: t.types.u32 + dispute_conclusion_by_time_out_period: t.types.u32 + no_show_slots: t.types.u32 + n_delay_tranches: t.types.u32 + zeroth_delay_tranche_width: t.types.u32 + needed_approvals: t.types.u32 + relay_vrf_modulo_samples: t.types.u32 + ump_max_individual_weight: t.types.sp_weights.weight_v2.Weight + pvf_checking_enabled: boolean + pvf_voting_ttl: t.types.u32 + minimum_validation_upgrade_delay: t.types.u32 +} + +export function HostConfiguration( + value: t.types.polkadot_runtime_parachains.configuration.HostConfiguration, +) { + return value +} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/configuration/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/configuration/pallet.ts similarity index 55% rename from codegen/_output/westend/polkadot_runtime_parachains/configuration/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/configuration/pallet.ts index bdc792cc2..ff0b4bbd4 100644 --- a/codegen/_output/westend/polkadot_runtime_parachains/configuration/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/configuration/pallet.ts @@ -1,148 +1,150 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$375 +export const $call: $.Codec = + _codec.$375 -export const $error: $.Codec = _codec.$641 +export const $error: $.Codec = + _codec.$641 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay - | t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay + | t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check export namespace Call { /** Set the validation upgrade cooldown. */ export interface set_validation_upgrade_cooldown { type: "set_validation_upgrade_cooldown" - new: t.u32 + new: t.types.u32 } /** Set the validation upgrade delay. */ export interface set_validation_upgrade_delay { type: "set_validation_upgrade_delay" - new: t.u32 + new: t.types.u32 } /** Set the acceptance period for an included candidate. */ export interface set_code_retention_period { type: "set_code_retention_period" - new: t.u32 + new: t.types.u32 } /** Set the max validation code size for incoming upgrades. */ export interface set_max_code_size { type: "set_max_code_size" - new: t.u32 + new: t.types.u32 } /** Set the max POV block size for incoming upgrades. */ export interface set_max_pov_size { type: "set_max_pov_size" - new: t.u32 + new: t.types.u32 } /** Set the max head data size for paras. */ export interface set_max_head_data_size { type: "set_max_head_data_size" - new: t.u32 + new: t.types.u32 } /** Set the number of parathread execution cores. */ export interface set_parathread_cores { type: "set_parathread_cores" - new: t.u32 + new: t.types.u32 } /** Set the number of retries for a particular parathread. */ export interface set_parathread_retries { type: "set_parathread_retries" - new: t.u32 + new: t.types.u32 } /** Set the parachain validator-group rotation frequency */ export interface set_group_rotation_frequency { type: "set_group_rotation_frequency" - new: t.u32 + new: t.types.u32 } /** Set the availability period for parachains. */ export interface set_chain_availability_period { type: "set_chain_availability_period" - new: t.u32 + new: t.types.u32 } /** Set the availability period for parathreads. */ export interface set_thread_availability_period { type: "set_thread_availability_period" - new: t.u32 + new: t.types.u32 } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export interface set_scheduling_lookahead { type: "set_scheduling_lookahead" - new: t.u32 + new: t.types.u32 } /** Set the maximum number of validators to assign to any core. */ export interface set_max_validators_per_core { type: "set_max_validators_per_core" - new: t.u32 | undefined + new: t.types.u32 | undefined } /** Set the maximum number of validators to use in parachain consensus. */ export interface set_max_validators { type: "set_max_validators" - new: t.u32 | undefined + new: t.types.u32 | undefined } /** Set the dispute period, in number of sessions to keep for disputes. */ export interface set_dispute_period { type: "set_dispute_period" - new: t.u32 + new: t.types.u32 } /** Set the dispute post conclusion acceptance period. */ export interface set_dispute_post_conclusion_acceptance_period { type: "set_dispute_post_conclusion_acceptance_period" - new: t.u32 + new: t.types.u32 } /** Set the maximum number of dispute spam slots. */ export interface set_dispute_max_spam_slots { type: "set_dispute_max_spam_slots" - new: t.u32 + new: t.types.u32 } /** Set the dispute conclusion by time out period. */ export interface set_dispute_conclusion_by_time_out_period { type: "set_dispute_conclusion_by_time_out_period" - new: t.u32 + new: t.types.u32 } /** * Set the no show slots, in number of number of consensus slots. @@ -150,67 +152,67 @@ export namespace Call { */ export interface set_no_show_slots { type: "set_no_show_slots" - new: t.u32 + new: t.types.u32 } /** Set the total number of delay tranches. */ export interface set_n_delay_tranches { type: "set_n_delay_tranches" - new: t.u32 + new: t.types.u32 } /** Set the zeroth delay tranche width. */ export interface set_zeroth_delay_tranche_width { type: "set_zeroth_delay_tranche_width" - new: t.u32 + new: t.types.u32 } /** Set the number of validators needed to approve a block. */ export interface set_needed_approvals { type: "set_needed_approvals" - new: t.u32 + new: t.types.u32 } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export interface set_relay_vrf_modulo_samples { type: "set_relay_vrf_modulo_samples" - new: t.u32 + new: t.types.u32 } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export interface set_max_upward_queue_count { type: "set_max_upward_queue_count" - new: t.u32 + new: t.types.u32 } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export interface set_max_upward_queue_size { type: "set_max_upward_queue_size" - new: t.u32 + new: t.types.u32 } /** Set the critical downward message size. */ export interface set_max_downward_message_size { type: "set_max_downward_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export interface set_ump_service_total_weight { type: "set_ump_service_total_weight" - new: t.sp_weights.weight_v2.Weight + new: t.types.sp_weights.weight_v2.Weight } /** Sets the maximum size of an upward message that can be sent by a candidate. */ export interface set_max_upward_message_size { type: "set_max_upward_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of messages that a candidate can contain. */ export interface set_max_upward_message_num_per_candidate { type: "set_max_upward_message_num_per_candidate" - new: t.u32 + new: t.types.u32 } /** Sets the number of sessions after which an HRMP open channel request expires. */ export interface set_hrmp_open_request_ttl { type: "set_hrmp_open_request_ttl" - new: t.u32 + new: t.types.u32 } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export interface set_hrmp_sender_deposit { type: "set_hrmp_sender_deposit" - new: t.u128 + new: t.types.u128 } /** * Sets the amount of funds that the recipient should provide for accepting opening an HRMP @@ -218,52 +220,52 @@ export namespace Call { */ export interface set_hrmp_recipient_deposit { type: "set_hrmp_recipient_deposit" - new: t.u128 + new: t.types.u128 } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export interface set_hrmp_channel_max_capacity { type: "set_hrmp_channel_max_capacity" - new: t.u32 + new: t.types.u32 } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export interface set_hrmp_channel_max_total_size { type: "set_hrmp_channel_max_total_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export interface set_hrmp_max_parachain_inbound_channels { type: "set_hrmp_max_parachain_inbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export interface set_hrmp_max_parathread_inbound_channels { type: "set_hrmp_max_parathread_inbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export interface set_hrmp_channel_max_message_size { type: "set_hrmp_channel_max_message_size" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export interface set_hrmp_max_parachain_outbound_channels { type: "set_hrmp_max_parachain_outbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export interface set_hrmp_max_parathread_outbound_channels { type: "set_hrmp_max_parathread_outbound_channels" - new: t.u32 + new: t.types.u32 } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export interface set_hrmp_max_message_num_per_candidate { type: "set_hrmp_max_message_num_per_candidate" - new: t.u32 + new: t.types.u32 } /** Sets the maximum amount of weight any individual upward message may consume. */ export interface set_ump_max_individual_weight { type: "set_ump_max_individual_weight" - new: t.sp_weights.weight_v2.Weight + new: t.types.sp_weights.weight_v2.Weight } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export interface set_pvf_checking_enabled { @@ -273,7 +275,7 @@ export namespace Call { /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export interface set_pvf_voting_ttl { type: "set_pvf_voting_ttl" - new: t.u32 + new: t.types.u32 } /** * Sets the minimum delay between announcing the upgrade block for a parachain until the @@ -283,7 +285,7 @@ export namespace Call { */ export interface set_minimum_validation_upgrade_delay { type: "set_minimum_validation_upgrade_delay" - new: t.u32 + new: t.types.u32 } /** * Setting this to true will disable consistency checks for the configuration setters. @@ -296,151 +298,163 @@ export namespace Call { /** Set the validation upgrade cooldown. */ export function set_validation_upgrade_cooldown( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_cooldown { return { type: "set_validation_upgrade_cooldown", ...value } } /** Set the validation upgrade delay. */ export function set_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_validation_upgrade_delay { return { type: "set_validation_upgrade_delay", ...value } } /** Set the acceptance period for an included candidate. */ export function set_code_retention_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_code_retention_period { return { type: "set_code_retention_period", ...value } } /** Set the max validation code size for incoming upgrades. */ export function set_max_code_size( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_code_size { return { type: "set_max_code_size", ...value } } /** Set the max POV block size for incoming upgrades. */ export function set_max_pov_size( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_pov_size { return { type: "set_max_pov_size", ...value } } /** Set the max head data size for paras. */ export function set_max_head_data_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_head_data_size { return { type: "set_max_head_data_size", ...value } } /** Set the number of parathread execution cores. */ export function set_parathread_cores( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_cores { return { type: "set_parathread_cores", ...value } } /** Set the number of retries for a particular parathread. */ export function set_parathread_retries( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_parathread_retries { return { type: "set_parathread_retries", ...value } } /** Set the parachain validator-group rotation frequency */ export function set_group_rotation_frequency( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_group_rotation_frequency { return { type: "set_group_rotation_frequency", ...value } } /** Set the availability period for parachains. */ export function set_chain_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_chain_availability_period { return { type: "set_chain_availability_period", ...value } } /** Set the availability period for parathreads. */ export function set_thread_availability_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_thread_availability_period { return { type: "set_thread_availability_period", ...value } } /** Set the scheduling lookahead, in expected number of blocks at peak throughput. */ export function set_scheduling_lookahead( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_scheduling_lookahead { return { type: "set_scheduling_lookahead", ...value } } /** Set the maximum number of validators to assign to any core. */ export function set_max_validators_per_core( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators_per_core { return { type: "set_max_validators_per_core", ...value } } /** Set the maximum number of validators to use in parachain consensus. */ export function set_max_validators( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_validators { return { type: "set_max_validators", ...value } } /** Set the dispute period, in number of sessions to keep for disputes. */ export function set_dispute_period( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_period { return { type: "set_dispute_period", ...value } } /** Set the dispute post conclusion acceptance period. */ export function set_dispute_post_conclusion_acceptance_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_post_conclusion_acceptance_period { return { type: "set_dispute_post_conclusion_acceptance_period", ...value } } /** Set the maximum number of dispute spam slots. */ export function set_dispute_max_spam_slots( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_max_spam_slots { return { type: "set_dispute_max_spam_slots", ...value } } /** Set the dispute conclusion by time out period. */ export function set_dispute_conclusion_by_time_out_period( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_dispute_conclusion_by_time_out_period { return { type: "set_dispute_conclusion_by_time_out_period", ...value } } /** @@ -448,116 +462,119 @@ export namespace Call { * Must be at least 1. */ export function set_no_show_slots( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_no_show_slots { return { type: "set_no_show_slots", ...value } } /** Set the total number of delay tranches. */ export function set_n_delay_tranches( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_n_delay_tranches { return { type: "set_n_delay_tranches", ...value } } /** Set the zeroth delay tranche width. */ export function set_zeroth_delay_tranche_width( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_zeroth_delay_tranche_width { return { type: "set_zeroth_delay_tranche_width", ...value } } /** Set the number of validators needed to approve a block. */ export function set_needed_approvals( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_needed_approvals { return { type: "set_needed_approvals", ...value } } /** Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion. */ export function set_relay_vrf_modulo_samples( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_relay_vrf_modulo_samples { return { type: "set_relay_vrf_modulo_samples", ...value } } /** Sets the maximum items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_count( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_count { return { type: "set_max_upward_queue_count", ...value } } /** Sets the maximum total size of items that can present in a upward dispatch queue at once. */ export function set_max_upward_queue_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_queue_size { return { type: "set_max_upward_queue_size", ...value } } /** Set the critical downward message size. */ export function set_max_downward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_downward_message_size { return { type: "set_max_downward_message_size", ...value } } /** Sets the soft limit for the phase of dispatching dispatchable upward messages. */ export function set_ump_service_total_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_service_total_weight { return { type: "set_ump_service_total_weight", ...value } } /** Sets the maximum size of an upward message that can be sent by a candidate. */ export function set_max_upward_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_size { return { type: "set_max_upward_message_size", ...value } } /** Sets the maximum number of messages that a candidate can contain. */ export function set_max_upward_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_max_upward_message_num_per_candidate { return { type: "set_max_upward_message_num_per_candidate", ...value } } /** Sets the number of sessions after which an HRMP open channel request expires. */ export function set_hrmp_open_request_ttl( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_open_request_ttl { return { type: "set_hrmp_open_request_ttl", ...value } } /** Sets the amount of funds that the sender should provide for opening an HRMP channel. */ export function set_hrmp_sender_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_sender_deposit { return { type: "set_hrmp_sender_deposit", ...value } } /** @@ -566,106 +583,109 @@ export namespace Call { */ export function set_hrmp_recipient_deposit( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_recipient_deposit { return { type: "set_hrmp_recipient_deposit", ...value } } /** Sets the maximum number of messages allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_capacity( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_capacity { return { type: "set_hrmp_channel_max_capacity", ...value } } /** Sets the maximum total size of messages in bytes allowed in an HRMP channel at once. */ export function set_hrmp_channel_max_total_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_total_size { return { type: "set_hrmp_channel_max_total_size", ...value } } /** Sets the maximum number of inbound HRMP channels a parachain is allowed to accept. */ export function set_hrmp_max_parachain_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_inbound_channels { return { type: "set_hrmp_max_parachain_inbound_channels", ...value } } /** Sets the maximum number of inbound HRMP channels a parathread is allowed to accept. */ export function set_hrmp_max_parathread_inbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_inbound_channels { return { type: "set_hrmp_max_parathread_inbound_channels", ...value } } /** Sets the maximum size of a message that could ever be put into an HRMP channel. */ export function set_hrmp_channel_max_message_size( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_channel_max_message_size { return { type: "set_hrmp_channel_max_message_size", ...value } } /** Sets the maximum number of outbound HRMP channels a parachain is allowed to open. */ export function set_hrmp_max_parachain_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parachain_outbound_channels { return { type: "set_hrmp_max_parachain_outbound_channels", ...value } } /** Sets the maximum number of outbound HRMP channels a parathread is allowed to open. */ export function set_hrmp_max_parathread_outbound_channels( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_parathread_outbound_channels { return { type: "set_hrmp_max_parathread_outbound_channels", ...value } } /** Sets the maximum number of outbound HRMP messages can be sent by a candidate. */ export function set_hrmp_max_message_num_per_candidate( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_hrmp_max_message_num_per_candidate { return { type: "set_hrmp_max_message_num_per_candidate", ...value } } /** Sets the maximum amount of weight any individual upward message may consume. */ export function set_ump_max_individual_weight( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_ump_max_individual_weight { return { type: "set_ump_max_individual_weight", ...value } } /** Enable or disable PVF pre-checking. Consult the field documentation prior executing. */ export function set_pvf_checking_enabled( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_checking_enabled { return { type: "set_pvf_checking_enabled", ...value } } /** Set the number of session changes after which a PVF pre-checking voting is rejected. */ export function set_pvf_voting_ttl( - value: Omit, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl { + value: Omit< + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl, + "type" + >, + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_pvf_voting_ttl { return { type: "set_pvf_voting_ttl", ...value } } /** @@ -676,10 +696,10 @@ export namespace Call { */ export function set_minimum_validation_upgrade_delay( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_minimum_validation_upgrade_delay { return { type: "set_minimum_validation_upgrade_delay", ...value } } /** @@ -688,10 +708,10 @@ export namespace Call { */ export function set_bypass_consistency_check( value: Omit< - t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, + t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check, "type" >, - ): t.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check { + ): t.types.polkadot_runtime_parachains.configuration.pallet.Call.set_bypass_consistency_check { return { type: "set_bypass_consistency_check", ...value } } } diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/disputes/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/disputes/mod.ts new file mode 100644 index 000000000..78ba141ad --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/disputes/mod.ts @@ -0,0 +1,16 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $disputeLocation: $.Codec< + t.types.polkadot_runtime_parachains.disputes.DisputeLocation +> = _codec.$115 + +export const $disputeResult: $.Codec = + _codec.$116 + +export type DisputeLocation = "Local" | "Remote" + +export type DisputeResult = "Valid" | "Invalid" diff --git a/codegen/_output/westend/polkadot_runtime_parachains/disputes/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/disputes/pallet.ts similarity index 57% rename from codegen/_output/westend/polkadot_runtime_parachains/disputes/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/disputes/pallet.ts index 5c35c65c3..7a45998ea 100644 --- a/codegen/_output/westend/polkadot_runtime_parachains/disputes/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/disputes/pallet.ts @@ -1,12 +1,14 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$410 +export const $call: $.Codec = _codec.$410 -export const $error: $.Codec = _codec.$700 +export const $error: $.Codec = + _codec.$700 -export const $event: $.Codec = _codec.$113 +export const $event: $.Codec = + _codec.$113 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = "force_unfreeze" @@ -23,17 +25,17 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded - | t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut - | t.polkadot_runtime_parachains.disputes.pallet.Event.Revert + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut + | t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert export namespace Event { /** A dispute has been initiated. \[candidate hash, dispute location\] */ export interface DisputeInitiated { type: "DisputeInitiated" value: [ - t.polkadot_core_primitives.CandidateHash, - t.polkadot_runtime_parachains.disputes.DisputeLocation, + t.types.polkadot_core_primitives.CandidateHash, + t.types.polkadot_runtime_parachains.disputes.DisputeLocation, ] } /** @@ -43,8 +45,8 @@ export namespace Event { export interface DisputeConcluded { type: "DisputeConcluded" value: [ - t.polkadot_core_primitives.CandidateHash, - t.polkadot_runtime_parachains.disputes.DisputeResult, + t.types.polkadot_core_primitives.CandidateHash, + t.types.polkadot_runtime_parachains.disputes.DisputeResult, ] } /** @@ -53,7 +55,7 @@ export namespace Event { */ export interface DisputeTimedOut { type: "DisputeTimedOut" - value: t.polkadot_core_primitives.CandidateHash + value: t.types.polkadot_core_primitives.CandidateHash } /** * A dispute has concluded with supermajority against a candidate. @@ -63,12 +65,12 @@ export namespace Event { */ export interface Revert { type: "Revert" - value: t.u32 + value: t.types.u32 } /** A dispute has been initiated. \[candidate hash, dispute location\] */ export function DisputeInitiated( - ...value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated["value"] - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated { + ...value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated["value"] + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeInitiated { return { type: "DisputeInitiated", value } } /** @@ -76,8 +78,8 @@ export namespace Event { * `\[para id, candidate hash, dispute result\]` */ export function DisputeConcluded( - ...value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded["value"] - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded { + ...value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded["value"] + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeConcluded { return { type: "DisputeConcluded", value } } /** @@ -85,8 +87,8 @@ export namespace Event { * `\[para id, candidate hash\]` */ export function DisputeTimedOut( - value: t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut["value"], - ): t.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut { + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut["value"], + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.DisputeTimedOut { return { type: "DisputeTimedOut", value } } /** @@ -96,8 +98,8 @@ export namespace Event { * number of the child of the last known valid block in the chain. */ export function Revert( - value: t.polkadot_runtime_parachains.disputes.pallet.Event.Revert["value"], - ): t.polkadot_runtime_parachains.disputes.pallet.Event.Revert { + value: t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert["value"], + ): t.types.polkadot_runtime_parachains.disputes.pallet.Event.Revert { return { type: "Revert", value } } } diff --git a/codegen/_output/westend/polkadot_runtime_parachains/dmp/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/dmp/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_parachains/dmp/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/dmp/mod.ts diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/dmp/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/dmp/pallet.ts new file mode 100644 index 000000000..05133e66d --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/dmp/pallet.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $call: $.Codec = _codec.$407 + +/** Contains one variant per dispatchable that can be called by an extrinsic. */ +export type Call = never diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/hrmp/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/hrmp/mod.ts new file mode 100644 index 000000000..b63b5391f --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/hrmp/mod.ts @@ -0,0 +1,42 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $hrmpChannel: $.Codec = + _codec.$688 + +export const $hrmpOpenChannelRequest: $.Codec< + t.types.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest +> = _codec.$686 + +export interface HrmpChannel { + max_capacity: t.types.u32 + max_total_size: t.types.u32 + max_message_size: t.types.u32 + msg_count: t.types.u32 + total_size: t.types.u32 + mqc_head: t.types.primitive_types.H256 | undefined + sender_deposit: t.types.u128 + recipient_deposit: t.types.u128 +} + +export function HrmpChannel(value: t.types.polkadot_runtime_parachains.hrmp.HrmpChannel) { + return value +} + +export interface HrmpOpenChannelRequest { + confirmed: boolean + _age: t.types.u32 + sender_deposit: t.types.u128 + max_message_size: t.types.u32 + max_capacity: t.types.u32 + max_total_size: t.types.u32 +} + +export function HrmpOpenChannelRequest( + value: t.types.polkadot_runtime_parachains.hrmp.HrmpOpenChannelRequest, +) { + return value +} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/hrmp/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/hrmp/pallet.ts similarity index 64% rename from codegen/_output/westend/polkadot_runtime_parachains/hrmp/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/hrmp/pallet.ts index e9e897ba8..0c15ec391 100644 --- a/codegen/_output/westend/polkadot_runtime_parachains/hrmp/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/hrmp/pallet.ts @@ -1,23 +1,23 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$409 +export const $call: $.Codec = _codec.$409 -export const $error: $.Codec = _codec.$694 +export const $error: $.Codec = _codec.$694 -export const $event: $.Codec = _codec.$111 +export const $event: $.Codec = _codec.$111 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close - | t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request - | t.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request + | t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel export namespace Call { /** * Initiate opening a channel from a parachain to a given recipient with given channel @@ -33,9 +33,9 @@ export namespace Call { */ export interface hrmp_init_open_channel { type: "hrmp_init_open_channel" - recipient: t.polkadot_parachain.primitives.Id - proposed_max_capacity: t.u32 - proposed_max_message_size: t.u32 + recipient: t.types.polkadot_parachain.primitives.Id + proposed_max_capacity: t.types.u32 + proposed_max_message_size: t.types.u32 } /** * Accept a pending open channel request from the given sender. @@ -44,7 +44,7 @@ export namespace Call { */ export interface hrmp_accept_open_channel { type: "hrmp_accept_open_channel" - sender: t.polkadot_parachain.primitives.Id + sender: t.types.polkadot_parachain.primitives.Id } /** * Initiate unilateral closing of a channel. The origin must be either the sender or the @@ -54,7 +54,7 @@ export namespace Call { */ export interface hrmp_close_channel { type: "hrmp_close_channel" - channel_id: t.polkadot_parachain.primitives.HrmpChannelId + channel_id: t.types.polkadot_parachain.primitives.HrmpChannelId } /** * This extrinsic triggers the cleanup of all the HRMP storage items that @@ -67,9 +67,9 @@ export namespace Call { */ export interface force_clean_hrmp { type: "force_clean_hrmp" - para: t.polkadot_parachain.primitives.Id - inbound: t.u32 - outbound: t.u32 + para: t.types.polkadot_parachain.primitives.Id + inbound: t.types.u32 + outbound: t.types.u32 } /** * Force process HRMP open channel requests. @@ -81,7 +81,7 @@ export namespace Call { */ export interface force_process_hrmp_open { type: "force_process_hrmp_open" - channels: t.u32 + channels: t.types.u32 } /** * Force process HRMP close channel requests. @@ -93,7 +93,7 @@ export namespace Call { */ export interface force_process_hrmp_close { type: "force_process_hrmp_close" - channels: t.u32 + channels: t.types.u32 } /** * This cancels a pending open channel request. It can be canceled by either of the sender @@ -107,8 +107,8 @@ export namespace Call { */ export interface hrmp_cancel_open_request { type: "hrmp_cancel_open_request" - channel_id: t.polkadot_parachain.primitives.HrmpChannelId - open_requests: t.u32 + channel_id: t.types.polkadot_parachain.primitives.HrmpChannelId + open_requests: t.types.u32 } /** * Open a channel from a `sender` to a `recipient` `ParaId` using the Root origin. Although @@ -120,10 +120,10 @@ export namespace Call { */ export interface force_open_hrmp_channel { type: "force_open_hrmp_channel" - sender: t.polkadot_parachain.primitives.Id - recipient: t.polkadot_parachain.primitives.Id - max_capacity: t.u32 - max_message_size: t.u32 + sender: t.types.polkadot_parachain.primitives.Id + recipient: t.types.polkadot_parachain.primitives.Id + max_capacity: t.types.u32 + max_message_size: t.types.u32 } /** * Initiate opening a channel from a parachain to a given recipient with given channel @@ -138,8 +138,11 @@ export namespace Call { * change. */ export function hrmp_init_open_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_init_open_channel { return { type: "hrmp_init_open_channel", ...value } } /** @@ -148,8 +151,11 @@ export namespace Call { * The channel will be opened only on the next session boundary. */ export function hrmp_accept_open_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_accept_open_channel { return { type: "hrmp_accept_open_channel", ...value } } /** @@ -159,8 +165,8 @@ export namespace Call { * The closure can only happen on a session change. */ export function hrmp_close_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel { + value: Omit, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_close_channel { return { type: "hrmp_close_channel", ...value } } /** @@ -173,8 +179,8 @@ export namespace Call { * Number of inbound and outbound channels for `para` must be provided as witness data of weighing. */ export function force_clean_hrmp( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp { + value: Omit, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_clean_hrmp { return { type: "force_clean_hrmp", ...value } } /** @@ -186,8 +192,11 @@ export namespace Call { * Total number of opening channels must be provided as witness data of weighing. */ export function force_process_hrmp_open( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_open { return { type: "force_process_hrmp_open", ...value } } /** @@ -199,8 +208,11 @@ export namespace Call { * Total number of closing channels must be provided as witness data of weighing. */ export function force_process_hrmp_close( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_process_hrmp_close { return { type: "force_process_hrmp_close", ...value } } /** @@ -214,8 +226,11 @@ export namespace Call { * witness data. */ export function hrmp_cancel_open_request( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.hrmp_cancel_open_request { return { type: "hrmp_cancel_open_request", ...value } } /** @@ -227,8 +242,11 @@ export namespace Call { * Relay Chain, e.g. a common good parachain. */ export function force_open_hrmp_channel( - value: Omit, - ): t.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel { + value: Omit< + t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel, + "type" + >, + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Call.force_open_hrmp_channel { return { type: "force_open_hrmp_channel", ...value } } } @@ -257,11 +275,11 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled - | t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted - | t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed - | t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed + | t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened export namespace Event { /** * Open HRMP channel requested. @@ -269,7 +287,12 @@ export namespace Event { */ export interface OpenChannelRequested { type: "OpenChannelRequested" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.Id, + t.types.u32, + t.types.u32, + ] } /** * An HRMP channel request sent by the receiver was canceled by either party. @@ -277,17 +300,23 @@ export namespace Event { */ export interface OpenChannelCanceled { type: "OpenChannelCanceled" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.HrmpChannelId] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.HrmpChannelId, + ] } /** Open HRMP channel accepted. `[sender, recipient]` */ export interface OpenChannelAccepted { type: "OpenChannelAccepted" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id] + value: [t.types.polkadot_parachain.primitives.Id, t.types.polkadot_parachain.primitives.Id] } /** HRMP channel closed. `[by_parachain, channel_id]` */ export interface ChannelClosed { type: "ChannelClosed" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.HrmpChannelId] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.HrmpChannelId, + ] } /** * An HRMP channel was opened via Root origin. @@ -295,15 +324,20 @@ export namespace Event { */ export interface HrmpChannelForceOpened { type: "HrmpChannelForceOpened" - value: [t.polkadot_parachain.primitives.Id, t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [ + t.types.polkadot_parachain.primitives.Id, + t.types.polkadot_parachain.primitives.Id, + t.types.u32, + t.types.u32, + ] } /** * Open HRMP channel requested. * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` */ export function OpenChannelRequested( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelRequested { return { type: "OpenChannelRequested", value } } /** @@ -311,20 +345,20 @@ export namespace Event { * `[by_parachain, channel_id]` */ export function OpenChannelCanceled( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelCanceled { return { type: "OpenChannelCanceled", value } } /** Open HRMP channel accepted. `[sender, recipient]` */ export function OpenChannelAccepted( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.OpenChannelAccepted { return { type: "OpenChannelAccepted", value } } /** HRMP channel closed. `[by_parachain, channel_id]` */ export function ChannelClosed( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.ChannelClosed { return { type: "ChannelClosed", value } } /** @@ -332,8 +366,8 @@ export namespace Event { * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` */ export function HrmpChannelForceOpened( - ...value: t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened["value"] - ): t.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened { + ...value: t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened["value"] + ): t.types.polkadot_runtime_parachains.hrmp.pallet.Event.HrmpChannelForceOpened { return { type: "HrmpChannelForceOpened", value } } } diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/inclusion/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/inclusion/mod.ts new file mode 100644 index 000000000..1045f887b --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/inclusion/mod.ts @@ -0,0 +1,41 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $availabilityBitfieldRecord: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord +> = _codec.$644 + +export const $candidatePendingAvailability: $.Codec< + t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability +> = _codec.$645 + +export interface AvailabilityBitfieldRecord { + bitfield: t.types.polkadot_primitives.v2.AvailabilityBitfield + submitted_at: t.types.u32 +} + +export function AvailabilityBitfieldRecord( + value: t.types.polkadot_runtime_parachains.inclusion.AvailabilityBitfieldRecord, +) { + return value +} + +export interface CandidatePendingAvailability { + core: t.types.polkadot_primitives.v2.CoreIndex + hash: t.types.polkadot_core_primitives.CandidateHash + descriptor: t.types.polkadot_primitives.v2.CandidateDescriptor + availability_votes: $.BitSequence + backers: $.BitSequence + relay_parent_number: t.types.u32 + backed_in_number: t.types.u32 + backing_group: t.types.polkadot_primitives.v2.GroupIndex +} + +export function CandidatePendingAvailability( + value: t.types.polkadot_runtime_parachains.inclusion.CandidatePendingAvailability, +) { + return value +} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/inclusion/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/inclusion/pallet.ts similarity index 54% rename from codegen/_output/westend/polkadot_runtime_parachains/inclusion/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/inclusion/pallet.ts index fe8870e7c..23c9b26fd 100644 --- a/codegen/_output/westend/polkadot_runtime_parachains/inclusion/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/inclusion/pallet.ts @@ -1,12 +1,14 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$377 +export const $call: $.Codec = _codec.$377 -export const $error: $.Codec = _codec.$646 +export const $error: $.Codec = + _codec.$646 -export const $event: $.Codec = _codec.$95 +export const $event: $.Codec = + _codec.$95 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = never @@ -45,55 +47,55 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded - | t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded + | t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut export namespace Event { /** A candidate was backed. `[candidate, head_data]` */ export interface CandidateBacked { type: "CandidateBacked" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, - t.polkadot_primitives.v2.GroupIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.GroupIndex, ] } /** A candidate was included. `[candidate, head_data]` */ export interface CandidateIncluded { type: "CandidateIncluded" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, - t.polkadot_primitives.v2.GroupIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.GroupIndex, ] } /** A candidate timed out. `[candidate, head_data]` */ export interface CandidateTimedOut { type: "CandidateTimedOut" value: [ - t.polkadot_primitives.v2.CandidateReceipt, - t.polkadot_parachain.primitives.HeadData, - t.polkadot_primitives.v2.CoreIndex, + t.types.polkadot_primitives.v2.CandidateReceipt, + t.types.polkadot_parachain.primitives.HeadData, + t.types.polkadot_primitives.v2.CoreIndex, ] } /** A candidate was backed. `[candidate, head_data]` */ export function CandidateBacked( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateBacked { return { type: "CandidateBacked", value } } /** A candidate was included. `[candidate, head_data]` */ export function CandidateIncluded( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateIncluded { return { type: "CandidateIncluded", value } } /** A candidate timed out. `[candidate, head_data]` */ export function CandidateTimedOut( - ...value: t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut["value"] - ): t.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut { + ...value: t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut["value"] + ): t.types.polkadot_runtime_parachains.inclusion.pallet.Event.CandidateTimedOut { return { type: "CandidateTimedOut", value } } } diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/initializer/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/initializer/mod.ts new file mode 100644 index 000000000..27d90b3d3 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/initializer/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $bufferedSessionChange: $.Codec< + t.types.polkadot_runtime_parachains.initializer.BufferedSessionChange +> = _codec.$681 + +export interface BufferedSessionChange { + validators: Array + queued: Array + session_index: t.types.u32 +} + +export function BufferedSessionChange( + value: t.types.polkadot_runtime_parachains.initializer.BufferedSessionChange, +) { + return value +} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/initializer/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/initializer/pallet.ts similarity index 57% rename from codegen/_output/kusama/polkadot_runtime_parachains/initializer/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/initializer/pallet.ts index 339c024f4..03632cb0a 100644 --- a/codegen/_output/kusama/polkadot_runtime_parachains/initializer/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/initializer/pallet.ts @@ -1,11 +1,12 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$406 +export const $call: $.Codec = + _codec.$406 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.initializer.pallet.Call.force_approve +export type Call = t.types.polkadot_runtime_parachains.initializer.pallet.Call.force_approve export namespace Call { /** * Issue a signal to the consensus engine to forcibly act as though all parachain @@ -14,7 +15,7 @@ export namespace Call { */ export interface force_approve { type: "force_approve" - up_to: t.u32 + up_to: t.types.u32 } /** * Issue a signal to the consensus engine to forcibly act as though all parachain @@ -22,8 +23,8 @@ export namespace Call { * chain are valid and should be finalized. */ export function force_approve( - value: Omit, - ): t.polkadot_runtime_parachains.initializer.pallet.Call.force_approve { + value: Omit, + ): t.types.polkadot_runtime_parachains.initializer.pallet.Call.force_approve { return { type: "force_approve", ...value } } } diff --git a/codegen/_output/westend/polkadot_runtime_parachains/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_parachains/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/mod.ts diff --git a/codegen/_output/westend/polkadot_runtime_parachains/origin/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/origin/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_parachains/origin/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/origin/mod.ts diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/origin/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/origin/pallet.ts new file mode 100644 index 000000000..6b80987cd --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/origin/pallet.ts @@ -0,0 +1,19 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $origin: $.Codec = + _codec.$260 + +export type Origin = t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain +export namespace Origin { + export interface Parachain { + type: "Parachain" + value: t.types.polkadot_parachain.primitives.Id + } + export function Parachain( + value: t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain["value"], + ): t.types.polkadot_runtime_parachains.origin.pallet.Origin.Parachain { + return { type: "Parachain", value } + } +} diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/paras/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/paras/mod.ts new file mode 100644 index 000000000..0e4bab946 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/paras/mod.ts @@ -0,0 +1,106 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as pallet from "./pallet.ts" + +export const $paraGenesisArgs: $.Codec = + _codec.$678 + +export const $paraLifecycle: $.Codec = + _codec.$670 + +export const $paraPastCodeMeta: $.Codec< + t.types.polkadot_runtime_parachains.paras.ParaPastCodeMeta +> = _codec.$672 + +export const $pvfCheckActiveVoteState: $.Codec< + t.types.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState +> = _codec.$666 + +export const $pvfCheckCause: $.Codec = + _codec.$668 + +export const $replacementTimes: $.Codec< + t.types.polkadot_runtime_parachains.paras.ReplacementTimes +> = _codec.$674 + +export interface ParaGenesisArgs { + genesis_head: t.types.polkadot_parachain.primitives.HeadData + validation_code: t.types.polkadot_parachain.primitives.ValidationCode + parachain: boolean +} + +export function ParaGenesisArgs(value: t.types.polkadot_runtime_parachains.paras.ParaGenesisArgs) { + return value +} + +export type ParaLifecycle = + | "Onboarding" + | "Parathread" + | "Parachain" + | "UpgradingParathread" + | "DowngradingParachain" + | "OffboardingParathread" + | "OffboardingParachain" + +export interface ParaPastCodeMeta { + upgrade_times: Array + last_pruned: t.types.u32 | undefined +} + +export function ParaPastCodeMeta( + value: t.types.polkadot_runtime_parachains.paras.ParaPastCodeMeta, +) { + return value +} + +export interface PvfCheckActiveVoteState { + votes_accept: $.BitSequence + votes_reject: $.BitSequence + age: t.types.u32 + created_at: t.types.u32 + causes: Array +} + +export function PvfCheckActiveVoteState( + value: t.types.polkadot_runtime_parachains.paras.PvfCheckActiveVoteState, +) { + return value +} + +export type PvfCheckCause = + | t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding + | t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade +export namespace PvfCheckCause { + export interface Onboarding { + type: "Onboarding" + value: t.types.polkadot_parachain.primitives.Id + } + export interface Upgrade { + type: "Upgrade" + id: t.types.polkadot_parachain.primitives.Id + relay_parent_number: t.types.u32 + } + export function Onboarding( + value: t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding["value"], + ): t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Onboarding { + return { type: "Onboarding", value } + } + export function Upgrade( + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.PvfCheckCause.Upgrade { + return { type: "Upgrade", ...value } + } +} + +export interface ReplacementTimes { + expected_at: t.types.u32 + activated_at: t.types.u32 +} + +export function ReplacementTimes( + value: t.types.polkadot_runtime_parachains.paras.ReplacementTimes, +) { + return value +} diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/paras/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/paras/pallet.ts similarity index 58% rename from codegen/_output/kusama/polkadot_runtime_parachains/paras/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/paras/pallet.ts index fc656fe9e..9bb96a5de 100644 --- a/codegen/_output/kusama/polkadot_runtime_parachains/paras/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/paras/pallet.ts @@ -1,48 +1,48 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$404 +export const $call: $.Codec = _codec.$404 -export const $error: $.Codec = _codec.$679 +export const $error: $.Codec = _codec.$679 -export const $event: $.Codec = _codec.$107 +export const $event: $.Codec = _codec.$107 /** Contains one variant per dispatchable that can be called by an extrinsic. */ export type Call = - | t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code - | t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head - | t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade - | t.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head - | t.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action - | t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code - | t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code - | t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head + | t.types.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action + | t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code + | t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement export namespace Call { /** Set the storage for the parachain validation code immediately. */ export interface force_set_current_code { type: "force_set_current_code" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode } /** Set the storage for the current parachain head data immediately. */ export interface force_set_current_head { type: "force_set_current_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export interface force_schedule_code_upgrade { type: "force_schedule_code_upgrade" - para: t.polkadot_parachain.primitives.Id - new_code: t.polkadot_parachain.primitives.ValidationCode - relay_parent_number: t.u32 + para: t.types.polkadot_parachain.primitives.Id + new_code: t.types.polkadot_parachain.primitives.ValidationCode + relay_parent_number: t.types.u32 } /** Note a new block head for para within the context of the current block. */ export interface force_note_new_head { type: "force_note_new_head" - para: t.polkadot_parachain.primitives.Id - new_head: t.polkadot_parachain.primitives.HeadData + para: t.types.polkadot_parachain.primitives.Id + new_head: t.types.polkadot_parachain.primitives.HeadData } /** * Put a parachain directly into the next session's action queue. @@ -51,7 +51,7 @@ export namespace Call { */ export interface force_queue_action { type: "force_queue_action" - para: t.polkadot_parachain.primitives.Id + para: t.types.polkadot_parachain.primitives.Id } /** * Adds the validation code to the storage. @@ -70,7 +70,7 @@ export namespace Call { */ export interface add_trusted_validation_code { type: "add_trusted_validation_code" - validation_code: t.polkadot_parachain.primitives.ValidationCode + validation_code: t.types.polkadot_parachain.primitives.ValidationCode } /** * Remove the validation code from the storage iff the reference count is 0. @@ -81,7 +81,7 @@ export namespace Call { */ export interface poke_unused_validation_code { type: "poke_unused_validation_code" - validation_code_hash: t.polkadot_parachain.primitives.ValidationCodeHash + validation_code_hash: t.types.polkadot_parachain.primitives.ValidationCodeHash } /** * Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and @@ -89,34 +89,40 @@ export namespace Call { */ export interface include_pvf_check_statement { type: "include_pvf_check_statement" - stmt: t.polkadot_primitives.v2.PvfCheckStatement - signature: t.polkadot_primitives.v2.validator_app.Signature + stmt: t.types.polkadot_primitives.v2.PvfCheckStatement + signature: t.types.polkadot_primitives.v2.validator_app.Signature } /** Set the storage for the parachain validation code immediately. */ export function force_set_current_code( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code, + "type" + >, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_code { return { type: "force_set_current_code", ...value } } /** Set the storage for the current parachain head data immediately. */ export function force_set_current_head( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head { + value: Omit< + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head, + "type" + >, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_set_current_head { return { type: "force_set_current_head", ...value } } /** Schedule an upgrade as if it was scheduled in the given relay parent block. */ export function force_schedule_code_upgrade( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, + t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_schedule_code_upgrade { return { type: "force_schedule_code_upgrade", ...value } } /** Note a new block head for para within the context of the current block. */ export function force_note_new_head( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_note_new_head { return { type: "force_note_new_head", ...value } } /** @@ -125,8 +131,8 @@ export namespace Call { * initializer... */ export function force_queue_action( - value: Omit, - ): t.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.force_queue_action { return { type: "force_queue_action", ...value } } /** @@ -146,10 +152,10 @@ export namespace Call { */ export function add_trusted_validation_code( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, + t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.add_trusted_validation_code { return { type: "add_trusted_validation_code", ...value } } /** @@ -161,10 +167,10 @@ export namespace Call { */ export function poke_unused_validation_code( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, + t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.poke_unused_validation_code { return { type: "poke_unused_validation_code", ...value } } /** @@ -173,10 +179,10 @@ export namespace Call { */ export function include_pvf_check_statement( value: Omit< - t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, + t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement, "type" >, - ): t.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement { + ): t.types.polkadot_runtime_parachains.paras.pallet.Call.include_pvf_check_statement { return { type: "include_pvf_check_statement", ...value } } } @@ -199,39 +205,39 @@ export type Error = /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated - | t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated - | t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled - | t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted - | t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted - | t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated + | t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled + | t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted + | t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected export namespace Event { /** Current code has been updated for a Para. `para_id` */ export interface CurrentCodeUpdated { type: "CurrentCodeUpdated" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** Current head has been updated for a Para. `para_id` */ export interface CurrentHeadUpdated { type: "CurrentHeadUpdated" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A code upgrade has been scheduled for a Para. `para_id` */ export interface CodeUpgradeScheduled { type: "CodeUpgradeScheduled" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A new head has been noted for a Para. `para_id` */ export interface NewHeadNoted { type: "NewHeadNoted" - value: t.polkadot_parachain.primitives.Id + value: t.types.polkadot_parachain.primitives.Id } /** A para has been queued to execute pending actions. `para_id` */ export interface ActionQueued { type: "ActionQueued" - value: [t.polkadot_parachain.primitives.Id, t.u32] + value: [t.types.polkadot_parachain.primitives.Id, t.types.u32] } /** * The given para either initiated or subscribed to a PVF check for the given validation @@ -239,7 +245,10 @@ export namespace Event { */ export interface PvfCheckStarted { type: "PvfCheckStarted" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** * The given validation code was accepted by the PVF pre-checking vote. @@ -247,7 +256,10 @@ export namespace Event { */ export interface PvfCheckAccepted { type: "PvfCheckAccepted" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** * The given validation code was rejected by the PVF pre-checking vote. @@ -255,36 +267,39 @@ export namespace Event { */ export interface PvfCheckRejected { type: "PvfCheckRejected" - value: [t.polkadot_parachain.primitives.ValidationCodeHash, t.polkadot_parachain.primitives.Id] + value: [ + t.types.polkadot_parachain.primitives.ValidationCodeHash, + t.types.polkadot_parachain.primitives.Id, + ] } /** Current code has been updated for a Para. `para_id` */ export function CurrentCodeUpdated( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentCodeUpdated { return { type: "CurrentCodeUpdated", value } } /** Current head has been updated for a Para. `para_id` */ export function CurrentHeadUpdated( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CurrentHeadUpdated { return { type: "CurrentHeadUpdated", value } } /** A code upgrade has been scheduled for a Para. `para_id` */ export function CodeUpgradeScheduled( - value: t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.CodeUpgradeScheduled { return { type: "CodeUpgradeScheduled", value } } /** A new head has been noted for a Para. `para_id` */ export function NewHeadNoted( - value: t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted["value"], - ): t.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted { + value: t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted["value"], + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.NewHeadNoted { return { type: "NewHeadNoted", value } } /** A para has been queued to execute pending actions. `para_id` */ export function ActionQueued( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.ActionQueued { return { type: "ActionQueued", value } } /** @@ -292,8 +307,8 @@ export namespace Event { * code. `code_hash` `para_id` */ export function PvfCheckStarted( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckStarted { return { type: "PvfCheckStarted", value } } /** @@ -301,8 +316,8 @@ export namespace Event { * `code_hash` `para_id` */ export function PvfCheckAccepted( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckAccepted { return { type: "PvfCheckAccepted", value } } /** @@ -310,8 +325,8 @@ export namespace Event { * `code_hash` `para_id` */ export function PvfCheckRejected( - ...value: t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected["value"] - ): t.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected { + ...value: t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected["value"] + ): t.types.polkadot_runtime_parachains.paras.pallet.Event.PvfCheckRejected { return { type: "PvfCheckRejected", value } } } diff --git a/codegen/_output/westend/polkadot_runtime_parachains/paras_inherent/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/paras_inherent/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_parachains/paras_inherent/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/paras_inherent/mod.ts diff --git a/codegen/_output/kusama/polkadot_runtime_parachains/paras_inherent/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/paras_inherent/pallet.ts similarity index 52% rename from codegen/_output/kusama/polkadot_runtime_parachains/paras_inherent/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/paras_inherent/pallet.ts index 4570ac2fc..b806978aa 100644 --- a/codegen/_output/kusama/polkadot_runtime_parachains/paras_inherent/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/paras_inherent/pallet.ts @@ -1,24 +1,25 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$378 +export const $call: $.Codec = + _codec.$378 -export const $error: $.Codec = +export const $error: $.Codec = _codec.$652 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter +export type Call = t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter export namespace Call { /** Enter the paras inherent. This will process bitfields and backed candidates. */ export interface enter { type: "enter" - data: t.polkadot_primitives.v2.InherentData + data: t.types.polkadot_primitives.v2.InherentData } /** Enter the paras inherent. This will process bitfields and backed candidates. */ export function enter( - value: Omit, - ): t.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter { + value: Omit, + ): t.types.polkadot_runtime_parachains.paras_inherent.pallet.Call.enter { return { type: "enter", ...value } } } diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/scheduler.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/scheduler.ts new file mode 100644 index 000000000..a4b6ffb37 --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/scheduler.ts @@ -0,0 +1,75 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $assignmentKind: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.AssignmentKind +> = _codec.$665 + +export const $coreAssignment: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.CoreAssignment +> = _codec.$664 + +export const $parathreadClaimQueue: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue +> = _codec.$654 + +export const $queuedParathread: $.Codec< + t.types.polkadot_runtime_parachains.scheduler.QueuedParathread +> = _codec.$656 + +export type AssignmentKind = + | t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain + | t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread +export namespace AssignmentKind { + export interface Parachain { + type: "Parachain" + } + export interface Parathread { + type: "Parathread" + value: [t.types.polkadot_primitives.v2.collator_app.Public, t.types.u32] + } + export function Parachain(): t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parachain { + return { type: "Parachain" } + } + export function Parathread( + ...value: t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread["value"] + ): t.types.polkadot_runtime_parachains.scheduler.AssignmentKind.Parathread { + return { type: "Parathread", value } + } +} + +export interface CoreAssignment { + core: t.types.polkadot_primitives.v2.CoreIndex + para_id: t.types.polkadot_parachain.primitives.Id + kind: t.types.polkadot_runtime_parachains.scheduler.AssignmentKind + group_idx: t.types.polkadot_primitives.v2.GroupIndex +} + +export function CoreAssignment( + value: t.types.polkadot_runtime_parachains.scheduler.CoreAssignment, +) { + return value +} + +export interface ParathreadClaimQueue { + queue: Array + next_core_offset: t.types.u32 +} + +export function ParathreadClaimQueue( + value: t.types.polkadot_runtime_parachains.scheduler.ParathreadClaimQueue, +) { + return value +} + +export interface QueuedParathread { + claim: t.types.polkadot_primitives.v2.ParathreadEntry + core_offset: t.types.u32 +} + +export function QueuedParathread( + value: t.types.polkadot_runtime_parachains.scheduler.QueuedParathread, +) { + return value +} diff --git a/codegen/_output/westend/polkadot_runtime_parachains/shared/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/shared/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_parachains/shared/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/shared/mod.ts diff --git a/codegen/_output/westend/types/polkadot_runtime_parachains/shared/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/shared/pallet.ts new file mode 100644 index 000000000..64ac9630f --- /dev/null +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/shared/pallet.ts @@ -0,0 +1,8 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $call: $.Codec = _codec.$376 + +/** Contains one variant per dispatchable that can be called by an extrinsic. */ +export type Call = never diff --git a/codegen/_output/westend/polkadot_runtime_parachains/ump/mod.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/ump/mod.ts similarity index 100% rename from codegen/_output/westend/polkadot_runtime_parachains/ump/mod.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/ump/mod.ts diff --git a/codegen/_output/westend/polkadot_runtime_parachains/ump/pallet.ts b/codegen/_output/westend/types/polkadot_runtime_parachains/ump/pallet.ts similarity index 60% rename from codegen/_output/westend/polkadot_runtime_parachains/ump/pallet.ts rename to codegen/_output/westend/types/polkadot_runtime_parachains/ump/pallet.ts index 61ae89bb9..c26129599 100644 --- a/codegen/_output/westend/polkadot_runtime_parachains/ump/pallet.ts +++ b/codegen/_output/westend/types/polkadot_runtime_parachains/ump/pallet.ts @@ -1,15 +1,15 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" -export const $call: $.Codec = _codec.$408 +export const $call: $.Codec = _codec.$408 -export const $error: $.Codec = _codec.$685 +export const $error: $.Codec = _codec.$685 -export const $event: $.Codec = _codec.$108 +export const $event: $.Codec = _codec.$108 /** Contains one variant per dispatchable that can be called by an extrinsic. */ -export type Call = t.polkadot_runtime_parachains.ump.pallet.Call.service_overweight +export type Call = t.types.polkadot_runtime_parachains.ump.pallet.Call.service_overweight export namespace Call { /** * Service a single overweight upward message. @@ -27,8 +27,8 @@ export namespace Call { */ export interface service_overweight { type: "service_overweight" - index: t.u64 - weight_limit: t.sp_weights.weight_v2.Weight + index: t.types.u64 + weight_limit: t.types.sp_weights.weight_v2.Weight } /** * Service a single overweight upward message. @@ -45,8 +45,8 @@ export namespace Call { * - `OverweightServiced`: On success. */ export function service_overweight( - value: Omit, - ): t.polkadot_runtime_parachains.ump.pallet.Call.service_overweight { + value: Omit, + ): t.types.polkadot_runtime_parachains.ump.pallet.Call.service_overweight { return { type: "service_overweight", ...value } } } @@ -56,13 +56,13 @@ export type Error = "UnknownMessageIndex" | "WeightOverLimit" /** The [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted by this pallet. */ export type Event = - | t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat - | t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion - | t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward - | t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted - | t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived - | t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued - | t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced + | t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat + | t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion + | t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward + | t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted + | t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived + | t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued + | t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced export namespace Event { /** * Upward message is invalid XCM. @@ -86,7 +86,7 @@ export namespace Event { */ export interface ExecutedUpward { type: "ExecutedUpward" - value: [Uint8Array, t.xcm.v2.traits.Outcome] + value: [Uint8Array, t.types.xcm.v2.traits.Outcome] } /** * The weight limit for handling upward messages was reached. @@ -94,7 +94,7 @@ export namespace Event { */ export interface WeightExhausted { type: "WeightExhausted" - value: [Uint8Array, t.sp_weights.weight_v2.Weight, t.sp_weights.weight_v2.Weight] + value: [Uint8Array, t.types.sp_weights.weight_v2.Weight, t.types.sp_weights.weight_v2.Weight] } /** * Some upward messages have been received and will be processed. @@ -102,7 +102,7 @@ export namespace Event { */ export interface UpwardMessagesReceived { type: "UpwardMessagesReceived" - value: [t.polkadot_parachain.primitives.Id, t.u32, t.u32] + value: [t.types.polkadot_parachain.primitives.Id, t.types.u32, t.types.u32] } /** * The weight budget was exceeded for an individual upward message. @@ -114,7 +114,12 @@ export namespace Event { */ export interface OverweightEnqueued { type: "OverweightEnqueued" - value: [t.polkadot_parachain.primitives.Id, Uint8Array, t.u64, t.sp_weights.weight_v2.Weight] + value: [ + t.types.polkadot_parachain.primitives.Id, + Uint8Array, + t.types.u64, + t.types.sp_weights.weight_v2.Weight, + ] } /** * Upward message from the overweight queue was executed with the given actual weight @@ -124,15 +129,15 @@ export namespace Event { */ export interface OverweightServiced { type: "OverweightServiced" - value: [t.u64, t.sp_weights.weight_v2.Weight] + value: [t.types.u64, t.types.sp_weights.weight_v2.Weight] } /** * Upward message is invalid XCM. * \[ id \] */ export function InvalidFormat( - value: t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat["value"], - ): t.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat { + value: t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat["value"], + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.InvalidFormat { return { type: "InvalidFormat", value } } /** @@ -140,8 +145,8 @@ export namespace Event { * \[ id \] */ export function UnsupportedVersion( - value: t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion["value"], - ): t.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion { + value: t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion["value"], + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.UnsupportedVersion { return { type: "UnsupportedVersion", value } } /** @@ -149,8 +154,8 @@ export namespace Event { * \[ id, outcome \] */ export function ExecutedUpward( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.ExecutedUpward { return { type: "ExecutedUpward", value } } /** @@ -158,8 +163,8 @@ export namespace Event { * \[ id, remaining, required \] */ export function WeightExhausted( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.WeightExhausted { return { type: "WeightExhausted", value } } /** @@ -167,8 +172,8 @@ export namespace Event { * \[ para, count, size \] */ export function UpwardMessagesReceived( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.UpwardMessagesReceived { return { type: "UpwardMessagesReceived", value } } /** @@ -180,8 +185,8 @@ export namespace Event { * \[ para, id, overweight_index, required \] */ export function OverweightEnqueued( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightEnqueued { return { type: "OverweightEnqueued", value } } /** @@ -191,8 +196,8 @@ export namespace Event { * \[ overweight_index, used \] */ export function OverweightServiced( - ...value: t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced["value"] - ): t.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced { + ...value: t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced["value"] + ): t.types.polkadot_runtime_parachains.ump.pallet.Event.OverweightServiced { return { type: "OverweightServiced", value } } } diff --git a/codegen/_output/westend/types/primitive_types.ts b/codegen/_output/westend/types/primitive_types.ts new file mode 100644 index 000000000..b7e7a5943 --- /dev/null +++ b/codegen/_output/westend/types/primitive_types.ts @@ -0,0 +1,11 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $h256: $.Codec = _codec.$11 + +export type H256 = Uint8Array + +export function H256(value: t.types.primitive_types.H256) { + return value +} diff --git a/codegen/_output/westend/types/sp_arithmetic/fixed_point.ts b/codegen/_output/westend/types/sp_arithmetic/fixed_point.ts new file mode 100644 index 000000000..232b82ea4 --- /dev/null +++ b/codegen/_output/westend/types/sp_arithmetic/fixed_point.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $fixedU128: $.Codec = _codec.$479 + +export type FixedU128 = t.types.u128 + +export function FixedU128(value: t.types.sp_arithmetic.fixed_point.FixedU128) { + return value +} diff --git a/codegen/_output/westend/sp_arithmetic/mod.ts b/codegen/_output/westend/types/sp_arithmetic/mod.ts similarity index 100% rename from codegen/_output/westend/sp_arithmetic/mod.ts rename to codegen/_output/westend/types/sp_arithmetic/mod.ts diff --git a/codegen/_output/westend/types/sp_arithmetic/per_things.ts b/codegen/_output/westend/types/sp_arithmetic/per_things.ts new file mode 100644 index 000000000..f0df80b65 --- /dev/null +++ b/codegen/_output/westend/types/sp_arithmetic/per_things.ts @@ -0,0 +1,35 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $perU16: $.Codec = _codec.$320 + +export const $perbill: $.Codec = _codec.$42 + +export const $percent: $.Codec = _codec.$205 + +export const $permill: $.Codec = _codec.$558 + +export type PerU16 = t.types.u16 + +export function PerU16(value: t.types.sp_arithmetic.per_things.PerU16) { + return value +} + +export type Perbill = t.types.u32 + +export function Perbill(value: t.types.sp_arithmetic.per_things.Perbill) { + return value +} + +export type Percent = t.types.u8 + +export function Percent(value: t.types.sp_arithmetic.per_things.Percent) { + return value +} + +export type Permill = t.types.u32 + +export function Permill(value: t.types.sp_arithmetic.per_things.Permill) { + return value +} diff --git a/codegen/_output/westend/types/sp_authority_discovery/app.ts b/codegen/_output/westend/types/sp_authority_discovery/app.ts new file mode 100644 index 000000000..96cf824f4 --- /dev/null +++ b/codegen/_output/westend/types/sp_authority_discovery/app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$215 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.sp_authority_discovery.app.Public) { + return value +} diff --git a/codegen/_output/westend/sp_authority_discovery/mod.ts b/codegen/_output/westend/types/sp_authority_discovery/mod.ts similarity index 100% rename from codegen/_output/westend/sp_authority_discovery/mod.ts rename to codegen/_output/westend/types/sp_authority_discovery/mod.ts diff --git a/codegen/_output/westend/types/sp_consensus_babe/app.ts b/codegen/_output/westend/types/sp_consensus_babe/app.ts new file mode 100644 index 000000000..d3f29bc2c --- /dev/null +++ b/codegen/_output/westend/types/sp_consensus_babe/app.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$189 + +export type Public = t.types.sp_core.sr25519.Public + +export function Public(value: t.types.sp_consensus_babe.app.Public) { + return value +} diff --git a/codegen/_output/westend/types/sp_consensus_babe/digests.ts b/codegen/_output/westend/types/sp_consensus_babe/digests.ts new file mode 100644 index 000000000..4c4f4cd04 --- /dev/null +++ b/codegen/_output/westend/types/sp_consensus_babe/digests.ts @@ -0,0 +1,103 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $nextConfigDescriptor: $.Codec< + t.types.sp_consensus_babe.digests.NextConfigDescriptor +> = _codec.$192 + +export const $preDigest: $.Codec = _codec.$462 + +export const $primaryPreDigest: $.Codec = + _codec.$463 + +export const $secondaryPlainPreDigest: $.Codec< + t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest +> = _codec.$464 + +export const $secondaryVRFPreDigest: $.Codec< + t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest +> = _codec.$465 + +export type NextConfigDescriptor = t.types.sp_consensus_babe.digests.NextConfigDescriptor.V1 +export namespace NextConfigDescriptor { + export interface V1 { + type: "V1" + c: [t.types.u64, t.types.u64] + allowed_slots: t.types.sp_consensus_babe.AllowedSlots + } + export function V1( + value: Omit, + ): t.types.sp_consensus_babe.digests.NextConfigDescriptor.V1 { + return { type: "V1", ...value } + } +} + +export type PreDigest = + | t.types.sp_consensus_babe.digests.PreDigest.Primary + | t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain + | t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF +export namespace PreDigest { + export interface Primary { + type: "Primary" + value: t.types.sp_consensus_babe.digests.PrimaryPreDigest + } + export interface SecondaryPlain { + type: "SecondaryPlain" + value: t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest + } + export interface SecondaryVRF { + type: "SecondaryVRF" + value: t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest + } + export function Primary( + value: t.types.sp_consensus_babe.digests.PreDigest.Primary["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.Primary { + return { type: "Primary", value } + } + export function SecondaryPlain( + value: t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.SecondaryPlain { + return { type: "SecondaryPlain", value } + } + export function SecondaryVRF( + value: t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF["value"], + ): t.types.sp_consensus_babe.digests.PreDigest.SecondaryVRF { + return { type: "SecondaryVRF", value } + } +} + +export interface PrimaryPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot + vrf_output: Uint8Array + vrf_proof: Uint8Array +} + +export function PrimaryPreDigest(value: t.types.sp_consensus_babe.digests.PrimaryPreDigest) { + return value +} + +export interface SecondaryPlainPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot +} + +export function SecondaryPlainPreDigest( + value: t.types.sp_consensus_babe.digests.SecondaryPlainPreDigest, +) { + return value +} + +export interface SecondaryVRFPreDigest { + authority_index: t.types.u32 + slot: t.types.sp_consensus_slots.Slot + vrf_output: Uint8Array + vrf_proof: Uint8Array +} + +export function SecondaryVRFPreDigest( + value: t.types.sp_consensus_babe.digests.SecondaryVRFPreDigest, +) { + return value +} diff --git a/codegen/_output/westend/types/sp_consensus_babe/mod.ts b/codegen/_output/westend/types/sp_consensus_babe/mod.ts new file mode 100644 index 000000000..73ea2dcea --- /dev/null +++ b/codegen/_output/westend/types/sp_consensus_babe/mod.ts @@ -0,0 +1,25 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as app from "./app.ts" +export * as digests from "./digests.ts" + +export const $allowedSlots: $.Codec = _codec.$194 + +export const $babeEpochConfiguration: $.Codec = + _codec.$466 + +export type AllowedSlots = + | "PrimarySlots" + | "PrimaryAndSecondaryPlainSlots" + | "PrimaryAndSecondaryVRFSlots" + +export interface BabeEpochConfiguration { + c: [t.types.u64, t.types.u64] + allowed_slots: t.types.sp_consensus_babe.AllowedSlots +} + +export function BabeEpochConfiguration(value: t.types.sp_consensus_babe.BabeEpochConfiguration) { + return value +} diff --git a/codegen/_output/westend/types/sp_consensus_slots.ts b/codegen/_output/westend/types/sp_consensus_slots.ts new file mode 100644 index 000000000..5aae2750c --- /dev/null +++ b/codegen/_output/westend/types/sp_consensus_slots.ts @@ -0,0 +1,24 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $equivocationProof: $.Codec = _codec.$186 + +export const $slot: $.Codec = _codec.$190 + +export interface EquivocationProof { + offender: t.types.sp_consensus_babe.app.Public + slot: t.types.sp_consensus_slots.Slot + first_header: t.types.sp_runtime.generic.header.Header + second_header: t.types.sp_runtime.generic.header.Header +} + +export function EquivocationProof(value: t.types.sp_consensus_slots.EquivocationProof) { + return value +} + +export type Slot = t.types.u64 + +export function Slot(value: t.types.sp_consensus_slots.Slot) { + return value +} diff --git a/codegen/_output/westend/types/sp_core/crypto.ts b/codegen/_output/westend/types/sp_core/crypto.ts new file mode 100644 index 000000000..3fb7caefa --- /dev/null +++ b/codegen/_output/westend/types/sp_core/crypto.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $accountId32: $.Codec = _codec.$0 + +export const $keyTypeId: $.Codec = _codec.$514 + +export type AccountId32 = Uint8Array + +export function AccountId32(value: t.types.sp_core.crypto.AccountId32) { + return value +} + +export type KeyTypeId = Uint8Array + +export function KeyTypeId(value: t.types.sp_core.crypto.KeyTypeId) { + return value +} diff --git a/codegen/_output/westend/types/sp_core/ecdsa.ts b/codegen/_output/westend/types/sp_core/ecdsa.ts new file mode 100644 index 000000000..46fe6ef05 --- /dev/null +++ b/codegen/_output/westend/types/sp_core/ecdsa.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$418 + +export const $signature: $.Codec = _codec.$422 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.ecdsa.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.ecdsa.Signature) { + return value +} diff --git a/codegen/_output/westend/types/sp_core/ed25519.ts b/codegen/_output/westend/types/sp_core/ed25519.ts new file mode 100644 index 000000000..a23064e9b --- /dev/null +++ b/codegen/_output/westend/types/sp_core/ed25519.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$51 + +export const $signature: $.Codec = _codec.$222 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.ed25519.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.ed25519.Signature) { + return value +} diff --git a/codegen/_output/westend/types/sp_core/mod.ts b/codegen/_output/westend/types/sp_core/mod.ts new file mode 100644 index 000000000..76b7c54c9 --- /dev/null +++ b/codegen/_output/westend/types/sp_core/mod.ts @@ -0,0 +1,21 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as crypto from "./crypto.ts" +export * as ecdsa from "./ecdsa.ts" +export * as ed25519 from "./ed25519.ts" +export * as offchain from "./offchain.ts" +export * as sr25519 from "./sr25519.ts" + +export const $opaquePeerId: $.Codec = _codec.$230 + +export const $void: $.Codec = _codec.$262 + +export type OpaquePeerId = Uint8Array + +export function OpaquePeerId(value: t.types.sp_core.OpaquePeerId) { + return value +} + +export type Void = never diff --git a/codegen/_output/westend/types/sp_core/offchain.ts b/codegen/_output/westend/types/sp_core/offchain.ts new file mode 100644 index 000000000..dd675887f --- /dev/null +++ b/codegen/_output/westend/types/sp_core/offchain.ts @@ -0,0 +1,22 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $opaqueMultiaddr: $.Codec = _codec.$232 + +export const $opaqueNetworkState: $.Codec = _codec.$229 + +export type OpaqueMultiaddr = Uint8Array + +export function OpaqueMultiaddr(value: t.types.sp_core.offchain.OpaqueMultiaddr) { + return value +} + +export interface OpaqueNetworkState { + peer_id: t.types.sp_core.OpaquePeerId + external_addresses: Array +} + +export function OpaqueNetworkState(value: t.types.sp_core.offchain.OpaqueNetworkState) { + return value +} diff --git a/codegen/_output/westend/types/sp_core/sr25519.ts b/codegen/_output/westend/types/sp_core/sr25519.ts new file mode 100644 index 000000000..a4e068793 --- /dev/null +++ b/codegen/_output/westend/types/sp_core/sr25519.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$54 + +export const $signature: $.Codec = _codec.$101 + +export type Public = Uint8Array + +export function Public(value: t.types.sp_core.sr25519.Public) { + return value +} + +export type Signature = Uint8Array + +export function Signature(value: t.types.sp_core.sr25519.Signature) { + return value +} diff --git a/codegen/_output/westend/types/sp_finality_grandpa/app.ts b/codegen/_output/westend/types/sp_finality_grandpa/app.ts new file mode 100644 index 000000000..1113934c6 --- /dev/null +++ b/codegen/_output/westend/types/sp_finality_grandpa/app.ts @@ -0,0 +1,19 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $public: $.Codec = _codec.$50 + +export const $signature: $.Codec = _codec.$221 + +export type Public = t.types.sp_core.ed25519.Public + +export function Public(value: t.types.sp_finality_grandpa.app.Public) { + return value +} + +export type Signature = t.types.sp_core.ed25519.Signature + +export function Signature(value: t.types.sp_finality_grandpa.app.Signature) { + return value +} diff --git a/codegen/_output/westend/types/sp_finality_grandpa/mod.ts b/codegen/_output/westend/types/sp_finality_grandpa/mod.ts new file mode 100644 index 000000000..f120dbf22 --- /dev/null +++ b/codegen/_output/westend/types/sp_finality_grandpa/mod.ts @@ -0,0 +1,43 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as app from "./app.ts" + +export const $equivocation: $.Codec = _codec.$218 + +export const $equivocationProof: $.Codec = + _codec.$217 + +export type Equivocation = + | t.types.sp_finality_grandpa.Equivocation.Prevote + | t.types.sp_finality_grandpa.Equivocation.Precommit +export namespace Equivocation { + export interface Prevote { + type: "Prevote" + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Prevote + } + export interface Precommit { + type: "Precommit" + value: t.types.finality_grandpa.Equivocation.$$finality_grandpa.Precommit + } + export function Prevote( + value: t.types.sp_finality_grandpa.Equivocation.Prevote["value"], + ): t.types.sp_finality_grandpa.Equivocation.Prevote { + return { type: "Prevote", value } + } + export function Precommit( + value: t.types.sp_finality_grandpa.Equivocation.Precommit["value"], + ): t.types.sp_finality_grandpa.Equivocation.Precommit { + return { type: "Precommit", value } + } +} + +export interface EquivocationProof { + set_id: t.types.u64 + equivocation: t.types.sp_finality_grandpa.Equivocation +} + +export function EquivocationProof(value: t.types.sp_finality_grandpa.EquivocationProof) { + return value +} diff --git a/codegen/_output/westend/types/sp_npos_elections.ts b/codegen/_output/westend/types/sp_npos_elections.ts new file mode 100644 index 000000000..de5eb30ab --- /dev/null +++ b/codegen/_output/westend/types/sp_npos_elections.ts @@ -0,0 +1,26 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $electionScore: $.Codec = _codec.$88 + +export const $support: $.Codec = _codec.$367 + +export interface ElectionScore { + minimal_stake: t.types.u128 + sum_stake: t.types.u128 + sum_stake_squared: t.types.u128 +} + +export function ElectionScore(value: t.types.sp_npos_elections.ElectionScore) { + return value +} + +export interface Support { + total: t.types.u128 + voters: Array<[t.types.sp_core.crypto.AccountId32, t.types.u128]> +} + +export function Support(value: t.types.sp_npos_elections.Support) { + return value +} diff --git a/codegen/_output/westend/types/sp_runtime/generic/digest.ts b/codegen/_output/westend/types/sp_runtime/generic/digest.ts new file mode 100644 index 000000000..82a236b97 --- /dev/null +++ b/codegen/_output/westend/types/sp_runtime/generic/digest.ts @@ -0,0 +1,66 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $digest: $.Codec = _codec.$13 + +export const $digestItem: $.Codec = _codec.$15 + +export interface Digest { + logs: Array +} + +export function Digest(value: t.types.sp_runtime.generic.digest.Digest) { + return value +} + +export type DigestItem = + | t.types.sp_runtime.generic.digest.DigestItem.PreRuntime + | t.types.sp_runtime.generic.digest.DigestItem.Consensus + | t.types.sp_runtime.generic.digest.DigestItem.Seal + | t.types.sp_runtime.generic.digest.DigestItem.Other + | t.types.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated +export namespace DigestItem { + export interface PreRuntime { + type: "PreRuntime" + value: [Uint8Array, Uint8Array] + } + export interface Consensus { + type: "Consensus" + value: [Uint8Array, Uint8Array] + } + export interface Seal { + type: "Seal" + value: [Uint8Array, Uint8Array] + } + export interface Other { + type: "Other" + value: Uint8Array + } + export interface RuntimeEnvironmentUpdated { + type: "RuntimeEnvironmentUpdated" + } + export function PreRuntime( + ...value: t.types.sp_runtime.generic.digest.DigestItem.PreRuntime["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.PreRuntime { + return { type: "PreRuntime", value } + } + export function Consensus( + ...value: t.types.sp_runtime.generic.digest.DigestItem.Consensus["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.Consensus { + return { type: "Consensus", value } + } + export function Seal( + ...value: t.types.sp_runtime.generic.digest.DigestItem.Seal["value"] + ): t.types.sp_runtime.generic.digest.DigestItem.Seal { + return { type: "Seal", value } + } + export function Other( + value: t.types.sp_runtime.generic.digest.DigestItem.Other["value"], + ): t.types.sp_runtime.generic.digest.DigestItem.Other { + return { type: "Other", value } + } + export function RuntimeEnvironmentUpdated(): t.types.sp_runtime.generic.digest.DigestItem.RuntimeEnvironmentUpdated { + return { type: "RuntimeEnvironmentUpdated" } + } +} diff --git a/codegen/_output/westend/types/sp_runtime/generic/header.ts b/codegen/_output/westend/types/sp_runtime/generic/header.ts new file mode 100644 index 000000000..1d9deba5b --- /dev/null +++ b/codegen/_output/westend/types/sp_runtime/generic/header.ts @@ -0,0 +1,17 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $header: $.Codec = _codec.$187 + +export interface Header { + parent_hash: t.types.primitive_types.H256 + number: t.Compact + state_root: t.types.primitive_types.H256 + extrinsics_root: t.types.primitive_types.H256 + digest: t.types.sp_runtime.generic.digest.Digest +} + +export function Header(value: t.types.sp_runtime.generic.header.Header) { + return value +} diff --git a/codegen/_output/westend/sp_runtime/generic/mod.ts b/codegen/_output/westend/types/sp_runtime/generic/mod.ts similarity index 100% rename from codegen/_output/westend/sp_runtime/generic/mod.ts rename to codegen/_output/westend/types/sp_runtime/generic/mod.ts diff --git a/codegen/_output/westend/types/sp_runtime/mod.ts b/codegen/_output/westend/types/sp_runtime/mod.ts new file mode 100644 index 000000000..d17725156 --- /dev/null +++ b/codegen/_output/westend/types/sp_runtime/mod.ts @@ -0,0 +1,218 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as generic from "./generic/mod.ts" +export * as multiaddress from "./multiaddress.ts" +export * as traits from "./traits.ts" + +export const $arithmeticError: $.Codec = _codec.$27 + +export const $dispatchError: $.Codec = _codec.$24 + +export const $moduleError: $.Codec = _codec.$25 + +export const $multiSignature: $.Codec = _codec.$421 + +export const $multiSigner: $.Codec = _codec.$417 + +export const $tokenError: $.Codec = _codec.$26 + +export const $transactionalError: $.Codec = _codec.$28 + +export type ArithmeticError = "Underflow" | "Overflow" | "DivisionByZero" + +export type DispatchError = + | t.types.sp_runtime.DispatchError.Other + | t.types.sp_runtime.DispatchError.CannotLookup + | t.types.sp_runtime.DispatchError.BadOrigin + | t.types.sp_runtime.DispatchError.Module + | t.types.sp_runtime.DispatchError.ConsumerRemaining + | t.types.sp_runtime.DispatchError.NoProviders + | t.types.sp_runtime.DispatchError.TooManyConsumers + | t.types.sp_runtime.DispatchError.Token + | t.types.sp_runtime.DispatchError.Arithmetic + | t.types.sp_runtime.DispatchError.Transactional + | t.types.sp_runtime.DispatchError.Exhausted + | t.types.sp_runtime.DispatchError.Corruption + | t.types.sp_runtime.DispatchError.Unavailable +export namespace DispatchError { + export interface Other { + type: "Other" + } + export interface CannotLookup { + type: "CannotLookup" + } + export interface BadOrigin { + type: "BadOrigin" + } + export interface Module { + type: "Module" + value: t.types.sp_runtime.ModuleError + } + export interface ConsumerRemaining { + type: "ConsumerRemaining" + } + export interface NoProviders { + type: "NoProviders" + } + export interface TooManyConsumers { + type: "TooManyConsumers" + } + export interface Token { + type: "Token" + value: t.types.sp_runtime.TokenError + } + export interface Arithmetic { + type: "Arithmetic" + value: t.types.sp_runtime.ArithmeticError + } + export interface Transactional { + type: "Transactional" + value: t.types.sp_runtime.TransactionalError + } + export interface Exhausted { + type: "Exhausted" + } + export interface Corruption { + type: "Corruption" + } + export interface Unavailable { + type: "Unavailable" + } + export function Other(): t.types.sp_runtime.DispatchError.Other { + return { type: "Other" } + } + export function CannotLookup(): t.types.sp_runtime.DispatchError.CannotLookup { + return { type: "CannotLookup" } + } + export function BadOrigin(): t.types.sp_runtime.DispatchError.BadOrigin { + return { type: "BadOrigin" } + } + export function Module( + value: t.types.sp_runtime.DispatchError.Module["value"], + ): t.types.sp_runtime.DispatchError.Module { + return { type: "Module", value } + } + export function ConsumerRemaining(): t.types.sp_runtime.DispatchError.ConsumerRemaining { + return { type: "ConsumerRemaining" } + } + export function NoProviders(): t.types.sp_runtime.DispatchError.NoProviders { + return { type: "NoProviders" } + } + export function TooManyConsumers(): t.types.sp_runtime.DispatchError.TooManyConsumers { + return { type: "TooManyConsumers" } + } + export function Token( + value: t.types.sp_runtime.DispatchError.Token["value"], + ): t.types.sp_runtime.DispatchError.Token { + return { type: "Token", value } + } + export function Arithmetic( + value: t.types.sp_runtime.DispatchError.Arithmetic["value"], + ): t.types.sp_runtime.DispatchError.Arithmetic { + return { type: "Arithmetic", value } + } + export function Transactional( + value: t.types.sp_runtime.DispatchError.Transactional["value"], + ): t.types.sp_runtime.DispatchError.Transactional { + return { type: "Transactional", value } + } + export function Exhausted(): t.types.sp_runtime.DispatchError.Exhausted { + return { type: "Exhausted" } + } + export function Corruption(): t.types.sp_runtime.DispatchError.Corruption { + return { type: "Corruption" } + } + export function Unavailable(): t.types.sp_runtime.DispatchError.Unavailable { + return { type: "Unavailable" } + } +} + +export interface ModuleError { + index: t.types.u8 + error: Uint8Array +} + +export function ModuleError(value: t.types.sp_runtime.ModuleError) { + return value +} + +export type MultiSignature = + | t.types.sp_runtime.MultiSignature.Ed25519 + | t.types.sp_runtime.MultiSignature.Sr25519 + | t.types.sp_runtime.MultiSignature.Ecdsa +export namespace MultiSignature { + export interface Ed25519 { + type: "Ed25519" + value: t.types.sp_core.ed25519.Signature + } + export interface Sr25519 { + type: "Sr25519" + value: t.types.sp_core.sr25519.Signature + } + export interface Ecdsa { + type: "Ecdsa" + value: t.types.sp_core.ecdsa.Signature + } + export function Ed25519( + value: t.types.sp_runtime.MultiSignature.Ed25519["value"], + ): t.types.sp_runtime.MultiSignature.Ed25519 { + return { type: "Ed25519", value } + } + export function Sr25519( + value: t.types.sp_runtime.MultiSignature.Sr25519["value"], + ): t.types.sp_runtime.MultiSignature.Sr25519 { + return { type: "Sr25519", value } + } + export function Ecdsa( + value: t.types.sp_runtime.MultiSignature.Ecdsa["value"], + ): t.types.sp_runtime.MultiSignature.Ecdsa { + return { type: "Ecdsa", value } + } +} + +export type MultiSigner = + | t.types.sp_runtime.MultiSigner.Ed25519 + | t.types.sp_runtime.MultiSigner.Sr25519 + | t.types.sp_runtime.MultiSigner.Ecdsa +export namespace MultiSigner { + export interface Ed25519 { + type: "Ed25519" + value: t.types.sp_core.ed25519.Public + } + export interface Sr25519 { + type: "Sr25519" + value: t.types.sp_core.sr25519.Public + } + export interface Ecdsa { + type: "Ecdsa" + value: t.types.sp_core.ecdsa.Public + } + export function Ed25519( + value: t.types.sp_runtime.MultiSigner.Ed25519["value"], + ): t.types.sp_runtime.MultiSigner.Ed25519 { + return { type: "Ed25519", value } + } + export function Sr25519( + value: t.types.sp_runtime.MultiSigner.Sr25519["value"], + ): t.types.sp_runtime.MultiSigner.Sr25519 { + return { type: "Sr25519", value } + } + export function Ecdsa( + value: t.types.sp_runtime.MultiSigner.Ecdsa["value"], + ): t.types.sp_runtime.MultiSigner.Ecdsa { + return { type: "Ecdsa", value } + } +} + +export type TokenError = + | "NoFunds" + | "WouldDie" + | "BelowMinimum" + | "CannotCreate" + | "UnknownAsset" + | "Frozen" + | "Unsupported" + +export type TransactionalError = "LimitReached" | "NoLayer" diff --git a/codegen/_output/westend/types/sp_runtime/multiaddress.ts b/codegen/_output/westend/types/sp_runtime/multiaddress.ts new file mode 100644 index 000000000..cef3e56ce --- /dev/null +++ b/codegen/_output/westend/types/sp_runtime/multiaddress.ts @@ -0,0 +1,59 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $multiAddress: $.Codec = _codec.$197 + +export type MultiAddress = + | t.types.sp_runtime.multiaddress.MultiAddress.Id + | t.types.sp_runtime.multiaddress.MultiAddress.Index + | t.types.sp_runtime.multiaddress.MultiAddress.Raw + | t.types.sp_runtime.multiaddress.MultiAddress.Address32 + | t.types.sp_runtime.multiaddress.MultiAddress.Address20 +export namespace MultiAddress { + export interface Id { + type: "Id" + value: t.types.sp_core.crypto.AccountId32 + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Raw { + type: "Raw" + value: Uint8Array + } + export interface Address32 { + type: "Address32" + value: Uint8Array + } + export interface Address20 { + type: "Address20" + value: Uint8Array + } + export function Id( + value: t.types.sp_runtime.multiaddress.MultiAddress.Id["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Id { + return { type: "Id", value } + } + export function Index( + value: t.types.sp_runtime.multiaddress.MultiAddress.Index["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Index { + return { type: "Index", value } + } + export function Raw( + value: t.types.sp_runtime.multiaddress.MultiAddress.Raw["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Raw { + return { type: "Raw", value } + } + export function Address32( + value: t.types.sp_runtime.multiaddress.MultiAddress.Address32["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Address32 { + return { type: "Address32", value } + } + export function Address20( + value: t.types.sp_runtime.multiaddress.MultiAddress.Address20["value"], + ): t.types.sp_runtime.multiaddress.MultiAddress.Address20 { + return { type: "Address20", value } + } +} diff --git a/codegen/_output/westend/types/sp_runtime/traits.ts b/codegen/_output/westend/types/sp_runtime/traits.ts new file mode 100644 index 000000000..71293ed25 --- /dev/null +++ b/codegen/_output/westend/types/sp_runtime/traits.ts @@ -0,0 +1,11 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $blakeTwo256: $.Codec = _codec.$188 + +export function BlakeTwo256() { + return null +} + +export type BlakeTwo256 = null diff --git a/codegen/_output/westend/types/sp_session.ts b/codegen/_output/westend/types/sp_session.ts new file mode 100644 index 000000000..0d1cce46f --- /dev/null +++ b/codegen/_output/westend/types/sp_session.ts @@ -0,0 +1,15 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $membershipProof: $.Codec = _codec.$191 + +export interface MembershipProof { + session: t.types.u32 + trie_nodes: Array + validator_count: t.types.u32 +} + +export function MembershipProof(value: t.types.sp_session.MembershipProof) { + return value +} diff --git a/codegen/_output/westend/sp_staking/mod.ts b/codegen/_output/westend/types/sp_staking/mod.ts similarity index 100% rename from codegen/_output/westend/sp_staking/mod.ts rename to codegen/_output/westend/types/sp_staking/mod.ts diff --git a/codegen/_output/westend/types/sp_staking/offence.ts b/codegen/_output/westend/types/sp_staking/offence.ts new file mode 100644 index 000000000..b040fad84 --- /dev/null +++ b/codegen/_output/westend/types/sp_staking/offence.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $offenceDetails: $.Codec = _codec.$509 + +export interface OffenceDetails { + offender: [t.types.sp_core.crypto.AccountId32, t.types.pallet_staking.Exposure] + reporters: Array +} + +export function OffenceDetails(value: t.types.sp_staking.offence.OffenceDetails) { + return value +} diff --git a/codegen/_output/westend/types/sp_version.ts b/codegen/_output/westend/types/sp_version.ts new file mode 100644 index 000000000..6d5fd37d2 --- /dev/null +++ b/codegen/_output/westend/types/sp_version.ts @@ -0,0 +1,20 @@ +import { $ } from "../capi.ts" +import * as _codec from "../codecs.ts" +import type * as t from "../mod.ts" + +export const $runtimeVersion: $.Codec = _codec.$172 + +export interface RuntimeVersion { + spec_name: string + impl_name: string + authoring_version: t.types.u32 + spec_version: t.types.u32 + impl_version: t.types.u32 + apis: Array<[Uint8Array, t.types.u32]> + transaction_version: t.types.u32 + state_version: t.types.u8 +} + +export function RuntimeVersion(value: t.types.sp_version.RuntimeVersion) { + return value +} diff --git a/codegen/_output/westend/types/sp_weights/mod.ts b/codegen/_output/westend/types/sp_weights/mod.ts new file mode 100644 index 000000000..6c71df30c --- /dev/null +++ b/codegen/_output/westend/types/sp_weights/mod.ts @@ -0,0 +1,24 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as weight_v2 from "./weight_v2.ts" + +export const $oldWeight: $.Codec = _codec.$239 + +export const $runtimeDbWeight: $.Codec = _codec.$171 + +export type OldWeight = t.types.u64 + +export function OldWeight(value: t.types.sp_weights.OldWeight) { + return value +} + +export interface RuntimeDbWeight { + read: t.types.u64 + write: t.types.u64 +} + +export function RuntimeDbWeight(value: t.types.sp_weights.RuntimeDbWeight) { + return value +} diff --git a/codegen/_output/westend/types/sp_weights/weight_v2.ts b/codegen/_output/westend/types/sp_weights/weight_v2.ts new file mode 100644 index 000000000..16e7987be --- /dev/null +++ b/codegen/_output/westend/types/sp_weights/weight_v2.ts @@ -0,0 +1,14 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export const $weight: $.Codec = _codec.$8 + +export interface Weight { + ref_time: t.Compact + proof_size: t.Compact +} + +export function Weight(value: t.types.sp_weights.weight_v2.Weight) { + return value +} diff --git a/codegen/_output/westend/types/xcm/mod.ts b/codegen/_output/westend/types/xcm/mod.ts new file mode 100644 index 000000000..2b0075cda --- /dev/null +++ b/codegen/_output/westend/types/xcm/mod.ts @@ -0,0 +1,125 @@ +import { $ } from "../../capi.ts" +import * as _codec from "../../codecs.ts" +import type * as t from "../../mod.ts" + +export * as v0 from "./v0/mod.ts" +export * as v1 from "./v1/mod.ts" +export * as v2 from "./v2/mod.ts" + +export const $versionedMultiAssets: $.Codec = _codec.$150 + +export const $versionedMultiLocation: $.Codec = _codec.$155 + +export const $versionedResponse: $.Codec = _codec.$716 + +export const $versionedXcm: $.Codec = _codec.$424 + +export type VersionedMultiAssets = + | t.types.xcm.VersionedMultiAssets.V0 + | t.types.xcm.VersionedMultiAssets.V1 +export namespace VersionedMultiAssets { + export interface V0 { + type: "V0" + value: Array + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export function V0( + value: t.types.xcm.VersionedMultiAssets.V0["value"], + ): t.types.xcm.VersionedMultiAssets.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedMultiAssets.V1["value"], + ): t.types.xcm.VersionedMultiAssets.V1 { + return { type: "V1", value } + } +} + +export type VersionedMultiLocation = + | t.types.xcm.VersionedMultiLocation.V0 + | t.types.xcm.VersionedMultiLocation.V1 +export namespace VersionedMultiLocation { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.multi_location.MultiLocation + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.multilocation.MultiLocation + } + export function V0( + value: t.types.xcm.VersionedMultiLocation.V0["value"], + ): t.types.xcm.VersionedMultiLocation.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedMultiLocation.V1["value"], + ): t.types.xcm.VersionedMultiLocation.V1 { + return { type: "V1", value } + } +} + +export type VersionedResponse = + | t.types.xcm.VersionedResponse.V0 + | t.types.xcm.VersionedResponse.V1 + | t.types.xcm.VersionedResponse.V2 +export namespace VersionedResponse { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.Response + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.Response + } + export interface V2 { + type: "V2" + value: t.types.xcm.v2.Response + } + export function V0( + value: t.types.xcm.VersionedResponse.V0["value"], + ): t.types.xcm.VersionedResponse.V0 { + return { type: "V0", value } + } + export function V1( + value: t.types.xcm.VersionedResponse.V1["value"], + ): t.types.xcm.VersionedResponse.V1 { + return { type: "V1", value } + } + export function V2( + value: t.types.xcm.VersionedResponse.V2["value"], + ): t.types.xcm.VersionedResponse.V2 { + return { type: "V2", value } + } +} + +export type VersionedXcm = + | t.types.xcm.VersionedXcm.V0 + | t.types.xcm.VersionedXcm.V1 + | t.types.xcm.VersionedXcm.V2 +export namespace VersionedXcm { + export interface V0 { + type: "V0" + value: t.types.xcm.v0.Xcm + } + export interface V1 { + type: "V1" + value: t.types.xcm.v1.Xcm + } + export interface V2 { + type: "V2" + value: Array + } + export function V0(value: t.types.xcm.VersionedXcm.V0["value"]): t.types.xcm.VersionedXcm.V0 { + return { type: "V0", value } + } + export function V1(value: t.types.xcm.VersionedXcm.V1["value"]): t.types.xcm.VersionedXcm.V1 { + return { type: "V1", value } + } + export function V2(value: t.types.xcm.VersionedXcm.V2["value"]): t.types.xcm.VersionedXcm.V2 { + return { type: "V2", value } + } +} diff --git a/codegen/_output/westend/types/xcm/v0/junction.ts b/codegen/_output/westend/types/xcm/v0/junction.ts new file mode 100644 index 000000000..8d6d89a84 --- /dev/null +++ b/codegen/_output/westend/types/xcm/v0/junction.ts @@ -0,0 +1,261 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $bodyId: $.Codec = _codec.$128 + +export const $bodyPart: $.Codec = _codec.$129 + +export const $junction: $.Codec = _codec.$154 + +export const $networkId: $.Codec = _codec.$126 + +export type BodyId = + | t.types.xcm.v0.junction.BodyId.Unit + | t.types.xcm.v0.junction.BodyId.Named + | t.types.xcm.v0.junction.BodyId.Index + | t.types.xcm.v0.junction.BodyId.Executive + | t.types.xcm.v0.junction.BodyId.Technical + | t.types.xcm.v0.junction.BodyId.Legislative + | t.types.xcm.v0.junction.BodyId.Judicial +export namespace BodyId { + export interface Unit { + type: "Unit" + } + export interface Named { + type: "Named" + value: Uint8Array + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Executive { + type: "Executive" + } + export interface Technical { + type: "Technical" + } + export interface Legislative { + type: "Legislative" + } + export interface Judicial { + type: "Judicial" + } + export function Unit(): t.types.xcm.v0.junction.BodyId.Unit { + return { type: "Unit" } + } + export function Named( + value: t.types.xcm.v0.junction.BodyId.Named["value"], + ): t.types.xcm.v0.junction.BodyId.Named { + return { type: "Named", value } + } + export function Index( + value: t.types.xcm.v0.junction.BodyId.Index["value"], + ): t.types.xcm.v0.junction.BodyId.Index { + return { type: "Index", value } + } + export function Executive(): t.types.xcm.v0.junction.BodyId.Executive { + return { type: "Executive" } + } + export function Technical(): t.types.xcm.v0.junction.BodyId.Technical { + return { type: "Technical" } + } + export function Legislative(): t.types.xcm.v0.junction.BodyId.Legislative { + return { type: "Legislative" } + } + export function Judicial(): t.types.xcm.v0.junction.BodyId.Judicial { + return { type: "Judicial" } + } +} + +export type BodyPart = + | t.types.xcm.v0.junction.BodyPart.Voice + | t.types.xcm.v0.junction.BodyPart.Members + | t.types.xcm.v0.junction.BodyPart.Fraction + | t.types.xcm.v0.junction.BodyPart.AtLeastProportion + | t.types.xcm.v0.junction.BodyPart.MoreThanProportion +export namespace BodyPart { + export interface Voice { + type: "Voice" + } + export interface Members { + type: "Members" + count: t.Compact + } + export interface Fraction { + type: "Fraction" + nom: t.Compact + denom: t.Compact + } + export interface AtLeastProportion { + type: "AtLeastProportion" + nom: t.Compact + denom: t.Compact + } + export interface MoreThanProportion { + type: "MoreThanProportion" + nom: t.Compact + denom: t.Compact + } + export function Voice(): t.types.xcm.v0.junction.BodyPart.Voice { + return { type: "Voice" } + } + export function Members( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.Members { + return { type: "Members", ...value } + } + export function Fraction( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.Fraction { + return { type: "Fraction", ...value } + } + export function AtLeastProportion( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.AtLeastProportion { + return { type: "AtLeastProportion", ...value } + } + export function MoreThanProportion( + value: Omit, + ): t.types.xcm.v0.junction.BodyPart.MoreThanProportion { + return { type: "MoreThanProportion", ...value } + } +} + +export type Junction = + | t.types.xcm.v0.junction.Junction.Parent + | t.types.xcm.v0.junction.Junction.Parachain + | t.types.xcm.v0.junction.Junction.AccountId32 + | t.types.xcm.v0.junction.Junction.AccountIndex64 + | t.types.xcm.v0.junction.Junction.AccountKey20 + | t.types.xcm.v0.junction.Junction.PalletInstance + | t.types.xcm.v0.junction.Junction.GeneralIndex + | t.types.xcm.v0.junction.Junction.GeneralKey + | t.types.xcm.v0.junction.Junction.OnlyChild + | t.types.xcm.v0.junction.Junction.Plurality +export namespace Junction { + export interface Parent { + type: "Parent" + } + export interface Parachain { + type: "Parachain" + value: t.Compact + } + export interface AccountId32 { + type: "AccountId32" + network: t.types.xcm.v0.junction.NetworkId + id: Uint8Array + } + export interface AccountIndex64 { + type: "AccountIndex64" + network: t.types.xcm.v0.junction.NetworkId + index: t.Compact + } + export interface AccountKey20 { + type: "AccountKey20" + network: t.types.xcm.v0.junction.NetworkId + key: Uint8Array + } + export interface PalletInstance { + type: "PalletInstance" + value: t.types.u8 + } + export interface GeneralIndex { + type: "GeneralIndex" + value: t.Compact + } + export interface GeneralKey { + type: "GeneralKey" + value: Uint8Array + } + export interface OnlyChild { + type: "OnlyChild" + } + export interface Plurality { + type: "Plurality" + id: t.types.xcm.v0.junction.BodyId + part: t.types.xcm.v0.junction.BodyPart + } + export function Parent(): t.types.xcm.v0.junction.Junction.Parent { + return { type: "Parent" } + } + export function Parachain( + value: t.types.xcm.v0.junction.Junction.Parachain["value"], + ): t.types.xcm.v0.junction.Junction.Parachain { + return { type: "Parachain", value } + } + export function AccountId32( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountId32 { + return { type: "AccountId32", ...value } + } + export function AccountIndex64( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountIndex64 { + return { type: "AccountIndex64", ...value } + } + export function AccountKey20( + value: Omit, + ): t.types.xcm.v0.junction.Junction.AccountKey20 { + return { type: "AccountKey20", ...value } + } + export function PalletInstance( + value: t.types.xcm.v0.junction.Junction.PalletInstance["value"], + ): t.types.xcm.v0.junction.Junction.PalletInstance { + return { type: "PalletInstance", value } + } + export function GeneralIndex( + value: t.types.xcm.v0.junction.Junction.GeneralIndex["value"], + ): t.types.xcm.v0.junction.Junction.GeneralIndex { + return { type: "GeneralIndex", value } + } + export function GeneralKey( + value: t.types.xcm.v0.junction.Junction.GeneralKey["value"], + ): t.types.xcm.v0.junction.Junction.GeneralKey { + return { type: "GeneralKey", value } + } + export function OnlyChild(): t.types.xcm.v0.junction.Junction.OnlyChild { + return { type: "OnlyChild" } + } + export function Plurality( + value: Omit, + ): t.types.xcm.v0.junction.Junction.Plurality { + return { type: "Plurality", ...value } + } +} + +export type NetworkId = + | t.types.xcm.v0.junction.NetworkId.Any + | t.types.xcm.v0.junction.NetworkId.Named + | t.types.xcm.v0.junction.NetworkId.Polkadot + | t.types.xcm.v0.junction.NetworkId.Kusama +export namespace NetworkId { + export interface Any { + type: "Any" + } + export interface Named { + type: "Named" + value: Uint8Array + } + export interface Polkadot { + type: "Polkadot" + } + export interface Kusama { + type: "Kusama" + } + export function Any(): t.types.xcm.v0.junction.NetworkId.Any { + return { type: "Any" } + } + export function Named( + value: t.types.xcm.v0.junction.NetworkId.Named["value"], + ): t.types.xcm.v0.junction.NetworkId.Named { + return { type: "Named", value } + } + export function Polkadot(): t.types.xcm.v0.junction.NetworkId.Polkadot { + return { type: "Polkadot" } + } + export function Kusama(): t.types.xcm.v0.junction.NetworkId.Kusama { + return { type: "Kusama" } + } +} diff --git a/codegen/_output/westend/types/xcm/v0/mod.ts b/codegen/_output/westend/types/xcm/v0/mod.ts new file mode 100644 index 000000000..44faf4b53 --- /dev/null +++ b/codegen/_output/westend/types/xcm/v0/mod.ts @@ -0,0 +1,157 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as junction from "./junction.ts" +export * as multi_asset from "./multi_asset.ts" +export * as multi_location from "./multi_location.ts" +export * as order from "./order.ts" + +export const $originKind: $.Codec = _codec.$143 + +export const $response: $.Codec = _codec.$429 + +export const $xcm: $.Codec = _codec.$425 + +export type OriginKind = "Native" | "SovereignAccount" | "Superuser" | "Xcm" + +export type Response = t.types.xcm.v0.Response.Assets +export namespace Response { + export interface Assets { + type: "Assets" + value: Array + } + export function Assets( + value: t.types.xcm.v0.Response.Assets["value"], + ): t.types.xcm.v0.Response.Assets { + return { type: "Assets", value } + } +} + +export type Xcm = + | t.types.xcm.v0.Xcm.WithdrawAsset + | t.types.xcm.v0.Xcm.ReserveAssetDeposit + | t.types.xcm.v0.Xcm.TeleportAsset + | t.types.xcm.v0.Xcm.QueryResponse + | t.types.xcm.v0.Xcm.TransferAsset + | t.types.xcm.v0.Xcm.TransferReserveAsset + | t.types.xcm.v0.Xcm.Transact + | t.types.xcm.v0.Xcm.HrmpNewChannelOpenRequest + | t.types.xcm.v0.Xcm.HrmpChannelAccepted + | t.types.xcm.v0.Xcm.HrmpChannelClosing + | t.types.xcm.v0.Xcm.RelayedFrom +export namespace Xcm { + export interface WithdrawAsset { + type: "WithdrawAsset" + assets: Array + effects: Array + } + export interface ReserveAssetDeposit { + type: "ReserveAssetDeposit" + assets: Array + effects: Array + } + export interface TeleportAsset { + type: "TeleportAsset" + assets: Array + effects: Array + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v0.Response + } + export interface TransferAsset { + type: "TransferAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.types.u64 + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface RelayedFrom { + type: "RelayedFrom" + who: t.types.xcm.v0.multi_location.MultiLocation + message: t.types.xcm.v0.Xcm + } + export function WithdrawAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.WithdrawAsset { + return { type: "WithdrawAsset", ...value } + } + export function ReserveAssetDeposit( + value: Omit, + ): t.types.xcm.v0.Xcm.ReserveAssetDeposit { + return { type: "ReserveAssetDeposit", ...value } + } + export function TeleportAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TeleportAsset { + return { type: "TeleportAsset", ...value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v0.Xcm.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v0.Xcm.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v0.Xcm.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v0.Xcm.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function RelayedFrom( + value: Omit, + ): t.types.xcm.v0.Xcm.RelayedFrom { + return { type: "RelayedFrom", ...value } + } +} diff --git a/codegen/_output/westend/types/xcm/v0/multi_asset.ts b/codegen/_output/westend/types/xcm/v0/multi_asset.ts new file mode 100644 index 000000000..d5cc676ee --- /dev/null +++ b/codegen/_output/westend/types/xcm/v0/multi_asset.ts @@ -0,0 +1,121 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $multiAsset: $.Codec = _codec.$152 + +export type MultiAsset = + | t.types.xcm.v0.multi_asset.MultiAsset.None + | t.types.xcm.v0.multi_asset.MultiAsset.All + | t.types.xcm.v0.multi_asset.MultiAsset.AllFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AbstractFungible + | t.types.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible + | t.types.xcm.v0.multi_asset.MultiAsset.ConcreteFungible + | t.types.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible +export namespace MultiAsset { + export interface None { + type: "None" + } + export interface All { + type: "All" + } + export interface AllFungible { + type: "AllFungible" + } + export interface AllNonFungible { + type: "AllNonFungible" + } + export interface AllAbstractFungible { + type: "AllAbstractFungible" + id: Uint8Array + } + export interface AllAbstractNonFungible { + type: "AllAbstractNonFungible" + class: Uint8Array + } + export interface AllConcreteFungible { + type: "AllConcreteFungible" + id: t.types.xcm.v0.multi_location.MultiLocation + } + export interface AllConcreteNonFungible { + type: "AllConcreteNonFungible" + class: t.types.xcm.v0.multi_location.MultiLocation + } + export interface AbstractFungible { + type: "AbstractFungible" + id: Uint8Array + amount: t.Compact + } + export interface AbstractNonFungible { + type: "AbstractNonFungible" + class: Uint8Array + instance: t.types.xcm.v1.multiasset.AssetInstance + } + export interface ConcreteFungible { + type: "ConcreteFungible" + id: t.types.xcm.v0.multi_location.MultiLocation + amount: t.Compact + } + export interface ConcreteNonFungible { + type: "ConcreteNonFungible" + class: t.types.xcm.v0.multi_location.MultiLocation + instance: t.types.xcm.v1.multiasset.AssetInstance + } + export function None(): t.types.xcm.v0.multi_asset.MultiAsset.None { + return { type: "None" } + } + export function All(): t.types.xcm.v0.multi_asset.MultiAsset.All { + return { type: "All" } + } + export function AllFungible(): t.types.xcm.v0.multi_asset.MultiAsset.AllFungible { + return { type: "AllFungible" } + } + export function AllNonFungible(): t.types.xcm.v0.multi_asset.MultiAsset.AllNonFungible { + return { type: "AllNonFungible" } + } + export function AllAbstractFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible { + return { type: "AllAbstractFungible", ...value } + } + export function AllAbstractNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible { + return { type: "AllAbstractNonFungible", ...value } + } + export function AllConcreteFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible { + return { type: "AllConcreteFungible", ...value } + } + export function AllConcreteNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible { + return { type: "AllConcreteNonFungible", ...value } + } + export function AbstractFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AbstractFungible { + return { type: "AbstractFungible", ...value } + } + export function AbstractNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible { + return { type: "AbstractNonFungible", ...value } + } + export function ConcreteFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.ConcreteFungible { + return { type: "ConcreteFungible", ...value } + } + export function ConcreteNonFungible( + value: Omit, + ): t.types.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible { + return { type: "ConcreteNonFungible", ...value } + } +} diff --git a/codegen/_output/westend/types/xcm/v0/multi_location.ts b/codegen/_output/westend/types/xcm/v0/multi_location.ts new file mode 100644 index 000000000..3a52363c6 --- /dev/null +++ b/codegen/_output/westend/types/xcm/v0/multi_location.ts @@ -0,0 +1,135 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $multiLocation: $.Codec = _codec.$153 + +export type MultiLocation = + | t.types.xcm.v0.multi_location.MultiLocation.Null + | t.types.xcm.v0.multi_location.MultiLocation.X1 + | t.types.xcm.v0.multi_location.MultiLocation.X2 + | t.types.xcm.v0.multi_location.MultiLocation.X3 + | t.types.xcm.v0.multi_location.MultiLocation.X4 + | t.types.xcm.v0.multi_location.MultiLocation.X5 + | t.types.xcm.v0.multi_location.MultiLocation.X6 + | t.types.xcm.v0.multi_location.MultiLocation.X7 + | t.types.xcm.v0.multi_location.MultiLocation.X8 +export namespace MultiLocation { + export interface Null { + type: "Null" + } + export interface X1 { + type: "X1" + value: t.types.xcm.v0.junction.Junction + } + export interface X2 { + type: "X2" + value: [t.types.xcm.v0.junction.Junction, t.types.xcm.v0.junction.Junction] + } + export interface X3 { + type: "X3" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X4 { + type: "X4" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X5 { + type: "X5" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X6 { + type: "X6" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X7 { + type: "X7" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export interface X8 { + type: "X8" + value: [ + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + t.types.xcm.v0.junction.Junction, + ] + } + export function Null(): t.types.xcm.v0.multi_location.MultiLocation.Null { + return { type: "Null" } + } + export function X1( + value: t.types.xcm.v0.multi_location.MultiLocation.X1["value"], + ): t.types.xcm.v0.multi_location.MultiLocation.X1 { + return { type: "X1", value } + } + export function X2( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X2["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X2 { + return { type: "X2", value } + } + export function X3( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X3["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X3 { + return { type: "X3", value } + } + export function X4( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X4["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X4 { + return { type: "X4", value } + } + export function X5( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X5["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X5 { + return { type: "X5", value } + } + export function X6( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X6["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X6 { + return { type: "X6", value } + } + export function X7( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X7["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X7 { + return { type: "X7", value } + } + export function X8( + ...value: t.types.xcm.v0.multi_location.MultiLocation.X8["value"] + ): t.types.xcm.v0.multi_location.MultiLocation.X8 { + return { type: "X8", value } + } +} diff --git a/codegen/_output/westend/types/xcm/v0/order.ts b/codegen/_output/westend/types/xcm/v0/order.ts new file mode 100644 index 000000000..e5f60587d --- /dev/null +++ b/codegen/_output/westend/types/xcm/v0/order.ts @@ -0,0 +1,100 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $order: $.Codec = _codec.$427 + +export type Order = + | t.types.xcm.v0.order.Order.Null + | t.types.xcm.v0.order.Order.DepositAsset + | t.types.xcm.v0.order.Order.DepositReserveAsset + | t.types.xcm.v0.order.Order.ExchangeAsset + | t.types.xcm.v0.order.Order.InitiateReserveWithdraw + | t.types.xcm.v0.order.Order.InitiateTeleport + | t.types.xcm.v0.order.Order.QueryHolding + | t.types.xcm.v0.order.Order.BuyExecution +export namespace Order { + export interface Null { + type: "Null" + } + export interface DepositAsset { + type: "DepositAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: Array + receive: Array + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: Array + reserve: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: Array + dest: t.types.xcm.v0.multi_location.MultiLocation + effects: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v0.multi_location.MultiLocation + assets: Array + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v0.multi_asset.MultiAsset + weight: t.types.u64 + debt: t.types.u64 + halt_on_error: boolean + xcm: Array + } + export function Null(): t.types.xcm.v0.order.Order.Null { + return { type: "Null" } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v0.order.Order.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v0.order.Order.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v0.order.Order.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v0.order.Order.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v0.order.Order.BuyExecution { + return { type: "BuyExecution", ...value } + } +} diff --git a/codegen/_output/westend/types/xcm/v1/junction.ts b/codegen/_output/westend/types/xcm/v1/junction.ts new file mode 100644 index 000000000..f1b0cb62f --- /dev/null +++ b/codegen/_output/westend/types/xcm/v1/junction.ts @@ -0,0 +1,100 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $junction: $.Codec = _codec.$124 + +export type Junction = + | t.types.xcm.v1.junction.Junction.Parachain + | t.types.xcm.v1.junction.Junction.AccountId32 + | t.types.xcm.v1.junction.Junction.AccountIndex64 + | t.types.xcm.v1.junction.Junction.AccountKey20 + | t.types.xcm.v1.junction.Junction.PalletInstance + | t.types.xcm.v1.junction.Junction.GeneralIndex + | t.types.xcm.v1.junction.Junction.GeneralKey + | t.types.xcm.v1.junction.Junction.OnlyChild + | t.types.xcm.v1.junction.Junction.Plurality +export namespace Junction { + export interface Parachain { + type: "Parachain" + value: t.Compact + } + export interface AccountId32 { + type: "AccountId32" + network: t.types.xcm.v0.junction.NetworkId + id: Uint8Array + } + export interface AccountIndex64 { + type: "AccountIndex64" + network: t.types.xcm.v0.junction.NetworkId + index: t.Compact + } + export interface AccountKey20 { + type: "AccountKey20" + network: t.types.xcm.v0.junction.NetworkId + key: Uint8Array + } + export interface PalletInstance { + type: "PalletInstance" + value: t.types.u8 + } + export interface GeneralIndex { + type: "GeneralIndex" + value: t.Compact + } + export interface GeneralKey { + type: "GeneralKey" + value: Uint8Array + } + export interface OnlyChild { + type: "OnlyChild" + } + export interface Plurality { + type: "Plurality" + id: t.types.xcm.v0.junction.BodyId + part: t.types.xcm.v0.junction.BodyPart + } + export function Parachain( + value: t.types.xcm.v1.junction.Junction.Parachain["value"], + ): t.types.xcm.v1.junction.Junction.Parachain { + return { type: "Parachain", value } + } + export function AccountId32( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountId32 { + return { type: "AccountId32", ...value } + } + export function AccountIndex64( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountIndex64 { + return { type: "AccountIndex64", ...value } + } + export function AccountKey20( + value: Omit, + ): t.types.xcm.v1.junction.Junction.AccountKey20 { + return { type: "AccountKey20", ...value } + } + export function PalletInstance( + value: t.types.xcm.v1.junction.Junction.PalletInstance["value"], + ): t.types.xcm.v1.junction.Junction.PalletInstance { + return { type: "PalletInstance", value } + } + export function GeneralIndex( + value: t.types.xcm.v1.junction.Junction.GeneralIndex["value"], + ): t.types.xcm.v1.junction.Junction.GeneralIndex { + return { type: "GeneralIndex", value } + } + export function GeneralKey( + value: t.types.xcm.v1.junction.Junction.GeneralKey["value"], + ): t.types.xcm.v1.junction.Junction.GeneralKey { + return { type: "GeneralKey", value } + } + export function OnlyChild(): t.types.xcm.v1.junction.Junction.OnlyChild { + return { type: "OnlyChild" } + } + export function Plurality( + value: Omit, + ): t.types.xcm.v1.junction.Junction.Plurality { + return { type: "Plurality", ...value } + } +} diff --git a/codegen/_output/westend/types/xcm/v1/mod.ts b/codegen/_output/westend/types/xcm/v1/mod.ts new file mode 100644 index 000000000..22e161792 --- /dev/null +++ b/codegen/_output/westend/types/xcm/v1/mod.ts @@ -0,0 +1,180 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as junction from "./junction.ts" +export * as multiasset from "./multiasset.ts" +export * as multilocation from "./multilocation.ts" +export * as order from "./order.ts" + +export const $response: $.Codec = _codec.$434 + +export const $xcm: $.Codec = _codec.$430 + +export type Response = t.types.xcm.v1.Response.Assets | t.types.xcm.v1.Response.Version +export namespace Response { + export interface Assets { + type: "Assets" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface Version { + type: "Version" + value: t.types.u32 + } + export function Assets( + value: t.types.xcm.v1.Response.Assets["value"], + ): t.types.xcm.v1.Response.Assets { + return { type: "Assets", value } + } + export function Version( + value: t.types.xcm.v1.Response.Version["value"], + ): t.types.xcm.v1.Response.Version { + return { type: "Version", value } + } +} + +export type Xcm = + | t.types.xcm.v1.Xcm.WithdrawAsset + | t.types.xcm.v1.Xcm.ReserveAssetDeposited + | t.types.xcm.v1.Xcm.ReceiveTeleportedAsset + | t.types.xcm.v1.Xcm.QueryResponse + | t.types.xcm.v1.Xcm.TransferAsset + | t.types.xcm.v1.Xcm.TransferReserveAsset + | t.types.xcm.v1.Xcm.Transact + | t.types.xcm.v1.Xcm.HrmpNewChannelOpenRequest + | t.types.xcm.v1.Xcm.HrmpChannelAccepted + | t.types.xcm.v1.Xcm.HrmpChannelClosing + | t.types.xcm.v1.Xcm.RelayedFrom + | t.types.xcm.v1.Xcm.SubscribeVersion + | t.types.xcm.v1.Xcm.UnsubscribeVersion +export namespace Xcm { + export interface WithdrawAsset { + type: "WithdrawAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface ReserveAssetDeposited { + type: "ReserveAssetDeposited" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface ReceiveTeleportedAsset { + type: "ReceiveTeleportedAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + effects: Array + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v1.Response + } + export interface TransferAsset { + type: "TransferAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.types.u64 + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface RelayedFrom { + type: "RelayedFrom" + who: t.types.xcm.v1.multilocation.Junctions + message: t.types.xcm.v1.Xcm + } + export interface SubscribeVersion { + type: "SubscribeVersion" + query_id: t.Compact + max_response_weight: t.Compact + } + export interface UnsubscribeVersion { + type: "UnsubscribeVersion" + } + export function WithdrawAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.WithdrawAsset { + return { type: "WithdrawAsset", ...value } + } + export function ReserveAssetDeposited( + value: Omit, + ): t.types.xcm.v1.Xcm.ReserveAssetDeposited { + return { type: "ReserveAssetDeposited", ...value } + } + export function ReceiveTeleportedAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.ReceiveTeleportedAsset { + return { type: "ReceiveTeleportedAsset", ...value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v1.Xcm.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v1.Xcm.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v1.Xcm.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v1.Xcm.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function RelayedFrom( + value: Omit, + ): t.types.xcm.v1.Xcm.RelayedFrom { + return { type: "RelayedFrom", ...value } + } + export function SubscribeVersion( + value: Omit, + ): t.types.xcm.v1.Xcm.SubscribeVersion { + return { type: "SubscribeVersion", ...value } + } + export function UnsubscribeVersion(): t.types.xcm.v1.Xcm.UnsubscribeVersion { + return { type: "UnsubscribeVersion" } + } +} diff --git a/codegen/_output/westend/types/xcm/v1/multiasset.ts b/codegen/_output/westend/types/xcm/v1/multiasset.ts new file mode 100644 index 000000000..a11443466 --- /dev/null +++ b/codegen/_output/westend/types/xcm/v1/multiasset.ts @@ -0,0 +1,201 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $assetId: $.Codec = _codec.$136 + +export const $assetInstance: $.Codec = _codec.$138 + +export const $fungibility: $.Codec = _codec.$137 + +export const $multiAsset: $.Codec = _codec.$135 + +export const $multiAssetFilter: $.Codec = _codec.$145 + +export const $multiAssets: $.Codec = _codec.$133 + +export const $wildFungibility: $.Codec = _codec.$147 + +export const $wildMultiAsset: $.Codec = _codec.$146 + +export type AssetId = + | t.types.xcm.v1.multiasset.AssetId.Concrete + | t.types.xcm.v1.multiasset.AssetId.Abstract +export namespace AssetId { + export interface Concrete { + type: "Concrete" + value: t.types.xcm.v1.multilocation.MultiLocation + } + export interface Abstract { + type: "Abstract" + value: Uint8Array + } + export function Concrete( + value: t.types.xcm.v1.multiasset.AssetId.Concrete["value"], + ): t.types.xcm.v1.multiasset.AssetId.Concrete { + return { type: "Concrete", value } + } + export function Abstract( + value: t.types.xcm.v1.multiasset.AssetId.Abstract["value"], + ): t.types.xcm.v1.multiasset.AssetId.Abstract { + return { type: "Abstract", value } + } +} + +export type AssetInstance = + | t.types.xcm.v1.multiasset.AssetInstance.Undefined + | t.types.xcm.v1.multiasset.AssetInstance.Index + | t.types.xcm.v1.multiasset.AssetInstance.Array4 + | t.types.xcm.v1.multiasset.AssetInstance.Array8 + | t.types.xcm.v1.multiasset.AssetInstance.Array16 + | t.types.xcm.v1.multiasset.AssetInstance.Array32 + | t.types.xcm.v1.multiasset.AssetInstance.Blob +export namespace AssetInstance { + export interface Undefined { + type: "Undefined" + } + export interface Index { + type: "Index" + value: t.Compact + } + export interface Array4 { + type: "Array4" + value: Uint8Array + } + export interface Array8 { + type: "Array8" + value: Uint8Array + } + export interface Array16 { + type: "Array16" + value: Uint8Array + } + export interface Array32 { + type: "Array32" + value: Uint8Array + } + export interface Blob { + type: "Blob" + value: Uint8Array + } + export function Undefined(): t.types.xcm.v1.multiasset.AssetInstance.Undefined { + return { type: "Undefined" } + } + export function Index( + value: t.types.xcm.v1.multiasset.AssetInstance.Index["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Index { + return { type: "Index", value } + } + export function Array4( + value: t.types.xcm.v1.multiasset.AssetInstance.Array4["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array4 { + return { type: "Array4", value } + } + export function Array8( + value: t.types.xcm.v1.multiasset.AssetInstance.Array8["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array8 { + return { type: "Array8", value } + } + export function Array16( + value: t.types.xcm.v1.multiasset.AssetInstance.Array16["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array16 { + return { type: "Array16", value } + } + export function Array32( + value: t.types.xcm.v1.multiasset.AssetInstance.Array32["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Array32 { + return { type: "Array32", value } + } + export function Blob( + value: t.types.xcm.v1.multiasset.AssetInstance.Blob["value"], + ): t.types.xcm.v1.multiasset.AssetInstance.Blob { + return { type: "Blob", value } + } +} + +export type Fungibility = + | t.types.xcm.v1.multiasset.Fungibility.Fungible + | t.types.xcm.v1.multiasset.Fungibility.NonFungible +export namespace Fungibility { + export interface Fungible { + type: "Fungible" + value: t.Compact + } + export interface NonFungible { + type: "NonFungible" + value: t.types.xcm.v1.multiasset.AssetInstance + } + export function Fungible( + value: t.types.xcm.v1.multiasset.Fungibility.Fungible["value"], + ): t.types.xcm.v1.multiasset.Fungibility.Fungible { + return { type: "Fungible", value } + } + export function NonFungible( + value: t.types.xcm.v1.multiasset.Fungibility.NonFungible["value"], + ): t.types.xcm.v1.multiasset.Fungibility.NonFungible { + return { type: "NonFungible", value } + } +} + +export interface MultiAsset { + id: t.types.xcm.v1.multiasset.AssetId + fun: t.types.xcm.v1.multiasset.Fungibility +} + +export function MultiAsset(value: t.types.xcm.v1.multiasset.MultiAsset) { + return value +} + +export type MultiAssetFilter = + | t.types.xcm.v1.multiasset.MultiAssetFilter.Definite + | t.types.xcm.v1.multiasset.MultiAssetFilter.Wild +export namespace MultiAssetFilter { + export interface Definite { + type: "Definite" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface Wild { + type: "Wild" + value: t.types.xcm.v1.multiasset.WildMultiAsset + } + export function Definite( + value: t.types.xcm.v1.multiasset.MultiAssetFilter.Definite["value"], + ): t.types.xcm.v1.multiasset.MultiAssetFilter.Definite { + return { type: "Definite", value } + } + export function Wild( + value: t.types.xcm.v1.multiasset.MultiAssetFilter.Wild["value"], + ): t.types.xcm.v1.multiasset.MultiAssetFilter.Wild { + return { type: "Wild", value } + } +} + +export type MultiAssets = Array + +export function MultiAssets(value: t.types.xcm.v1.multiasset.MultiAssets) { + return value +} + +export type WildFungibility = "Fungible" | "NonFungible" + +export type WildMultiAsset = + | t.types.xcm.v1.multiasset.WildMultiAsset.All + | t.types.xcm.v1.multiasset.WildMultiAsset.AllOf +export namespace WildMultiAsset { + export interface All { + type: "All" + } + export interface AllOf { + type: "AllOf" + id: t.types.xcm.v1.multiasset.AssetId + fun: t.types.xcm.v1.multiasset.WildFungibility + } + export function All(): t.types.xcm.v1.multiasset.WildMultiAsset.All { + return { type: "All" } + } + export function AllOf( + value: Omit, + ): t.types.xcm.v1.multiasset.WildMultiAsset.AllOf { + return { type: "AllOf", ...value } + } +} diff --git a/codegen/_output/westend/types/xcm/v1/multilocation.ts b/codegen/_output/westend/types/xcm/v1/multilocation.ts new file mode 100644 index 000000000..1764b59af --- /dev/null +++ b/codegen/_output/westend/types/xcm/v1/multilocation.ts @@ -0,0 +1,146 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $junctions: $.Codec = _codec.$123 + +export const $multiLocation: $.Codec = _codec.$122 + +export type Junctions = + | t.types.xcm.v1.multilocation.Junctions.Here + | t.types.xcm.v1.multilocation.Junctions.X1 + | t.types.xcm.v1.multilocation.Junctions.X2 + | t.types.xcm.v1.multilocation.Junctions.X3 + | t.types.xcm.v1.multilocation.Junctions.X4 + | t.types.xcm.v1.multilocation.Junctions.X5 + | t.types.xcm.v1.multilocation.Junctions.X6 + | t.types.xcm.v1.multilocation.Junctions.X7 + | t.types.xcm.v1.multilocation.Junctions.X8 +export namespace Junctions { + export interface Here { + type: "Here" + } + export interface X1 { + type: "X1" + value: t.types.xcm.v1.junction.Junction + } + export interface X2 { + type: "X2" + value: [t.types.xcm.v1.junction.Junction, t.types.xcm.v1.junction.Junction] + } + export interface X3 { + type: "X3" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X4 { + type: "X4" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X5 { + type: "X5" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X6 { + type: "X6" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X7 { + type: "X7" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export interface X8 { + type: "X8" + value: [ + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + t.types.xcm.v1.junction.Junction, + ] + } + export function Here(): t.types.xcm.v1.multilocation.Junctions.Here { + return { type: "Here" } + } + export function X1( + value: t.types.xcm.v1.multilocation.Junctions.X1["value"], + ): t.types.xcm.v1.multilocation.Junctions.X1 { + return { type: "X1", value } + } + export function X2( + ...value: t.types.xcm.v1.multilocation.Junctions.X2["value"] + ): t.types.xcm.v1.multilocation.Junctions.X2 { + return { type: "X2", value } + } + export function X3( + ...value: t.types.xcm.v1.multilocation.Junctions.X3["value"] + ): t.types.xcm.v1.multilocation.Junctions.X3 { + return { type: "X3", value } + } + export function X4( + ...value: t.types.xcm.v1.multilocation.Junctions.X4["value"] + ): t.types.xcm.v1.multilocation.Junctions.X4 { + return { type: "X4", value } + } + export function X5( + ...value: t.types.xcm.v1.multilocation.Junctions.X5["value"] + ): t.types.xcm.v1.multilocation.Junctions.X5 { + return { type: "X5", value } + } + export function X6( + ...value: t.types.xcm.v1.multilocation.Junctions.X6["value"] + ): t.types.xcm.v1.multilocation.Junctions.X6 { + return { type: "X6", value } + } + export function X7( + ...value: t.types.xcm.v1.multilocation.Junctions.X7["value"] + ): t.types.xcm.v1.multilocation.Junctions.X7 { + return { type: "X7", value } + } + export function X8( + ...value: t.types.xcm.v1.multilocation.Junctions.X8["value"] + ): t.types.xcm.v1.multilocation.Junctions.X8 { + return { type: "X8", value } + } +} + +export interface MultiLocation { + parents: t.types.u8 + interior: t.types.xcm.v1.multilocation.Junctions +} + +export function MultiLocation(value: t.types.xcm.v1.multilocation.MultiLocation) { + return value +} diff --git a/codegen/_output/westend/types/xcm/v1/order.ts b/codegen/_output/westend/types/xcm/v1/order.ts new file mode 100644 index 000000000..9337ba623 --- /dev/null +++ b/codegen/_output/westend/types/xcm/v1/order.ts @@ -0,0 +1,102 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $order: $.Codec = _codec.$432 + +export type Order = + | t.types.xcm.v1.order.Order.Noop + | t.types.xcm.v1.order.Order.DepositAsset + | t.types.xcm.v1.order.Order.DepositReserveAsset + | t.types.xcm.v1.order.Order.ExchangeAsset + | t.types.xcm.v1.order.Order.InitiateReserveWithdraw + | t.types.xcm.v1.order.Order.InitiateTeleport + | t.types.xcm.v1.order.Order.QueryHolding + | t.types.xcm.v1.order.Order.BuyExecution +export namespace Order { + export interface Noop { + type: "Noop" + } + export interface DepositAsset { + type: "DepositAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.types.u32 + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.types.u32 + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: t.types.xcm.v1.multiasset.MultiAssetFilter + receive: t.types.xcm.v1.multiasset.MultiAssets + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + reserve: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + dest: t.types.xcm.v1.multilocation.MultiLocation + effects: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v1.multiasset.MultiAsset + weight: t.types.u64 + debt: t.types.u64 + halt_on_error: boolean + instructions: Array + } + export function Noop(): t.types.xcm.v1.order.Order.Noop { + return { type: "Noop" } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v1.order.Order.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v1.order.Order.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v1.order.Order.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v1.order.Order.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v1.order.Order.BuyExecution { + return { type: "BuyExecution", ...value } + } +} diff --git a/codegen/_output/westend/types/xcm/v2/mod.ts b/codegen/_output/westend/types/xcm/v2/mod.ts new file mode 100644 index 000000000..c91c6d027 --- /dev/null +++ b/codegen/_output/westend/types/xcm/v2/mod.ts @@ -0,0 +1,372 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export * as traits from "./traits.ts" + +export const $instruction: $.Codec = _codec.$132 + +export const $response: $.Codec = _codec.$140 + +export const $weightLimit: $.Codec = _codec.$148 + +export type Instruction = + | t.types.xcm.v2.Instruction.WithdrawAsset + | t.types.xcm.v2.Instruction.ReserveAssetDeposited + | t.types.xcm.v2.Instruction.ReceiveTeleportedAsset + | t.types.xcm.v2.Instruction.QueryResponse + | t.types.xcm.v2.Instruction.TransferAsset + | t.types.xcm.v2.Instruction.TransferReserveAsset + | t.types.xcm.v2.Instruction.Transact + | t.types.xcm.v2.Instruction.HrmpNewChannelOpenRequest + | t.types.xcm.v2.Instruction.HrmpChannelAccepted + | t.types.xcm.v2.Instruction.HrmpChannelClosing + | t.types.xcm.v2.Instruction.ClearOrigin + | t.types.xcm.v2.Instruction.DescendOrigin + | t.types.xcm.v2.Instruction.ReportError + | t.types.xcm.v2.Instruction.DepositAsset + | t.types.xcm.v2.Instruction.DepositReserveAsset + | t.types.xcm.v2.Instruction.ExchangeAsset + | t.types.xcm.v2.Instruction.InitiateReserveWithdraw + | t.types.xcm.v2.Instruction.InitiateTeleport + | t.types.xcm.v2.Instruction.QueryHolding + | t.types.xcm.v2.Instruction.BuyExecution + | t.types.xcm.v2.Instruction.RefundSurplus + | t.types.xcm.v2.Instruction.SetErrorHandler + | t.types.xcm.v2.Instruction.SetAppendix + | t.types.xcm.v2.Instruction.ClearError + | t.types.xcm.v2.Instruction.ClaimAsset + | t.types.xcm.v2.Instruction.Trap + | t.types.xcm.v2.Instruction.SubscribeVersion + | t.types.xcm.v2.Instruction.UnsubscribeVersion +export namespace Instruction { + export interface WithdrawAsset { + type: "WithdrawAsset" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ReserveAssetDeposited { + type: "ReserveAssetDeposited" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ReceiveTeleportedAsset { + type: "ReceiveTeleportedAsset" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface QueryResponse { + type: "QueryResponse" + query_id: t.Compact + response: t.types.xcm.v2.Response + max_weight: t.Compact + } + export interface TransferAsset { + type: "TransferAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface TransferReserveAsset { + type: "TransferReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface Transact { + type: "Transact" + origin_type: t.types.xcm.v0.OriginKind + require_weight_at_most: t.Compact + call: { encoded: Uint8Array } + } + export interface HrmpNewChannelOpenRequest { + type: "HrmpNewChannelOpenRequest" + sender: t.Compact + max_message_size: t.Compact + max_capacity: t.Compact + } + export interface HrmpChannelAccepted { + type: "HrmpChannelAccepted" + recipient: t.Compact + } + export interface HrmpChannelClosing { + type: "HrmpChannelClosing" + initiator: t.Compact + sender: t.Compact + recipient: t.Compact + } + export interface ClearOrigin { + type: "ClearOrigin" + } + export interface DescendOrigin { + type: "DescendOrigin" + value: t.types.xcm.v1.multilocation.Junctions + } + export interface ReportError { + type: "ReportError" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + max_response_weight: t.Compact + } + export interface DepositAsset { + type: "DepositAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.Compact + beneficiary: t.types.xcm.v1.multilocation.MultiLocation + } + export interface DepositReserveAsset { + type: "DepositReserveAsset" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_assets: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface ExchangeAsset { + type: "ExchangeAsset" + give: t.types.xcm.v1.multiasset.MultiAssetFilter + receive: t.types.xcm.v1.multiasset.MultiAssets + } + export interface InitiateReserveWithdraw { + type: "InitiateReserveWithdraw" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + reserve: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface InitiateTeleport { + type: "InitiateTeleport" + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + dest: t.types.xcm.v1.multilocation.MultiLocation + xcm: Array + } + export interface QueryHolding { + type: "QueryHolding" + query_id: t.Compact + dest: t.types.xcm.v1.multilocation.MultiLocation + assets: t.types.xcm.v1.multiasset.MultiAssetFilter + max_response_weight: t.Compact + } + export interface BuyExecution { + type: "BuyExecution" + fees: t.types.xcm.v1.multiasset.MultiAsset + weight_limit: t.types.xcm.v2.WeightLimit + } + export interface RefundSurplus { + type: "RefundSurplus" + } + export interface SetErrorHandler { + type: "SetErrorHandler" + value: Array + } + export interface SetAppendix { + type: "SetAppendix" + value: Array + } + export interface ClearError { + type: "ClearError" + } + export interface ClaimAsset { + type: "ClaimAsset" + assets: t.types.xcm.v1.multiasset.MultiAssets + ticket: t.types.xcm.v1.multilocation.MultiLocation + } + export interface Trap { + type: "Trap" + value: t.Compact + } + export interface SubscribeVersion { + type: "SubscribeVersion" + query_id: t.Compact + max_response_weight: t.Compact + } + export interface UnsubscribeVersion { + type: "UnsubscribeVersion" + } + export function WithdrawAsset( + value: t.types.xcm.v2.Instruction.WithdrawAsset["value"], + ): t.types.xcm.v2.Instruction.WithdrawAsset { + return { type: "WithdrawAsset", value } + } + export function ReserveAssetDeposited( + value: t.types.xcm.v2.Instruction.ReserveAssetDeposited["value"], + ): t.types.xcm.v2.Instruction.ReserveAssetDeposited { + return { type: "ReserveAssetDeposited", value } + } + export function ReceiveTeleportedAsset( + value: t.types.xcm.v2.Instruction.ReceiveTeleportedAsset["value"], + ): t.types.xcm.v2.Instruction.ReceiveTeleportedAsset { + return { type: "ReceiveTeleportedAsset", value } + } + export function QueryResponse( + value: Omit, + ): t.types.xcm.v2.Instruction.QueryResponse { + return { type: "QueryResponse", ...value } + } + export function TransferAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.TransferAsset { + return { type: "TransferAsset", ...value } + } + export function TransferReserveAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.TransferReserveAsset { + return { type: "TransferReserveAsset", ...value } + } + export function Transact( + value: Omit, + ): t.types.xcm.v2.Instruction.Transact { + return { type: "Transact", ...value } + } + export function HrmpNewChannelOpenRequest( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpNewChannelOpenRequest { + return { type: "HrmpNewChannelOpenRequest", ...value } + } + export function HrmpChannelAccepted( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpChannelAccepted { + return { type: "HrmpChannelAccepted", ...value } + } + export function HrmpChannelClosing( + value: Omit, + ): t.types.xcm.v2.Instruction.HrmpChannelClosing { + return { type: "HrmpChannelClosing", ...value } + } + export function ClearOrigin(): t.types.xcm.v2.Instruction.ClearOrigin { + return { type: "ClearOrigin" } + } + export function DescendOrigin( + value: t.types.xcm.v2.Instruction.DescendOrigin["value"], + ): t.types.xcm.v2.Instruction.DescendOrigin { + return { type: "DescendOrigin", value } + } + export function ReportError( + value: Omit, + ): t.types.xcm.v2.Instruction.ReportError { + return { type: "ReportError", ...value } + } + export function DepositAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.DepositAsset { + return { type: "DepositAsset", ...value } + } + export function DepositReserveAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.DepositReserveAsset { + return { type: "DepositReserveAsset", ...value } + } + export function ExchangeAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.ExchangeAsset { + return { type: "ExchangeAsset", ...value } + } + export function InitiateReserveWithdraw( + value: Omit, + ): t.types.xcm.v2.Instruction.InitiateReserveWithdraw { + return { type: "InitiateReserveWithdraw", ...value } + } + export function InitiateTeleport( + value: Omit, + ): t.types.xcm.v2.Instruction.InitiateTeleport { + return { type: "InitiateTeleport", ...value } + } + export function QueryHolding( + value: Omit, + ): t.types.xcm.v2.Instruction.QueryHolding { + return { type: "QueryHolding", ...value } + } + export function BuyExecution( + value: Omit, + ): t.types.xcm.v2.Instruction.BuyExecution { + return { type: "BuyExecution", ...value } + } + export function RefundSurplus(): t.types.xcm.v2.Instruction.RefundSurplus { + return { type: "RefundSurplus" } + } + export function SetErrorHandler( + value: t.types.xcm.v2.Instruction.SetErrorHandler["value"], + ): t.types.xcm.v2.Instruction.SetErrorHandler { + return { type: "SetErrorHandler", value } + } + export function SetAppendix( + value: t.types.xcm.v2.Instruction.SetAppendix["value"], + ): t.types.xcm.v2.Instruction.SetAppendix { + return { type: "SetAppendix", value } + } + export function ClearError(): t.types.xcm.v2.Instruction.ClearError { + return { type: "ClearError" } + } + export function ClaimAsset( + value: Omit, + ): t.types.xcm.v2.Instruction.ClaimAsset { + return { type: "ClaimAsset", ...value } + } + export function Trap( + value: t.types.xcm.v2.Instruction.Trap["value"], + ): t.types.xcm.v2.Instruction.Trap { + return { type: "Trap", value } + } + export function SubscribeVersion( + value: Omit, + ): t.types.xcm.v2.Instruction.SubscribeVersion { + return { type: "SubscribeVersion", ...value } + } + export function UnsubscribeVersion(): t.types.xcm.v2.Instruction.UnsubscribeVersion { + return { type: "UnsubscribeVersion" } + } +} + +export type Response = + | t.types.xcm.v2.Response.Null + | t.types.xcm.v2.Response.Assets + | t.types.xcm.v2.Response.ExecutionResult + | t.types.xcm.v2.Response.Version +export namespace Response { + export interface Null { + type: "Null" + } + export interface Assets { + type: "Assets" + value: t.types.xcm.v1.multiasset.MultiAssets + } + export interface ExecutionResult { + type: "ExecutionResult" + value: [t.types.u32, t.types.xcm.v2.traits.Error] | undefined + } + export interface Version { + type: "Version" + value: t.types.u32 + } + export function Null(): t.types.xcm.v2.Response.Null { + return { type: "Null" } + } + export function Assets( + value: t.types.xcm.v2.Response.Assets["value"], + ): t.types.xcm.v2.Response.Assets { + return { type: "Assets", value } + } + export function ExecutionResult( + value: t.types.xcm.v2.Response.ExecutionResult["value"], + ): t.types.xcm.v2.Response.ExecutionResult { + return { type: "ExecutionResult", value } + } + export function Version( + value: t.types.xcm.v2.Response.Version["value"], + ): t.types.xcm.v2.Response.Version { + return { type: "Version", value } + } +} + +export type WeightLimit = t.types.xcm.v2.WeightLimit.Unlimited | t.types.xcm.v2.WeightLimit.Limited +export namespace WeightLimit { + export interface Unlimited { + type: "Unlimited" + } + export interface Limited { + type: "Limited" + value: t.Compact + } + export function Unlimited(): t.types.xcm.v2.WeightLimit.Unlimited { + return { type: "Unlimited" } + } + export function Limited( + value: t.types.xcm.v2.WeightLimit.Limited["value"], + ): t.types.xcm.v2.WeightLimit.Limited { + return { type: "Limited", value } + } +} diff --git a/codegen/_output/westend/types/xcm/v2/traits.ts b/codegen/_output/westend/types/xcm/v2/traits.ts new file mode 100644 index 000000000..2b2bc95e6 --- /dev/null +++ b/codegen/_output/westend/types/xcm/v2/traits.ts @@ -0,0 +1,233 @@ +import { $ } from "../../../capi.ts" +import * as _codec from "../../../codecs.ts" +import type * as t from "../../../mod.ts" + +export const $error: $.Codec = _codec.$110 + +export const $outcome: $.Codec = _codec.$109 + +export type Error = + | t.types.xcm.v2.traits.Error.Overflow + | t.types.xcm.v2.traits.Error.Unimplemented + | t.types.xcm.v2.traits.Error.UntrustedReserveLocation + | t.types.xcm.v2.traits.Error.UntrustedTeleportLocation + | t.types.xcm.v2.traits.Error.MultiLocationFull + | t.types.xcm.v2.traits.Error.MultiLocationNotInvertible + | t.types.xcm.v2.traits.Error.BadOrigin + | t.types.xcm.v2.traits.Error.InvalidLocation + | t.types.xcm.v2.traits.Error.AssetNotFound + | t.types.xcm.v2.traits.Error.FailedToTransactAsset + | t.types.xcm.v2.traits.Error.NotWithdrawable + | t.types.xcm.v2.traits.Error.LocationCannotHold + | t.types.xcm.v2.traits.Error.ExceedsMaxMessageSize + | t.types.xcm.v2.traits.Error.DestinationUnsupported + | t.types.xcm.v2.traits.Error.Transport + | t.types.xcm.v2.traits.Error.Unroutable + | t.types.xcm.v2.traits.Error.UnknownClaim + | t.types.xcm.v2.traits.Error.FailedToDecode + | t.types.xcm.v2.traits.Error.MaxWeightInvalid + | t.types.xcm.v2.traits.Error.NotHoldingFees + | t.types.xcm.v2.traits.Error.TooExpensive + | t.types.xcm.v2.traits.Error.Trap + | t.types.xcm.v2.traits.Error.UnhandledXcmVersion + | t.types.xcm.v2.traits.Error.WeightLimitReached + | t.types.xcm.v2.traits.Error.Barrier + | t.types.xcm.v2.traits.Error.WeightNotComputable +export namespace Error { + export interface Overflow { + type: "Overflow" + } + export interface Unimplemented { + type: "Unimplemented" + } + export interface UntrustedReserveLocation { + type: "UntrustedReserveLocation" + } + export interface UntrustedTeleportLocation { + type: "UntrustedTeleportLocation" + } + export interface MultiLocationFull { + type: "MultiLocationFull" + } + export interface MultiLocationNotInvertible { + type: "MultiLocationNotInvertible" + } + export interface BadOrigin { + type: "BadOrigin" + } + export interface InvalidLocation { + type: "InvalidLocation" + } + export interface AssetNotFound { + type: "AssetNotFound" + } + export interface FailedToTransactAsset { + type: "FailedToTransactAsset" + } + export interface NotWithdrawable { + type: "NotWithdrawable" + } + export interface LocationCannotHold { + type: "LocationCannotHold" + } + export interface ExceedsMaxMessageSize { + type: "ExceedsMaxMessageSize" + } + export interface DestinationUnsupported { + type: "DestinationUnsupported" + } + export interface Transport { + type: "Transport" + } + export interface Unroutable { + type: "Unroutable" + } + export interface UnknownClaim { + type: "UnknownClaim" + } + export interface FailedToDecode { + type: "FailedToDecode" + } + export interface MaxWeightInvalid { + type: "MaxWeightInvalid" + } + export interface NotHoldingFees { + type: "NotHoldingFees" + } + export interface TooExpensive { + type: "TooExpensive" + } + export interface Trap { + type: "Trap" + value: t.types.u64 + } + export interface UnhandledXcmVersion { + type: "UnhandledXcmVersion" + } + export interface WeightLimitReached { + type: "WeightLimitReached" + value: t.types.u64 + } + export interface Barrier { + type: "Barrier" + } + export interface WeightNotComputable { + type: "WeightNotComputable" + } + export function Overflow(): t.types.xcm.v2.traits.Error.Overflow { + return { type: "Overflow" } + } + export function Unimplemented(): t.types.xcm.v2.traits.Error.Unimplemented { + return { type: "Unimplemented" } + } + export function UntrustedReserveLocation(): t.types.xcm.v2.traits.Error.UntrustedReserveLocation { + return { type: "UntrustedReserveLocation" } + } + export function UntrustedTeleportLocation(): t.types.xcm.v2.traits.Error.UntrustedTeleportLocation { + return { type: "UntrustedTeleportLocation" } + } + export function MultiLocationFull(): t.types.xcm.v2.traits.Error.MultiLocationFull { + return { type: "MultiLocationFull" } + } + export function MultiLocationNotInvertible(): t.types.xcm.v2.traits.Error.MultiLocationNotInvertible { + return { type: "MultiLocationNotInvertible" } + } + export function BadOrigin(): t.types.xcm.v2.traits.Error.BadOrigin { + return { type: "BadOrigin" } + } + export function InvalidLocation(): t.types.xcm.v2.traits.Error.InvalidLocation { + return { type: "InvalidLocation" } + } + export function AssetNotFound(): t.types.xcm.v2.traits.Error.AssetNotFound { + return { type: "AssetNotFound" } + } + export function FailedToTransactAsset(): t.types.xcm.v2.traits.Error.FailedToTransactAsset { + return { type: "FailedToTransactAsset" } + } + export function NotWithdrawable(): t.types.xcm.v2.traits.Error.NotWithdrawable { + return { type: "NotWithdrawable" } + } + export function LocationCannotHold(): t.types.xcm.v2.traits.Error.LocationCannotHold { + return { type: "LocationCannotHold" } + } + export function ExceedsMaxMessageSize(): t.types.xcm.v2.traits.Error.ExceedsMaxMessageSize { + return { type: "ExceedsMaxMessageSize" } + } + export function DestinationUnsupported(): t.types.xcm.v2.traits.Error.DestinationUnsupported { + return { type: "DestinationUnsupported" } + } + export function Transport(): t.types.xcm.v2.traits.Error.Transport { + return { type: "Transport" } + } + export function Unroutable(): t.types.xcm.v2.traits.Error.Unroutable { + return { type: "Unroutable" } + } + export function UnknownClaim(): t.types.xcm.v2.traits.Error.UnknownClaim { + return { type: "UnknownClaim" } + } + export function FailedToDecode(): t.types.xcm.v2.traits.Error.FailedToDecode { + return { type: "FailedToDecode" } + } + export function MaxWeightInvalid(): t.types.xcm.v2.traits.Error.MaxWeightInvalid { + return { type: "MaxWeightInvalid" } + } + export function NotHoldingFees(): t.types.xcm.v2.traits.Error.NotHoldingFees { + return { type: "NotHoldingFees" } + } + export function TooExpensive(): t.types.xcm.v2.traits.Error.TooExpensive { + return { type: "TooExpensive" } + } + export function Trap( + value: t.types.xcm.v2.traits.Error.Trap["value"], + ): t.types.xcm.v2.traits.Error.Trap { + return { type: "Trap", value } + } + export function UnhandledXcmVersion(): t.types.xcm.v2.traits.Error.UnhandledXcmVersion { + return { type: "UnhandledXcmVersion" } + } + export function WeightLimitReached( + value: t.types.xcm.v2.traits.Error.WeightLimitReached["value"], + ): t.types.xcm.v2.traits.Error.WeightLimitReached { + return { type: "WeightLimitReached", value } + } + export function Barrier(): t.types.xcm.v2.traits.Error.Barrier { + return { type: "Barrier" } + } + export function WeightNotComputable(): t.types.xcm.v2.traits.Error.WeightNotComputable { + return { type: "WeightNotComputable" } + } +} + +export type Outcome = + | t.types.xcm.v2.traits.Outcome.Complete + | t.types.xcm.v2.traits.Outcome.Incomplete + | t.types.xcm.v2.traits.Outcome.Error +export namespace Outcome { + export interface Complete { + type: "Complete" + value: t.types.u64 + } + export interface Incomplete { + type: "Incomplete" + value: [t.types.u64, t.types.xcm.v2.traits.Error] + } + export interface Error { + type: "Error" + value: t.types.xcm.v2.traits.Error + } + export function Complete( + value: t.types.xcm.v2.traits.Outcome.Complete["value"], + ): t.types.xcm.v2.traits.Outcome.Complete { + return { type: "Complete", value } + } + export function Incomplete( + ...value: t.types.xcm.v2.traits.Outcome.Incomplete["value"] + ): t.types.xcm.v2.traits.Outcome.Incomplete { + return { type: "Incomplete", value } + } + export function Error( + value: t.types.xcm.v2.traits.Outcome.Error["value"], + ): t.types.xcm.v2.traits.Outcome.Error { + return { type: "Error", value } + } +} diff --git a/codegen/_output/westend/xcm/mod.ts b/codegen/_output/westend/xcm/mod.ts deleted file mode 100644 index 1752da8bf..000000000 --- a/codegen/_output/westend/xcm/mod.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { $ } from "../capi.ts" -import * as _codec from "../codecs.ts" -import type * as t from "../mod.ts" - -export * as v0 from "./v0/mod.ts" -export * as v1 from "./v1/mod.ts" -export * as v2 from "./v2/mod.ts" - -export const $versionedMultiAssets: $.Codec = _codec.$150 - -export const $versionedMultiLocation: $.Codec = _codec.$155 - -export const $versionedResponse: $.Codec = _codec.$716 - -export const $versionedXcm: $.Codec = _codec.$424 - -export type VersionedMultiAssets = t.xcm.VersionedMultiAssets.V0 | t.xcm.VersionedMultiAssets.V1 -export namespace VersionedMultiAssets { - export interface V0 { - type: "V0" - value: Array - } - export interface V1 { - type: "V1" - value: t.xcm.v1.multiasset.MultiAssets - } - export function V0(value: t.xcm.VersionedMultiAssets.V0["value"]): t.xcm.VersionedMultiAssets.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedMultiAssets.V1["value"]): t.xcm.VersionedMultiAssets.V1 { - return { type: "V1", value } - } -} - -export type VersionedMultiLocation = - | t.xcm.VersionedMultiLocation.V0 - | t.xcm.VersionedMultiLocation.V1 -export namespace VersionedMultiLocation { - export interface V0 { - type: "V0" - value: t.xcm.v0.multi_location.MultiLocation - } - export interface V1 { - type: "V1" - value: t.xcm.v1.multilocation.MultiLocation - } - export function V0( - value: t.xcm.VersionedMultiLocation.V0["value"], - ): t.xcm.VersionedMultiLocation.V0 { - return { type: "V0", value } - } - export function V1( - value: t.xcm.VersionedMultiLocation.V1["value"], - ): t.xcm.VersionedMultiLocation.V1 { - return { type: "V1", value } - } -} - -export type VersionedResponse = - | t.xcm.VersionedResponse.V0 - | t.xcm.VersionedResponse.V1 - | t.xcm.VersionedResponse.V2 -export namespace VersionedResponse { - export interface V0 { - type: "V0" - value: t.xcm.v0.Response - } - export interface V1 { - type: "V1" - value: t.xcm.v1.Response - } - export interface V2 { - type: "V2" - value: t.xcm.v2.Response - } - export function V0(value: t.xcm.VersionedResponse.V0["value"]): t.xcm.VersionedResponse.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedResponse.V1["value"]): t.xcm.VersionedResponse.V1 { - return { type: "V1", value } - } - export function V2(value: t.xcm.VersionedResponse.V2["value"]): t.xcm.VersionedResponse.V2 { - return { type: "V2", value } - } -} - -export type VersionedXcm = t.xcm.VersionedXcm.V0 | t.xcm.VersionedXcm.V1 | t.xcm.VersionedXcm.V2 -export namespace VersionedXcm { - export interface V0 { - type: "V0" - value: t.xcm.v0.Xcm - } - export interface V1 { - type: "V1" - value: t.xcm.v1.Xcm - } - export interface V2 { - type: "V2" - value: Array - } - export function V0(value: t.xcm.VersionedXcm.V0["value"]): t.xcm.VersionedXcm.V0 { - return { type: "V0", value } - } - export function V1(value: t.xcm.VersionedXcm.V1["value"]): t.xcm.VersionedXcm.V1 { - return { type: "V1", value } - } - export function V2(value: t.xcm.VersionedXcm.V2["value"]): t.xcm.VersionedXcm.V2 { - return { type: "V2", value } - } -} diff --git a/codegen/_output/westend/xcm/v0/junction.ts b/codegen/_output/westend/xcm/v0/junction.ts deleted file mode 100644 index 12f14f979..000000000 --- a/codegen/_output/westend/xcm/v0/junction.ts +++ /dev/null @@ -1,261 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $bodyId: $.Codec = _codec.$128 - -export const $bodyPart: $.Codec = _codec.$129 - -export const $junction: $.Codec = _codec.$154 - -export const $networkId: $.Codec = _codec.$126 - -export type BodyId = - | t.xcm.v0.junction.BodyId.Unit - | t.xcm.v0.junction.BodyId.Named - | t.xcm.v0.junction.BodyId.Index - | t.xcm.v0.junction.BodyId.Executive - | t.xcm.v0.junction.BodyId.Technical - | t.xcm.v0.junction.BodyId.Legislative - | t.xcm.v0.junction.BodyId.Judicial -export namespace BodyId { - export interface Unit { - type: "Unit" - } - export interface Named { - type: "Named" - value: Uint8Array - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Executive { - type: "Executive" - } - export interface Technical { - type: "Technical" - } - export interface Legislative { - type: "Legislative" - } - export interface Judicial { - type: "Judicial" - } - export function Unit(): t.xcm.v0.junction.BodyId.Unit { - return { type: "Unit" } - } - export function Named( - value: t.xcm.v0.junction.BodyId.Named["value"], - ): t.xcm.v0.junction.BodyId.Named { - return { type: "Named", value } - } - export function Index( - value: t.xcm.v0.junction.BodyId.Index["value"], - ): t.xcm.v0.junction.BodyId.Index { - return { type: "Index", value } - } - export function Executive(): t.xcm.v0.junction.BodyId.Executive { - return { type: "Executive" } - } - export function Technical(): t.xcm.v0.junction.BodyId.Technical { - return { type: "Technical" } - } - export function Legislative(): t.xcm.v0.junction.BodyId.Legislative { - return { type: "Legislative" } - } - export function Judicial(): t.xcm.v0.junction.BodyId.Judicial { - return { type: "Judicial" } - } -} - -export type BodyPart = - | t.xcm.v0.junction.BodyPart.Voice - | t.xcm.v0.junction.BodyPart.Members - | t.xcm.v0.junction.BodyPart.Fraction - | t.xcm.v0.junction.BodyPart.AtLeastProportion - | t.xcm.v0.junction.BodyPart.MoreThanProportion -export namespace BodyPart { - export interface Voice { - type: "Voice" - } - export interface Members { - type: "Members" - count: t.Compact - } - export interface Fraction { - type: "Fraction" - nom: t.Compact - denom: t.Compact - } - export interface AtLeastProportion { - type: "AtLeastProportion" - nom: t.Compact - denom: t.Compact - } - export interface MoreThanProportion { - type: "MoreThanProportion" - nom: t.Compact - denom: t.Compact - } - export function Voice(): t.xcm.v0.junction.BodyPart.Voice { - return { type: "Voice" } - } - export function Members( - value: Omit, - ): t.xcm.v0.junction.BodyPart.Members { - return { type: "Members", ...value } - } - export function Fraction( - value: Omit, - ): t.xcm.v0.junction.BodyPart.Fraction { - return { type: "Fraction", ...value } - } - export function AtLeastProportion( - value: Omit, - ): t.xcm.v0.junction.BodyPart.AtLeastProportion { - return { type: "AtLeastProportion", ...value } - } - export function MoreThanProportion( - value: Omit, - ): t.xcm.v0.junction.BodyPart.MoreThanProportion { - return { type: "MoreThanProportion", ...value } - } -} - -export type Junction = - | t.xcm.v0.junction.Junction.Parent - | t.xcm.v0.junction.Junction.Parachain - | t.xcm.v0.junction.Junction.AccountId32 - | t.xcm.v0.junction.Junction.AccountIndex64 - | t.xcm.v0.junction.Junction.AccountKey20 - | t.xcm.v0.junction.Junction.PalletInstance - | t.xcm.v0.junction.Junction.GeneralIndex - | t.xcm.v0.junction.Junction.GeneralKey - | t.xcm.v0.junction.Junction.OnlyChild - | t.xcm.v0.junction.Junction.Plurality -export namespace Junction { - export interface Parent { - type: "Parent" - } - export interface Parachain { - type: "Parachain" - value: t.Compact - } - export interface AccountId32 { - type: "AccountId32" - network: t.xcm.v0.junction.NetworkId - id: Uint8Array - } - export interface AccountIndex64 { - type: "AccountIndex64" - network: t.xcm.v0.junction.NetworkId - index: t.Compact - } - export interface AccountKey20 { - type: "AccountKey20" - network: t.xcm.v0.junction.NetworkId - key: Uint8Array - } - export interface PalletInstance { - type: "PalletInstance" - value: t.u8 - } - export interface GeneralIndex { - type: "GeneralIndex" - value: t.Compact - } - export interface GeneralKey { - type: "GeneralKey" - value: Uint8Array - } - export interface OnlyChild { - type: "OnlyChild" - } - export interface Plurality { - type: "Plurality" - id: t.xcm.v0.junction.BodyId - part: t.xcm.v0.junction.BodyPart - } - export function Parent(): t.xcm.v0.junction.Junction.Parent { - return { type: "Parent" } - } - export function Parachain( - value: t.xcm.v0.junction.Junction.Parachain["value"], - ): t.xcm.v0.junction.Junction.Parachain { - return { type: "Parachain", value } - } - export function AccountId32( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountId32 { - return { type: "AccountId32", ...value } - } - export function AccountIndex64( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountIndex64 { - return { type: "AccountIndex64", ...value } - } - export function AccountKey20( - value: Omit, - ): t.xcm.v0.junction.Junction.AccountKey20 { - return { type: "AccountKey20", ...value } - } - export function PalletInstance( - value: t.xcm.v0.junction.Junction.PalletInstance["value"], - ): t.xcm.v0.junction.Junction.PalletInstance { - return { type: "PalletInstance", value } - } - export function GeneralIndex( - value: t.xcm.v0.junction.Junction.GeneralIndex["value"], - ): t.xcm.v0.junction.Junction.GeneralIndex { - return { type: "GeneralIndex", value } - } - export function GeneralKey( - value: t.xcm.v0.junction.Junction.GeneralKey["value"], - ): t.xcm.v0.junction.Junction.GeneralKey { - return { type: "GeneralKey", value } - } - export function OnlyChild(): t.xcm.v0.junction.Junction.OnlyChild { - return { type: "OnlyChild" } - } - export function Plurality( - value: Omit, - ): t.xcm.v0.junction.Junction.Plurality { - return { type: "Plurality", ...value } - } -} - -export type NetworkId = - | t.xcm.v0.junction.NetworkId.Any - | t.xcm.v0.junction.NetworkId.Named - | t.xcm.v0.junction.NetworkId.Polkadot - | t.xcm.v0.junction.NetworkId.Kusama -export namespace NetworkId { - export interface Any { - type: "Any" - } - export interface Named { - type: "Named" - value: Uint8Array - } - export interface Polkadot { - type: "Polkadot" - } - export interface Kusama { - type: "Kusama" - } - export function Any(): t.xcm.v0.junction.NetworkId.Any { - return { type: "Any" } - } - export function Named( - value: t.xcm.v0.junction.NetworkId.Named["value"], - ): t.xcm.v0.junction.NetworkId.Named { - return { type: "Named", value } - } - export function Polkadot(): t.xcm.v0.junction.NetworkId.Polkadot { - return { type: "Polkadot" } - } - export function Kusama(): t.xcm.v0.junction.NetworkId.Kusama { - return { type: "Kusama" } - } -} diff --git a/codegen/_output/westend/xcm/v0/mod.ts b/codegen/_output/westend/xcm/v0/mod.ts deleted file mode 100644 index b0db8212b..000000000 --- a/codegen/_output/westend/xcm/v0/mod.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as junction from "./junction.ts" -export * as multi_asset from "./multi_asset.ts" -export * as multi_location from "./multi_location.ts" -export * as order from "./order.ts" - -export const $originKind: $.Codec = _codec.$143 - -export const $response: $.Codec = _codec.$429 - -export const $xcm: $.Codec = _codec.$425 - -export type OriginKind = "Native" | "SovereignAccount" | "Superuser" | "Xcm" - -export type Response = t.xcm.v0.Response.Assets -export namespace Response { - export interface Assets { - type: "Assets" - value: Array - } - export function Assets(value: t.xcm.v0.Response.Assets["value"]): t.xcm.v0.Response.Assets { - return { type: "Assets", value } - } -} - -export type Xcm = - | t.xcm.v0.Xcm.WithdrawAsset - | t.xcm.v0.Xcm.ReserveAssetDeposit - | t.xcm.v0.Xcm.TeleportAsset - | t.xcm.v0.Xcm.QueryResponse - | t.xcm.v0.Xcm.TransferAsset - | t.xcm.v0.Xcm.TransferReserveAsset - | t.xcm.v0.Xcm.Transact - | t.xcm.v0.Xcm.HrmpNewChannelOpenRequest - | t.xcm.v0.Xcm.HrmpChannelAccepted - | t.xcm.v0.Xcm.HrmpChannelClosing - | t.xcm.v0.Xcm.RelayedFrom -export namespace Xcm { - export interface WithdrawAsset { - type: "WithdrawAsset" - assets: Array - effects: Array - } - export interface ReserveAssetDeposit { - type: "ReserveAssetDeposit" - assets: Array - effects: Array - } - export interface TeleportAsset { - type: "TeleportAsset" - assets: Array - effects: Array - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v0.Response - } - export interface TransferAsset { - type: "TransferAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.u64 - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface RelayedFrom { - type: "RelayedFrom" - who: t.xcm.v0.multi_location.MultiLocation - message: t.xcm.v0.Xcm - } - export function WithdrawAsset( - value: Omit, - ): t.xcm.v0.Xcm.WithdrawAsset { - return { type: "WithdrawAsset", ...value } - } - export function ReserveAssetDeposit( - value: Omit, - ): t.xcm.v0.Xcm.ReserveAssetDeposit { - return { type: "ReserveAssetDeposit", ...value } - } - export function TeleportAsset( - value: Omit, - ): t.xcm.v0.Xcm.TeleportAsset { - return { type: "TeleportAsset", ...value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v0.Xcm.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v0.Xcm.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v0.Xcm.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact(value: Omit): t.xcm.v0.Xcm.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v0.Xcm.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v0.Xcm.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v0.Xcm.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function RelayedFrom( - value: Omit, - ): t.xcm.v0.Xcm.RelayedFrom { - return { type: "RelayedFrom", ...value } - } -} diff --git a/codegen/_output/westend/xcm/v0/multi_asset.ts b/codegen/_output/westend/xcm/v0/multi_asset.ts deleted file mode 100644 index a101adce2..000000000 --- a/codegen/_output/westend/xcm/v0/multi_asset.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $multiAsset: $.Codec = _codec.$152 - -export type MultiAsset = - | t.xcm.v0.multi_asset.MultiAsset.None - | t.xcm.v0.multi_asset.MultiAsset.All - | t.xcm.v0.multi_asset.MultiAsset.AllFungible - | t.xcm.v0.multi_asset.MultiAsset.AllNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible - | t.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible - | t.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible - | t.xcm.v0.multi_asset.MultiAsset.AbstractFungible - | t.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible - | t.xcm.v0.multi_asset.MultiAsset.ConcreteFungible - | t.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible -export namespace MultiAsset { - export interface None { - type: "None" - } - export interface All { - type: "All" - } - export interface AllFungible { - type: "AllFungible" - } - export interface AllNonFungible { - type: "AllNonFungible" - } - export interface AllAbstractFungible { - type: "AllAbstractFungible" - id: Uint8Array - } - export interface AllAbstractNonFungible { - type: "AllAbstractNonFungible" - class: Uint8Array - } - export interface AllConcreteFungible { - type: "AllConcreteFungible" - id: t.xcm.v0.multi_location.MultiLocation - } - export interface AllConcreteNonFungible { - type: "AllConcreteNonFungible" - class: t.xcm.v0.multi_location.MultiLocation - } - export interface AbstractFungible { - type: "AbstractFungible" - id: Uint8Array - amount: t.Compact - } - export interface AbstractNonFungible { - type: "AbstractNonFungible" - class: Uint8Array - instance: t.xcm.v1.multiasset.AssetInstance - } - export interface ConcreteFungible { - type: "ConcreteFungible" - id: t.xcm.v0.multi_location.MultiLocation - amount: t.Compact - } - export interface ConcreteNonFungible { - type: "ConcreteNonFungible" - class: t.xcm.v0.multi_location.MultiLocation - instance: t.xcm.v1.multiasset.AssetInstance - } - export function None(): t.xcm.v0.multi_asset.MultiAsset.None { - return { type: "None" } - } - export function All(): t.xcm.v0.multi_asset.MultiAsset.All { - return { type: "All" } - } - export function AllFungible(): t.xcm.v0.multi_asset.MultiAsset.AllFungible { - return { type: "AllFungible" } - } - export function AllNonFungible(): t.xcm.v0.multi_asset.MultiAsset.AllNonFungible { - return { type: "AllNonFungible" } - } - export function AllAbstractFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllAbstractFungible { - return { type: "AllAbstractFungible", ...value } - } - export function AllAbstractNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllAbstractNonFungible { - return { type: "AllAbstractNonFungible", ...value } - } - export function AllConcreteFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllConcreteFungible { - return { type: "AllConcreteFungible", ...value } - } - export function AllConcreteNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AllConcreteNonFungible { - return { type: "AllConcreteNonFungible", ...value } - } - export function AbstractFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AbstractFungible { - return { type: "AbstractFungible", ...value } - } - export function AbstractNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.AbstractNonFungible { - return { type: "AbstractNonFungible", ...value } - } - export function ConcreteFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.ConcreteFungible { - return { type: "ConcreteFungible", ...value } - } - export function ConcreteNonFungible( - value: Omit, - ): t.xcm.v0.multi_asset.MultiAsset.ConcreteNonFungible { - return { type: "ConcreteNonFungible", ...value } - } -} diff --git a/codegen/_output/westend/xcm/v0/multi_location.ts b/codegen/_output/westend/xcm/v0/multi_location.ts deleted file mode 100644 index 327600e00..000000000 --- a/codegen/_output/westend/xcm/v0/multi_location.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $multiLocation: $.Codec = _codec.$153 - -export type MultiLocation = - | t.xcm.v0.multi_location.MultiLocation.Null - | t.xcm.v0.multi_location.MultiLocation.X1 - | t.xcm.v0.multi_location.MultiLocation.X2 - | t.xcm.v0.multi_location.MultiLocation.X3 - | t.xcm.v0.multi_location.MultiLocation.X4 - | t.xcm.v0.multi_location.MultiLocation.X5 - | t.xcm.v0.multi_location.MultiLocation.X6 - | t.xcm.v0.multi_location.MultiLocation.X7 - | t.xcm.v0.multi_location.MultiLocation.X8 -export namespace MultiLocation { - export interface Null { - type: "Null" - } - export interface X1 { - type: "X1" - value: t.xcm.v0.junction.Junction - } - export interface X2 { - type: "X2" - value: [t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction] - } - export interface X3 { - type: "X3" - value: [t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction, t.xcm.v0.junction.Junction] - } - export interface X4 { - type: "X4" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X5 { - type: "X5" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X6 { - type: "X6" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X7 { - type: "X7" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export interface X8 { - type: "X8" - value: [ - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - t.xcm.v0.junction.Junction, - ] - } - export function Null(): t.xcm.v0.multi_location.MultiLocation.Null { - return { type: "Null" } - } - export function X1( - value: t.xcm.v0.multi_location.MultiLocation.X1["value"], - ): t.xcm.v0.multi_location.MultiLocation.X1 { - return { type: "X1", value } - } - export function X2( - ...value: t.xcm.v0.multi_location.MultiLocation.X2["value"] - ): t.xcm.v0.multi_location.MultiLocation.X2 { - return { type: "X2", value } - } - export function X3( - ...value: t.xcm.v0.multi_location.MultiLocation.X3["value"] - ): t.xcm.v0.multi_location.MultiLocation.X3 { - return { type: "X3", value } - } - export function X4( - ...value: t.xcm.v0.multi_location.MultiLocation.X4["value"] - ): t.xcm.v0.multi_location.MultiLocation.X4 { - return { type: "X4", value } - } - export function X5( - ...value: t.xcm.v0.multi_location.MultiLocation.X5["value"] - ): t.xcm.v0.multi_location.MultiLocation.X5 { - return { type: "X5", value } - } - export function X6( - ...value: t.xcm.v0.multi_location.MultiLocation.X6["value"] - ): t.xcm.v0.multi_location.MultiLocation.X6 { - return { type: "X6", value } - } - export function X7( - ...value: t.xcm.v0.multi_location.MultiLocation.X7["value"] - ): t.xcm.v0.multi_location.MultiLocation.X7 { - return { type: "X7", value } - } - export function X8( - ...value: t.xcm.v0.multi_location.MultiLocation.X8["value"] - ): t.xcm.v0.multi_location.MultiLocation.X8 { - return { type: "X8", value } - } -} diff --git a/codegen/_output/westend/xcm/v0/order.ts b/codegen/_output/westend/xcm/v0/order.ts deleted file mode 100644 index 137060d46..000000000 --- a/codegen/_output/westend/xcm/v0/order.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $order: $.Codec = _codec.$427 - -export type Order = - | t.xcm.v0.order.Order.Null - | t.xcm.v0.order.Order.DepositAsset - | t.xcm.v0.order.Order.DepositReserveAsset - | t.xcm.v0.order.Order.ExchangeAsset - | t.xcm.v0.order.Order.InitiateReserveWithdraw - | t.xcm.v0.order.Order.InitiateTeleport - | t.xcm.v0.order.Order.QueryHolding - | t.xcm.v0.order.Order.BuyExecution -export namespace Order { - export interface Null { - type: "Null" - } - export interface DepositAsset { - type: "DepositAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: Array - receive: Array - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: Array - reserve: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: Array - dest: t.xcm.v0.multi_location.MultiLocation - effects: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v0.multi_location.MultiLocation - assets: Array - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v0.multi_asset.MultiAsset - weight: t.u64 - debt: t.u64 - halt_on_error: boolean - xcm: Array - } - export function Null(): t.xcm.v0.order.Order.Null { - return { type: "Null" } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v0.order.Order.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v0.order.Order.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v0.order.Order.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v0.order.Order.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v0.order.Order.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v0.order.Order.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v0.order.Order.BuyExecution { - return { type: "BuyExecution", ...value } - } -} diff --git a/codegen/_output/westend/xcm/v1/junction.ts b/codegen/_output/westend/xcm/v1/junction.ts deleted file mode 100644 index 7bbbad54c..000000000 --- a/codegen/_output/westend/xcm/v1/junction.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $junction: $.Codec = _codec.$124 - -export type Junction = - | t.xcm.v1.junction.Junction.Parachain - | t.xcm.v1.junction.Junction.AccountId32 - | t.xcm.v1.junction.Junction.AccountIndex64 - | t.xcm.v1.junction.Junction.AccountKey20 - | t.xcm.v1.junction.Junction.PalletInstance - | t.xcm.v1.junction.Junction.GeneralIndex - | t.xcm.v1.junction.Junction.GeneralKey - | t.xcm.v1.junction.Junction.OnlyChild - | t.xcm.v1.junction.Junction.Plurality -export namespace Junction { - export interface Parachain { - type: "Parachain" - value: t.Compact - } - export interface AccountId32 { - type: "AccountId32" - network: t.xcm.v0.junction.NetworkId - id: Uint8Array - } - export interface AccountIndex64 { - type: "AccountIndex64" - network: t.xcm.v0.junction.NetworkId - index: t.Compact - } - export interface AccountKey20 { - type: "AccountKey20" - network: t.xcm.v0.junction.NetworkId - key: Uint8Array - } - export interface PalletInstance { - type: "PalletInstance" - value: t.u8 - } - export interface GeneralIndex { - type: "GeneralIndex" - value: t.Compact - } - export interface GeneralKey { - type: "GeneralKey" - value: Uint8Array - } - export interface OnlyChild { - type: "OnlyChild" - } - export interface Plurality { - type: "Plurality" - id: t.xcm.v0.junction.BodyId - part: t.xcm.v0.junction.BodyPart - } - export function Parachain( - value: t.xcm.v1.junction.Junction.Parachain["value"], - ): t.xcm.v1.junction.Junction.Parachain { - return { type: "Parachain", value } - } - export function AccountId32( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountId32 { - return { type: "AccountId32", ...value } - } - export function AccountIndex64( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountIndex64 { - return { type: "AccountIndex64", ...value } - } - export function AccountKey20( - value: Omit, - ): t.xcm.v1.junction.Junction.AccountKey20 { - return { type: "AccountKey20", ...value } - } - export function PalletInstance( - value: t.xcm.v1.junction.Junction.PalletInstance["value"], - ): t.xcm.v1.junction.Junction.PalletInstance { - return { type: "PalletInstance", value } - } - export function GeneralIndex( - value: t.xcm.v1.junction.Junction.GeneralIndex["value"], - ): t.xcm.v1.junction.Junction.GeneralIndex { - return { type: "GeneralIndex", value } - } - export function GeneralKey( - value: t.xcm.v1.junction.Junction.GeneralKey["value"], - ): t.xcm.v1.junction.Junction.GeneralKey { - return { type: "GeneralKey", value } - } - export function OnlyChild(): t.xcm.v1.junction.Junction.OnlyChild { - return { type: "OnlyChild" } - } - export function Plurality( - value: Omit, - ): t.xcm.v1.junction.Junction.Plurality { - return { type: "Plurality", ...value } - } -} diff --git a/codegen/_output/westend/xcm/v1/mod.ts b/codegen/_output/westend/xcm/v1/mod.ts deleted file mode 100644 index 6630501ad..000000000 --- a/codegen/_output/westend/xcm/v1/mod.ts +++ /dev/null @@ -1,174 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as junction from "./junction.ts" -export * as multiasset from "./multiasset.ts" -export * as multilocation from "./multilocation.ts" -export * as order from "./order.ts" - -export const $response: $.Codec = _codec.$434 - -export const $xcm: $.Codec = _codec.$430 - -export type Response = t.xcm.v1.Response.Assets | t.xcm.v1.Response.Version -export namespace Response { - export interface Assets { - type: "Assets" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface Version { - type: "Version" - value: t.u32 - } - export function Assets(value: t.xcm.v1.Response.Assets["value"]): t.xcm.v1.Response.Assets { - return { type: "Assets", value } - } - export function Version(value: t.xcm.v1.Response.Version["value"]): t.xcm.v1.Response.Version { - return { type: "Version", value } - } -} - -export type Xcm = - | t.xcm.v1.Xcm.WithdrawAsset - | t.xcm.v1.Xcm.ReserveAssetDeposited - | t.xcm.v1.Xcm.ReceiveTeleportedAsset - | t.xcm.v1.Xcm.QueryResponse - | t.xcm.v1.Xcm.TransferAsset - | t.xcm.v1.Xcm.TransferReserveAsset - | t.xcm.v1.Xcm.Transact - | t.xcm.v1.Xcm.HrmpNewChannelOpenRequest - | t.xcm.v1.Xcm.HrmpChannelAccepted - | t.xcm.v1.Xcm.HrmpChannelClosing - | t.xcm.v1.Xcm.RelayedFrom - | t.xcm.v1.Xcm.SubscribeVersion - | t.xcm.v1.Xcm.UnsubscribeVersion -export namespace Xcm { - export interface WithdrawAsset { - type: "WithdrawAsset" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface ReserveAssetDeposited { - type: "ReserveAssetDeposited" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface ReceiveTeleportedAsset { - type: "ReceiveTeleportedAsset" - assets: t.xcm.v1.multiasset.MultiAssets - effects: Array - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v1.Response - } - export interface TransferAsset { - type: "TransferAsset" - assets: t.xcm.v1.multiasset.MultiAssets - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssets - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.u64 - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface RelayedFrom { - type: "RelayedFrom" - who: t.xcm.v1.multilocation.Junctions - message: t.xcm.v1.Xcm - } - export interface SubscribeVersion { - type: "SubscribeVersion" - query_id: t.Compact - max_response_weight: t.Compact - } - export interface UnsubscribeVersion { - type: "UnsubscribeVersion" - } - export function WithdrawAsset( - value: Omit, - ): t.xcm.v1.Xcm.WithdrawAsset { - return { type: "WithdrawAsset", ...value } - } - export function ReserveAssetDeposited( - value: Omit, - ): t.xcm.v1.Xcm.ReserveAssetDeposited { - return { type: "ReserveAssetDeposited", ...value } - } - export function ReceiveTeleportedAsset( - value: Omit, - ): t.xcm.v1.Xcm.ReceiveTeleportedAsset { - return { type: "ReceiveTeleportedAsset", ...value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v1.Xcm.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v1.Xcm.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v1.Xcm.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact(value: Omit): t.xcm.v1.Xcm.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v1.Xcm.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v1.Xcm.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v1.Xcm.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function RelayedFrom( - value: Omit, - ): t.xcm.v1.Xcm.RelayedFrom { - return { type: "RelayedFrom", ...value } - } - export function SubscribeVersion( - value: Omit, - ): t.xcm.v1.Xcm.SubscribeVersion { - return { type: "SubscribeVersion", ...value } - } - export function UnsubscribeVersion(): t.xcm.v1.Xcm.UnsubscribeVersion { - return { type: "UnsubscribeVersion" } - } -} diff --git a/codegen/_output/westend/xcm/v1/multiasset.ts b/codegen/_output/westend/xcm/v1/multiasset.ts deleted file mode 100644 index f73749dc2..000000000 --- a/codegen/_output/westend/xcm/v1/multiasset.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $assetId: $.Codec = _codec.$136 - -export const $assetInstance: $.Codec = _codec.$138 - -export const $fungibility: $.Codec = _codec.$137 - -export const $multiAsset: $.Codec = _codec.$135 - -export const $multiAssetFilter: $.Codec = _codec.$145 - -export const $multiAssets: $.Codec = _codec.$133 - -export const $wildFungibility: $.Codec = _codec.$147 - -export const $wildMultiAsset: $.Codec = _codec.$146 - -export type AssetId = t.xcm.v1.multiasset.AssetId.Concrete | t.xcm.v1.multiasset.AssetId.Abstract -export namespace AssetId { - export interface Concrete { - type: "Concrete" - value: t.xcm.v1.multilocation.MultiLocation - } - export interface Abstract { - type: "Abstract" - value: Uint8Array - } - export function Concrete( - value: t.xcm.v1.multiasset.AssetId.Concrete["value"], - ): t.xcm.v1.multiasset.AssetId.Concrete { - return { type: "Concrete", value } - } - export function Abstract( - value: t.xcm.v1.multiasset.AssetId.Abstract["value"], - ): t.xcm.v1.multiasset.AssetId.Abstract { - return { type: "Abstract", value } - } -} - -export type AssetInstance = - | t.xcm.v1.multiasset.AssetInstance.Undefined - | t.xcm.v1.multiasset.AssetInstance.Index - | t.xcm.v1.multiasset.AssetInstance.Array4 - | t.xcm.v1.multiasset.AssetInstance.Array8 - | t.xcm.v1.multiasset.AssetInstance.Array16 - | t.xcm.v1.multiasset.AssetInstance.Array32 - | t.xcm.v1.multiasset.AssetInstance.Blob -export namespace AssetInstance { - export interface Undefined { - type: "Undefined" - } - export interface Index { - type: "Index" - value: t.Compact - } - export interface Array4 { - type: "Array4" - value: Uint8Array - } - export interface Array8 { - type: "Array8" - value: Uint8Array - } - export interface Array16 { - type: "Array16" - value: Uint8Array - } - export interface Array32 { - type: "Array32" - value: Uint8Array - } - export interface Blob { - type: "Blob" - value: Uint8Array - } - export function Undefined(): t.xcm.v1.multiasset.AssetInstance.Undefined { - return { type: "Undefined" } - } - export function Index( - value: t.xcm.v1.multiasset.AssetInstance.Index["value"], - ): t.xcm.v1.multiasset.AssetInstance.Index { - return { type: "Index", value } - } - export function Array4( - value: t.xcm.v1.multiasset.AssetInstance.Array4["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array4 { - return { type: "Array4", value } - } - export function Array8( - value: t.xcm.v1.multiasset.AssetInstance.Array8["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array8 { - return { type: "Array8", value } - } - export function Array16( - value: t.xcm.v1.multiasset.AssetInstance.Array16["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array16 { - return { type: "Array16", value } - } - export function Array32( - value: t.xcm.v1.multiasset.AssetInstance.Array32["value"], - ): t.xcm.v1.multiasset.AssetInstance.Array32 { - return { type: "Array32", value } - } - export function Blob( - value: t.xcm.v1.multiasset.AssetInstance.Blob["value"], - ): t.xcm.v1.multiasset.AssetInstance.Blob { - return { type: "Blob", value } - } -} - -export type Fungibility = - | t.xcm.v1.multiasset.Fungibility.Fungible - | t.xcm.v1.multiasset.Fungibility.NonFungible -export namespace Fungibility { - export interface Fungible { - type: "Fungible" - value: t.Compact - } - export interface NonFungible { - type: "NonFungible" - value: t.xcm.v1.multiasset.AssetInstance - } - export function Fungible( - value: t.xcm.v1.multiasset.Fungibility.Fungible["value"], - ): t.xcm.v1.multiasset.Fungibility.Fungible { - return { type: "Fungible", value } - } - export function NonFungible( - value: t.xcm.v1.multiasset.Fungibility.NonFungible["value"], - ): t.xcm.v1.multiasset.Fungibility.NonFungible { - return { type: "NonFungible", value } - } -} - -export interface MultiAsset { - id: t.xcm.v1.multiasset.AssetId - fun: t.xcm.v1.multiasset.Fungibility -} - -export function MultiAsset(value: t.xcm.v1.multiasset.MultiAsset) { - return value -} - -export type MultiAssetFilter = - | t.xcm.v1.multiasset.MultiAssetFilter.Definite - | t.xcm.v1.multiasset.MultiAssetFilter.Wild -export namespace MultiAssetFilter { - export interface Definite { - type: "Definite" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface Wild { - type: "Wild" - value: t.xcm.v1.multiasset.WildMultiAsset - } - export function Definite( - value: t.xcm.v1.multiasset.MultiAssetFilter.Definite["value"], - ): t.xcm.v1.multiasset.MultiAssetFilter.Definite { - return { type: "Definite", value } - } - export function Wild( - value: t.xcm.v1.multiasset.MultiAssetFilter.Wild["value"], - ): t.xcm.v1.multiasset.MultiAssetFilter.Wild { - return { type: "Wild", value } - } -} - -export type MultiAssets = Array - -export function MultiAssets(value: t.xcm.v1.multiasset.MultiAssets) { - return value -} - -export type WildFungibility = "Fungible" | "NonFungible" - -export type WildMultiAsset = - | t.xcm.v1.multiasset.WildMultiAsset.All - | t.xcm.v1.multiasset.WildMultiAsset.AllOf -export namespace WildMultiAsset { - export interface All { - type: "All" - } - export interface AllOf { - type: "AllOf" - id: t.xcm.v1.multiasset.AssetId - fun: t.xcm.v1.multiasset.WildFungibility - } - export function All(): t.xcm.v1.multiasset.WildMultiAsset.All { - return { type: "All" } - } - export function AllOf( - value: Omit, - ): t.xcm.v1.multiasset.WildMultiAsset.AllOf { - return { type: "AllOf", ...value } - } -} diff --git a/codegen/_output/westend/xcm/v1/multilocation.ts b/codegen/_output/westend/xcm/v1/multilocation.ts deleted file mode 100644 index 59749c32f..000000000 --- a/codegen/_output/westend/xcm/v1/multilocation.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $junctions: $.Codec = _codec.$123 - -export const $multiLocation: $.Codec = _codec.$122 - -export type Junctions = - | t.xcm.v1.multilocation.Junctions.Here - | t.xcm.v1.multilocation.Junctions.X1 - | t.xcm.v1.multilocation.Junctions.X2 - | t.xcm.v1.multilocation.Junctions.X3 - | t.xcm.v1.multilocation.Junctions.X4 - | t.xcm.v1.multilocation.Junctions.X5 - | t.xcm.v1.multilocation.Junctions.X6 - | t.xcm.v1.multilocation.Junctions.X7 - | t.xcm.v1.multilocation.Junctions.X8 -export namespace Junctions { - export interface Here { - type: "Here" - } - export interface X1 { - type: "X1" - value: t.xcm.v1.junction.Junction - } - export interface X2 { - type: "X2" - value: [t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction] - } - export interface X3 { - type: "X3" - value: [t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction, t.xcm.v1.junction.Junction] - } - export interface X4 { - type: "X4" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X5 { - type: "X5" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X6 { - type: "X6" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X7 { - type: "X7" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export interface X8 { - type: "X8" - value: [ - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - t.xcm.v1.junction.Junction, - ] - } - export function Here(): t.xcm.v1.multilocation.Junctions.Here { - return { type: "Here" } - } - export function X1( - value: t.xcm.v1.multilocation.Junctions.X1["value"], - ): t.xcm.v1.multilocation.Junctions.X1 { - return { type: "X1", value } - } - export function X2( - ...value: t.xcm.v1.multilocation.Junctions.X2["value"] - ): t.xcm.v1.multilocation.Junctions.X2 { - return { type: "X2", value } - } - export function X3( - ...value: t.xcm.v1.multilocation.Junctions.X3["value"] - ): t.xcm.v1.multilocation.Junctions.X3 { - return { type: "X3", value } - } - export function X4( - ...value: t.xcm.v1.multilocation.Junctions.X4["value"] - ): t.xcm.v1.multilocation.Junctions.X4 { - return { type: "X4", value } - } - export function X5( - ...value: t.xcm.v1.multilocation.Junctions.X5["value"] - ): t.xcm.v1.multilocation.Junctions.X5 { - return { type: "X5", value } - } - export function X6( - ...value: t.xcm.v1.multilocation.Junctions.X6["value"] - ): t.xcm.v1.multilocation.Junctions.X6 { - return { type: "X6", value } - } - export function X7( - ...value: t.xcm.v1.multilocation.Junctions.X7["value"] - ): t.xcm.v1.multilocation.Junctions.X7 { - return { type: "X7", value } - } - export function X8( - ...value: t.xcm.v1.multilocation.Junctions.X8["value"] - ): t.xcm.v1.multilocation.Junctions.X8 { - return { type: "X8", value } - } -} - -export interface MultiLocation { - parents: t.u8 - interior: t.xcm.v1.multilocation.Junctions -} - -export function MultiLocation(value: t.xcm.v1.multilocation.MultiLocation) { - return value -} diff --git a/codegen/_output/westend/xcm/v1/order.ts b/codegen/_output/westend/xcm/v1/order.ts deleted file mode 100644 index 84d718dd5..000000000 --- a/codegen/_output/westend/xcm/v1/order.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $order: $.Codec = _codec.$432 - -export type Order = - | t.xcm.v1.order.Order.Noop - | t.xcm.v1.order.Order.DepositAsset - | t.xcm.v1.order.Order.DepositReserveAsset - | t.xcm.v1.order.Order.ExchangeAsset - | t.xcm.v1.order.Order.InitiateReserveWithdraw - | t.xcm.v1.order.Order.InitiateTeleport - | t.xcm.v1.order.Order.QueryHolding - | t.xcm.v1.order.Order.BuyExecution -export namespace Order { - export interface Noop { - type: "Noop" - } - export interface DepositAsset { - type: "DepositAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.u32 - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.u32 - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: t.xcm.v1.multiasset.MultiAssetFilter - receive: t.xcm.v1.multiasset.MultiAssets - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: t.xcm.v1.multiasset.MultiAssetFilter - reserve: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: t.xcm.v1.multiasset.MultiAssetFilter - dest: t.xcm.v1.multilocation.MultiLocation - effects: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - assets: t.xcm.v1.multiasset.MultiAssetFilter - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v1.multiasset.MultiAsset - weight: t.u64 - debt: t.u64 - halt_on_error: boolean - instructions: Array - } - export function Noop(): t.xcm.v1.order.Order.Noop { - return { type: "Noop" } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v1.order.Order.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v1.order.Order.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v1.order.Order.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v1.order.Order.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v1.order.Order.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v1.order.Order.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v1.order.Order.BuyExecution { - return { type: "BuyExecution", ...value } - } -} diff --git a/codegen/_output/westend/xcm/v2/mod.ts b/codegen/_output/westend/xcm/v2/mod.ts deleted file mode 100644 index d0e939e3e..000000000 --- a/codegen/_output/westend/xcm/v2/mod.ts +++ /dev/null @@ -1,366 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export * as traits from "./traits.ts" - -export const $instruction: $.Codec = _codec.$132 - -export const $response: $.Codec = _codec.$140 - -export const $weightLimit: $.Codec = _codec.$148 - -export type Instruction = - | t.xcm.v2.Instruction.WithdrawAsset - | t.xcm.v2.Instruction.ReserveAssetDeposited - | t.xcm.v2.Instruction.ReceiveTeleportedAsset - | t.xcm.v2.Instruction.QueryResponse - | t.xcm.v2.Instruction.TransferAsset - | t.xcm.v2.Instruction.TransferReserveAsset - | t.xcm.v2.Instruction.Transact - | t.xcm.v2.Instruction.HrmpNewChannelOpenRequest - | t.xcm.v2.Instruction.HrmpChannelAccepted - | t.xcm.v2.Instruction.HrmpChannelClosing - | t.xcm.v2.Instruction.ClearOrigin - | t.xcm.v2.Instruction.DescendOrigin - | t.xcm.v2.Instruction.ReportError - | t.xcm.v2.Instruction.DepositAsset - | t.xcm.v2.Instruction.DepositReserveAsset - | t.xcm.v2.Instruction.ExchangeAsset - | t.xcm.v2.Instruction.InitiateReserveWithdraw - | t.xcm.v2.Instruction.InitiateTeleport - | t.xcm.v2.Instruction.QueryHolding - | t.xcm.v2.Instruction.BuyExecution - | t.xcm.v2.Instruction.RefundSurplus - | t.xcm.v2.Instruction.SetErrorHandler - | t.xcm.v2.Instruction.SetAppendix - | t.xcm.v2.Instruction.ClearError - | t.xcm.v2.Instruction.ClaimAsset - | t.xcm.v2.Instruction.Trap - | t.xcm.v2.Instruction.SubscribeVersion - | t.xcm.v2.Instruction.UnsubscribeVersion -export namespace Instruction { - export interface WithdrawAsset { - type: "WithdrawAsset" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ReserveAssetDeposited { - type: "ReserveAssetDeposited" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ReceiveTeleportedAsset { - type: "ReceiveTeleportedAsset" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface QueryResponse { - type: "QueryResponse" - query_id: t.Compact - response: t.xcm.v2.Response - max_weight: t.Compact - } - export interface TransferAsset { - type: "TransferAsset" - assets: t.xcm.v1.multiasset.MultiAssets - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface TransferReserveAsset { - type: "TransferReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssets - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface Transact { - type: "Transact" - origin_type: t.xcm.v0.OriginKind - require_weight_at_most: t.Compact - call: { encoded: Uint8Array } - } - export interface HrmpNewChannelOpenRequest { - type: "HrmpNewChannelOpenRequest" - sender: t.Compact - max_message_size: t.Compact - max_capacity: t.Compact - } - export interface HrmpChannelAccepted { - type: "HrmpChannelAccepted" - recipient: t.Compact - } - export interface HrmpChannelClosing { - type: "HrmpChannelClosing" - initiator: t.Compact - sender: t.Compact - recipient: t.Compact - } - export interface ClearOrigin { - type: "ClearOrigin" - } - export interface DescendOrigin { - type: "DescendOrigin" - value: t.xcm.v1.multilocation.Junctions - } - export interface ReportError { - type: "ReportError" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - max_response_weight: t.Compact - } - export interface DepositAsset { - type: "DepositAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.Compact - beneficiary: t.xcm.v1.multilocation.MultiLocation - } - export interface DepositReserveAsset { - type: "DepositReserveAsset" - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_assets: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface ExchangeAsset { - type: "ExchangeAsset" - give: t.xcm.v1.multiasset.MultiAssetFilter - receive: t.xcm.v1.multiasset.MultiAssets - } - export interface InitiateReserveWithdraw { - type: "InitiateReserveWithdraw" - assets: t.xcm.v1.multiasset.MultiAssetFilter - reserve: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface InitiateTeleport { - type: "InitiateTeleport" - assets: t.xcm.v1.multiasset.MultiAssetFilter - dest: t.xcm.v1.multilocation.MultiLocation - xcm: Array - } - export interface QueryHolding { - type: "QueryHolding" - query_id: t.Compact - dest: t.xcm.v1.multilocation.MultiLocation - assets: t.xcm.v1.multiasset.MultiAssetFilter - max_response_weight: t.Compact - } - export interface BuyExecution { - type: "BuyExecution" - fees: t.xcm.v1.multiasset.MultiAsset - weight_limit: t.xcm.v2.WeightLimit - } - export interface RefundSurplus { - type: "RefundSurplus" - } - export interface SetErrorHandler { - type: "SetErrorHandler" - value: Array - } - export interface SetAppendix { - type: "SetAppendix" - value: Array - } - export interface ClearError { - type: "ClearError" - } - export interface ClaimAsset { - type: "ClaimAsset" - assets: t.xcm.v1.multiasset.MultiAssets - ticket: t.xcm.v1.multilocation.MultiLocation - } - export interface Trap { - type: "Trap" - value: t.Compact - } - export interface SubscribeVersion { - type: "SubscribeVersion" - query_id: t.Compact - max_response_weight: t.Compact - } - export interface UnsubscribeVersion { - type: "UnsubscribeVersion" - } - export function WithdrawAsset( - value: t.xcm.v2.Instruction.WithdrawAsset["value"], - ): t.xcm.v2.Instruction.WithdrawAsset { - return { type: "WithdrawAsset", value } - } - export function ReserveAssetDeposited( - value: t.xcm.v2.Instruction.ReserveAssetDeposited["value"], - ): t.xcm.v2.Instruction.ReserveAssetDeposited { - return { type: "ReserveAssetDeposited", value } - } - export function ReceiveTeleportedAsset( - value: t.xcm.v2.Instruction.ReceiveTeleportedAsset["value"], - ): t.xcm.v2.Instruction.ReceiveTeleportedAsset { - return { type: "ReceiveTeleportedAsset", value } - } - export function QueryResponse( - value: Omit, - ): t.xcm.v2.Instruction.QueryResponse { - return { type: "QueryResponse", ...value } - } - export function TransferAsset( - value: Omit, - ): t.xcm.v2.Instruction.TransferAsset { - return { type: "TransferAsset", ...value } - } - export function TransferReserveAsset( - value: Omit, - ): t.xcm.v2.Instruction.TransferReserveAsset { - return { type: "TransferReserveAsset", ...value } - } - export function Transact( - value: Omit, - ): t.xcm.v2.Instruction.Transact { - return { type: "Transact", ...value } - } - export function HrmpNewChannelOpenRequest( - value: Omit, - ): t.xcm.v2.Instruction.HrmpNewChannelOpenRequest { - return { type: "HrmpNewChannelOpenRequest", ...value } - } - export function HrmpChannelAccepted( - value: Omit, - ): t.xcm.v2.Instruction.HrmpChannelAccepted { - return { type: "HrmpChannelAccepted", ...value } - } - export function HrmpChannelClosing( - value: Omit, - ): t.xcm.v2.Instruction.HrmpChannelClosing { - return { type: "HrmpChannelClosing", ...value } - } - export function ClearOrigin(): t.xcm.v2.Instruction.ClearOrigin { - return { type: "ClearOrigin" } - } - export function DescendOrigin( - value: t.xcm.v2.Instruction.DescendOrigin["value"], - ): t.xcm.v2.Instruction.DescendOrigin { - return { type: "DescendOrigin", value } - } - export function ReportError( - value: Omit, - ): t.xcm.v2.Instruction.ReportError { - return { type: "ReportError", ...value } - } - export function DepositAsset( - value: Omit, - ): t.xcm.v2.Instruction.DepositAsset { - return { type: "DepositAsset", ...value } - } - export function DepositReserveAsset( - value: Omit, - ): t.xcm.v2.Instruction.DepositReserveAsset { - return { type: "DepositReserveAsset", ...value } - } - export function ExchangeAsset( - value: Omit, - ): t.xcm.v2.Instruction.ExchangeAsset { - return { type: "ExchangeAsset", ...value } - } - export function InitiateReserveWithdraw( - value: Omit, - ): t.xcm.v2.Instruction.InitiateReserveWithdraw { - return { type: "InitiateReserveWithdraw", ...value } - } - export function InitiateTeleport( - value: Omit, - ): t.xcm.v2.Instruction.InitiateTeleport { - return { type: "InitiateTeleport", ...value } - } - export function QueryHolding( - value: Omit, - ): t.xcm.v2.Instruction.QueryHolding { - return { type: "QueryHolding", ...value } - } - export function BuyExecution( - value: Omit, - ): t.xcm.v2.Instruction.BuyExecution { - return { type: "BuyExecution", ...value } - } - export function RefundSurplus(): t.xcm.v2.Instruction.RefundSurplus { - return { type: "RefundSurplus" } - } - export function SetErrorHandler( - value: t.xcm.v2.Instruction.SetErrorHandler["value"], - ): t.xcm.v2.Instruction.SetErrorHandler { - return { type: "SetErrorHandler", value } - } - export function SetAppendix( - value: t.xcm.v2.Instruction.SetAppendix["value"], - ): t.xcm.v2.Instruction.SetAppendix { - return { type: "SetAppendix", value } - } - export function ClearError(): t.xcm.v2.Instruction.ClearError { - return { type: "ClearError" } - } - export function ClaimAsset( - value: Omit, - ): t.xcm.v2.Instruction.ClaimAsset { - return { type: "ClaimAsset", ...value } - } - export function Trap(value: t.xcm.v2.Instruction.Trap["value"]): t.xcm.v2.Instruction.Trap { - return { type: "Trap", value } - } - export function SubscribeVersion( - value: Omit, - ): t.xcm.v2.Instruction.SubscribeVersion { - return { type: "SubscribeVersion", ...value } - } - export function UnsubscribeVersion(): t.xcm.v2.Instruction.UnsubscribeVersion { - return { type: "UnsubscribeVersion" } - } -} - -export type Response = - | t.xcm.v2.Response.Null - | t.xcm.v2.Response.Assets - | t.xcm.v2.Response.ExecutionResult - | t.xcm.v2.Response.Version -export namespace Response { - export interface Null { - type: "Null" - } - export interface Assets { - type: "Assets" - value: t.xcm.v1.multiasset.MultiAssets - } - export interface ExecutionResult { - type: "ExecutionResult" - value: [t.u32, t.xcm.v2.traits.Error] | undefined - } - export interface Version { - type: "Version" - value: t.u32 - } - export function Null(): t.xcm.v2.Response.Null { - return { type: "Null" } - } - export function Assets(value: t.xcm.v2.Response.Assets["value"]): t.xcm.v2.Response.Assets { - return { type: "Assets", value } - } - export function ExecutionResult( - value: t.xcm.v2.Response.ExecutionResult["value"], - ): t.xcm.v2.Response.ExecutionResult { - return { type: "ExecutionResult", value } - } - export function Version(value: t.xcm.v2.Response.Version["value"]): t.xcm.v2.Response.Version { - return { type: "Version", value } - } -} - -export type WeightLimit = t.xcm.v2.WeightLimit.Unlimited | t.xcm.v2.WeightLimit.Limited -export namespace WeightLimit { - export interface Unlimited { - type: "Unlimited" - } - export interface Limited { - type: "Limited" - value: t.Compact - } - export function Unlimited(): t.xcm.v2.WeightLimit.Unlimited { - return { type: "Unlimited" } - } - export function Limited( - value: t.xcm.v2.WeightLimit.Limited["value"], - ): t.xcm.v2.WeightLimit.Limited { - return { type: "Limited", value } - } -} diff --git a/codegen/_output/westend/xcm/v2/traits.ts b/codegen/_output/westend/xcm/v2/traits.ts deleted file mode 100644 index a2a5901e8..000000000 --- a/codegen/_output/westend/xcm/v2/traits.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { $ } from "../../capi.ts" -import * as _codec from "../../codecs.ts" -import type * as t from "../../mod.ts" - -export const $error: $.Codec = _codec.$110 - -export const $outcome: $.Codec = _codec.$109 - -export type Error = - | t.xcm.v2.traits.Error.Overflow - | t.xcm.v2.traits.Error.Unimplemented - | t.xcm.v2.traits.Error.UntrustedReserveLocation - | t.xcm.v2.traits.Error.UntrustedTeleportLocation - | t.xcm.v2.traits.Error.MultiLocationFull - | t.xcm.v2.traits.Error.MultiLocationNotInvertible - | t.xcm.v2.traits.Error.BadOrigin - | t.xcm.v2.traits.Error.InvalidLocation - | t.xcm.v2.traits.Error.AssetNotFound - | t.xcm.v2.traits.Error.FailedToTransactAsset - | t.xcm.v2.traits.Error.NotWithdrawable - | t.xcm.v2.traits.Error.LocationCannotHold - | t.xcm.v2.traits.Error.ExceedsMaxMessageSize - | t.xcm.v2.traits.Error.DestinationUnsupported - | t.xcm.v2.traits.Error.Transport - | t.xcm.v2.traits.Error.Unroutable - | t.xcm.v2.traits.Error.UnknownClaim - | t.xcm.v2.traits.Error.FailedToDecode - | t.xcm.v2.traits.Error.MaxWeightInvalid - | t.xcm.v2.traits.Error.NotHoldingFees - | t.xcm.v2.traits.Error.TooExpensive - | t.xcm.v2.traits.Error.Trap - | t.xcm.v2.traits.Error.UnhandledXcmVersion - | t.xcm.v2.traits.Error.WeightLimitReached - | t.xcm.v2.traits.Error.Barrier - | t.xcm.v2.traits.Error.WeightNotComputable -export namespace Error { - export interface Overflow { - type: "Overflow" - } - export interface Unimplemented { - type: "Unimplemented" - } - export interface UntrustedReserveLocation { - type: "UntrustedReserveLocation" - } - export interface UntrustedTeleportLocation { - type: "UntrustedTeleportLocation" - } - export interface MultiLocationFull { - type: "MultiLocationFull" - } - export interface MultiLocationNotInvertible { - type: "MultiLocationNotInvertible" - } - export interface BadOrigin { - type: "BadOrigin" - } - export interface InvalidLocation { - type: "InvalidLocation" - } - export interface AssetNotFound { - type: "AssetNotFound" - } - export interface FailedToTransactAsset { - type: "FailedToTransactAsset" - } - export interface NotWithdrawable { - type: "NotWithdrawable" - } - export interface LocationCannotHold { - type: "LocationCannotHold" - } - export interface ExceedsMaxMessageSize { - type: "ExceedsMaxMessageSize" - } - export interface DestinationUnsupported { - type: "DestinationUnsupported" - } - export interface Transport { - type: "Transport" - } - export interface Unroutable { - type: "Unroutable" - } - export interface UnknownClaim { - type: "UnknownClaim" - } - export interface FailedToDecode { - type: "FailedToDecode" - } - export interface MaxWeightInvalid { - type: "MaxWeightInvalid" - } - export interface NotHoldingFees { - type: "NotHoldingFees" - } - export interface TooExpensive { - type: "TooExpensive" - } - export interface Trap { - type: "Trap" - value: t.u64 - } - export interface UnhandledXcmVersion { - type: "UnhandledXcmVersion" - } - export interface WeightLimitReached { - type: "WeightLimitReached" - value: t.u64 - } - export interface Barrier { - type: "Barrier" - } - export interface WeightNotComputable { - type: "WeightNotComputable" - } - export function Overflow(): t.xcm.v2.traits.Error.Overflow { - return { type: "Overflow" } - } - export function Unimplemented(): t.xcm.v2.traits.Error.Unimplemented { - return { type: "Unimplemented" } - } - export function UntrustedReserveLocation(): t.xcm.v2.traits.Error.UntrustedReserveLocation { - return { type: "UntrustedReserveLocation" } - } - export function UntrustedTeleportLocation(): t.xcm.v2.traits.Error.UntrustedTeleportLocation { - return { type: "UntrustedTeleportLocation" } - } - export function MultiLocationFull(): t.xcm.v2.traits.Error.MultiLocationFull { - return { type: "MultiLocationFull" } - } - export function MultiLocationNotInvertible(): t.xcm.v2.traits.Error.MultiLocationNotInvertible { - return { type: "MultiLocationNotInvertible" } - } - export function BadOrigin(): t.xcm.v2.traits.Error.BadOrigin { - return { type: "BadOrigin" } - } - export function InvalidLocation(): t.xcm.v2.traits.Error.InvalidLocation { - return { type: "InvalidLocation" } - } - export function AssetNotFound(): t.xcm.v2.traits.Error.AssetNotFound { - return { type: "AssetNotFound" } - } - export function FailedToTransactAsset(): t.xcm.v2.traits.Error.FailedToTransactAsset { - return { type: "FailedToTransactAsset" } - } - export function NotWithdrawable(): t.xcm.v2.traits.Error.NotWithdrawable { - return { type: "NotWithdrawable" } - } - export function LocationCannotHold(): t.xcm.v2.traits.Error.LocationCannotHold { - return { type: "LocationCannotHold" } - } - export function ExceedsMaxMessageSize(): t.xcm.v2.traits.Error.ExceedsMaxMessageSize { - return { type: "ExceedsMaxMessageSize" } - } - export function DestinationUnsupported(): t.xcm.v2.traits.Error.DestinationUnsupported { - return { type: "DestinationUnsupported" } - } - export function Transport(): t.xcm.v2.traits.Error.Transport { - return { type: "Transport" } - } - export function Unroutable(): t.xcm.v2.traits.Error.Unroutable { - return { type: "Unroutable" } - } - export function UnknownClaim(): t.xcm.v2.traits.Error.UnknownClaim { - return { type: "UnknownClaim" } - } - export function FailedToDecode(): t.xcm.v2.traits.Error.FailedToDecode { - return { type: "FailedToDecode" } - } - export function MaxWeightInvalid(): t.xcm.v2.traits.Error.MaxWeightInvalid { - return { type: "MaxWeightInvalid" } - } - export function NotHoldingFees(): t.xcm.v2.traits.Error.NotHoldingFees { - return { type: "NotHoldingFees" } - } - export function TooExpensive(): t.xcm.v2.traits.Error.TooExpensive { - return { type: "TooExpensive" } - } - export function Trap(value: t.xcm.v2.traits.Error.Trap["value"]): t.xcm.v2.traits.Error.Trap { - return { type: "Trap", value } - } - export function UnhandledXcmVersion(): t.xcm.v2.traits.Error.UnhandledXcmVersion { - return { type: "UnhandledXcmVersion" } - } - export function WeightLimitReached( - value: t.xcm.v2.traits.Error.WeightLimitReached["value"], - ): t.xcm.v2.traits.Error.WeightLimitReached { - return { type: "WeightLimitReached", value } - } - export function Barrier(): t.xcm.v2.traits.Error.Barrier { - return { type: "Barrier" } - } - export function WeightNotComputable(): t.xcm.v2.traits.Error.WeightNotComputable { - return { type: "WeightNotComputable" } - } -} - -export type Outcome = - | t.xcm.v2.traits.Outcome.Complete - | t.xcm.v2.traits.Outcome.Incomplete - | t.xcm.v2.traits.Outcome.Error -export namespace Outcome { - export interface Complete { - type: "Complete" - value: t.u64 - } - export interface Incomplete { - type: "Incomplete" - value: [t.u64, t.xcm.v2.traits.Error] - } - export interface Error { - type: "Error" - value: t.xcm.v2.traits.Error - } - export function Complete( - value: t.xcm.v2.traits.Outcome.Complete["value"], - ): t.xcm.v2.traits.Outcome.Complete { - return { type: "Complete", value } - } - export function Incomplete( - ...value: t.xcm.v2.traits.Outcome.Incomplete["value"] - ): t.xcm.v2.traits.Outcome.Incomplete { - return { type: "Incomplete", value } - } - export function Error( - value: t.xcm.v2.traits.Outcome.Error["value"], - ): t.xcm.v2.traits.Outcome.Error { - return { type: "Error", value } - } -} diff --git a/codegen/utils.ts b/codegen/utils.ts index a01cff7a2..5548fe5b4 100644 --- a/codegen/utils.ts +++ b/codegen/utils.ts @@ -26,7 +26,9 @@ export type Decl = { path: string; code: S } export function getPath(tys: M.Ty[], ty: M.Ty): string | null { if (ty.type === "Struct" && ty.fields.length === 1 && ty.params.length) return null - return _getPath(ty) + const path = _getPath(ty) + if (path) return "types." + path + return null function _getPath(ty: M.Ty): string | null { if (ty.type === "Primitive") { diff --git a/frame_metadata/Extrinsic.ts b/frame_metadata/Extrinsic.ts index 90a7dd9bb..fa65a5468 100644 --- a/frame_metadata/Extrinsic.ts +++ b/frame_metadata/Extrinsic.ts @@ -7,8 +7,11 @@ import { $null, DeriveCodec } from "./Codec.ts" import { Metadata } from "./Metadata.ts" // TODO: revisit -import { $multiSignature, MultiSignature } from "../codegen/_output/polkadot/sp_runtime/mod.ts" -import { MultiAddress } from "../codegen/_output/polkadot/sp_runtime/multiaddress.ts" +import { + $multiSignature, + MultiSignature, +} from "../codegen/_output/polkadot/types/sp_runtime/mod.ts" +import { MultiAddress } from "../codegen/_output/polkadot/types/sp_runtime/multiaddress.ts" export { MultiAddress, MultiSignature }