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 d = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2" |
---|
11 | 11 | | |
---|
12 | | - | func e () = "context_status" |
---|
| 12 | + | func e (f) = "contest_status" |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
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) |
---|
18 | 18 | | if ((h != d)) |
---|
19 | 19 | | 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) |
---|
22 | 22 | | else false) |
---|
23 | | - | then (g != c) |
---|
| 23 | + | then (f != c) |
---|
24 | 24 | | 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)]) |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
|
34 | 34 | | then true |
---|
35 | 35 | | else $isInstanceOf(k, "DataTransaction")) |
---|
36 | 36 | | then sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
37 | | - | else false |
---|
| 37 | + | else if ($isInstanceOf(k, "InvokeScriptTransaction")) |
---|
| 38 | + | then true |
---|
| 39 | + | else true |
---|
38 | 40 | | } |
---|
39 | 41 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "RUNNING" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "CLOSEDFORBETTING" |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "CLOSED" |
---|
9 | 9 | | |
---|
10 | 10 | | let d = "3N4NPivoThtskr7JxnNrKL7s8BzmRGx9rT2" |
---|
11 | 11 | | |
---|
12 | | - | func e () = "context_status" |
---|
| 12 | + | func e (f) = "contest_status" |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
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) |
---|
18 | 18 | | if ((h != d)) |
---|
19 | 19 | | 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) |
---|
22 | 22 | | else false) |
---|
23 | | - | then (g != c) |
---|
| 23 | + | then (f != c) |
---|
24 | 24 | | 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)]) |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | 30 | | @Verifier(i) |
---|
31 | 31 | | func j () = { |
---|
32 | 32 | | let k = i |
---|
33 | 33 | | if (if ($isInstanceOf(k, "SetScriptTransaction")) |
---|
34 | 34 | | then true |
---|
35 | 35 | | else $isInstanceOf(k, "DataTransaction")) |
---|
36 | 36 | | then sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
37 | | - | else false |
---|
| 37 | + | else if ($isInstanceOf(k, "InvokeScriptTransaction")) |
---|
| 38 | + | then true |
---|
| 39 | + | else true |
---|
38 | 40 | | } |
---|
39 | 41 | | |
---|