tx · dRLUnYx19o21fTJ8GuTXYcHkc6deDAkf4SJ7zKmdGYV

3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd:  -0.10100000 Waves

2021.12.03 04:28 [1817432] smart account 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd > SELF 0.00000000 Waves

{ "type": 13, "id": "dRLUnYx19o21fTJ8GuTXYcHkc6deDAkf4SJ7zKmdGYV", "fee": 10100000, "feeAssetId": null, "timestamp": 1638494918302, "version": 2, "chainId": 84, "sender": "3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd", "senderPublicKey": "7Hi4o6vBstRs79NMVMjEove52dmP87RAcvNDAXN8C4Wi", "proofs": [ "5mzgaNtLhMLu76BSq1cVigKGTUQAcmTK5urTW6ige1phG9wF1ZmboDJZAG1g75Tjgwbn4oN7ZbZLB6FTbpoWGS4t" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgASAwoBCAAAAA4AAAAABmNhc2lubwIAAAAjM010YUNMNHYxYmpUYWJVcXM3b1U0b2ZTOGZiYWkzNFdNMWkAAAAABVdBVkVTAAAAAAA7msoAAAAAAAZtYXhCZXQJAABoAAAAAgAAAAAAAAAAZAUAAAAFV0FWRVMAAAAACXNlcGFyYXRvcgIAAAABLAEAAAAKZ2V0TmV3RGVjawAAAAAJAARMAAAAAgIAAAADMDFDCQAETAAAAAICAAAAAzAyQwkABEwAAAACAgAAAAMwM0MJAARMAAAAAgIAAAADMDRDCQAETAAAAAICAAAAAzA1QwkABEwAAAACAgAAAAMwNkMJAARMAAAAAgIAAAADMDdDCQAETAAAAAICAAAAAzA4QwkABEwAAAACAgAAAAMwOUMJAARMAAAAAgIAAAADMTBDCQAETAAAAAICAAAAAzExQwkABEwAAAACAgAAAAMxMkMJAARMAAAAAgIAAAADMTNDCQAETAAAAAICAAAAAzAxRAkABEwAAAACAgAAAAMwMkQJAARMAAAAAgIAAAADMDNECQAETAAAAAICAAAAAzA0RAkABEwAAAACAgAAAAMwNUQJAARMAAAAAgIAAAADMDZECQAETAAAAAICAAAAAzA3RAkABEwAAAACAgAAAAMwOEQJAARMAAAAAgIAAAADMDlECQAETAAAAAICAAAAAzEwRAkABEwAAAACAgAAAAMxMUQJAARMAAAAAgIAAAADMTJECQAETAAAAAICAAAAAzEzRAkABEwAAAACAgAAAAMwMUgJAARMAAAAAgIAAAADMDJICQAETAAAAAICAAAAAzAzSAkABEwAAAACAgAAAAMwNEgJAARMAAAAAgIAAAADMDVICQAETAAAAAICAAAAAzA2SAkABEwAAAACAgAAAAMwN0gJAARMAAAAAgIAAAADMDhICQAETAAAAAICAAAAAzA5SAkABEwAAAACAgAAAAMxMEgJAARMAAAAAgIAAAADMTFICQAETAAAAAICAAAAAzEySAkABEwAAAACAgAAAAMxM0gJAARMAAAAAgIAAAADMDFTCQAETAAAAAICAAAAAzAyUwkABEwAAAACAgAAAAMwM1MJAARMAAAAAgIAAAADMDRTCQAETAAAAAICAAAAAzA1UwkABEwAAAACAgAAAAMwNlMJAARMAAAAAgIAAAADMDdTCQAETAAAAAICAAAAAzA4UwkABEwAAAACAgAAAAMwOVMJAARMAAAAAgIAAAADMTBTCQAETAAAAAICAAAAAzExUwkABEwAAAACAgAAAAMxMlMJAARMAAAAAgIAAAADMTNTBQAAAANuaWwBAAAADmdldFNpeE5ld0RlY2tzAAAAAAkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAQAAAApnZXROZXdEZWNrAAAAAAkBAAAACmdldE5ld0RlY2sAAAAACQEAAAAKZ2V0TmV3RGVjawAAAAAJAQAAAApnZXROZXdEZWNrAAAAAAkBAAAACmdldE5ld0RlY2sAAAAACQEAAAAKZ2V0TmV3RGVjawAAAAABAAAAB2dldERlY2sAAAABAAAABGRlY2sDCQAAZwAAAAIAAAAAAAAAAAAJAAGQAAAAAQUAAAAEZGVjawkBAAAADmdldFNpeE5ld0RlY2tzAAAAAAUAAAAEZGVjawEAAAAPZ2V0UmFuZG9tTn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AAAA1hdmFpbGFibGVQcm9wCQAEuQAAAAIFAAAAB2F2RGVjazIFAAAACXNlcGFyYXRvcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAABXJvdW5kAgAAAAZfcm91bmQFAAAABXJvdW5kCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAABXJvdW5kAgAAABFfTGFzdFJhbmRvbk51bWJlcgUAAAASY2FyZFBvc2l0aW9uQ2FzaW5vCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAFcm91bmQCAAAAC19wbGF5ZXJDYXJkBQAAAApjYXJkUGxheWVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAFcm91bmQCAAAAC19jYXNpbm9DYXJkBQAAAApjYXJkQ2FzaW5vCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAABXJvdW5kAgAAAApfYmV0QW1vdW50BQAAAAFwCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIFAAAABXJvdW5kAgAAAAVfc3RvcAYFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5FizDkg==", "height": 1817432, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6kxwcZsfp29LASAjjBZJrNsoNi7Xd1bxzy2XdEb3bs5u Next: 3GzD2Kzydqm13Kxv3TQSPxhyBRjxLgbLHCg1tGG75xjQ Diff:
OldNewDifferences
119119 else {
120120 let G = (T + "_deck")
121121 let U = E(this, G)
122- let V = I(T, K, U)
122+ let V = I(T, T, U)
123123 let B = V._1
124124 let W = V._2
125125 let X = V._3
126- let Y = I((T + B), K, X)
126+ let Y = I((T + B), T, X)
127127 let C = Y._1
128128 let Z = Y._2
129129 let L = Y._3
161161 then throw("This game is not on war")
162162 else {
163163 let ab = {
164- let r = getInteger(this, (K + "_betAmount"))
164+ let r = getInteger(this, (T + "_betAmount"))
165165 if ($isInstanceOf(r, "Int"))
166166 then {
167167 let S = r
194194 then throw("This game is not on war")
195195 else {
196196 let ab = {
197- let r = getInteger(this, (K + "_betAmount"))
197+ let r = getInteger(this, (T + "_betAmount"))
198198 if ($isInstanceOf(r, "Int"))
199199 then {
200200 let S = r
210210 else {
211211 let G = (T + "_deck")
212212 let U = E(this, G)
213- let ae = I(T, K, U)
213+ let ae = I(T, T, U)
214214 let af = ae._1
215215 let ag = ae._2
216216 let ah = ae._3
217- let ai = I((T + af), K, ah)
217+ let ai = I((T + af), T, ah)
218218 let aj = ai._1
219219 let ak = ai._2
220220 let al = ai._3
221- let am = I((T + aj), K, al)
221+ let am = I((T + aj), T, al)
222222 let an = am._1
223223 let ao = am._2
224224 let ap = am._3
225- let aq = I((T + an), K, ap)
225+ let aq = I((T + an), T, ap)
226226 let B = aq._1
227227 let W = aq._2
228228 let X = aq._3
229- let ar = I((T + B), K, X)
229+ let ar = I((T + B), T, X)
230230 let C = ar._1
231231 let Z = ar._2
232232 let L = ar._3
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3MtaCL4v1bjTabUqs7oU4ofS8fbai34WM1i"
55
66 let b = 1000000000
77
88 let c = (100 * b)
99
1010 let d = ","
1111
1212 func e () = ["01C", "02C", "03C", "04C", "05C", "06C", "07C", "08C", "09C", "10C", "11C", "12C", "13C", "01D", "02D", "03D", "04D", "05D", "06D", "07D", "08D", "09D", "10D", "11D", "12D", "13D", "01H", "02H", "03H", "04H", "05H", "06H", "07H", "08H", "09H", "10H", "11H", "12H", "13H", "01S", "02S", "03S", "04S", "05S", "06S", "07S", "08S", "09S", "10S", "11S", "12S", "13S"]
1313
1414
1515 func f () = (((((e() ++ e()) ++ e()) ++ e()) ++ e()) ++ e())
1616
1717
1818 func g (h) = if ((0 >= size(h)))
1919 then f()
2020 else h
2121
2222
2323 func i (j,k,l) = {
2424 let m = sha256(toBytes((j + k)))
2525 let n = toInt(m)
2626 let o = (n % l)
2727 if ((0 > o))
2828 then ((-1 * o) + 1)
2929 else (o + 1)
3030 }
3131
3232
3333 func p (q) = {
3434 let r = getInteger(this, (q + "_LastRandonNumber"))
3535 if ($isInstanceOf(r, "Int"))
3636 then {
3737 let s = r
3838 toString(s)
3939 }
4040 else q
4141 }
4242
4343
4444 func t (u) = if ((size(u.payments) == 0))
4545 then throw("Payment must be attached")
4646 else if ((size(u.payments) == 1))
4747 then {
4848 let v = u.payments[0]
4949 if (isDefined(v.assetId))
5050 then throw("This function accepts WAVES tokens only (0)")
5151 else $Tuple2(v.amount, 0)
5252 }
5353 else {
5454 let v = u.payments[0]
5555 if (isDefined(v.assetId))
5656 then throw("This function accepts WAVES tokens only (10)")
5757 else {
5858 let w = u.payments[1]
5959 if (isDefined(w.assetId))
6060 then throw("This function accepts WAVES tokens only (11)")
6161 else $Tuple2(v.amount, w.amount)
6262 }
6363 }
6464
6565
6666 func x (y) = {
6767 let z = parseIntValue(take(y, 2))
6868 if ((z == 1))
6969 then 20
7070 else z
7171 }
7272
7373
7474 func A (B,C) = {
7575 let z = x(B)
7676 let D = x(C)
7777 (z > D)
7878 }
7979
8080
8181 func E (F,G) = if (isDefined(getString(F, G)))
8282 then {
8383 let H = getStringValue(F, G)
8484 let h = split(H, d)
8585 g(h)
8686 }
8787 else f()
8888
8989
9090 func I (J,K,h) = {
9191 let L = g(h)
9292 let M = i(((J + makeString(L, d)) + K), p(K), size(L))
9393 let N = L[(M % size(L))]
9494 let O = removeByIndex(L, (M % size(L)))
9595 $Tuple3(N, M, O)
9696 }
9797
9898
9999 @Callable(u)
100100 func bet () = {
101101 let K = toBase58String(u.caller.bytes)
102102 let P = t(u)
103103 let z = P._1
104104 let Q = P._2
105105 let R = {
106106 let r = getInteger(this, (K + "_round"))
107107 if ($isInstanceOf(r, "Int"))
108108 then {
109109 let S = r
110110 (S + 1)
111111 }
112112 else 1
113113 }
114114 let T = ((K + "_") + toString(R))
115115 if (isDefined(getBoolean(this, (T + "_stop"))))
116116 then throw("This round is already played")
117117 else if (isDefined(getString(this, T)))
118118 then throw("You cannot bet on this game")
119119 else {
120120 let G = (T + "_deck")
121121 let U = E(this, G)
122- let V = I(T, K, U)
122+ let V = I(T, T, U)
123123 let B = V._1
124124 let W = V._2
125125 let X = V._3
126- let Y = I((T + B), K, X)
126+ let Y = I((T + B), T, X)
127127 let C = Y._1
128128 let Z = Y._2
129129 let L = Y._3
130130 if ((1 == 1))
131131 then {
132132 let aa = 1
133133 if ((Q != 0))
134134 then [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_drawSequence"), aa), IntegerEntry((T + "_betAmount"), z), StringEntry((T + "_debug"), (((((toString(z) + "-") + toString(Q)) + " ScriptTransfer(i.caller, (t * 10)=") + toString(((Q * 10) + Q))) + ", unit)")), ScriptTransfer(u.caller, ((Q * 10) + Q), unit)]
135135 else [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_drawSequence"), aa), IntegerEntry((T + "_betAmount"), z)]
136136 }
137137 else if (A(B, C))
138138 then [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_betAmount"), z), StringEntry((T + "_debug"), (((((toString(z) + "-") + toString(Q)) + " ScriptTransfer(i.caller, p=") + toString(z)) + ", unit)")), ScriptTransfer(u.caller, z, unit), BooleanEntry((T + "_stop"), true)]
139139 else [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_betAmount"), z), BooleanEntry((T + "_stop"), true)]
140140 }
141141 }
142142
143143
144144
145145 @Callable(u)
146146 func surrender () = {
147147 let K = toBase58String(u.caller.bytes)
148148 let R = {
149149 let r = getInteger(this, (K + "_round"))
150150 if ($isInstanceOf(r, "Int"))
151151 then {
152152 let S = r
153153 toString(S)
154154 }
155155 else throw("Unable to find the round")
156156 }
157157 let T = ((K + "_") + R)
158158 if (isDefined(getBoolean(this, (T + "_stop"))))
159159 then throw("This round is already played")
160160 else if (!(isDefined(getInteger(this, (T + "_drawSequence")))))
161161 then throw("This game is not on war")
162162 else {
163163 let ab = {
164- let r = getInteger(this, (K + "_betAmount"))
164+ let r = getInteger(this, (T + "_betAmount"))
165165 if ($isInstanceOf(r, "Int"))
166166 then {
167167 let S = r
168168 S
169169 }
170170 else throw("Unable to find original bet amount")
171171 }
172172 [StringEntry(((T + toString(ab)) + " _debug"), (("ScriptTransfer(i.caller, betAmount / 2=" + toString((ab / 2))) + ", unit)")), ScriptTransfer(u.caller, (ab / 2), unit), BooleanEntry((T + "_stop"), true)]
173173 }
174174 }
175175
176176
177177
178178 @Callable(u)
179179 func goToWar (ac) = {
180180 let K = toBase58String(u.caller.bytes)
181181 let R = {
182182 let r = getInteger(this, (K + "_round"))
183183 if ($isInstanceOf(r, "Int"))
184184 then {
185185 let S = r
186186 S
187187 }
188188 else throw("Unable to find the round")
189189 }
190190 let T = ((K + "_") + toString(R))
191191 if (isDefined(getBoolean(this, (T + "_stop"))))
192192 then throw("This round is already played")
193193 else if (!(isDefined(getInteger(this, (T + "_drawSequence")))))
194194 then throw("This game is not on war")
195195 else {
196196 let ab = {
197- let r = getInteger(this, (K + "_betAmount"))
197+ let r = getInteger(this, (T + "_betAmount"))
198198 if ($isInstanceOf(r, "Int"))
199199 then {
200200 let S = r
201201 S
202202 }
203203 else throw("Unable to find original bet amount")
204204 }
205205 let ad = t(u)
206206 let z = ad._1
207207 let Q = ad._2
208208 if ((z != ab))
209209 then throw((((("original bet amount (" + toString(ab)) + ") different to the current payment (") + toString(z)) + ")"))
210210 else {
211211 let G = (T + "_deck")
212212 let U = E(this, G)
213- let ae = I(T, K, U)
213+ let ae = I(T, T, U)
214214 let af = ae._1
215215 let ag = ae._2
216216 let ah = ae._3
217- let ai = I((T + af), K, ah)
217+ let ai = I((T + af), T, ah)
218218 let aj = ai._1
219219 let ak = ai._2
220220 let al = ai._3
221- let am = I((T + aj), K, al)
221+ let am = I((T + aj), T, al)
222222 let an = am._1
223223 let ao = am._2
224224 let ap = am._3
225- let aq = I((T + an), K, ap)
225+ let aq = I((T + an), T, ap)
226226 let B = aq._1
227227 let W = aq._2
228228 let X = aq._3
229- let ar = I((T + B), K, X)
229+ let ar = I((T + B), T, X)
230230 let C = ar._1
231231 let Z = ar._2
232232 let L = ar._3
233233 if ((x(B) == x(C)))
234234 then {
235235 let aa = {
236236 let r = getInteger(this, (T + "_drawSequence"))
237237 if ($isInstanceOf(r, "Int"))
238238 then {
239239 let S = r
240240 (S + 1)
241241 }
242242 else 0
243243 }
244244 [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_drawSequence"), aa), IntegerEntry((T + "_betAmount"), z)]
245245 }
246246 else if (A(B, C))
247247 then [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_betAmount"), z), StringEntry((T + "_debug"), (((((toString(z) + "-") + toString(Q)) + " ScriptTransfer(i.caller, p=") + toString(z)) + ", unit)")), ScriptTransfer(u.caller, z, unit), BooleanEntry((T + "_stop"), true)]
248248 else [StringEntry(G, makeString(L, d)), StringEntry((T + "_round"), T), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_betAmount"), z), BooleanEntry((T + "_stop"), true)]
249249 }
250250 }
251251 }
252252
253253
254254 @Verifier(as)
255255 func at () = sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey)
256256

github/deemru/w8io/169f3d6 
61.78 ms