Skip to content

Supply


Calls


set_start_height_and_inflation

Attributes

Name Type
start_height T::BlockNumber
inflation T::UnsignedFixedPoint

Python

call = substrate.compose_call(
    'Supply', 'set_start_height_and_inflation', {
    'inflation': 'u128',
    'start_height': 'u32',
}
)

Events


Inflation

Attributes

Name Type Composition
total_inflation BalanceOf<T> u128

Storage functions


Inflation

Python

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

Return value

'u128'

LastEmission

Python

result = substrate.query(
    'Supply', 'LastEmission', []
)

Return value

'u128'

StartHeight

Python

result = substrate.query(
    'Supply', 'StartHeight', []
)

Return value

'u32'

Constants


InflationPeriod

The period between inflation updates.

Value

2628000

Python

constant = substrate.get_constant('Supply', 'InflationPeriod')

SupplyPalletId

The supply module id, used for deriving its sovereign account ID.

Value

'0x6d6f642f7375706c'

Python

constant = substrate.get_constant('Supply', 'SupplyPalletId')