How are the asset named?

Why?

For a better usability we develop an external actor which reads over the blockchain data and for each Fixed Payout asset we take from the message body the pre-image of asset identifier and from this we formulate the asset name for both asset's positions.

How?

Asset: 0000000062c2fc4b5c705a9afcfe90fdb8fca6fa34ac805f92f44beeeb3fd8a65c32f4b200741f70b7a0e492982df5c2fff6c056f58c0ffdc9e4f769a570cf45c9a4c6f3 has a long name AAPL070121H080121Bull11700 and a short name AAPLBull11700 they differ by the Start and End data in the Fixed Payout message body.
{
"command": "Issue",
"messageBody": {
"dict": [
[
"Start",
{
"u64": 1609977600000
}
],
[
"Expiry",
{
"u64": 1610064000000
}
],
[
"Ticker",
{
"string": "AAPL"
}
],
[
"PriceLow",
{
"u64": 11700
}
],
[
"Collateral",
{
"string": "000000000000000000000000000000000000000000000000000000000000000000000000"
}
],
[
"OraclePubKey",
{
"pk": "037b521e8f8e2f7cc0c2041e52f18b7a02e7232772f989c39c06ba7f02869f2a60"
}
],
[
"OracleContractId",
{
"string": "00000000ea0491531b62de13d9760c6d9dd4046316080d1339daae5d2072811815c6bbe3"
}
]
]
},
Copy link
On this page
Why?
How?