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.
1
{
2
"command": "Issue",
3
"messageBody": {
4
"dict": [
5
[
6
"Start",
7
{
8
"u64": 1609977600000
9
}
10
],
11
[
12
"Expiry",
13
{
14
"u64": 1610064000000
15
}
16
],
17
[
18
"Ticker",
19
{
20
"string": "AAPL"
21
}
22
],
23
[
24
"PriceLow",
25
{
26
"u64": 11700
27
}
28
],
29
[
30
"Collateral",
31
{
32
"string": "000000000000000000000000000000000000000000000000000000000000000000000000"
33
}
34
],
35
[
36
"OraclePubKey",
37
{
38
"pk": "037b521e8f8e2f7cc0c2041e52f18b7a02e7232772f989c39c06ba7f02869f2a60"
39
}
40
],
41
[
42
"OracleContractId",
43
{
44
"string": "00000000ea0491531b62de13d9760c6d9dd4046316080d1339daae5d2072811815c6bbe3"
45
}
46
]
47
]
48
},
Copied!
Last modified 2mo ago
Copy link
Contents
Why?
How?