tx · 7Tk61J3xjoFpkVHYo1yMCzjzQugjn7NkouCNf2vswzK9
3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq: -0.01000000 Waves
2019.09.30 19:33 [699427] smart account 3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq > SELF 0.00000000 Waves
{
"type": 13,
"id": "7Tk61J3xjoFpkVHYo1yMCzjzQugjn7NkouCNf2vswzK9",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1569861201301,
"version": 1,
"sender": "3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq",
"senderPublicKey": "59Rtw6Eb7rwVJNzaMB7V5F1UPNidytBqgPZFQaf6zTMZ",
"proofs": [
"Wi8QHsYMGQaUEQnvMH2TexauGE4uv8W3srU2u59ai2tL8dtpmXfCSLH2Zd2ALUotaaTpH9naUogJXqMikoPpRLX"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAABYQAAAAAEAAAADW9yYWNsZUFkZHJlc3MCAAAAIzNQSDFKWjhLOVRqS1VQRHU2ZGpYVkFOZEtuZXVIYWR6MWlVBAAAAAlldXJvUHJpY2UEAAAAByRtYXRjaDAJAAQdAAAAAgkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAA1vcmFjbGVBZGRyZXNzAgAAAANFVVIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQkAAAIAAAABAgAAABhDb3VsZG4ndCBmaW5kIEV1cm8gUHJpY2UEAAAADWV1cm9QcmljZUxpc3QJAAS1AAAAAgUAAAAJZXVyb1ByaWNlAgAAAAEuBAAAAApldXJvUHJpY2UyCQABLAAAAAIJAAGRAAAAAgUAAAANZXVyb1ByaWNlTGlzdAAAAAAAAAAAAAkAAZEAAAACBQAAAA1ldXJvUHJpY2VMaXN0AAAAAAAAAAABCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAlldXJvUHJpY2UFAAAACWV1cm9QcmljZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAKZXVyb1ByaWNlMgUAAAAKZXVyb1ByaWNlMgUAAAADbmlsAAAAACStj8g=",
"chainId": 84,
"height": 699427,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 9SHvECp18NafsbwNEZCf8w1Fo7uP1Mdyn9P7FzrycHuv
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func a () = { |
---|
| 8 | + | let oracleAddress = "3PH1JZ8K9TjKUPDu6djXVANdKneuHadz1iU" |
---|
| 9 | + | let euroPrice = match getString(addressFromStringValue(oracleAddress), "EUR") { |
---|
| 10 | + | case a: String => |
---|
| 11 | + | a |
---|
| 12 | + | case _ => |
---|
| 13 | + | throw("Couldn't find Euro Price") |
---|
| 14 | + | } |
---|
| 15 | + | let euroPriceList = split(euroPrice, ".") |
---|
| 16 | + | let euroPrice2 = (euroPriceList[0] + euroPriceList[1]) |
---|
| 17 | + | WriteSet([DataEntry("euroPrice", euroPrice), DataEntry("euroPrice2", euroPrice2)]) |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|