Skip to content

System


Calls


kill_prefix

Kill all storage items with a key that starts with the given prefix.

NOTE: We rely on the Root origin to provide us the number of subkeys under the prefix we are removing to accurately calculate the weight of this function.

Attributes

Name Type
prefix Key
subkeys u32

Python

call = substrate.compose_call(
    'System', 'kill_prefix', {'prefix': 'Bytes', 'subkeys': 'u32'}
)

kill_storage

Kill some items from storage.

Attributes

Name Type
keys Vec<Key>

Python

call = substrate.compose_call(
    'System', 'kill_storage', {'keys': ['Bytes']}
)

remark

Make some on-chain remark.

## Complexity - O(1)

Attributes

Name Type
remark Vec<u8>

Python

call = substrate.compose_call(
    'System', 'remark', {'remark': 'Bytes'}
)

remark_with_event

Make some on-chain remark and emit event.

Attributes

Name Type
remark Vec<u8>

Python

call = substrate.compose_call(
    'System', 'remark_with_event', {'remark': 'Bytes'}
)

set_code

Set the new runtime code.

## Complexity - O(C + S) where C length of code and S complexity of can_set_code

Attributes

Name Type
code Vec<u8>

Python

call = substrate.compose_call(
    'System', 'set_code', {'code': 'Bytes'}
)

set_code_without_checks

Set the new runtime code without doing any checks of the given code.

## Complexity - O(C) where C length of code

Attributes

Name Type
code Vec<u8>

Python

call = substrate.compose_call(
    'System', 'set_code_without_checks', {'code': 'Bytes'}
)

set_heap_pages

Set the number of pages in the WebAssembly environment&#x27;s heap.

Attributes

Name Type
pages u64

Python

call = substrate.compose_call(
    'System', 'set_heap_pages', {'pages': 'u64'}
)

set_storage

Set some items of storage.

Attributes

Name Type
items Vec<KeyValue>

Python

call = substrate.compose_call(
    'System', 'set_storage', {'items': [('Bytes', 'Bytes')]}
)

Events


CodeUpdated

:code was updated.

Attributes

No attributes


ExtrinsicFailed

An extrinsic failed.

Attributes

Name Type Composition
dispatch_error DispatchError {'Other': None, 'CannotLookup': None, 'BadOrigin': None, 'Module': {'index': 'u8', 'error': '[u8; 4]'}, 'ConsumerRemaining': None, 'NoProviders': None, 'TooManyConsumers': None, 'Token': ('NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported'), 'Arithmetic': ('Underflow', 'Overflow', 'DivisionByZero'), 'Transactional': ('LimitReached', 'NoLayer'), 'Exhausted': None, 'Corruption': None, 'Unavailable': None}
dispatch_info DispatchInfo {'weight': {'ref_time': 'u64', 'proof_size': 'u64'}, 'class': ('Normal', 'Operational', 'Mandatory'), 'pays_fee': ('Yes', 'No')}

ExtrinsicSuccess

An extrinsic completed successfully.

Attributes

Name Type Composition
dispatch_info DispatchInfo {'weight': {'ref_time': 'u64', 'proof_size': 'u64'}, 'class': ('Normal', 'Operational', 'Mandatory'), 'pays_fee': ('Yes', 'No')}

KilledAccount

An account was reaped.

Attributes

Name Type Composition
account T::AccountId AccountId

NewAccount

A new account was created.

Attributes

Name Type Composition
account T::AccountId AccountId

Remarked

On on-chain remark happened.

Attributes

Name Type Composition
sender T::AccountId AccountId
hash T::Hash scale_info::11

Storage functions


Account

The full account information for a particular account ID.

Python

result = substrate.query(
    'System', 'Account', ['AccountId']
)

Return value

{
    'consumers': 'u32',
    'data': {
        'fee_frozen': 'u128',
        'free': 'u128',
        'misc_frozen': 'u128',
        'reserved': 'u128',
    },
    'nonce': 'u32',
    'providers': 'u32',
    'sufficients': 'u32',
}

AllExtrinsicsLen

Total length (in bytes) for all extrinsics put together, for the current block.

Python

result = substrate.query(
    'System', 'AllExtrinsicsLen', []
)

Return value

'u32'

BlockHash

Map of block numbers to block hashes.

Python

result = substrate.query(
    'System', 'BlockHash', ['u32']
)

Return value

'scale_info::11'

BlockWeight

The current weight for the block.

Python

result = substrate.query(
    'System', 'BlockWeight', []
)

Return value

{
    'mandatory': {'proof_size': 'u64', 'ref_time': 'u64'},
    'normal': {'proof_size': 'u64', 'ref_time': 'u64'},
    'operational': {'proof_size': 'u64', 'ref_time': 'u64'},
}

Digest

Digest of the current block, also part of the block header.

Python

result = substrate.query(
    'System', 'Digest', []
)

Return value

{
    'logs': [
        {
            'Other': 'Bytes',
            None: None,
            'Consensus': ('[u8; 4]', 'Bytes'),
            'PreRuntime': ('[u8; 4]', 'Bytes'),
            'RuntimeEnvironmentUpdated': None,
            'Seal': ('[u8; 4]', 'Bytes'),
        },
    ],
}

EventCount

The number of events in the Events&lt;T&gt; list.

Python

