resolve_fee_assets
Parses a list of fee_asset
s, and returns a map of all the ones that could be mapped to actual assets. This does not throw if an asset has not yet been registered, allowing assets to be added to the config a long time before actually registering them.
This function does not discern when a fee_asset
entry is invalid. This is because it will typically be called after the fee_asset
has been parsed and values have been fixed when possible. If improper input is provided, this function will behave this way:
if
id
is present, other values will be ignoredif
id
is missing,name
andblockchain_rid
must both be present - it will throw otherwise
Return
a map of asset ID to fee amount to pay for that asset
Parameters
the list of fee_asset
s to parse.
See also
for more information on when it is invalid.