tx · Gxzcz4PakVUhnDzHmRSbN3kJfvonFf7ST9oJgmmXnxMa 3MsH95R1SdYUEkUTVjHvR8gLD8rXtgQ21Vj: -0.01400000 Waves 2021.04.14 13:29 [1482004] smart account 3MsH95R1SdYUEkUTVjHvR8gLD8rXtgQ21Vj > SELF 0.00000000 Waves
{ "type": 13, "id": "Gxzcz4PakVUhnDzHmRSbN3kJfvonFf7ST9oJgmmXnxMa", "fee": 1400000, "feeAssetId": null, "timestamp": 1618396185340, "version": 2, "chainId": 84, "sender": "3MsH95R1SdYUEkUTVjHvR8gLD8rXtgQ21Vj", "senderPublicKey": "GYeGBXmJUHrtkkJuLVJKCHtaCbkvj9nS4aVLqzdrbpZx", "proofs": [ "uiGTokdjmtGwXryxLFg6fMhGr9vfnahMdsiMvS9fyUwVqv82hsuTySpRJbr6mPNJCH8TYqoYuLgLXEEePS77UKw" ], "script": "base64:AAIEAAAAAAAAABoIAhIECgIIARIDCgEIEgMKAQgSBAoCCAESAAAAABgAAAAAB3ZlcnNpb24AAAAAAAAAAAEAAAAACXNlcGFyYXRvcgIAAAADX19fAAAAAAhkZWNpbWFscwkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAoJAARMAAAAAgAAAAAAAAAAZAkABEwAAAACAAAAAAAAAAPoCQAETAAAAAIAAAAAAAAAJxAJAARMAAAAAgAAAAAAAAGGoAkABEwAAAACAAAAAAAAD0JACQAETAAAAAIAAAAAAACYloAJAARMAAAAAgAAAAAABfXhAAUAAAADbmlsAAAAAAZtYXhJbnQAf/////////8AAAAADmFkZHJQcml2aWxlZ2VzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXlvamYxajdXMlM1WFNLZW1HYXFFcmNTWWdocUNnUTFncAAAAAAJYWRkclZhdWx0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXV0VFZYaDdaMm05Q2Z6eDk4MkQ0bm03aDlZenIzUmE5YQAAAAAKbmliZWxBc3Nld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VhbnRpdHkJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADmVsaWdpYmxlQmxvY2tzBQAAAA5lbGlnaWJsZUJsb2NrcwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAALZm9yZ2VXZWlnaHQFAAAAC2ZvcmdlV2VpZ2h0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAA1mb3JnZVN1cHBsaWVzBQAAAA1mb3JnZVN1cHBsaWVzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABFmb3JnZXNUb3RhbFdlaWdodAUAAAARZm9yZ2VzVG90YWxXZWlnaHQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACmZvcmdlU2hhcmUFAAAACmZvcmdlU2hhcmUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAD2ZvcmdlQmxvY2tWYWx1ZQUAAAAPZm9yZ2VCbG9ja1ZhbHVlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAtjYWxsZXJTaGFyZQUAAAALY2FsbGVyU2hhcmUFAAAAA25pbAAAAACEuIER", "height": 1482004, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DobJCN8pF8hqyRT9xRUfLfeYXHmgTKF5ocqNcsVs1BHE Next: 4XxNQYrsxXvBTATQ4RS8gnWKpy5vNbBBdLq9nMCZ1Wcu Diff:
Old | New | Differences | |
---|---|---|---|
214 | 214 | let ae = fraction(1, O, T) | |
215 | 215 | let af = fraction(h, ae, 1) | |
216 | 216 | let ag = (fraction(ad, ac, K) * af) | |
217 | - | [IntegerEntry("forgeWeight", O), IntegerEntry("forgeSupplies", K), IntegerEntry("forgesTotalWeight", T), IntegerEntry("forgeShare", ae), IntegerEntry("forgeBlockValue", af), IntegerEntry("callerShare", ag)] | |
217 | + | [IntegerEntry("assetQuantity", ac), IntegerEntry("eligibleBlocks", ad), IntegerEntry("forgeWeight", O), IntegerEntry("forgeSupplies", K), IntegerEntry("forgesTotalWeight", T), IntegerEntry("forgeShare", ae), IntegerEntry("forgeBlockValue", af), IntegerEntry("callerShare", ag)] | |
218 | 218 | } | |
219 | 219 | } | |
220 | 220 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1 | |
5 | 5 | ||
6 | 6 | let b = "___" | |
7 | 7 | ||
8 | 8 | let c = [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000] | |
9 | 9 | ||
10 | 10 | let d = 9223372036854775807 | |
11 | 11 | ||
12 | 12 | let e = addressFromStringValue("3Myojf1j7W2S5XSKemGaqErcSYghqCgQ1gp") | |
13 | 13 | ||
14 | 14 | let f = addressFromStringValue("3MutTVXh7Z2m9Cfzx982D4nm7h9Yzr3Ra9a") | |
15 | 15 | ||
16 | 16 | let g = base58'8c6SCeWJj6M1VFBaFEg2LWxYS77ZHkmiMeAs6MMSDi1v' | |
17 | 17 | ||
18 | 18 | let h = 1000000000000 | |
19 | 19 | ||
20 | 20 | let i = 0 | |
21 | 21 | ||
22 | 22 | let j = 100000 | |
23 | 23 | ||
24 | 24 | let k = "MAIN_OPERATOR" | |
25 | 25 | ||
26 | 26 | let l = "PRIVILEGE" | |
27 | 27 | ||
28 | 28 | let m = "R" | |
29 | 29 | ||
30 | 30 | let n = "FORGES_TOTAL_WEIGHT" | |
31 | 31 | ||
32 | 32 | let o = "FS_ENABLED_" | |
33 | 33 | ||
34 | 34 | let p = "FS_SUPPLIES_" | |
35 | 35 | ||
36 | 36 | let q = "FS_WEIGHT_" | |
37 | 37 | ||
38 | 38 | func r (s) = if ((contains(s, b) == false)) | |
39 | 39 | then (contains(s, " ") == false) | |
40 | 40 | else false | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func t (u) = { | |
44 | 44 | let v = u | |
45 | 45 | if ($isInstanceOf(v, "String")) | |
46 | 46 | then { | |
47 | 47 | let w = v | |
48 | 48 | let x = parseInt(w) | |
49 | 49 | if ($isInstanceOf(x, "Int")) | |
50 | 50 | then { | |
51 | 51 | let y = x | |
52 | 52 | if ((y >= 0)) | |
53 | 53 | then (d >= y) | |
54 | 54 | else false | |
55 | 55 | } | |
56 | 56 | else false | |
57 | 57 | } | |
58 | 58 | else if ($isInstanceOf(v, "Int")) | |
59 | 59 | then { | |
60 | 60 | let y = v | |
61 | 61 | if ((y >= 0)) | |
62 | 62 | then (d >= y) | |
63 | 63 | else false | |
64 | 64 | } | |
65 | 65 | else false | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func z (A) = { | |
70 | 70 | let B = valueOrErrorMessage(parseInt(A), "Not a string int") | |
71 | 71 | if ((t(B) != true)) | |
72 | 72 | then throw("Not safe") | |
73 | 73 | else B | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func C (D) = { | |
78 | 78 | let v = D | |
79 | 79 | if ($isInstanceOf(v, "String")) | |
80 | 80 | then { | |
81 | 81 | let w = v | |
82 | 82 | isDefined(assetInfo(fromBase58String(w))) | |
83 | 83 | } | |
84 | 84 | else if ($isInstanceOf(v, "ByteVector")) | |
85 | 85 | then { | |
86 | 86 | let E = v | |
87 | 87 | isDefined(assetInfo(E)) | |
88 | 88 | } | |
89 | 89 | else false | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func F (D) = isDefined(getBoolean(this, (o + D))) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func G (H,I) = if ((addressFromStringValue(getStringValue(e, k)) == H)) | |
97 | 97 | then true | |
98 | 98 | else { | |
99 | 99 | let v = getInteger(e, (((((l + b) + toBase58String(H.bytes)) + b) + toBase58String(this.bytes)) + I)) | |
100 | 100 | if ($isInstanceOf(v, "Int")) | |
101 | 101 | then { | |
102 | 102 | let y = v | |
103 | 103 | true | |
104 | 104 | } | |
105 | 105 | else false | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func J (K) = fraction(1, d, K) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | @Callable(L) | |
113 | 113 | func addAssetToWhitelist (M,N) = if ((G(L.caller, "addAssetToWhitelist") != true)) | |
114 | 114 | then throw("Access denied") | |
115 | 115 | else if (if ((C(M) != true)) | |
116 | 116 | then true | |
117 | 117 | else (t(N) != true)) | |
118 | 118 | then throw("Data validation") | |
119 | 119 | else if ((F(M) != false)) | |
120 | 120 | then throw("Asset already whitelisted") | |
121 | 121 | else { | |
122 | 122 | let O = J(N) | |
123 | 123 | let P = (getIntegerValue(this, n) + O) | |
124 | 124 | [BooleanEntry((o + M), true), IntegerEntry((p + M), N), IntegerEntry((q + M), O), IntegerEntry(n, P)] | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | ||
129 | 129 | @Callable(L) | |
130 | 130 | func removeAssetFromWhitelist (Q) = if ((G(L.caller, "removeAssetFromWhitelist") != true)) | |
131 | 131 | then throw("Access denied") | |
132 | 132 | else if ((C(Q) != true)) | |
133 | 133 | then throw("Data validation") | |
134 | 134 | else if ((F(Q) != true)) | |
135 | 135 | then throw("Asset not whitelisted") | |
136 | 136 | else { | |
137 | 137 | let R = [DeleteEntry((o + Q)), DeleteEntry((p + Q)), DeleteEntry((q + Q))] | |
138 | 138 | if ((getBooleanValue(this, (o + Q)) != true)) | |
139 | 139 | then R | |
140 | 140 | else IntegerEntry(n, (getIntegerValue(this, n) - getIntegerValue(this, (q + Q)))) :: R | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(L) | |
146 | 146 | func enableDisableForge (S) = if ((G(L.caller, "enableDisableForge") != true)) | |
147 | 147 | then throw("Access denied") | |
148 | 148 | else if ((C(S) != true)) | |
149 | 149 | then throw("Data validation") | |
150 | 150 | else { | |
151 | 151 | let O = getIntegerValue(this, q) | |
152 | 152 | let T = getIntegerValue(this, n) | |
153 | 153 | if ((getBooleanValue(this, (o + S)) != true)) | |
154 | 154 | then [IntegerEntry(n, (T + O)), BooleanEntry((o + S), true)] | |
155 | 155 | else [IntegerEntry(n, (T - O)), BooleanEntry((o + S), false)] | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Callable(L) | |
161 | 161 | func updateForgeAssetSupplies (U,V) = if ((G(L.caller, "updateForgeAssetSupplies") != true)) | |
162 | 162 | then throw("Access denied") | |
163 | 163 | else if (if ((C(U) != true)) | |
164 | 164 | then true | |
165 | 165 | else (t(V) != true)) | |
166 | 166 | then throw("Data validation") | |
167 | 167 | else if ((F(U) != true)) | |
168 | 168 | then throw("Asset not whitelisted") | |
169 | 169 | else { | |
170 | 170 | let W = getIntegerValue(this, (q + U)) | |
171 | 171 | let X = J(V) | |
172 | 172 | let R = [IntegerEntry((q + U), X), IntegerEntry((p + U), V)] | |
173 | 173 | if ((getBooleanValue(this, (o + U)) != true)) | |
174 | 174 | then R | |
175 | 175 | else IntegerEntry(n, ((getIntegerValue(this, n) + X) - W)) :: R | |
176 | 176 | } | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | ||
180 | 180 | @Callable(L) | |
181 | 181 | func claim () = if ((this == L.caller)) | |
182 | 182 | then throw("Self-invoke forbidden") | |
183 | 183 | else if (if ((size(L.payments) != 1)) | |
184 | 184 | then true | |
185 | 185 | else (L.payments[0].amount != 1)) | |
186 | 186 | then throw("Payment issue") | |
187 | 187 | else { | |
188 | 188 | let Y = valueOrErrorMessage(assetInfo(valueOrErrorMessage(L.payments[0].assetId, "Wrong asset type")), "Unknown asset") | |
189 | 189 | if ((Y.issuer != f)) | |
190 | 190 | then throw("Unknown issuer") | |
191 | 191 | else { | |
192 | 192 | let Z = split(Y.description, b) | |
193 | 193 | if (if ((size(Z) != 8)) | |
194 | 194 | then true | |
195 | 195 | else (Z[0] != m)) | |
196 | 196 | then throw("Not a receipt") | |
197 | 197 | else if ((F(Z[3]) != true)) | |
198 | 198 | then throw("Not whitelisted") | |
199 | 199 | else { | |
200 | 200 | let aa = z(Z[1]) | |
201 | 201 | let ab = z(Z[5]) | |
202 | 202 | let ac = z(Z[4]) | |
203 | 203 | let ad = (ab - aa) | |
204 | 204 | if (if ((i > aa)) | |
205 | 205 | then true | |
206 | 206 | else (i > ab)) | |
207 | 207 | then throw("Not eligible") | |
208 | 208 | else if ((t(ad) != true)) | |
209 | 209 | then throw("Corrupted receipt") | |
210 | 210 | else { | |
211 | 211 | let O = getIntegerValue(this, (q + Z[3])) | |
212 | 212 | let K = getIntegerValue(this, (p + Z[3])) | |
213 | 213 | let T = getIntegerValue(this, n) | |
214 | 214 | let ae = fraction(1, O, T) | |
215 | 215 | let af = fraction(h, ae, 1) | |
216 | 216 | let ag = (fraction(ad, ac, K) * af) | |
217 | - | [IntegerEntry("forgeWeight", O), IntegerEntry("forgeSupplies", K), IntegerEntry("forgesTotalWeight", T), IntegerEntry("forgeShare", ae), IntegerEntry("forgeBlockValue", af), IntegerEntry("callerShare", ag)] | |
217 | + | [IntegerEntry("assetQuantity", ac), IntegerEntry("eligibleBlocks", ad), IntegerEntry("forgeWeight", O), IntegerEntry("forgeSupplies", K), IntegerEntry("forgesTotalWeight", T), IntegerEntry("forgeShare", ae), IntegerEntry("forgeBlockValue", af), IntegerEntry("callerShare", ag)] | |
218 | 218 | } | |
219 | 219 | } | |
220 | 220 | } | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 |
github/deemru/w8io/026f985 40.63 ms ◑