Name | Lookup | Parameters | |
|---|---|---|---|
| add_oracle | ca00 | 2 | |
| remove_oracle | ca01 | 2 | |
| update_bifrost_oracle | ca02 | 3 | |
| set_external_oracle | ca06 | 4 | |
| set_external_oracle_by_ids | ca08 | 4 | |
| register_external_source | ca03 | 1 | |
| remove_external_source | ca05 | 1 | |
| add_authorized_account | ca04 | 3 | |
| remove_authorized_account | ca07 | 3 |
Name | Lookup | Attributes | |
|---|---|---|---|
| AddedToWhitelist | ca00 | ["Source","(AssetId, AssetId)"] | |
| RemovedFromWhitelist | ca01 | ["Source","(AssetId, AssetId)"] | |
| OracleUpdated | ca02 | ["Source","(AssetId, AssetId)","BTreeMap<OraclePeriod, Price>"] | |
| ExternalSourceRegistered | ca03 | ["Source"] | |
| ExternalSourceRemoved | ca04 | ["Source"] | |
| AuthorizedAccountAdded | ca05 | ["Source","(AssetId, AssetId)","AccountId"] | |
| AuthorizedAccountRemoved | ca06 | ["Source","(AssetId, AssetId)","AccountId"] |
Name | Type | |
|---|---|---|
| Accumulator | {"origin":"PlainType","plain_type":"Vec<Tuple:Tuple:[U8; 8]Tuple:U32U32pallet_ema_oracle:types:OracleEntry>","PlainTypeValue":912} | |
| Oracles | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat","Twox64Concat"],"key_vec":["[U8; 8]","Tuple:U32U32","hydradx_traits:oracle:OraclePeriod"],"value":"Tuple:pallet_ema_oracle:types:OracleEntryU32","keys_id":919,"value_id":920}} | |
| WhitelistedAssets | {"origin":"PlainType","plain_type":"Vec<Tuple:[U8; 8]Tuple:U32U32>","PlainTypeValue":921} | |
| ExternalSources | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 8]"],"value":"NULL","keys_id":128,"value_id":37}} | |
| AuthorizedAccounts | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat","Twox64Concat"],"key_vec":["[U8; 8]","Tuple:U32U32","AccountId"],"value":"NULL","keys_id":924,"value_id":37}} |
Name | Type | Value | |
|---|---|---|---|
| MaxUniqueEntries | U32 | 28000000 |
Name | Docs |
|---|---|
| TooManyUniqueEntries | |
| OnTradeValueZero | |
| OracleNotFound | |
| AssetNotFound | Asset not found |
| SourceAlreadyRegistered | The external source is already registered. |
| SourceNotFound | The external source was not found. |
| NotAuthorized | The caller is not authorized for the given (source, pair). |
| PriceIsZero | Price must not be zero. |