result = substrate.query(
    'System', 'EventCount', []
)

Return value

'u32'

EventTopics

Mapping between a topic (represented by T::Hash) and a vector of indexes of events in the &lt;Events&lt;T&gt;&gt; list.

All topic vectors have deterministic storage locations depending on the topic. This allows light-clients to leverage the changes trie storage tracking mechanism and in case of changes fetch the list of events of interest.

The value has the type (T::BlockNumber, EventIndex) because if we used only just the EventIndex then in case if the topic has the same contents on the next block no notification will be triggered thus the event might be lost.

Python

result = substrate.query(
    'System', 'EventTopics', ['scale_info::11']
)

Return value

[('u32', 'u32')]

Events

Events deposited for the current block.

NOTE: The item is unbound and should therefore never be read on chain. It could otherwise inflate the PoV size of a block.

Events have a large in-memory size. Box the events to not go out-of-memory just in case someone still reads them from within the runtime.

Python

result = substrate.query(
    'System', 'Events', []
)

Return value

[
    {
        'event': {
            'AppWorkingGroup': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'ArgoBridge': {
                'BridgeConfigUpdated': {
                    'bridging_fee': (None, 'u128'),
                    'operator_account': (None, 'AccountId'),
                    'pauser_accounts': (None, ['AccountId']),
                    'remote_chains': (None, ['u32']),
                    'thawn_duration': (None, 'u32'),
                },
                'BridgePaused': 'AccountId',
                'BridgeThawnFinished': None,
                'BridgeThawnStarted': ('AccountId', 'u32'),
                'InboundTransferFinalized': (
                    'scale_info::261',
                    'AccountId',
                    'u128',
                ),
                'OutboundTransferRequested': (
                    'u64',
                    'AccountId',
                    'scale_info::260',
                    'u128',
                    'u128',
                ),
                'OutboundTransferReverted': (
                    'u64',
                    'AccountId',
                    'u128',
                    'Bytes',
                ),
            },
            'Bounty': {
                'BountyContributorRemarked': (
                    'scale_info::95',
                    'u64',
                    'Bytes',
                ),
                'BountyCreated': ('u64', 'scale_info::94', 'Bytes'),
                'BountyCreatorCherryWithdrawal': ('u64', 'scale_info::95'),
                'BountyCreatorOracleRewardWithdrawal': (
                    'u64',
                    'scale_info::95',
                ),
                'BountyCreatorRemarked': ('scale_info::95', 'u64', 'Bytes'),
                'BountyEntrantRemarked': ('u64', 'u64', 'u64', 'Bytes'),
                'BountyFunded': ('u64', 'scale_info::95', 'u128'),
                'BountyFundingWithdrawal': ('u64', 'scale_info::95'),
                'BountyMaxFundingReached': 'u64',
                'BountyOracleRemarked': ('scale_info::95', 'u64', 'Bytes'),
                'BountyOracleRewardWithdrawal': (
                    'u64',
                    'scale_info::95',
                    'u128',
                ),
                'BountyOracleSwitched': (
                    'u64',
                    'scale_info::95',
                    'scale_info::95',
                    'scale_info::95',
                ),
                'BountyRemoved': 'u64',
                'BountyTerminated': (
                    'u64',
                    'scale_info::95',
                    'scale_info::95',
                    'scale_info::95',
                ),
                'CreatorStateBloatBondWithdrawn': (
                    'u64',
                    'scale_info::95',
                    'u128',
                ),
                'FunderStateBloatBondWithdrawn': (
                    'u64',
                    'scale_info::95',
                    'u128',
                ),
                'OracleJudgmentSubmitted': (
                    'u64',
                    'scale_info::95',
                    'scale_info::98',
                    'Bytes',
                ),
                'WorkEntrantFundsWithdrawn': ('u64', 'u64', 'u64'),
                'WorkEntrantStakeSlashed': ('u64', 'u64', 'AccountId', 'u128'),
                'WorkEntrantStakeUnlocked': ('u64', 'u64', 'AccountId'),
                'WorkEntryAnnounced': (
                    'u64',
                    'u64',
                    'u64',
                    'AccountId',
                    'Bytes',
                ),
                'WorkSubmissionPeriodEnded': ('u64', 'scale_info::95'),
                'WorkSubmitted': ('u64', 'u64', 'u64', 'Bytes'),
            },
            'Constitution': {'ConstutionAmended': ('scale_info::11', 'Bytes')},
            'Content': {
                'AuctionBidCanceled': ('u64', 'u64'),
                'AuctionBidMade': ('u64', 'u64', 'u128', (None, 'u64')),
                'AuctionCanceled': ('scale_info::106', 'u64'),
                'BidMadeCompletingAuction': ('u64', 'u64', (None, 'u64')),
                'BuyNowCanceled': ('u64', 'scale_info::106'),
                'BuyNowPriceUpdated': ('u64', 'scale_info::106', 'u128'),
                'CancelChannelTransfer': ('u64', 'scale_info::106'),
                'ChannelAgentRemarked': ('scale_info::106', 'u64', 'Bytes'),
                'ChannelAssetsDeletedByModerator': (
                    'scale_info::106',
                    'u64',
                    'scale_info::91',
                    'Bytes',
                ),
                'ChannelAssetsRemoved': (
                    'scale_info::106',
                    'u64',
                    'scale_info::91',
                    'scale_info::107',
                ),
                'ChannelCreated': (
                    'u64',
                    'scale_info::107',
                    'scale_info::134',
                    'AccountId',
                ),
                'ChannelDeleted': ('scale_info::106', 'u64'),
                'ChannelFundsWithdrawn': (
                    'scale_info::106',
                    'u64',
                    'u128',
                    'scale_info::162',
                ),
                'ChannelNftLimitUpdated': (
                    'scale_info::106',
                    'scale_info::163',
                    'u64',
                    'u64',
                ),
                'ChannelOwnerRemarked': ('u64', 'Bytes'),
                'ChannelPausedFeaturesUpdatedByModerator': (
                    'scale_info::106',
                    'u64',
                    'scale_info::119',
                    'Bytes',
                ),
                'ChannelPayoutsUpdated': ('scale_info::157', (None, 'u64'), 'AccountId'),
                'ChannelPrivilegeLevelUpdated': ('u64', 'u8'),
                'ChannelRewardClaimedAndWithdrawn': (
                    'scale_info::106',
                    'u64',
                    'u128',
                    'scale_info::162',
                ),
                'ChannelRewardUpdated': ('u128', 'u128', 'u64'),
                'ChannelStateBloatBondValueUpdated': 'u128',
                'ChannelTransferAccepted': ('u64', 'scale_info::156'),
                'ChannelUpdated': (
                    'scale_info::106',
                    'u64',
                    'scale_info::145',
                    'scale_info::91',
                ),
                'ChannelVisibilitySetByModerator': (
                    'scale_info::106',
                    'u64',
                    'bool',
                    'Bytes',
                ),
                'CreatorTokenIssued': ('scale_info::106', 'u64', 'u64'),
                'CreatorTokenIssuerRemarked': ('u64', 'u64', 'Bytes'),
                'CuratorAdded': ('u64', 'u64', 'scale_info::112'),
                'CuratorGroupCreated': 'u64',
                'CuratorGroupPermissionsUpdated': ('u64', 'scale_info::150'),
                'CuratorGroupStatusSet': ('u64', 'bool'),
                'CuratorRemoved': ('u64', 'u64'),
                'EnglishAuctionSettled': ('u64', 'AccountId', 'u64'),
                'EnglishAuctionStarted': (
                    'scale_info::106',
                    'u64',
                    'scale_info::128',
                ),
                'GlobalNftLimitUpdated': ('scale_info::163', 'u64'),
                'InitializedChannelTransfer': (
                    'u64',
                    'scale_info::106',
                    'scale_info::124',
                ),
                'NftBought': ('u64', 'u64'),
                'NftDestroyed': ('scale_info::106', 'u64'),
                'NftIssued': ('scale_info::106', 'u64', 'scale_info::131'),
                'NftOwnerRemarked': ('scale_info::106', 'u64', 'Bytes'),
                'NftSellOrderMade': ('u64', 'scale_info::106', 'u128'),
                'NftSlingedBackToTheOriginalArtist': (
                    'u64',
                    'scale_info::106',
                ),
                'OfferAccepted': 'u64',
                'OfferCanceled': ('u64', 'scale_info::106'),
                'OfferStarted': (
                    'u64',
                    'scale_info::106',
                    'u64',
                    (None, 'u128'),
                ),
                'OpenAuctionBidAccepted': (
                    'scale_info::106',
                    'u64',
                    'u64',
                    'u128',
                ),
                'OpenAuctionStarted': (
                    'scale_info::106',
                    'u64',
                    'scale_info::130',
                    'u64',
                ),
                'ToggledNftLimits': 'bool',
                'VideoAssetsDeletedByModerator': (
                    'scale_info::106',
                    'u64',
                    'scale_info::91',
                    'bool',
                    'Bytes',
                ),
                'VideoCreated': (
                    'scale_info::106',
                    'u64',
                    'u64',
                    'scale_info::147',
                    'scale_info::91',
                ),
                'VideoDeleted': ('scale_info::106', 'u64'),
                'VideoStateBloatBondValueUpdated': 'u128',
                'VideoUpdated': (
                    'scale_info::106',
                    'u64',
                    'scale_info::149',
                    'scale_info::91',
                ),
                'VideoVisibilitySetByModerator': (
                    'scale_info::106',
                    'u64',
                    'bool',
                    'Bytes',
                ),
            },
            'ContentWorkingGroup': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'Council': {
                'AnnouncingPeriodStarted': 'u32',
                'BudgetBalanceSet': 'u128',
                'BudgetIncrementUpdated': 'u128',
                'BudgetRefill': 'u128',
                'BudgetRefillPlanned': 'u32',
                'CandidacyNoteSet': ('u64', 'Bytes'),
                'CandidacyStakeRelease': 'u64',
                'CandidacyWithdraw': 'u64',
                'CandidateRemarked': ('u64', 'Bytes'),
                'CouncilBudgetDecreased': 'u128',
                'CouncilBudgetFunded': ('u64', 'u128', 'Bytes'),
                'CouncilorRemarked': ('u64', 'Bytes'),
                'CouncilorRewardUpdated': 'u128',
                'EraPayoutDampingFactorSet': 'u8',
                'NewCandidate': ('u64', 'AccountId', 'AccountId', 'u128'),
                'NewCouncilElected': (['u64'], 'u32'),
                'NewCouncilNotElected': 'u32',
                'NotEnoughCandidates': 'u32',
                'RequestFunded': ('AccountId', 'u128'),
                'RewardPayment': ('u64', 'AccountId', 'u128', 'u128'),
                'VotingPeriodStarted': 'u32',
            },
            'DistributionWorkingGroup': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'ElectionProviderMultiPhase': {
                'ElectionFailed': None,
                'ElectionFinalized': {
                    'compute': 'scale_info::36',
                    'score': 'scale_info::39',
                },
                'PhaseTransitioned': {
                    'from': 'scale_info::40',
                    'round': 'u32',
                    'to': 'scale_info::40',
                },
                'Rewarded': {'account': 'AccountId', 'value': 'u128'},
                'Slashed': {'account': 'AccountId', 'value': 'u128'},
                'SolutionStored': {
                    'compute': 'scale_info::36',
                    'origin': (None, 'AccountId'),
                    'prev_ejected': 'bool',
                },
            },
            'Forum': {
                'CategoryArchivalStatusUpdated': (
                    'u64',
                    'bool',
                    'scale_info::86',
                ),
                'CategoryCreated': ('u64', (None, 'u64'), 'Bytes', 'Bytes'),
                'CategoryDeleted': ('u64', 'scale_info::86'),
                'CategoryDescriptionUpdated': (
                    'u64',
                    'scale_info::11',
                    'scale_info::86',
                ),
                'CategoryMembershipOfModeratorUpdated': ('u64', 'u64', 'bool'),
                'CategoryStickyThreadUpdate': (
                    'u64',
                    'scale_info::91',
                    'scale_info::86',
                ),
                'CategoryTitleUpdated': (
                    'u64',
                    'scale_info::11',
                    'scale_info::86',
                ),
                'PostAdded': ('u64', 'u64', 'u64', 'u64', 'Bytes', 'bool'),
                'PostDeleted': ('Bytes', 'u64', 'scale_info::88'),
                'PostModerated': (
                    'u64',
                    'Bytes',
                    'scale_info::86',
                    'u64',
                    'u64',
                ),
                'PostTextUpdated': ('u64', 'u64', 'u64', 'u64', 'Bytes'),
                'ThreadCreated': (
                    'u64',
                    'u64',
                    'u64',
                    'u64',
                    'Bytes',
                    'Bytes',
                ),
                'ThreadDeleted': ('u64', 'u64', 'u64', 'bool'),
                'ThreadMetadataUpdated': ('u64', 'u64', 'u64', 'Bytes'),
                'ThreadModerated': ('u64', 'Bytes', 'scale_info::86', 'u64'),
                'ThreadMoved': ('u64', 'u64', 'scale_info::86', 'u64'),
                'ThreadUpdated': ('u64', 'bool', 'scale_info::86', 'u64'),
            },
            'ForumWorkingGroup': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'Grandpa': {
                'NewAuthorities': {'authority_set': [('[u8; 32]', 'u64')]},
                'Paused': None,
                'Resumed': None,
            },
            'ImOnline': {
                'AllGood': None,
                'HeartbeatReceived': {'authority_id': '[u8; 32]'},
                'SomeOffline': {'offline': [('AccountId', 'scale_info::58')]},
            },
            'JoystreamUtility': {
                'RuntimeUpgraded': 'Bytes',
                'Signaled': 'Bytes',
                'TokensBurned': ('AccountId', 'u128'),
                'UpdatedWorkingGroupBudget': (
                    'scale_info::103',
                    'u128',
                    'scale_info::104',
                ),
            },
            'Members': {
                'InitialInvitationBalanceUpdated': 'u128',
                'InitialInvitationCountUpdated': 'u32',
                'InvitesTransferred': ('u64', 'u64', 'u32'),
                'LeaderInvitationQuotaUpdated': 'u32',
                'MemberAccountsUpdated': (
                    'u64',
                    (None, 'AccountId'),
                    (None, 'AccountId'),
                ),
                'MemberCreated': ('u64', 'scale_info::80', 'u32'),
                'MemberInvited': ('u64', 'scale_info::79', 'u128'),
                'MemberProfileUpdated': (
                    'u64',
                    (None, 'Bytes'),
                    (None, 'Bytes'),
                ),
                'MemberRemarked': (
                    'u64',
                    'Bytes',
                    (None, ('AccountId', 'u128')),
                ),
                'MemberVerificationStatusUpdated': ('u64', 'bool', 'u64'),
                'MembershipBought': ('u64', 'scale_info::76', 'u32'),
                'MembershipGifted': ('u64', 'scale_info::81'),
                'MembershipPriceUpdated': 'u128',
                'ReferralCutUpdated': 'u8',
                'StakingAccountAdded': ('AccountId', 'u64'),
                'StakingAccountConfirmed': ('AccountId', 'u64'),
                'StakingAccountRemoved': ('AccountId', 'u64'),
            },
            'MembershipWorkingGroup': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'Multisig': {
                'MultisigApproval': {
                    'approving': 'AccountId',
                    'call_hash': '[u8; 32]',
                    'multisig': 'AccountId',
                    'timepoint': 'scale_info::67',
                },
                'MultisigCancelled': {
                    'call_hash': '[u8; 32]',
                    'cancelling': 'AccountId',
                    'multisig': 'AccountId',
                    'timepoint': 'scale_info::67',
                },
                'MultisigExecuted': {
                    'approving': 'AccountId',
                    'call_hash': '[u8; 32]',
                    'multisig': 'AccountId',
                    'result': 'scale_info::30',
                    'timepoint': 'scale_info::67',
                },
                'NewMultisig': {
                    'approving': 'AccountId',
                    'call_hash': '[u8; 32]',
                    'multisig': 'AccountId',
                },
            },
            'Offences': {'Offence': {'kind': '[u8; 16]', 'timeslot': 'Bytes'}},
            'OperationsWorkingGroupAlpha': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'OperationsWorkingGroupBeta': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'OperationsWorkingGroupGamma': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'ProjectToken': {
                'AccountDustedBy': (
                    'u64',
                    'u64',
                    'AccountId',
                    'scale_info::178',
                ),
                'AmmActivated': ('u64', 'u64', 'scale_info::202'),
                'AmmDeactivated': ('u64', 'u64', 'u128'),
                'FrozenStatusUpdated': 'bool',
                'MemberJoinedWhitelist': ('u64', 'u64', 'scale_info::178'),
                'PatronageCreditClaimed': ('u64', 'u128', 'u64'),
                'PatronageRateDecreasedTo': ('u64', 'u32'),
                'RevenueSplitFinalized': ('u64', 'AccountId', 'u128'),
                'RevenueSplitIssued': ('u64', 'u32', 'u32', 'u128'),
                'RevenueSplitLeft': ('u64', 'u64', 'u128'),
                'TokenAmountTransferred': (
                    'u64',
                    'u64',
                    'scale_info::198',
                    'Bytes',
                ),
                'TokenAmountTransferredByIssuer': (
                    'u64',
                    'u64',
                    'scale_info::198',
                    'Bytes',
                ),
                'TokenConstraintsUpdated': {
                    'amm_buy_tx_fees': (None, 'u32'),
                    'amm_sell_tx_fees': (None, 'u32'),
                    'bloat_bond': (None, 'u128'),
                    'max_yearly_rate': (None, 'u32'),
                    'min_amm_slope': (None, 'u128'),
                    'min_revenue_split_duration': (None, 'u32'),
                    'min_revenue_split_time_to_start': (None, 'u32'),
                    'min_sale_duration': (None, 'u32'),
                    'sale_platform_fee': (None, 'u32'),
                },
                'TokenDeissued': 'u64',
                'TokenIssued': ('u64', 'scale_info::179'),
                'TokenSaleFinalized': ('u64', 'u32', 'u128', 'u128'),
                'TokenSaleInitialized': (
                    'u64',
                    'u32',
                    'scale_info::201',
                    (None, 'Bytes'),
                ),
                'TokensBoughtOnAmm': ('u64', 'u64', 'u128', 'u128'),
                'TokensBurned': ('u64', 'u64', 'u128'),
                'TokensPurchasedOnSale': ('u64', 'u32', 'u128', 'u64'),
                'TokensSoldOnAmm': ('u64', 'u64', 'u128', 'u128'),
                'TransferPolicyChangedToPermissionless': 'u64',
                'UpcomingTokenSaleUpdated': (
                    'u64',
                    'u32',
                    (None, 'u32'),
                    (None, 'u32'),
                ),
                'UserParticipatedInSplit': (
                    'u64',
                    'u64',
                    'u128',
                    'u128',
                    'u32',
                ),
            },
            'ProposalsCodex': {
                'ProposalCreated': (
                    'u32',
                    'scale_info::215',
                    'scale_info::216',
                    'u64',
                ),
            },
            'ProposalsDiscussion': {
                'PostCreated': ('u64', 'u64', 'u64', 'Bytes', 'bool'),
                'PostDeleted': ('u64', 'u64', 'u64', 'bool'),
                'PostUpdated': ('u64', 'u64', 'u64', 'Bytes'),
                'ThreadCreated': ('u64', 'u64'),
                'ThreadModeChanged': ('u64', 'scale_info::213', 'u64'),
            },
            'ProposalsEngine': {
                'ProposalCancelled': ('u64', 'u32'),
                'ProposalDecisionMade': ('u32', 'scale_info::208'),
                'ProposalExecuted': ('u32', 'scale_info::210'),
                'ProposalStatusUpdated': ('u32', 'scale_info::207'),
                'ProposerRemarked': ('u64', 'u32', 'Bytes'),
                'Voted': ('u64', 'u32', 'scale_info::211', 'Bytes'),
            },
            'Proxy': {
                'Announced': {
                    'call_hash': 'scale_info::11',
                    'proxy': 'AccountId',
                    'real': 'AccountId',
                },
                'ProxyAdded': {
                    'delay': 'u32',
                    'delegatee': 'AccountId',
                    'delegator': 'AccountId',
                    'proxy_type': 'scale_info::257',
                },
                'ProxyExecuted': {'result': 'scale_info::30'},
                'ProxyRemoved': {
                    'delay': 'u32',
                    'delegatee': 'AccountId',
                    'delegator': 'AccountId',
                    'proxy_type': 'scale_info::257',
                },
                'PureCreated': {
                    'disambiguation_index': 'u16',
                    'proxy_type': 'scale_info::257',
                    'pure': 'AccountId',
                    'who': 'AccountId',
                },
            },
            'Referendum': {
                'AccountOptedOutOfVoting': 'AccountId',
                'ReferendumFinished': ['scale_info::74'],
                'ReferendumStarted': ('u32', 'u32'),
                'ReferendumStartedForcefully': ('u32', 'u32'),
                'RevealingStageStarted': 'u32',
                'StakeReleased': 'AccountId',
                'VoteCast': ('AccountId', 'scale_info::11', 'u128'),
                'VoteRevealed': ('AccountId', 'u64', 'Bytes'),
            },
            'Session': {'NewSession': {'session_index': 'u32'}},
            'Staking': {
                'Bonded': {'amount': 'u128', 'stash': 'AccountId'},
                'Chilled': {'stash': 'AccountId'},
                'EraPaid': {
                    'era_index': 'u32',
                    'remainder': 'u128',
                    'validator_payout': 'u128',
                },
                'ForceEra': {'mode': 'scale_info::46'},
                'Kicked': {'nominator': 'AccountId', 'stash': 'AccountId'},
                'OldSlashingReportDiscarded': {'session_index': 'u32'},
                'PayoutStarted': {
                    'era_index': 'u32',
                    'validator_stash': 'AccountId',
                },
                'Rewarded': {'amount': 'u128', 'stash': 'AccountId'},
                'SlashReported': {
                    'fraction': 'u32',
                    'slash_era': 'u32',
                    'validator': 'AccountId',
                },
                'Slashed': {'amount': 'u128', 'staker': 'AccountId'},
                'StakersElected': None,
                'StakingElectionFailed': None,
                'Unbonded': {'amount': 'u128', 'stash': 'AccountId'},
                'ValidatorPrefsSet': {
                    'prefs': 'scale_info::44',
                    'stash': 'AccountId',
                },
                'Withdrawn': {'amount': 'u128', 'stash': 'AccountId'},
            },
            'Storage': {
                'DataObjectPerMegabyteFeeUpdated': 'u128',
                'DataObjectStateBloatBondValueUpdated': 'u128',
                'DataObjectsDeleted': (
                    'AccountId',
                    'scale_info::166',
                    'scale_info::91',
                ),
                'DataObjectsMoved': (
                    'scale_info::166',
                    'scale_info::166',
                    'scale_info::91',
                ),
                'DataObjectsUpdated': (
                    'scale_info::165',
                    'scale_info::91',
                    'scale_info::91',
                ),
                'DataObjectsUploaded': (
                    'scale_info::91',
                    'scale_info::165',
                    'u128',
                ),
                'DistributionBucketCreated': (
                    'u64',
                    'bool',
                    'scale_info::138',
                ),
                'DistributionBucketDeleted': {
                    'distribution_bucket_family_id': 'u64',
                    'distribution_bucket_index': 'u64',
                },
                'DistributionBucketFamilyCreated': 'u64',
                'DistributionBucketFamilyDeleted': 'u64',
                'DistributionBucketFamilyMetadataSet': ('u64', 'Bytes'),
                'DistributionBucketInvitationAccepted': (
                    'u64',
                    'scale_info::138',
                ),
                'DistributionBucketInvitationCancelled': (
                    'scale_info::138',
                    'u64',
                ),
                'DistributionBucketMetadataSet': (
                    'u64',
                    'scale_info::138',
                    'Bytes',
                ),
                'DistributionBucketModeUpdated': ('scale_info::138', 'bool'),
                'DistributionBucketOperatorInvited': (
                    'scale_info::138',
                    'u64',
                ),
                'DistributionBucketOperatorRemoved': (
                    'scale_info::138',
                    'u64',
                ),
                'DistributionBucketStatusUpdated': ('scale_info::138', 'bool'),
                'DistributionBucketsPerBagLimitUpdated': 'u32',
                'DistributionBucketsUpdatedForBag': (
                    'scale_info::166',
                    'u64',
                    'scale_info::91',
                    'scale_info::91',
                ),
                'DistributionOperatorRemarked': (
                    'u64',
                    'scale_info::138',
                    'Bytes',
                ),
                'DynamicBagCreated': ('scale_info::169', 'scale_info::91'),
                'DynamicBagDeleted': {'Channel': 'u64', 'Member': 'u64'},
                'FamiliesInDynamicBagCreationPolicyUpdated': (
                    'scale_info::173',
                    'scale_info::174',
                ),
                'NumberOfStorageBucketsInDynamicBagCreationPolicyUpdated': (
                    'scale_info::173',
                    'u32',
                ),
                'PendingDataObjectsAccepted': (
                    'u64',
                    'u64',
                    'scale_info::166',
                    'scale_info::91',
                ),
                'StorageBucketCreated': ('u64', (None, 'u64'), 'bool', 'u64', 'u64'),
                'StorageBucketDeleted': 'u64',
                'StorageBucketInvitationAccepted': ('u64', 'u64', 'AccountId'),
                'StorageBucketInvitationCancelled': 'u64',
                'StorageBucketOperatorInvited': ('u64', 'u64'),
                'StorageBucketOperatorRemoved': 'u64',
                'StorageBucketStatusUpdated': ('u64', 'bool'),
                'StorageBucketVoucherLimitsSet': ('u64', 'u64', 'u64'),
                'StorageBucketsPerBagLimitUpdated': 'u32',
                'StorageBucketsUpdatedForBag': (
                    'scale_info::166',
                    'scale_info::91',
                    'scale_info::91',
                ),
                'StorageBucketsVoucherMaxLimitsUpdated': ('u64', 'u64'),
                'StorageOperatorMetadataSet': ('u64', 'u64', 'Bytes'),
                'StorageOperatorRemarked': ('u64', 'u64', 'Bytes'),
                'UpdateBlacklist': ('scale_info::170', 'scale_info::170'),
                'UploadingBlockStatusUpdated': 'bool',
                'VoucherChanged': ('u64', 'scale_info::172'),
            },
            'StorageWorkingGroup': {
                'ApplicationWithdrawn': 'u64',
                'AppliedOnOpening': ('scale_info::235', 'u64'),
                'BudgetSet': 'u128',
                'BudgetSpending': ('AccountId', 'u128', (None, 'Bytes')),
                'LeadRemarked': 'Bytes',
                'LeaderSet': 'u64',
                'LeaderUnset': None,
                'NewMissedRewardLevelReached': ('u64', (None, 'u128')),
                'OpeningAdded': (
                    'u64',
                    'Bytes',
                    'scale_info::234',
                    'scale_info::226',
                    (None, 'u128'),
                ),
                'OpeningCanceled': 'u64',
                'OpeningFilled': ('u64', 'scale_info::231', 'scale_info::91'),
                'RewardPaid': ('u64', 'AccountId', 'u128', 'scale_info::239'),
                'StakeDecreased': ('u64', 'u128'),
                'StakeIncreased': ('u64', 'u128'),
                'StakeSlashed': ('u64', 'u128', 'u128', (None, 'Bytes')),
                'StatusTextChanged': ('scale_info::11', (None, 'Bytes')),
                'TerminatedLeader': ('u64', (None, 'u128'), (None, 'Bytes')),
                'TerminatedWorker': ('u64', (None, 'u128'), (None, 'Bytes')),
                'VestedBudgetSpending': (
                    'AccountId',
                    'scale_info::237',
                    (None, 'Bytes'),
                ),
                'WorkerExited': 'u64',
                'WorkerRemarked': ('u64', 'Bytes'),
                'WorkerRewardAccountUpdated': ('u64', 'AccountId'),
                'WorkerRewardAmountUpdated': ('u64', (None, 'u128')),
                'WorkerRoleAccountUpdated': ('u64', 'AccountId'),
                'WorkerStartedLeaving': ('u64', (None, 'Bytes')),
                'WorkingGroupBudgetFunded': ('u64', 'u128', 'Bytes'),
            },
            'System': {
                'CodeUpdated': None,
                'ExtrinsicFailed': {
                    'dispatch_error': 'scale_info::24',
                    'dispatch_info': 'scale_info::21',
                },
                'ExtrinsicSuccess': {'dispatch_info': 'scale_info::21'},
                'KilledAccount': {'account': 'AccountId'},
                'NewAccount': {'account': 'AccountId'},
                'Remarked': {'hash': 'scale_info::11', 'sender': 'AccountId'},
            },
            'Utility': {
                'BatchCompleted': None,
                'BatchCompletedWithErrors': None,
                'BatchInterrupted': {
                    'error': 'scale_info::24',
                    'index': 'u32',
                },
                'DispatchedAs': {'result': 'scale_info::30'},
                'ItemCompleted': None,
                'ItemFailed': {'error': 'scale_info::24'},
            },
            'Vesting': {
                'VestingCompleted': {'account': 'AccountId'},
                'VestingUpdated': {'account': 'AccountId', 'unvested': 'u128'},
            },
            'VoterList': {
                'Rebagged': {'from': 'u64', 'to': 'u64', 'who': 'AccountId'},
                'ScoreUpdated': {'new_score': 'u64', 'who': 'AccountId'},
            },
            None: None,
            'Balances': {
                'BalanceSet': {
                    'free': 'u128',
                    'reserved': 'u128',
                    'who': 'AccountId',
                },
                'Deposit': {'amount': 'u128', 'who': 'AccountId'},
                'DustLost': {'account': 'AccountId', 'amount': 'u128'},
                'Endowed': {'account': 'AccountId', 'free_balance': 'u128'},
                'ReserveRepatriated': {
                    'amount': 'u128',
                    'destination_status': 'scale_info::33',
                    'from': 'AccountId',
                    'to': 'AccountId',
                },
                'Reserved': {'amount': 'u128', 'who': 'AccountId'},
                'Slashed': {'amount': 'u128', 'who': 'AccountId'},
                'Transfer': {
                    'amount': 'u128',
                    'from': 'AccountId',
                    'to': 'AccountId',
                },
                'Unreserved': {'amount': 'u128', 'who': 'AccountId'},
                'Withdraw': {'amount': 'u128', 'who': 'AccountId'},
            },
            'TransactionPayment': {
                'TransactionFeePaid': {
                    'actual_fee': 'u128',
                    'tip': 'u128',
                    'who': 'AccountId',
                },
            },
        },
        'phase': {
            'ApplyExtrinsic': 'u32',
            'Finalization': None,
            'Initialization': None,
        },
        'topics': ['scale_info::11'],
    },
]

