tx · gKLz3t98YNuYEomLykmuxyFCRVjBJYWnVfe1SFyg4e6

3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd:  -0.10001000 Waves

2021.12.03 00:40 [1817207] smart account 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd > SELF 0.00000000 Waves

{ "type": 13, "id": "gKLz3t98YNuYEomLykmuxyFCRVjBJYWnVfe1SFyg4e6", "fee": 10001000, "feeAssetId": null, "timestamp": 1638481275971, "version": 2, "chainId": 84, "sender": "3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd", "senderPublicKey": "7Hi4o6vBstRs79NMVMjEove52dmP87RAcvNDAXN8C4Wi", "proofs": [ "3r55Jr5dgJJd5g3QGhpesyHomkofUZkER2EsEBmFLEDDvCtbguvzYUweyKJqyke8NCFAi52wiwddJSUyxrVJFmBK" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAPAAAAAAZjYXNpbm8CAAAAIzNNdGFDTDR2MWJqVGFiVXFzN29VNG9mUzhmYmFpMzRXTTFpAAAAAAVXQVZFUwAAAAAAO5rKAAAAAAAGbWF4QmV0CQAAaAAAAAIAAAAAAAAAAGQFAAAABVdBVkVTAAAAAAlzZXBhcmF0b3ICAAAAASwBAAAACmdldE5ld0RlY2sAAAAACQAETAAAAAICAAAAAzAxQwkABEwAAAACAgAAAAMwMkMJAARMAAAAAgIAAAADMDNDCQAETAAAAAICAAAAAzA0QwkABEwAAAACAgAAAAMwNUMJAARMAAAAAgIAAAADMDZDCQAETAAAAAICAAAAAzA3QwkABEwAAAACAgAAAAMwOEMJAARMAAAAAgIAAAADMDlDCQAETAAAAAICAAAAAzEwQwkABEwAAAACAgAAAAMxMUMJAARMAAAAAgIAAAADMTJDCQAETAAAAAICAAAAAzEzQwkABEwAAAACAgAAAAMwMUQJAARMAAAAAgIAAAADMDJECQAETAAAAAICAAAAAzAzRAkABEwAAAACAgAAAAMwNEQJAARMAAAAAgIAAAADMDVECQAETAAAAAICAAAAAzA2RAkABEwAAAACAgAAAAMwN0QJAARMAAAAAgIAAAADMDhECQAETAAAAAICAAAAAzA5RAkABEwAAAACAgAAAAMxMEQJAARMAAAAAgIAAAADMTFECQAETAAAAAICAAAAAzEyRAkABEwAAAACAgAAAAMxM0QJAARMAAAAAgIAAAADMDFICQAETAAAAAICAAAAAzAySAkABEwAAAACAgAAAAMwM0gJAARMAAAAAgIAAAADMDRICQAETAAAAAICAAAAAzA1SAkABEwAAAACAgAAAAMwNkgJAARMAAAAAgIAAAADMDdICQAETAAAAAICAAAAAzA4SAkABEwAAAACAgAAAAMwOUgJAARMAAAAAgIAAAADMTBICQAETAAAAAICAAAAAzExSAkABEwAAAACAgAAAAMxMkgJAARMAAAAAgIAAAADMTNICQAETAAAAAICAAAAAzAxUwkABEwAAAACAgAAAAMwMlMJAARMAAAAAgIAAAADMDNTCQAETAAAAAICAAAAAzA0UwkABEwAAAACAgAAAAMwNVMJAARMAAAAAgIAAAADMDZTCQAETAAAAAICAAAAAzA3UwkABEwAAAACAgAAAAMwOFMJAARMAAAAAgIAAAADMDlTCQAETAAAAAICAAAAAzEwUwkABEwAAAACAgAAAAMxMVMJAARMAAAAAgIAAAADMTJTCQAETAAAAAICAAAAAzEzUwUAAAADbmlsAQAAAA5nZXRTaXhOZXdEZWNrcwAAAAAJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQEAAAAKZ2V0TmV3RGVjawAAAAAJAQAAAApnZXROZXdEZWNrAAAAAAkBAAAACmdldE5ld0RlY2sAAAAACQEAAAAKZ2V0TmV3RGVjawAAAAAJAQAAAApnZXROZXdEZWNrAAAAAAkBAAAACmdldE5ld0RlY2sAAAAAAQAAAAdnZXREZWNrAAAAAQAAAARkZWNrAwkAAGcAAAACAAAAAAAAAAAACQABkAAAAAEFAAAABGRlY2sJAQAAAA5nZXRTaXhOZXdEZWNrcwAAAAAFAAAABGRlY2sBAAAAD2dldFJhbmRvbU51bW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XIHCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAC3dpdGhkcmF3S2V5CQABpAAAAAEJAABoAAAAAgUAAAAJY3VyU3VtQmV0AAAAAAAAAAACCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACBQAAAAljdXJTdW1CZXQAAAAAAAAAAAIFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAABZZb3UgYXJlIG5vdCB0aGUgd2lubmVyAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlVzz6v", "height": 1817207, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hwv93F4KHrHoX69TjzAgDaQxAp6PjdBd9By2tvbVfv7k Next: Am5TaC7gE7jspn9i27Yho2cngGoGpPHrQr2qvLynDEMH Diff:
OldNewDifferences
9898
9999
100100 @Callable(y)
101-func bet1 (R) = {
101+func bet (R) = {
102102 let G = toBase58String(y.caller.bytes)
103103 let C = x(y)
104104 let S = t(this, (R + "_sumBets"))
165165
166166
167167 @Callable(y)
168-func withdraw1 (R) = {
168+func withdraw (R) = {
169169 let G = toBase58String(y.caller.bytes)
170170 let ae = (R + "_withdraw")
171171 if (isDefined(getString(this, ae)))
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,v) = {
4545 let r = getInteger(u, v)
4646 if ($isInstanceOf(r, "Int"))
4747 then {
4848 let w = r
4949 w
5050 }
5151 else 0
5252 }
5353
5454
5555 func x (y) = if ((size(y.payments) == 0))
5656 then throw("Payment must be attached")
5757 else {
5858 let z = y.payments[0]
5959 if (isDefined(z.assetId))
6060 then throw("This function accepts WAVES tokens only")
6161 else z.amount
6262 }
6363
6464
6565 func A (B) = {
6666 let C = parseIntValue(take(B, 2))
6767 if ((C == 1))
6868 then 20
6969 else C
7070 }
7171
7272
7373 func D (E,F,G,a) = {
7474 let C = A(E)
7575 let H = A(F)
7676 if ((C > H))
7777 then G
7878 else a
7979 }
8080
8181
8282 func I (u,J) = if (isDefined(getString(u, J)))
8383 then {
8484 let K = getStringValue(u, J)
8585 let h = split(K, d)
8686 g(h)
8787 }
8888 else f()
8989
9090
9191 func L (M,G,h) = {
9292 let N = g(h)
9393 let O = i(((M + makeString(N, d)) + G), p(G), size(N))
9494 let P = N[(O % size(N))]
9595 let Q = removeByIndex(N, (O % size(N)))
9696 $Tuple3(P, O, Q)
9797 }
9898
9999
100100 @Callable(y)
101-func bet1 (R) = {
101+func bet (R) = {
102102 let G = toBase58String(y.caller.bytes)
103103 let C = x(y)
104104 let S = t(this, (R + "_sumBets"))
105105 let T = {
106106 let r = getInteger(this, (R + "_drawSequence"))
107107 if ($isInstanceOf(r, "Int"))
108108 then {
109109 let w = r
110110 (w + 1)
111111 }
112112 else 0
113113 }
114114 let U = {
115115 let r = getString(this, (R + "_player"))
116116 if ($isInstanceOf(r, "String"))
117117 then {
118118 let w = r
119119 w
120120 }
121121 else unit
122122 }
123123 let V = {
124124 let r = getInteger(this, (R + "_initialBet"))
125125 if ($isInstanceOf(r, "Int"))
126126 then {
127127 let w = r
128128 w
129129 }
130130 else C
131131 }
132132 let J = (R + "_available")
133133 let W = (S + C)
134134 if (if (isDefined(getBoolean(this, (R + "_stop"))))
135135 then true
136136 else isDefined(getString(this, R)))
137137 then throw("This round is already played")
138138 else if (if (isDefined(getString(this, (R + "_player"))))
139139 then (U != G)
140140 else false)
141141 then throw("This is not your game")
142142 else if ((W > c))
143143 then throw(((("Maximum amount of bets for round " + toString(c)) + ". With your bet it's ") + toString(W)))
144144 else if ((V != C))
145145 then throw(((("Initial bet not maching original:" + toString(V)) + ", actual:") + toString(C)))
146146 else {
147147 let X = I(this, J)
148148 let Y = L(R, G, X)
149149 let E = Y._1
150150 let Z = Y._2
151151 let aa = Y._3
152152 let ab = L(R, G, aa)
153153 let F = ab._1
154154 let ac = ab._2
155155 let N = ab._3
156156 if ((A(E) == A(F)))
157157 then [StringEntry(J, makeString(N, d)), StringEntry((R + "_player"), G), IntegerEntry((R + "_initialBet"), V), StringEntry((R + "_salt_debug"), R), IntegerEntry((R + "_LastRandonNumber"), ac), IntegerEntry((R + "_sumBets"), W), StringEntry((R + "_playerCard"), E), StringEntry((R + "_casinoCard"), F), IntegerEntry((R + "_drawSequence"), (T + 1))]
158158 else {
159159 let ad = D(E, F, G, a)
160160 [StringEntry(J, makeString(N, d)), StringEntry((R + "_player"), G), IntegerEntry((R + "_initialBet"), V), StringEntry((R + "_salt_debug"), R), IntegerEntry((R + "_LastRandonNumber"), ac), IntegerEntry((R + "_sumBets"), W), StringEntry((R + "_playerCard"), E), StringEntry((R + "_casinoCard"), F), BooleanEntry((R + "_stop"), true), StringEntry((R + "_winner"), ad)]
161161 }
162162 }
163163 }
164164
165165
166166
167167 @Callable(y)
168-func withdraw1 (R) = {
168+func withdraw (R) = {
169169 let G = toBase58String(y.caller.bytes)
170170 let ae = (R + "_withdraw")
171171 if (isDefined(getString(this, ae)))
172172 then throw("You have already got your prize")
173173 else if (!(isDefined(getString(this, (R + "_winner")))))
174174 then throw("There is no winner, it was a draw")
175175 else {
176176 let ad = getStringValue(this, (R + "_winner"))
177177 let af = getStringValue(this, (R + "_player"))
178178 let ag = getIntegerValue(this, (R + "_sumBets"))
179179 if ((ag == 0))
180180 then throw("You won nothing this round")
181181 else if (if ((ad == G))
182182 then (ad == a)
183183 else false)
184184 then [StringEntry(ae, toString(ag)), ScriptTransfer(y.caller, ag, unit)]
185185 else if (if ((ad == G))
186186 then (ad == af)
187187 else false)
188188 then [StringEntry(ae, toString((ag * 2))), ScriptTransfer(y.caller, (ag * 2), unit)]
189189 else throw("You are not the winner")
190190 }
191191 }
192192
193193
194194 @Verifier(ah)
195195 func ai () = sigVerify(ah.bodyBytes, ah.proofs[0], ah.senderPublicKey)
196196

github/deemru/w8io/169f3d6 
51.85 ms