tx · ENx5WxuqCzZ9TvVoKJhrwkGGxtYSQ3VQpL2x1y86a2M3 3MyrFJvAepSgPysQDBVquY2fAcKjtu9xpn9: -0.01000000 Waves 2019.10.02 11:30 [701854] smart account 3MyrFJvAepSgPysQDBVquY2fAcKjtu9xpn9 > SELF 0.00000000 Waves
{ "type": 13, "id": "ENx5WxuqCzZ9TvVoKJhrwkGGxtYSQ3VQpL2x1y86a2M3", "fee": 1000000, "feeAssetId": null, "timestamp": 1570004920267, "version": 1, "sender": "3MyrFJvAepSgPysQDBVquY2fAcKjtu9xpn9", "senderPublicKey": "363h6VTsArjVJ2RLmjkjSyB3txqWfhGT3t7sUqwqT5e6", "proofs": [ "2W6axXB7oQiKBDBDpBaMxZT5c41QmwNbC7QidsHb8DYHtEq1Z9VaiYB7yP3pGZYqgEp7Rrb6hA6XAQWzQzKfjtgF" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAFhAAAAAAQAAAANb3JhY2xlQWRkcmVzcwIAAAAjM040VzcxZjhCaURFSDk2RlNteEhINkdCb0FtUmh3OUFFcnEEAAAACWV1cm9QcmljZQQAAAAHJG1hdGNoMAkABB0AAAACCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAADW9yYWNsZUFkZHJlc3MCAAAAA0VVUgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAAgAAAAECAAAAGENvdWxkbid0IGZpbmQgRXVybyBQcmljZQQAAAANZXVyb1ByaWNlTGlzdAkABLUAAAACBQAAAAlldXJvUHJpY2UCAAAAAS4EAAAACmV1cm9QcmljZTIJAAEsAAAAAgkAAZEAAAACBQAAAA1ldXJvUHJpY2VMaXN0AAAAAAAAAAAACQABkQAAAAIFAAAADWV1cm9QcmljZUxpc3QAAAAAAAAAAAEEAAAACmV1cm9QcmljZTMJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAS8AAAACBQAAAApldXJvUHJpY2UyAAAAAAAAAAAEBAAAAAdhbW91bnQxCQAAaAAAAAIAAAAAAAcnDgAAAAAAAAX14QAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACWV1cm9QcmljZQUAAAAJZXVyb1ByaWNlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAApldXJvUHJpY2UyBQAAAApldXJvUHJpY2UyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAApldXJvUHJpY2UzBQAAAApldXJvUHJpY2UzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAdBbW91bnQxBQAAAAdhbW91bnQxBQAAAANuaWwAAAABaQEAAAABYgAAAAEAAAAGY291c3JlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAANFVVIFAAAABmNvdXNyZQUAAAADbmlsAAAAAEt8ckA=", "chainId": 84, "height": 701854, "spentComplexity": 0 } View: original | compacted Prev: none Next: BfxJfGYewidcwUbVyzCZVShpwbHhJZZUrLZBPu8WpbUT 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 = "3N4W71f8BiDEH96FSmxHH6GBoAmRhw9AErq" | |
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 | + | let euroPrice3 = parseIntValue(take(euroPrice2, 4)) | |
18 | + | let amount1 = (120000000 * 100000000) | |
19 | + | WriteSet([DataEntry("euroPrice", euroPrice), DataEntry("euroPrice2", euroPrice2), DataEntry("euroPrice3", euroPrice3), DataEntry("Amount1", amount1)]) | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | @Callable(i) | |
25 | + | func b (cousre) = WriteSet([DataEntry("EUR", cousre)]) | |
26 | + | ||
27 | + |
github/deemru/w8io/026f985 15.33 ms ◑