subscan
Runtime Modules / OrderBook
Spec Version:
Call Functions
Name
Lookup
Parameters
place_order6c004
update_order6c013
cancel_order6c021
fill_order6c032
set_market_feeder6c041
Events
Name
Lookup
Attributes
OrderCreated6c00["OrderIdNonce","AccountId","CurrencyId","CurrencyId","BalanceOut","BalanceOut","OrderRatio<Ratio>"]
OrderCancelled6c01["AccountId","OrderIdNonce"]
OrderUpdated6c02["OrderIdNonce","AccountId","BalanceOut","OrderRatio<Ratio>","BalanceOut"]
OrderFulfillment6c03["OrderIdNonce","AccountId","AccountId","bool","BalanceOut","CurrencyId","CurrencyId","Ratio"]
FeederChanged6c04["FeederId"]
Storage Functions
Name
Type
Orders{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"pallet_order_book:pallet:Order","keys_id":11,"value_id":689}}
UserOrders{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["AccountId","U64"],"value":"NULL","keys_id":690,"value_id":41}}
OrderIdNonceStore{"origin":"PlainType","plain_type":"U64","PlainTypeValue":11}
MarketFeederId{"origin":"PlainType","plain_type":"centrifuge_runtime:OriginCaller","PlainTypeValue":137}
Constants
Name
Type
Value
MinFulfillmentAmountNativeU1280000e8890423c78a0000000000000000
NativeDecimalsU3212000000
Error Types
Name
Docs
SameCurrencyIdsError when order is placed attempting to exchange currencies of thesame type.
BelowMinFulfillmentAmountError when an account cannot reserve or transfer the amount.
InvalidCurrencyIdError when an order is placed with a currency that is not in the`AssetRegistry`.
OrderNotFoundError when an operation is attempted on an order id that is not instorage.
UnauthorisedError when a user attempts an action on an order they are notauthorised to perform, such as cancelling another accounts order.
FulfillAmountTooLargeError when the provided amount to fulfill is too large for theorder.
MarketFeederNotFoundThere is not feeder set for market conversion ratios
MarketRatioNotFoundExpected a market ratio for the given pair of currencies.