Skip to content

Inflation


Calls


start_inflation

See [Pallet::start_inflation].

Attributes

Name Type
inflation_start_relay_block BlockNumberFor<T>

Python

call = substrate.compose_call(
    'Inflation', 'start_inflation', {'inflation_start_relay_block': 'u32'}
)

Storage functions


BlockInflation

Current inflation for InflationBlockInterval number of blocks

Python

result = substrate.query(
    'Inflation', 'BlockInflation', []
)

Return value

'u128'

NextInflationBlock

Next target (relay) block when inflation will be applied

Python

result = substrate.query(
    'Inflation', 'NextInflationBlock', []
)

Return value

'u32'

NextRecalculationBlock

Next target (relay) block when inflation is recalculated

Python

result = substrate.query(
    'Inflation', 'NextRecalculationBlock', []
)

Return value

'u32'

StartBlock

Relay block when inflation has started

Python

result = substrate.query(
    'Inflation', 'StartBlock', []
)

Return value

'u32'

StartingYearTotalIssuance

starting year total issuance

Python

result = substrate.query(
    'Inflation', 'StartingYearTotalIssuance', []
)

Return value

'u128'

Constants


InflationBlockInterval

Number of blocks that pass between treasury balance updates due to inflation

Value

100

Python

constant = substrate.get_constant('Inflation', 'InflationBlockInterval')