tx · 4vBWRhoh2qb5iSri55czCtQBfNSx8RLca2T18g7CV3s9

3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg:  -0.01400000 Waves

2019.08.27 23:30 [650080] smart account 3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg > SELF 0.00000000 Waves

{ "type": 13, "id": "4vBWRhoh2qb5iSri55czCtQBfNSx8RLca2T18g7CV3s9", "fee": 1400000, "feeAssetId": null, "timestamp": 1566937883772, "version": 1, "sender": "3N9fzexZxi7HrPcfizpvpFcaAnvpyuuMKPg", "senderPublicKey": "BJB5QS4iQna1z8idKb5QQ5cACUmNgxzHc81Y7AW6ZZY7", "proofs": [ "3ovhiXEds13qi4HDWHw882zVZRHQvWtHFpQ5jhVCCnczZHP9jWzg9qEyvwAh29MyR38GYBfMkT4c1Ch9AbWYxPbD" ], "script": "base64:AAIDAAAAAAAAAAAAAAAGAAAAABBzdGFydFJvdW5kSGVpZ2h0AAAAAAAAAAAFAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMCAAAACGxhc3RQbGF5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BAAAAAFhBQAAAAckbWF0Y2gwAQAAAAxXYXZlc0xvdHRvVjIJAQAAAAV0aHJvdwAAAAAEAAAABHJhbmQJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACBQAAAAhsYXN0UGxheQgFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABmgAA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ZSb3VuZAIAAAAOX2NvdW50R2FtZXJzVXADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABZwUAAAAHJG1hdGNoMAUAAAABZwAAAAAAAAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAMY3VycmVudFJvdW5kAgAAAAZfbW9yZV8FAAAADGFkZHJlc3NHYW1lcggFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAxjdXJyZW50Um91bmQCAAAADl9jb3VudEdhbWVyc1VwCQAAZAAAAAIFAAAAEG51bWJlck9mR2FtZXJzVXAAAAAAAAAAAAEFAAAAA25pbAMJAABmAAAAAgUAAAAIY291bnRCZXQIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAAI1BheW1lbnQgbXVzdCBiZSBtb3JlIGZvciB0aGUgcm91bmQhCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQAAAABcsyWP", "chainId": 84, "height": 650080, "spentComplexity": 0 } View: original | compacted Prev: 1j3JjfzFmJEGkgUzCgT7DrsaP5D8f5EjtZ4AjvvZiiP Next: 46ogj69H7LC1d1DmUAz8sX9KrnVWkToDb2rfraTNYPPW Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 5
55
66 func b (c) = {
77 let d = {
88 let e = getBinary(this, "lastPlay")
99 if ($isInstanceOf(e, "ByteVector"))
1010 then {
1111 let f = e
1212 f
1313 }
1414 else if ($isInstanceOf(e, "Unit"))
1515 then {
1616 let g = e
1717 base58'2ee4oFDYriWJ9EMeR'
1818 }
1919 else throw()
2020 }
2121 let h = (((((d + c.transactionId) + c.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
2222 sha256(h)
2323 }
2424
2525
2626 func i (j,k) = {
2727 let l = (j - 1)
2828 if ((k > 500))
2929 then WriteSet([DataEntry("lastRoundWinner", (toString(l) + "_more_")), DataEntry("numberRound", j), DataEntry("startGame", true), DataEntry("randhash", k)])
3030 else WriteSet([DataEntry("lastRoundWinner", (toString(l) + "_less_")), DataEntry("numberRound", j), DataEntry("startGame", true), DataEntry("randhash", k)])
3131 }
3232
3333
3434 func m () = {
3535 let e = getInteger(this, "numberRound")
3636 if ($isInstanceOf(e, "Int"))
3737 then {
3838 let g = e
3939 g
4040 }
4141 else 1
4242 }
4343
4444
4545 func n (o,p,q) = if ((p >= 1))
4646 then {
4747 let r = {
4848 let e = getString(this, "lastRoundWinner")
4949 if ($isInstanceOf(e, "String"))
5050 then {
5151 let s = e
5252 s
5353 }
5454 else ""
5555 }
5656 let t = {
5757 let e = getString(this, (r + q))
5858 if ($isInstanceOf(e, "String"))
5959 then {
6060 let s = e
6161 s
6262 }
6363 else ""
6464 }
6565 if (if ((p > 1))
6666 then (t == "")
6767 else false)
6868 then (p * 2)
6969 else 1
7070 }
7171 else 1
7272
7373
7474 func u () = {
7575 let e = getInteger(this, "numberGame")
7676 if ($isInstanceOf(e, "Int"))
7777 then {
7878 let g = e
7979 (g + 1)
8080 }
8181 else 1
8282 }
8383
8484
8585 @Callable(v)
8686 func startRound () = {
8787 let w = {
8888 let e = getInteger(this, "numberRound")
8989 if ($isInstanceOf(e, "Int"))
9090 then {
9191 let g = e
9292 (g + 1)
9393 }
9494 else 1
9595 }
9696 let k = b(v)
9797 let x = {
9898 let e = getBoolean(this, "startGame")
9999 if ($isInstanceOf(e, "Boolean"))
100100 then {
101101 let y = e
102102 y
103103 }
104104 else false
105105 }
106106 if (if (if ((w == 1))
107107 then (v.caller == this)
108108 else false)
109109 then !(x)
110110 else false)
111111 then {
112112 let z = u()
113113 WriteSet([DataEntry("numberGame", z), DataEntry("startGame", !(x)), DataEntry("numberRound", w)])
114114 }
115115 else if (if ((w > 1))
116116 then (v.caller == this)
117117 else false)
118118 then i(w, (toInt(k) % 1000))
119119 else throw("Only owner can start the game.")
120120 }
121121
122122
123123
124124 @Callable(v)
125125 func forwardRound () = {
126126 let x = {
127127 let e = getBoolean(this, "startGame")
128128 if ($isInstanceOf(e, "Boolean"))
129129 then {
130130 let y = e
131131 y
132132 }
133133 else false
134134 }
135135 let w = {
136136 let e = getInteger(this, "numberRound")
137137 if ($isInstanceOf(e, "Int"))
138138 then {
139139 let g = e
140140 g
141141 }
142142 else 1
143143 }
144144 let A = {
145145 let e = getInteger(this, (toString(w) + "_countGamersUp"))
146146 if ($isInstanceOf(e, "Int"))
147147 then {
148148 let y = e
149149 y
150150 }
151151 else 0
152152 }
153153 let B = {
154154 let e = getInteger(this, (toString(w) + "_countGamersDown"))
155155 if ($isInstanceOf(e, "Int"))
156156 then {
157157 let y = e
158158 y
159159 }
160160 else 0
161161 }
162162 if (if (if (if ((A > 0))
163163 then (v.caller == this)
164164 else false)
165165 then x
166166 else false)
167167 then (B > 0)
168168 else false)
169169 then WriteSet([DataEntry("startGame", !(x))])
170170 else throw("Only owner can start the game.")
171171 }
172172
173173
174174
175175 @Callable(v)
176176 func makeBetLess () = {
177177 let C = extract(v.payment)
178178 let q = toBase58String(v.caller.bytes)
179179 let D = m()
180180 let E = n(C.amount, D, q)
181181 if (if (!(isDefined(C.assetId)))
182182 then (C.amount >= E)
183183 else false)
184184 then {
185185 let w = {
186186 let e = getInteger(this, "numberRound")
187187 if ($isInstanceOf(e, "Int"))
188188 then {
189189 let g = e
190190 g
191191 }
192192 else 1
193193 }
194194 let B = {
195195 let e = getInteger(this, (toString(w) + "_countGamersDown"))
196196 if ($isInstanceOf(e, "Int"))
197197 then {
198198 let y = e
199199 y
200200 }
201201 else 0
202202 }
203203 WriteSet([DataEntry(((toString(D) + "_less_") + q), C.amount), DataEntry((toString(D) + "_countGamersDown"), (B + 1))])
204204 }
205205 else if ((E > C.amount))
206206 then throw("Payment must be more for the round!")
207207 else throw("works with waves only")
208208 }
209209
210210
211211
212212 @Callable(v)
213213 func makeBetMore () = {
214214 let C = extract(v.payment)
215215 let q = toBase58String(v.caller.bytes)
216216 let D = m()
217217 let E = n(C.amount, D, q)
218218 if (if (!(isDefined(C.assetId)))
219219 then (C.amount >= E)
220220 else false)
221221 then {
222222 let w = {
223223 let e = getInteger(this, "numberRound")
224224 if ($isInstanceOf(e, "Int"))
225225 then {
226226 let g = e
227227 g
228228 }
229229 else 1
230230 }
231231 let A = {
232232 let e = getInteger(this, (toString(w) + "_countGamersUp"))
233233 if ($isInstanceOf(e, "Int"))
234234 then {
235235 let y = e
236236 y
237237 }
238238 else 0
239239 }
240240 WriteSet([DataEntry(((toString(D) + "_more_") + q), C.amount), DataEntry((toString(D) + "_countGamersUp"), (A + 1))])
241241 }
242242 else if ((E > C.amount))
243243 then throw("Payment must be more for the round!")
244244 else throw("works with waves only")
245245 }
246246
247247

github/deemru/w8io/169f3d6 
42.99 ms