tx · 5rpV7mj7Dq2mibG5SuoPWwVDCS3UxJ54ddBUA3DFag2M 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL: -0.02100000 Waves 2022.11.20 01:33 [2324609] smart account 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL > SELF 0.00000000 Waves
{ "type": 13, "id": "5rpV7mj7Dq2mibG5SuoPWwVDCS3UxJ54ddBUA3DFag2M", "fee": 2100000, "feeAssetId": null, "timestamp": 1668897234854, "version": 2, "chainId": 84, "sender": "3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL", "senderPublicKey": "BefhVEanzhrtdYfeWquaoSsMZw3BEaEZZB86Kosqw7Qb", "proofs": [ "2ShK4Bt71Di1x6tfRZEmZCmY7yGCppH7CVoh8Y1Xo7C3qnSFweSXS1RBLS8iNJciVQfnSsDDzyPoW5CRxFFiEe5U" ], "script": "base64:AAIFAAAAAAAAACAIAhIDCgEBEgMKAQESCAoGCAgICAgIEgMKAQgSAwoBCAAAACEAAAAABWFkbWluAgAAACw3VHQ3NHI4UjdhdVRCVGQ2ckpNQTRxWXI5V0RXamMyU1VISFNyUk13OUJycwAAAAAOcmVzdWx0Q29udHJhY3QCAAAAIzNOQ25FVU5uSlh6NTdRV0FNWW5aQnUzU3FXNHR4b2cxWGVEAAAAAAxiZXRBbW91bnRLZXkCAAAAEGdsb2JhbF9iZXRBbW91bnQAAAAAC2RlYWRsaW5lS2V5AgAAABFnbG9iYWxfZGVhZGxpbmVfaAAAAAAFc2NhbGUAAAAAAAX14QAAAAAAA2ZlZQAAAAAAAAAA+gAAAAAIZmVlc2NhbGUAAAAAAAAAJxAAAAAACWtleXNHcm91cAkABEwAAAACAgAAAApHcm91cEEtMXN0CQAETAAAAAICAAAACkdyb3VwQS0ybmQJAARMAAAAAgIAAAAKR3JvdXBCLTFzdAkABEwAAAACAgAAAApHcm91cEItMm5kCQAETAAAAAICAAAACkdyb3VwQy0xc3QJAARMAAAAAgIAAAAKR3JvdXB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AAB2JvbnVzZXMEAAAABXNjb3JlCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAACmdyb3VwU2NvcmUFAAAACW9jdG9TY29yZQUAAAAMcXVhcnRlclNjb3JlBQAAAAlzZW1pU2NvcmUFAAAACmZpbmFsU2NvcmUJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGU2NvcmUgCQABpAAAAAEFAAAABXNjb3JlAgAAAAwsIG1heEJvbnVzOiAJAAGkAAAAAQUAAAAIbWF4Qm9udXMAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQaGWfw=", "height": 2324609, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8swihgt33e3E7pFdprPwhvyxu7mS7JmSDeEp4gmsZeMa Next: BRhBqkEcHgCZvG9Z9v4QkG7Rv4B2AGRw94s53VqkzqcL Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | ||
24 | 24 | let keysSemi = ["Semi1-winner", "Semi2-winner"] | |
25 | 25 | ||
26 | - | let | |
26 | + | let keyFinal = "Final-winner" | |
27 | 27 | ||
28 | 28 | func getAssetString (assetId) = match assetId { | |
29 | 29 | case b: ByteVector => | |
104 | 104 | func groupsAddressKeys (address) = [combo(address, keysGroup[0]), combo(address, keysGroup[1]), combo(address, keysGroup[2]), combo(address, keysGroup[3]), combo(address, keysGroup[4]), combo(address, keysGroup[5]), combo(address, keysGroup[6]), combo(address, keysGroup[7]), combo(address, keysGroup[8]), combo(address, keysGroup[9]), combo(address, keysGroup[10]), combo(address, keysGroup[11]), combo(address, keysGroup[12]), combo(address, keysGroup[13]), combo(address, keysGroup[14]), combo(address, keysGroup[15])] | |
105 | 105 | ||
106 | 106 | ||
107 | + | func octoAddressKeys (address) = [combo(address, keysOcto[0]), combo(address, keysOcto[1]), combo(address, keysOcto[2]), combo(address, keysOcto[3]), combo(address, keysOcto[4]), combo(address, keysOcto[5]), combo(address, keysOcto[6]), combo(address, keysOcto[7])] | |
108 | + | ||
109 | + | ||
110 | + | func quarterAddressKeys (address) = [combo(address, keysQuarter[0]), combo(address, keysQuarter[1]), combo(address, keysQuarter[2]), combo(address, keysQuarter[3])] | |
111 | + | ||
112 | + | ||
113 | + | func semiAddressKeys (address) = [combo(address, keysSemi[0]), combo(address, keysSemi[1])] | |
114 | + | ||
115 | + | ||
107 | 116 | func evalGroups (address) = { | |
108 | - | let | |
109 | - | let $l = | |
117 | + | let addrKeys = groupsAddressKeys(address) | |
118 | + | let $l = addrKeys | |
110 | 119 | let $s = size($l) | |
111 | 120 | let $acc0 = 0 | |
112 | 121 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
118 | 127 | else throw("List size exceeds 16") | |
119 | 128 | ||
120 | 129 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
130 | + | } | |
131 | + | ||
132 | + | ||
133 | + | func evalOcto (address) = { | |
134 | + | let addrKeys = octoAddressKeys(address) | |
135 | + | let $l = addrKeys | |
136 | + | let $s = size($l) | |
137 | + | let $acc0 = 0 | |
138 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
139 | + | then $a | |
140 | + | else checkHandler($a, $l[$i]) | |
141 | + | ||
142 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
143 | + | then $a | |
144 | + | else throw("List size exceeds 8") | |
145 | + | ||
146 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | func evalQuarter (address) = { | |
151 | + | let addrKeys = quarterAddressKeys(address) | |
152 | + | let $l = addrKeys | |
153 | + | let $s = size($l) | |
154 | + | let $acc0 = 0 | |
155 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
156 | + | then $a | |
157 | + | else checkHandler($a, $l[$i]) | |
158 | + | ||
159 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
160 | + | then $a | |
161 | + | else throw("List size exceeds 4") | |
162 | + | ||
163 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4) | |
164 | + | } | |
165 | + | ||
166 | + | ||
167 | + | func evalSemi (address) = { | |
168 | + | let addrKeys = semiAddressKeys(address) | |
169 | + | let $l = addrKeys | |
170 | + | let $s = size($l) | |
171 | + | let $acc0 = 0 | |
172 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
173 | + | then $a | |
174 | + | else checkHandler($a, $l[$i]) | |
175 | + | ||
176 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
177 | + | then $a | |
178 | + | else throw("List size exceeds 2") | |
179 | + | ||
180 | + | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
181 | + | } | |
182 | + | ||
183 | + | ||
184 | + | func evalFinal (address) = { | |
185 | + | let addrKey = combo(address, keyFinal) | |
186 | + | let baseKey = keyFinal | |
187 | + | let resultR = tryGetResult(baseKey) | |
188 | + | if ((resultR == resultR)) | |
189 | + | then { | |
190 | + | let guessR = tryGetString(addrKey) | |
191 | + | if ((guessR == guessR)) | |
192 | + | then if ((resultR == guessR)) | |
193 | + | then 1 | |
194 | + | else 0 | |
195 | + | else throw("Strict value is not equal to itself.") | |
196 | + | } | |
197 | + | else throw("Strict value is not equal to itself.") | |
121 | 198 | } | |
122 | 199 | ||
123 | 200 | ||
191 | 268 | @Callable(i) | |
192 | 269 | func evalScore (address) = { | |
193 | 270 | let groupScore = evalGroups(address) | |
194 | - | throw(("Score " + toString(groupScore))) | |
271 | + | let groupBonus = if ((groupScore == 8)) | |
272 | + | then 150 | |
273 | + | else 100 | |
274 | + | let octoScore = evalOcto(address) | |
275 | + | let octoBonus = if ((octoScore == 8)) | |
276 | + | then 120 | |
277 | + | else 100 | |
278 | + | let quarterScore = evalQuarter(address) | |
279 | + | let quarterBonus = if ((quarterScore == 4)) | |
280 | + | then 125 | |
281 | + | else 100 | |
282 | + | let semiScore = evalSemi(address) | |
283 | + | let semiBonus = if ((semiScore == 2)) | |
284 | + | then 150 | |
285 | + | else 100 | |
286 | + | let finalScore = evalFinal(address) | |
287 | + | let finalBonus = if ((finalScore == 1)) | |
288 | + | then 200 | |
289 | + | else 100 | |
290 | + | let bonuses = [groupBonus, octoBonus, quarterScore, semiBonus, finalBonus] | |
291 | + | let maxBonus = max(bonuses) | |
292 | + | let score = ((((groupScore + octoScore) + quarterScore) + semiScore) + finalScore) | |
293 | + | throw(((("Score " + toString(score)) + ", maxBonus: ") + toString(maxBonus))) | |
195 | 294 | } | |
196 | 295 | ||
197 | 296 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let admin = "7Tt74r8R7auTBTd6rJMA4qYr9WDWjc2SUHHSrRMw9Brs" | |
5 | 5 | ||
6 | 6 | let resultContract = "3NCnEUNnJXz57QWAMYnZBu3SqW4txog1XeD" | |
7 | 7 | ||
8 | 8 | let betAmountKey = "global_betAmount" | |
9 | 9 | ||
10 | 10 | let deadlineKey = "global_deadline_h" | |
11 | 11 | ||
12 | 12 | let scale = 100000000 | |
13 | 13 | ||
14 | 14 | let fee = 250 | |
15 | 15 | ||
16 | 16 | let feescale = 10000 | |
17 | 17 | ||
18 | 18 | let keysGroup = ["GroupA-1st", "GroupA-2nd", "GroupB-1st", "GroupB-2nd", "GroupC-1st", "GroupC-2nd", "GroupD-1st", "GroupD-2nd", "GroupE-1st", "GroupE-2nd", "GroupF-1st", "GroupF-2nd", "GroupG-1st", "GroupG-2nd", "GroupH-1st", "GroupH-2nd"] | |
19 | 19 | ||
20 | 20 | let keysOcto = ["Octo1-winner", "Octo2-winner", "Octo3-winner", "Octo4-winner", "Octo5-winner", "Octo6-winner", "Octo7-winner", "Octo8-winner"] | |
21 | 21 | ||
22 | 22 | let keysQuarter = ["Quarter1-winner", "Quarter2-winner", "Quarter3-winner", "Quarter4-winner"] | |
23 | 23 | ||
24 | 24 | let keysSemi = ["Semi1-winner", "Semi2-winner"] | |
25 | 25 | ||
26 | - | let | |
26 | + | let keyFinal = "Final-winner" | |
27 | 27 | ||
28 | 28 | func getAssetString (assetId) = match assetId { | |
29 | 29 | case b: ByteVector => | |
30 | 30 | toBase58String(b) | |
31 | 31 | case _ => | |
32 | 32 | "WAVES" | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getAssetBytes (assetId) = if ((assetId == "WAVES")) | |
37 | 37 | then unit | |
38 | 38 | else fromBase58String(assetId) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func tryGetInteger (key) = match getInteger(this, key) { | |
42 | 42 | case i: Int => | |
43 | 43 | i | |
44 | 44 | case _ => | |
45 | 45 | 0 | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
50 | 50 | case b: Boolean => | |
51 | 51 | b | |
52 | 52 | case _ => | |
53 | 53 | false | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func tryGetString (key) = match getString(this, key) { | |
58 | 58 | case s: String => | |
59 | 59 | s | |
60 | 60 | case _ => | |
61 | 61 | "" | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func tryGetResult (key) = match getString(addressFromStringValue(resultContract), key) { | |
66 | 66 | case s: String => | |
67 | 67 | s | |
68 | 68 | case _ => | |
69 | 69 | "" | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func allow (callerPBK) = (toBase58String(callerPBK) == admin) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func isBet (address) = tryGetBoolean((address + "_betted")) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getBetAmount () = tryGetInteger(betAmountKey) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func getDeadLine () = tryGetInteger(deadlineKey) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func checkHandler (accum,keyStr) = { | |
86 | 86 | let baseKey = split(keyStr, "_")[1] | |
87 | 87 | let resultR = tryGetResult(baseKey) | |
88 | 88 | if ((resultR == resultR)) | |
89 | 89 | then { | |
90 | 90 | let guessR = tryGetString(keyStr) | |
91 | 91 | if ((guessR == guessR)) | |
92 | 92 | then (accum + (if ((resultR == guessR)) | |
93 | 93 | then 1 | |
94 | 94 | else 0)) | |
95 | 95 | else throw("Strict value is not equal to itself.") | |
96 | 96 | } | |
97 | 97 | else throw("Strict value is not equal to itself.") | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func combo (address,key) = ((address + "_") + key) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func groupsAddressKeys (address) = [combo(address, keysGroup[0]), combo(address, keysGroup[1]), combo(address, keysGroup[2]), combo(address, keysGroup[3]), combo(address, keysGroup[4]), combo(address, keysGroup[5]), combo(address, keysGroup[6]), combo(address, keysGroup[7]), combo(address, keysGroup[8]), combo(address, keysGroup[9]), combo(address, keysGroup[10]), combo(address, keysGroup[11]), combo(address, keysGroup[12]), combo(address, keysGroup[13]), combo(address, keysGroup[14]), combo(address, keysGroup[15])] | |
105 | 105 | ||
106 | 106 | ||
107 | + | func octoAddressKeys (address) = [combo(address, keysOcto[0]), combo(address, keysOcto[1]), combo(address, keysOcto[2]), combo(address, keysOcto[3]), combo(address, keysOcto[4]), combo(address, keysOcto[5]), combo(address, keysOcto[6]), combo(address, keysOcto[7])] | |
108 | + | ||
109 | + | ||
110 | + | func quarterAddressKeys (address) = [combo(address, keysQuarter[0]), combo(address, keysQuarter[1]), combo(address, keysQuarter[2]), combo(address, keysQuarter[3])] | |
111 | + | ||
112 | + | ||
113 | + | func semiAddressKeys (address) = [combo(address, keysSemi[0]), combo(address, keysSemi[1])] | |
114 | + | ||
115 | + | ||
107 | 116 | func evalGroups (address) = { | |
108 | - | let | |
109 | - | let $l = | |
117 | + | let addrKeys = groupsAddressKeys(address) | |
118 | + | let $l = addrKeys | |
110 | 119 | let $s = size($l) | |
111 | 120 | let $acc0 = 0 | |
112 | 121 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
113 | 122 | then $a | |
114 | 123 | else checkHandler($a, $l[$i]) | |
115 | 124 | ||
116 | 125 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
117 | 126 | then $a | |
118 | 127 | else throw("List size exceeds 16") | |
119 | 128 | ||
120 | 129 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
130 | + | } | |
131 | + | ||
132 | + | ||
133 | + | func evalOcto (address) = { | |
134 | + | let addrKeys = octoAddressKeys(address) | |
135 | + | let $l = addrKeys | |
136 | + | let $s = size($l) | |
137 | + | let $acc0 = 0 | |
138 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
139 | + | then $a | |
140 | + | else checkHandler($a, $l[$i]) | |
141 | + | ||
142 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
143 | + | then $a | |
144 | + | else throw("List size exceeds 8") | |
145 | + | ||
146 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | func evalQuarter (address) = { | |
151 | + | let addrKeys = quarterAddressKeys(address) | |
152 | + | let $l = addrKeys | |
153 | + | let $s = size($l) | |
154 | + | let $acc0 = 0 | |
155 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
156 | + | then $a | |
157 | + | else checkHandler($a, $l[$i]) | |
158 | + | ||
159 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
160 | + | then $a | |
161 | + | else throw("List size exceeds 4") | |
162 | + | ||
163 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4) | |
164 | + | } | |
165 | + | ||
166 | + | ||
167 | + | func evalSemi (address) = { | |
168 | + | let addrKeys = semiAddressKeys(address) | |
169 | + | let $l = addrKeys | |
170 | + | let $s = size($l) | |
171 | + | let $acc0 = 0 | |
172 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
173 | + | then $a | |
174 | + | else checkHandler($a, $l[$i]) | |
175 | + | ||
176 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
177 | + | then $a | |
178 | + | else throw("List size exceeds 2") | |
179 | + | ||
180 | + | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
181 | + | } | |
182 | + | ||
183 | + | ||
184 | + | func evalFinal (address) = { | |
185 | + | let addrKey = combo(address, keyFinal) | |
186 | + | let baseKey = keyFinal | |
187 | + | let resultR = tryGetResult(baseKey) | |
188 | + | if ((resultR == resultR)) | |
189 | + | then { | |
190 | + | let guessR = tryGetString(addrKey) | |
191 | + | if ((guessR == guessR)) | |
192 | + | then if ((resultR == guessR)) | |
193 | + | then 1 | |
194 | + | else 0 | |
195 | + | else throw("Strict value is not equal to itself.") | |
196 | + | } | |
197 | + | else throw("Strict value is not equal to itself.") | |
121 | 198 | } | |
122 | 199 | ||
123 | 200 | ||
124 | 201 | @Callable(i) | |
125 | 202 | func setBetAmount (amount) = if (allow(i.callerPublicKey)) | |
126 | 203 | then [IntegerEntry(betAmountKey, amount)] | |
127 | 204 | else throw("Only admin") | |
128 | 205 | ||
129 | 206 | ||
130 | 207 | ||
131 | 208 | @Callable(i) | |
132 | 209 | func setDeadLine (deadlineHeight) = if (allow(i.callerPublicKey)) | |
133 | 210 | then [IntegerEntry(deadlineKey, deadlineHeight)] | |
134 | 211 | else throw("Only admin") | |
135 | 212 | ||
136 | 213 | ||
137 | 214 | ||
138 | 215 | @Callable(i) | |
139 | 216 | func makeBet (group_winners,group_second,octo_winners,quarter_winners,semi_winners,winner) = { | |
140 | 217 | let pmt = i.payments[0] | |
141 | 218 | let pmt_asset = pmt.assetId | |
142 | 219 | let pmt_amount = value(pmt.amount) | |
143 | 220 | let callerAddr = toString(i.caller) | |
144 | 221 | let betted = isBet(callerAddr) | |
145 | 222 | let deadline = getDeadLine() | |
146 | 223 | if ((deadline > height)) | |
147 | 224 | then if (!(betted)) | |
148 | 225 | then if ((getAssetString(pmt_asset) == "WAVES")) | |
149 | 226 | then { | |
150 | 227 | let betAmount = getBetAmount() | |
151 | 228 | if ((betAmount != 0)) | |
152 | 229 | then if ((pmt_amount == betAmount)) | |
153 | 230 | then { | |
154 | 231 | let groupWinners = split(group_winners, "_") | |
155 | 232 | let groupSecond = split(group_second, "_") | |
156 | 233 | let octoWinners = split(octo_winners, "_") | |
157 | 234 | let quarterWinners = split(quarter_winners, "_") | |
158 | 235 | let semiWinners = split(semi_winners, "_") | |
159 | 236 | if (if (if (if (if ((size(groupWinners) == 8)) | |
160 | 237 | then (size(groupSecond) == 8) | |
161 | 238 | else false) | |
162 | 239 | then (size(octoWinners) == 8) | |
163 | 240 | else false) | |
164 | 241 | then (size(quarterWinners) == 4) | |
165 | 242 | else false) | |
166 | 243 | then (size(semiWinners) == 2) | |
167 | 244 | else false) | |
168 | 245 | then [BooleanEntry((callerAddr + "_betted"), true), IntegerEntry((callerAddr + "_height"), height), IntegerEntry((callerAddr + "_betAmount"), pmt_amount), StringEntry((callerAddr + "_GroupA-1st"), groupWinners[0]), StringEntry((callerAddr + "_GroupA-2nd"), groupSecond[0]), StringEntry((callerAddr + "_GroupB-1st"), groupWinners[1]), StringEntry((callerAddr + "_GroupB-2nd"), groupSecond[1]), StringEntry((callerAddr + "_GroupC-1st"), groupWinners[2]), StringEntry((callerAddr + "_GroupC-2nd"), groupSecond[2]), StringEntry((callerAddr + "_GroupD-1st"), groupWinners[3]), StringEntry((callerAddr + "_GroupD-2nd"), groupSecond[3]), StringEntry((callerAddr + "_GroupE-1st"), groupWinners[4]), StringEntry((callerAddr + "_GroupE-2nd"), groupSecond[4]), StringEntry((callerAddr + "_GroupF-1st"), groupWinners[5]), StringEntry((callerAddr + "_GroupF-2nd"), groupSecond[5]), StringEntry((callerAddr + "_GroupG-1st"), groupWinners[6]), StringEntry((callerAddr + "_GroupG-2nd"), groupSecond[6]), StringEntry((callerAddr + "_GroupH-1st"), groupWinners[7]), StringEntry((callerAddr + "_GroupH-2nd"), groupSecond[7]), StringEntry((callerAddr + "_Octo1-winner"), octoWinners[0]), StringEntry((callerAddr + "_Octo2-winner"), octoWinners[1]), StringEntry((callerAddr + "_Octo3-winner"), octoWinners[2]), StringEntry((callerAddr + "_Octo4-winner"), octoWinners[3]), StringEntry((callerAddr + "_Octo5-winner"), octoWinners[4]), StringEntry((callerAddr + "_Octo6-winner"), octoWinners[5]), StringEntry((callerAddr + "_Octo7-winner"), octoWinners[6]), StringEntry((callerAddr + "_Octo8-winner"), octoWinners[7]), StringEntry((callerAddr + "_Quarter1-winner"), quarterWinners[0]), StringEntry((callerAddr + "_Quarter2-winner"), quarterWinners[1]), StringEntry((callerAddr + "_Quarter3-winner"), quarterWinners[2]), StringEntry((callerAddr + "_Quarter4-winner"), quarterWinners[3]), StringEntry((callerAddr + "_Semi1-winner"), semiWinners[0]), StringEntry((callerAddr + "_Semi2-winner"), semiWinners[1]), StringEntry((callerAddr + "_Final-winner"), winner)] | |
169 | 246 | else throw("Incorrect data arrived in arguments") | |
170 | 247 | } | |
171 | 248 | else throw((("Attach exactly " + toString(betAmount)) + " /100000000 Waves as payment")) | |
172 | 249 | else throw("Zero betAmount from contract storage") | |
173 | 250 | } | |
174 | 251 | else throw("Only Waves is allowed as payment asset to bet") | |
175 | 252 | else throw("Bet already made") | |
176 | 253 | else throw("Betting closed") | |
177 | 254 | } | |
178 | 255 | ||
179 | 256 | ||
180 | 257 | ||
181 | 258 | @Callable(i) | |
182 | 259 | func deleteAddress (address) = { | |
183 | 260 | let callerAddr = address | |
184 | 261 | if (allow(i.callerPublicKey)) | |
185 | 262 | then [DeleteEntry((callerAddr + "_betted")), DeleteEntry((callerAddr + "_height")), DeleteEntry((callerAddr + "_betAmount")), DeleteEntry((callerAddr + "_GroupA-1st")), DeleteEntry((callerAddr + "_GroupA-2nd")), DeleteEntry((callerAddr + "_GroupB-1st")), DeleteEntry((callerAddr + "_GroupB-2nd")), DeleteEntry((callerAddr + "_GroupC-1st")), DeleteEntry((callerAddr + "_GroupC-2nd")), DeleteEntry((callerAddr + "_GroupD-1st")), DeleteEntry((callerAddr + "_GroupD-2nd")), DeleteEntry((callerAddr + "_GroupE-1st")), DeleteEntry((callerAddr + "_GroupE-2nd")), DeleteEntry((callerAddr + "_GroupF-1st")), DeleteEntry((callerAddr + "_GroupF-2nd")), DeleteEntry((callerAddr + "_GroupG-1st")), DeleteEntry((callerAddr + "_GroupG-2nd")), DeleteEntry((callerAddr + "_GroupH-1st")), DeleteEntry((callerAddr + "_GroupH-2nd")), DeleteEntry((callerAddr + "_Octo1-winner")), DeleteEntry((callerAddr + "_Octo2-winner")), DeleteEntry((callerAddr + "_Octo3-winner")), DeleteEntry((callerAddr + "_Octo4-winner")), DeleteEntry((callerAddr + "_Octo5-winner")), DeleteEntry((callerAddr + "_Octo6-winner")), DeleteEntry((callerAddr + "_Octo7-winner")), DeleteEntry((callerAddr + "_Octo8-winner")), DeleteEntry((callerAddr + "_Quarter1-winner")), DeleteEntry((callerAddr + "_Quarter2-winner")), DeleteEntry((callerAddr + "_Quarter3-winner")), DeleteEntry((callerAddr + "_Quarter4-winner")), DeleteEntry((callerAddr + "_Semi1-winner")), DeleteEntry((callerAddr + "_Semi2-winner")), DeleteEntry((callerAddr + "_Final-winner"))] | |
186 | 263 | else throw("Only admin") | |
187 | 264 | } | |
188 | 265 | ||
189 | 266 | ||
190 | 267 | ||
191 | 268 | @Callable(i) | |
192 | 269 | func evalScore (address) = { | |
193 | 270 | let groupScore = evalGroups(address) | |
194 | - | throw(("Score " + toString(groupScore))) | |
271 | + | let groupBonus = if ((groupScore == 8)) | |
272 | + | then 150 | |
273 | + | else 100 | |
274 | + | let octoScore = evalOcto(address) | |
275 | + | let octoBonus = if ((octoScore == 8)) | |
276 | + | then 120 | |
277 | + | else 100 | |
278 | + | let quarterScore = evalQuarter(address) | |
279 | + | let quarterBonus = if ((quarterScore == 4)) | |
280 | + | then 125 | |
281 | + | else 100 | |
282 | + | let semiScore = evalSemi(address) | |
283 | + | let semiBonus = if ((semiScore == 2)) | |
284 | + | then 150 | |
285 | + | else 100 | |
286 | + | let finalScore = evalFinal(address) | |
287 | + | let finalBonus = if ((finalScore == 1)) | |
288 | + | then 200 | |
289 | + | else 100 | |
290 | + | let bonuses = [groupBonus, octoBonus, quarterScore, semiBonus, finalBonus] | |
291 | + | let maxBonus = max(bonuses) | |
292 | + | let score = ((((groupScore + octoScore) + quarterScore) + semiScore) + finalScore) | |
293 | + | throw(((("Score " + toString(score)) + ", maxBonus: ") + toString(maxBonus))) | |
195 | 294 | } | |
196 | 295 | ||
197 | 296 | ||
198 | 297 | @Verifier(tx) | |
199 | 298 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
200 | 299 |
github/deemru/w8io/169f3d6 43.53 ms ◑