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