tx · 85sCb1oszDSXSS5vutYCjhrhhABJZzo3X96JGW83pWnP 3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5: -0.01000000 Waves 2023.06.07 12:13 [2612050] smart account 3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5 > SELF 0.00000000 Waves
{ "type": 13, "id": "85sCb1oszDSXSS5vutYCjhrhhABJZzo3X96JGW83pWnP", "fee": 1000000, "feeAssetId": null, "timestamp": 1686129239344, "version": 2, "chainId": 84, "sender": "3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5", "senderPublicKey": "EMAuwff72FwVoiJK9xHyuUUMbpKmgV5temqeLU2aEsiS", "proofs": [ "2tegJpcq8BHSehXigUdT2CJpCp5AsTHirejksnLnRCWUdo4HhLWPgeB5HHk1ejYSbA5uFVnerf1vRgvAZ28wK14D" ], "script": "base64:BgINCAISAwoBERIAEgASAA4BCm51bVRvV2F2ZXMBA251bQkAaAIFA251bQCAwtcvAQtpc1BheW1lbnRPawEBaQQRYWNjZXB0YWJsZUFzc2V0SWQBICJEpueIVH1RKK5qV7oPafp24Q53N+2oR6tSH2lNlEJHAwkAAAIJAJADAQgFAWkIcGF5bWVudHMAAAkAAgECFFBheW1lbnQgbm90IGF0dGFjaGVkBAFwCQCRAwIIBQFpCHBheW1lbnRzAAAEByRtYXRjaDAIBQFwB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQHYXNzZXRJZAUHJG1hdGNoMAMJAAACBQdhc3NldElkBRFhY2NlcHRhYmxlQXNzZXRJZAkAZwIIBQFwBmFtb3VudAkBCm51bVRvV2F2ZXMBAAEHCQBnAggFAXAGYW1vdW50CQEKbnVtVG9XYXZlcwEAAQEMTFdfZ2V0QmV0S2V5AQFpCQCsAgICD2JldF9MdWNreVdoZWVsXwkApQgBCAUBaQZjYWxsZXIBDExXX2dldFdvbktleQEBaQkArAICAg93b25fTHVja3lXaGVlbF8JAKUIAQgFAWkGY2FsbGVyARVMV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uZG9tSGFzaAkA9wMBCQEFdmFsdWUBBQN2cmYECnJhbmRvbVNlZWQJAGoCCQCyCQIFCnJhbmRvbUhhc2gAEAAMBAxyYW5kb21OdW1iZXIJAGQCCQBqAgUKcmFuZG9tU2VlZAkAZAIJAGUCAAwAAQABAAEEDXdpbm5pbmdBbW91bnQJAQ5MV193aGF0VXNlcldvbgEFDHJhbmRvbU51bWJlcgMJAGYCBQ13aW5uaW5nQW1vdW50AAAJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBDExXX2dldEJldEtleQEFAWkJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQ13aW5uaW5nQW1vdW50BQR1bml0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQEMTFdfZ2V0V29uS2V5AQUBaQUNd2lubmluZ0Ftb3VudAkAzAgCCQEMSW50ZWdlckVudHJ5AgkBFUxXX2dldFJhbmRvbU51bWJlcktleQEFAWkFDHJhbmRvbU51bWJlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkBDExXX2dldExvZ0tleQEFAWkFDXdpbm5pbmdBbW91bnQFA25pbAkAzAgCCQELRGVsZXRlRW50cnkBCQEMTFdfZ2V0QmV0S2V5AQUBaQkAzAgCCQEMSW50ZWdlckVudHJ5AgkBDExXX2dldFdvbktleQEFAWkFDXdpbm5pbmdBbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIJARVMV19nZXRSYW5kb21OdW1iZXJLZXkBBQFpBQxyYW5kb21OdW1iZXIJAMwIAgkBDEludGVnZXJFbnRyeQIJAQxMV19nZXRMb2dLZXkBBQFpBQ13aW5uaW5nQW1vdW50BQNuaWwAExCMSQ==", "height": 2612050, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ds8rWA1iitPHEtJdG92UzRvwxYW89WGCXRwDw1hYsNYV Next: C8pbJTrPqCqLioUuT3sqJxLWDMqLUesgMsHVVK3zmngL Diff:
Old | New | Differences | |
---|---|---|---|
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | + | func mapIntToStr (accum,next) = toString(next) :: accum | |
102 | + | ||
103 | + | ||
104 | + | func mapStrToInt (accum,next) = parseIntValue(next) :: accum | |
105 | + | ||
106 | + | ||
107 | + | func mapIntToSum (accum,next) = (accum + next) | |
108 | + | ||
109 | + | ||
110 | + | func listIntToSum (arr) = { | |
111 | + | let $l = arr | |
112 | + | let $s = size($l) | |
113 | + | let $acc0 = 1 | |
114 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
115 | + | then $a | |
116 | + | else mapIntToSum($a, $l[$i]) | |
117 | + | ||
118 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
119 | + | then $a | |
120 | + | else throw("List size exceeds 100") | |
121 | + | ||
122 | + | $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($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($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($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($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($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($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), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
123 | + | } | |
124 | + | ||
125 | + | ||
126 | + | func listIntToListString (arr) = { | |
127 | + | let $l = arr | |
128 | + | let $s = size($l) | |
129 | + | let $acc0 = nil | |
130 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
131 | + | then $a | |
132 | + | else mapIntToStr($a, $l[$i]) | |
133 | + | ||
134 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
135 | + | then $a | |
136 | + | else throw("List size exceeds 100") | |
137 | + | ||
138 | + | $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($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($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($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($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($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($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), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | func listStringToListIng (arr) = { | |
143 | + | let $l = arr | |
144 | + | let $s = size($l) | |
145 | + | let $acc0 = nil | |
146 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
147 | + | then $a | |
148 | + | else mapStrToInt($a, $l[$i]) | |
149 | + | ||
150 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
151 | + | then $a | |
152 | + | else throw("List size exceeds 100") | |
153 | + | ||
154 | + | $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($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($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($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($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($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($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), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
155 | + | } | |
156 | + | ||
157 | + | ||
158 | + | @Callable(i) | |
159 | + | func Test1 (arr) = [StringEntry("test1", makeString(listIntToListString(arr), "|"))] | |
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | @Callable(i) | |
164 | + | func Test2 () = { | |
165 | + | let test1Str = getStringValue("test1") | |
166 | + | let test1ListInt = listStringToListIng(split(test1Str, "|")) | |
167 | + | let sum = listIntToSum(test1ListInt) | |
168 | + | [StringEntry("test1", toString(sum))] | |
169 | + | } | |
170 | + | ||
171 | + | ||
172 | + | ||
101 | 173 | @Callable(i) | |
102 | 174 | func LuckyWheel_commit () = if (!(isPaymentOk(i))) | |
103 | 175 | then throw("Wrong payment amount or asset") | |
124 | 196 | } | |
125 | 197 | ||
126 | 198 | ||
127 | - | ||
128 | - | @Callable(i) | |
129 | - | func Test (bet,selectedNumberBets,randomNumber,betDirection) = [IntegerEntry("R_WinCalculator", R_WinCalculator(bet, selectedNumberBets, randomNumber, betDirection))] | |
130 | - | ||
131 | - |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func numToWaves (num) = (num * 100000000) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func isPaymentOk (i) = { | |
8 | 8 | let acceptableAssetId = base58'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg' | |
9 | 9 | if ((size(i.payments) == 0)) | |
10 | 10 | then throw("Payment not attached") | |
11 | 11 | else { | |
12 | 12 | let p = i.payments[0] | |
13 | 13 | match p.assetId { | |
14 | 14 | case assetId: ByteVector => | |
15 | 15 | if ((assetId == acceptableAssetId)) | |
16 | 16 | then (p.amount >= numToWaves(1)) | |
17 | 17 | else false | |
18 | 18 | case _ => | |
19 | 19 | (p.amount >= numToWaves(1)) | |
20 | 20 | } | |
21 | 21 | } | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func LW_getBetKey (i) = ("bet_LuckyWheel_" + toString(i.caller)) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func LW_getWonKey (i) = ("won_LuckyWheel_" + toString(i.caller)) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func LW_getRandomNumberKey (i) = ("randomNumber_LuckyWheel_" + toString(i.caller)) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func LW_getLogKey (i) = ((("log_LuckyWheel_" + toString(i.caller)) + "_") + toBase58String(i.transactionId)) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func LW_whatUserWon (value) = match value { | |
38 | 38 | case _ => | |
39 | 39 | if ((1 == $match0)) | |
40 | 40 | then numToWaves(2) | |
41 | 41 | else if ((3 == $match0)) | |
42 | 42 | then numToWaves(1) | |
43 | 43 | else if ((7 == $match0)) | |
44 | 44 | then numToWaves(6) | |
45 | 45 | else if ((9 == $match0)) | |
46 | 46 | then numToWaves(1) | |
47 | 47 | else 0 | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func R_WinCalculator (bet,selectedNumberBets,randomNumber,betDirection) = { | |
52 | 52 | let RED_SECTORS = [32, 19, 21, 25, 34, 27, 36, 30, 23, 5, 16, 1, 14, 9, 18, 7, 12, 3] | |
53 | 53 | if (if ((size(selectedNumberBets) == 1)) | |
54 | 54 | then (betDirection == "num") | |
55 | 55 | else false) | |
56 | 56 | then if ((selectedNumberBets[0] == randomNumber)) | |
57 | 57 | then (bet * 36) | |
58 | 58 | else 0 | |
59 | 59 | else if ((size(selectedNumberBets) == 2)) | |
60 | 60 | then if (containsElement(selectedNumberBets, randomNumber)) | |
61 | 61 | then (bet * 18) | |
62 | 62 | else 0 | |
63 | 63 | else if ((size(selectedNumberBets) == 3)) | |
64 | 64 | then if (containsElement(selectedNumberBets, randomNumber)) | |
65 | 65 | then (bet * 12) | |
66 | 66 | else 0 | |
67 | 67 | else if ((size(selectedNumberBets) == 4)) | |
68 | 68 | then if (containsElement(selectedNumberBets, randomNumber)) | |
69 | 69 | then (bet * 9) | |
70 | 70 | else 0 | |
71 | 71 | else if ((size(selectedNumberBets) == 12)) | |
72 | 72 | then if (containsElement(selectedNumberBets, randomNumber)) | |
73 | 73 | then (bet * 3) | |
74 | 74 | else 0 | |
75 | 75 | else if ((betDirection == "red")) | |
76 | 76 | then if (containsElement(RED_SECTORS, randomNumber)) | |
77 | 77 | then (bet * 2) | |
78 | 78 | else 0 | |
79 | 79 | else if ((betDirection == "black")) | |
80 | 80 | then if (if (!(containsElement(RED_SECTORS, randomNumber))) | |
81 | 81 | then (randomNumber != 0) | |
82 | 82 | else false) | |
83 | 83 | then (bet * 2) | |
84 | 84 | else 0 | |
85 | 85 | else if ((betDirection == "odd")) | |
86 | 86 | then if (((randomNumber % 2) != 0)) | |
87 | 87 | then (bet * 2) | |
88 | 88 | else 0 | |
89 | 89 | else if ((betDirection == "even")) | |
90 | 90 | then if (((randomNumber % 2) == 0)) | |
91 | 91 | then (bet * 2) | |
92 | 92 | else 0 | |
93 | 93 | else if ((size(selectedNumberBets) == 18)) | |
94 | 94 | then if (containsElement(selectedNumberBets, randomNumber)) | |
95 | 95 | then (bet * 2) | |
96 | 96 | else 0 | |
97 | 97 | else 0 | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | + | func mapIntToStr (accum,next) = toString(next) :: accum | |
102 | + | ||
103 | + | ||
104 | + | func mapStrToInt (accum,next) = parseIntValue(next) :: accum | |
105 | + | ||
106 | + | ||
107 | + | func mapIntToSum (accum,next) = (accum + next) | |
108 | + | ||
109 | + | ||
110 | + | func listIntToSum (arr) = { | |
111 | + | let $l = arr | |
112 | + | let $s = size($l) | |
113 | + | let $acc0 = 1 | |
114 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
115 | + | then $a | |
116 | + | else mapIntToSum($a, $l[$i]) | |
117 | + | ||
118 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
119 | + | then $a | |
120 | + | else throw("List size exceeds 100") | |
121 | + | ||
122 | + | $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($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($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($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($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($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($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), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
123 | + | } | |
124 | + | ||
125 | + | ||
126 | + | func listIntToListString (arr) = { | |
127 | + | let $l = arr | |
128 | + | let $s = size($l) | |
129 | + | let $acc0 = nil | |
130 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
131 | + | then $a | |
132 | + | else mapIntToStr($a, $l[$i]) | |
133 | + | ||
134 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
135 | + | then $a | |
136 | + | else throw("List size exceeds 100") | |
137 | + | ||
138 | + | $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($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($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($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($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($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($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), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | func listStringToListIng (arr) = { | |
143 | + | let $l = arr | |
144 | + | let $s = size($l) | |
145 | + | let $acc0 = nil | |
146 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
147 | + | then $a | |
148 | + | else mapStrToInt($a, $l[$i]) | |
149 | + | ||
150 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
151 | + | then $a | |
152 | + | else throw("List size exceeds 100") | |
153 | + | ||
154 | + | $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($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($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($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($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($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($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), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
155 | + | } | |
156 | + | ||
157 | + | ||
158 | + | @Callable(i) | |
159 | + | func Test1 (arr) = [StringEntry("test1", makeString(listIntToListString(arr), "|"))] | |
160 | + | ||
161 | + | ||
162 | + | ||
163 | + | @Callable(i) | |
164 | + | func Test2 () = { | |
165 | + | let test1Str = getStringValue("test1") | |
166 | + | let test1ListInt = listStringToListIng(split(test1Str, "|")) | |
167 | + | let sum = listIntToSum(test1ListInt) | |
168 | + | [StringEntry("test1", toString(sum))] | |
169 | + | } | |
170 | + | ||
171 | + | ||
172 | + | ||
101 | 173 | @Callable(i) | |
102 | 174 | func LuckyWheel_commit () = if (!(isPaymentOk(i))) | |
103 | 175 | then throw("Wrong payment amount or asset") | |
104 | 176 | else [IntegerEntry(LW_getBetKey(i), (height + 1)), DeleteEntry(LW_getRandomNumberKey(i)), DeleteEntry(LW_getWonKey(i))] | |
105 | 177 | ||
106 | 178 | ||
107 | 179 | ||
108 | 180 | @Callable(i) | |
109 | 181 | func LuckyWheel_reveal () = { | |
110 | 182 | let commitHeight = valueOrErrorMessage(getIntegerValue(LW_getBetKey(i)), "Bet not found") | |
111 | 183 | if ((commitHeight > height)) | |
112 | 184 | then throw((("wait " + toString((commitHeight - height))) + " blocks to reveal this id")) | |
113 | 185 | else { | |
114 | 186 | let revealBlock = valueOrErrorMessage(blockInfoByHeight(commitHeight), "unexcpected error") | |
115 | 187 | let vrf = valueOrErrorMessage(revealBlock.vrf, "unexcpected error") | |
116 | 188 | let randomHash = sha256(value(vrf)) | |
117 | 189 | let randomSeed = (toInt(randomHash, 16) % 12) | |
118 | 190 | let randomNumber = ((randomSeed % ((12 - 1) + 1)) + 1) | |
119 | 191 | let winningAmount = LW_whatUserWon(randomNumber) | |
120 | 192 | if ((winningAmount > 0)) | |
121 | 193 | then [DeleteEntry(LW_getBetKey(i)), ScriptTransfer(i.caller, winningAmount, unit), IntegerEntry(LW_getWonKey(i), winningAmount), IntegerEntry(LW_getRandomNumberKey(i), randomNumber), IntegerEntry(LW_getLogKey(i), winningAmount)] | |
122 | 194 | else [DeleteEntry(LW_getBetKey(i)), IntegerEntry(LW_getWonKey(i), winningAmount), IntegerEntry(LW_getRandomNumberKey(i), randomNumber), IntegerEntry(LW_getLogKey(i), winningAmount)] | |
123 | 195 | } | |
124 | 196 | } | |
125 | 197 | ||
126 | 198 | ||
127 | - | ||
128 | - | @Callable(i) | |
129 | - | func Test (bet,selectedNumberBets,randomNumber,betDirection) = [IntegerEntry("R_WinCalculator", R_WinCalculator(bet, selectedNumberBets, randomNumber, betDirection))] | |
130 | - | ||
131 | - |
github/deemru/w8io/026f985 41.84 ms ◑