tx · HRNsgHZU8NC3zVxG6riA8KcdVKuKAf9WpbpN649kizQb 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo: -0.01400000 Waves 2019.08.18 13:11 [636439] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves
{ "type": 13, "id": "HRNsgHZU8NC3zVxG6riA8KcdVKuKAf9WpbpN649kizQb", "fee": 1400000, "feeAssetId": null, "timestamp": 1566123051434, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "28jtsTU8XABMECRUyAQeBgmGPRtsmENGZth63hLHgGsmz3VQWNjB92AhGaFs69ZR3KeUdtvVeFqyVPp4gk9x86Rb" ], "script": "base64:AAIDAAAAAAAAAAAAAAAPAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAMT1JBQ0xFV0FMTEVUAgAAACMzTkFjb2VXZFVUV244Y3NYSlBHNDd2MUZqdGpjZnF4YjV0dQAAAAANV0xUQlVSTldBTExFVAIAAAAjM01wQ2JERGprU3JmUzFYa1BwbTcxaVpqNURRMVJwQlJSaHQAAAAADldBVkVTS0lUV0FMTEVUAgAAACMzTXFQcGJXUFJzWkZvVDlYNzRxV29jVTRCcHlwR0VQaGlDbgAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAA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636439, "spentComplexity": 0 } View: original | compacted Prev: 2PiRHBTCmdHJ1e6Jqb2cY7AAoZo1TcrkLEN9G8miWtV8 Next: 6sWGPREG5CLnuHtm9nXhPMJA8rEmCmHTU1GWyPs4J6M8 Diff:
Old | New | Differences | |
---|---|---|---|
149 | 149 | let Q = wavesBalance(this) | |
150 | 150 | let C = p((("contest_" + toString(s)) + "_status")) | |
151 | 151 | let R = WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), O), DataEntry((("contest_" + toString(s)) + "_currencyrate"), M), DataEntry((("contest_" + toString(s)) + "_height"), height)]) | |
152 | - | if ((P > height)) | |
152 | + | if (if ((P > height)) | |
153 | + | then (B != c) | |
154 | + | else false) | |
153 | 155 | then throw(("Cannot close the contest before height:" + toString(P))) | |
154 | 156 | else if ((C != a)) | |
155 | 157 | then throw(("Cannot close a contest in status: " + C)) |
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 = "CLOSED" | |
7 | 7 | ||
8 | 8 | let c = "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo" | |
9 | 9 | ||
10 | 10 | let d = "3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu" | |
11 | 11 | ||
12 | 12 | let e = "3MpCbDDjkSrfS1XkPpm71iZj5DQ1RpBRRht" | |
13 | 13 | ||
14 | 14 | let f = "3MqPpbWPRsZFoT9X74qWocU4BpypGEPhiCn" | |
15 | 15 | ||
16 | 16 | let g = "WAVES" | |
17 | 17 | ||
18 | 18 | let h = "NONE" | |
19 | 19 | ||
20 | 20 | let i = 900000 | |
21 | 21 | ||
22 | 22 | let j = base58'7KAXNTswj6947a6cVpGhVrh1utWpLcjwf8AFpWCtuMT7' | |
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = { | |
26 | 26 | let n = getInteger(this, l) | |
27 | 27 | if ($isInstanceOf(n, "Int")) | |
28 | 28 | then { | |
29 | 29 | let o = n | |
30 | 30 | o | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | m | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func p (l) = { | |
39 | 39 | let q = { | |
40 | 40 | let n = getString(this, l) | |
41 | 41 | if ($isInstanceOf(n, "String")) | |
42 | 42 | then { | |
43 | 43 | let o = n | |
44 | 44 | o | |
45 | 45 | } | |
46 | 46 | else h | |
47 | 47 | } | |
48 | 48 | q | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func r () = { | |
53 | 53 | let s = k("contest_currentnumber") | |
54 | 54 | p((("contest_" + toString(s)) + "_status")) | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func t (u) = { | |
59 | 59 | let s = k("contest_currentnumber") | |
60 | 60 | p((((("bet_" + toString(s)) + "_") + toString(u)) + "_owner")) | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func v () = { | |
65 | 65 | let w = extract(addressFromString(d)) | |
66 | 66 | let x = { | |
67 | 67 | let n = getInteger(w, "waves_usd_2") | |
68 | 68 | if ($isInstanceOf(n, "Int")) | |
69 | 69 | then { | |
70 | 70 | let o = n | |
71 | 71 | o | |
72 | 72 | } | |
73 | 73 | else 0 | |
74 | 74 | } | |
75 | 75 | x | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | @Callable(y) | |
80 | 80 | func setContestStatus (z,A) = { | |
81 | 81 | let B = toBase58String(y.caller.bytes) | |
82 | 82 | if ((B != c)) | |
83 | 83 | then throw("Only dAPP Owner can set Contest Status.") | |
84 | 84 | else if (if ((A != a)) | |
85 | 85 | then (A != b) | |
86 | 86 | else false) | |
87 | 87 | then throw(("Invalid status: " + A)) | |
88 | 88 | else WriteSet([DataEntry((("contest_" + toString(z)) + "_status"), A)]) | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(y) | |
94 | 94 | func setContestConfiguration () = { | |
95 | 95 | let B = toBase58String(y.caller.bytes) | |
96 | 96 | let s = k("contest_currentnumber") | |
97 | 97 | let C = p((("contest_" + toString(s)) + "_status")) | |
98 | 98 | let D = (s + 1) | |
99 | 99 | if ((B != c)) | |
100 | 100 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + B) + " dapp owner: ") + c)) | |
101 | 101 | else if ((C == a)) | |
102 | 102 | then throw(("You cannot configure a new Contest while old Contest status is: " + C)) | |
103 | 103 | else { | |
104 | 104 | let E = (height + (7 * 1440)) | |
105 | 105 | WriteSet([DataEntry("contest_currentnumber", D), DataEntry((("contest_" + toString(D)) + "_finishheight"), E), DataEntry((("contest_" + toString(D)) + "_status"), a), DataEntry((("contest_" + toString(D)) + "_votecounter"), 0)]) | |
106 | 106 | } | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(y) | |
112 | 112 | func bet (F) = { | |
113 | 113 | let B = toBase58String(y.caller.bytes) | |
114 | 114 | let G = extract(y.payment) | |
115 | 115 | let s = k("contest_currentnumber") | |
116 | 116 | let H = k((("contest_" + toString(s)) + "_startheight")) | |
117 | 117 | let E = k((("contest_" + toString(s)) + "_finishheight")) | |
118 | 118 | let I = k((("contest_" + toString(s)) + "_votecounter")) | |
119 | 119 | let C = p((("contest_" + toString(s)) + "_status")) | |
120 | 120 | let J = (I + 1) | |
121 | 121 | let A = p((("contest_" + toString(s)) + "_status")) | |
122 | 122 | let K = k(((("bet_" + toString(s)) + "_") + F)) | |
123 | 123 | let L = t(K) | |
124 | 124 | if ((height > (E - (2 * 1440)))) | |
125 | 125 | then throw("You cannot bet anymore at this height.") | |
126 | 126 | else if ((C != a)) | |
127 | 127 | then throw("Invalid status: you cannot bet now.") | |
128 | 128 | else if (if ((G.assetId != j)) | |
129 | 129 | then true | |
130 | 130 | else (G.amount != 500000)) | |
131 | 131 | then throw("You must pay 5 WLT to bet.") | |
132 | 132 | else if (if ((L != h)) | |
133 | 133 | then (L != B) | |
134 | 134 | else false) | |
135 | 135 | then throw(((((("Another user: " + L) + " did bet already on rate: ") + F) + " betID:") + toString(K))) | |
136 | 136 | else WriteSet([DataEntry((((("bet_" + toString(s)) + "_") + toString(J)) + "_owner"), B), DataEntry(((("bet_" + toString(s)) + "_") + F), J), DataEntry((("contest_" + toString(s)) + "_votecounter"), J)]) | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | ||
141 | 141 | @Callable(y) | |
142 | 142 | func closecontest () = { | |
143 | 143 | let M = v() | |
144 | 144 | let s = k("contest_currentnumber") | |
145 | 145 | let N = k(((("bet_" + toString(s)) + "_") + toString(M))) | |
146 | 146 | let O = t(N) | |
147 | 147 | let P = k((("contest_" + toString(s)) + "_finishheight")) | |
148 | 148 | let B = toBase58String(y.caller.bytes) | |
149 | 149 | let Q = wavesBalance(this) | |
150 | 150 | let C = p((("contest_" + toString(s)) + "_status")) | |
151 | 151 | let R = WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), O), DataEntry((("contest_" + toString(s)) + "_currencyrate"), M), DataEntry((("contest_" + toString(s)) + "_height"), height)]) | |
152 | - | if ((P > height)) | |
152 | + | if (if ((P > height)) | |
153 | + | then (B != c) | |
154 | + | else false) | |
153 | 155 | then throw(("Cannot close the contest before height:" + toString(P))) | |
154 | 156 | else if ((C != a)) | |
155 | 157 | then throw(("Cannot close a contest in status: " + C)) | |
156 | 158 | else if ((O != h)) | |
157 | 159 | then { | |
158 | 160 | let S = ((assetBalance(this, j) * 5) / 100) | |
159 | 161 | let T = ((assetBalance(this, j) * 90) / 100) | |
160 | 162 | let U = TransferSet([ScriptTransfer(extract(addressFromString(O)), (wavesBalance(this) - i), unit), ScriptTransfer(extract(addressFromString(d)), S, j), ScriptTransfer(extract(addressFromString(f)), S, j), ScriptTransfer(extract(addressFromString(e)), T, j)]) | |
161 | 163 | ScriptResult(WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), O), DataEntry((("contest_" + toString(s)) + "_currencyrate"), M), DataEntry((("contest_" + toString(s)) + "_height"), height)]), U) | |
162 | 164 | } | |
163 | 165 | else WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), O), DataEntry((("contest_" + toString(s)) + "_currencyrate"), M), DataEntry((("contest_" + toString(s)) + "_height"), height)]) | |
164 | 166 | } | |
165 | 167 | ||
166 | 168 | ||
167 | 169 | @Verifier(V) | |
168 | 170 | func W () = { | |
169 | 171 | let n = V | |
170 | 172 | if (if ($isInstanceOf(n, "SetScriptTransaction")) | |
171 | 173 | then true | |
172 | 174 | else $isInstanceOf(n, "DataTransaction")) | |
173 | 175 | then sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey) | |
174 | 176 | else if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
175 | 177 | then true | |
176 | 178 | else true | |
177 | 179 | } | |
178 | 180 |
github/deemru/w8io/026f985 31.23 ms ◑