Homa
Calls
claim_redemption
Attributes
| Name |
Type |
| redeemer |
T::AccountId |
Python
call = substrate.compose_call(
'Homa', 'claim_redemption', {'redeemer': 'AccountId'}
)
fast_match_redeems
Attributes
| Name |
Type |
| redeemer_list |
Vec<T::AccountId> |
Python
call = substrate.compose_call(
'Homa', 'fast_match_redeems', {'redeemer_list': ['AccountId']}
)
fast_match_redeems_completely
Attributes
| Name |
Type |
| redeemer_list |
Vec<T::AccountId> |
Python
call = substrate.compose_call(
'Homa', 'fast_match_redeems_completely', {'redeemer_list': ['AccountId']}
)
force_bump_current_era
Attributes
| Name |
Type |
| bump_amount |
EraIndex |
Python
call = substrate.compose_call(
'Homa', 'force_bump_current_era', {'bump_amount': 'u32'}
)
mint
Attributes
Python
call = substrate.compose_call(
'Homa', 'mint', {'amount': 'u128'}
)
request_redeem
Attributes
| Name |
Type |
| amount |
Balance |
| allow_fast_match |
bool |
Python
call = substrate.compose_call(
'Homa', 'request_redeem', {
'allow_fast_match': 'bool',
'amount': 'u128',
}
)
reset_current_era
Attributes
| Name |
Type |
| era_index |
EraIndex |
Python
call = substrate.compose_call(
'Homa', 'reset_current_era', {'era_index': 'u32'}
)
reset_ledgers
Attributes
| Name |
Type |
| updates |
Vec<(u16, Option<Balance>, Option<Vec<UnlockChunk>>)> |
Python
call = substrate.compose_call(
'Homa', 'reset_ledgers', {
'updates': [
(
'u16',
(None, 'u128'),
(
None,
[
{
'era': 'u32',
'value': 'u128',
},
],
),
),
],
}
)
update_bump_era_params
Attributes
| Name |
Type |
| last_era_bumped_block |
Option<BlockNumberFor<T>> |
| frequency |
Option<BlockNumberFor<T>> |
Python
call = substrate.compose_call(
'Homa', 'update_bump_era_params', {
'frequency': (None, 'u32'),
'last_era_bumped_block': (
None,
'u32',
),
}
)
update_homa_params
Attributes
| Name |
Type |
| soft_bonded_cap_per_sub_account |
Option<Balance> |
| estimated_reward_rate_per_era |
Option<Rate> |
| commission_rate |
Option<Rate> |
| fast_match_fee_rate |
Option<Rate> |
Python
call = substrate.compose_call(
'Homa', 'update_homa_params', {
'commission_rate': (None, 'u128'),
'estimated_reward_rate_per_era': (
None,
'u128',
),
'fast_match_fee_rate': (
None,
'u128',
),
'soft_bonded_cap_per_sub_account': (
None,
'u128',
),
}
)
Events
BumpEraFrequencyUpdated
Attributes
| Name |
Type |
Composition |
| frequency |
BlockNumberFor<T> |
u32 |
CommissionRateUpdated
Attributes
| Name |
Type |
Composition |
| commission_rate |
Rate |
u128 |
CurrentEraBumped
Attributes
| Name |
Type |
Composition |
| new_era_index |
EraIndex |
u32 |
CurrentEraReset
Attributes
| Name |
Type |
Composition |
| new_era_index |
EraIndex |
u32 |
EstimatedRewardRatePerEraUpdated
Attributes
| Name |
Type |
Composition |
| reward_rate |
Rate |
u128 |
FastMatchFeeRateUpdated
Attributes
| Name |
Type |
Composition |
| fast_match_fee_rate |
Rate |
u128 |
LastEraBumpedBlockUpdated
Attributes
| Name |
Type |
Composition |
| last_era_bumped_block |
BlockNumberFor<T> |
u32 |
LedgerBondedReset
Attributes
| Name |
Type |
Composition |
| sub_account_index |
u16 |
u16 |
| new_bonded_amount |
Balance |
u128 |
LedgerUnlockingReset
Attributes
| Name |
Type |
Composition |
| sub_account_index |
u16 |
u16 |
| new_unlocking |
Vec<UnlockChunk> |
[{'value': 'u128', 'era': 'u32'}] |
Minted
Attributes
| Name |
Type |
Composition |
| minter |
T::AccountId |
AccountId |
| staking_currency_amount |
Balance |
u128 |
| liquid_amount_received |
Balance |
u128 |
| liquid_amount_added_to_void |
Balance |
u128 |
RedeemRequestCancelled
Attributes
| Name |
Type |
Composition |
| redeemer |
T::AccountId |
AccountId |
| cancelled_liquid_amount |
Balance |
u128 |
RedeemedByFastMatch
Attributes
| Name |
Type |
Composition |
| redeemer |
T::AccountId |
AccountId |
| matched_liquid_amount |
Balance |
u128 |
| fee_in_liquid |
Balance |
u128 |
| redeemed_staking_amount |
Balance |
u128 |
RedeemedByUnbond
Attributes
| Name |
Type |
Composition |
| redeemer |
T::AccountId |
AccountId |
| era_index_when_unbond |
EraIndex |
u32 |
| liquid_amount |
Balance |
u128 |
| unbonding_staking_amount |
Balance |
u128 |
RequestedRedeem
Attributes
| Name |
Type |
Composition |
| redeemer |
T::AccountId |
AccountId |
| liquid_amount |
Balance |
u128 |
| allow_fast_match |
bool |
bool |
SoftBondedCapPerSubAccountUpdated
Attributes
| Name |
Type |
Composition |
| cap_amount |
Balance |
u128 |
WithdrawRedemption
Attributes
| Name |
Type |
Composition |
| redeemer |
T::AccountId |
AccountId |
| redemption_amount |
Balance |
u128 |
Storage functions
BumpEraFrequency
Python
result = substrate.query(
'Homa', 'BumpEraFrequency', []
)
Return value
'u32'
CommissionRate
Python
result = substrate.query(
'Homa', 'CommissionRate', []
)
Return value
'u128'
EstimatedRewardRatePerEra
Python
result = substrate.query(
'Homa', 'EstimatedRewardRatePerEra', []
)
Return value
'u128'
FastMatchFeeRate
Python
result = substrate.query(
'Homa', 'FastMatchFeeRate', []
)
Return value
'u128'
LastEraBumpedBlock
Python
result = substrate.query(
'Homa', 'LastEraBumpedBlock', []
)
Return value
'u32'
RedeemRequests
Python
result = substrate.query(
'Homa', 'RedeemRequests', ['AccountId']
)
Return value
('u128', 'bool')
RelayChainCurrentEra
Python
result = substrate.query(
'Homa', 'RelayChainCurrentEra', []
)
Return value
'u32'
SoftBondedCapPerSubAccount
Python
result = substrate.query(
'Homa', 'SoftBondedCapPerSubAccount', []
)
Return value
'u128'
StakingLedgers
Python
result = substrate.query(
'Homa', 'StakingLedgers', ['u16']
)
Return value
{'bonded': 'u128', 'unlocking': [{'era': 'u32', 'value': 'u128'}]}
ToBondPool
Python
result = substrate.query(
'Homa', 'ToBondPool', []
)
Return value
'u128'
TotalStakingBonded
Python
result = substrate.query(
'Homa', 'TotalStakingBonded', []
)
Return value
'u128'
TotalVoidLiquid
Python
result = substrate.query(
'Homa', 'TotalVoidLiquid', []
)
Return value
'u128'
Unbondings
Python
result = substrate.query(
'Homa', 'Unbondings', ['AccountId', 'u32']
)
Return value
'u128'
UnclaimedRedemption
Python
result = substrate.query(
'Homa', 'UnclaimedRedemption', []
)
Return value
'u128'
Constants
ActiveSubAccountsIndexList
Value
[0, 1, 2]
Python
constant = substrate.get_constant('Homa', 'ActiveSubAccountsIndexList')
BondingDuration
Value
28
Python
constant = substrate.get_constant('Homa', 'BondingDuration')
DefaultExchangeRate
Value
100000000000000000
Python
constant = substrate.get_constant('Homa', 'DefaultExchangeRate')
LiquidCurrencyId
Value
{'Token': 'LKSM'}
Python
constant = substrate.get_constant('Homa', 'LiquidCurrencyId')
MintThreshold
Value
100000000000
Python
constant = substrate.get_constant('Homa', 'MintThreshold')
PalletId
Value
'0x6163612f686f6d61'
Python
constant = substrate.get_constant('Homa', 'PalletId')
RedeemThreshold
Value
500000000000
Python
constant = substrate.get_constant('Homa', 'RedeemThreshold')
StakingCurrencyId
Value
{'Token': 'KSM'}
Python
constant = substrate.get_constant('Homa', 'StakingCurrencyId')
TreasuryAccount
Value
'qmmNufxeWaAUy17XBWGc1q4n2dkdxNS2dPkhtzCZRoExdAs'
Python
constant = substrate.get_constant('Homa', 'TreasuryAccount')
Errors
BelowMintThreshold
BelowRedeemThreshold
CannotCompletelyFastMatch
ExceededStakingCurrencySoftCap
FastMatchIsNotAllowed
InsufficientUnclaimedRedemption
InvalidLastEraBumpedBlock
InvalidRate
OutdatedEraIndex