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:
Old | New | | Differences |
---|
9 | 9 | | |
---|
10 | 10 | | let DAPPOWNER = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2" |
---|
11 | 11 | | |
---|
12 | | - | func getContextStatus () = "context_status" |
---|
| 12 | + | func getContestStatus (status) = "contest_status" |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
|
31 | 31 | | func verify () = match tx { |
---|
32 | 32 | | case _: SetScriptTransaction|DataTransaction => |
---|
33 | 33 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 34 | + | case _: InvokeScriptTransaction => |
---|
| 35 | + | true |
---|
34 | 36 | | case _ => |
---|
35 | | - | false |
---|
| 37 | + | true |
---|
36 | 38 | | } |
---|
37 | 39 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let RUNNING = "RUNNING" |
---|
5 | 5 | | |
---|
6 | 6 | | let CLOSEDFORBETTING = "CLOSEDFORBETTING" |
---|
7 | 7 | | |
---|
8 | 8 | | let CLOSED = "CLOSED" |
---|
9 | 9 | | |
---|
10 | 10 | | let DAPPOWNER = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2" |
---|
11 | 11 | | |
---|
12 | | - | func getContextStatus () = "context_status" |
---|
| 12 | + | func getContestStatus (status) = "contest_status" |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func setContestStatus (status) = { |
---|
17 | 17 | | let account = toBase58String(i.caller.bytes) |
---|
18 | 18 | | if ((account != DAPPOWNER)) |
---|
19 | 19 | | then throw("Only dAPP Owner can set Contest Status.") |
---|
20 | 20 | | else if (if (if ((status != RUNNING)) |
---|
21 | 21 | | then (status != CLOSEDFORBETTING) |
---|
22 | 22 | | else false) |
---|
23 | 23 | | then (status != CLOSED) |
---|
24 | 24 | | else false) |
---|
25 | 25 | | then throw(("Invalid status: " + status)) |
---|
26 | 26 | | else WriteSet([DataEntry("contest_status", status)]) |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | 30 | | @Verifier(tx) |
---|
31 | 31 | | func verify () = match tx { |
---|
32 | 32 | | case _: SetScriptTransaction|DataTransaction => |
---|
33 | 33 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 34 | + | case _: InvokeScriptTransaction => |
---|
| 35 | + | true |
---|
34 | 36 | | case _ => |
---|
35 | | - | false |
---|
| 37 | + | true |
---|
36 | 38 | | } |
---|
37 | 39 | | |
---|