tx · Dx2SV1JCHKuP6j3NR7k47VFDPgwhjfnBcRzQqN97W38S 3N2V9vbP8zDTDvNMR8jQeGuUu22vz1KCv5i: -0.02200000 Waves 2022.09.12 12:58 [2225732] smart account 3N2V9vbP8zDTDvNMR8jQeGuUu22vz1KCv5i > SELF 0.00000000 Waves
{ "type": 13, "id": "Dx2SV1JCHKuP6j3NR7k47VFDPgwhjfnBcRzQqN97W38S", "fee": 2200000, "feeAssetId": null, "timestamp": 1662976715981, "version": 1, "sender": "3N2V9vbP8zDTDvNMR8jQeGuUu22vz1KCv5i", "senderPublicKey": "3JBooHFx9f8xuJuUNn9AeF8B4U8a9onpNMbvzV3UTVTk", "proofs": [ "37U6ZEWLHMTYuVbNL9rypKdhETZ4pGqoP29h83kwFCoXbk8sY9bkXehzTMt8oHxvmwAPZqHEQJTVDF16jC6qckq" ], "script": "base64:AAIFAAAAAAAAAGEIAhIDCgEIEgQKAggBEgMKAQgSBAoCCAgSAwoBCBIECgIICBIECgIICBIECgIIARIECgIIARIFCgMICAESBQoDCAgBEgUKAwgIARIDCgEIEgMKAQgSBAoCCAgSAwoBCBIAAAAAHAAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAACAAAAFCVzX19tYW5hZ2VyUHVibGljS2V5AQAAABprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAAAAACAAAAGyVzX19wZW5kaW5nTWFuYWdlclB1YmxpY0tleQEAAAAPa2V5QWRtaW5QdWJLZXlzAAAAAAIAAAAQJXNfX2FkbWluUHViS2V5cwEAAAAHa2V5VXNlcgAAAAIAAAAHYXNzZXRJZAAAAAdhZGRyZXNzCQAEuQAAAAIJAARMAAAAAgIAAAAEJXMlcwkABEwAAAACBQAAAAdhc3NldElkCQAETAAAAAIFAAAAB2FkZHJlc3MFAAAAA25pbAUAAAADU0VQAQAAABNrZXlVc2VyRml4ZWREZXBvc2l0AAAAAwAAAAdhc3NldEl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ZUVudHJ5AAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5/dHkMg==", "chainId": 84, "height": 2225732, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ELq4XBjtrY6WfpJaZMFx8d5h5LwUUzWBroq93zEYFuYy Next: GMLLNavJWcjseCSktGqJGo97VaWZ6KfznxzRyFiinHP2 Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | func f (g,h) = makeString(["%s%s", g, h], a) | |
18 | 18 | ||
19 | 19 | ||
20 | - | func i (g,h) = makeString(["%s%s%s", " | |
20 | + | func i (g,h,j) = makeString(["%s%s%s%d", "fixedDeposit", g, h, toString(j)], a) | |
21 | 21 | ||
22 | 22 | ||
23 | - | func | |
23 | + | func k (g,h) = makeString(["%s%s%s", "revoked", g, h], a) | |
24 | 24 | ||
25 | 25 | ||
26 | - | func | |
26 | + | func l (g) = makeString(["%s%s", "revokedTotal", g], a) | |
27 | 27 | ||
28 | 28 | ||
29 | - | func | |
29 | + | func m (g,h) = makeString(["%s%s%s", "vestingStart", g, h], a) | |
30 | 30 | ||
31 | 31 | ||
32 | - | func | |
32 | + | func n (g,h) = makeString(["%s%s%s", "vestingEnd", g, h], a) | |
33 | 33 | ||
34 | 34 | ||
35 | - | func | |
35 | + | func o (g,h) = makeString(["%s%s%s", "amountPerBlock", g, h], a) | |
36 | 36 | ||
37 | 37 | ||
38 | - | func | |
38 | + | func p (g) = makeString(["%s%s", "claimDenied", g], a) | |
39 | 39 | ||
40 | 40 | ||
41 | - | func q () = { | |
42 | - | let r = getString(c()) | |
43 | - | if ($isInstanceOf(r, "String")) | |
41 | + | func q (r) = throw(makeString(["vesting_multiasset.ride:", r], " ")) | |
42 | + | ||
43 | + | ||
44 | + | func s () = { | |
45 | + | let t = getString(c()) | |
46 | + | if ($isInstanceOf(t, "String")) | |
44 | 47 | then { | |
45 | - | let | |
46 | - | fromBase58String( | |
48 | + | let u = t | |
49 | + | fromBase58String(u) | |
47 | 50 | } | |
48 | - | else if ($isInstanceOf( | |
51 | + | else if ($isInstanceOf(t, "Unit")) | |
49 | 52 | then unit | |
50 | 53 | else throw("Match error") | |
51 | 54 | } | |
52 | 55 | ||
53 | 56 | ||
54 | - | func | |
55 | - | let | |
56 | - | if ($isInstanceOf( | |
57 | + | func v () = { | |
58 | + | let t = getString(d()) | |
59 | + | if ($isInstanceOf(t, "String")) | |
57 | 60 | then { | |
58 | - | let | |
59 | - | fromBase58String( | |
61 | + | let u = t | |
62 | + | fromBase58String(u) | |
60 | 63 | } | |
61 | - | else if ($isInstanceOf( | |
64 | + | else if ($isInstanceOf(t, "Unit")) | |
62 | 65 | then unit | |
63 | 66 | else throw("Match error") | |
64 | 67 | } | |
65 | 68 | ||
66 | 69 | ||
67 | - | func | |
68 | - | let | |
69 | - | let | |
70 | - | if ($isInstanceOf( | |
70 | + | func w (x) = { | |
71 | + | let y = q("permission denied") | |
72 | + | let t = s() | |
73 | + | if ($isInstanceOf(t, "ByteVector")) | |
71 | 74 | then { | |
72 | - | let | |
73 | - | if (( | |
75 | + | let z = t | |
76 | + | if ((x.callerPublicKey == z)) | |
74 | 77 | then true | |
75 | - | else | |
78 | + | else y | |
76 | 79 | } | |
77 | - | else if ($isInstanceOf( | |
78 | - | then if (( | |
80 | + | else if ($isInstanceOf(t, "Unit")) | |
81 | + | then if ((x.caller == this)) | |
79 | 82 | then true | |
80 | - | else | |
83 | + | else y | |
81 | 84 | else throw("Match error") | |
82 | 85 | } | |
83 | 86 | ||
84 | 87 | ||
85 | - | func | |
86 | - | let | |
87 | - | if (containsElement( | |
88 | + | func A (x) = { | |
89 | + | let B = split(valueOrElse(getString(e()), b), a) | |
90 | + | if (containsElement(B, toBase58String(x.callerPublicKey))) | |
88 | 91 | then true | |
89 | 92 | else { | |
90 | - | let | |
91 | - | if (( | |
93 | + | let C = w(x) | |
94 | + | if ((C == C)) | |
92 | 95 | then true | |
93 | 96 | else throw("Strict value is not equal to itself.") | |
94 | 97 | } | |
95 | 98 | } | |
96 | 99 | ||
97 | 100 | ||
98 | - | func | |
101 | + | func D (E,F,G,H) = makeString(["%d%d%d%d%d", E, F, "0", G, H], a) | |
99 | 102 | ||
100 | 103 | ||
101 | - | func | |
104 | + | func I (E,F,G,H) = D(toString(E), toString(F), toString(G), toString(H)) | |
102 | 105 | ||
103 | 106 | ||
104 | - | func | |
107 | + | func J (g,h) = parseIntValue(split(value(getString(f(g, h))), a)[1]) | |
105 | 108 | ||
106 | 109 | ||
107 | - | func | |
110 | + | func K (g,h) = parseIntValue(split(value(getString(f(g, h))), a)[2]) | |
108 | 111 | ||
109 | 112 | ||
110 | - | func | |
113 | + | func L (g,h) = parseIntValue(split(value(getString(f(g, h))), a)[3]) | |
111 | 114 | ||
112 | 115 | ||
113 | - | func | |
116 | + | func M (g,h) = parseIntValue(split(value(getString(f(g, h))), a)[5]) | |
114 | 117 | ||
115 | 118 | ||
116 | - | func | |
117 | - | let | |
118 | - | if ( | |
119 | - | then | |
119 | + | func N (g,h) = { | |
120 | + | let O = valueOrElse(getBoolean(k(g, h)), false) | |
121 | + | if (O) | |
122 | + | then K(g, h) | |
120 | 123 | else { | |
121 | - | let | |
122 | - | if (( | |
124 | + | let P = M(g, h) | |
125 | + | if ((P >= height)) | |
123 | 126 | then 0 | |
124 | 127 | else { | |
125 | - | let | |
126 | - | if ((height > | |
127 | - | then | |
128 | + | let Q = value(getInteger(n(g, h))) | |
129 | + | if ((height > Q)) | |
130 | + | then K(g, h) | |
128 | 131 | else { | |
129 | - | let | |
130 | - | (value(getInteger( | |
132 | + | let R = (height - P) | |
133 | + | (value(getInteger(o(g, h))) * R) | |
131 | 134 | } | |
132 | 135 | } | |
133 | 136 | } | |
134 | 137 | } | |
135 | 138 | ||
136 | 139 | ||
137 | - | func Q (g,h) = { | |
138 | - | let R = addressFromStringValue(h) | |
139 | - | let S = fromBase58String(g) | |
140 | - | let T = L(g, h) | |
141 | - | let U = [if ((valueOrElse(getBoolean(n(g)), false) == false)) | |
140 | + | func S (g,h,T) = valueOrElse(getInteger(i(g, h, T)), 0) | |
141 | + | ||
142 | + | ||
143 | + | func U (g,h) = { | |
144 | + | let V = addressFromStringValue(h) | |
145 | + | let W = fromBase58String(g) | |
146 | + | let X = N(g, h) | |
147 | + | let Y = [if ((valueOrElse(getBoolean(p(g)), false) == false)) | |
142 | 148 | then true | |
143 | - | else | |
149 | + | else q("asset claim denied"), if ((X != 0)) | |
144 | 150 | then true | |
145 | - | else | |
146 | - | if (( | |
151 | + | else q("nothing to claim")] | |
152 | + | if ((Y == Y)) | |
147 | 153 | then { | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | if ( | |
153 | - | then [ScriptTransfer( | |
154 | - | else [ScriptTransfer( | |
154 | + | let E = J(g, h) | |
155 | + | let F = K(g, h) | |
156 | + | let Z = L(g, h) | |
157 | + | let O = valueOrElse(getBoolean(k(g, h)), false) | |
158 | + | if (O) | |
159 | + | then [ScriptTransfer(V, F, W), StringEntry(f(g, h), I(E, 0, (Z + F), height))] | |
160 | + | else [ScriptTransfer(V, X, W), StringEntry(f(g, h), I(E, (F - X), (Z + X), height))] | |
155 | 161 | } | |
156 | 162 | else throw("Strict value is not equal to itself.") | |
157 | 163 | } | |
158 | 164 | ||
159 | 165 | ||
160 | - | @Callable(v) | |
166 | + | func aa (g,h,T) = { | |
167 | + | let Y = [if ((valueOrElse(getBoolean(p(g)), false) == false)) | |
168 | + | then true | |
169 | + | else q("asset claim denied"), if ((height > T)) | |
170 | + | then true | |
171 | + | else q("current height must be more than releaseBlock for fixed deposit"), if ((valueOrElse(getInteger(i(g, h, T)), 0) != 0)) | |
172 | + | then true | |
173 | + | else q("no fixed deposit for assetId/address/height")] | |
174 | + | if ((Y == Y)) | |
175 | + | then { | |
176 | + | let V = addressFromStringValue(h) | |
177 | + | let W = fromBase58String(g) | |
178 | + | let X = value(getInteger(i(g, h, T))) | |
179 | + | [ScriptTransfer(V, X, W), IntegerEntry(i(g, h, T), 0)] | |
180 | + | } | |
181 | + | else throw("Strict value is not equal to itself.") | |
182 | + | } | |
183 | + | ||
184 | + | ||
185 | + | @Callable(x) | |
161 | 186 | func withdrawRevoked (g) = { | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
187 | + | let X = valueOrElse(getInteger(l(g)), 0) | |
188 | + | let W = fromBase58String(g) | |
189 | + | let Y = [w(x), if ((X > 0)) | |
165 | 190 | then true | |
166 | - | else | |
167 | - | if (( | |
168 | - | then [ScriptTransfer( | |
191 | + | else q("revoked amount is zero, nothing to withdraw")] | |
192 | + | if ((Y == Y)) | |
193 | + | then [ScriptTransfer(x.caller, X, W), IntegerEntry(l(g), 0)] | |
169 | 194 | else throw("Strict value is not equal to itself.") | |
170 | 195 | } | |
171 | 196 | ||
172 | 197 | ||
173 | 198 | ||
174 | - | @Callable( | |
175 | - | func createDepositFor (h, | |
176 | - | let | |
177 | - | let g = toBase58String(value( | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
199 | + | @Callable(x) | |
200 | + | func createDepositFor (h,ab) = { | |
201 | + | let X = x.payments[0].amount | |
202 | + | let g = toBase58String(value(x.payments[0].assetId)) | |
203 | + | let ac = (height + ab) | |
204 | + | let ad = (ac - height) | |
205 | + | let ae = (X / ad) | |
206 | + | let Y = [if ((ac > height)) | |
182 | 207 | then true | |
183 | - | else | |
208 | + | else q("endHeight must be more than height"), if ((getString(f(g, h)) == unit)) | |
184 | 209 | then true | |
185 | - | else | |
210 | + | else q("deposit of this asset for user already exists"), if ((ae != 0)) | |
186 | 211 | then true | |
187 | - | else | |
188 | - | if (( | |
189 | - | then [StringEntry(f(g, h), | |
212 | + | else q("attached amount too small or blocksDuration too large — will claimed zero per block")] | |
213 | + | if ((Y == Y)) | |
214 | + | then [StringEntry(f(g, h), I(X, X, 0, height)), IntegerEntry(m(g, h), height), IntegerEntry(n(g, h), ac), IntegerEntry(o(g, h), ae)] | |
190 | 215 | else throw("Strict value is not equal to itself.") | |
191 | 216 | } | |
192 | 217 | ||
193 | 218 | ||
194 | 219 | ||
195 | - | @Callable( | |
220 | + | @Callable(x) | |
196 | 221 | func increaseDepositFor (h) = { | |
197 | - | let | |
198 | - | let g = toBase58String(value( | |
199 | - | let | |
200 | - | let | |
201 | - | then | |
222 | + | let X = x.payments[0].amount | |
223 | + | let g = toBase58String(value(x.payments[0].assetId)) | |
224 | + | let af = N(g, h) | |
225 | + | let ag = if ((af > 0)) | |
226 | + | then U(g, h) | |
202 | 227 | else unit | |
203 | - | if (( | |
228 | + | if ((ag == ag)) | |
204 | 229 | then { | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
230 | + | let ac = value(getInteger(n(g, h))) | |
231 | + | let ad = (ac - height) | |
232 | + | let ae = value(getInteger(o(g, h))) | |
233 | + | let ah = (X / ad) | |
234 | + | let ai = J(g, h) | |
235 | + | let aj = K(g, h) | |
236 | + | let ak = L(g, h) | |
237 | + | let al = M(g, h) | |
238 | + | let Y = [if ((valueOrElse(getBoolean(k(g, h)), false) == false)) | |
214 | 239 | then true | |
215 | - | else | |
240 | + | else q("deposit for user is revoked"), if ((getString(f(g, h)) != unit)) | |
216 | 241 | then true | |
217 | - | else | |
242 | + | else q("deposit for user doesn't exists"), if ((ah != 0)) | |
218 | 243 | then true | |
219 | - | else | |
220 | - | if (( | |
221 | - | then [StringEntry(f(g, h), | |
244 | + | else q("attached amount too small — increase is zero per block")] | |
245 | + | if ((Y == Y)) | |
246 | + | then [StringEntry(f(g, h), I((ai + X), (aj + X), ak, al)), IntegerEntry(o(g, h), (ae + ah))] | |
222 | 247 | else throw("Strict value is not equal to itself.") | |
223 | 248 | } | |
224 | 249 | else throw("Strict value is not equal to itself.") | |
226 | 251 | ||
227 | 252 | ||
228 | 253 | ||
229 | - | @Callable( | |
254 | + | @Callable(x) | |
230 | 255 | func revokeDepositFor (g,h) = { | |
231 | - | let C = H(g, h) | |
232 | - | let D = I(g, h) | |
233 | 256 | let E = J(g, h) | |
234 | 257 | let F = K(g, h) | |
235 | - | let ah = L(g, h) | |
236 | - | let ai = valueOrElse(getInteger(j(g)), 0) | |
237 | - | let aj = (D - ah) | |
238 | - | let ak = (ai + aj) | |
239 | - | let U = [y(v), if ((getString(f(g, h)) != unit)) | |
258 | + | let G = L(g, h) | |
259 | + | let H = M(g, h) | |
260 | + | let am = N(g, h) | |
261 | + | let an = valueOrElse(getInteger(l(g)), 0) | |
262 | + | let ao = (F - am) | |
263 | + | let ap = (an + ao) | |
264 | + | let Y = [A(x), if ((getString(f(g, h)) != unit)) | |
240 | 265 | then true | |
241 | - | else | |
266 | + | else q("deposit of this asset for user is not exists"), if ((ap > an)) | |
242 | 267 | then true | |
243 | - | else | |
244 | - | if (( | |
245 | - | then [BooleanEntry( | |
268 | + | else q("newRevokedTotal can't be less or equal than revokedTotal")] | |
269 | + | if ((Y == Y)) | |
270 | + | then [BooleanEntry(k(g, h), true), IntegerEntry(l(g), ap), StringEntry(f(g, h), I(E, am, G, H))] | |
246 | 271 | else throw("Strict value is not equal to itself.") | |
247 | 272 | } | |
248 | 273 | ||
249 | 274 | ||
250 | 275 | ||
251 | - | @Callable( | |
252 | - | func claim (g) = | |
276 | + | @Callable(x) | |
277 | + | func claim (g) = U(g, toBase58String(x.caller.bytes)) | |
253 | 278 | ||
254 | 279 | ||
255 | 280 | ||
256 | - | @Callable( | |
257 | - | func claimFor (g,h) = | |
281 | + | @Callable(x) | |
282 | + | func claimFor (g,h) = U(g, h) | |
258 | 283 | ||
259 | 284 | ||
260 | 285 | ||
261 | - | @Callable( | |
286 | + | @Callable(x) | |
262 | 287 | func claimREADONLY (g,h) = { | |
263 | - | let | |
264 | - | $Tuple2(nil, | |
288 | + | let X = N(g, h) | |
289 | + | $Tuple2(nil, X) | |
265 | 290 | } | |
266 | 291 | ||
267 | 292 | ||
268 | 293 | ||
269 | - | @Callable(v) | |
270 | - | func denyAssetClaim (g) = { | |
271 | - | let U = [y(v), if ((valueOrElse(getBoolean(n(g)), false) == false)) | |
294 | + | @Callable(x) | |
295 | + | func createFixedDepositFor (h,T) = { | |
296 | + | let X = x.payments[0].amount | |
297 | + | let g = toBase58String(value(x.payments[0].assetId)) | |
298 | + | let Y = [if ((T > height)) | |
272 | 299 | then true | |
273 | - | else o("asset already denied")] | |
274 | - | if ((U == U)) | |
275 | - | then [BooleanEntry(n(g), true)] | |
300 | + | else q("releaseBlock must be more than height"), if ((getInteger(i(g, h, T)) == unit)) | |
301 | + | then true | |
302 | + | else q("deposit for this height for user already exists")] | |
303 | + | if ((Y == Y)) | |
304 | + | then [IntegerEntry(i(g, h, T), X)] | |
276 | 305 | else throw("Strict value is not equal to itself.") | |
277 | 306 | } | |
278 | 307 | ||
279 | 308 | ||
280 | 309 | ||
281 | - | @Callable(v) | |
282 | - | func allowAssetClaim (g) = { | |
283 | - | let U = [y(v), if ((valueOrElse(getBoolean(n(g)), false) == true)) | |
310 | + | @Callable(x) | |
311 | + | func claimFixed (g,T) = aa(g, toBase58String(x.caller.bytes), T) | |
312 | + | ||
313 | + | ||
314 | + | ||
315 | + | @Callable(x) | |
316 | + | func claimFixedFor (g,h,T) = aa(g, h, T) | |
317 | + | ||
318 | + | ||
319 | + | ||
320 | + | @Callable(x) | |
321 | + | func claimFixedREADONLY (g,h,T) = { | |
322 | + | let X = S(g, h, T) | |
323 | + | $Tuple2(nil, X) | |
324 | + | } | |
325 | + | ||
326 | + | ||
327 | + | ||
328 | + | @Callable(x) | |
329 | + | func revokeFixedDepositFor (g,h,T) = { | |
330 | + | let Y = [A(x), if ((height > T)) | |
284 | 331 | then true | |
285 | - | else o("asset already allowed")] | |
286 | - | if ((U == U)) | |
287 | - | then [DeleteEntry(n(g))] | |
332 | + | else q("can't revoke deposit in past"), if ((valueOrElse(getInteger(i(g, h, T)), 0) != 0)) | |
333 | + | then true | |
334 | + | else q("deposit for this height for user not exists")] | |
335 | + | if ((Y == Y)) | |
336 | + | then { | |
337 | + | let X = value(getInteger(i(g, h, T))) | |
338 | + | [IntegerEntry(l(g), X), IntegerEntry(i(g, h, T), 0)] | |
339 | + | } | |
288 | 340 | else throw("Strict value is not equal to itself.") | |
289 | 341 | } | |
290 | 342 | ||
291 | 343 | ||
292 | 344 | ||
293 | - | @Callable(v) | |
294 | - | func stats (g,h) = $Tuple2(nil, [value(getInteger(k(g, h))), value(getInteger(l(g, h))), H(g, h), J(g, h), I(g, h), L(g, h)]) | |
345 | + | @Callable(x) | |
346 | + | func denyAssetClaim (g) = { | |
347 | + | let Y = [A(x), if ((valueOrElse(getBoolean(p(g)), false) == false)) | |
348 | + | then true | |
349 | + | else q("asset already denied")] | |
350 | + | if ((Y == Y)) | |
351 | + | then [BooleanEntry(p(g), true)] | |
352 | + | else throw("Strict value is not equal to itself.") | |
353 | + | } | |
295 | 354 | ||
296 | 355 | ||
297 | 356 | ||
298 | - | @Callable(v) | |
299 | - | func setManager (al) = { | |
300 | - | let am = u(v) | |
301 | - | if ((am == am)) | |
357 | + | @Callable(x) | |
358 | + | func allowAssetClaim (g) = { | |
359 | + | let Y = [A(x), if ((valueOrElse(getBoolean(p(g)), false) == true)) | |
360 | + | then true | |
361 | + | else q("asset already allowed")] | |
362 | + | if ((Y == Y)) | |
363 | + | then [DeleteEntry(p(g))] | |
364 | + | else throw("Strict value is not equal to itself.") | |
365 | + | } | |
366 | + | ||
367 | + | ||
368 | + | ||
369 | + | @Callable(x) | |
370 | + | func stats (g,h) = $Tuple2(nil, [value(getInteger(m(g, h))), value(getInteger(n(g, h))), J(g, h), L(g, h), K(g, h), N(g, h)]) | |
371 | + | ||
372 | + | ||
373 | + | ||
374 | + | @Callable(x) | |
375 | + | func setManager (aq) = { | |
376 | + | let ar = w(x) | |
377 | + | if ((ar == ar)) | |
302 | 378 | then { | |
303 | - | let | |
304 | - | if (( | |
305 | - | then [StringEntry(d(), | |
379 | + | let as = fromBase58String(aq) | |
380 | + | if ((as == as)) | |
381 | + | then [StringEntry(d(), aq)] | |
306 | 382 | else throw("Strict value is not equal to itself.") | |
307 | 383 | } | |
308 | 384 | else throw("Strict value is not equal to itself.") | |
310 | 386 | ||
311 | 387 | ||
312 | 388 | ||
313 | - | @Callable( | |
389 | + | @Callable(x) | |
314 | 390 | func confirmManager () = { | |
315 | - | let | |
316 | - | let | |
391 | + | let at = v() | |
392 | + | let au = if (isDefined(at)) | |
317 | 393 | then true | |
318 | - | else | |
319 | - | if (( | |
394 | + | else q("no pending manager") | |
395 | + | if ((au == au)) | |
320 | 396 | then { | |
321 | - | let | |
397 | + | let av = if ((x.callerPublicKey == value(at))) | |
322 | 398 | then true | |
323 | - | else | |
324 | - | if (( | |
325 | - | then [StringEntry(c(), toBase58String(value( | |
399 | + | else q("you are not pending manager") | |
400 | + | if ((av == av)) | |
401 | + | then [StringEntry(c(), toBase58String(value(at))), DeleteEntry(d())] | |
326 | 402 | else throw("Strict value is not equal to itself.") | |
327 | 403 | } | |
328 | 404 | else throw("Strict value is not equal to itself.") | |
329 | 405 | } | |
330 | 406 | ||
331 | 407 | ||
332 | - | @Verifier( | |
333 | - | func | |
334 | - | let | |
335 | - | let | |
336 | - | if ($isInstanceOf( | |
408 | + | @Verifier(aw) | |
409 | + | func ax () = { | |
410 | + | let ay = { | |
411 | + | let t = s() | |
412 | + | if ($isInstanceOf(t, "ByteVector")) | |
337 | 413 | then { | |
338 | - | let | |
339 | - | | |
414 | + | let z = t | |
415 | + | z | |
340 | 416 | } | |
341 | - | else if ($isInstanceOf( | |
342 | - | then | |
417 | + | else if ($isInstanceOf(t, "Unit")) | |
418 | + | then aw.senderPublicKey | |
343 | 419 | else throw("Match error") | |
344 | 420 | } | |
345 | - | sigVerify( | |
421 | + | sigVerify(aw.bodyBytes, aw.proofs[0], ay) | |
346 | 422 | } | |
347 | 423 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "" | |
7 | 7 | ||
8 | 8 | func c () = "%s__managerPublicKey" | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func d () = "%s__pendingManagerPublicKey" | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func e () = "%s__adminPubKeys" | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func f (g,h) = makeString(["%s%s", g, h], a) | |
18 | 18 | ||
19 | 19 | ||
20 | - | func i (g,h) = makeString(["%s%s%s", " | |
20 | + | func i (g,h,j) = makeString(["%s%s%s%d", "fixedDeposit", g, h, toString(j)], a) | |
21 | 21 | ||
22 | 22 | ||
23 | - | func | |
23 | + | func k (g,h) = makeString(["%s%s%s", "revoked", g, h], a) | |
24 | 24 | ||
25 | 25 | ||
26 | - | func | |
26 | + | func l (g) = makeString(["%s%s", "revokedTotal", g], a) | |
27 | 27 | ||
28 | 28 | ||
29 | - | func | |
29 | + | func m (g,h) = makeString(["%s%s%s", "vestingStart", g, h], a) | |
30 | 30 | ||
31 | 31 | ||
32 | - | func | |
32 | + | func n (g,h) = makeString(["%s%s%s", "vestingEnd", g, h], a) | |
33 | 33 | ||
34 | 34 | ||
35 | - | func | |
35 | + | func o (g,h) = makeString(["%s%s%s", "amountPerBlock", g, h], a) | |
36 | 36 | ||
37 | 37 | ||
38 | - | func | |
38 | + | func p (g) = makeString(["%s%s", "claimDenied", g], a) | |
39 | 39 | ||
40 | 40 | ||
41 | - | func q () = { | |
42 | - | let r = getString(c()) | |
43 | - | if ($isInstanceOf(r, "String")) | |
41 | + | func q (r) = throw(makeString(["vesting_multiasset.ride:", r], " ")) | |
42 | + | ||
43 | + | ||
44 | + | func s () = { | |
45 | + | let t = getString(c()) | |
46 | + | if ($isInstanceOf(t, "String")) | |
44 | 47 | then { | |
45 | - | let | |
46 | - | fromBase58String( | |
48 | + | let u = t | |
49 | + | fromBase58String(u) | |
47 | 50 | } | |
48 | - | else if ($isInstanceOf( | |
51 | + | else if ($isInstanceOf(t, "Unit")) | |
49 | 52 | then unit | |
50 | 53 | else throw("Match error") | |
51 | 54 | } | |
52 | 55 | ||
53 | 56 | ||
54 | - | func | |
55 | - | let | |
56 | - | if ($isInstanceOf( | |
57 | + | func v () = { | |
58 | + | let t = getString(d()) | |
59 | + | if ($isInstanceOf(t, "String")) | |
57 | 60 | then { | |
58 | - | let | |
59 | - | fromBase58String( | |
61 | + | let u = t | |
62 | + | fromBase58String(u) | |
60 | 63 | } | |
61 | - | else if ($isInstanceOf( | |
64 | + | else if ($isInstanceOf(t, "Unit")) | |
62 | 65 | then unit | |
63 | 66 | else throw("Match error") | |
64 | 67 | } | |
65 | 68 | ||
66 | 69 | ||
67 | - | func | |
68 | - | let | |
69 | - | let | |
70 | - | if ($isInstanceOf( | |
70 | + | func w (x) = { | |
71 | + | let y = q("permission denied") | |
72 | + | let t = s() | |
73 | + | if ($isInstanceOf(t, "ByteVector")) | |
71 | 74 | then { | |
72 | - | let | |
73 | - | if (( | |
75 | + | let z = t | |
76 | + | if ((x.callerPublicKey == z)) | |
74 | 77 | then true | |
75 | - | else | |
78 | + | else y | |
76 | 79 | } | |
77 | - | else if ($isInstanceOf( | |
78 | - | then if (( | |
80 | + | else if ($isInstanceOf(t, "Unit")) | |
81 | + | then if ((x.caller == this)) | |
79 | 82 | then true | |
80 | - | else | |
83 | + | else y | |
81 | 84 | else throw("Match error") | |
82 | 85 | } | |
83 | 86 | ||
84 | 87 | ||
85 | - | func | |
86 | - | let | |
87 | - | if (containsElement( | |
88 | + | func A (x) = { | |
89 | + | let B = split(valueOrElse(getString(e()), b), a) | |
90 | + | if (containsElement(B, toBase58String(x.callerPublicKey))) | |
88 | 91 | then true | |
89 | 92 | else { | |
90 | - | let | |
91 | - | if (( | |
93 | + | let C = w(x) | |
94 | + | if ((C == C)) | |
92 | 95 | then true | |
93 | 96 | else throw("Strict value is not equal to itself.") | |
94 | 97 | } | |
95 | 98 | } | |
96 | 99 | ||
97 | 100 | ||
98 | - | func | |
101 | + | func D (E,F,G,H) = makeString(["%d%d%d%d%d", E, F, "0", G, H], a) | |
99 | 102 | ||
100 | 103 | ||
101 | - | func | |
104 | + | func I (E,F,G,H) = D(toString(E), toString(F), toString(G), toString(H)) | |
102 | 105 | ||
103 | 106 | ||
104 | - | func | |
107 | + | func J (g,h) = parseIntValue(split(value(getString(f(g, h))), a)[1]) | |
105 | 108 | ||
106 | 109 | ||
107 | - | func | |
110 | + | func K (g,h) = parseIntValue(split(value(getString(f(g, h))), a)[2]) | |
108 | 111 | ||
109 | 112 | ||
110 | - | func | |
113 | + | func L (g,h) = parseIntValue(split(value(getString(f(g, h))), a)[3]) | |
111 | 114 | ||
112 | 115 | ||
113 | - | func | |
116 | + | func M (g,h) = parseIntValue(split(value(getString(f(g, h))), a)[5]) | |
114 | 117 | ||
115 | 118 | ||
116 | - | func | |
117 | - | let | |
118 | - | if ( | |
119 | - | then | |
119 | + | func N (g,h) = { | |
120 | + | let O = valueOrElse(getBoolean(k(g, h)), false) | |
121 | + | if (O) | |
122 | + | then K(g, h) | |
120 | 123 | else { | |
121 | - | let | |
122 | - | if (( | |
124 | + | let P = M(g, h) | |
125 | + | if ((P >= height)) | |
123 | 126 | then 0 | |
124 | 127 | else { | |
125 | - | let | |
126 | - | if ((height > | |
127 | - | then | |
128 | + | let Q = value(getInteger(n(g, h))) | |
129 | + | if ((height > Q)) | |
130 | + | then K(g, h) | |
128 | 131 | else { | |
129 | - | let | |
130 | - | (value(getInteger( | |
132 | + | let R = (height - P) | |
133 | + | (value(getInteger(o(g, h))) * R) | |
131 | 134 | } | |
132 | 135 | } | |
133 | 136 | } | |
134 | 137 | } | |
135 | 138 | ||
136 | 139 | ||
137 | - | func Q (g,h) = { | |
138 | - | let R = addressFromStringValue(h) | |
139 | - | let S = fromBase58String(g) | |
140 | - | let T = L(g, h) | |
141 | - | let U = [if ((valueOrElse(getBoolean(n(g)), false) == false)) | |
140 | + | func S (g,h,T) = valueOrElse(getInteger(i(g, h, T)), 0) | |
141 | + | ||
142 | + | ||
143 | + | func U (g,h) = { | |
144 | + | let V = addressFromStringValue(h) | |
145 | + | let W = fromBase58String(g) | |
146 | + | let X = N(g, h) | |
147 | + | let Y = [if ((valueOrElse(getBoolean(p(g)), false) == false)) | |
142 | 148 | then true | |
143 | - | else | |
149 | + | else q("asset claim denied"), if ((X != 0)) | |
144 | 150 | then true | |
145 | - | else | |
146 | - | if (( | |
151 | + | else q("nothing to claim")] | |
152 | + | if ((Y == Y)) | |
147 | 153 | then { | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | if ( | |
153 | - | then [ScriptTransfer( | |
154 | - | else [ScriptTransfer( | |
154 | + | let E = J(g, h) | |
155 | + | let F = K(g, h) | |
156 | + | let Z = L(g, h) | |
157 | + | let O = valueOrElse(getBoolean(k(g, h)), false) | |
158 | + | if (O) | |
159 | + | then [ScriptTransfer(V, F, W), StringEntry(f(g, h), I(E, 0, (Z + F), height))] | |
160 | + | else [ScriptTransfer(V, X, W), StringEntry(f(g, h), I(E, (F - X), (Z + X), height))] | |
155 | 161 | } | |
156 | 162 | else throw("Strict value is not equal to itself.") | |
157 | 163 | } | |
158 | 164 | ||
159 | 165 | ||
160 | - | @Callable(v) | |
166 | + | func aa (g,h,T) = { | |
167 | + | let Y = [if ((valueOrElse(getBoolean(p(g)), false) == false)) | |
168 | + | then true | |
169 | + | else q("asset claim denied"), if ((height > T)) | |
170 | + | then true | |
171 | + | else q("current height must be more than releaseBlock for fixed deposit"), if ((valueOrElse(getInteger(i(g, h, T)), 0) != 0)) | |
172 | + | then true | |
173 | + | else q("no fixed deposit for assetId/address/height")] | |
174 | + | if ((Y == Y)) | |
175 | + | then { | |
176 | + | let V = addressFromStringValue(h) | |
177 | + | let W = fromBase58String(g) | |
178 | + | let X = value(getInteger(i(g, h, T))) | |
179 | + | [ScriptTransfer(V, X, W), IntegerEntry(i(g, h, T), 0)] | |
180 | + | } | |
181 | + | else throw("Strict value is not equal to itself.") | |
182 | + | } | |
183 | + | ||
184 | + | ||
185 | + | @Callable(x) | |
161 | 186 | func withdrawRevoked (g) = { | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
187 | + | let X = valueOrElse(getInteger(l(g)), 0) | |
188 | + | let W = fromBase58String(g) | |
189 | + | let Y = [w(x), if ((X > 0)) | |
165 | 190 | then true | |
166 | - | else | |
167 | - | if (( | |
168 | - | then [ScriptTransfer( | |
191 | + | else q("revoked amount is zero, nothing to withdraw")] | |
192 | + | if ((Y == Y)) | |
193 | + | then [ScriptTransfer(x.caller, X, W), IntegerEntry(l(g), 0)] | |
169 | 194 | else throw("Strict value is not equal to itself.") | |
170 | 195 | } | |
171 | 196 | ||
172 | 197 | ||
173 | 198 | ||
174 | - | @Callable( | |
175 | - | func createDepositFor (h, | |
176 | - | let | |
177 | - | let g = toBase58String(value( | |
178 | - | let | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
199 | + | @Callable(x) | |
200 | + | func createDepositFor (h,ab) = { | |
201 | + | let X = x.payments[0].amount | |
202 | + | let g = toBase58String(value(x.payments[0].assetId)) | |
203 | + | let ac = (height + ab) | |
204 | + | let ad = (ac - height) | |
205 | + | let ae = (X / ad) | |
206 | + | let Y = [if ((ac > height)) | |
182 | 207 | then true | |
183 | - | else | |
208 | + | else q("endHeight must be more than height"), if ((getString(f(g, h)) == unit)) | |
184 | 209 | then true | |
185 | - | else | |
210 | + | else q("deposit of this asset for user already exists"), if ((ae != 0)) | |
186 | 211 | then true | |
187 | - | else | |
188 | - | if (( | |
189 | - | then [StringEntry(f(g, h), | |
212 | + | else q("attached amount too small or blocksDuration too large — will claimed zero per block")] | |
213 | + | if ((Y == Y)) | |
214 | + | then [StringEntry(f(g, h), I(X, X, 0, height)), IntegerEntry(m(g, h), height), IntegerEntry(n(g, h), ac), IntegerEntry(o(g, h), ae)] | |
190 | 215 | else throw("Strict value is not equal to itself.") | |
191 | 216 | } | |
192 | 217 | ||
193 | 218 | ||
194 | 219 | ||
195 | - | @Callable( | |
220 | + | @Callable(x) | |
196 | 221 | func increaseDepositFor (h) = { | |
197 | - | let | |
198 | - | let g = toBase58String(value( | |
199 | - | let | |
200 | - | let | |
201 | - | then | |
222 | + | let X = x.payments[0].amount | |
223 | + | let g = toBase58String(value(x.payments[0].assetId)) | |
224 | + | let af = N(g, h) | |
225 | + | let ag = if ((af > 0)) | |
226 | + | then U(g, h) | |
202 | 227 | else unit | |
203 | - | if (( | |
228 | + | if ((ag == ag)) | |
204 | 229 | then { | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
230 | + | let ac = value(getInteger(n(g, h))) | |
231 | + | let ad = (ac - height) | |
232 | + | let ae = value(getInteger(o(g, h))) | |
233 | + | let ah = (X / ad) | |
234 | + | let ai = J(g, h) | |
235 | + | let aj = K(g, h) | |
236 | + | let ak = L(g, h) | |
237 | + | let al = M(g, h) | |
238 | + | let Y = [if ((valueOrElse(getBoolean(k(g, h)), false) == false)) | |
214 | 239 | then true | |
215 | - | else | |
240 | + | else q("deposit for user is revoked"), if ((getString(f(g, h)) != unit)) | |
216 | 241 | then true | |
217 | - | else | |
242 | + | else q("deposit for user doesn't exists"), if ((ah != 0)) | |
218 | 243 | then true | |
219 | - | else | |
220 | - | if (( | |
221 | - | then [StringEntry(f(g, h), | |
244 | + | else q("attached amount too small — increase is zero per block")] | |
245 | + | if ((Y == Y)) | |
246 | + | then [StringEntry(f(g, h), I((ai + X), (aj + X), ak, al)), IntegerEntry(o(g, h), (ae + ah))] | |
222 | 247 | else throw("Strict value is not equal to itself.") | |
223 | 248 | } | |
224 | 249 | else throw("Strict value is not equal to itself.") | |
225 | 250 | } | |
226 | 251 | ||
227 | 252 | ||
228 | 253 | ||
229 | - | @Callable( | |
254 | + | @Callable(x) | |
230 | 255 | func revokeDepositFor (g,h) = { | |
231 | - | let C = H(g, h) | |
232 | - | let D = I(g, h) | |
233 | 256 | let E = J(g, h) | |
234 | 257 | let F = K(g, h) | |
235 | - | let ah = L(g, h) | |
236 | - | let ai = valueOrElse(getInteger(j(g)), 0) | |
237 | - | let aj = (D - ah) | |
238 | - | let ak = (ai + aj) | |
239 | - | let U = [y(v), if ((getString(f(g, h)) != unit)) | |
258 | + | let G = L(g, h) | |
259 | + | let H = M(g, h) | |
260 | + | let am = N(g, h) | |
261 | + | let an = valueOrElse(getInteger(l(g)), 0) | |
262 | + | let ao = (F - am) | |
263 | + | let ap = (an + ao) | |
264 | + | let Y = [A(x), if ((getString(f(g, h)) != unit)) | |
240 | 265 | then true | |
241 | - | else | |
266 | + | else q("deposit of this asset for user is not exists"), if ((ap > an)) | |
242 | 267 | then true | |
243 | - | else | |
244 | - | if (( | |
245 | - | then [BooleanEntry( | |
268 | + | else q("newRevokedTotal can't be less or equal than revokedTotal")] | |
269 | + | if ((Y == Y)) | |
270 | + | then [BooleanEntry(k(g, h), true), IntegerEntry(l(g), ap), StringEntry(f(g, h), I(E, am, G, H))] | |
246 | 271 | else throw("Strict value is not equal to itself.") | |
247 | 272 | } | |
248 | 273 | ||
249 | 274 | ||
250 | 275 | ||
251 | - | @Callable( | |
252 | - | func claim (g) = | |
276 | + | @Callable(x) | |
277 | + | func claim (g) = U(g, toBase58String(x.caller.bytes)) | |
253 | 278 | ||
254 | 279 | ||
255 | 280 | ||
256 | - | @Callable( | |
257 | - | func claimFor (g,h) = | |
281 | + | @Callable(x) | |
282 | + | func claimFor (g,h) = U(g, h) | |
258 | 283 | ||
259 | 284 | ||
260 | 285 | ||
261 | - | @Callable( | |
286 | + | @Callable(x) | |
262 | 287 | func claimREADONLY (g,h) = { | |
263 | - | let | |
264 | - | $Tuple2(nil, | |
288 | + | let X = N(g, h) | |
289 | + | $Tuple2(nil, X) | |
265 | 290 | } | |
266 | 291 | ||
267 | 292 | ||
268 | 293 | ||
269 | - | @Callable(v) | |
270 | - | func denyAssetClaim (g) = { | |
271 | - | let U = [y(v), if ((valueOrElse(getBoolean(n(g)), false) == false)) | |
294 | + | @Callable(x) | |
295 | + | func createFixedDepositFor (h,T) = { | |
296 | + | let X = x.payments[0].amount | |
297 | + | let g = toBase58String(value(x.payments[0].assetId)) | |
298 | + | let Y = [if ((T > height)) | |
272 | 299 | then true | |
273 | - | else o("asset already denied")] | |
274 | - | if ((U == U)) | |
275 | - | then [BooleanEntry(n(g), true)] | |
300 | + | else q("releaseBlock must be more than height"), if ((getInteger(i(g, h, T)) == unit)) | |
301 | + | then true | |
302 | + | else q("deposit for this height for user already exists")] | |
303 | + | if ((Y == Y)) | |
304 | + | then [IntegerEntry(i(g, h, T), X)] | |
276 | 305 | else throw("Strict value is not equal to itself.") | |
277 | 306 | } | |
278 | 307 | ||
279 | 308 | ||
280 | 309 | ||
281 | - | @Callable(v) | |
282 | - | func allowAssetClaim (g) = { | |
283 | - | let U = [y(v), if ((valueOrElse(getBoolean(n(g)), false) == true)) | |
310 | + | @Callable(x) | |
311 | + | func claimFixed (g,T) = aa(g, toBase58String(x.caller.bytes), T) | |
312 | + | ||
313 | + | ||
314 | + | ||
315 | + | @Callable(x) | |
316 | + | func claimFixedFor (g,h,T) = aa(g, h, T) | |
317 | + | ||
318 | + | ||
319 | + | ||
320 | + | @Callable(x) | |
321 | + | func claimFixedREADONLY (g,h,T) = { | |
322 | + | let X = S(g, h, T) | |
323 | + | $Tuple2(nil, X) | |
324 | + | } | |
325 | + | ||
326 | + | ||
327 | + | ||
328 | + | @Callable(x) | |
329 | + | func revokeFixedDepositFor (g,h,T) = { | |
330 | + | let Y = [A(x), if ((height > T)) | |
284 | 331 | then true | |
285 | - | else o("asset already allowed")] | |
286 | - | if ((U == U)) | |
287 | - | then [DeleteEntry(n(g))] | |
332 | + | else q("can't revoke deposit in past"), if ((valueOrElse(getInteger(i(g, h, T)), 0) != 0)) | |
333 | + | then true | |
334 | + | else q("deposit for this height for user not exists")] | |
335 | + | if ((Y == Y)) | |
336 | + | then { | |
337 | + | let X = value(getInteger(i(g, h, T))) | |
338 | + | [IntegerEntry(l(g), X), IntegerEntry(i(g, h, T), 0)] | |
339 | + | } | |
288 | 340 | else throw("Strict value is not equal to itself.") | |
289 | 341 | } | |
290 | 342 | ||
291 | 343 | ||
292 | 344 | ||
293 | - | @Callable(v) | |
294 | - | func stats (g,h) = $Tuple2(nil, [value(getInteger(k(g, h))), value(getInteger(l(g, h))), H(g, h), J(g, h), I(g, h), L(g, h)]) | |
345 | + | @Callable(x) | |
346 | + | func denyAssetClaim (g) = { | |
347 | + | let Y = [A(x), if ((valueOrElse(getBoolean(p(g)), false) == false)) | |
348 | + | then true | |
349 | + | else q("asset already denied")] | |
350 | + | if ((Y == Y)) | |
351 | + | then [BooleanEntry(p(g), true)] | |
352 | + | else throw("Strict value is not equal to itself.") | |
353 | + | } | |
295 | 354 | ||
296 | 355 | ||
297 | 356 | ||
298 | - | @Callable(v) | |
299 | - | func setManager (al) = { | |
300 | - | let am = u(v) | |
301 | - | if ((am == am)) | |
357 | + | @Callable(x) | |
358 | + | func allowAssetClaim (g) = { | |
359 | + | let Y = [A(x), if ((valueOrElse(getBoolean(p(g)), false) == true)) | |
360 | + | then true | |
361 | + | else q("asset already allowed")] | |
362 | + | if ((Y == Y)) | |
363 | + | then [DeleteEntry(p(g))] | |
364 | + | else throw("Strict value is not equal to itself.") | |
365 | + | } | |
366 | + | ||
367 | + | ||
368 | + | ||
369 | + | @Callable(x) | |
370 | + | func stats (g,h) = $Tuple2(nil, [value(getInteger(m(g, h))), value(getInteger(n(g, h))), J(g, h), L(g, h), K(g, h), N(g, h)]) | |
371 | + | ||
372 | + | ||
373 | + | ||
374 | + | @Callable(x) | |
375 | + | func setManager (aq) = { | |
376 | + | let ar = w(x) | |
377 | + | if ((ar == ar)) | |
302 | 378 | then { | |
303 | - | let | |
304 | - | if (( | |
305 | - | then [StringEntry(d(), | |
379 | + | let as = fromBase58String(aq) | |
380 | + | if ((as == as)) | |
381 | + | then [StringEntry(d(), aq)] | |
306 | 382 | else throw("Strict value is not equal to itself.") | |
307 | 383 | } | |
308 | 384 | else throw("Strict value is not equal to itself.") | |
309 | 385 | } | |
310 | 386 | ||
311 | 387 | ||
312 | 388 | ||
313 | - | @Callable( | |
389 | + | @Callable(x) | |
314 | 390 | func confirmManager () = { | |
315 | - | let | |
316 | - | let | |
391 | + | let at = v() | |
392 | + | let au = if (isDefined(at)) | |
317 | 393 | then true | |
318 | - | else | |
319 | - | if (( | |
394 | + | else q("no pending manager") | |
395 | + | if ((au == au)) | |
320 | 396 | then { | |
321 | - | let | |
397 | + | let av = if ((x.callerPublicKey == value(at))) | |
322 | 398 | then true | |
323 | - | else | |
324 | - | if (( | |
325 | - | then [StringEntry(c(), toBase58String(value( | |
399 | + | else q("you are not pending manager") | |
400 | + | if ((av == av)) | |
401 | + | then [StringEntry(c(), toBase58String(value(at))), DeleteEntry(d())] | |
326 | 402 | else throw("Strict value is not equal to itself.") | |
327 | 403 | } | |
328 | 404 | else throw("Strict value is not equal to itself.") | |
329 | 405 | } | |
330 | 406 | ||
331 | 407 | ||
332 | - | @Verifier( | |
333 | - | func | |
334 | - | let | |
335 | - | let | |
336 | - | if ($isInstanceOf( | |
408 | + | @Verifier(aw) | |
409 | + | func ax () = { | |
410 | + | let ay = { | |
411 | + | let t = s() | |
412 | + | if ($isInstanceOf(t, "ByteVector")) | |
337 | 413 | then { | |
338 | - | let | |
339 | - | | |
414 | + | let z = t | |
415 | + | z | |
340 | 416 | } | |
341 | - | else if ($isInstanceOf( | |
342 | - | then | |
417 | + | else if ($isInstanceOf(t, "Unit")) | |
418 | + | then aw.senderPublicKey | |
343 | 419 | else throw("Match error") | |
344 | 420 | } | |
345 | - | sigVerify( | |
421 | + | sigVerify(aw.bodyBytes, aw.proofs[0], ay) | |
346 | 422 | } | |
347 | 423 |
github/deemru/w8io/169f3d6 99.30 ms ◑