bifrost
subscan
Runtime Modules / ChannelCommission
Spec Version:
Events
Name
Lookup
Attributes
ChannelRegistered8800["ChannelId","AccountIdOf","Bytes"]
ChannelRemoved8801["ChannelId"]
ChannelReceiveAccountUpdated8802["ChannelId","AccountIdOf"]
CommissionTokenSet8803["CurrencyId","Option<CurrencyId>"]
ChannelCommissionSet8804["ChannelId","CurrencyId","Percent"]
CommissionClaimed8805["ChannelId","CurrencyId","BalanceOf"]
ChannelVtokenSharesUpdated8806["ChannelId","CurrencyId","Permill"]
VtokenIssuanceSnapshotUpdated8807["CurrencyId","BalanceOf","BalanceOf"]
PeriodVtokenTotalMintUpdated8808["CurrencyId","BalanceOf","BalanceOf"]
PeriodVtokenTotalRedeemUpdated8809["CurrencyId","BalanceOf","BalanceOf"]
PeriodChannelVtokenMintUpdated880a["ChannelId","CurrencyId","BalanceOf","BalanceOf"]
PeriodTotalCommissionsUpdated880b["CurrencyId","BalanceOf","BalanceOf"]
ChannelClaimableCommissionUpdated880c["ChannelId","CurrencyId","BalanceOf"]
CalculationFailed880d["BalanceOf","BalanceOf"]
BifrostCommissionTransferFailed880e["AccountIdOf","AccountIdOf","CurrencyId","BalanceOf"]
RemovalNotCompleteError880f["u32","u32","u32"]
Storage Functions
Name
Type
ChannelNextId{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
Channels{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"Tuple:AccountIdbounded_collections:bounded_vec:BoundedVec@985","keys_id":4,"value_id":984}}
CommissionTokens{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"bifrost_primitives:currency:CurrencyId","keys_id":322,"value_id":322}}
ChannelCommissionTokenRates{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"U8","keys_id":910,"value_id":45}}
ChannelVtokenShares{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"U32","keys_id":910,"value_id":352}}
VtokenIssuanceSnapshots{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":322,"value_id":433}}
PeriodVtokenTotalMint{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":322,"value_id":433}}
PeriodVtokenTotalRedeem{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":322,"value_id":433}}
PeriodChannelVtokenMint{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":910,"value_id":433}}
PeriodTotalCommissions{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"Tuple:U128U128","keys_id":322,"value_id":433}}
PeriodClearedCommissions{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":322,"value_id":6}}
ChannelClaimableCommissions{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":910,"value_id":6}}
Constants
Name
Type
Value
ClearingDurationU32201c0000
NameLengthLimitU3214000000
Error Types
Name
Docs
Overflow
ChannelNameTooLong
ConversionError
ChannelNotExist
TransferError
VtokenNotConfiguredForCommission
InvalidCommissionRate
CommissionTokenAlreadySet
InvalidVtoken
NoChangesMadeError indicating that no changes were made during a modification operation.
DivisionByZeroRepresents an error that occurs when a division operation encounters a divisor of zero.This is a critical error, as division by zero is undefined and cannot be performed.
RemovalNotCompleteError indicating that the removal operation was not completed successfully.