tx · ZQhTyvEZuKK3tWjndxi92yWGtnXup4Vs8xp5DTjErqu
3N4EDkCXaiQz6jkoG9SvNaPHgMtnSTebeDZ: -0.01000000 Waves
2020.05.26 18:37 [1015488] smart account 3N4EDkCXaiQz6jkoG9SvNaPHgMtnSTebeDZ > SELF 0.00000000 Waves
{
"type": 13,
"id": "ZQhTyvEZuKK3tWjndxi92yWGtnXup4Vs8xp5DTjErqu",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1590507496630,
"version": 1,
"sender": "3N4EDkCXaiQz6jkoG9SvNaPHgMtnSTebeDZ",
"senderPublicKey": "xYrnQ8jhsLNt8tSRkpsfyK581aR7cggjfSU9zycXgyp",
"proofs": [
"FSmeYydLpFjzLR44hQB56afEcUWfsd6JUHeEr7Fvy3nGmsRJeKL5kFh8F2kN7RbNWhLYV5pH7LvzisRRJXk5X9k"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAABBvcmFjbGVBY2NvdW50S2V5AgAAAA1vcmFjbGVBY2NvdW50AAAAAA5sYXN0UHJpY2VJZEtleQIAAAALbGFzdFByaWNlSWQAAAAADW9yYWNsZUFjY291bnQJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwUAAAAQb3JhY2xlQWNjb3VudEtleQAAAAALbGFzdFByaWNlSWQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMFAAAADmxhc3RQcmljZUlkS2V5AAAAAgAAAAFpAQAAAARpbml0AAAAAgAAAAFvAAAACnN0YXJ0UHJpY2UJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEG9yYWNsZUFjY291bnRLZXkFAAAAAW8JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADmxhc3RQcmljZUlkS2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAEwBQAAAApzdGFydFByaWNlBQAAAANuaWwAAAABaQEAAAAJcG9zdFByaWNlAAAAAQAAAAVwcmljZQMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAANb3JhY2xlQWNjb3VudAkAAAIAAAABAgAAAApkaXNhbGxvd2VkBAAAAApjdXJQcmljZUlkCQAAZAAAAAIFAAAAC2xhc3RQcmljZUlkAAAAAAAAAAABCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA5sYXN0UHJpY2VJZEtleQUAAAAKY3VyUHJpY2VJZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAAaQAAAABBQAAAApjdXJQcmljZUlkBQAAAAVwcmljZQUAAAADbmlsAAAAAK6lPnw=",
"chainId": 84,
"height": 1015488,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let a = "oracleAccount" |
---|
| 5 | + | |
---|
| 6 | + | let b = "lastPriceId" |
---|
| 7 | + | |
---|
| 8 | + | let c = addressFromStringValue(getStringValue(this, a)) |
---|
| 9 | + | |
---|
| 10 | + | let d = getIntegerValue(this, b) |
---|
| 11 | + | |
---|
| 12 | + | @Callable(e) |
---|
| 13 | + | func init (f,g) = WriteSet([DataEntry(a, f), DataEntry(b, 0), DataEntry("0", g)]) |
---|
| 14 | + | |
---|
| 15 | + | |
---|
| 16 | + | |
---|
| 17 | + | @Callable(e) |
---|
| 18 | + | func postPrice (h) = if ((e.caller != c)) |
---|
| 19 | + | then throw("disallowed") |
---|
| 20 | + | else { |
---|
| 21 | + | let i = (d + 1) |
---|
| 22 | + | WriteSet([DataEntry(b, i), DataEntry(toString(i), h)]) |
---|
| 23 | + | } |
---|
| 24 | + | |
---|
| 25 | + | |
---|