tx · 9U79GLngPrxAjh2DswhqT7pH9WPuSWNhdBYMRvagPRE6 3MwBfmVaMPjFur92U5EDgbHxJk1tVCBCm8c: -0.01500000 Waves 2020.06.16 17:36 [1046196] smart account 3MwBfmVaMPjFur92U5EDgbHxJk1tVCBCm8c > SELF 0.00000000 Waves
{ "type": 13, "id": "9U79GLngPrxAjh2DswhqT7pH9WPuSWNhdBYMRvagPRE6", "fee": 1500000, "feeAssetId": null, "timestamp": 1592318206134, "version": 1, "sender": "3MwBfmVaMPjFur92U5EDgbHxJk1tVCBCm8c", "senderPublicKey": "Dw6VyZcg2wVrzukmHr68JnEQVG2zQEYoQu7enniXaLZ4", "proofs": [ "c46mqa82LpLp1DzDLHEdS1NbYp5sQ6Bq5BddyrwsaN6iBsWqeufbMgUnBp36far8UAZBtN6j3uZxy7HsGKfkXfS" ], "script": "base64:AAIDAAAAAAAAAA0IARIDCgEIEgQKAggCAAAALAAAAAAGV0FWRVNEAAAAAAAF9eEAAAAAAAVVU0RORAAAAAAAAA9CQAAAAAAIREVDSU1BTFMJAARMAAAAAgUAAAAGV0FWRVNECQAETAAAAAIFAAAABVVTRE5EBQAAAANuaWwAAAAABkFTU0VUUwkABEwAAAACBQAAAAR1bml0CQAETAAAAAIJAAJZAAAAAQIAAAAsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0NobnJWRkQ1QVQFAAAAA25pbAAAAAAJUlNBUFVCTElDCQACWwAAAAECAAABj2Jhc2U2NDpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQW1wdVhjSS9vNHBJQjV5d3Y5RE9PR2FwVEJVd1JWbE0vNitINmhGZWxPWHRrcndZL1lJdG1QeEVEcHo3ckFlclFQUWU5dERQRWFBdi9HbmxFenR5Yk9GWGd1OUR6RGU4WW9NUkQxdmFrZ29BY29nbWJZNThRRDZLTWo1SGtvVmoveVROSWM5c3pqNXFoSWxyQWRtYjNLTEw2aFFV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AAAAAN0dHgFAAAAByRtYXRjaDAEAAAAB2Fzc2V0SWQJAQAAABV2YWxpZGF0ZUFuZEdldEFzc2V0SWQAAAABCAUAAAADdHR4AAAAB2Fzc2V0SWQJAABnAAAAAgkAAGUAAAACCQAD6wAAAAIFAAAABHRoaXMIBQAAAAN0dHgAAAAHYXNzZXRJZAgFAAAAA3R0eAAAAAZhbW91bnQJAQAAAAhnZXRJbnRPcgAAAAIJAAGRAAAAAgUAAAAOUkVTRVJWQVRJT05LRVkFAAAAB2Fzc2V0SWQAAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAANzdHgFAAAAByRtYXRjaDADCQAAAAAAAAIJAQAAAAhnZXRJbnRPcgAAAAIJAAGRAAAAAgUAAAAOUkVTRVJWQVRJT05LRVkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAgkBAAAACGdldEludE9yAAAAAgkAAZEAAAACBQAAAA5SRVNFUlZBVElPTktFWQAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAcHB8qs9Po=", "chainId": 84, "height": 1046196, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = 100000000 | |
5 | + | ||
6 | + | let b = 1000000 | |
7 | + | ||
8 | + | let c = [a, b] | |
9 | + | ||
10 | + | let d = [unit, fromBase58String("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT")] | |
11 | + | ||
12 | + | let e = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmpuXcI/o4pIB5ywv9DOOGapTBUwRVlM/6+H6hFelOXtkrwY/YItmPxEDpz7rAerQPQe9tDPEaAv/GnlEztybOFXgu9DzDe8YoMRD1vakgoAcogmbY58QD6KMj5HkoVj/yTNIc9szj5qhIlrAdmb3KLL6hQU7y8+Jj69BWVPsaQgkspSdeYtb1tHQc7t95n7OZ56r2A7G3+bQf6nSMkPkAhIrEpbCm58oiGBczdTd/LqFSVotZsbL7Yh6SHLfnHeD+QgcfJrnam8OHMGJEJTRXjILeHGjlRCP8oVpioHry1S2xPx5sVzIm2MM+CzYenAGlo0j26atBhiULoTulwD3pQIDAQAB") | |
13 | + | ||
14 | + | let f = addressFromStringValue("3NCiG28LmWyTigWG13E5QnvdHBsZFYXSS2j") | |
15 | + | ||
16 | + | let g = 4320 | |
17 | + | ||
18 | + | let h = 1 | |
19 | + | ||
20 | + | let i = 2 | |
21 | + | ||
22 | + | let j = 4 | |
23 | + | ||
24 | + | let k = 8 | |
25 | + | ||
26 | + | let l = 14 | |
27 | + | ||
28 | + | let m = 10000 | |
29 | + | ||
30 | + | let n = 39655 | |
31 | + | ||
32 | + | let o = 24600 | |
33 | + | ||
34 | + | let p = 19000 | |
35 | + | ||
36 | + | let q = 14200 | |
37 | + | ||
38 | + | let r = 11400 | |
39 | + | ||
40 | + | let s = [n, o, p, q, r] | |
41 | + | ||
42 | + | let t = [h, i, j, k, l] | |
43 | + | ||
44 | + | let u = 0 | |
45 | + | ||
46 | + | let v = 1 | |
47 | + | ||
48 | + | let w = 2 | |
49 | + | ||
50 | + | let x = 3 | |
51 | + | ||
52 | + | let y = 4 | |
53 | + | ||
54 | + | let z = 5 | |
55 | + | ||
56 | + | let A = ["$RESERVED_AMOUNT_WAVES", "$RESERVED_AMOUNT_USDN"] | |
57 | + | ||
58 | + | let B = "$GAME_NUM" | |
59 | + | ||
60 | + | let C = "SUBMITTED" | |
61 | + | ||
62 | + | let D = "WON" | |
63 | + | ||
64 | + | let E = "LOST" | |
65 | + | ||
66 | + | func F (G,H) = if (isDefined(getInteger(this, G))) | |
67 | + | then getIntegerValue(this, G) | |
68 | + | else H | |
69 | + | ||
70 | + | ||
71 | + | func I (G,J) = DataEntry(G, J) | |
72 | + | ||
73 | + | ||
74 | + | func K (G) = I(G, (F(G, -1) + 1)) | |
75 | + | ||
76 | + | ||
77 | + | func L (G,M) = I(G, (F(G, 0) + M)) | |
78 | + | ||
79 | + | ||
80 | + | func N (O,P) = { | |
81 | + | let Q = (F(A[P], 0) + O) | |
82 | + | if ((Q > assetBalance(this, d[P]))) | |
83 | + | then throw("Insufficient funds on Dice Roller account. Transaction was rejected for your safety.") | |
84 | + | else Q | |
85 | + | } | |
86 | + | ||
87 | + | ||
88 | + | func R (S,P,O) = if ((0 > (F(A[P], 0) - O))) | |
89 | + | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
90 | + | else L(A[P], -(O)) | |
91 | + | ||
92 | + | ||
93 | + | func T (P) = if ((P == d[0])) | |
94 | + | then 0 | |
95 | + | else if ((P == d[1])) | |
96 | + | then 1 | |
97 | + | else throw("Invalid payment asset") | |
98 | + | ||
99 | + | ||
100 | + | func U (V,P,W) = { | |
101 | + | let X = size(W) | |
102 | + | func Y (Z,aa) = if (Z) | |
103 | + | then true | |
104 | + | else (V == (aa * c[P])) | |
105 | + | ||
106 | + | if (!({ | |
107 | + | let ab = t | |
108 | + | let ac = size(ab) | |
109 | + | let ad = false | |
110 | + | if ((ac == 0)) | |
111 | + | then ad | |
112 | + | else { | |
113 | + | let ae = Y(ad, ab[0]) | |
114 | + | if ((ac == 1)) | |
115 | + | then ae | |
116 | + | else { | |
117 | + | let af = Y(ae, ab[1]) | |
118 | + | if ((ac == 2)) | |
119 | + | then af | |
120 | + | else { | |
121 | + | let ag = Y(af, ab[2]) | |
122 | + | if ((ac == 3)) | |
123 | + | then ag | |
124 | + | else { | |
125 | + | let ah = Y(ag, ab[3]) | |
126 | + | if ((ac == 4)) | |
127 | + | then ah | |
128 | + | else { | |
129 | + | let ai = Y(ah, ab[4]) | |
130 | + | if ((ac == 5)) | |
131 | + | then ai | |
132 | + | else { | |
133 | + | let aj = Y(ai, ab[5]) | |
134 | + | throw("List size exceed 5") | |
135 | + | } | |
136 | + | } | |
137 | + | } | |
138 | + | } | |
139 | + | } | |
140 | + | } | |
141 | + | })) | |
142 | + | then throw("Bet amount is not valid") | |
143 | + | else if ((parseInt(W) == unit)) | |
144 | + | then throw("Invalid player's choice") | |
145 | + | else if (if ((1 > X)) | |
146 | + | then true | |
147 | + | else (X > 5)) | |
148 | + | then throw("Invalid dices count in player's choice") | |
149 | + | else ((V * s[(X - 1)]) / m) | |
150 | + | } | |
151 | + | ||
152 | + | ||
153 | + | func ak (S,al) = { | |
154 | + | let am = rsaVerify(SHA256, toBytes(S), al, e) | |
155 | + | if (!(am)) | |
156 | + | then throw("Invalid RSA signature") | |
157 | + | else { | |
158 | + | let an = (toInt(sha256(al)) % 6) | |
159 | + | let ao = if ((0 > an)) | |
160 | + | then (-1 * an) | |
161 | + | else an | |
162 | + | toString((ao + 1)) | |
163 | + | } | |
164 | + | } | |
165 | + | ||
166 | + | ||
167 | + | func ap (W,aq) = { | |
168 | + | let ar = size(W) | |
169 | + | func as (Z,aa) = if (Z) | |
170 | + | then true | |
171 | + | else if ((ar >= aa)) | |
172 | + | then (take(drop(W, (aa - 1)), 1) == aq) | |
173 | + | else false | |
174 | + | ||
175 | + | let at = [1, 2, 3, 4, 5] | |
176 | + | let au = size(at) | |
177 | + | let av = false | |
178 | + | if ((au == 0)) | |
179 | + | then av | |
180 | + | else { | |
181 | + | let aw = as(av, at[0]) | |
182 | + | if ((au == 1)) | |
183 | + | then aw | |
184 | + | else { | |
185 | + | let ax = as(aw, at[1]) | |
186 | + | if ((au == 2)) | |
187 | + | then ax | |
188 | + | else { | |
189 | + | let ay = as(ax, at[2]) | |
190 | + | if ((au == 3)) | |
191 | + | then ay | |
192 | + | else { | |
193 | + | let az = as(ay, at[3]) | |
194 | + | if ((au == 4)) | |
195 | + | then az | |
196 | + | else { | |
197 | + | let aA = as(az, at[4]) | |
198 | + | if ((au == 5)) | |
199 | + | then aA | |
200 | + | else { | |
201 | + | let aB = as(aA, at[5]) | |
202 | + | throw("List size exceed 5") | |
203 | + | } | |
204 | + | } | |
205 | + | } | |
206 | + | } | |
207 | + | } | |
208 | + | } | |
209 | + | } | |
210 | + | ||
211 | + | ||
212 | + | func aC (aD,W,aE,aF,O,P,aG) = (((((((((((aD + "_") + W) + "_") + aE) + "_") + toString(aF)) + "_") + toString(O)) + "_") + toString(P)) + (if ((aG == "")) | |
213 | + | then "" | |
214 | + | else ("_" + aG))) | |
215 | + | ||
216 | + | ||
217 | + | func aH (S) = split({ | |
218 | + | let aI = getString(this, S) | |
219 | + | if ($isInstanceOf(aI, "String")) | |
220 | + | then { | |
221 | + | let aJ = aI | |
222 | + | aJ | |
223 | + | } | |
224 | + | else throw((("Game: " + S) + " not found.")) | |
225 | + | }, "_") | |
226 | + | ||
227 | + | ||
228 | + | func aK (S,aL,O,P,aM,aN,aO) = { | |
229 | + | let aP = [aO] | |
230 | + | let aQ = [ScriptTransfer(aL, O, d[P])] | |
231 | + | if (aN) | |
232 | + | then { | |
233 | + | let aR = (aM + "_TIMEOUT") | |
234 | + | let aS = DataEntry(S, aR) | |
235 | + | ScriptResult(WriteSet(aS :: aP), TransferSet(aQ)) | |
236 | + | } | |
237 | + | else { | |
238 | + | let aS = DataEntry(S, aM) | |
239 | + | ScriptResult(WriteSet(aS :: aP), TransferSet(aQ)) | |
240 | + | } | |
241 | + | } | |
242 | + | ||
243 | + | ||
244 | + | @Callable(aT) | |
245 | + | func bet (W) = { | |
246 | + | let S = toBase58String(aT.transactionId) | |
247 | + | if ((aT.payment == unit)) | |
248 | + | then throw("No payment") | |
249 | + | else if (isDefined(getString(this, S))) | |
250 | + | then throw((("Bet for: " + S) + " was already made.")) | |
251 | + | else if (if ((aT.feeAssetId != d[0])) | |
252 | + | then (aT.feeAssetId != d[1]) | |
253 | + | else false) | |
254 | + | then throw("Invalid fee asset") | |
255 | + | else { | |
256 | + | let aU = extract(aT.payment) | |
257 | + | if ((aT.feeAssetId != aU.assetId)) | |
258 | + | then throw("Fee assetId and payment assetId should match") | |
259 | + | else { | |
260 | + | let P = T(aU.assetId) | |
261 | + | let aV = aT.fee | |
262 | + | let O = U((aU.amount - aT.fee), P, W) | |
263 | + | let aE = toBase58String(aT.callerPublicKey) | |
264 | + | let aS = aC(C, W, aE, height, O, P, "") | |
265 | + | ScriptResult(WriteSet([DataEntry(A[P], N(O, P)), K(B), DataEntry(S, aS)]), TransferSet([ScriptTransfer(f, aV, aU.assetId)])) | |
266 | + | } | |
267 | + | } | |
268 | + | } | |
269 | + | ||
270 | + | ||
271 | + | ||
272 | + | @Callable(aT) | |
273 | + | func withdraw (S,al) = { | |
274 | + | let aS = aH(S) | |
275 | + | let aD = aS[u] | |
276 | + | let W = aS[v] | |
277 | + | let aF = parseIntValue(aS[x]) | |
278 | + | let O = parseIntValue(aS[y]) | |
279 | + | let P = parseIntValue(aS[z]) | |
280 | + | let aE = aS[w] | |
281 | + | let aL = addressFromPublicKey(fromBase58String(aE)) | |
282 | + | let aN = ((height - aF) > g) | |
283 | + | let aO = R(S, P, O) | |
284 | + | if ((aD != C)) | |
285 | + | then throw("Invalid game state for passed gameId") | |
286 | + | else if (aN) | |
287 | + | then { | |
288 | + | let aq = take(W, 1) | |
289 | + | let aM = aC(D, W, aE, aF, O, P, aq) | |
290 | + | aK(S, aL, O, P, aM, aN, aO) | |
291 | + | } | |
292 | + | else { | |
293 | + | let aq = ak(S, al) | |
294 | + | if ((aT.caller != f)) | |
295 | + | then throw("Regular withdraw can be done by server only") | |
296 | + | else if (ap(W, aq)) | |
297 | + | then { | |
298 | + | let aM = aC(D, W, aE, aF, O, P, aq) | |
299 | + | aK(S, aL, O, P, aM, aN, aO) | |
300 | + | } | |
301 | + | else { | |
302 | + | let aM = aC(E, W, aE, aF, O, P, aq) | |
303 | + | WriteSet([DataEntry(S, aM), aO]) | |
304 | + | } | |
305 | + | } | |
306 | + | } | |
307 | + | ||
308 | + | ||
309 | + | @Verifier(aW) | |
310 | + | func aX () = if (sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)) | |
311 | + | then { | |
312 | + | let aI = aW | |
313 | + | if ($isInstanceOf(aI, "TransferTransaction")) | |
314 | + | then { | |
315 | + | let aY = aI | |
316 | + | let P = T(aY.assetId) | |
317 | + | ((assetBalance(this, aY.assetId) - aY.amount) >= F(A[P], 0)) | |
318 | + | } | |
319 | + | else if ($isInstanceOf(aI, "SetScriptTransaction")) | |
320 | + | then { | |
321 | + | let aZ = aI | |
322 | + | if ((F(A[0], 0) == 0)) | |
323 | + | then (F(A[1], 0) == 0) | |
324 | + | else false | |
325 | + | } | |
326 | + | else false | |
327 | + | } | |
328 | + | else false | |
329 | + |
github/deemru/w8io/026f985 26.48 ms ◑