tx · E33eTYgeRTcfaEdiF7fj54GAmjPuC8ZvWZtvG1BoaWSY 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.01500000 Waves 2023.10.31 13:05 [2822675] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "E33eTYgeRTcfaEdiF7fj54GAmjPuC8ZvWZtvG1BoaWSY", "fee": 1500000, "feeAssetId": null, "timestamp": 1698746758969, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "JNKVfMo6Uj9Ldp6i3Cs5SgLJ72NEefHdH1rN7vd9mhQjn4oxckW9JMSGahncr9wjqVBU9rRmH5pKabhRnMzp7EK" ], "script": "base64:AAIFAAAAAAAAAB0IAhIECgIIARIDCgEIEgASAwoBCBIAEgASAwoBGAAAAAkAAAAAAmxpCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEzCQAETAAAAAICAAAAATQJAARMAAAAAgIAAAABNQkABEwAAAACAgAAAAE2CQAETAAAAAICAAAAATcJAARMAAAAAgIAAAABOAkABEwAAAACAgAAAAE5CQAETAAAAAICAAAAAjEwCQAETAAAAAICAAAAAjExCQAETAAAAAICAAAAAjEyCQAETAAAAAICAAAAAjEzCQAETAAAAAICAAAAAjE0CQAETAAAAAICAAAAAjE1CQAETAAAAAICAAAAAjE2CQAETAAAAAICAAAAAjE3CQAETAAAAAICAAAAAjE4CQAETAAAAAICAAAAAjE5CQAETAAAAAICAAAAAjIwCQAETAAAAAICAAAAAjIxCQAETAAAAAICAAAAAjIyCQAETAAAAAICAAAAAjIzCQAETAAAAAICAAAAAjI0CQAETAAAAAICAAAAAjI1CQAETAAAAAICAAAAAjI2CQAETAAAAAICAAAAAjI3CQAETAAAAAICAAAAAjI4CQAETAAAAAICAAA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ABIAAAAAAAAAABJAAAAAAAAAABKAAAAAAAAAABLAAAAAAAAAABMAAAAAAAAAABNAAAAAAAAAABOAAAAAAAAAABPAAAAAAAAAABQAAAAAAAAAABRAAAAAAAAAABSAAAAAAAAAABTAAAAAAAAAABUAAAAAAAAAABVAAAAAAAAAABWAAAAAAAAAABXAAAAAAAAAABYAAAAAAAAAABZAAAAAAAAAABaAAAAAAAAAABbAAAAAAAAAABcAAAAAAAAAABdAAAAAAAAAABeAAAAAAAAAABfAAAAAAAAAABgAAAAAAAAAABhAAAAAAAAAABiAAAAAAAAAABjAAAAAAAAAABkAAAAAJAjJg8=", "height": 2822675, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Df35hG4mdrz2YzPrc7t5NqVwzJUaGi7rYBo3JpQjuvTk Next: 3imdpSzRea7RiSknvGsKqQswwuzXiTjuY1UxoLY4uwQK Diff:
Old | New | Differences | |
---|---|---|---|
47 | 47 | let toPay = ((min([finishHeight, height]) - lastHeight) * blockReward) | |
48 | 48 | [IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId"))))] | |
49 | 49 | } | |
50 | + | else nil | |
51 | + | } | |
52 | + | ||
53 | + | ||
54 | + | func endedList (boostingId) = { | |
55 | + | let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight")) | |
56 | + | let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight")) | |
57 | + | if ((lastHeight >= finishHeight)) | |
58 | + | then [StringEntry((("list ended " + toString(height)) + " boostingIds"), ((tryGetString((("list ended " + toString(height)) + " boostingIds")) + boostingId) + ","))] | |
50 | 59 | else nil | |
51 | 60 | } | |
52 | 61 | ||
105 | 114 | ||
106 | 115 | ||
107 | 116 | @Callable(i) | |
108 | - | func ended () = { | |
109 | - | func f (accum,boostingId) = [StringEntry(("list ended boostingIds" + toString(height)), boostingId)] | |
117 | + | func getEndedList (boostingId) = endedList(boostingId) | |
110 | 118 | ||
111 | - | let $l = li | |
119 | + | ||
120 | + | ||
121 | + | @Callable(i) | |
122 | + | func getList () = { | |
123 | + | func f (accum,next) = { | |
124 | + | let in = invoke(this, "getEndedList", [next], nil) | |
125 | + | if ((in == in)) | |
126 | + | then in | |
127 | + | else throw("Strict value is not equal to itself.") | |
128 | + | } | |
129 | + | ||
130 | + | let end = { | |
131 | + | let $l = li | |
132 | + | let $s = size($l) | |
133 | + | let $acc0 = 0 | |
134 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
135 | + | then $a | |
136 | + | else f($a, $l[$i]) | |
137 | + | ||
138 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
139 | + | then $a | |
140 | + | else throw("List size exceeds 100") | |
141 | + | ||
142 | + | $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) | |
143 | + | } | |
144 | + | if ((end == end)) | |
145 | + | then nil | |
146 | + | else throw("Strict value is not equal to itself.") | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | @Callable(i) | |
152 | + | func stringlist () = [StringEntry(("list ended boostingIds" + toString(height)), makeString(li, ","))] | |
153 | + | ||
154 | + | ||
155 | + | ||
156 | + | @Callable(i) | |
157 | + | func transfer (addresses) = { | |
158 | + | let assetId = i.payments[0].assetId | |
159 | + | let amount = i.payments[0].amount | |
160 | + | let amountPerAddress = (amount / size(addresses)) | |
161 | + | func f (accum,address) = (accum ++ [ScriptTransfer(addressFromStringValue(address), amountPerAddress, assetId)]) | |
162 | + | ||
163 | + | let $l = addresses | |
112 | 164 | let $s = size($l) | |
113 | 165 | let $acc0 = nil | |
114 | 166 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
123 | 175 | } | |
124 | 176 | ||
125 | 177 | ||
126 | - | ||
127 | - | @Callable(i) | |
128 | - | func stringlist () = [StringEntry(("list ended boostingIds" + toString(height)), makeString(li, ","))] | |
129 | - | ||
130 | - |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let li = ["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", "55", "56"] | |
5 | 5 | ||
6 | 6 | let hours = 1 | |
7 | 7 | ||
8 | 8 | let minutes = 10 | |
9 | 9 | ||
10 | 10 | func tryGetInteger (key) = match getInteger(this, key) { | |
11 | 11 | case b: Int => | |
12 | 12 | b | |
13 | 13 | case _ => | |
14 | 14 | 0 | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func tryGetString (key) = match getString(this, key) { | |
19 | 19 | case b: String => | |
20 | 20 | b | |
21 | 21 | case _ => | |
22 | 22 | "" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func getAssetString (assetId) = match assetId { | |
27 | 27 | case b: ByteVector => | |
28 | 28 | toBase58String(b) | |
29 | 29 | case _ => | |
30 | 30 | "WAVES" | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES")) | |
35 | 35 | then unit | |
36 | 36 | else fromBase58String(assetIdStr) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func payBoostingResult (boostingId) = { | |
40 | 40 | let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight")) | |
41 | 41 | let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight")) | |
42 | 42 | if (if ((lastHeight != 0)) | |
43 | 43 | then (finishHeight > lastHeight) | |
44 | 44 | else false) | |
45 | 45 | then { | |
46 | 46 | let blockReward = tryGetInteger((("boosting_" + boostingId) + "_blockAmount")) | |
47 | 47 | let toPay = ((min([finishHeight, height]) - lastHeight) * blockReward) | |
48 | 48 | [IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId"))))] | |
49 | 49 | } | |
50 | + | else nil | |
51 | + | } | |
52 | + | ||
53 | + | ||
54 | + | func endedList (boostingId) = { | |
55 | + | let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight")) | |
56 | + | let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight")) | |
57 | + | if ((lastHeight >= finishHeight)) | |
58 | + | then [StringEntry((("list ended " + toString(height)) + " boostingIds"), ((tryGetString((("list ended " + toString(height)) + " boostingIds")) + boostingId) + ","))] | |
50 | 59 | else nil | |
51 | 60 | } | |
52 | 61 | ||
53 | 62 | ||
54 | 63 | @Callable(i) | |
55 | 64 | func addBoosting (poolId,days) = { | |
56 | 65 | let fullAmount = i.payments[0].amount | |
57 | 66 | let assetId = getAssetString(i.payments[0].assetId) | |
58 | 67 | let inv = invoke(this, "findEndedBoosting", nil, nil) | |
59 | 68 | if ((inv == inv)) | |
60 | 69 | then { | |
61 | 70 | let newBoostingsAmount = (tryGetInteger("global_boostingsAmount") + 1) | |
62 | 71 | let boostingId = toString(newBoostingsAmount) | |
63 | 72 | if ((addressFromString(poolId) == unit)) | |
64 | 73 | then throw("incorrect pool address") | |
65 | 74 | else [IntegerEntry("global_boostingsAmount", newBoostingsAmount), IntegerEntry((("boosting_" + boostingId) + "_days"), days), IntegerEntry((("boosting_" + boostingId) + "_totalAmount"), fullAmount), IntegerEntry((("boosting_" + boostingId) + "_dailyAmount"), (fullAmount / days)), IntegerEntry((("boosting_" + boostingId) + "_blockAmount"), (fullAmount / ((days * hours) * minutes))), IntegerEntry((("boosting_" + boostingId) + "_startHeight"), height), IntegerEntry((("boosting_" + boostingId) + "_finishHeight"), (height + ((days * hours) * minutes))), IntegerEntry((("boosting_" + boostingId) + "_finishTimestamp"), (lastBlock.timestamp + ((((days * hours) * minutes) * 60) * 1000))), IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), StringEntry((("boosting_" + boostingId) + "_assetId"), assetId), StringEntry((("boosting_" + boostingId) + "_owner"), toString(i.caller)), StringEntry((("boosting_" + boostingId) + "_poolId"), poolId), StringEntry((("pool_" + poolId) + "_boostings"), ((tryGetString((("pool_" + poolId) + "_boostings")) + boostingId) + ","))] | |
66 | 75 | } | |
67 | 76 | else throw("Strict value is not equal to itself.") | |
68 | 77 | } | |
69 | 78 | ||
70 | 79 | ||
71 | 80 | ||
72 | 81 | @Callable(i) | |
73 | 82 | func payBoosting (boostingId) = payBoostingResult(boostingId) | |
74 | 83 | ||
75 | 84 | ||
76 | 85 | ||
77 | 86 | @Callable(i) | |
78 | 87 | func payBoostings () = { | |
79 | 88 | func f (accum,next) = { | |
80 | 89 | let in = invoke(this, "payBoosting", [next], nil) | |
81 | 90 | if ((in == in)) | |
82 | 91 | then in | |
83 | 92 | else throw("Strict value is not equal to itself.") | |
84 | 93 | } | |
85 | 94 | ||
86 | 95 | let payments = { | |
87 | 96 | let $l = li | |
88 | 97 | let $s = size($l) | |
89 | 98 | let $acc0 = 0 | |
90 | 99 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
91 | 100 | then $a | |
92 | 101 | else f($a, $l[$i]) | |
93 | 102 | ||
94 | 103 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
95 | 104 | then $a | |
96 | 105 | else throw("List size exceeds 100") | |
97 | 106 | ||
98 | 107 | $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) | |
99 | 108 | } | |
100 | 109 | if ((payments == payments)) | |
101 | 110 | then nil | |
102 | 111 | else throw("Strict value is not equal to itself.") | |
103 | 112 | } | |
104 | 113 | ||
105 | 114 | ||
106 | 115 | ||
107 | 116 | @Callable(i) | |
108 | - | func ended () = { | |
109 | - | func f (accum,boostingId) = [StringEntry(("list ended boostingIds" + toString(height)), boostingId)] | |
117 | + | func getEndedList (boostingId) = endedList(boostingId) | |
110 | 118 | ||
111 | - | let $l = li | |
119 | + | ||
120 | + | ||
121 | + | @Callable(i) | |
122 | + | func getList () = { | |
123 | + | func f (accum,next) = { | |
124 | + | let in = invoke(this, "getEndedList", [next], nil) | |
125 | + | if ((in == in)) | |
126 | + | then in | |
127 | + | else throw("Strict value is not equal to itself.") | |
128 | + | } | |
129 | + | ||
130 | + | let end = { | |
131 | + | let $l = li | |
132 | + | let $s = size($l) | |
133 | + | let $acc0 = 0 | |
134 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
135 | + | then $a | |
136 | + | else f($a, $l[$i]) | |
137 | + | ||
138 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
139 | + | then $a | |
140 | + | else throw("List size exceeds 100") | |
141 | + | ||
142 | + | $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) | |
143 | + | } | |
144 | + | if ((end == end)) | |
145 | + | then nil | |
146 | + | else throw("Strict value is not equal to itself.") | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | @Callable(i) | |
152 | + | func stringlist () = [StringEntry(("list ended boostingIds" + toString(height)), makeString(li, ","))] | |
153 | + | ||
154 | + | ||
155 | + | ||
156 | + | @Callable(i) | |
157 | + | func transfer (addresses) = { | |
158 | + | let assetId = i.payments[0].assetId | |
159 | + | let amount = i.payments[0].amount | |
160 | + | let amountPerAddress = (amount / size(addresses)) | |
161 | + | func f (accum,address) = (accum ++ [ScriptTransfer(addressFromStringValue(address), amountPerAddress, assetId)]) | |
162 | + | ||
163 | + | let $l = addresses | |
112 | 164 | let $s = size($l) | |
113 | 165 | let $acc0 = nil | |
114 | 166 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
115 | 167 | then $a | |
116 | 168 | else f($a, $l[$i]) | |
117 | 169 | ||
118 | 170 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
119 | 171 | then $a | |
120 | 172 | else throw("List size exceeds 100") | |
121 | 173 | ||
122 | 174 | $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 | 175 | } | |
124 | 176 | ||
125 | 177 | ||
126 | - | ||
127 | - | @Callable(i) | |
128 | - | func stringlist () = [StringEntry(("list ended boostingIds" + toString(height)), makeString(li, ","))] | |
129 | - | ||
130 | - |
github/deemru/w8io/026f985 49.81 ms ◑