tx · DBHNdfuBXN9ekfFvyoKMKJisbZTiRMWAptjRp1aeq2V6 3N5q1m8whV3SztrPuN3z5sbKsEm3ZeSYF2T: -0.01600000 Waves 2024.06.07 14:28 [3140221] smart account 3N5q1m8whV3SztrPuN3z5sbKsEm3ZeSYF2T > SELF 0.00000000 Waves
{ "type": 13, "id": "DBHNdfuBXN9ekfFvyoKMKJisbZTiRMWAptjRp1aeq2V6", "fee": 1600000, "feeAssetId": null, "timestamp": 1717759717527, "version": 2, "chainId": 84, "sender": "3N5q1m8whV3SztrPuN3z5sbKsEm3ZeSYF2T", "senderPublicKey": "BNpSmh5j4pzfsxKnEskdG2d4wxQZgbJwnFb5hC7NgrsA", "proofs": [ "AL3pDsqjgaTPSaTfB8LLy6QyKrC8zQtZsdahWof9KGVGtxqNBoUF6jw3uCGSeBKQmYiNFvGQ3qEWT6qWjjBoVGg" ], "script": "base64:AAIFAAAAAAAAADwIAhIDCgEIEgQKAggEEgcKBQgICAgIEgASBAoCCAESBAoCCAESBAoCCAESBAoCCAESCgoICAEBAQEBCAEAAAAZAAAAAAhhZG1pbm1zZwIAAAApRXJyb3I6IE9ubHkgYWRtaW4gY2FuIGNhbGwgdGhpcyBmdW5jdGlvbiEAAAAADmludmFsaWRBZGRyZXNzAgAAABdFcnJvcjogQWRkcmVzcyBpbnZhbGlkIQAAAAAPaW52YWxpZFRva2VuTXNnAgAAABVFcnJvcjogSW52YWxpZCBBc3NldCEAAAAADW1hdGNoTXNnRXJyb3ICAAAAakVycm9yOiBZb3UgYXJlIGFscmVhZHkgcGFydGljaXBhdGluZyBpbiBhIHJvb20uIFRyeSB0byBlbmQgaXQgb3IgbGVhdmUgdGhlIHJvb20gYnkgYWNjZXNzaW5nICdJbiBQcm9ncmVzcycAAAAACWJhbm5lZG1zZwIAAAA0RXJyb3I6IHRoZSB1c2VyIGhhcyBiZWVuIGJhbm5lZCBieSBhbiBhZG1pbmlzdHJhdG9yLgAAAAAGT3JhY2xlAgAAACMzTXh1ZFh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b20AAAACBQAAAAthZGRyZXNzUm9vbQUAAAAKaGVpZ2h0Um9vbQUAAAANYWRkcmVzczJWYWx1ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAACGFkZHJlc3MzAgAAAAFfCQEAAAAJdG9rZW5Sb29tAAAAAgUAAAALYWRkcmVzc1Jvb20FAAAACmhlaWdodFJvb20JAABlAAAAAgkBAAAAD2dldEJhbGFuY2VUb2tlbgAAAAIFAAAACGFkZHJlc3MzCQEAAAAJdG9rZW5Sb29tAAAAAgUAAAALYWRkcmVzc1Jvb20FAAAACmhlaWdodFJvb20FAAAADWFkZHJlc3MzVmFsdWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAhhZGRyZXNzNAIAAAABXwkBAAAACXRva2VuUm9vbQAAAAIFAAAAC2FkZHJlc3NSb29tBQAAAApoZWlnaHRSb29tCQAAZQAAAAIJAQAAAA9nZXRCYWxhbmNlVG9rZW4AAAACBQAAAAhhZGRyZXNzNAkBAAAACXRva2VuUm9vbQAAAAIFAAAAC2FkZHJlc3NSb29tBQAAAApoZWlnaHRSb29tBQAAAA1hZGRyZXNzNFZhbHVlBQAAAANuaWwJAAACAAAAAQUAAAAIYWRtaW5tc2cAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleSDVJ08=", "height": 3140221, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: us41VUCFRavJrc21o4vbyb7ssEtcaVoc7yPuJLjWWk9 Next: FAYupmaeWMfFJG7nJJyiYVAbkDpxmnKXbrtPbR7DG6nG Diff:
Old | New | Differences | |
---|---|---|---|
213 | 213 | @Callable(J) | |
214 | 214 | func leaveRoom (t,w) = { | |
215 | 215 | let K = toBase58String(J.caller.bytes) | |
216 | - | if (G(J.caller.bytes)) | |
217 | - | then throw(d) | |
218 | - | else if (!(I(t))) | |
219 | - | then throw(j) | |
220 | - | else if (!(u(K, t, w))) | |
221 | - | then throw(k) | |
222 | - | else if ((t == toBase58String(J.caller.bytes))) | |
223 | - | then throw(l) | |
224 | - | else [DeleteEntry((K + "_isMatch")), DeleteEntry((K + "_matchIn")), DeleteEntry((K + "_match_height"))] | |
216 | + | if (!(I(t))) | |
217 | + | then throw(j) | |
218 | + | else if (!(u(K, t, w))) | |
219 | + | then throw(k) | |
220 | + | else if ((t == toBase58String(J.caller.bytes))) | |
221 | + | then throw(l) | |
222 | + | else [DeleteEntry((K + "_isMatch")), DeleteEntry((K + "_matchIn")), DeleteEntry((K + "_match_height"))] | |
225 | 223 | } | |
226 | 224 | ||
227 | 225 | ||
229 | 227 | @Callable(J) | |
230 | 228 | func CloseRoom (t,w) = { | |
231 | 229 | let K = toBase58String(J.caller.bytes) | |
232 | - | if (G(J.caller.bytes)) | |
233 | - | then throw(d) | |
234 | - | else if (!(I(t))) | |
235 | - | then throw(j) | |
236 | - | else if ((t == toBase58String(J.caller.bytes))) | |
237 | - | then [DeleteEntry((K + "_isMatch")), DeleteEntry((K + "_matchIn")), DeleteEntry((K + "_match_height")), BooleanEntry(((K + "_height_") + toString(height)), false), BooleanEntry((K + "_isMatch"), false), BooleanEntry(K, false)] | |
238 | - | else throw(m) | |
230 | + | if (!(I(t))) | |
231 | + | then throw(j) | |
232 | + | else if ((t == toBase58String(J.caller.bytes))) | |
233 | + | then [DeleteEntry((K + "_isMatch")), DeleteEntry((K + "_matchIn")), DeleteEntry((K + "_match_height")), BooleanEntry(((K + "_height_") + toString(height)), false), BooleanEntry((K + "_isMatch"), false), BooleanEntry(K, false)] | |
234 | + | else throw(m) | |
239 | 235 | } | |
240 | 236 | ||
241 | 237 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "Error: Only admin can call this function!" | |
5 | 5 | ||
6 | 6 | let b = "Error: Address invalid!" | |
7 | 7 | ||
8 | 8 | let c = "Error: Invalid Asset!" | |
9 | 9 | ||
10 | 10 | let d = "Error: You are already participating in a room. Try to end it or leave the room by accessing 'In Progress'" | |
11 | 11 | ||
12 | 12 | let e = "Error: the user has been banned by an administrator." | |
13 | 13 | ||
14 | 14 | let f = "3MxudXNtrPExNtG9MsGV6e1kizuybgpiVq2" | |
15 | 15 | ||
16 | 16 | let g = "Error: You already have a previously created room. Go to 'In Progress' and close your room to create a new game." | |
17 | 17 | ||
18 | 18 | let h = "Error: You have no amount deposited as a chip in the poker module." | |
19 | 19 | ||
20 | 20 | let i = "Error: Amount you want to withdraw greater than the amount available for withdrawal." | |
21 | 21 | ||
22 | 22 | let j = "Error:The room you want to join no longer exists." | |
23 | 23 | ||
24 | 24 | let k = "Error: You have not been invited to join this room." | |
25 | 25 | ||
26 | 26 | let l = "Error: You are the creator of the room." | |
27 | 27 | ||
28 | 28 | let m = "Error: Only the room creator can close the room." | |
29 | 29 | ||
30 | 30 | func n (o) = (("Error: You do not have enough chips in the poker module for asset " + o) + ". Go to 'Select Token', select the token you are using and click 'Deposit'.") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p (q) = if ((q == "WAVES")) | |
34 | 34 | then true | |
35 | 35 | else isDefined(getBoolean(Address(fromBase58String(f)), q)) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func r (q) = if ((q == "WAVES")) | |
39 | 39 | then unit | |
40 | 40 | else fromBase58String(q) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func s (t) = (addressFromString(t) != unit) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func u (t,v,w) = { | |
47 | 47 | let x = getStringValue(((("address1_" + v) + "_") + toString(w))) | |
48 | 48 | let y = getStringValue(((("address2_" + v) + "_") + toString(w))) | |
49 | 49 | let z = getStringValue(((("address3_" + v) + "_") + toString(w))) | |
50 | 50 | let A = getStringValue(((("address4_" + v) + "_") + toString(w))) | |
51 | 51 | if (if (if ((t == x)) | |
52 | 52 | then true | |
53 | 53 | else (t == y)) | |
54 | 54 | then true | |
55 | 55 | else (t == z)) | |
56 | 56 | then true | |
57 | 57 | else (t == A) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func B (t,q) = if (isDefined(getInteger(((t + "_") + q)))) | |
62 | 62 | then getIntegerValue(((t + "_") + q)) | |
63 | 63 | else 0 | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func C (t,w) = getStringValue((((t + "_height_") + toString(w)) + "_token")) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func D (t,q) = (B(t, q) > 0) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func E (t) = { | |
73 | 73 | let F = toBase58String(t) | |
74 | 74 | if (isDefined(getString("admin"))) | |
75 | 75 | then if (if ((F == getStringValue("admin"))) | |
76 | 76 | then true | |
77 | 77 | else (F == toBase58String(this.bytes))) | |
78 | 78 | then true | |
79 | 79 | else false | |
80 | 80 | else if ((F == toBase58String(this.bytes))) | |
81 | 81 | then true | |
82 | 82 | else false | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func G (t) = { | |
87 | 87 | let F = toBase58String(t) | |
88 | 88 | if (isDefined(getBoolean((F + "_isMatch")))) | |
89 | 89 | then true | |
90 | 90 | else false | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func H (t) = if (isDefined(getBoolean((t + "_banned")))) | |
95 | 95 | then getBooleanValue((t + "_banned")) | |
96 | 96 | else false | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func I (t) = isDefined(getBoolean(t)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Callable(J) | |
103 | 103 | func addAdmin (t) = if (E(J.caller.bytes)) | |
104 | 104 | then if (s(t)) | |
105 | 105 | then [StringEntry("admin", t)] | |
106 | 106 | else throw(b) | |
107 | 107 | else throw(a) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(J) | |
112 | 112 | func ban (t,H) = if (E(J.caller.bytes)) | |
113 | 113 | then if (s(t)) | |
114 | 114 | then [BooleanEntry((t + "_banned"), H)] | |
115 | 115 | else throw(b) | |
116 | 116 | else throw(a) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | ||
120 | 120 | @Callable(J) | |
121 | 121 | func new (o,x,y,z,A) = { | |
122 | 122 | let K = toBase58String(J.caller.bytes) | |
123 | 123 | if (H(K)) | |
124 | 124 | then throw(e) | |
125 | 125 | else if (!(p(o))) | |
126 | 126 | then throw(c) | |
127 | 127 | else if (G(J.caller.bytes)) | |
128 | 128 | then throw(d) | |
129 | 129 | else if (!(D(K, o))) | |
130 | 130 | then throw(n(o)) | |
131 | 131 | else if (I(K)) | |
132 | 132 | then throw(g) | |
133 | 133 | else if (if (if (if (if ((x != "")) | |
134 | 134 | then s(x) | |
135 | 135 | else false) | |
136 | 136 | then true | |
137 | 137 | else if ((y != "")) | |
138 | 138 | then s(y) | |
139 | 139 | else false) | |
140 | 140 | then true | |
141 | 141 | else if ((z != "")) | |
142 | 142 | then s(z) | |
143 | 143 | else false) | |
144 | 144 | then true | |
145 | 145 | else if ((A != "")) | |
146 | 146 | then s(A) | |
147 | 147 | else false) | |
148 | 148 | then [BooleanEntry(((K + "_height_") + toString(height)), true), IntegerEntry((K + "_height_latest"), height), StringEntry(((("address1_" + K) + "_") + toString(height)), x), StringEntry(((("address2_" + K) + "_") + toString(height)), y), StringEntry(((("address3_" + K) + "_") + toString(height)), z), StringEntry(((("address4_" + K) + "_") + toString(height)), A), StringEntry((((K + "_height_") + toString(height)) + "_token"), o), BooleanEntry((K + "_isMatch"), true), BooleanEntry(K, true)] | |
149 | 149 | else throw(b) | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | ||
154 | 154 | @Callable(J) | |
155 | 155 | func Deposit () = { | |
156 | 156 | let L = { | |
157 | 157 | let M = J.payments[0].assetId | |
158 | 158 | if ($isInstanceOf(M, "ByteVector")) | |
159 | 159 | then { | |
160 | 160 | let N = M | |
161 | 161 | toBase58String(N) | |
162 | 162 | } | |
163 | 163 | else "WAVES" | |
164 | 164 | } | |
165 | 165 | let K = toBase58String(J.caller.bytes) | |
166 | 166 | if (H(K)) | |
167 | 167 | then throw(e) | |
168 | 168 | else if (!(p(L))) | |
169 | 169 | then throw(c) | |
170 | 170 | else if (G(J.caller.bytes)) | |
171 | 171 | then throw(d) | |
172 | 172 | else [IntegerEntry(((K + "_") + L), (J.payments[0].amount + B(K, L)))] | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(J) | |
178 | 178 | func Withdraw (L,O) = { | |
179 | 179 | let K = toBase58String(J.caller.bytes) | |
180 | 180 | if (H(K)) | |
181 | 181 | then throw(e) | |
182 | 182 | else if (!(p(L))) | |
183 | 183 | then throw(c) | |
184 | 184 | else if (G(J.caller.bytes)) | |
185 | 185 | then throw(d) | |
186 | 186 | else if ((B(K, L) == 0)) | |
187 | 187 | then throw(h) | |
188 | 188 | else if ((O > B(K, L))) | |
189 | 189 | then throw(i) | |
190 | 190 | else [ScriptTransfer(J.caller, O, r(L)), IntegerEntry(((K + "_") + L), (B(K, L) - O))] | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | ||
195 | 195 | @Callable(J) | |
196 | 196 | func join (t,w) = { | |
197 | 197 | let K = toBase58String(J.caller.bytes) | |
198 | 198 | if (H(K)) | |
199 | 199 | then throw(e) | |
200 | 200 | else if (G(J.caller.bytes)) | |
201 | 201 | then throw(d) | |
202 | 202 | else if (!(I(t))) | |
203 | 203 | then throw(j) | |
204 | 204 | else if (!(D(K, C(t, w)))) | |
205 | 205 | then throw(n(C(t, w))) | |
206 | 206 | else if (!(u(K, t, w))) | |
207 | 207 | then throw(k) | |
208 | 208 | else [BooleanEntry((K + "_isMatch"), true), StringEntry((K + "_matchIn"), t), IntegerEntry((K + "_match_height"), w)] | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(J) | |
214 | 214 | func leaveRoom (t,w) = { | |
215 | 215 | let K = toBase58String(J.caller.bytes) | |
216 | - | if (G(J.caller.bytes)) | |
217 | - | then throw(d) | |
218 | - | else if (!(I(t))) | |
219 | - | then throw(j) | |
220 | - | else if (!(u(K, t, w))) | |
221 | - | then throw(k) | |
222 | - | else if ((t == toBase58String(J.caller.bytes))) | |
223 | - | then throw(l) | |
224 | - | else [DeleteEntry((K + "_isMatch")), DeleteEntry((K + "_matchIn")), DeleteEntry((K + "_match_height"))] | |
216 | + | if (!(I(t))) | |
217 | + | then throw(j) | |
218 | + | else if (!(u(K, t, w))) | |
219 | + | then throw(k) | |
220 | + | else if ((t == toBase58String(J.caller.bytes))) | |
221 | + | then throw(l) | |
222 | + | else [DeleteEntry((K + "_isMatch")), DeleteEntry((K + "_matchIn")), DeleteEntry((K + "_match_height"))] | |
225 | 223 | } | |
226 | 224 | ||
227 | 225 | ||
228 | 226 | ||
229 | 227 | @Callable(J) | |
230 | 228 | func CloseRoom (t,w) = { | |
231 | 229 | let K = toBase58String(J.caller.bytes) | |
232 | - | if (G(J.caller.bytes)) | |
233 | - | then throw(d) | |
234 | - | else if (!(I(t))) | |
235 | - | then throw(j) | |
236 | - | else if ((t == toBase58String(J.caller.bytes))) | |
237 | - | then [DeleteEntry((K + "_isMatch")), DeleteEntry((K + "_matchIn")), DeleteEntry((K + "_match_height")), BooleanEntry(((K + "_height_") + toString(height)), false), BooleanEntry((K + "_isMatch"), false), BooleanEntry(K, false)] | |
238 | - | else throw(m) | |
230 | + | if (!(I(t))) | |
231 | + | then throw(j) | |
232 | + | else if ((t == toBase58String(J.caller.bytes))) | |
233 | + | then [DeleteEntry((K + "_isMatch")), DeleteEntry((K + "_matchIn")), DeleteEntry((K + "_match_height")), BooleanEntry(((K + "_height_") + toString(height)), false), BooleanEntry((K + "_isMatch"), false), BooleanEntry(K, false)] | |
234 | + | else throw(m) | |
239 | 235 | } | |
240 | 236 | ||
241 | 237 | ||
242 | 238 | ||
243 | 239 | @Callable(J) | |
244 | 240 | func setWinner (P,Q,R,S,T,U,V,w) = if (E(J.caller.bytes)) | |
245 | 241 | then { | |
246 | 242 | let W = (((Q + R) + S) + T) | |
247 | 243 | let x = getStringValue(((("address1_" + V) + "_") + toString(w))) | |
248 | 244 | let y = getStringValue(((("address2_" + V) + "_") + toString(w))) | |
249 | 245 | let z = getStringValue(((("address3_" + V) + "_") + toString(w))) | |
250 | 246 | let A = getStringValue(((("address4_" + V) + "_") + toString(w))) | |
251 | 247 | [ScriptTransfer(Address(fromBase58String(getStringValue("admin"))), ((W * 4) / 100), r(C(V, w))), StringEntry((((V + "_height_") + toString(height)) + "_winner"), P), BooleanEntry(((V + "_height_") + toString(height)), false), BooleanEntry((V + "_isMatch"), false), BooleanEntry(V, false), DeleteEntry((V + "_isMatch")), DeleteEntry((V + "_matchIn")), DeleteEntry((V + "_match_height")), IntegerEntry(((P + "_") + C(V, w)), (B(P, C(V, w)) + (W - ((W * 4) / 100)))), IntegerEntry(((V + "_") + C(V, w)), (B(V, C(V, w)) - U)), IntegerEntry(((x + "_") + C(V, w)), (B(x, C(V, w)) - Q)), IntegerEntry(((y + "_") + C(V, w)), (B(y, C(V, w)) - R)), IntegerEntry(((z + "_") + C(V, w)), (B(z, C(V, w)) - S)), IntegerEntry(((A + "_") + C(V, w)), (B(A, C(V, w)) - T))] | |
252 | 248 | } | |
253 | 249 | else throw(a) | |
254 | 250 | ||
255 | 251 | ||
256 | 252 | @Verifier(X) | |
257 | 253 | func Y () = sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey) | |
258 | 254 |
github/deemru/w8io/026f985 45.17 ms ◑