tx · DGsR1vDJrNaRA1WeRT65YhtvBeNefZrwUSMGXTQ1f4cU 3MyrsoUShtK8LVWE6mGVinCdwiJeedCtkvr: -0.01400000 Waves 2023.11.28 13:36 [2863132] smart account 3MyrsoUShtK8LVWE6mGVinCdwiJeedCtkvr > SELF 0.00000000 Waves
{ "type": 13, "id": "DGsR1vDJrNaRA1WeRT65YhtvBeNefZrwUSMGXTQ1f4cU", "fee": 1400000, "feeAssetId": null, "timestamp": 1701167803265, "version": 1, "sender": "3MyrsoUShtK8LVWE6mGVinCdwiJeedCtkvr", "senderPublicKey": "53WfUfPHKFYj846Npe6Bu5indsxPueAsu9YWe8fnprXh", "proofs": [ "5c6URsJwZugGdwfdm4TagU3EwZp3JxF9Au1H1rySZ6A7BLtDkPqbdzmUyftrprU4VFF95pubZwZsRBn1ttz81Khc" ], "script": "base64:BgIaCAISBgoECAgBCBIDCgEEEgMKAQgSBAoCCAJCAANTRVACAl9fAAdXQVZFU0lEAQQTq9kzAAZXQVZFU0QAgMLXLwAJR0FNRV9OQU1FAg9DYXJkIG9mIHRoZSBEYXkADFJBTkRPTV9SQU5HRQAoAAhOVU1fQkVUUwABAAhXSU5fQ0FSRAkApAMBCQBlAgUMUkFORE9NX1JBTkdFAAEBDGdldFN0ck9yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNzBQNrZXkJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQxnZXRJbnRPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJoIAgUHYWRkcmVzcwUDa2V5CQC5CQIJAMwIAgIKbWFuZGF0b3J5IAkAzAgCCQClCAEFB2FkZHJlc3MJAMwIAgIBLgkAzAgCBQNrZXkJAMwIAgIPIGlzIG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ICCQEYa2V5UmVzZXJ2YXRpb25CeUFzc2V0U3RyAQUFYXNzZXQAAAAABwoAAiRsBQZBU1NFVFMKAAIkcwkAkAMBBQIkbAoABSRhY2MwBgoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEHY2hlY2tlcgIFAiRhCQCRAwIFAiRsBQIkaQoBBSRmMF8yAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQACAQIUTGlzdCBzaXplIGV4Y2VlZHMgMTAJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgcHKYev3Q==", "chainId": 84, "height": 2863132, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6HkiJZhvmR393T8YxBmF85gjSsyRMGhGGpe1W1C2nAgF Next: GgxepTxMZteQCP5HtU6VQe9fehEdoMP5sgRr4BjqkuCw Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | let f = 1 | |
15 | 15 | ||
16 | - | func g (h,i) = valueOrErrorMessage(getString(h, i), makeString(["mandatory ", toString(h), ".", i, " is not defined"], "")) | |
16 | + | let g = toString((e - 1)) | |
17 | + | ||
18 | + | func h (i,j) = valueOrErrorMessage(getString(i, j), makeString(["mandatory ", toString(i), ".", j, " is not defined"], "")) | |
17 | 19 | ||
18 | 20 | ||
19 | - | func | |
21 | + | func k (i,j) = valueOrErrorMessage(getInteger(i, j), makeString(["mandatory ", toString(i), ".", j, " is not defined"], "")) | |
20 | 22 | ||
21 | 23 | ||
22 | - | func | |
24 | + | func l (i,j) = valueOrErrorMessage(getBoolean(i, j), makeString(["mandatory ", toString(i), ".", j, " is not defined"], "")) | |
23 | 25 | ||
24 | 26 | ||
25 | - | let | |
27 | + | let m = "%s%s__cfg__allowedAssets" | |
26 | 28 | ||
27 | - | let | |
29 | + | let n = "%s%s__cfg__assetsDecimals" | |
28 | 30 | ||
29 | - | let | |
31 | + | let o = "%s%s__cfg__assetsBetDividers" | |
30 | 32 | ||
31 | - | let | |
33 | + | let p = "%s%s__cfg__rsaPublic64" | |
32 | 34 | ||
33 | - | let | |
35 | + | let q = "%s%s__cfg__benzAddress" | |
34 | 36 | ||
35 | - | let | |
37 | + | let r = "%s%s__cfg__withdrawTimeFrame" | |
36 | 38 | ||
37 | - | let | |
39 | + | let s = "%s%s__runtime__gameNum" | |
38 | 40 | ||
39 | - | let | |
41 | + | let t = "%s%s__runtime__contractIsBlocked" | |
40 | 42 | ||
41 | - | func | |
42 | - | let | |
43 | - | func | |
43 | + | func u (j) = { | |
44 | + | let v = h(this, j) | |
45 | + | func w (x,y) = (x :+ parseIntValue(y)) | |
44 | 46 | ||
45 | - | let | |
46 | - | let | |
47 | - | let | |
48 | - | func | |
49 | - | then | |
50 | - | else | |
47 | + | let z = split(v, a) | |
48 | + | let A = size(z) | |
49 | + | let B = nil | |
50 | + | func C (D,E) = if ((E >= A)) | |
51 | + | then D | |
52 | + | else w(D, z[E]) | |
51 | 53 | ||
52 | - | func | |
53 | - | then | |
54 | + | func F (D,E) = if ((E >= A)) | |
55 | + | then D | |
54 | 56 | else throw("List size exceeds 10") | |
55 | 57 | ||
56 | - | | |
58 | + | F(C(C(C(C(C(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
57 | 59 | } | |
58 | 60 | ||
59 | 61 | ||
60 | - | let | |
62 | + | let G = split(h(this, m), a) | |
61 | 63 | ||
62 | - | let | |
64 | + | let H = u(n) | |
63 | 65 | ||
64 | - | let | |
66 | + | let I = u(o) | |
65 | 67 | ||
66 | - | func | |
68 | + | func J (K) = ("$RESERVED_AMOUNT_" + K) | |
67 | 69 | ||
68 | 70 | ||
69 | - | func | |
71 | + | func L (M) = J(G[M]) | |
70 | 72 | ||
71 | 73 | ||
72 | - | let | |
74 | + | let N = ((5 * c) / 1000) | |
73 | 75 | ||
74 | - | let | |
76 | + | let O = 0 | |
75 | 77 | ||
76 | - | let | |
78 | + | let P = 1 | |
77 | 79 | ||
78 | - | let | |
80 | + | let Q = 2 | |
79 | 81 | ||
80 | - | let | |
82 | + | let R = 1 | |
81 | 83 | ||
82 | - | let | |
84 | + | let S = 2 | |
83 | 85 | ||
84 | - | let | |
86 | + | let T = 4 | |
85 | 87 | ||
86 | - | let | |
88 | + | let U = 8 | |
87 | 89 | ||
88 | - | let | |
90 | + | let V = 14 | |
89 | 91 | ||
90 | - | let | |
92 | + | let W = 10000 | |
91 | 93 | ||
92 | - | let | |
94 | + | let X = 250000 | |
93 | 95 | ||
94 | - | let | |
96 | + | let Y = [S] | |
95 | 97 | ||
96 | - | let | |
98 | + | let Z = 0 | |
97 | 99 | ||
98 | - | let | |
100 | + | let aa = 1 | |
99 | 101 | ||
100 | - | let | |
102 | + | let ab = 2 | |
101 | 103 | ||
102 | - | let | |
104 | + | let ac = 3 | |
103 | 105 | ||
104 | - | let | |
106 | + | let ad = 4 | |
105 | 107 | ||
106 | - | let | |
108 | + | let ae = 5 | |
107 | 109 | ||
108 | - | let | |
110 | + | let af = "SUBMITTED" | |
109 | 111 | ||
110 | - | let | |
112 | + | let ag = "WON" | |
111 | 113 | ||
112 | - | let | |
114 | + | let ah = "LOST" | |
113 | 115 | ||
114 | - | func | |
116 | + | func ai (j) = valueOrErrorMessage(getString(this, j), (j + " key is not specified in this.state")) | |
115 | 117 | ||
116 | 118 | ||
117 | - | let | |
119 | + | let aj = fromBase64String(ai(p)) | |
118 | 120 | ||
119 | - | let | |
121 | + | let ak = addressFromStringValue(ai(q)) | |
120 | 122 | ||
121 | - | let | |
123 | + | let al = valueOrElse(getInteger(this, r), 7200) | |
122 | 124 | ||
123 | - | func | |
124 | - | then getIntegerValue( | |
125 | - | else | |
125 | + | func am (j,an) = if (isDefined(getInteger(j))) | |
126 | + | then getIntegerValue(j) | |
127 | + | else an | |
126 | 128 | ||
127 | 129 | ||
128 | - | func | |
130 | + | func ao (j,ap) = IntegerEntry(j, ap) | |
129 | 131 | ||
130 | 132 | ||
131 | - | func | |
133 | + | func aq (j) = ao(j, (am(j, -1) + 1)) | |
132 | 134 | ||
133 | 135 | ||
134 | - | func | |
136 | + | func ar (j,as) = ao(j, (am(j, 0) + as)) | |
135 | 137 | ||
136 | 138 | ||
137 | - | func | |
138 | - | let | |
139 | - | if ($isInstanceOf( | |
139 | + | func at (au) = { | |
140 | + | let av = au | |
141 | + | if ($isInstanceOf(av, "ByteVector")) | |
140 | 142 | then { | |
141 | - | let | |
142 | - | toBase58String( | |
143 | + | let aw = av | |
144 | + | toBase58String(aw) | |
143 | 145 | } | |
144 | 146 | else "WAVES" | |
145 | 147 | } | |
146 | 148 | ||
147 | 149 | ||
148 | - | func | |
150 | + | func ax (ay) = if ((ay == "WAVES")) | |
149 | 151 | then unit | |
150 | - | else fromBase58String( | |
152 | + | else fromBase58String(ay) | |
151 | 153 | ||
152 | 154 | ||
153 | - | func | |
154 | - | let | |
155 | - | if ($isInstanceOf( | |
155 | + | func az (au) = { | |
156 | + | let av = au | |
157 | + | if ($isInstanceOf(av, "ByteVector")) | |
156 | 158 | then { | |
157 | - | let | |
158 | - | assetBalance(this, | |
159 | + | let aA = av | |
160 | + | assetBalance(this, aA) | |
159 | 161 | } | |
160 | 162 | else wavesBalance(this).available | |
161 | 163 | } | |
162 | 164 | ||
163 | 165 | ||
164 | - | func | |
165 | - | let | |
166 | - | let | |
167 | - | if (( | |
166 | + | func aB (aC,M) = { | |
167 | + | let ay = G[M] | |
168 | + | let aD = (am(L(M), 0) + aC) | |
169 | + | if ((aD > az(ax(ay)))) | |
168 | 170 | then throw((("Insufficient funds on " + d) + " account. Transaction was rejected for your safety.")) | |
169 | - | else | |
171 | + | else aD | |
170 | 172 | } | |
171 | 173 | ||
172 | 174 | ||
173 | - | func | |
175 | + | func aE (aF,M,aC) = if ((0 > (am(L(M), 0) - aC))) | |
174 | 176 | then throw((("Invalid " + d) + " account state - reserved amount is less than 0")) | |
175 | - | else | |
177 | + | else ar(L(M), -(aC)) | |
176 | 178 | ||
177 | 179 | ||
178 | - | func | |
179 | - | let | |
180 | - | if (!(isDefined( | |
180 | + | func aG (ay) = { | |
181 | + | let aH = indexOf(G, ay) | |
182 | + | if (!(isDefined(aH))) | |
181 | 183 | then throw("Invalid payment asset") | |
182 | - | else value( | |
184 | + | else value(aH) | |
183 | 185 | } | |
184 | 186 | ||
185 | 187 | ||
186 | - | func | |
187 | - | let | |
188 | - | func | |
188 | + | func aI (aJ,aK,aL) = { | |
189 | + | let aM = size(aL) | |
190 | + | func aN (v,aO) = if (v) | |
189 | 191 | then true | |
190 | - | else ( | |
192 | + | else (aJ == ((aO * H[aK]) / I[aK])) | |
191 | 193 | ||
192 | 194 | if (!({ | |
193 | - | let | |
194 | - | let | |
195 | - | let | |
196 | - | func | |
197 | - | then | |
198 | - | else | |
195 | + | let z = Y | |
196 | + | let A = size(z) | |
197 | + | let B = false | |
198 | + | func C (D,E) = if ((E >= A)) | |
199 | + | then D | |
200 | + | else aN(D, z[E]) | |
199 | 201 | ||
200 | - | func | |
201 | - | then | |
202 | + | func F (D,E) = if ((E >= A)) | |
203 | + | then D | |
202 | 204 | else throw("List size exceeds 5") | |
203 | 205 | ||
204 | - | | |
206 | + | F(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5) | |
205 | 207 | })) | |
206 | 208 | then throw("Bet amount is not valid") | |
207 | - | else if ((parseInt( | |
209 | + | else if ((parseInt(aL) == unit)) | |
208 | 210 | then throw("Invalid player's choice") | |
209 | - | else fraction( | |
211 | + | else fraction(aJ, X, W) | |
210 | 212 | } | |
211 | 213 | ||
212 | 214 | ||
213 | - | func | |
214 | - | let | |
215 | - | if (!( | |
215 | + | func aP (aF,aQ,aL) = { | |
216 | + | let aR = rsaVerify_16Kb(SHA256, toBytes(aF), aQ, aj) | |
217 | + | if (!(aR)) | |
216 | 218 | then throw("Invalid RSA signature") | |
217 | 219 | else { | |
218 | - | let | |
219 | - | toString( | |
220 | + | let aS = (toInt(sha256((aQ + toBytes(aL)))) % e) | |
221 | + | toString(aS) | |
220 | 222 | } | |
221 | 223 | } | |
222 | 224 | ||
223 | 225 | ||
224 | - | func aS (aK,aT) = if ((size(aK) == f)) | |
225 | - | then (aT == toString((e - 1))) | |
226 | - | else false | |
226 | + | func aT (aL,aU) = (aL == aU) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func | |
229 | + | func aV (aW,aL,aX,aY,aC,M,aZ) = makeString([aW, aL, aX, aY, aC, M, if ((aZ == "")) | |
230 | 230 | then "" | |
231 | - | else | |
231 | + | else aZ], "_") | |
232 | 232 | ||
233 | 233 | ||
234 | - | func | |
234 | + | func ba (aW,aL,aX,aY,aC,M,aZ) = aV(aW, aL, aX, toString(aY), toString(aC), toString(M), aZ) | |
235 | 235 | ||
236 | 236 | ||
237 | - | func | |
238 | - | let | |
239 | - | if ( | |
240 | - | then ( | |
241 | - | else | |
237 | + | func bb (bc,aW,aS,bd) = { | |
238 | + | let bb = aV(aW, aS, bc[ab], bc[ac], bc[ad], bc[ae], g) | |
239 | + | if (bd) | |
240 | + | then (bb + "_TIMEOUT") | |
241 | + | else bb | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | - | func | |
246 | - | let | |
247 | - | if ($isInstanceOf( | |
245 | + | func be (aF) = split({ | |
246 | + | let av = getString(this, aF) | |
247 | + | if ($isInstanceOf(av, "String")) | |
248 | 248 | then { | |
249 | - | let | |
250 | - | | |
249 | + | let bf = av | |
250 | + | bf | |
251 | 251 | } | |
252 | - | else throw((("Game: " + | |
252 | + | else throw((("Game: " + aF) + " not found.")) | |
253 | 253 | }, "_") | |
254 | 254 | ||
255 | 255 | ||
256 | - | @Callable( | |
257 | - | func constructorV1 ( | |
256 | + | @Callable(bg) | |
257 | + | func constructorV1 (bh,bi,bj,bk) = if ((bg.caller != ak)) | |
258 | 258 | then throw("not authorized") | |
259 | 259 | else { | |
260 | - | func | |
261 | - | let | |
262 | - | if ((size( | |
260 | + | func bl (x,bm) = { | |
261 | + | let bn = split(bm, ":") | |
262 | + | if ((size(bn) != 4)) | |
263 | 263 | then throw("Invalid asset record") | |
264 | - | else $Tuple3(( | |
264 | + | else $Tuple3((x._1 :+ bn[O]), (x._2 :+ bn[P]), (x._3 :+ bn[Q])) | |
265 | 265 | } | |
266 | 266 | ||
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | func | |
272 | - | then | |
273 | - | else | |
267 | + | let bo = { | |
268 | + | let z = split_4C(bk, "_") | |
269 | + | let A = size(z) | |
270 | + | let B = $Tuple3(nil, nil, nil) | |
271 | + | func C (D,E) = if ((E >= A)) | |
272 | + | then D | |
273 | + | else bl(D, z[E]) | |
274 | 274 | ||
275 | - | func | |
276 | - | then | |
275 | + | func F (D,E) = if ((E >= A)) | |
276 | + | then D | |
277 | 277 | else throw("List size exceeds 10") | |
278 | 278 | ||
279 | - | | |
279 | + | F(C(C(C(C(C(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
280 | 280 | } | |
281 | - | [ | |
281 | + | [StringEntry(p, bh), StringEntry(q, bi), IntegerEntry(r, bj), StringEntry(m, makeString_2C(bo._1, a)), StringEntry(n, makeString(bo._2, a)), StringEntry(o, makeString(bo._3, a))] | |
282 | 282 | } | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | ||
286 | - | @Callable( | |
287 | - | func maintenance ( | |
286 | + | @Callable(bg) | |
287 | + | func maintenance (bp) = if ((bg.caller != ak)) | |
288 | 288 | then throw("not authorized") | |
289 | - | else [BooleanEntry( | |
289 | + | else [BooleanEntry(t, bp)] | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | ||
293 | - | @Callable( | |
294 | - | func bet ( | |
293 | + | @Callable(bg) | |
294 | + | func bet (aL) = if (valueOrElse(getBoolean(t), false)) | |
295 | 295 | then throw("Game is stopped for maintenence") | |
296 | 296 | else { | |
297 | - | let | |
298 | - | if ((1 >= size( | |
297 | + | let aF = toBase58String(bg.transactionId) | |
298 | + | if ((1 >= size(bg.payments))) | |
299 | 299 | then throw("2 payments must be attached") | |
300 | - | else if (isDefined(getString(this, | |
301 | - | then throw((("Bet for: " + | |
300 | + | else if (isDefined(getString(this, aF))) | |
301 | + | then throw((("Bet for: " + aF) + " was already made.")) | |
302 | 302 | else { | |
303 | - | let | |
304 | - | let | |
305 | - | if (isDefined( | |
303 | + | let bq = value(bg.payments[0]) | |
304 | + | let br = value(bg.payments[1]) | |
305 | + | if (isDefined(br.assetId)) | |
306 | 306 | then throw("feePmt (2nd payment) assetId must be in Waves") | |
307 | - | else if (( | |
307 | + | else if ((N > br.amount)) | |
308 | 308 | then throw("feePmt (2nd payment) must be >= 0.005 Waves") | |
309 | 309 | else { | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | [IntegerEntry( | |
310 | + | let ay = at(bq.assetId) | |
311 | + | let aK = aG(ay) | |
312 | + | let bs = br.amount | |
313 | + | let aC = aI(bq.amount, aK, aL) | |
314 | + | let aX = toBase58String(bg.callerPublicKey) | |
315 | + | let bt = ba(af, aL, aX, height, aC, aK, "") | |
316 | + | [IntegerEntry(L(aK), aB(aC, aK)), aq(s), StringEntry(aF, bt), ScriptTransfer(ak, bs, br.assetId)] | |
317 | 317 | } | |
318 | 318 | } | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | ||
323 | - | @Callable( | |
324 | - | func withdraw ( | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | if (( | |
323 | + | @Callable(bg) | |
324 | + | func withdraw (aF,aQ) = { | |
325 | + | let bt = be(aF) | |
326 | + | let bu = bt[Z] | |
327 | + | let aL = bt[aa] | |
328 | + | let aY = parseIntValue(bt[ac]) | |
329 | + | let aC = parseIntValue(bt[ad]) | |
330 | + | let M = parseIntValue(bt[ae]) | |
331 | + | let aX = bt[ab] | |
332 | + | let bv = addressFromPublicKey(fromBase58String(aX)) | |
333 | + | if ((bu != af)) | |
334 | 334 | then throw("Invalid game state for passed gameId") | |
335 | - | else if (( | |
335 | + | else if ((bg.caller != ak)) | |
336 | 336 | then throw("Regular withdraw can be done by server only") | |
337 | 337 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | then | |
341 | - | else | |
342 | - | let | |
343 | - | let | |
344 | - | then | |
345 | - | else | |
346 | - | let | |
347 | - | ([StringEntry( | |
348 | - | then [ScriptTransfer( | |
338 | + | let bd = ((height - aY) > al) | |
339 | + | let aU = if (bd) | |
340 | + | then g | |
341 | + | else aP(aF, aQ, aL) | |
342 | + | let bw = aT(aU, g) | |
343 | + | let bx = if (bw) | |
344 | + | then ag | |
345 | + | else ah | |
346 | + | let by = bb(bt, bx, aU, bd) | |
347 | + | ([StringEntry(aF, by), aE(aF, M, aC)] ++ (if (bw) | |
348 | + | then [ScriptTransfer(bv, aC, ax(G[M]))] | |
349 | 349 | else nil)) | |
350 | 350 | } | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | - | @Verifier( | |
355 | - | func | |
354 | + | @Verifier(bz) | |
355 | + | func bA () = if (sigVerify(bz.bodyBytes, bz.proofs[0], bz.senderPublicKey)) | |
356 | 356 | then { | |
357 | - | let | |
358 | - | if ($isInstanceOf( | |
357 | + | let av = bz | |
358 | + | if ($isInstanceOf(av, "TransferTransaction")) | |
359 | 359 | then { | |
360 | - | let | |
361 | - | let | |
362 | - | (( | |
360 | + | let bB = av | |
361 | + | let M = aG(at(bB.assetId)) | |
362 | + | ((az(bB.assetId) - bB.amount) >= am(L(M), 0)) | |
363 | 363 | } | |
364 | - | else if ($isInstanceOf( | |
364 | + | else if ($isInstanceOf(av, "SetScriptTransaction")) | |
365 | 365 | then { | |
366 | - | let | |
367 | - | func | |
368 | - | then ( | |
366 | + | let bC = av | |
367 | + | func bD (x,bE) = if (x) | |
368 | + | then (am(J(bE), 0) == 0) | |
369 | 369 | else false | |
370 | 370 | ||
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | func | |
375 | - | then | |
376 | - | else | |
371 | + | let z = G | |
372 | + | let A = size(z) | |
373 | + | let B = true | |
374 | + | func C (D,E) = if ((E >= A)) | |
375 | + | then D | |
376 | + | else bD(D, z[E]) | |
377 | 377 | ||
378 | - | func | |
379 | - | then | |
378 | + | func F (D,E) = if ((E >= A)) | |
379 | + | then D | |
380 | 380 | else throw("List size exceeds 10") | |
381 | 381 | ||
382 | - | | |
382 | + | F(C(C(C(C(C(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
383 | 383 | } | |
384 | 384 | else false | |
385 | 385 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = base58'WAVES' | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = "Card of the Day" | |
11 | 11 | ||
12 | 12 | let e = 40 | |
13 | 13 | ||
14 | 14 | let f = 1 | |
15 | 15 | ||
16 | - | func g (h,i) = valueOrErrorMessage(getString(h, i), makeString(["mandatory ", toString(h), ".", i, " is not defined"], "")) | |
16 | + | let g = toString((e - 1)) | |
17 | + | ||
18 | + | func h (i,j) = valueOrErrorMessage(getString(i, j), makeString(["mandatory ", toString(i), ".", j, " is not defined"], "")) | |
17 | 19 | ||
18 | 20 | ||
19 | - | func | |
21 | + | func k (i,j) = valueOrErrorMessage(getInteger(i, j), makeString(["mandatory ", toString(i), ".", j, " is not defined"], "")) | |
20 | 22 | ||
21 | 23 | ||
22 | - | func | |
24 | + | func l (i,j) = valueOrErrorMessage(getBoolean(i, j), makeString(["mandatory ", toString(i), ".", j, " is not defined"], "")) | |
23 | 25 | ||
24 | 26 | ||
25 | - | let | |
27 | + | let m = "%s%s__cfg__allowedAssets" | |
26 | 28 | ||
27 | - | let | |
29 | + | let n = "%s%s__cfg__assetsDecimals" | |
28 | 30 | ||
29 | - | let | |
31 | + | let o = "%s%s__cfg__assetsBetDividers" | |
30 | 32 | ||
31 | - | let | |
33 | + | let p = "%s%s__cfg__rsaPublic64" | |
32 | 34 | ||
33 | - | let | |
35 | + | let q = "%s%s__cfg__benzAddress" | |
34 | 36 | ||
35 | - | let | |
37 | + | let r = "%s%s__cfg__withdrawTimeFrame" | |
36 | 38 | ||
37 | - | let | |
39 | + | let s = "%s%s__runtime__gameNum" | |
38 | 40 | ||
39 | - | let | |
41 | + | let t = "%s%s__runtime__contractIsBlocked" | |
40 | 42 | ||
41 | - | func | |
42 | - | let | |
43 | - | func | |
43 | + | func u (j) = { | |
44 | + | let v = h(this, j) | |
45 | + | func w (x,y) = (x :+ parseIntValue(y)) | |
44 | 46 | ||
45 | - | let | |
46 | - | let | |
47 | - | let | |
48 | - | func | |
49 | - | then | |
50 | - | else | |
47 | + | let z = split(v, a) | |
48 | + | let A = size(z) | |
49 | + | let B = nil | |
50 | + | func C (D,E) = if ((E >= A)) | |
51 | + | then D | |
52 | + | else w(D, z[E]) | |
51 | 53 | ||
52 | - | func | |
53 | - | then | |
54 | + | func F (D,E) = if ((E >= A)) | |
55 | + | then D | |
54 | 56 | else throw("List size exceeds 10") | |
55 | 57 | ||
56 | - | | |
58 | + | F(C(C(C(C(C(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
57 | 59 | } | |
58 | 60 | ||
59 | 61 | ||
60 | - | let | |
62 | + | let G = split(h(this, m), a) | |
61 | 63 | ||
62 | - | let | |
64 | + | let H = u(n) | |
63 | 65 | ||
64 | - | let | |
66 | + | let I = u(o) | |
65 | 67 | ||
66 | - | func | |
68 | + | func J (K) = ("$RESERVED_AMOUNT_" + K) | |
67 | 69 | ||
68 | 70 | ||
69 | - | func | |
71 | + | func L (M) = J(G[M]) | |
70 | 72 | ||
71 | 73 | ||
72 | - | let | |
74 | + | let N = ((5 * c) / 1000) | |
73 | 75 | ||
74 | - | let | |
76 | + | let O = 0 | |
75 | 77 | ||
76 | - | let | |
78 | + | let P = 1 | |
77 | 79 | ||
78 | - | let | |
80 | + | let Q = 2 | |
79 | 81 | ||
80 | - | let | |
82 | + | let R = 1 | |
81 | 83 | ||
82 | - | let | |
84 | + | let S = 2 | |
83 | 85 | ||
84 | - | let | |
86 | + | let T = 4 | |
85 | 87 | ||
86 | - | let | |
88 | + | let U = 8 | |
87 | 89 | ||
88 | - | let | |
90 | + | let V = 14 | |
89 | 91 | ||
90 | - | let | |
92 | + | let W = 10000 | |
91 | 93 | ||
92 | - | let | |
94 | + | let X = 250000 | |
93 | 95 | ||
94 | - | let | |
96 | + | let Y = [S] | |
95 | 97 | ||
96 | - | let | |
98 | + | let Z = 0 | |
97 | 99 | ||
98 | - | let | |
100 | + | let aa = 1 | |
99 | 101 | ||
100 | - | let | |
102 | + | let ab = 2 | |
101 | 103 | ||
102 | - | let | |
104 | + | let ac = 3 | |
103 | 105 | ||
104 | - | let | |
106 | + | let ad = 4 | |
105 | 107 | ||
106 | - | let | |
108 | + | let ae = 5 | |
107 | 109 | ||
108 | - | let | |
110 | + | let af = "SUBMITTED" | |
109 | 111 | ||
110 | - | let | |
112 | + | let ag = "WON" | |
111 | 113 | ||
112 | - | let | |
114 | + | let ah = "LOST" | |
113 | 115 | ||
114 | - | func | |
116 | + | func ai (j) = valueOrErrorMessage(getString(this, j), (j + " key is not specified in this.state")) | |
115 | 117 | ||
116 | 118 | ||
117 | - | let | |
119 | + | let aj = fromBase64String(ai(p)) | |
118 | 120 | ||
119 | - | let | |
121 | + | let ak = addressFromStringValue(ai(q)) | |
120 | 122 | ||
121 | - | let | |
123 | + | let al = valueOrElse(getInteger(this, r), 7200) | |
122 | 124 | ||
123 | - | func | |
124 | - | then getIntegerValue( | |
125 | - | else | |
125 | + | func am (j,an) = if (isDefined(getInteger(j))) | |
126 | + | then getIntegerValue(j) | |
127 | + | else an | |
126 | 128 | ||
127 | 129 | ||
128 | - | func | |
130 | + | func ao (j,ap) = IntegerEntry(j, ap) | |
129 | 131 | ||
130 | 132 | ||
131 | - | func | |
133 | + | func aq (j) = ao(j, (am(j, -1) + 1)) | |
132 | 134 | ||
133 | 135 | ||
134 | - | func | |
136 | + | func ar (j,as) = ao(j, (am(j, 0) + as)) | |
135 | 137 | ||
136 | 138 | ||
137 | - | func | |
138 | - | let | |
139 | - | if ($isInstanceOf( | |
139 | + | func at (au) = { | |
140 | + | let av = au | |
141 | + | if ($isInstanceOf(av, "ByteVector")) | |
140 | 142 | then { | |
141 | - | let | |
142 | - | toBase58String( | |
143 | + | let aw = av | |
144 | + | toBase58String(aw) | |
143 | 145 | } | |
144 | 146 | else "WAVES" | |
145 | 147 | } | |
146 | 148 | ||
147 | 149 | ||
148 | - | func | |
150 | + | func ax (ay) = if ((ay == "WAVES")) | |
149 | 151 | then unit | |
150 | - | else fromBase58String( | |
152 | + | else fromBase58String(ay) | |
151 | 153 | ||
152 | 154 | ||
153 | - | func | |
154 | - | let | |
155 | - | if ($isInstanceOf( | |
155 | + | func az (au) = { | |
156 | + | let av = au | |
157 | + | if ($isInstanceOf(av, "ByteVector")) | |
156 | 158 | then { | |
157 | - | let | |
158 | - | assetBalance(this, | |
159 | + | let aA = av | |
160 | + | assetBalance(this, aA) | |
159 | 161 | } | |
160 | 162 | else wavesBalance(this).available | |
161 | 163 | } | |
162 | 164 | ||
163 | 165 | ||
164 | - | func | |
165 | - | let | |
166 | - | let | |
167 | - | if (( | |
166 | + | func aB (aC,M) = { | |
167 | + | let ay = G[M] | |
168 | + | let aD = (am(L(M), 0) + aC) | |
169 | + | if ((aD > az(ax(ay)))) | |
168 | 170 | then throw((("Insufficient funds on " + d) + " account. Transaction was rejected for your safety.")) | |
169 | - | else | |
171 | + | else aD | |
170 | 172 | } | |
171 | 173 | ||
172 | 174 | ||
173 | - | func | |
175 | + | func aE (aF,M,aC) = if ((0 > (am(L(M), 0) - aC))) | |
174 | 176 | then throw((("Invalid " + d) + " account state - reserved amount is less than 0")) | |
175 | - | else | |
177 | + | else ar(L(M), -(aC)) | |
176 | 178 | ||
177 | 179 | ||
178 | - | func | |
179 | - | let | |
180 | - | if (!(isDefined( | |
180 | + | func aG (ay) = { | |
181 | + | let aH = indexOf(G, ay) | |
182 | + | if (!(isDefined(aH))) | |
181 | 183 | then throw("Invalid payment asset") | |
182 | - | else value( | |
184 | + | else value(aH) | |
183 | 185 | } | |
184 | 186 | ||
185 | 187 | ||
186 | - | func | |
187 | - | let | |
188 | - | func | |
188 | + | func aI (aJ,aK,aL) = { | |
189 | + | let aM = size(aL) | |
190 | + | func aN (v,aO) = if (v) | |
189 | 191 | then true | |
190 | - | else ( | |
192 | + | else (aJ == ((aO * H[aK]) / I[aK])) | |
191 | 193 | ||
192 | 194 | if (!({ | |
193 | - | let | |
194 | - | let | |
195 | - | let | |
196 | - | func | |
197 | - | then | |
198 | - | else | |
195 | + | let z = Y | |
196 | + | let A = size(z) | |
197 | + | let B = false | |
198 | + | func C (D,E) = if ((E >= A)) | |
199 | + | then D | |
200 | + | else aN(D, z[E]) | |
199 | 201 | ||
200 | - | func | |
201 | - | then | |
202 | + | func F (D,E) = if ((E >= A)) | |
203 | + | then D | |
202 | 204 | else throw("List size exceeds 5") | |
203 | 205 | ||
204 | - | | |
206 | + | F(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5) | |
205 | 207 | })) | |
206 | 208 | then throw("Bet amount is not valid") | |
207 | - | else if ((parseInt( | |
209 | + | else if ((parseInt(aL) == unit)) | |
208 | 210 | then throw("Invalid player's choice") | |
209 | - | else fraction( | |
211 | + | else fraction(aJ, X, W) | |
210 | 212 | } | |
211 | 213 | ||
212 | 214 | ||
213 | - | func | |
214 | - | let | |
215 | - | if (!( | |
215 | + | func aP (aF,aQ,aL) = { | |
216 | + | let aR = rsaVerify_16Kb(SHA256, toBytes(aF), aQ, aj) | |
217 | + | if (!(aR)) | |
216 | 218 | then throw("Invalid RSA signature") | |
217 | 219 | else { | |
218 | - | let | |
219 | - | toString( | |
220 | + | let aS = (toInt(sha256((aQ + toBytes(aL)))) % e) | |
221 | + | toString(aS) | |
220 | 222 | } | |
221 | 223 | } | |
222 | 224 | ||
223 | 225 | ||
224 | - | func aS (aK,aT) = if ((size(aK) == f)) | |
225 | - | then (aT == toString((e - 1))) | |
226 | - | else false | |
226 | + | func aT (aL,aU) = (aL == aU) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func | |
229 | + | func aV (aW,aL,aX,aY,aC,M,aZ) = makeString([aW, aL, aX, aY, aC, M, if ((aZ == "")) | |
230 | 230 | then "" | |
231 | - | else | |
231 | + | else aZ], "_") | |
232 | 232 | ||
233 | 233 | ||
234 | - | func | |
234 | + | func ba (aW,aL,aX,aY,aC,M,aZ) = aV(aW, aL, aX, toString(aY), toString(aC), toString(M), aZ) | |
235 | 235 | ||
236 | 236 | ||
237 | - | func | |
238 | - | let | |
239 | - | if ( | |
240 | - | then ( | |
241 | - | else | |
237 | + | func bb (bc,aW,aS,bd) = { | |
238 | + | let bb = aV(aW, aS, bc[ab], bc[ac], bc[ad], bc[ae], g) | |
239 | + | if (bd) | |
240 | + | then (bb + "_TIMEOUT") | |
241 | + | else bb | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | - | func | |
246 | - | let | |
247 | - | if ($isInstanceOf( | |
245 | + | func be (aF) = split({ | |
246 | + | let av = getString(this, aF) | |
247 | + | if ($isInstanceOf(av, "String")) | |
248 | 248 | then { | |
249 | - | let | |
250 | - | | |
249 | + | let bf = av | |
250 | + | bf | |
251 | 251 | } | |
252 | - | else throw((("Game: " + | |
252 | + | else throw((("Game: " + aF) + " not found.")) | |
253 | 253 | }, "_") | |
254 | 254 | ||
255 | 255 | ||
256 | - | @Callable( | |
257 | - | func constructorV1 ( | |
256 | + | @Callable(bg) | |
257 | + | func constructorV1 (bh,bi,bj,bk) = if ((bg.caller != ak)) | |
258 | 258 | then throw("not authorized") | |
259 | 259 | else { | |
260 | - | func | |
261 | - | let | |
262 | - | if ((size( | |
260 | + | func bl (x,bm) = { | |
261 | + | let bn = split(bm, ":") | |
262 | + | if ((size(bn) != 4)) | |
263 | 263 | then throw("Invalid asset record") | |
264 | - | else $Tuple3(( | |
264 | + | else $Tuple3((x._1 :+ bn[O]), (x._2 :+ bn[P]), (x._3 :+ bn[Q])) | |
265 | 265 | } | |
266 | 266 | ||
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | func | |
272 | - | then | |
273 | - | else | |
267 | + | let bo = { | |
268 | + | let z = split_4C(bk, "_") | |
269 | + | let A = size(z) | |
270 | + | let B = $Tuple3(nil, nil, nil) | |
271 | + | func C (D,E) = if ((E >= A)) | |
272 | + | then D | |
273 | + | else bl(D, z[E]) | |
274 | 274 | ||
275 | - | func | |
276 | - | then | |
275 | + | func F (D,E) = if ((E >= A)) | |
276 | + | then D | |
277 | 277 | else throw("List size exceeds 10") | |
278 | 278 | ||
279 | - | | |
279 | + | F(C(C(C(C(C(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
280 | 280 | } | |
281 | - | [ | |
281 | + | [StringEntry(p, bh), StringEntry(q, bi), IntegerEntry(r, bj), StringEntry(m, makeString_2C(bo._1, a)), StringEntry(n, makeString(bo._2, a)), StringEntry(o, makeString(bo._3, a))] | |
282 | 282 | } | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | ||
286 | - | @Callable( | |
287 | - | func maintenance ( | |
286 | + | @Callable(bg) | |
287 | + | func maintenance (bp) = if ((bg.caller != ak)) | |
288 | 288 | then throw("not authorized") | |
289 | - | else [BooleanEntry( | |
289 | + | else [BooleanEntry(t, bp)] | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | ||
293 | - | @Callable( | |
294 | - | func bet ( | |
293 | + | @Callable(bg) | |
294 | + | func bet (aL) = if (valueOrElse(getBoolean(t), false)) | |
295 | 295 | then throw("Game is stopped for maintenence") | |
296 | 296 | else { | |
297 | - | let | |
298 | - | if ((1 >= size( | |
297 | + | let aF = toBase58String(bg.transactionId) | |
298 | + | if ((1 >= size(bg.payments))) | |
299 | 299 | then throw("2 payments must be attached") | |
300 | - | else if (isDefined(getString(this, | |
301 | - | then throw((("Bet for: " + | |
300 | + | else if (isDefined(getString(this, aF))) | |
301 | + | then throw((("Bet for: " + aF) + " was already made.")) | |
302 | 302 | else { | |
303 | - | let | |
304 | - | let | |
305 | - | if (isDefined( | |
303 | + | let bq = value(bg.payments[0]) | |
304 | + | let br = value(bg.payments[1]) | |
305 | + | if (isDefined(br.assetId)) | |
306 | 306 | then throw("feePmt (2nd payment) assetId must be in Waves") | |
307 | - | else if (( | |
307 | + | else if ((N > br.amount)) | |
308 | 308 | then throw("feePmt (2nd payment) must be >= 0.005 Waves") | |
309 | 309 | else { | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | [IntegerEntry( | |
310 | + | let ay = at(bq.assetId) | |
311 | + | let aK = aG(ay) | |
312 | + | let bs = br.amount | |
313 | + | let aC = aI(bq.amount, aK, aL) | |
314 | + | let aX = toBase58String(bg.callerPublicKey) | |
315 | + | let bt = ba(af, aL, aX, height, aC, aK, "") | |
316 | + | [IntegerEntry(L(aK), aB(aC, aK)), aq(s), StringEntry(aF, bt), ScriptTransfer(ak, bs, br.assetId)] | |
317 | 317 | } | |
318 | 318 | } | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | ||
323 | - | @Callable( | |
324 | - | func withdraw ( | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | if (( | |
323 | + | @Callable(bg) | |
324 | + | func withdraw (aF,aQ) = { | |
325 | + | let bt = be(aF) | |
326 | + | let bu = bt[Z] | |
327 | + | let aL = bt[aa] | |
328 | + | let aY = parseIntValue(bt[ac]) | |
329 | + | let aC = parseIntValue(bt[ad]) | |
330 | + | let M = parseIntValue(bt[ae]) | |
331 | + | let aX = bt[ab] | |
332 | + | let bv = addressFromPublicKey(fromBase58String(aX)) | |
333 | + | if ((bu != af)) | |
334 | 334 | then throw("Invalid game state for passed gameId") | |
335 | - | else if (( | |
335 | + | else if ((bg.caller != ak)) | |
336 | 336 | then throw("Regular withdraw can be done by server only") | |
337 | 337 | else { | |
338 | - | let | |
339 | - | let | |
340 | - | then | |
341 | - | else | |
342 | - | let | |
343 | - | let | |
344 | - | then | |
345 | - | else | |
346 | - | let | |
347 | - | ([StringEntry( | |
348 | - | then [ScriptTransfer( | |
338 | + | let bd = ((height - aY) > al) | |
339 | + | let aU = if (bd) | |
340 | + | then g | |
341 | + | else aP(aF, aQ, aL) | |
342 | + | let bw = aT(aU, g) | |
343 | + | let bx = if (bw) | |
344 | + | then ag | |
345 | + | else ah | |
346 | + | let by = bb(bt, bx, aU, bd) | |
347 | + | ([StringEntry(aF, by), aE(aF, M, aC)] ++ (if (bw) | |
348 | + | then [ScriptTransfer(bv, aC, ax(G[M]))] | |
349 | 349 | else nil)) | |
350 | 350 | } | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | - | @Verifier( | |
355 | - | func | |
354 | + | @Verifier(bz) | |
355 | + | func bA () = if (sigVerify(bz.bodyBytes, bz.proofs[0], bz.senderPublicKey)) | |
356 | 356 | then { | |
357 | - | let | |
358 | - | if ($isInstanceOf( | |
357 | + | let av = bz | |
358 | + | if ($isInstanceOf(av, "TransferTransaction")) | |
359 | 359 | then { | |
360 | - | let | |
361 | - | let | |
362 | - | (( | |
360 | + | let bB = av | |
361 | + | let M = aG(at(bB.assetId)) | |
362 | + | ((az(bB.assetId) - bB.amount) >= am(L(M), 0)) | |
363 | 363 | } | |
364 | - | else if ($isInstanceOf( | |
364 | + | else if ($isInstanceOf(av, "SetScriptTransaction")) | |
365 | 365 | then { | |
366 | - | let | |
367 | - | func | |
368 | - | then ( | |
366 | + | let bC = av | |
367 | + | func bD (x,bE) = if (x) | |
368 | + | then (am(J(bE), 0) == 0) | |
369 | 369 | else false | |
370 | 370 | ||
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | func | |
375 | - | then | |
376 | - | else | |
371 | + | let z = G | |
372 | + | let A = size(z) | |
373 | + | let B = true | |
374 | + | func C (D,E) = if ((E >= A)) | |
375 | + | then D | |
376 | + | else bD(D, z[E]) | |
377 | 377 | ||
378 | - | func | |
379 | - | then | |
378 | + | func F (D,E) = if ((E >= A)) | |
379 | + | then D | |
380 | 380 | else throw("List size exceeds 10") | |
381 | 381 | ||
382 | - | | |
382 | + | F(C(C(C(C(C(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
383 | 383 | } | |
384 | 384 | else false | |
385 | 385 | } | |
386 | 386 | else false | |
387 | 387 |
github/deemru/w8io/026f985 153.56 ms ◑