tx · 3i8GA1dqqipheVZyMeLm8Gn13BpDtZdWr4hBipawPunJ
3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq: -0.01500000 Waves
2019.09.30 20:02 [699458] smart account 3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq > SELF 0.00000000 Waves
{
"type": 13,
"id": "3i8GA1dqqipheVZyMeLm8Gn13BpDtZdWr4hBipawPunJ",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1569863036389,
"version": 1,
"sender": "3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq",
"senderPublicKey": "59Rtw6Eb7rwVJNzaMB7V5F1UPNidytBqgPZFQaf6zTMZ",
"proofs": [
"3uZcckYqJmBow2UF8x4nDEgfFjsgFCVA4wgXYh6PMZXTHJWFwogTuX3ScyksaKRFNz1qnWLXxobkMeR4tXiAtDMc"
],
"script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAFhAAAAAAQAAAANb3JhY2xlQWRkcmVzcwIAAAAjM1BIMUpaOEs5VGpLVVBEdTZkalhWQU5kS25ldUhhZHoxaVUEAAAACWV1cm9QcmljZQQAAAAHJG1hdGNoMAkABB0AAAACCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAADW9yYWNsZUFkZHJlc3MCAAAAA0VVUgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAAgAAAAECAAAAGENvdWxkbid0IGZpbmQgRXVybyBQcmljZQQAAAANZXVyb1ByaWNlTGlzdAkABLUAAAACBQAAAAlldXJvUHJpY2UCAAAAAS4EAAAACmV1cm9QcmljZTIJAAEsAAAAAgkAAZEAAAACBQAAAA1ldXJvUHJpY2VMaXN0AAAAAAAAAAAACQABkQAAAAIFAAAADWV1cm9QcmljZUxpc3QAAAAAAAAAAAEJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACWV1cm9QcmljZQUAAAAJZXVyb1ByaWNlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAApldXJvUHJpY2UyBQAAAApldXJvUHJpY2UyBQAAAANuaWwAAAABaQEAAAABYgAAAAEAAAAGY291c3JlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAANFVVIFAAAABmNvdXNyZQUAAAADbmlsAAAAAAaML4M=",
"chainId": 84,
"height": 699458,
"spentComplexity": 0
}
View: original | compacted
Prev: 9SHvECp18NafsbwNEZCf8w1Fo7uP1Mdyn9P7FzrycHuv
Next: 6csCjCKgoMLdMzckrdNqEuHvvB6qHtXWN6cKT1rbst5F
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func a (ab) = { |
---|
| 7 | + | func a () = { |
---|
8 | 8 | | let oracleAddress = "3PH1JZ8K9TjKUPDu6djXVANdKneuHadz1iU" |
---|
9 | 9 | | let euroPrice = match getString(addressFromStringValue(oracleAddress), "EUR") { |
---|
10 | 10 | | case a: String => |
---|
|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(i) |
---|
| 23 | + | func b (cousre) = WriteSet([DataEntry("EUR", cousre)]) |
---|
| 24 | + | |
---|
| 25 | + | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func a (ab) = { |
---|
| 7 | + | func a () = { |
---|
8 | 8 | | let oracleAddress = "3PH1JZ8K9TjKUPDu6djXVANdKneuHadz1iU" |
---|
9 | 9 | | let euroPrice = match getString(addressFromStringValue(oracleAddress), "EUR") { |
---|
10 | 10 | | case a: String => |
---|
11 | 11 | | a |
---|
12 | 12 | | case _ => |
---|
13 | 13 | | throw("Couldn't find Euro Price") |
---|
14 | 14 | | } |
---|
15 | 15 | | let euroPriceList = split(euroPrice, ".") |
---|
16 | 16 | | let euroPrice2 = (euroPriceList[0] + euroPriceList[1]) |
---|
17 | 17 | | WriteSet([DataEntry("euroPrice", euroPrice), DataEntry("euroPrice2", euroPrice2)]) |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(i) |
---|
| 23 | + | func b (cousre) = WriteSet([DataEntry("EUR", cousre)]) |
---|
| 24 | + | |
---|
| 25 | + | |
---|