tx · 8SQjJKyJzYLw16Caj1HzR9DjTgmvy8sjJQ17Hwrtv4YV 3N6yFJ5Z8NUUQvfGGMLp5efmevRRtTgQuun: -0.01400000 Waves 2019.09.08 14:34 [667049] smart account 3N6yFJ5Z8NUUQvfGGMLp5efmevRRtTgQuun > SELF 0.00000000 Waves
{ "type": 13, "id": "8SQjJKyJzYLw16Caj1HzR9DjTgmvy8sjJQ17Hwrtv4YV", "fee": 1400000, "feeAssetId": null, "timestamp": 1567942459964, "version": 1, "sender": "3N6yFJ5Z8NUUQvfGGMLp5efmevRRtTgQuun", "senderPublicKey": "7uRSDXQUkUS7719CDA4wXghhzsWrF22gb18FGDPZyA6P", "proofs": [ "3wcCwpynyNCTYt5Crprzx8tj7s3fM7hDHz2gG3HvCgYrihxJ2cLBsCrPp8jQod5qWBXAmYPD7m4gKGec8XAeikd4" ], "script": "base64:AAIDAAAAAAAAAAAAAAASAAAAAAlXaW5TZXJ2ZXIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM045WG55UHBXeFlvaEtIN3o1ZEV1cThycG5vYnB5elByekUAAAAAB1dBVkVMRVQJAABoAAAAAgkAAGgAAAACAAAAAAAAAABkAAAAAAAAAAPoAAAAAAAAAAPoAAAAAApDT01NSVNTSU9OCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAABQUAAAAHV0FWRUxFVAAAAAAAAAAD6AAAAAAOVGlja2V0c1BlcldhdmUAAAAAAAAAAGQAAAAAC0NVUlJFTlRHQU1FAgAAAA0kQ1VSUkVOVF9HQU1FAAAAAA9HQU1FU0NPVU5URVJLRVkCAAAACSRHQU1FX05VTQAAAAAKTEFTVFRJQ0tFVAIAAAAMJExBU1RfVElDS0VUAAAAAARCQU5LAgAAAAokR0FNRV9CQU5LAQAAAA5nZXRQbGF5ZXJzTGlzdAAAAAIAAAAGZ2FtZUlkAAAADWN1cnJlbnRQbGF5ZXIEAAAAEHBsYXllcnNQcmVzZW50ZWQJ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QW10BQAAABVuZXdUb3RhbFBsYXllckJldHNBbXQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGZ2FtZUlkAgAAAAhfcGxheWVycwkBAAAADmdldFBsYXllcnNMaXN0AAAAAgUAAAAGZ2FtZUlkBQAAABBwbGF5ZXJBZGRyZXNzU3RyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAApMQVNUVElDS0VUCQEAAAANZ2V0TGFzdFRpY2tldAAAAAEFAAAACnBheW1lbnRBbXQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAZnYW1lSWQCAAAAAV8FAAAABEJBTksFAAAADm5ld0JhbmtCYWxhbmNlBQAAAANuaWwEAAAAC3RvV2luU2VydmVyCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACVdpblNlcnZlcgUAAAAKcGF5bWVudEFtdAUAAAAEdW5pdAUAAAADbmlsCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQUAAAAHYmV0RGF0YQkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAALdG9XaW5TZXJ2ZXIAAAAAuEFOFA==", "chainId": 84, "height": 667049, "spentComplexity": 0 } View: original | compacted Prev: BnCWwfp8RGwVhDjYBjKgkznwpjFezeuYnCbqB4hb4vqg Next: 9tuH1rfxj1xbC8fZg6b8Q5qF2UakJNGjjYkLnZH9HsnA Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = addressFromStringValue("3N9XnyPpWxYohKH7z5dEuq8rpnobpyzPrzE") | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = ((100 * 1000) * 1000) | |
7 | 7 | ||
8 | - | let c = (( | |
8 | + | let c = ((5 * b) / 1000) | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = 100 | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = "$CURRENT_GAME" | |
13 | 13 | ||
14 | - | let f = "$ | |
14 | + | let f = "$GAME_NUM" | |
15 | 15 | ||
16 | 16 | let g = "$LAST_TICKET" | |
17 | 17 | ||
18 | 18 | let h = "$GAME_BANK" | |
19 | 19 | ||
20 | 20 | func i (j,k) = { | |
21 | - | let l = getIntegerValue(b, g) | |
22 | - | let m = sigVerify(toBytes(j), k, a) | |
23 | - | if (m) | |
24 | - | then { | |
25 | - | let n = (toInt(sha256(k)) % l) | |
26 | - | if ((0 > n)) | |
27 | - | then ((-1 * n) + 1) | |
28 | - | else (n + 1) | |
29 | - | } | |
30 | - | else throw("Invalid RSA signature") | |
21 | + | let l = isDefined(getString(this, (j + "_players"))) | |
22 | + | if (!(l)) | |
23 | + | then k | |
24 | + | else if (isDefined(getString(this, (((j + "_") + k) + "_tickets")))) | |
25 | + | then getStringValue(this, (j + "_players")) | |
26 | + | else ((getStringValue(this, (j + "_players")) + "_") + k) | |
31 | 27 | } | |
32 | 28 | ||
33 | 29 | ||
34 | - | func o (p,q) = { | |
35 | - | let r = split(p, "_") | |
36 | - | if (if ((q >= parseIntValue(r[0]))) | |
37 | - | then (parseIntValue(r[1]) >= q) | |
38 | - | else false) | |
39 | - | then true | |
40 | - | else if (if ((q >= parseIntValue(r[2]))) | |
41 | - | then (parseIntValue(r[3]) >= q) | |
42 | - | else false) | |
43 | - | then true | |
44 | - | else if (if ((q >= parseIntValue(r[4]))) | |
45 | - | then (parseIntValue(r[5]) >= q) | |
46 | - | else false) | |
47 | - | then true | |
48 | - | else if (if ((q >= parseIntValue(r[6]))) | |
49 | - | then (parseIntValue(r[7]) >= q) | |
50 | - | else false) | |
51 | - | then true | |
52 | - | else false | |
30 | + | func m () = { | |
31 | + | let n = isDefined(getInteger(this, g)) | |
32 | + | if (!(n)) | |
33 | + | then 0 | |
34 | + | else getIntegerValue(this, g) | |
53 | 35 | } | |
54 | 36 | ||
55 | 37 | ||
56 | - | func s (j,q,t,u,v) = { | |
57 | - | let w = (((u - v) * 90) / 100) | |
58 | - | let x = [ScriptTransfer(addressFromStringValue(t), w, unit)] | |
59 | - | let y = [DataEntry((j + "_result"), toString(q)), DataEntry((j + "_winner"), t), DataEntry((j + "_winAmt"), w)] | |
60 | - | ScriptResult(WriteSet(y), TransferSet(x)) | |
38 | + | func o (j,p) = { | |
39 | + | let q = { | |
40 | + | let r = getInteger(this, (((j + "_") + p) + "_betsCount")) | |
41 | + | if ($isInstanceOf(r, "Int")) | |
42 | + | then { | |
43 | + | let s = r | |
44 | + | s | |
45 | + | } | |
46 | + | else 0 | |
47 | + | } | |
48 | + | q | |
61 | 49 | } | |
62 | 50 | ||
63 | 51 | ||
64 | - | @Callable(z) | |
65 | - | func generateResult (j,A) = { | |
66 | - | let B = getStringValue(b, f) | |
67 | - | if ((B == j)) | |
52 | + | func t (j,p,u) = { | |
53 | + | let v = m() | |
54 | + | let w = (u / b) | |
55 | + | let x = (v + 1) | |
56 | + | let y = ((x + (w * d)) - 1) | |
57 | + | let z = toString(x) | |
58 | + | let A = toString(y) | |
59 | + | let B = isDefined(getString(this, (((j + "_") + p) + "_tickets"))) | |
60 | + | if (B) | |
68 | 61 | then { | |
69 | - | let k = fromBase58String(A) | |
70 | - | let q = i(j, k) | |
71 | - | let C = getStringValue(b, (j + "_players")) | |
72 | - | let D = split(C, "_") | |
73 | - | let u = getIntegerValue(b, h) | |
74 | - | if (o(getStringValue(b, (((j + "_") + D[0]) + "_tickets")), q)) | |
75 | - | then s(j, q, D[0], u, getIntegerValue(b, (((j + "_") + D[0]) + "_totalBetsAmt"))) | |
76 | - | else if (o(getStringValue(b, (((j + "_") + D[1]) + "_tickets")), q)) | |
77 | - | then s(j, q, D[1], u, getIntegerValue(b, (((j + "_") + D[1]) + "_totalBetsAmt"))) | |
78 | - | else if (o(getStringValue(b, (((j + "_") + D[2]) + "_tickets")), q)) | |
79 | - | then s(j, q, D[2], u, getIntegerValue(b, (((j + "_") + D[2]) + "_totalBetsAmt"))) | |
80 | - | else if (o(getStringValue(b, (((j + "_") + D[3]) + "_tickets")), q)) | |
81 | - | then s(j, q, D[3], u, getIntegerValue(b, (((j + "_") + D[3]) + "_totalBetsAmt"))) | |
82 | - | else if (o(getStringValue(b, (((j + "_") + D[4]) + "_tickets")), q)) | |
83 | - | then s(j, q, D[4], u, getIntegerValue(b, (((j + "_") + D[4]) + "_totalBetsAmt"))) | |
84 | - | else throw("Error") | |
62 | + | let C = getStringValue(this, (((j + "_") + p) + "_tickets")) | |
63 | + | let D = o(j, p) | |
64 | + | let E = split(C, "_") | |
65 | + | if ((D == 1)) | |
66 | + | then (((((((E[0] + "_") + E[1]) + "_") + z) + "_") + A) + "_0_0_0_0") | |
67 | + | else if ((D == 2)) | |
68 | + | then ((((((((((E[0] + "_") + E[1]) + "_") + E[2]) + "_") + E[3]) + z) + "_") + A) + "_0_0") | |
69 | + | else if ((D == 3)) | |
70 | + | then ((((((((((((E[0] + "_") + E[1]) + "_") + E[2]) + "_") + E[3]) + E[4]) + "_") + E[5]) + z) + "_") + A) | |
71 | + | else throw("Error, bid limit exceeded") | |
85 | 72 | } | |
86 | - | else throw(((("Current Game is " + B) + ", but not ") + j)) | |
73 | + | else (((z + "_") + A) + "_0_0_0_0_0_0") | |
74 | + | } | |
75 | + | ||
76 | + | ||
77 | + | func F (u) = { | |
78 | + | let v = m() | |
79 | + | let w = (u / b) | |
80 | + | (v + (w * d)) | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | func G (j,H) = { | |
85 | + | let I = { | |
86 | + | let r = getInteger(this, f) | |
87 | + | if ($isInstanceOf(r, "Int")) | |
88 | + | then { | |
89 | + | let s = r | |
90 | + | s | |
91 | + | } | |
92 | + | else 0 | |
93 | + | } | |
94 | + | if ((j == H)) | |
95 | + | then (I + 1) | |
96 | + | else I | |
97 | + | } | |
98 | + | ||
99 | + | ||
100 | + | func J (H) = { | |
101 | + | let K = isDefined(getString(this, e)) | |
102 | + | if (!(K)) | |
103 | + | then H | |
104 | + | else if ((getStringValue(this, e) == "")) | |
105 | + | then H | |
106 | + | else getStringValue(this, e) | |
107 | + | } | |
108 | + | ||
109 | + | ||
110 | + | func L (H) = { | |
111 | + | let j = J(H) | |
112 | + | let M = isDefined(getString(this, (j + "_result"))) | |
113 | + | if (M) | |
114 | + | then H | |
115 | + | else j | |
116 | + | } | |
117 | + | ||
118 | + | ||
119 | + | func N (j,u) = { | |
120 | + | let O = { | |
121 | + | let r = getInteger(this, ((j + "_") + h)) | |
122 | + | if ($isInstanceOf(r, "Int")) | |
123 | + | then { | |
124 | + | let s = r | |
125 | + | s | |
126 | + | } | |
127 | + | else 0 | |
128 | + | } | |
129 | + | (O + u) | |
130 | + | } | |
131 | + | ||
132 | + | ||
133 | + | func P (j,p,u) = { | |
134 | + | let Q = { | |
135 | + | let r = getInteger(this, (((j + "_") + p) + "_totalBetsAmt")) | |
136 | + | if ($isInstanceOf(r, "Int")) | |
137 | + | then { | |
138 | + | let s = r | |
139 | + | s | |
140 | + | } | |
141 | + | else 0 | |
142 | + | } | |
143 | + | (Q + u) | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | @Callable(R) | |
148 | + | func resetGameData (j) = { | |
149 | + | let S = toBase58String(R.callerPublicKey) | |
150 | + | let T = addressFromPublicKey(fromBase58String(S)) | |
151 | + | let p = toString(T) | |
152 | + | let U = [DataEntry(e, ""), DataEntry(f, 0), DataEntry((((j + "_") + p) + "_tickets"), ""), DataEntry((((j + "_") + p) + "_betsCount"), 0), DataEntry((((j + "_") + p) + "_totalBetsAmt"), 0), DataEntry(((j + "_") + h), 0), DataEntry((j + "_players"), ""), DataEntry(g, 0)] | |
153 | + | WriteSet(U) | |
154 | + | } | |
155 | + | ||
156 | + | ||
157 | + | ||
158 | + | @Callable(R) | |
159 | + | func bet () = { | |
160 | + | let H = toBase58String(R.transactionId) | |
161 | + | let j = L(H) | |
162 | + | let I = G(j, H) | |
163 | + | let V = extract(R.payment) | |
164 | + | let u = V.amount | |
165 | + | let W = isDefined(V.assetId) | |
166 | + | let X = isDefined(V.assetId) | |
167 | + | let S = toBase58String(R.callerPublicKey) | |
168 | + | let T = addressFromPublicKey(fromBase58String(S)) | |
169 | + | if (W) | |
170 | + | then throw("Bet amount must be in Waves") | |
171 | + | else if (X) | |
172 | + | then throw("Transaction's fee must be in Waves") | |
173 | + | else { | |
174 | + | let p = toString(T) | |
175 | + | let Y = N(j, u) | |
176 | + | let Z = P(j, p, u) | |
177 | + | let aa = [DataEntry(e, j), DataEntry(f, I), DataEntry((((j + "_") + p) + "_tickets"), t(j, p, u)), DataEntry((((j + "_") + p) + "_betsCount"), (o(j, p) + 1)), DataEntry((((j + "_") + p) + "_totalBetsAmt"), Z), DataEntry((j + "_players"), i(j, p)), DataEntry(g, F(u)), DataEntry(((j + "_") + h), Y)] | |
178 | + | let ab = [ScriptTransfer(a, u, unit)] | |
179 | + | ScriptResult(WriteSet(aa), TransferSet(ab)) | |
180 | + | } | |
87 | 181 | } | |
88 | 182 | ||
89 | 183 |
github/deemru/w8io/169f3d6 32.65 ms ◑