tx · 4ryAxX5RHsgvgriJuumbX93VCuE3NvRTGj6MeYft8WRe 3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT: -0.14000000 Waves 2019.08.05 15:15 [617580] smart account 3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT > SELF 0.00000000 Waves
{ "type": 13, "id": "4ryAxX5RHsgvgriJuumbX93VCuE3NvRTGj6MeYft8WRe", "fee": 14000000, "feeAssetId": null, "timestamp": 1565007347673, "version": 1, "sender": "3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT", "senderPublicKey": "Bhyvkx4xdbEi4KPJNZSzx9gZgzgyLEsavuj2kYSt7SST", "proofs": [ "PJbAS6Yd5LqSb77GexPa1Wkt4nxyKee31JdpweWtvncWvqXKxB4zGZGdgFv2BisvJW8xNku8oFjX5A6xVxaVy6z" ], "script": "base64:AAIDAAAAAAAAAAAAAAAoAAAAAA9TZXJ2ZXJQdWJsaWNLZXkBAAAAIAsoHUeLtZkyzNPc+1+ktrvkEUCDQsYcz7NPlRQhjeYWAAAAAA1TZXJ2ZXJBZGRyZXNzCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNNdUptQ1NFVWdCTnkxUjJnZXNrNTl4RGJXY3VUS3d3aXhXAAAAABBSb3VsZXR0ZVNlY3Rpb25zAAAAAAAAAAAVAAAAABFEYXRhR2FtZU51bWJlcktleQIAAAALQVBQX0dBTUVfSUQAAAAAD0RhdGFVc2VyR2FtZUtleQIAAAANVVNFUl9HQU1FX0lEXwAAAAANRGF0YUFtb3VudEtleQIAAAAGQU1PVU5UAAAAAA5EYXRhU2VjdGlvbktleQIAAAAHU0VDVElPTgAAAAANRGF0YVN0YXR1c0tleQIAAAAGU1RBVFVTAAAAAA1EYXRhUmVzdWx0S2V5AgAAAAZSRVNVTFQAAAAAEERhdGFXaW5BbW91bnRLZXkCAAAACldJTl9BTU9VTlQAAAAADURhdGFTdGF0dXNOZXcCAAAAA05FVw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WN0aW9uSWQFAAAAEERhdGFXaW5BbW91bnRLZXkJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAAh3cml0ZVNldAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAABndhbGxldAUAAAAJd2luQW1vdW50BQAAAAR1bml0BQAAAANuaWwFAAAACHdyaXRlU2V0CQAAAgAAAAEJAAEsAAAAAgUAAAANRXJyb3JHYW1lT3ZlcgUAAAAGc3RhdHVzAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAA3N0eAUAAAAHJG1hdGNoMAYHBxtC5z4=", "chainId": 84, "height": 617580, "spentComplexity": 0 } View: original | compacted Prev: 2t4wZcuiZ1DLCfHN27jyd2dr211RfJLtAxo9HEejZTSJ Next: 4CQ18K3uJgXZADXcoMHDp6gYwPbJceeztouqet1667ey Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'kYxoGdY4mv5zMYWYJTq3Pp3uLDuLphTYfT8epjYEJvy' | |
5 | 5 | ||
6 | 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 = sigVerify(fromBase58String(U), fromBase58String(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 265.89 ms ◑