tx · dRLUnYx19o21fTJ8GuTXYcHkc6deDAkf4SJ7zKmdGYV 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd: -0.10100000 Waves 2021.12.03 04:28 [1817432] smart account 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd > SELF 0.00000000 Waves
{ "type": 13, "id": "dRLUnYx19o21fTJ8GuTXYcHkc6deDAkf4SJ7zKmdGYV", "fee": 10100000, "feeAssetId": null, "timestamp": 1638494918302, "version": 2, "chainId": 84, "sender": "3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd", "senderPublicKey": "7Hi4o6vBstRs79NMVMjEove52dmP87RAcvNDAXN8C4Wi", "proofs": [ "5mzgaNtLhMLu76BSq1cVigKGTUQAcmTK5urTW6ige1phG9wF1ZmboDJZAG1g75Tjgwbn4oN7ZbZLB6FTbpoWGS4t" ], "script": "base64:AAIFAAAAAAAAAAsIAhIAEgASAwoBCAAAAA4AAAAABmNhc2lubwIAAAAjM010YUNMNHYxYmpUYWJVcXM3b1U0b2ZTOGZiYWkzNFdNMWkAAAAABVdBVkVTAAAAAAA7msoAAAAAAAZtYXhCZXQJAABoAAAAAgAAAAAAAAAAZAUAAAAFV0FWRVMAAAAACXNlcGFyYXRvcgIAAAABLAEAAAAKZ2V0TmV3RGVjawAAAAAJAARMAAAAAgIAAAADMDFDCQAETAAAAAICAAAAAzAyQwkABEwAAAACAgAAAAMwM0MJAARMAAAAAgIAAAADMDRDCQAETAAAAAICAAAAAzA1QwkABEwAAAACAgAAAAMwNkMJAARMAAAAAgIAAAADMDdDCQAETAAAAAICAAAAAzA4QwkABEwAAAACAgAAAAMwOUMJAARMAAAAAgIAAAADMTBDCQAETAAAAAICAAAAAzExQwkABEwAAAACAgAAAAMxMkMJAARMAAAAAgIAAAADMTNDCQAETAAAAAICAAAAAzAxRAkABEwAAAACAgAAAAMwMkQJAARMAAAAAgIAAAADMDNECQAETAAAAAICAAAAAzA0RAkABEwAAAACAgAAAAMwNUQJAARMAAAAAgIAAAADMDZECQAETAAAAAICAAAAAzA3RAkABEwAAAACAgAAAAMwOEQJAARMAAAAAgIAAAADMDlECQAETAAAAAICAAAAAzEwRAkABEwAAAACAgAAAAMxMUQJAARMAAAAAgIAAAADMTJECQAETAAAAAICAAAAAzEzRAkABEwAAAACAgAAAAMwMUgJAARMAAAAAgIAAAADMDJICQAETAAAAAICAAAAAzAzSAkABEwAAAACAgAAAAMwNEgJAARMAAAAAgIAAAADMDVICQAETAAAAAICAAAAAzA2SAkABEwAAAACAgAAAAMwN0gJAARMAAAAAgIAAAADMDhICQAETAAAAAICAAAAAzA5SAkABEwAAAACAgAAAAMxMEgJAARMAAAAAgIAAAADMTFICQAETAAAAAICAAAAAzEySAkABEwAAAACAgAAAAMxM0gJAARMAAAAAgIAAAADMDFTCQAETAAAAAICAAAAAzAyUwkABEwAAAACAgAAAAMwM1MJAARMAAAAAgIAAAADMDRTCQAETAAAAAICAAAAAzA1UwkABEwAAAACAgAAAAMwNlMJAARMAAAAAgIAAAADMDdTCQAETAAAAAICAAAAAzA4UwkABEwAAAACAgAAAAMwOVMJAARMAAAAAgIAAAADMTBTCQAETAAAAAICAAAAAzExUwkABEwAAAACAgAAAAMxMlMJAARMAAAAAgIAAAADMTNTBQAAAANuaWwBAAAADmdldFNpeE5ld0RlY2tzAAAAAAkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAQAAAApnZXROZXdEZWNrAAAAAAkBAAAACmdldE5ld0RlY2sAAAAACQEAAAAKZ2V0TmV3RGVjawAAAAAJAQAAAApnZXROZXdEZWNrAAAAAAkBAAAACmdldE5ld0RlY2sAAAAACQEAAAAKZ2V0TmV3RGVjawAAAAABAAAAB2dldERlY2sAAAABAAAABGRlY2sDCQAAZwAAAAIAAAAAAAAAAAAJAAGQAAAAAQUAAAAEZGVjawkBAAAADmdldFNpeE5ld0RlY2tzAAAAAAUAAAAEZGVjawEAAAAPZ2V0UmFuZG9tTnV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AAA1hdmFpbGFibGVQcm9wCQAEuQAAAAIFAAAAB2F2RGVjazIFAAAACXNlcGFyYXRvcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAABXJvdW5kAgAAAAZfcm91bmQFAAAABXJvdW5kCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAABXJvdW5kAgAAABFfTGFzdFJhbmRvbk51bWJlcgUAAAASY2FyZFBvc2l0aW9uQ2FzaW5vCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAFcm91bmQCAAAAC19wbGF5ZXJDYXJkBQAAAApjYXJkUGxheWVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAFcm91bmQCAAAAC19jYXNpbm9DYXJkBQAAAApjYXJkQ2FzaW5vCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAABXJvdW5kAgAAAApfYmV0QW1vdW50BQAAAAFwCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIFAAAABXJvdW5kAgAAAAVfc3RvcAYFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5FizDkg==", "height": 1817432, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6kxwcZsfp29LASAjjBZJrNsoNi7Xd1bxzy2XdEb3bs5u Next: 3GzD2Kzydqm13Kxv3TQSPxhyBRjxLgbLHCg1tGG75xjQ Diff:
Old | New | Differences | |
---|---|---|---|
119 | 119 | else { | |
120 | 120 | let G = (T + "_deck") | |
121 | 121 | let U = E(this, G) | |
122 | - | let V = I(T, | |
122 | + | let V = I(T, T, U) | |
123 | 123 | let B = V._1 | |
124 | 124 | let W = V._2 | |
125 | 125 | let X = V._3 | |
126 | - | let Y = I((T + B), | |
126 | + | let Y = I((T + B), T, X) | |
127 | 127 | let C = Y._1 | |
128 | 128 | let Z = Y._2 | |
129 | 129 | let L = Y._3 | |
161 | 161 | then throw("This game is not on war") | |
162 | 162 | else { | |
163 | 163 | let ab = { | |
164 | - | let r = getInteger(this, ( | |
164 | + | let r = getInteger(this, (T + "_betAmount")) | |
165 | 165 | if ($isInstanceOf(r, "Int")) | |
166 | 166 | then { | |
167 | 167 | let S = r | |
194 | 194 | then throw("This game is not on war") | |
195 | 195 | else { | |
196 | 196 | let ab = { | |
197 | - | let r = getInteger(this, ( | |
197 | + | let r = getInteger(this, (T + "_betAmount")) | |
198 | 198 | if ($isInstanceOf(r, "Int")) | |
199 | 199 | then { | |
200 | 200 | let S = r | |
210 | 210 | else { | |
211 | 211 | let G = (T + "_deck") | |
212 | 212 | let U = E(this, G) | |
213 | - | let ae = I(T, | |
213 | + | let ae = I(T, T, U) | |
214 | 214 | let af = ae._1 | |
215 | 215 | let ag = ae._2 | |
216 | 216 | let ah = ae._3 | |
217 | - | let ai = I((T + af), | |
217 | + | let ai = I((T + af), T, ah) | |
218 | 218 | let aj = ai._1 | |
219 | 219 | let ak = ai._2 | |
220 | 220 | let al = ai._3 | |
221 | - | let am = I((T + aj), | |
221 | + | let am = I((T + aj), T, al) | |
222 | 222 | let an = am._1 | |
223 | 223 | let ao = am._2 | |
224 | 224 | let ap = am._3 | |
225 | - | let aq = I((T + an), | |
225 | + | let aq = I((T + an), T, ap) | |
226 | 226 | let B = aq._1 | |
227 | 227 | let W = aq._2 | |
228 | 228 | let X = aq._3 | |
229 | - | let ar = I((T + B), | |
229 | + | let ar = I((T + B), T, X) | |
230 | 230 | let C = ar._1 | |
231 | 231 | let Z = ar._2 | |
232 | 232 | let L = ar._3 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3MtaCL4v1bjTabUqs7oU4ofS8fbai34WM1i" | |
5 | 5 | ||
6 | 6 | let b = 1000000000 | |
7 | 7 | ||
8 | 8 | let c = (100 * b) | |
9 | 9 | ||
10 | 10 | let d = "," | |
11 | 11 | ||
12 | 12 | func e () = ["01C", "02C", "03C", "04C", "05C", "06C", "07C", "08C", "09C", "10C", "11C", "12C", "13C", "01D", "02D", "03D", "04D", "05D", "06D", "07D", "08D", "09D", "10D", "11D", "12D", "13D", "01H", "02H", "03H", "04H", "05H", "06H", "07H", "08H", "09H", "10H", "11H", "12H", "13H", "01S", "02S", "03S", "04S", "05S", "06S", "07S", "08S", "09S", "10S", "11S", "12S", "13S"] | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f () = (((((e() ++ e()) ++ e()) ++ e()) ++ e()) ++ e()) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func g (h) = if ((0 >= size(h))) | |
19 | 19 | then f() | |
20 | 20 | else h | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func i (j,k,l) = { | |
24 | 24 | let m = sha256(toBytes((j + k))) | |
25 | 25 | let n = toInt(m) | |
26 | 26 | let o = (n % l) | |
27 | 27 | if ((0 > o)) | |
28 | 28 | then ((-1 * o) + 1) | |
29 | 29 | else (o + 1) | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p (q) = { | |
34 | 34 | let r = getInteger(this, (q + "_LastRandonNumber")) | |
35 | 35 | if ($isInstanceOf(r, "Int")) | |
36 | 36 | then { | |
37 | 37 | let s = r | |
38 | 38 | toString(s) | |
39 | 39 | } | |
40 | 40 | else q | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func t (u) = if ((size(u.payments) == 0)) | |
45 | 45 | then throw("Payment must be attached") | |
46 | 46 | else if ((size(u.payments) == 1)) | |
47 | 47 | then { | |
48 | 48 | let v = u.payments[0] | |
49 | 49 | if (isDefined(v.assetId)) | |
50 | 50 | then throw("This function accepts WAVES tokens only (0)") | |
51 | 51 | else $Tuple2(v.amount, 0) | |
52 | 52 | } | |
53 | 53 | else { | |
54 | 54 | let v = u.payments[0] | |
55 | 55 | if (isDefined(v.assetId)) | |
56 | 56 | then throw("This function accepts WAVES tokens only (10)") | |
57 | 57 | else { | |
58 | 58 | let w = u.payments[1] | |
59 | 59 | if (isDefined(w.assetId)) | |
60 | 60 | then throw("This function accepts WAVES tokens only (11)") | |
61 | 61 | else $Tuple2(v.amount, w.amount) | |
62 | 62 | } | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func x (y) = { | |
67 | 67 | let z = parseIntValue(take(y, 2)) | |
68 | 68 | if ((z == 1)) | |
69 | 69 | then 20 | |
70 | 70 | else z | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func A (B,C) = { | |
75 | 75 | let z = x(B) | |
76 | 76 | let D = x(C) | |
77 | 77 | (z > D) | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func E (F,G) = if (isDefined(getString(F, G))) | |
82 | 82 | then { | |
83 | 83 | let H = getStringValue(F, G) | |
84 | 84 | let h = split(H, d) | |
85 | 85 | g(h) | |
86 | 86 | } | |
87 | 87 | else f() | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func I (J,K,h) = { | |
91 | 91 | let L = g(h) | |
92 | 92 | let M = i(((J + makeString(L, d)) + K), p(K), size(L)) | |
93 | 93 | let N = L[(M % size(L))] | |
94 | 94 | let O = removeByIndex(L, (M % size(L))) | |
95 | 95 | $Tuple3(N, M, O) | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(u) | |
100 | 100 | func bet () = { | |
101 | 101 | let K = toBase58String(u.caller.bytes) | |
102 | 102 | let P = t(u) | |
103 | 103 | let z = P._1 | |
104 | 104 | let Q = P._2 | |
105 | 105 | let R = { | |
106 | 106 | let r = getInteger(this, (K + "_round")) | |
107 | 107 | if ($isInstanceOf(r, "Int")) | |
108 | 108 | then { | |
109 | 109 | let S = r | |
110 | 110 | (S + 1) | |
111 | 111 | } | |
112 | 112 | else 1 | |
113 | 113 | } | |
114 | 114 | let T = ((K + "_") + toString(R)) | |
115 | 115 | if (isDefined(getBoolean(this, (T + "_stop")))) | |
116 | 116 | then throw("This round is already played") | |
117 | 117 | else if (isDefined(getString(this, T))) | |
118 | 118 | then throw("You cannot bet on this game") | |
119 | 119 | else { | |
120 | 120 | let G = (T + "_deck") | |
121 | 121 | let U = E(this, G) | |
122 | - | let V = I(T, | |
122 | + | let V = I(T, T, U) | |
123 | 123 | let B = V._1 | |
124 | 124 | let W = V._2 | |
125 | 125 | let X = V._3 | |
126 | - | let Y = I((T + B), | |
126 | + | let Y = I((T + B), T, X) | |
127 | 127 | let C = Y._1 | |
128 | 128 | let Z = Y._2 | |
129 | 129 | let L = Y._3 | |
130 | 130 | if ((1 == 1)) | |
131 | 131 | then { | |
132 | 132 | let aa = 1 | |
133 | 133 | if ((Q != 0)) | |
134 | 134 | then [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_drawSequence"), aa), IntegerEntry((T + "_betAmount"), z), StringEntry((T + "_debug"), (((((toString(z) + "-") + toString(Q)) + " ScriptTransfer(i.caller, (t * 10)=") + toString(((Q * 10) + Q))) + ", unit)")), ScriptTransfer(u.caller, ((Q * 10) + Q), unit)] | |
135 | 135 | else [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_drawSequence"), aa), IntegerEntry((T + "_betAmount"), z)] | |
136 | 136 | } | |
137 | 137 | else if (A(B, C)) | |
138 | 138 | then [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_betAmount"), z), StringEntry((T + "_debug"), (((((toString(z) + "-") + toString(Q)) + " ScriptTransfer(i.caller, p=") + toString(z)) + ", unit)")), ScriptTransfer(u.caller, z, unit), BooleanEntry((T + "_stop"), true)] | |
139 | 139 | else [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_betAmount"), z), BooleanEntry((T + "_stop"), true)] | |
140 | 140 | } | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(u) | |
146 | 146 | func surrender () = { | |
147 | 147 | let K = toBase58String(u.caller.bytes) | |
148 | 148 | let R = { | |
149 | 149 | let r = getInteger(this, (K + "_round")) | |
150 | 150 | if ($isInstanceOf(r, "Int")) | |
151 | 151 | then { | |
152 | 152 | let S = r | |
153 | 153 | toString(S) | |
154 | 154 | } | |
155 | 155 | else throw("Unable to find the round") | |
156 | 156 | } | |
157 | 157 | let T = ((K + "_") + R) | |
158 | 158 | if (isDefined(getBoolean(this, (T + "_stop")))) | |
159 | 159 | then throw("This round is already played") | |
160 | 160 | else if (!(isDefined(getInteger(this, (T + "_drawSequence"))))) | |
161 | 161 | then throw("This game is not on war") | |
162 | 162 | else { | |
163 | 163 | let ab = { | |
164 | - | let r = getInteger(this, ( | |
164 | + | let r = getInteger(this, (T + "_betAmount")) | |
165 | 165 | if ($isInstanceOf(r, "Int")) | |
166 | 166 | then { | |
167 | 167 | let S = r | |
168 | 168 | S | |
169 | 169 | } | |
170 | 170 | else throw("Unable to find original bet amount") | |
171 | 171 | } | |
172 | 172 | [StringEntry(((T + toString(ab)) + " _debug"), (("ScriptTransfer(i.caller, betAmount / 2=" + toString((ab / 2))) + ", unit)")), ScriptTransfer(u.caller, (ab / 2), unit), BooleanEntry((T + "_stop"), true)] | |
173 | 173 | } | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(u) | |
179 | 179 | func goToWar (ac) = { | |
180 | 180 | let K = toBase58String(u.caller.bytes) | |
181 | 181 | let R = { | |
182 | 182 | let r = getInteger(this, (K + "_round")) | |
183 | 183 | if ($isInstanceOf(r, "Int")) | |
184 | 184 | then { | |
185 | 185 | let S = r | |
186 | 186 | S | |
187 | 187 | } | |
188 | 188 | else throw("Unable to find the round") | |
189 | 189 | } | |
190 | 190 | let T = ((K + "_") + toString(R)) | |
191 | 191 | if (isDefined(getBoolean(this, (T + "_stop")))) | |
192 | 192 | then throw("This round is already played") | |
193 | 193 | else if (!(isDefined(getInteger(this, (T + "_drawSequence"))))) | |
194 | 194 | then throw("This game is not on war") | |
195 | 195 | else { | |
196 | 196 | let ab = { | |
197 | - | let r = getInteger(this, ( | |
197 | + | let r = getInteger(this, (T + "_betAmount")) | |
198 | 198 | if ($isInstanceOf(r, "Int")) | |
199 | 199 | then { | |
200 | 200 | let S = r | |
201 | 201 | S | |
202 | 202 | } | |
203 | 203 | else throw("Unable to find original bet amount") | |
204 | 204 | } | |
205 | 205 | let ad = t(u) | |
206 | 206 | let z = ad._1 | |
207 | 207 | let Q = ad._2 | |
208 | 208 | if ((z != ab)) | |
209 | 209 | then throw((((("original bet amount (" + toString(ab)) + ") different to the current payment (") + toString(z)) + ")")) | |
210 | 210 | else { | |
211 | 211 | let G = (T + "_deck") | |
212 | 212 | let U = E(this, G) | |
213 | - | let ae = I(T, | |
213 | + | let ae = I(T, T, U) | |
214 | 214 | let af = ae._1 | |
215 | 215 | let ag = ae._2 | |
216 | 216 | let ah = ae._3 | |
217 | - | let ai = I((T + af), | |
217 | + | let ai = I((T + af), T, ah) | |
218 | 218 | let aj = ai._1 | |
219 | 219 | let ak = ai._2 | |
220 | 220 | let al = ai._3 | |
221 | - | let am = I((T + aj), | |
221 | + | let am = I((T + aj), T, al) | |
222 | 222 | let an = am._1 | |
223 | 223 | let ao = am._2 | |
224 | 224 | let ap = am._3 | |
225 | - | let aq = I((T + an), | |
225 | + | let aq = I((T + an), T, ap) | |
226 | 226 | let B = aq._1 | |
227 | 227 | let W = aq._2 | |
228 | 228 | let X = aq._3 | |
229 | - | let ar = I((T + B), | |
229 | + | let ar = I((T + B), T, X) | |
230 | 230 | let C = ar._1 | |
231 | 231 | let Z = ar._2 | |
232 | 232 | let L = ar._3 | |
233 | 233 | if ((x(B) == x(C))) | |
234 | 234 | then { | |
235 | 235 | let aa = { | |
236 | 236 | let r = getInteger(this, (T + "_drawSequence")) | |
237 | 237 | if ($isInstanceOf(r, "Int")) | |
238 | 238 | then { | |
239 | 239 | let S = r | |
240 | 240 | (S + 1) | |
241 | 241 | } | |
242 | 242 | else 0 | |
243 | 243 | } | |
244 | 244 | [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_drawSequence"), aa), IntegerEntry((T + "_betAmount"), z)] | |
245 | 245 | } | |
246 | 246 | else if (A(B, C)) | |
247 | 247 | then [StringEntry(G, makeString(L, d)), IntegerEntry((K + "_round"), R), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_betAmount"), z), StringEntry((T + "_debug"), (((((toString(z) + "-") + toString(Q)) + " ScriptTransfer(i.caller, p=") + toString(z)) + ", unit)")), ScriptTransfer(u.caller, z, unit), BooleanEntry((T + "_stop"), true)] | |
248 | 248 | else [StringEntry(G, makeString(L, d)), StringEntry((T + "_round"), T), IntegerEntry((T + "_LastRandonNumber"), Z), StringEntry((T + "_playerCard"), B), StringEntry((T + "_casinoCard"), C), IntegerEntry((T + "_betAmount"), z), BooleanEntry((T + "_stop"), true)] | |
249 | 249 | } | |
250 | 250 | } | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | @Verifier(as) | |
255 | 255 | func at () = sigVerify(as.bodyBytes, as.proofs[0], as.senderPublicKey) | |
256 | 256 |
github/deemru/w8io/169f3d6 61.78 ms ◑