subscan
Runtime Modules / Oracle
Spec Version:
Call Functions
Events
Name
Lookup
Attributes
AssetInfoChange3c00["AssetId","Percent","u32","u32","BlockNumber","BalanceOf","BalanceOf"]
SignerSet3c01["AccountId","AccountId"]
StakeAdded3c02["AccountId","BalanceOf","BalanceOf"]
StakeRemoved3c03["AccountId","BalanceOf","BlockNumber"]
StakeReclaimed3c04["AccountId","BalanceOf"]
PriceSubmitted3c05["AccountId","AssetId","PriceValue"]
UserSlashed3c06["AccountId","AssetId","BalanceOf"]
OracleRewarded3c07["AccountId","AssetId","BalanceOf"]
RewardingAdjustment3c08["Moment"]
AnswerPruned3c09["AccountId","PriceValue"]
PriceChanged3c0a["AssetId","PriceValue"]
SignerRemoved3c0b["AccountId","AccountId","BalanceOf"]
Storage Functions
Name
Type
AssetsCount{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
RewardTrackerStore{"origin":"PlainType","plain_type":"composable_traits:oracle:RewardTracker","PlainTypeValue":611}
SignerToController{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"AccountId","keys_id":0,"value_id":0}}
ControllerToSigner{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"AccountId","keys_id":0,"value_id":0}}
DeclaredWithdraws{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"pallet_oracle:pallet:Withdraw","keys_id":0,"value_id":612}}
OracleStake{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}}
AccumulatedRewardsPerAsset{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"U128","keys_id":126,"value_id":6}}
AnswerInTransit{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}}
Prices{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"composable_traits:oracle:Price","keys_id":126,"value_id":613}}
PriceHistory{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"Vec<composable_traits:oracle:Price>","keys_id":126,"value_id":614}}
PrePrices{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"Vec<pallet_oracle:pallet:PrePrice>","keys_id":126,"value_id":616}}
AssetsInfo{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"pallet_oracle:pallet:AssetInfo","keys_id":126,"value_id":619}}
Constants
Name
Type
Value
MaxHistoryU3214000000
TwapWindowU160300
MaxPrePricesU3228000000
MsPerBlockU64e02e000000000000
PalletId[U8; 8]706c745f6f726163
Error Types
Name
Docs
UnknownUnknown
NoPermissionNo Permission
NoStakeNo stake for oracle
StakeLockedStake is locked try again later
NotEnoughStakeNot enough oracle stake for action
NotEnoughFundsNot Enough Funds to complete action
InvalidAssetIdInvalid asset id
AlreadySubmittedPrice already submitted
MaxPricesMax prices already reached
PriceNotRequestedPrice has not been requested
UnsetSignerSigner has not been set
AlreadySetSigner has already been set
UnsetControllerNo controller has been set
ControllerUsedThis controller is already in use
SignerUsedThis signer is already in use
AvoidPanicError avoids a panic
ExceedMaxAnswersMax answers have been exceeded
InvalidMinAnswersInvalid min answers
MaxAnswersLessThanMinAnswers
ExceedThresholdThreshold exceeded
ExceedAssetsCountAsset count exceeded
PriceNotFoundPrice not found
ExceedStakeStake exceeded
MustSumTo100Price weight must sum to 100
DepthTooLargeToo many weighted averages requested
ArithmeticError
BlockIntervalLengthBlock interval is less then stale price
TransferErrorThere was an error transferring
MaxHistory
MaxPrePrices
NoRewardTrackerSetRewarding has not started
AnnualRewardLessThanAlreadyRewardedAnnual rewarding cost too high