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 DAPPOWNER = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2"
1111
12-func getContextStatus () = "context_status"
12+func getContestStatus (status) = "contest_status"
1313
1414
1515 @Callable(i)
3131 func verify () = match tx {
3232 case _: SetScriptTransaction|DataTransaction =>
3333 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
34+ case _: InvokeScriptTransaction =>
35+ true
3436 case _ =>
35- false
37+ true
3638 }
3739
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RUNNING = "RUNNING"
55
66 let CLOSEDFORBETTING = "CLOSEDFORBETTING"
77
88 let CLOSED = "CLOSED"
99
1010 let DAPPOWNER = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2"
1111
12-func getContextStatus () = "context_status"
12+func getContestStatus (status) = "contest_status"
1313
1414
1515 @Callable(i)
1616 func setContestStatus (status) = {
1717 let account = toBase58String(i.caller.bytes)
1818 if ((account != DAPPOWNER))
1919 then throw("Only dAPP Owner can set Contest Status.")
2020 else if (if (if ((status != RUNNING))
2121 then (status != CLOSEDFORBETTING)
2222 else false)
2323 then (status != CLOSED)
2424 else false)
2525 then throw(("Invalid status: " + status))
2626 else WriteSet([DataEntry("contest_status", status)])
2727 }
2828
2929
3030 @Verifier(tx)
3131 func verify () = match tx {
3232 case _: SetScriptTransaction|DataTransaction =>
3333 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
34+ case _: InvokeScriptTransaction =>
35+ true
3436 case _ =>
35- false
37+ true
3638 }
3739

github/deemru/w8io/169f3d6 
26.69 ms