tx · 5xovUmRdDerYDtFhoyHPC8QkaryjWP8AeBZvjJ94umu

3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2:  -0.01400000 Waves

2019.08.10 19:22 [625148] smart account 3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2 > SELF 0.00000000 Waves

{ "type": 13, "id": "5xovUmRdDerYDtFhoyHPC8QkaryjWP8AeBZvjJ94umu", "fee": 1400000, "feeAssetId": null, "timestamp": 1565454136632, "version": 1, "sender": "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2", "senderPublicKey": "F3vhYapU4NBzfM2X4KNkoFcxj3UbYnJjqituG6KE7ZPG", "proofs": [ "2fkZF4WayHB6zoaG9cob1TzPGrYr5yyaURVbG6MXLtVJpeW2xL9qsvqpJywaHSbTkemeJ91Lq3DRvT6QEjZjoiDu" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAABBDTE9TRURGT1JCRVRUSU5HAgAAABBDTE9TRURGT1JCRVRUSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjROUGl2b1RodHNrcjdKeG5OcktMN3M4QnptUkd4OXJUMgEAAAAQZ2V0Q29udGVzdFN0YXR1cwAAAAEAAAAGc3RhdHVzAgAAAA5jb250ZXN0X3N0YXR1cwAAAAEAAAABaQEAAAAQc2V0Q29udGVzdFN0YXR1cwAAAAEAAAAGc3RhdHVzBAAAAAdhY2NvdW50CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAdhY2NvdW50BQAAAAlEQVBQT1dORVIJAAACAAAAAQIAAAAnT25seSBkQVBQIE93bmVyIGNhbiBzZXQgQ29udGVzdCBTdGF0dXMuAwMDCQEAAAACIT0AAAACBQAAAAZzdGF0dXMFAAAAB1JVTk5JTkcJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAQQ0xPU0VERk9SQkVUVElORwcJAQAAAAIhPQAAAAIFAAAABnN0YXR1cwUAAAAGQ0xPU0VEBwkAAAIAAAABCQABLAAAAAICAAAAEEludmFsaWQgc3RhdHVzOiAFAAAABnN0YXR1cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAOY29udGVzdF9zdGF0dXMFAAAABnN0YXR1cwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24GBnpfQYw=", "chainId": 84, "height": 625148, "spentComplexity": 0 } View: original | compacted Prev: 6KbwVDd4d7TUtQUB5WYaA6DXcquQRvU1CQe6fwteaLLm Next: 9jhKM4L4z1DfgZ8gkYbuai8ajGidfHocXq7TGxPDzpPz Diff:
OldNewDifferences
99
1010 let d = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2"
1111
12-func e () = "context_status"
12+func e (f) = "contest_status"
1313
1414
15-@Callable(f)
16-func setContestStatus (g) = {
17- let h = toBase58String(f.caller.bytes)
15+@Callable(g)
16+func setContestStatus (f) = {
17+ let h = toBase58String(g.caller.bytes)
1818 if ((h != d))
1919 then throw("Only dAPP Owner can set Contest Status.")
20- else if (if (if ((g != a))
21- then (g != b)
20+ else if (if (if ((f != a))
21+ then (f != b)
2222 else false)
23- then (g != c)
23+ then (f != c)
2424 else false)
25- then throw(("Invalid status: " + g))
26- else WriteSet([DataEntry("contest_status", g)])
25+ then throw(("Invalid status: " + f))
26+ else WriteSet([DataEntry("contest_status", f)])
2727 }
2828
2929
3434 then true
3535 else $isInstanceOf(k, "DataTransaction"))
3636 then sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey)
37- else false
37+ else if ($isInstanceOf(k, "InvokeScriptTransaction"))
38+ then true
39+ else true
3840 }
3941
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "RUNNING"
55
66 let b = "CLOSEDFORBETTING"
77
88 let c = "CLOSED"
99
1010 let d = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2"
1111
12-func e () = "context_status"
12+func e (f) = "contest_status"
1313
1414
15-@Callable(f)
16-func setContestStatus (g) = {
17- let h = toBase58String(f.caller.bytes)
15+@Callable(g)
16+func setContestStatus (f) = {
17+ let h = toBase58String(g.caller.bytes)
1818 if ((h != d))
1919 then throw("Only dAPP Owner can set Contest Status.")
20- else if (if (if ((g != a))
21- then (g != b)
20+ else if (if (if ((f != a))
21+ then (f != b)
2222 else false)
23- then (g != c)
23+ then (f != c)
2424 else false)
25- then throw(("Invalid status: " + g))
26- else WriteSet([DataEntry("contest_status", g)])
25+ then throw(("Invalid status: " + f))
26+ else WriteSet([DataEntry("contest_status", f)])
2727 }
2828
2929
3030 @Verifier(i)
3131 func j () = {
3232 let k = i
3333 if (if ($isInstanceOf(k, "SetScriptTransaction"))
3434 then true
3535 else $isInstanceOf(k, "DataTransaction"))
3636 then sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey)
37- else false
37+ else if ($isInstanceOf(k, "InvokeScriptTransaction"))
38+ then true
39+ else true
3840 }
3941

github/deemru/w8io/169f3d6 
53.52 ms