tx · 8YrXhqQjCq6apTNe8TSsfyANLxdaJ77CUmtPwrSF9VfX 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo: -0.01400000 Waves 2019.08.19 15:34 [638035] smart account 3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo > SELF 0.00000000 Waves
{ "type": 13, "id": "8YrXhqQjCq6apTNe8TSsfyANLxdaJ77CUmtPwrSF9VfX", "fee": 1400000, "feeAssetId": null, "timestamp": 1566218066121, "version": 1, "sender": "3N7Wiiso7vo69pqWfLtpzT3tbzMUGahqpgo", "senderPublicKey": "5GQSFwNMkJFTT3FeLT3KENqoSr42yiJP3Av5qAYq1F7f", "proofs": [ "D1goU3YJ2MoyCkGixPmHj2D7JdzQzHTyrLbSneT6joZQu71oy6qzPCqQfQQH71gTbiXrAGbUvAutRvxBWPbEBBx" ], "script": "base64:AAIDAAAAAAAAAAAAAAAPAAAAAAdSVU5OSU5HAgAAAAdSVU5OSU5HAAAAAAZDTE9TRUQCAAAABkNMT1NFRAAAAAAJREFQUE9XTkVSAgAAACMzTjdXaWlzbzd2bzY5cHFXZkx0cHpUM3Riek1VR2FocXBnbwAAAAAMT1JBQ0xFV0FMTEVUAgAAACMzTkFjb2VXZFVUV244Y3NYSlBHNDd2MUZqdGpjZnF4YjV0dQAAAAANV0xUQlVSTldBTExFVAIAAAAjM01wQ2JERGprU3JmUzFYa1BwbTcxaVpqNURRMVJwQlJSaHQAAAAADldBVkVTS0lUV0FMTEVUAgAAACMzTXFQcGJXUFJzWkZvVDlYNzRxV29jVTRCcHlwR0VQaGlDbgAAAAAFV0FWRVMCAAAABVdBVkVTAAAAAAROT05FAgAAAAROT05FAAAAAANGRUUAAAAAAAANu6AAAAAAA1dMVAEAAAAgXc1YMiAxtU0669iAvoWYChIkz8rePUfYvMDdGTUOq6oBAAAAC2dldE51bUJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXk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F0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgYGKWBAMw==", "chainId": 84, "height": 638035, "spentComplexity": 0 } View: original | compacted Prev: 8b7k9J2wLs7AmPTmKm39nj6JqqqKPWWACmtsA2SkPPb5 Next: SajmKTGnsFPfVJtPMkrQtMFRQgUGTwFp4H8VW3wXoX7 Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | then throw("Invalid status: you cannot bet now | |
127 | + | then throw(("Invalid status: you cannot bet now, contest status is: " + C)) | |
128 | 128 | else if (if ((G.assetId != j)) | |
129 | 129 | then true | |
130 | 130 | else (G.amount != 500000)) | |
159 | 159 | then { | |
160 | 160 | let R = ((assetBalance(this, j) * 5) / 100) | |
161 | 161 | let S = ((assetBalance(this, j) * 90) / 100) | |
162 | - | let T = TransferSet([ScriptTransfer(extract(addressFromString(O)), (wavesBalance(this) - i), unit), ScriptTransfer(extract(addressFromString(d)), R, j), ScriptTransfer(extract(addressFromString(f)), R, j), ScriptTransfer(extract(addressFromString(e)), S, j)]) | |
162 | + | let T = TransferSet([ScriptTransfer(extract(addressFromString(O)), (((wavesBalance(this) * 99) / 100) - i), unit), ScriptTransfer(extract(addressFromString(d)), R, j), ScriptTransfer(extract(addressFromString(f)), R, j), ScriptTransfer(extract(addressFromString(e)), S, j)]) | |
163 | 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)]), T) | |
164 | 164 | } | |
165 | 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)]) |
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 | - | then throw("Invalid status: you cannot bet now | |
127 | + | then throw(("Invalid status: you cannot bet now, contest status is: " + C)) | |
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. You paid: " + toString(G.amount))) | |
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 E = k((("contest_" + toString(s)) + "_finishheight")) | |
148 | 148 | let B = toBase58String(y.caller.bytes) | |
149 | 149 | let P = wavesBalance(this) | |
150 | 150 | let C = p((("contest_" + toString(s)) + "_status")) | |
151 | 151 | let Q = 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 | 152 | if (if ((E > height)) | |
153 | 153 | then (B != c) | |
154 | 154 | else false) | |
155 | 155 | then throw(((("account: " + B) + ": Cannot close the contest before height:") + toString(E))) | |
156 | 156 | else if ((C != a)) | |
157 | 157 | then throw(("Cannot close a contest in status: " + C)) | |
158 | 158 | else if ((O != h)) | |
159 | 159 | then { | |
160 | 160 | let R = ((assetBalance(this, j) * 5) / 100) | |
161 | 161 | let S = ((assetBalance(this, j) * 90) / 100) | |
162 | - | let T = TransferSet([ScriptTransfer(extract(addressFromString(O)), (wavesBalance(this) - i), unit), ScriptTransfer(extract(addressFromString(d)), R, j), ScriptTransfer(extract(addressFromString(f)), R, j), ScriptTransfer(extract(addressFromString(e)), S, j)]) | |
162 | + | let T = TransferSet([ScriptTransfer(extract(addressFromString(O)), (((wavesBalance(this) * 99) / 100) - i), unit), ScriptTransfer(extract(addressFromString(d)), R, j), ScriptTransfer(extract(addressFromString(f)), R, j), ScriptTransfer(extract(addressFromString(e)), S, j)]) | |
163 | 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)]), T) | |
164 | 164 | } | |
165 | 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)]) | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Verifier(U) | |
170 | 170 | func V () = { | |
171 | 171 | let n = U | |
172 | 172 | if (if ($isInstanceOf(n, "SetScriptTransaction")) | |
173 | 173 | then true | |
174 | 174 | else $isInstanceOf(n, "DataTransaction")) | |
175 | 175 | then sigVerify(U.bodyBytes, U.proofs[0], U.senderPublicKey) | |
176 | 176 | else if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
177 | 177 | then true | |
178 | 178 | else true | |
179 | 179 | } | |
180 | 180 |
github/deemru/w8io/026f985 35.64 ms ◑