tx · FeWUcEb6KDFQVxRM8a39mbS1vvnKKKc3wGRgzGU5RNj7
3MySAzFQjmcgfhBZvgnBs9DrFHU5ACm6Sfj: -0.01000000 Waves
2020.05.05 19:29 [985052] smart account 3MySAzFQjmcgfhBZvgnBs9DrFHU5ACm6Sfj > SELF 0.00000000 Waves
{
"type": 13,
"id": "FeWUcEb6KDFQVxRM8a39mbS1vvnKKKc3wGRgzGU5RNj7",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1588696214706,
"version": 1,
"sender": "3MySAzFQjmcgfhBZvgnBs9DrFHU5ACm6Sfj",
"senderPublicKey": "2uJ1bUjEoCbZs6GurQQRMVDb7TQ1z9y4yb4SPxk1xRjx",
"proofs": [
"hEwrpyKHgR1G1UwtW7Xuiy7GFA8d2zdnPVbKjaXz1Aq48pzFCW1k32zJvVMTHLwKhKFK6Nq3BYpo8BtfjNB2TgX"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAABBvcmFjbGVBY2NvdW50S2V5AgAAAA1vcmFjbGVBY2NvdW50AAAAAA5sYXN0UHJpY2VJZEtleQIAAAALbGFzdFByaWNlSWQAAAAADW9yYWNsZUFjY291bnQJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwUAAAAQb3JhY2xlQWNjb3VudEtleQAAAAALbGFzdFByaWNlSWQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMFAAAADmxhc3RQcmljZUlkS2V5AAAAAgAAAAFpAQAAAARpbml0AAAAAgAAAAFvAAAACnN0YXJ0UHJpY2UJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEG9yYWNsZUFjY291bnRLZXkFAAAAAW8JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADmxhc3RQcmljZUlkS2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAEwBQAAAApzdGFydFByaWNlBQAAAANuaWwAAAABaQEAAAAJcG9zdFByaWNlAAAAAQAAAAVwcmljZQMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAANb3JhY2xlQWNjb3VudAkAAAIAAAABAgAAAApkaXNhbGxvd2VkBAAAAApjdXJQcmljZUlkCQAAZAAAAAIFAAAAC2xhc3RQcmljZUlkAAAAAAAAAAABCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA5sYXN0UHJpY2VJZEtleQUAAAAKY3VyUHJpY2VJZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAAaQAAAABBQAAAApjdXJQcmljZUlkBQAAAAVwcmljZQUAAAADbmlsAAAAAK6lPnw=",
"chainId": 84,
"height": 985052,
"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 | + | |
---|