tx · Fr43DwGkze5AFahHyYtaCWcvnBp8pPxXkugQrdMyfzov 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL: -0.01700000 Waves 2022.11.19 23:29 [2324482] smart account 3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL > SELF 0.00000000 Waves
{ "type": 13, "id": "Fr43DwGkze5AFahHyYtaCWcvnBp8pPxXkugQrdMyfzov", "fee": 1700000, "feeAssetId": null, "timestamp": 1668889762416, "version": 2, "chainId": 84, "sender": "3N9QhjBmyFRrGW5d8VQojB4wZhHmQhuvVrL", "senderPublicKey": "BefhVEanzhrtdYfeWquaoSsMZw3BEaEZZB86Kosqw7Qb", "proofs": [ "3aDgfqruCZxMspvbLgSTmdoU9q3z7Nt2Erg3fBsWQeQrPsg19ZyJRMoGLfcuBowZGRQXMzE8hBzzM6ecqkn9Ktd7" ], "script": "base64:AAIFAAAAAAAAACAIAhIDCgEBEgMKAQESCAoGCAgICAgIEgMKAQgSAwoBCAAAABoAAAAABWFkbWluAgAAACw3VHQ3NHI4UjdhdVRCVGQ2ckpNQTRxWXI5V0RXamMyU1VISFNyUk13OUJycwAAAAAOcmVzdWx0Q29udHJhY3QCAAAAIzNOQ25FVU5uSlh6NTdRV0FNWW5aQnUzU3FXNHR4b2cxWGVEAAAAAAxiZXRBbW91bnRLZXkCAAAAEGdsb2JhbF9iZXRBbW91bnQAAAAAC2RlYWRsaW5lS2V5AgAAABFnbG9iYWxfZGVhZGxpbmVfaAAAAAAFc2NhbGUAAAAAAAX14QAAAAAAA2ZlZQAAAAAAAAAA+gAAAAAIZmVlc2NhbGUAAAAAAAAAJxAAAAAACWtleXNHcm91cAkABEwAAAACAgAAAApHcm91cEEtMXN0CQAETAAAAAICAAAACkdyb3VwQS0ybmQJAARMAAAAAgIAAAAKR3JvdXBCLTFzdAkABEwAAAACAgAAAApHcm91cEItMm5kCQAETAAAAAICAAAACkdyb3VwQy0xc3QJAARMAAAAAgIAAAAKR3JvdXBDLTJuZA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wAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAAAgkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAAAwkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAABAkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAABQkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAABgkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAABwkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAACAkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAACQkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAACgkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAACwkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAADAkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAAADQkABEwAAAACCQEAAAAFY29tYm8AAAACBQAAAAdhZGRyZXNzCQABkQAAAAIFAAAACWtleXNHcm91cAAAAAAAAAA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YWxsZXJBZGRyAgAAABBfUXVhcnRlcjQtd2lubmVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgUAAAAKY2FsbGVyQWRkcgIAAAANX1NlbWkxLXdpbm5lcgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIFAAAACmNhbGxlckFkZHICAAAADV9TZW1pMi13aW5uZXIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACBQAAAApjYWxsZXJBZGRyAgAAAA1fRmluYWwtd2lubmVyBQAAAANuaWwJAAACAAAAAQIAAAAKT25seSBhZG1pbgAAAAFpAQAAAAlldmFsU2NvcmUAAAABAAAAB2FkZHJlc3MEAAAACmdyb3VwU2NvcmUJAQAAAApldmFsR3JvdXBzAAAAAQUAAAAHYWRkcmVzcwkAAAIAAAABCQABLAAAAAICAAAABlNjb3JlIAkAAaQAAAABBQAAAApncm91cFNjb3JlAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmlLIBN", "height": 2324482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CjbR1ETeFWZPC3cQx17YiKhx7zzfFLXSQKqFnFXp15KC Next: FNyk9XQir6TPwvGDa5joU2gYyMawdvwt3fHrq9huZs9b Diff:
Old | New | Differences | |
---|---|---|---|
84 | 84 | ||
85 | 85 | func checkHandler (accum,keyStr) = { | |
86 | 86 | let baseKey = split(keyStr, "_")[0] | |
87 | - | (accum + (if ((tryGetResult(baseKey) == tryGetString(keyStr))) | |
88 | - | then 1 | |
89 | - | else 0)) | |
87 | + | let resultR = tryGetResult(baseKey) | |
88 | + | if ((resultR == resultR)) | |
89 | + | then { | |
90 | + | let guessR = tryGetString(keyStr) | |
91 | + | if ((guessR == guessR)) | |
92 | + | then throw(((((("basekey: " + baseKey) + ", resultR: ") + resultR) + ", guessR: ") + guessR)) | |
93 | + | else throw("Strict value is not equal to itself.") | |
94 | + | } | |
95 | + | else throw("Strict value is not equal to itself.") | |
90 | 96 | } | |
91 | 97 | ||
92 | 98 |
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 | 26 | let keysFinal = "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, "_")[0] | |
87 | - | (accum + (if ((tryGetResult(baseKey) == tryGetString(keyStr))) | |
88 | - | then 1 | |
89 | - | else 0)) | |
87 | + | let resultR = tryGetResult(baseKey) | |
88 | + | if ((resultR == resultR)) | |
89 | + | then { | |
90 | + | let guessR = tryGetString(keyStr) | |
91 | + | if ((guessR == guessR)) | |
92 | + | then throw(((((("basekey: " + baseKey) + ", resultR: ") + resultR) + ", guessR: ") + guessR)) | |
93 | + | else throw("Strict value is not equal to itself.") | |
94 | + | } | |
95 | + | else throw("Strict value is not equal to itself.") | |
90 | 96 | } | |
91 | 97 | ||
92 | 98 | ||
93 | 99 | func combo (address,key) = ((address + "_") + key) | |
94 | 100 | ||
95 | 101 | ||
96 | 102 | 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])] | |
97 | 103 | ||
98 | 104 | ||
99 | 105 | func evalGroups (address) = { | |
100 | 106 | let groupAddrKeys = groupsAddressKeys(address) | |
101 | 107 | let $l = groupAddrKeys | |
102 | 108 | let $s = size($l) | |
103 | 109 | let $acc0 = 0 | |
104 | 110 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
105 | 111 | then $a | |
106 | 112 | else checkHandler($a, $l[$i]) | |
107 | 113 | ||
108 | 114 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
109 | 115 | then $a | |
110 | 116 | else throw("List size exceeds 16") | |
111 | 117 | ||
112 | 118 | $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) | |
113 | 119 | } | |
114 | 120 | ||
115 | 121 | ||
116 | 122 | @Callable(i) | |
117 | 123 | func setBetAmount (amount) = if (allow(i.callerPublicKey)) | |
118 | 124 | then [IntegerEntry(betAmountKey, amount)] | |
119 | 125 | else throw("Only admin") | |
120 | 126 | ||
121 | 127 | ||
122 | 128 | ||
123 | 129 | @Callable(i) | |
124 | 130 | func setDeadLine (deadlineHeight) = if (allow(i.callerPublicKey)) | |
125 | 131 | then [IntegerEntry(deadlineKey, deadlineHeight)] | |
126 | 132 | else throw("Only admin") | |
127 | 133 | ||
128 | 134 | ||
129 | 135 | ||
130 | 136 | @Callable(i) | |
131 | 137 | func makeBet (group_winners,group_second,octo_winners,quarter_winners,semi_winners,winner) = { | |
132 | 138 | let pmt = i.payments[0] | |
133 | 139 | let pmt_asset = pmt.assetId | |
134 | 140 | let pmt_amount = value(pmt.amount) | |
135 | 141 | let callerAddr = toString(i.caller) | |
136 | 142 | let betted = isBet(callerAddr) | |
137 | 143 | let deadline = getDeadLine() | |
138 | 144 | if ((deadline > height)) | |
139 | 145 | then if (!(betted)) | |
140 | 146 | then if ((getAssetString(pmt_asset) == "WAVES")) | |
141 | 147 | then { | |
142 | 148 | let betAmount = getBetAmount() | |
143 | 149 | if ((betAmount != 0)) | |
144 | 150 | then if ((pmt_amount == betAmount)) | |
145 | 151 | then { | |
146 | 152 | let groupWinners = split(group_winners, "_") | |
147 | 153 | let groupSecond = split(group_second, "_") | |
148 | 154 | let octoWinners = split(octo_winners, "_") | |
149 | 155 | let quarterWinners = split(quarter_winners, "_") | |
150 | 156 | let semiWinners = split(semi_winners, "_") | |
151 | 157 | if (if (if (if (if ((size(groupWinners) == 8)) | |
152 | 158 | then (size(groupSecond) == 8) | |
153 | 159 | else false) | |
154 | 160 | then (size(octoWinners) == 8) | |
155 | 161 | else false) | |
156 | 162 | then (size(quarterWinners) == 4) | |
157 | 163 | else false) | |
158 | 164 | then (size(semiWinners) == 2) | |
159 | 165 | else false) | |
160 | 166 | 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)] | |
161 | 167 | else throw("Incorrect data arrived in arguments") | |
162 | 168 | } | |
163 | 169 | else throw((("Attach exactly " + toString(betAmount)) + " /100000000 Waves as payment")) | |
164 | 170 | else throw("Zero betAmount from contract storage") | |
165 | 171 | } | |
166 | 172 | else throw("Only Waves is allowed as payment asset to bet") | |
167 | 173 | else throw("Bet already made") | |
168 | 174 | else throw("Betting closed") | |
169 | 175 | } | |
170 | 176 | ||
171 | 177 | ||
172 | 178 | ||
173 | 179 | @Callable(i) | |
174 | 180 | func deleteAddress (address) = { | |
175 | 181 | let callerAddr = address | |
176 | 182 | if (allow(i.callerPublicKey)) | |
177 | 183 | 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"))] | |
178 | 184 | else throw("Only admin") | |
179 | 185 | } | |
180 | 186 | ||
181 | 187 | ||
182 | 188 | ||
183 | 189 | @Callable(i) | |
184 | 190 | func evalScore (address) = { | |
185 | 191 | let groupScore = evalGroups(address) | |
186 | 192 | throw(("Score " + toString(groupScore))) | |
187 | 193 | } | |
188 | 194 | ||
189 | 195 | ||
190 | 196 | @Verifier(tx) | |
191 | 197 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
192 | 198 |
github/deemru/w8io/169f3d6 39.41 ms ◑