Repository navigation
0.6.0
Synced to ocp-protobuf-api@e3d25a85,
picking up #67 (docs only) and
#68. Only balance.v1 moved.
GetBalances can now report fiat values alongside core-mint values. The change is opt-in per
request, so the upgrade is free: a caller that sends no currency codes gets exactly what it got
before.
Added
GetBalancesRequest.currency_codes(field 3), arepeated stringof lowercase ISO 4217 codes
such as"usd". At most 256, no duplicates, each matching^[a-z]{3,4}$. Empty means core-mint
values only.OwnerBalance.fiat_values_by_currency(field 4), amap<string, double>holding the owner's
total across all balances, keyed by currency code.MintBalance.fiat_values_by_currency(field 3), the same map for a single mint's balance.
Both maps are populated only for the codes the request asked for. A code the caller did not request
is absent, not zero.
Unchanged
Nothing was renumbered, and nothing existing changed type or meaning. The new fields take the next
free number in each message. No service, RPC, message or enum case was removed. Everything else in
the diff is comments.