Skip to content

Configuration


Calls


set_app_promotion_configuration_override

See [Pallet::set_app_promotion_configuration_override].

Attributes

Name Type
configuration AppPromotionConfiguration<BlockNumberFor<T>>

Python

call = substrate.compose_call(
    'Configuration', 'set_app_promotion_configuration_override', {
    'configuration': {
        'interval_income': (
            None,
            'u32',
        ),
        'max_stakers_per_calculation': (
            None,
            'u8',
        ),
        'pending_interval': (
            None,
            'u32',
        ),
        'recalculation_interval': (
            None,
            'u32',
        ),
    },
}
)

set_collator_selection_desired_collators

See [Pallet::set_collator_selection_desired_collators].

Attributes

Name Type
max Option<u32>

Python

call = substrate.compose_call(
    'Configuration', 'set_collator_selection_desired_collators', {'max': (None, 'u32')}
)

set_collator_selection_kick_threshold

See [Pallet::set_collator_selection_kick_threshold].

Attributes

Name Type
threshold Option<BlockNumberFor<T>>

Python

call = substrate.compose_call(
    'Configuration', 'set_collator_selection_kick_threshold', {'threshold': (None, 'u32')}
)

set_collator_selection_license_bond

See [Pallet::set_collator_selection_license_bond].

Attributes

Name Type
amount Option<<T as Config>::Balance>

Python

call = substrate.compose_call(
    'Configuration', 'set_collator_selection_license_bond', {'amount': (None, 'u128')}
)

set_min_gas_price_override

See [Pallet::set_min_gas_price_override].

Attributes

Name Type
coeff Option<u64>

Python

call = substrate.compose_call(
    'Configuration', 'set_min_gas_price_override', {'coeff': (None, 'u64')}
)

set_weight_to_fee_coefficient_override

See [Pallet::set_weight_to_fee_coefficient_override].

Attributes

Name Type
coeff Option<u64>

Python

call = substrate.compose_call(
    'Configuration', 'set_weight_to_fee_coefficient_override', {'coeff': (None, 'u64')}
)

Events


NewCollatorKickThreshold

Attributes

Name Type Composition
length_in_blocks Option<BlockNumberFor<T>> (None, 'u32')

NewCollatorLicenseBond

Attributes

Name Type Composition
bond_cost Option<T::Balance> (None, 'u128')

NewDesiredCollators

Attributes

Name Type Composition
desired_collators Option<u32> (None, 'u32')

Storage functions


AppPromomotionConfigurationOverride

Python

result = substrate.query(
    'Configuration', 'AppPromomotionConfigurationOverride', []
)

Return value

{
    'interval_income': (None, 'u32'),
    'max_stakers_per_calculation': (None, 'u8'),
    'pending_interval': (None, 'u32'),
    'recalculation_interval': (None, 'u32'),
}

CollatorSelectionDesiredCollatorsOverride

Python

result = substrate.query(
    'Configuration', 'CollatorSelectionDesiredCollatorsOverride', []
)

Return value

'u32'

CollatorSelectionKickThresholdOverride

Python

result = substrate.query(
    'Configuration', 'CollatorSelectionKickThresholdOverride', []
)

Return value

'u32'

CollatorSelectionLicenseBondOverride

Python

result = substrate.query(
    'Configuration', 'CollatorSelectionLicenseBondOverride', []
)

Return value

'u128'

MinGasPriceOverride

Python

result = substrate.query(
    'Configuration', 'MinGasPriceOverride', []
)

Return value

'u64'

WeightToFeeCoefficientOverride

Python

result = substrate.query(
    'Configuration', 'WeightToFeeCoefficientOverride', []
)

Return value

'u64'

Constants


AppPromotionDailyRate

Value

453256

Python

constant = substrate.get_constant('Configuration', 'AppPromotionDailyRate')

DayRelayBlocks

Value

14400

Python

constant = substrate.get_constant('Configuration', 'DayRelayBlocks')

DefaultCollatorSelectionKickThreshold

Value

300

Python

constant = substrate.get_constant('Configuration', 'DefaultCollatorSelectionKickThreshold')

DefaultCollatorSelectionLicenseBond

Value

1000000000000000000000000000000

Python

constant = substrate.get_constant('Configuration', 'DefaultCollatorSelectionLicenseBond')

DefaultCollatorSelectionMaxCollators

Value

10

Python

constant = substrate.get_constant('Configuration', 'DefaultCollatorSelectionMaxCollators')

DefaultMinGasPrice

Value

1873548000299

Python

constant = substrate.get_constant('Configuration', 'DefaultMinGasPrice')

DefaultWeightToFeeCoefficient

Value

74374502416291841

Python

constant = substrate.get_constant('Configuration', 'DefaultWeightToFeeCoefficient')

MaxXcmAllowedLocations

Value

16

Python

constant = substrate.get_constant('Configuration', 'MaxXcmAllowedLocations')

Errors


InconsistentConfiguration