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:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAPAAAAAAZjYXNpbm8CAAAAIzNNdGFDTDR2MWJqVGFiVXFzN29VNG9mUzhmYmFpMzRXTTFpAAAAAAVXQVZFUwAAAAAAO5rKAAAAAAAGbWF4QmV0CQAAaAAAAAIAAAAAAAAAAGQFAAAABVdBVkVTAAAAAAlzZXBhcmF0b3ICAAAAASwBAAAACmdldE5ld0RlY2sAAAAACQAETAAAAAICAAAAAzAxQwkABEwAAAACAgAAAAMwMkMJAARMAAAAAgIAAAADMDNDCQAETAAAAAICAAAAAzA0QwkABEwAAAACAgAAAAMwNUMJAARMAAAAAgIAAAADMDZDCQAETAAAAAICAAAAAzA3QwkABEwAAAACAgAAAAMwOEMJAARMAAAAAgIAAAADMDlDCQAETAAAAAICAAAAAzEwQwkABEwAAAACAgAAAAMxMUMJAARMAAAAAgIAAAADMTJDCQAETAAAAAICAAAAAzEzQwkABEwAAAACAgAAAAMwMUQJAARMAAAAAgIAAAADMDJECQAETAAAAAICAAAAAzAzRAkABEwAAAACAgAAAAMwNEQJAARMAAAAAgIAAAADMDVECQAETAAAAAICAAAAAzA2RAkABEwAAAACAgAAAAMwN0QJAARMAAAAAgIAAAADMDhECQAETAAAAAICAAAAAzA5RAkABEwAAAACAgAAAAMxMEQJAARMAAAAAgIAAAADMTFECQAETAAAAAICAAAAAzEyRAkABEwAAAACAgAAAAMxM0QJAARMAAAAAgIAAAADMDFICQAETAAAAAICAAAAAzAySAkABEwAAAACAgAAAAMwM0gJAARMAAAAAgIAAAADMDRICQAETAAAAAICAAAAAzA1SAkABEwAAAACAgAAAAMwNkgJAARMAAAAAgIAAAADMDdICQAETAAAAAICAAAAAzA4SAkABEwAAAACAgAAAAMwOUgJAARMAAAAAgIAAAADMTBICQAETAAAAAICAAAAAzExSAkABEwAAAACAgAAAAMxMkgJAARMAAAAAgIAAAADMTNICQAETAAAAAICAAAAAzAxUwkABEwAAAACAgAAAAMwMlMJAARMAAAAAgIAAAADMDNTCQAETAAAAAICAAAAAzA0UwkABEwAAAACAgAAAAMwNVMJAARMAAAAAgIAAAADMDZTCQAETAAAAAICAAAAAzA3UwkABEwAAAACAgAAAAMwOFMJAARMAAAAAgIAAAADMDlTCQAETAAAAAICAAAAAzEwUwkABEwAAAACAgAAAAMxMVMJAARMAAAAAgIAAAADMTJTCQAETAAAAAICAAAAAzEzUwUAAAADbmlsAQAAAA5nZXRTaXhOZXdEZWNrcwAAAAAJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQEAAAAKZ2V0TmV3RGVjawAAAAAJAQAAAApnZXROZXdEZWNrAAAAAAkBAAAACmdldE5ld0RlY2sAAAAACQEAAAAKZ2V0TmV3RGVjawAAAAAJAQAAAApnZXROZXdEZWNrAAAAAAkBAAAACmdldE5ld0RlY2sAAAAAAQAAAAdnZXREZWNrAAAAAQAAAARkZWNrAwkAAGcAAAACAAAAAAAAAAAACQABkAAAAAEFAAAABGRlY2sJAQAAAA5nZXRTaXhOZXdEZWNrcwAAAAAFAAAABGRlY2sBAAAAD2dldFJhbmRvbU51bWJ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IHCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAC3dpdGhkcmF3S2V5CQABpAAAAAEJAABoAAAAAgUAAAAJY3VyU3VtQmV0AAAAAAAAAAACCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACBQAAAAljdXJTdW1CZXQAAAAAAAAAAAIFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAABZZb3UgYXJlIG5vdCB0aGUgd2lubmVyAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlVzz6v", "height": 1817207, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hwv93F4KHrHoX69TjzAgDaQxAp6PjdBd9By2tvbVfv7k Next: Am5TaC7gE7jspn9i27Yho2cngGoGpPHrQr2qvLynDEMH Diff:
Old | New | Differences | |
---|---|---|---|
98 | 98 | ||
99 | 99 | ||
100 | 100 | @Callable(y) | |
101 | - | func | |
101 | + | func bet (R) = { | |
102 | 102 | let G = toBase58String(y.caller.bytes) | |
103 | 103 | let C = x(y) | |
104 | 104 | let S = t(this, (R + "_sumBets")) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(y) | |
168 | - | func | |
168 | + | func withdraw (R) = { | |
169 | 169 | let G = toBase58String(y.caller.bytes) | |
170 | 170 | let ae = (R + "_withdraw") | |
171 | 171 | if (isDefined(getString(this, ae))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3MtaCL4v1bjTabUqs7oU4ofS8fbai34WM1i" | |
5 | 5 | ||
6 | 6 | let b = 1000000000 | |
7 | 7 | ||
8 | 8 | let c = (100 * b) | |
9 | 9 | ||
10 | 10 | let d = "," | |
11 | 11 | ||
12 | 12 | 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"] | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f () = (((((e() ++ e()) ++ e()) ++ e()) ++ e()) ++ e()) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func g (h) = if ((0 >= size(h))) | |
19 | 19 | then f() | |
20 | 20 | else h | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func i (j,k,l) = { | |
24 | 24 | let m = sha256(toBytes((j + k))) | |
25 | 25 | let n = toInt(m) | |
26 | 26 | let o = (n % l) | |
27 | 27 | if ((0 > o)) | |
28 | 28 | then ((-1 * o) + 1) | |
29 | 29 | else (o + 1) | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p (q) = { | |
34 | 34 | let r = getInteger(this, (q + "_LastRandonNumber")) | |
35 | 35 | if ($isInstanceOf(r, "Int")) | |
36 | 36 | then { | |
37 | 37 | let s = r | |
38 | 38 | toString(s) | |
39 | 39 | } | |
40 | 40 | else q | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func t (u,v) = { | |
45 | 45 | let r = getInteger(u, v) | |
46 | 46 | if ($isInstanceOf(r, "Int")) | |
47 | 47 | then { | |
48 | 48 | let w = r | |
49 | 49 | w | |
50 | 50 | } | |
51 | 51 | else 0 | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func x (y) = if ((size(y.payments) == 0)) | |
56 | 56 | then throw("Payment must be attached") | |
57 | 57 | else { | |
58 | 58 | let z = y.payments[0] | |
59 | 59 | if (isDefined(z.assetId)) | |
60 | 60 | then throw("This function accepts WAVES tokens only") | |
61 | 61 | else z.amount | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func A (B) = { | |
66 | 66 | let C = parseIntValue(take(B, 2)) | |
67 | 67 | if ((C == 1)) | |
68 | 68 | then 20 | |
69 | 69 | else C | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func D (E,F,G,a) = { | |
74 | 74 | let C = A(E) | |
75 | 75 | let H = A(F) | |
76 | 76 | if ((C > H)) | |
77 | 77 | then G | |
78 | 78 | else a | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func I (u,J) = if (isDefined(getString(u, J))) | |
83 | 83 | then { | |
84 | 84 | let K = getStringValue(u, J) | |
85 | 85 | let h = split(K, d) | |
86 | 86 | g(h) | |
87 | 87 | } | |
88 | 88 | else f() | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func L (M,G,h) = { | |
92 | 92 | let N = g(h) | |
93 | 93 | let O = i(((M + makeString(N, d)) + G), p(G), size(N)) | |
94 | 94 | let P = N[(O % size(N))] | |
95 | 95 | let Q = removeByIndex(N, (O % size(N))) | |
96 | 96 | $Tuple3(P, O, Q) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | @Callable(y) | |
101 | - | func | |
101 | + | func bet (R) = { | |
102 | 102 | let G = toBase58String(y.caller.bytes) | |
103 | 103 | let C = x(y) | |
104 | 104 | let S = t(this, (R + "_sumBets")) | |
105 | 105 | let T = { | |
106 | 106 | let r = getInteger(this, (R + "_drawSequence")) | |
107 | 107 | if ($isInstanceOf(r, "Int")) | |
108 | 108 | then { | |
109 | 109 | let w = r | |
110 | 110 | (w + 1) | |
111 | 111 | } | |
112 | 112 | else 0 | |
113 | 113 | } | |
114 | 114 | let U = { | |
115 | 115 | let r = getString(this, (R + "_player")) | |
116 | 116 | if ($isInstanceOf(r, "String")) | |
117 | 117 | then { | |
118 | 118 | let w = r | |
119 | 119 | w | |
120 | 120 | } | |
121 | 121 | else unit | |
122 | 122 | } | |
123 | 123 | let V = { | |
124 | 124 | let r = getInteger(this, (R + "_initialBet")) | |
125 | 125 | if ($isInstanceOf(r, "Int")) | |
126 | 126 | then { | |
127 | 127 | let w = r | |
128 | 128 | w | |
129 | 129 | } | |
130 | 130 | else C | |
131 | 131 | } | |
132 | 132 | let J = (R + "_available") | |
133 | 133 | let W = (S + C) | |
134 | 134 | if (if (isDefined(getBoolean(this, (R + "_stop")))) | |
135 | 135 | then true | |
136 | 136 | else isDefined(getString(this, R))) | |
137 | 137 | then throw("This round is already played") | |
138 | 138 | else if (if (isDefined(getString(this, (R + "_player")))) | |
139 | 139 | then (U != G) | |
140 | 140 | else false) | |
141 | 141 | then throw("This is not your game") | |
142 | 142 | else if ((W > c)) | |
143 | 143 | then throw(((("Maximum amount of bets for round " + toString(c)) + ". With your bet it's ") + toString(W))) | |
144 | 144 | else if ((V != C)) | |
145 | 145 | then throw(((("Initial bet not maching original:" + toString(V)) + ", actual:") + toString(C))) | |
146 | 146 | else { | |
147 | 147 | let X = I(this, J) | |
148 | 148 | let Y = L(R, G, X) | |
149 | 149 | let E = Y._1 | |
150 | 150 | let Z = Y._2 | |
151 | 151 | let aa = Y._3 | |
152 | 152 | let ab = L(R, G, aa) | |
153 | 153 | let F = ab._1 | |
154 | 154 | let ac = ab._2 | |
155 | 155 | let N = ab._3 | |
156 | 156 | if ((A(E) == A(F))) | |
157 | 157 | 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))] | |
158 | 158 | else { | |
159 | 159 | let ad = D(E, F, G, a) | |
160 | 160 | [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)] | |
161 | 161 | } | |
162 | 162 | } | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(y) | |
168 | - | func | |
168 | + | func withdraw (R) = { | |
169 | 169 | let G = toBase58String(y.caller.bytes) | |
170 | 170 | let ae = (R + "_withdraw") | |
171 | 171 | if (isDefined(getString(this, ae))) | |
172 | 172 | then throw("You have already got your prize") | |
173 | 173 | else if (!(isDefined(getString(this, (R + "_winner"))))) | |
174 | 174 | then throw("There is no winner, it was a draw") | |
175 | 175 | else { | |
176 | 176 | let ad = getStringValue(this, (R + "_winner")) | |
177 | 177 | let af = getStringValue(this, (R + "_player")) | |
178 | 178 | let ag = getIntegerValue(this, (R + "_sumBets")) | |
179 | 179 | if ((ag == 0)) | |
180 | 180 | then throw("You won nothing this round") | |
181 | 181 | else if (if ((ad == G)) | |
182 | 182 | then (ad == a) | |
183 | 183 | else false) | |
184 | 184 | then [StringEntry(ae, toString(ag)), ScriptTransfer(y.caller, ag, unit)] | |
185 | 185 | else if (if ((ad == G)) | |
186 | 186 | then (ad == af) | |
187 | 187 | else false) | |
188 | 188 | then [StringEntry(ae, toString((ag * 2))), ScriptTransfer(y.caller, (ag * 2), unit)] | |
189 | 189 | else throw("You are not the winner") | |
190 | 190 | } | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Verifier(ah) | |
195 | 195 | func ai () = sigVerify(ah.bodyBytes, ah.proofs[0], ah.senderPublicKey) | |
196 | 196 |
github/deemru/w8io/169f3d6 51.85 ms ◑