tx · EZxJScqqseu3gGmUZqAvVdXcQ2PTXkaZx68qAXLsdpsB

3NBEbFU6dKpoAcsbaEK2aC62UQMjYFW4xiL:  -0.01400000 Waves

2021.02.13 13:06 [1396245] smart account 3NBEbFU6dKpoAcsbaEK2aC62UQMjYFW4xiL > SELF 0.00000000 Waves

{ "type": 13, "id": "EZxJScqqseu3gGmUZqAvVdXcQ2PTXkaZx68qAXLsdpsB", "fee": 1400000, "feeAssetId": null, "timestamp": 1613210781727, "version": 2, "chainId": 84, "sender": "3NBEbFU6dKpoAcsbaEK2aC62UQMjYFW4xiL", "senderPublicKey": "AwmS57W97dpK3Bs6tsewG3YaYgJukDtmEZFbG1oQTV4T", "proofs": [ "xoWZXwuyu8kAJq5eNqo3Rb2UrcjToDmbcZyuDvRtamyMPRXCfmEQgXgyVb3fYuojvsEnGGBxiDNVxi6MGFEQrdQ" ], "script": "base64:AAIDAAAAAAAAAA4IARIDCgEIEgASAwoBAQAAAAkAAAAAB1JVTk5JTkcCAAAAB1JVTk5JTkcAAAAABkNMT1NFRAIAAAAGQ0xPU0VEAAAAAAhDQU5DRUxFRAIAAAAIQ0FOQ0VMRUQAAAAACURBUFBPV05FUgIAAAAjM05CRWJGVTZkS3BvQWNzYmFFSzJhQzYyVVFNallGVzR4aUwAAAAABVdBVkVTAgAAAAVXQVZFUwAAAAAETk9ORQIAAAAETk9ORQAAAAADRkVFAAAAAAAADbugAQAAAAtnZXROdW1CeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAI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dCAxIGJldC4JAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABGJldF8JAAGkAAAAAQUAAAARY29udGVzdEN1cnJOdW1iZXICAAAAAV8JAAGkAAAAAQUAAAANY3VycmVuY3lWYWx1ZQUAAAAHYWNjb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAhjb250ZXN0XwkAAaQAAAABBQAAABFjb250ZXN0Q3Vyck51bWJlcgIAAAABXwUAAAAHYWNjb3VudAIAAAAFX2JldHMJAABkAAAAAgUAAAARYWNjb3VudEJldHNOdW1iZXIAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBgbxjBw8", "height": 1396245, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9eNbgoHtgZe7fbVb3k3pi5Bw1PZDtn5oh7oXcF8uJLi9 Next: ArekSYd3TjA3cAGzHFvyWjxWG8bFGLhcUgT3psaVZ9WJ Diff:
OldNewDifferences
77
88 let c = "CANCELED"
99
10-let d = "..."
10+let d = "3NBEbFU6dKpoAcsbaEK2aC62UQMjYFW4xiL"
1111
1212 let e = "WAVES"
1313
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "RUNNING"
55
66 let b = "CLOSED"
77
88 let c = "CANCELED"
99
10-let d = "..."
10+let d = "3NBEbFU6dKpoAcsbaEK2aC62UQMjYFW4xiL"
1111
1212 let e = "WAVES"
1313
1414 let f = "NONE"
1515
1616 let g = 900000
1717
1818 func h (i) = {
1919 let j = {
2020 let k = getInteger(this, i)
2121 if ($isInstanceOf(k, "Int"))
2222 then {
2323 let l = k
2424 l
2525 }
2626 else 0
2727 }
2828 j
2929 }
3030
3131
3232 func m (i) = {
3333 let n = {
3434 let k = getString(this, i)
3535 if ($isInstanceOf(k, "String"))
3636 then {
3737 let l = k
3838 l
3939 }
4040 else f
4141 }
4242 n
4343 }
4444
4545
4646 @Callable(o)
4747 func setContestStatus (p) = {
4848 let q = toBase58String(o.caller.bytes)
4949 let r = h("contest_currentnumber")
5050 if ((q != d))
5151 then throw("Only dAPP Owner can set Contest Status.")
5252 else if (if ((p != c))
5353 then (p != b)
5454 else false)
5555 then throw(("Invalid status: " + p))
5656 else WriteSet([DataEntry((("contest_" + toString(r)) + "_status"), p)])
5757 }
5858
5959
6060
6161 @Callable(o)
6262 func setContestConfiguration () = {
6363 let q = toBase58String(o.caller.bytes)
6464 let r = h("contest_currentnumber")
6565 let s = m((("contest_" + toString(r)) + "_status"))
6666 let t = (r + 1)
6767 let u = wavesBalance(this)
6868 if ((q != d))
6969 then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + q) + " dapp owner: ") + d))
7070 else if ((s == a))
7171 then throw(("You cannot configure a new Contest while old Contest status is: " + s))
7272 else {
7373 let v = (height + (6 * 1440))
7474 WriteSet([DataEntry("contest_currentnumber", t), DataEntry((("contest_" + toString(t)) + "_finishheight"), v), DataEntry((("contest_" + toString(t)) + "_status"), a), DataEntry((("contest_" + toString(t)) + "_betcounter"), 0)])
7575 }
7676 }
7777
7878
7979
8080 @Callable(o)
8181 func bet (w) = {
8282 let q = toBase58String(o.caller.bytes)
8383 let x = extract(o.payment)
8484 let r = h("contest_currentnumber")
8585 let y = h((("contest_" + toString(r)) + "_startheight"))
8686 let v = h((("contest_" + toString(r)) + "_finishheight"))
8787 let s = m((("contest_" + toString(r)) + "_status"))
8888 let p = m((("contest_" + toString(r)) + "_status"))
8989 let z = h((((("contest_" + toString(r)) + "_") + q) + "_bets"))
9090 let A = m(((("bet_" + toString(r)) + "_") + toString(w)))
9191 if ((height > (v - (2 * 1440))))
9292 then throw("You cannot bet anymore at this height.")
9393 else if ((s != a))
9494 then throw(("Invalid status: you cannot bet now, contest status is: " + s))
9595 else if (if ((A != f))
9696 then (A != q)
9797 else false)
9898 then throw((("Another user: " + A) + " did bet already on this rate."))
9999 else if ((z >= 1))
100100 then throw("You can do at most 1 bet.")
101101 else WriteSet([DataEntry(((("bet_" + toString(r)) + "_") + toString(w)), q), DataEntry((((("contest_" + toString(r)) + "_") + q) + "_bets"), (z + 1))])
102102 }
103103
104104
105105 @Verifier(B)
106106 func C () = {
107107 let k = B
108108 if (if ($isInstanceOf(k, "SetScriptTransaction"))
109109 then true
110110 else $isInstanceOf(k, "DataTransaction"))
111111 then sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey)
112112 else if ($isInstanceOf(k, "InvokeScriptTransaction"))
113113 then true
114114 else true
115115 }
116116

github/deemru/w8io/169f3d6 
39.40 ms