tx · 6apooq4Be9XrT1TDr71ezrhXCQHq6JFBisubk2nQ1EKm 3N5NCEUJze7iYT63sSq2jLqJ4dtbu31P32L: -0.01400000 Waves 2019.09.10 15:01 [669986] smart account 3N5NCEUJze7iYT63sSq2jLqJ4dtbu31P32L > SELF 0.00000000 Waves
{ "type": 13, "id": "6apooq4Be9XrT1TDr71ezrhXCQHq6JFBisubk2nQ1EKm", "fee": 1400000, "feeAssetId": null, "timestamp": 1568116817648, "version": 1, "sender": "3N5NCEUJze7iYT63sSq2jLqJ4dtbu31P32L", "senderPublicKey": "Ho4R7JJ3qa66rLHUBWDkNTCgxvBahvmis1aHLva1jPU6", "proofs": [ "3b4p2JUPp8TNJWPXCQz6vL11oCTPqthyCBivhkmfsmp3Sqa4cVzRaRMjoueR16gxLMxrDyaHu92QDQ3ijrETz3Hs" ], "script": "base64:AAIDAAAAAAAAAAAAAAAoAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAALnYmFzZTY0Ok1JSUNJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBZzhBTUlJQ0NnS0NBZ0VBNSs0NDY5ZVNRT3gzbGhuQ2FWWXFONU1ickd0TFZ3VERLeHZKSUJMdkVScS9zQ3RpMzVvdytsWWhPeEJ1dDJWYURJZkZmVVN3SmR4czJDR1dhRzhtbFlsZTNSRDEyNlZwc2RTVVVrVlI1YzhmWmRvV09vaEtvMUE1bmJaVFhpNFJoVW1wUXZVTTMwYXZqSjF2T0Q4bDA3WE1TUSs5OVdsQVVFVlhkbTBvUWVLSHoweGpMNVRDdFYrNkh4R2ZTWDZJZlhuaERNczBFYVNtK2x5Zzc2SHM3c0MyL2pYTGhueXlXdVc5SUVwaGdSd2daSTArN3FTdTVsNWV2TFFoenNBSDRSYklYSmtXWitKV2N6aWU1SEJYMXdyc01DZ3o1MmNBdEJoYWFCNGRWREtxbmh2R1psRDVjUk5teEQxNXFaZXlUNU5HU2NBMjJxc2YxMG5UUlJWK0g2VGpUNXpaWG95SThjV3N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AAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAGd2FsbGV0BQAAAAl3aW5BbW91bnQFAAAABHVuaXQFAAAAA25pbAUAAAAId3JpdGVTZXQJAAACAAAAAQkAASwAAAACBQAAAA1FcnJvckdhbWVPdmVyBQAAAAZzdGF0dXMAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHZgRo7g==", "chainId": 84, "height": 669986, "spentComplexity": 0 } View: original | compacted Prev: none Next: DQ5F21Kg2U4uk5GSiWqHXy5C1CTKggwFPgECqTY9ZXXs Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = fromBase64String("base64:MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA5+4469eSQOx3lhnCaVYqN5MbrGtLVwTDKxvJIBLvERq/sCti35ow+lYhOxBut2VaDIfFfUSwJdxs2CGWaG8mlYle3RD126VpsdSUUkVR5c8fZdoWOohKo1A5nbZTXi4RhUmpQvUM30avjJ1vOD8l07XMSQ+99WlAUEVXdm0oQeKHz0xjL5TCtV+6HxGfSX6IfXnhDMs0EaSm+lyg76Hs7sC2/jXLhnyyWuW9IEphgRwgZI0+7qSu5l5evLQhzsAH4RbIXJkWZ+JWczie5HBX1wrsMCgz52cAtBhaaB4dVDKqnhvGZlD5cRNmxD15qZeyT5NGScA22qsf10nTRRV+H6TjT5zZXoyI8cWsg5EtnO4Wau8QsxckpVNgL+Dzxwm1/FiNp5Bt4LD/yBW2Yb98FB6Vf95yCy+49fPILG9xA5iMONXZRpIq5xw48fjth8TLvLXRUE9uk+wToQT/tf8ip/eJ5Ow4M5YSO0CZ1EDk86dD9W4oto4b6bHa2EZ91wRXZH7J8zCAo9yUVAJcfCdeEE7SQrjYiD/F9rFOFCvE1LZRSLLEnbvrdWDjPRYxml8YUNtEQs/C+8SJJkamzoRcVE84cxwvrAFhrSf4xXCk+LwYYFz1UguUC6x1979jxIR3J+HWhwTXwfDoDXEMrWAj0veorTYeYB1BMAWu9vRsDNMCAwEAAQ==") | |
5 | + | ||
6 | + | let b = addressFromStringValue("{{server_address}}") | |
7 | + | ||
8 | + | let c = 21 | |
9 | + | ||
10 | + | let d = "APP_GAME_ID" | |
11 | + | ||
12 | + | let e = "USER_GAME_ID_" | |
13 | + | ||
14 | + | let f = "AMOUNT" | |
15 | + | ||
16 | + | let g = "SECTION" | |
17 | + | ||
18 | + | let h = "STATUS" | |
19 | + | ||
20 | + | let i = "RESULT" | |
21 | + | ||
22 | + | let j = "WIN_AMOUNT" | |
23 | + | ||
24 | + | let k = "NEW" | |
25 | + | ||
26 | + | let l = "WIN" | |
27 | + | ||
28 | + | let m = "LOOSE" | |
29 | + | ||
30 | + | let n = ((100 * 1000) * 1000) | |
31 | + | ||
32 | + | let o = ((5 * n) / 1000) | |
33 | + | ||
34 | + | let p = (1 * n) | |
35 | + | ||
36 | + | let q = (2 * n) | |
37 | + | ||
38 | + | let r = (4 * n) | |
39 | + | ||
40 | + | let s = (8 * n) | |
41 | + | ||
42 | + | let t = (14 * n) | |
43 | + | ||
44 | + | let u = [0, 2, 20, 2, 5, 2, 10, 2, 6, 2, 5, 2, 6, 2, 5, 2, 10, 2, 5, 2, 6] | |
45 | + | ||
46 | + | let v = "Only waves accepted" | |
47 | + | ||
48 | + | let w = "Parameter size must be greater than 0" | |
49 | + | ||
50 | + | let x = "Parameter size must be less than 100" | |
51 | + | ||
52 | + | let y = "Bet amount must be in Waves" | |
53 | + | ||
54 | + | let z = "Transaction's fee must be in Waves" | |
55 | + | ||
56 | + | let A = "Passed txId had been used before. Game aborted." | |
57 | + | ||
58 | + | let B = "Key not found: " | |
59 | + | ||
60 | + | let C = "Game already is over " | |
61 | + | ||
62 | + | let D = "Incorrect section result" | |
63 | + | ||
64 | + | let E = "Bet amount is not in range" | |
65 | + | ||
66 | + | func F (G,H,I) = DataEntry(((G + "_") + H), I) | |
67 | + | ||
68 | + | ||
69 | + | func J (G,H,I) = DataEntry(((G + "_") + H), I) | |
70 | + | ||
71 | + | ||
72 | + | func K (H) = { | |
73 | + | let L = getString(this, H) | |
74 | + | if ($isInstanceOf(L, "String")) | |
75 | + | then { | |
76 | + | let M = L | |
77 | + | M | |
78 | + | } | |
79 | + | else throw((B + H)) | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | func N (G,H) = { | |
84 | + | let O = ((G + "_") + H) | |
85 | + | let L = getString(this, O) | |
86 | + | if ($isInstanceOf(L, "String")) | |
87 | + | then { | |
88 | + | let M = L | |
89 | + | M | |
90 | + | } | |
91 | + | else throw((B + O)) | |
92 | + | } | |
93 | + | ||
94 | + | ||
95 | + | func P (G,H) = { | |
96 | + | let O = ((G + "_") + H) | |
97 | + | let L = getInteger(this, O) | |
98 | + | if ($isInstanceOf(L, "Int")) | |
99 | + | then { | |
100 | + | let M = L | |
101 | + | M | |
102 | + | } | |
103 | + | else throw((B + O)) | |
104 | + | } | |
105 | + | ||
106 | + | ||
107 | + | func Q () = { | |
108 | + | let R = { | |
109 | + | let L = getInteger(this, d) | |
110 | + | if ($isInstanceOf(L, "Int")) | |
111 | + | then { | |
112 | + | let S = L | |
113 | + | S | |
114 | + | } | |
115 | + | else 0 | |
116 | + | } | |
117 | + | (R + 1) | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | func T (U,V) = { | |
122 | + | let W = rsaVerify(SHA256, fromBase58String(U), toBytes(V), a) | |
123 | + | if (W) | |
124 | + | then { | |
125 | + | let X = (toInt(sha256(toBytes(V))) % c) | |
126 | + | if ((0 > X)) | |
127 | + | then (-1 * X) | |
128 | + | else X | |
129 | + | } | |
130 | + | else throw("Invalid RSA signature") | |
131 | + | } | |
132 | + | ||
133 | + | ||
134 | + | func Y (Z) = if (Z) | |
135 | + | then l | |
136 | + | else m | |
137 | + | ||
138 | + | ||
139 | + | func aa (ab,ac) = { | |
140 | + | let ad = if (if (if (if ((ac == 2)) | |
141 | + | then true | |
142 | + | else (ac == 5)) | |
143 | + | then true | |
144 | + | else (ac == 6)) | |
145 | + | then true | |
146 | + | else (ac == 10)) | |
147 | + | then true | |
148 | + | else (ac == 20) | |
149 | + | let ae = if (if (if (if ((ab == (p + o))) | |
150 | + | then true | |
151 | + | else (ab == (q + o))) | |
152 | + | then true | |
153 | + | else (ab == (r + o))) | |
154 | + | then true | |
155 | + | else (ab == (s + o))) | |
156 | + | then true | |
157 | + | else (ab == (t + o)) | |
158 | + | if (!(ad)) | |
159 | + | then throw(D) | |
160 | + | else if (ae) | |
161 | + | then ((ab - o) * ac) | |
162 | + | else throw(E) | |
163 | + | } | |
164 | + | ||
165 | + | ||
166 | + | @Callable(af) | |
167 | + | func bet (ag) = { | |
168 | + | let ah = Q() | |
169 | + | let ai = toBase58String(af.transactionId) | |
170 | + | let aj = toBase58String(af.caller.bytes) | |
171 | + | let ak = extract(af.payment) | |
172 | + | let al = isDefined(getString(this, ai)) | |
173 | + | let am = isDefined(ak.assetId) | |
174 | + | let an = isDefined(ak.assetId) | |
175 | + | let ao = ak.amount | |
176 | + | let ap = aa(ak.amount, ag) | |
177 | + | if (am) | |
178 | + | then throw(y) | |
179 | + | else if (an) | |
180 | + | then throw(z) | |
181 | + | else if (al) | |
182 | + | then throw(A) | |
183 | + | else ScriptResult(WriteSet([DataEntry((e + toString(ah)), ai), DataEntry(ai, aj), DataEntry(d, ah), J(ai, f, ao), J(ai, g, ag), F(ai, h, k), J(ai, j, ap)]), TransferSet([ScriptTransfer(b, o, unit)])) | |
184 | + | } | |
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | @Callable(af) | |
189 | + | func result (ai,aq) = { | |
190 | + | let ar = T(ai, aq) | |
191 | + | let as = P(ai, g) | |
192 | + | let at = N(ai, h) | |
193 | + | if ((at == k)) | |
194 | + | then { | |
195 | + | let au = u[ar] | |
196 | + | let av = (au == as) | |
197 | + | let aw = WriteSet([F(ai, h, Y(av)), J(ai, i, au)]) | |
198 | + | if (av) | |
199 | + | then { | |
200 | + | let ax = K(ai) | |
201 | + | let ay = P(ai, j) | |
202 | + | ScriptResult(aw, TransferSet([ScriptTransfer(addressFromStringValue(ax), ay, unit)])) | |
203 | + | } | |
204 | + | else aw | |
205 | + | } | |
206 | + | else throw((C + at)) | |
207 | + | } | |
208 | + | ||
209 | + | ||
210 | + | @Verifier(az) | |
211 | + | func aA () = if (sigVerify(az.bodyBytes, az.proofs[0], az.senderPublicKey)) | |
212 | + | then { | |
213 | + | let L = az | |
214 | + | if ($isInstanceOf(L, "TransferTransaction")) | |
215 | + | then { | |
216 | + | let aB = L | |
217 | + | true | |
218 | + | } | |
219 | + | else if ($isInstanceOf(L, "SetScriptTransaction")) | |
220 | + | then { | |
221 | + | let aC = L | |
222 | + | true | |
223 | + | } | |
224 | + | else false | |
225 | + | } | |
226 | + | else false | |
227 | + |
github/deemru/w8io/169f3d6 25.00 ms ◑