tx · AyLVuLvY7SLtVSt8kiTLyUjyLyhHHLFGp8jWtDSd9Ldq 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.01100000 Waves 2023.10.31 15:04 [2822797] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "AyLVuLvY7SLtVSt8kiTLyUjyLyhHHLFGp8jWtDSd9Ldq", "fee": 1100000, "feeAssetId": null, "timestamp": 1698753871788, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "3G6ZpESeC1cQuv96A6uG4ZVQqkFnVWywibEkpbg3EqQz8WjPVS1cvaemPWVhAKWJHuVwi246V9zZy43b2Vitw2Cm" ], "script": "base64:AAIFAAAAAAAAABYIAhIECgIIARIDCgEIEgASAwoBCBIAAAAACQAAAAACbGkJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATMJAARMAAAAAgIAAAABNAkABEwAAAACAgAAAAE1CQAETAAAAAICAAAAATYJAARMAAAAAgIAAAABNwkABEwAAAACAgAAAAE4CQAETAAAAAICAAAAATkJAARMAAAAAgIAAAACMTAJAARMAAAAAgIAAAACMTEJAARMAAAAAgIAAAACMTIJAARMAAAAAgIAAAACMTMJAARMAAAAAgIAAAACMTQJAARMAAAAAgIAAAACMTUJAARMAAAAAgIAAAACMTYJAARMAAAAAgIAAAACMTcJAARMAAAAAgIAAAACMTgJAARMAAAAAgIAAAACMTkJAARMAAAAAgIAAAACMjAJAARMAAAAAgIAAAACMjEJAARMAAAAAgIAAAACMjIJAARMAAAAAgIAAAACMjMJAARMAAAAAgIAAAACMjQJAARMAAAAAgIAAAACMjUJAARMAAAAAgIAAAACMjYJAARMAAAAAgIAAAACMjcJAARMAAAAAgIAAAACMjgJAARMAAAAAgIAAAACMjkJAAR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W5kBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAD0rjgY=", "height": 2822797, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3imdpSzRea7RiSknvGsKqQswwuzXiTjuY1UxoLY4uwQK Next: 9BpCvCuAiyqx1LXS1VfVa4Dbq8VXccnedFLxZZ9rWEtr Diff:
Old | New | Differences | |
---|---|---|---|
64 | 64 | func addBoosting (poolId,days) = { | |
65 | 65 | let fullAmount = i.payments[0].amount | |
66 | 66 | let assetId = getAssetString(i.payments[0].assetId) | |
67 | - | let inv = invoke(this, "findEndedBoosting", nil, nil) | |
68 | - | if ((inv == inv)) | |
69 | - | then { | |
70 | - | let newBoostingsAmount = (tryGetInteger("global_boostingsAmount") + 1) | |
71 | - | let boostingId = toString(newBoostingsAmount) | |
72 | - | if ((addressFromString(poolId) == unit)) | |
73 | - | then throw("incorrect pool address") | |
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) + ","))] | |
75 | - | } | |
76 | - | else throw("Strict value is not equal to itself.") | |
67 | + | let newBoostingsAmount = (tryGetInteger("global_boostingsAmount") + 1) | |
68 | + | let boostingId = toString(newBoostingsAmount) | |
69 | + | if ((addressFromString(poolId) == unit)) | |
70 | + | then throw("incorrect pool address") | |
71 | + | 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) + ","))] | |
77 | 72 | } | |
78 | 73 | ||
79 | 74 |
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 | 50 | else nil | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func endedList (boostingId) = { | |
55 | 55 | let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight")) | |
56 | 56 | let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight")) | |
57 | 57 | if ((lastHeight >= finishHeight)) | |
58 | 58 | then [StringEntry((("list ended " + toString(height)) + " boostingIds"), ((tryGetString((("list ended " + toString(height)) + " boostingIds")) + boostingId) + ","))] | |
59 | 59 | else nil | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Callable(i) | |
64 | 64 | func addBoosting (poolId,days) = { | |
65 | 65 | let fullAmount = i.payments[0].amount | |
66 | 66 | let assetId = getAssetString(i.payments[0].assetId) | |
67 | - | let inv = invoke(this, "findEndedBoosting", nil, nil) | |
68 | - | if ((inv == inv)) | |
69 | - | then { | |
70 | - | let newBoostingsAmount = (tryGetInteger("global_boostingsAmount") + 1) | |
71 | - | let boostingId = toString(newBoostingsAmount) | |
72 | - | if ((addressFromString(poolId) == unit)) | |
73 | - | then throw("incorrect pool address") | |
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) + ","))] | |
75 | - | } | |
76 | - | else throw("Strict value is not equal to itself.") | |
67 | + | let newBoostingsAmount = (tryGetInteger("global_boostingsAmount") + 1) | |
68 | + | let boostingId = toString(newBoostingsAmount) | |
69 | + | if ((addressFromString(poolId) == unit)) | |
70 | + | then throw("incorrect pool address") | |
71 | + | 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) + ","))] | |
77 | 72 | } | |
78 | 73 | ||
79 | 74 | ||
80 | 75 | ||
81 | 76 | @Callable(i) | |
82 | 77 | func payBoosting (boostingId) = payBoostingResult(boostingId) | |
83 | 78 | ||
84 | 79 | ||
85 | 80 | ||
86 | 81 | @Callable(i) | |
87 | 82 | func payBoostings () = { | |
88 | 83 | func f (accum,next) = { | |
89 | 84 | let in = invoke(this, "payBoosting", [next], nil) | |
90 | 85 | if ((in == in)) | |
91 | 86 | then in | |
92 | 87 | else throw("Strict value is not equal to itself.") | |
93 | 88 | } | |
94 | 89 | ||
95 | 90 | let payments = { | |
96 | 91 | let $l = li | |
97 | 92 | let $s = size($l) | |
98 | 93 | let $acc0 = 0 | |
99 | 94 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
100 | 95 | then $a | |
101 | 96 | else f($a, $l[$i]) | |
102 | 97 | ||
103 | 98 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
104 | 99 | then $a | |
105 | 100 | else throw("List size exceeds 100") | |
106 | 101 | ||
107 | 102 | $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) | |
108 | 103 | } | |
109 | 104 | if ((payments == payments)) | |
110 | 105 | then nil | |
111 | 106 | else throw("Strict value is not equal to itself.") | |
112 | 107 | } | |
113 | 108 | ||
114 | 109 | ||
115 | 110 | ||
116 | 111 | @Callable(i) | |
117 | 112 | func getEndedList (boostingId) = endedList(boostingId) | |
118 | 113 | ||
119 | 114 | ||
120 | 115 | ||
121 | 116 | @Callable(i) | |
122 | 117 | func getList () = { | |
123 | 118 | func f (accum,next) = { | |
124 | 119 | let in = invoke(this, "getEndedList", [next], nil) | |
125 | 120 | if ((in == in)) | |
126 | 121 | then in | |
127 | 122 | else throw("Strict value is not equal to itself.") | |
128 | 123 | } | |
129 | 124 | ||
130 | 125 | let end = { | |
131 | 126 | let $l = li | |
132 | 127 | let $s = size($l) | |
133 | 128 | let $acc0 = 0 | |
134 | 129 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
135 | 130 | then $a | |
136 | 131 | else f($a, $l[$i]) | |
137 | 132 | ||
138 | 133 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
139 | 134 | then $a | |
140 | 135 | else throw("List size exceeds 100") | |
141 | 136 | ||
142 | 137 | $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 | 138 | } | |
144 | 139 | if ((end == end)) | |
145 | 140 | then nil | |
146 | 141 | else throw("Strict value is not equal to itself.") | |
147 | 142 | } | |
148 | 143 | ||
149 | 144 |
github/deemru/w8io/026f985 40.98 ms ◑