tx · 4bHKND1FAGGeVvp12T25hd9P3TsgePqhi3JToEsM1C1C 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd: -0.10000000 Waves 2021.12.01 02:18 [1814423] smart account 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd > SELF 0.00000000 Waves
{ "type": 13, "id": "4bHKND1FAGGeVvp12T25hd9P3TsgePqhi3JToEsM1C1C", "fee": 10000000, "feeAssetId": null, "timestamp": 1638314428752, "version": 1, "sender": "3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd", "senderPublicKey": "7Hi4o6vBstRs79NMVMjEove52dmP87RAcvNDAXN8C4Wi", "proofs": [ "3e1vFJoRoCD3m9w8sjUQgqaN8JLXrEZpqVR2d1jbeQG6LHXEGMhJ6yAWN18VUeAAJQijzsJ9HY1BLB8dZC2kuqzk" ], "script": "base64:AAIFAAAAAAAAA+cIAhIDCgEIEgMKAQgaDAoCYTESBmNhc2lubxoLCgJhMhIFV0FWRVMaDAoCYTMSBm1heEJldBoPCgJhNBIJc2VwYXJhdG9yGhAKAmE1EgpnZXROZXdEZWNrGhQKAmE2Eg5nZXRTaXhOZXdEZWNrcxoNCgJhNxIHZ2V0RGVjaxoKCgJhOBIEZGVjaxoVCgJhORIPZ2V0UmFuZG9tTnVtYmVyGgsKAmIxEgVzYWx0MRoLCgJiMhIFc2FsdDIaEgoCYjMSDGFuc3dlcnNDb3VudBoKCgJiNBIEaGFzaBoLCgJiNRIFaW5kZXgaCgoCYjYSBHJhbmQaHQoCYjcSF2dldFByZXZpb3VzUmFuZG9tTnVtYmVyGg0KAmI4EgdhZGRyZXNzGg0KAmI5EgckbWF0Y2gwGhUKAmMxEg9nZXRBbW91bnRPclplcm8aCgoCYzISBHRoaXMaCQoCYzMSA2tleRoQCgJjNBIKZ2V0UGF5bWVudBoJCgJjNRIDcG10GhIKAmM2EgxnZXRDYXJkVmFsdWUaEAoCYzcSCnN0cmluZ0NhcmQaDwoCYzgSCWdld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AAMwN0MJAARMAAAAAgIAAAADMDhDCQAETAAAAAICAAAAAzA5QwkABEwAAAACAgAAAAMxMEMJAARMAAAAAgIAAAADMTFDCQAETAAAAAICAAAAAzEyQwkABEwAAAACAgAAAAMxM0MJAARMAAAAAgIAAAADMDFECQAETAAAAAICAAAAAzAyRAkABEwAAAACAgAAAAMwM0QJAARMAAAAAgIAAAADMDRECQAETAAAAAICAAAAAzA1RAkABEwAAAACAgAAAAMwNkQJAARMAAAAAgIAAAADMDdECQAETAAAAAICAAAAAzA4RAkABEwAAAACAgAAAAMwOUQJAARMAAAAAgIAAAADMTBECQAETAAAAAICAAAAAzExRAkABEwAAAACAgAAAAMxMkQJAARMAAAAAgIAAAADMTNECQAETAAAAAICAAAAAzAxSAkABEwAAAACAgAAAAMwMkgJAARMAAAAAgIAAAADMDNICQAETAAAAAICAAAAAzA0SAkABEwAAAACAgAAAAMwNUgJAARMAAAAAgIAAAADMDZICQAETAAAAAICAAAAAzA3SAkABEwAAAACAgAAAAMwOEgJAARMAAAAAgIAAAADMDlICQAETAAAAAICAAAAAzEwSAkABEwAAAACAgAAAAMxMUgJAARMAAAAAgIAAAADMTJICQAETAAAAAICAAAAAzEzSAkABEwAAAACAgAAAAMwMVMJAARMAAAAAgIAAAADMDJTCQAETAAAAAICAAAAAzAzUwkABEwAAAACAgAAAAMwNFMJAARMAAAAAgIAAAADMDVTCQAETAAAAAICAAAAAzA2UwkABEwAAAACAgAAAAMwN1MJAARMAAAAAgIAAAADMDhTCQAETAAAAAICAAAAAzA5UwkABEwAAAACAgAAAAMxMFMJAARMAAAAAgIAAAADMTFTCQAETAAAAAICAAAAAzEyUwkABEwAAAACAgAAAAMxM1MFAAAAA25pbAEAAAACYTYAAAAACQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgkBAAAAAmE1AAAAAAkBAAAAAmE1AAAAAAkBAAAAAmE1AAAAAAkBAAAAAmE1AAAAAAkBAAAAAmE1AAAAAAkBAAAAA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W5nIHRoaXMgcm91bmQDAwkAAAAAAAACBQAAAAJmNwUAAAACZDIJAAAAAAAAAgUAAAACZjcFAAAAAmExBwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAJmOAkAAaQAAAABBQAAAAJnMQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAAmcxBQAAAAR1bml0BQAAAANuaWwDAwkAAAAAAAACBQAAAAJmNwUAAAACZDIJAAAAAAAAAgUAAAACZjcFAAAAAmY5BwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAJmOAkAAaQAAAABCQAAaAAAAAIFAAAAAmcxAAAAAAAAAAACCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACBQAAAAJnMQAAAAAAAAAAAgUAAAAEdW5pdAUAAAADbmlsCQAAAgAAAAECAAAAFllvdSBhcmUgbm90IHRoZSB3aW5uZXIAAAABAAAAAnR4AQAAAAJnMgAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5zxq/jA==", "chainId": 84, "height": 1814423, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8DmR7fMpJpr8AjtWvktZVTHYktvguFRPBxRLjsi34sHS Next: 9o1a7zFpmGsNr6sudj4UnE65WzvjqBksAbaGXfwgNBMY Full:
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,v) = { | |
45 | 45 | let r = getInteger(u, v) | |
46 | 46 | if ($isInstanceOf(r, "Int")) | |
47 | 47 | then { | |
48 | 48 | let w = r | |
49 | 49 | w | |
50 | 50 | } | |
51 | 51 | else 0 | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func x (y) = if ((size(y.payments) == 0)) | |
56 | 56 | then throw("Payment must be attached") | |
57 | 57 | else { | |
58 | 58 | let z = y.payments[0] | |
59 | 59 | if (isDefined(z.assetId)) | |
60 | 60 | then throw("This function accepts WAVES tokens only") | |
61 | 61 | else z.amount | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func A (B) = { | |
66 | 66 | let C = parseIntValue(take(B, 2)) | |
67 | 67 | if ((C == 1)) | |
68 | 68 | then 20 | |
69 | 69 | else C | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func D (E,F,G,a) = { | |
74 | 74 | let C = A(E) | |
75 | 75 | let H = A(F) | |
76 | 76 | if ((C > H)) | |
77 | 77 | then G | |
78 | 78 | else a | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func I (u,J) = if (isDefined(getString(u, J))) | |
83 | 83 | then { | |
84 | 84 | let K = getStringValue(u, J) | |
85 | 85 | let h = split(K, d) | |
86 | 86 | g(h) | |
87 | 87 | } | |
88 | 88 | else f() | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func L (M,G,h) = { | |
92 | 92 | let N = g(h) | |
93 | 93 | let O = i(((M + makeString(N, d)) + G), p(G), size(N)) | |
94 | 94 | let P = N[(O % size(N))] | |
95 | 95 | let Q = removeByIndex(N, (O % size(N))) | |
96 | 96 | $Tuple3(P, O, Q) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | @Callable(y) | |
101 | 101 | func bet (R) = { | |
102 | 102 | let G = toBase58String(y.caller.bytes) | |
103 | 103 | let M = R | |
104 | 104 | let C = x(y) | |
105 | 105 | let S = (R + "_sumBets") | |
106 | 106 | let T = t(c2, S) | |
107 | 107 | let U = { | |
108 | 108 | let r = getInteger(c2, (R + "_drawSequence")) | |
109 | 109 | if ($isInstanceOf(r, "Int")) | |
110 | 110 | then { | |
111 | 111 | let w = r | |
112 | 112 | (w + 1) | |
113 | 113 | } | |
114 | 114 | else 0 | |
115 | 115 | } | |
116 | 116 | let V = { | |
117 | 117 | let r = getString(c2, (R + "_player")) | |
118 | 118 | if ($isInstanceOf(r, "String")) | |
119 | 119 | then { | |
120 | 120 | let w = r | |
121 | 121 | w | |
122 | 122 | } | |
123 | 123 | else unit | |
124 | 124 | } | |
125 | 125 | let W = { | |
126 | 126 | let r = getInteger(c2, (R + "_initialBet")) | |
127 | 127 | if ($isInstanceOf(r, "Int")) | |
128 | 128 | then { | |
129 | 129 | let w = r | |
130 | 130 | w | |
131 | 131 | } | |
132 | 132 | else C | |
133 | 133 | } | |
134 | 134 | let J = (M + "_available") | |
135 | 135 | let X = (T + C) | |
136 | 136 | if (if (isDefined(getBoolean(c2, (R + "_stop")))) | |
137 | 137 | then true | |
138 | 138 | else isDefined(getString(c2, R))) | |
139 | 139 | then throw("This round is already played") | |
140 | 140 | else if (if (isDefined(getString(c2, (R + "_player")))) | |
141 | 141 | then (V != G) | |
142 | 142 | else false) | |
143 | 143 | then throw("This is not your game") | |
144 | 144 | else if ((X > c)) | |
145 | 145 | then throw(((("Maximum amount of bets for round " + toString(c)) + ". With your bet it's ") + toString(X))) | |
146 | 146 | else if ((W != C)) | |
147 | 147 | then throw(((("Initial bet not maching original:" + toString(W)) + ", actual:") + toString(C))) | |
148 | 148 | else { | |
149 | 149 | let Y = I(c2, J) | |
150 | 150 | let Z = L(M, G, Y) | |
151 | 151 | let E = Z._1 | |
152 | 152 | let aa = Z._2 | |
153 | 153 | let ab = Z._3 | |
154 | 154 | let ac = L(M, G, ab) | |
155 | 155 | let F = ac._1 | |
156 | 156 | let ad = ac._2 | |
157 | 157 | let N = ac._3 | |
158 | 158 | if ((A(E) == A(F))) | |
159 | 159 | then [StringEntry(J, makeString(N, d)), StringEntry((R + "_player"), G), IntegerEntry((R + "_initialBet"), W), StringEntry((M + "_salt_debug"), M), IntegerEntry((M + "_LastRandonNumber"), ad), IntegerEntry((R + "_sumBets"), X), StringEntry((M + "_playerCard"), E), StringEntry((M + "_casinoCard"), F), IntegerEntry((R + "_drawSequence"), (U + 1))] | |
160 | 160 | else { | |
161 | 161 | let ae = D(E, F, G, a) | |
162 | 162 | [StringEntry(J, makeString(N, d)), StringEntry((R + "_player"), G), IntegerEntry((R + "_initialBet"), W), StringEntry((M + "_salt_debug"), M), IntegerEntry((M + "_LastRandonNumber"), ad), IntegerEntry((R + "_sumBets"), X), StringEntry((M + "_playerCard"), E), StringEntry((M + "_casinoCard"), F), BooleanEntry((R + "_stop"), true), StringEntry((R + "_winner"), ae)] | |
163 | 163 | } | |
164 | 164 | } | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Callable(y) | |
170 | 170 | func withdraw (R) = { | |
171 | 171 | let G = toBase58String(y.caller.bytes) | |
172 | 172 | let M = ((R + "_") + G) | |
173 | 173 | let af = (R + "_withdraw") | |
174 | 174 | if (isDefined(getString(c2, af))) | |
175 | 175 | then throw("You have already got your prize") | |
176 | 176 | else if (!(isDefined(getString(c2, (R + "_winner"))))) | |
177 | 177 | then throw("There is no winner, it was a draw") | |
178 | 178 | else { | |
179 | 179 | let ae = getStringValue(c2, (R + "_winner")) | |
180 | 180 | let ag = getStringValue(c2, (R + "_player")) | |
181 | 181 | let ah = getIntegerValue(c2, (R + "_sumBets")) | |
182 | 182 | if ((ah == 0)) | |
183 | 183 | then throw("You won nothing this round") | |
184 | 184 | else if (if ((ae == G)) | |
185 | 185 | then (ae == a) | |
186 | 186 | else false) | |
187 | 187 | then [StringEntry(af, toString(ah)), ScriptTransfer(y.caller, ah, unit)] | |
188 | 188 | else if (if ((ae == G)) | |
189 | 189 | then (ae == ag) | |
190 | 190 | else false) | |
191 | 191 | then [StringEntry(af, toString((ah * 2))), ScriptTransfer(y.caller, (ah * 2), unit)] | |
192 | 192 | else throw("You are not the winner") | |
193 | 193 | } | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | @Verifier(ai) | |
198 | 198 | func aj () = sigVerify(ai.bodyBytes, ai.proofs[0], ai.senderPublicKey) | |
199 | 199 |
github/deemru/w8io/026f985 33.10 ms ◑