ExecutionPhase

The execution phase of the block.

Python

result = substrate.query(
    'System', 'ExecutionPhase', []
)

Return value

{'ApplyExtrinsic': 'u32', 'Finalization': None, 'Initialization': None}

ExtrinsicCount

Total extrinsics count for the current block.

Python

result = substrate.query(
    'System', 'ExtrinsicCount', []
)

Return value

'u32'

ExtrinsicData

Extrinsics data for the current block (maps an extrinsic's index to its data).

Python

result = substrate.query(
    'System', 'ExtrinsicData', ['u32']
)

Return value

'Bytes'

LastRuntimeUpgrade

Stores the spec_version and spec_name of when the last runtime upgrade happened.

Python

result = substrate.query(
    'System', 'LastRuntimeUpgrade', []
)

Return value

{'spec_name': 'Str', 'spec_version': 'u32'}

Number

The current block number being processed. Set by execute_block.

Python

result = substrate.query(
    'System', 'Number', []
)

Return value

'u32'

ParentHash

Hash of the previous block.

Python

result = substrate.query(
    'System', 'ParentHash', []
)

Return value

'scale_info::11'

UpgradedToTripleRefCount

True if we have upgraded so that AccountInfo contains three types of RefCount. False (default) if not.

Python

result = substrate.query(
    'System', 'UpgradedToTripleRefCount', []
)

Return value

'bool'

UpgradedToU32RefCount

True if we have upgraded so that type RefCount is u32. False (default) if not.

Python

result = substrate.query(
    'System', 'UpgradedToU32RefCount', []
)

Return value

'bool'

Constants


BlockHashCount

Maximum number of block number to block hash mappings to keep (oldest pruned first).

Value

2400

Python

constant = substrate.get_constant('System', 'BlockHashCount')

BlockLength

The maximum length of a block (in bytes).

Value

{'max': {'mandatory': 5242880, 'normal': 3932160, 'operational': 5242880}}

Python

constant = substrate.get_constant('System', 'BlockLength')

BlockWeights

Block & extrinsics weights: base values and limits.

Value

{
    'base_block': {'proof_size': 0, 'ref_time': 441686000},
    'max_block': {
        'proof_size': 18446744073709551615,
        'ref_time': 2000000000000,
    },
    'per_class': {
        'mandatory': {
            'base_extrinsic': {'proof_size': 0, 'ref_time': 110530000},
            'max_extrinsic': None,
            'max_total': None,
            'reserved': None,
        },
        'normal': {
            'base_extrinsic': {'proof_size': 0, 'ref_time': 110530000},
            'max_extrinsic': {
                'proof_size': 11990383647911208550,
                'ref_time': 1299889470000,
            },
            'max_total': {
                'proof_size': 13835058055282163711,
                'ref_time': 1500000000000,
            },
            'reserved': {'proof_size': 0, 'ref_time': 0},
        },
        'operational': {
            'base_extrinsic': {'proof_size': 0, 'ref_time': 110530000},
            'max_extrinsic': {
                'proof_size': 16602069666338596454,
                'ref_time': 1799889470000,
            },
            'max_total': {
                'proof_size': 18446744073709551615,
                'ref_time': 2000000000000,
            },
            'reserved': {
                'proof_size': 4611686018427387904,
                'ref_time': 500000000000,
            },
        },
    },
}

Python

constant = substrate.get_constant('System', 'BlockWeights')

DbWeight

The weight of runtime database operations the runtime can invoke.

Value

{'read': 4968000, 'write': 64373000}

Python

constant = substrate.get_constant('System', 'DbWeight')

SS58Prefix

The designated SS58 prefix of this chain.

This replaces the "ss58Format" property declared in the chain spec. Reason is that the runtime should know about the prefix in order to make use of it as an identifier of the chain.

Value

126

Python

constant = substrate.get_constant('System', 'SS58Prefix')

Version

Get the chain's current version.

Value

{
    'apis': [
        ('0xdf6acb689907609b', 4),
        ('0x37e397fc7c91f5e4', 1),
        ('0x40fe3ad401f8959a', 6),
        ('0x18ef58a3b67ba770', 1),
        ('0xd2bc9897eed08f15', 3),
        ('0xf78b278be53f454c', 2),
        ('0xed99c5acb25eedf5', 3),
        ('0xcbca25e39f142387', 2),
        ('0x687ad44ad37f03c2', 1),
        ('0xbc9d89904f5b923f', 1),
        ('0x37c8bb1350a9a2a8', 3),
        ('0xab3c0572291feb8b', 1),
    ],
    'authoring_version': 12,
    'impl_name': 'joystream-node',
    'impl_version': 0,
    'spec_name': 'joystream-node',
    'spec_version': 2004,
    'state_version': 1,
    'transaction_version': 2,
}

Python

constant = substrate.get_constant('System', 'Version')

Errors


CallFiltered

The origin filter prevent the call to be dispatched.


FailedToExtractRuntimeVersion

Failed to extract the runtime version from the new runtime.

Either calling Core_version or decoding RuntimeVersion failed.


InvalidSpecName

The name of specification does not match between the current runtime and the new runtime.


NonDefaultComposite

Suicide called when the account has non-default composite data.


NonZeroRefCount

There is a non-zero reference count preventing the account from being purged.


SpecVersionNeedsToIncrease

The specification version is not allowed to decrease between the current runtime and the new runtime.