tx · FiuE8vuQG88rJKD28mPPhkbjtk2aZ2a2yPLz36wNemKu 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo: -0.01400000 Waves 2019.08.19 16:21 [638084] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves
{ "type": 13, "id": "FiuE8vuQG88rJKD28mPPhkbjtk2aZ2a2yPLz36wNemKu", "fee": 1400000, "feeAssetId": null, "timestamp": 1566220871634, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "4SLpJzcHMocMcneoYGxce1ne5tBNNeX6pFWiyQjz64PLS4pGicqovk5uVeEXG79H32SaNNqWgrJumfQBKZ2QHkBn" ], "script": "base64:AAIDAAAAAAAAAAAAAAAPAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAMT1JBQ0xFV0FMTEVUAgAAACMzTkFjb2VXZFVUV244Y3NYSlBHNDd2MUZqdGpjZnF4YjV0dQAAAAANV0xUQlVSTldBTExFVAIAAAAjM01wQ2JERGprU3JmUzFYa1BwbTcxaVpqNURRMVJwQlJSaHQAAAAADldBVkVTS0lUV0FMTEVUAgAAACMzTXFQcGJXUFJzWkZvVDlYNzRxV29jVTRCcHlwR0VQaGlDbgAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQA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5AAAAAgkAASwAAAACCQABLAAAAAICAAAACGNvbnRlc3RfCQABpAAAAAEFAAAAEWNvbnRlc3RDdXJyTnVtYmVyAgAAAAdfaGVpZ2h0BQAAAAZoZWlnaHQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBgabjPit", "chainId": 84, "height": 638084, "spentComplexity": 0 } View: original | compacted Prev: SajmKTGnsFPfVJtPMkrQtMFRQgUGTwFp4H8VW3wXoX7 Next: 3vg2DMZDQ2qio3TDfMBZzpRrjubkMLsLvNUFZaqqjPap Diff:
Old | New | Differences | |
---|---|---|---|
96 | 96 | let s = k("contest_currentnumber") | |
97 | 97 | let C = p((("contest_" + toString(s)) + "_status")) | |
98 | 98 | let D = (s + 1) | |
99 | + | let E = (((wavesBalance(this) * 99) / 100) / 25) | |
99 | 100 | if ((B != c)) | |
100 | 101 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + B) + " dapp owner: ") + c)) | |
101 | 102 | else if ((C == a)) | |
102 | 103 | then throw(("You cannot configure a new Contest while old Contest status is: " + C)) | |
103 | 104 | else { | |
104 | - | let | |
105 | - | WriteSet([DataEntry("contest_currentnumber", D), DataEntry((("contest_" + toString(D)) + "_finishheight"), | |
105 | + | let F = (height + (7 * 1440)) | |
106 | + | WriteSet([DataEntry("contest_currentnumber", D), DataEntry((("contest_" + toString(D)) + "_finishheight"), F), DataEntry((("contest_" + toString(D)) + "_status"), a), DataEntry((("contest_" + toString(D)) + "_betcounter"), 0), DataEntry((("contest_" + toString(D)) + "_betcost"), 0)]) | |
106 | 107 | } | |
107 | 108 | } | |
108 | 109 | ||
109 | 110 | ||
110 | 111 | ||
111 | 112 | @Callable(y) | |
112 | - | func bet ( | |
113 | + | func bet (G) = { | |
113 | 114 | let B = toBase58String(y.caller.bytes) | |
114 | - | let | |
115 | + | let H = extract(y.payment) | |
115 | 116 | let s = k("contest_currentnumber") | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
117 | + | let I = k((("contest_" + toString(s)) + "_startheight")) | |
118 | + | let F = k((("contest_" + toString(s)) + "_finishheight")) | |
119 | + | let J = k((("contest_" + toString(s)) + "_betcounter")) | |
119 | 120 | let C = p((("contest_" + toString(s)) + "_status")) | |
120 | - | let | |
121 | + | let K = (J + 1) | |
121 | 122 | let A = p((("contest_" + toString(s)) + "_status")) | |
122 | - | let | |
123 | - | let | |
124 | - | if ((height > ( | |
123 | + | let L = k(((("bet_" + toString(s)) + "_") + toString(G))) | |
124 | + | let M = t(L) | |
125 | + | if ((height > (F - (2 * 1440)))) | |
125 | 126 | then throw("You cannot bet anymore at this height.") | |
126 | 127 | else if ((C != a)) | |
127 | 128 | then throw(("Invalid status: you cannot bet now, contest status is: " + C)) | |
128 | - | else if (if (( | |
129 | + | else if (if ((H.assetId != j)) | |
129 | 130 | then true | |
130 | - | else ( | |
131 | - | then throw(("You must pay 5 WLT to bet. You paid: " + toString( | |
132 | - | else if (if (( | |
133 | - | then ( | |
131 | + | else (H.amount != 500000)) | |
132 | + | then throw(("You must pay 5 WLT to bet. You paid: " + toString(H.amount))) | |
133 | + | else if (if ((M != h)) | |
134 | + | then (M != B) | |
134 | 135 | else false) | |
135 | - | then throw(((((("Another user: " + | |
136 | - | else WriteSet([DataEntry((((("bet_" + toString(s)) + "_") + toString( | |
136 | + | then throw(((((("Another user: " + M) + " did bet already on rate: ") + toString(G)) + " betID:") + toString(L))) | |
137 | + | else WriteSet([DataEntry((((("bet_" + toString(s)) + "_") + toString(K)) + "_owner"), B), DataEntry(((("bet_" + toString(s)) + "_") + toString(G)), K), DataEntry((("contest_" + toString(s)) + "_betcounter"), K)]) | |
137 | 138 | } | |
138 | 139 | ||
139 | 140 | ||
140 | 141 | ||
141 | 142 | @Callable(y) | |
142 | 143 | func closecontest () = { | |
143 | - | let | |
144 | + | let N = v() | |
144 | 145 | let s = k("contest_currentnumber") | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
146 | + | let O = k(((("bet_" + toString(s)) + "_") + toString(N))) | |
147 | + | let P = t(O) | |
148 | + | let F = k((("contest_" + toString(s)) + "_finishheight")) | |
148 | 149 | let B = toBase58String(y.caller.bytes) | |
149 | - | let | |
150 | + | let Q = wavesBalance(this) | |
150 | 151 | let C = p((("contest_" + toString(s)) + "_status")) | |
151 | - | let | |
152 | - | if (if (( | |
152 | + | let R = WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), P), DataEntry((("contest_" + toString(s)) + "_currencyrate"), N), DataEntry((("contest_" + toString(s)) + "_height"), height)]) | |
153 | + | if (if ((F > height)) | |
153 | 154 | then (B != c) | |
154 | 155 | else false) | |
155 | - | then throw(((("account: " + B) + ": Cannot close the contest before height:") + toString( | |
156 | + | then throw(((("account: " + B) + ": Cannot close the contest before height:") + toString(F))) | |
156 | 157 | else if ((C != a)) | |
157 | 158 | then throw(("Cannot close a contest in status: " + C)) | |
158 | - | else if (( | |
159 | + | else if ((P != h)) | |
159 | 160 | then { | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | ScriptResult(WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), | |
161 | + | let S = ((assetBalance(this, j) * 5) / 100) | |
162 | + | let T = ((assetBalance(this, j) * 90) / 100) | |
163 | + | let U = TransferSet([ScriptTransfer(extract(addressFromString(P)), (((wavesBalance(this) * 99) / 100) - i), unit), ScriptTransfer(extract(addressFromString(d)), S, j), ScriptTransfer(extract(addressFromString(f)), S, j), ScriptTransfer(extract(addressFromString(e)), T, j)]) | |
164 | + | ScriptResult(WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), P), DataEntry((("contest_" + toString(s)) + "_currencyrate"), N), DataEntry((("contest_" + toString(s)) + "_height"), height)]), U) | |
164 | 165 | } | |
165 | - | else WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), | |
166 | + | else WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), P), DataEntry((("contest_" + toString(s)) + "_currencyrate"), N), DataEntry((("contest_" + toString(s)) + "_height"), height)]) | |
166 | 167 | } | |
167 | 168 | ||
168 | 169 | ||
169 | - | @Verifier( | |
170 | - | func | |
171 | - | let n = | |
170 | + | @Verifier(V) | |
171 | + | func W () = { | |
172 | + | let n = V | |
172 | 173 | if (if ($isInstanceOf(n, "SetScriptTransaction")) | |
173 | 174 | then true | |
174 | 175 | else $isInstanceOf(n, "DataTransaction")) | |
175 | - | then sigVerify( | |
176 | + | then sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey) | |
176 | 177 | else if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
177 | 178 | then true | |
178 | 179 | else true |
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 | + | let E = (((wavesBalance(this) * 99) / 100) / 25) | |
99 | 100 | if ((B != c)) | |
100 | 101 | then throw(((("Only dAPP Owner can Configure Contest. Caller account: " + B) + " dapp owner: ") + c)) | |
101 | 102 | else if ((C == a)) | |
102 | 103 | then throw(("You cannot configure a new Contest while old Contest status is: " + C)) | |
103 | 104 | else { | |
104 | - | let | |
105 | - | WriteSet([DataEntry("contest_currentnumber", D), DataEntry((("contest_" + toString(D)) + "_finishheight"), | |
105 | + | let F = (height + (7 * 1440)) | |
106 | + | WriteSet([DataEntry("contest_currentnumber", D), DataEntry((("contest_" + toString(D)) + "_finishheight"), F), DataEntry((("contest_" + toString(D)) + "_status"), a), DataEntry((("contest_" + toString(D)) + "_betcounter"), 0), DataEntry((("contest_" + toString(D)) + "_betcost"), 0)]) | |
106 | 107 | } | |
107 | 108 | } | |
108 | 109 | ||
109 | 110 | ||
110 | 111 | ||
111 | 112 | @Callable(y) | |
112 | - | func bet ( | |
113 | + | func bet (G) = { | |
113 | 114 | let B = toBase58String(y.caller.bytes) | |
114 | - | let | |
115 | + | let H = extract(y.payment) | |
115 | 116 | let s = k("contest_currentnumber") | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
117 | + | let I = k((("contest_" + toString(s)) + "_startheight")) | |
118 | + | let F = k((("contest_" + toString(s)) + "_finishheight")) | |
119 | + | let J = k((("contest_" + toString(s)) + "_betcounter")) | |
119 | 120 | let C = p((("contest_" + toString(s)) + "_status")) | |
120 | - | let | |
121 | + | let K = (J + 1) | |
121 | 122 | let A = p((("contest_" + toString(s)) + "_status")) | |
122 | - | let | |
123 | - | let | |
124 | - | if ((height > ( | |
123 | + | let L = k(((("bet_" + toString(s)) + "_") + toString(G))) | |
124 | + | let M = t(L) | |
125 | + | if ((height > (F - (2 * 1440)))) | |
125 | 126 | then throw("You cannot bet anymore at this height.") | |
126 | 127 | else if ((C != a)) | |
127 | 128 | then throw(("Invalid status: you cannot bet now, contest status is: " + C)) | |
128 | - | else if (if (( | |
129 | + | else if (if ((H.assetId != j)) | |
129 | 130 | then true | |
130 | - | else ( | |
131 | - | then throw(("You must pay 5 WLT to bet. You paid: " + toString( | |
132 | - | else if (if (( | |
133 | - | then ( | |
131 | + | else (H.amount != 500000)) | |
132 | + | then throw(("You must pay 5 WLT to bet. You paid: " + toString(H.amount))) | |
133 | + | else if (if ((M != h)) | |
134 | + | then (M != B) | |
134 | 135 | else false) | |
135 | - | then throw(((((("Another user: " + | |
136 | - | else WriteSet([DataEntry((((("bet_" + toString(s)) + "_") + toString( | |
136 | + | then throw(((((("Another user: " + M) + " did bet already on rate: ") + toString(G)) + " betID:") + toString(L))) | |
137 | + | else WriteSet([DataEntry((((("bet_" + toString(s)) + "_") + toString(K)) + "_owner"), B), DataEntry(((("bet_" + toString(s)) + "_") + toString(G)), K), DataEntry((("contest_" + toString(s)) + "_betcounter"), K)]) | |
137 | 138 | } | |
138 | 139 | ||
139 | 140 | ||
140 | 141 | ||
141 | 142 | @Callable(y) | |
142 | 143 | func closecontest () = { | |
143 | - | let | |
144 | + | let N = v() | |
144 | 145 | let s = k("contest_currentnumber") | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
146 | + | let O = k(((("bet_" + toString(s)) + "_") + toString(N))) | |
147 | + | let P = t(O) | |
148 | + | let F = k((("contest_" + toString(s)) + "_finishheight")) | |
148 | 149 | let B = toBase58String(y.caller.bytes) | |
149 | - | let | |
150 | + | let Q = wavesBalance(this) | |
150 | 151 | let C = p((("contest_" + toString(s)) + "_status")) | |
151 | - | let | |
152 | - | if (if (( | |
152 | + | let R = WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), P), DataEntry((("contest_" + toString(s)) + "_currencyrate"), N), DataEntry((("contest_" + toString(s)) + "_height"), height)]) | |
153 | + | if (if ((F > height)) | |
153 | 154 | then (B != c) | |
154 | 155 | else false) | |
155 | - | then throw(((("account: " + B) + ": Cannot close the contest before height:") + toString( | |
156 | + | then throw(((("account: " + B) + ": Cannot close the contest before height:") + toString(F))) | |
156 | 157 | else if ((C != a)) | |
157 | 158 | then throw(("Cannot close a contest in status: " + C)) | |
158 | - | else if (( | |
159 | + | else if ((P != h)) | |
159 | 160 | then { | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | ScriptResult(WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), | |
161 | + | let S = ((assetBalance(this, j) * 5) / 100) | |
162 | + | let T = ((assetBalance(this, j) * 90) / 100) | |
163 | + | let U = TransferSet([ScriptTransfer(extract(addressFromString(P)), (((wavesBalance(this) * 99) / 100) - i), unit), ScriptTransfer(extract(addressFromString(d)), S, j), ScriptTransfer(extract(addressFromString(f)), S, j), ScriptTransfer(extract(addressFromString(e)), T, j)]) | |
164 | + | ScriptResult(WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), P), DataEntry((("contest_" + toString(s)) + "_currencyrate"), N), DataEntry((("contest_" + toString(s)) + "_height"), height)]), U) | |
164 | 165 | } | |
165 | - | else WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), | |
166 | + | else WriteSet([DataEntry((("contest_" + toString(s)) + "_status"), b), DataEntry((("contest_" + toString(s)) + "_winner"), P), DataEntry((("contest_" + toString(s)) + "_currencyrate"), N), DataEntry((("contest_" + toString(s)) + "_height"), height)]) | |
166 | 167 | } | |
167 | 168 | ||
168 | 169 | ||
169 | - | @Verifier( | |
170 | - | func | |
171 | - | let n = | |
170 | + | @Verifier(V) | |
171 | + | func W () = { | |
172 | + | let n = V | |
172 | 173 | if (if ($isInstanceOf(n, "SetScriptTransaction")) | |
173 | 174 | then true | |
174 | 175 | else $isInstanceOf(n, "DataTransaction")) | |
175 | - | then sigVerify( | |
176 | + | then sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey) | |
176 | 177 | else if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
177 | 178 | then true | |
178 | 179 | else true | |
179 | 180 | } | |
180 | 181 |
github/deemru/w8io/026f985 64.74 ms ◑