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