tx · 6mJoi84NMtLPsVKujuiyDpB2TUDHx7qcAZE9KoSqQSZj 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T: -0.01500000 Waves 2023.04.24 13:30 [2548511] smart account 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T > SELF 0.00000000 Waves
{ "type": 13, "id": "6mJoi84NMtLPsVKujuiyDpB2TUDHx7qcAZE9KoSqQSZj", "fee": 1500000, "feeAssetId": null, "timestamp": 1682332255891, "version": 2, "chainId": 84, "sender": "3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T", "senderPublicKey": "7iXEgsFNsnbLZ3ca4tmz8jffnyxMu9keuBV6CuQPJLuA", "proofs": [ "4j94exFdT47GUX2w9i15kX8YXPmLnu9nSRbncmLqbs8S92YDaqX9C4UEKKpX2uspiufiQtM6EMGG2ckoT9XGra5h" ], "script": "base64:BgLdDAgCEg0KCwgICAgICAEIAQgBEgMKAQESBAoCCAgSBQoDCAgEEgQKAggIEgMKAQESAwoBARIECgIICBIECgIICBIDCgEIEgAiCXNlcGFyYXRvciIMa2V5RmVlQW1vdW50Ig5rZXlVc2RuQXNzZXRJZCIOa2V5RXBvY2hMZW5ndGgiEWtleUZpbmFsaXplUmV3YXJkIgxrZXlXeEFzc2V0SWQiFmtleUFzc2V0c1N0b3JlQ29udHJhY3QiE2tleVVzZXJQb29sQ29udHJhY3QiE2tleUVtaXNzaW9uQ29udHJhY3QiE2tleUJvb3N0aW5nQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCIZa2V5Vm90aW5nRW1pc3Npb25Db250cmFjdCIMa2V5VGhyZXNob2xkIg9nZXRTdHJpbmdPckZhaWwiA2tleSIMZ2V0SW50T3JGYWlsIhBrZXlJbkxpc3RBc3NldElkIg1hbW91bnRBc3NldElkIgxwcmljZUFzc2V0SWQiD2tleVN1Z2dlc3RJbmRleCIOa2V5U3RhcnRIZWlnaHQiDHN1Z2dlc3RJbmRleCIPa2V5Vm90aW5nUmVz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QtTdHJpbmdFbnRyeQIJAQFJAAkA2AQBCQEFdmFsdWUBBQJhWQkAzAgCCQELRGVsZXRlRW50cnkBCQEBSgAFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECYmIBAmJjAAQCYmQEAVIJAQFRAAMJAAECBQFSAgpCeXRlVmVjdG9yBAFXBQFSBQFXAwkAAQIFAVICBFVuaXQIBQJiYg9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCYmIJYm9keUJ5dGVzCQCRAwIIBQJiYgZwcm9vZnMAAAUCYmQ2MC7v", "height": 2548511, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 71Ud8HWFhSJpMryN2zzM7x5MpCJM3L1n2uBZFScoB3wA Next: AbKzGgoyXD78oYVqqA8tzZ8HChnQzyoDg9V168np9vLL Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
437 | 437 | ||
438 | 438 | ||
439 | 439 | @Callable(V) | |
440 | - | func setManager (aV) = { | |
441 | - | let aW = X(V) | |
442 | - | if ((aW == aW)) | |
440 | + | func approve (r,s) = { | |
441 | + | let aV = if ((V.caller == O)) | |
442 | + | then true | |
443 | + | else X(V) | |
444 | + | if ((aV == aV)) | |
443 | 445 | then { | |
444 | - | let aX = fromBase58String(aV) | |
446 | + | let aT = [invoke(N, "setWxEmissionPoolLabel", [r, s], nil), invoke(P, "create", [r, s], nil)] | |
447 | + | if ((aT == aT)) | |
448 | + | then $Tuple2(nil, unit) | |
449 | + | else throw("Strict value is not equal to itself.") | |
450 | + | } | |
451 | + | else throw("Strict value is not equal to itself.") | |
452 | + | } | |
453 | + | ||
454 | + | ||
455 | + | ||
456 | + | @Callable(V) | |
457 | + | func setManager (aW) = { | |
458 | + | let aV = X(V) | |
459 | + | if ((aV == aV)) | |
460 | + | then { | |
461 | + | let aX = fromBase58String(aW) | |
445 | 462 | if ((aX == aX)) | |
446 | - | then [StringEntry(J(), | |
463 | + | then [StringEntry(J(), aW)] | |
447 | 464 | else throw("Strict value is not equal to itself.") | |
448 | 465 | } | |
449 | 466 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = makeString(["%s", "fee"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "usdnAssetId"], a) | |
9 | 9 | ||
10 | 10 | let d = makeString(["%s", "epochLength"], a) | |
11 | 11 | ||
12 | 12 | let e = makeString(["%s", "finalizeReward"], a) | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "wxAssetId"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s", "assetsStoreContract"], a) | |
17 | 17 | ||
18 | 18 | let h = makeString(["%s", "userPoolContract"], a) | |
19 | 19 | ||
20 | 20 | let i = makeString(["%s", "emissionContract"], a) | |
21 | 21 | ||
22 | 22 | let j = makeString(["%s", "boostingContract"], a) | |
23 | 23 | ||
24 | 24 | let k = makeString(["%s", "factoryContract"], a) | |
25 | 25 | ||
26 | 26 | let l = makeString(["%s", "votingEmissionContract"], a) | |
27 | 27 | ||
28 | 28 | let m = makeString(["%s", "votingThreshold"], a) | |
29 | 29 | ||
30 | 30 | func n (o) = valueOrErrorMessage(getString(this, o), (o + " is not defined")) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p (o) = valueOrErrorMessage(getInteger(this, o), (o + " is not defined")) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func q (r,s) = makeString(["%s%s%s", "inList", r, s], a) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func t (r,s) = makeString(["%s%s%s", "suggestIndex", r, s], a) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func u (r,s,v) = makeString(["%s%s%s%d", "startHeight", r, s, toString(v)], a) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func w (r,s,v) = makeString(["%s%s%s%d", "votingResult", r, s, toString(v)], a) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func x (y,z) = makeString(["%d%d", y, z], a) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func A (r,s,v,B) = makeString(["%s%s%s%d%s", "vote", r, s, toString(v), B], a) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func C (D,E) = { | |
55 | 55 | let o = if (E) | |
56 | 56 | then makeString(["%d%s", D, "yes"], a) | |
57 | 57 | else makeString(["%d%s", D, "no"], a) | |
58 | 58 | o | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func F (G) = { | |
63 | 63 | let H = G | |
64 | 64 | let r = H._1 | |
65 | 65 | let s = H._2 | |
66 | 66 | makeString(["%s%s%s", "inList", r, s], a) | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func I () = "%s__managerPublicKey" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func J () = "%s__pendingManagerPublicKey" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | let K = addressFromStringValue(n(g)) | |
77 | 77 | ||
78 | 78 | let L = addressFromStringValue(n(j)) | |
79 | 79 | ||
80 | 80 | let M = addressFromStringValue(n(i)) | |
81 | 81 | ||
82 | 82 | let N = addressFromStringValue(n(k)) | |
83 | 83 | ||
84 | 84 | let O = addressFromStringValue(n(h)) | |
85 | 85 | ||
86 | 86 | let P = addressFromStringValue(n(l)) | |
87 | 87 | ||
88 | 88 | func Q () = { | |
89 | 89 | let R = getString(I()) | |
90 | 90 | if ($isInstanceOf(R, "String")) | |
91 | 91 | then { | |
92 | 92 | let S = R | |
93 | 93 | fromBase58String(S) | |
94 | 94 | } | |
95 | 95 | else if ($isInstanceOf(R, "Unit")) | |
96 | 96 | then unit | |
97 | 97 | else throw("Match error") | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func T () = { | |
102 | 102 | let R = getString(J()) | |
103 | 103 | if ($isInstanceOf(R, "String")) | |
104 | 104 | then { | |
105 | 105 | let S = R | |
106 | 106 | fromBase58String(S) | |
107 | 107 | } | |
108 | 108 | else if ($isInstanceOf(R, "Unit")) | |
109 | 109 | then unit | |
110 | 110 | else throw("Match error") | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func U (V) = { | |
115 | 115 | let R = Q() | |
116 | 116 | if ($isInstanceOf(R, "ByteVector")) | |
117 | 117 | then { | |
118 | 118 | let W = R | |
119 | 119 | (V.callerPublicKey == W) | |
120 | 120 | } | |
121 | 121 | else if ($isInstanceOf(R, "Unit")) | |
122 | 122 | then (V.caller == this) | |
123 | 123 | else throw("Match error") | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func X (V) = if (U(V)) | |
128 | 128 | then true | |
129 | 129 | else throw("permission denied") | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func Y (Z) = { | |
133 | 133 | let R = Z | |
134 | 134 | if ($isInstanceOf(R, "Int")) | |
135 | 135 | then { | |
136 | 136 | let aa = R | |
137 | 137 | aa | |
138 | 138 | } | |
139 | 139 | else throw("failed to cast into Integer") | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | @Callable(V) | |
144 | 144 | func constructor (ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al) = { | |
145 | 145 | let am = [X(V), if (isDefined(addressFromString(ab))) | |
146 | 146 | then true | |
147 | 147 | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(ac))) | |
148 | 148 | then true | |
149 | 149 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(af))) | |
150 | 150 | then true | |
151 | 151 | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(ad))) | |
152 | 152 | then true | |
153 | 153 | else throw("Invalid emission contract address"), if (isDefined(addressFromString(ae))) | |
154 | 154 | then true | |
155 | 155 | else throw("Invalid factory contract address"), if ((ah >= 0)) | |
156 | 156 | then true | |
157 | 157 | else throw("Invalid fee amount"), if ((aj > 0)) | |
158 | 158 | then true | |
159 | 159 | else throw("Invalid voting duration"), if ((al >= 0)) | |
160 | 160 | then true | |
161 | 161 | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String(ai)))) | |
162 | 162 | then true | |
163 | 163 | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(ak)))) | |
164 | 164 | then true | |
165 | 165 | else throw("Invalid USDN asset ID")] | |
166 | 166 | if ((am == am)) | |
167 | 167 | then $Tuple2([StringEntry(g, ab), StringEntry(j, ac), StringEntry(i, ad), StringEntry(k, ae), StringEntry(h, af), StringEntry(l, ag), IntegerEntry(b, ah), IntegerEntry(d, aj), IntegerEntry(e, al), StringEntry(f, ai), StringEntry(c, ak)], unit) | |
168 | 168 | else throw("Strict value is not equal to itself.") | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | ||
173 | 173 | @Callable(V) | |
174 | 174 | func constructorV2 (an) = { | |
175 | 175 | let am = [X(V), if ((an > 0)) | |
176 | 176 | then true | |
177 | 177 | else throw("invalid threshold")] | |
178 | 178 | if ((am == am)) | |
179 | 179 | then $Tuple2([IntegerEntry(m, an)], unit) | |
180 | 180 | else throw("Strict value is not equal to itself.") | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Callable(V) | |
186 | 186 | func suggest (r,s) = { | |
187 | 187 | let G = $Tuple2(r, s) | |
188 | 188 | let ao = value(V.payments[0]) | |
189 | 189 | let ap = if ((r == "WAVES")) | |
190 | 190 | then unit | |
191 | 191 | else { | |
192 | 192 | let aq = valueOrErrorMessage(assetInfo(fromBase58String(r)), "invalid amountAssetId ID") | |
193 | 193 | if ((aq.scripted == false)) | |
194 | 194 | then true | |
195 | 195 | else throw("asset is smart") | |
196 | 196 | } | |
197 | 197 | if ((ap == ap)) | |
198 | 198 | then { | |
199 | 199 | let am = [if ((toBase58String(value(ao.assetId)) == value(getString(f)))) | |
200 | 200 | then true | |
201 | 201 | else throw("invalid fee asset"), if ((ao.amount == value(getInteger(b)))) | |
202 | 202 | then true | |
203 | 203 | else throw("invalid fee amount"), if ((getInteger(q(r, s)) == unit)) | |
204 | 204 | then true | |
205 | 205 | else throw("already in voting list"), if (!(valueOrElse(getBoolean(P, F(G)), false))) | |
206 | 206 | then true | |
207 | 207 | else throw("pool is in emission voting list")] | |
208 | 208 | if ((am == am)) | |
209 | 209 | then { | |
210 | 210 | let ar = { | |
211 | 211 | let R = invoke(O, "statusREADONLY", [r, s], nil) | |
212 | 212 | if ($isInstanceOf(R, "String")) | |
213 | 213 | then { | |
214 | 214 | let S = R | |
215 | 215 | if ((S == "active")) | |
216 | 216 | then true | |
217 | 217 | else throw("user pool is not active") | |
218 | 218 | } | |
219 | 219 | else throw("user pool is not active") | |
220 | 220 | } | |
221 | 221 | if ((ar == ar)) | |
222 | 222 | then { | |
223 | 223 | let as = if (U(V)) | |
224 | 224 | then unit | |
225 | 225 | else { | |
226 | 226 | let at = { | |
227 | 227 | let R = invoke(K, "isVerifiedREADONLY", [r], nil) | |
228 | 228 | if ($isInstanceOf(R, "Boolean")) | |
229 | 229 | then { | |
230 | 230 | let au = R | |
231 | 231 | if (au) | |
232 | 232 | then true | |
233 | 233 | else throw("asset is not verified") | |
234 | 234 | } | |
235 | 235 | else throw("asset is not verified") | |
236 | 236 | } | |
237 | 237 | if ((at == at)) | |
238 | 238 | then unit | |
239 | 239 | else throw("Strict value is not equal to itself.") | |
240 | 240 | } | |
241 | 241 | if ((as == as)) | |
242 | 242 | then { | |
243 | 243 | let av = invoke(M, "burn", nil, [AttachedPayment(ao.assetId, ao.amount)]) | |
244 | 244 | if ((av == av)) | |
245 | 245 | then { | |
246 | 246 | let aw = { | |
247 | 247 | let R = getInteger(t(r, s)) | |
248 | 248 | if ($isInstanceOf(R, "Int")) | |
249 | 249 | then { | |
250 | 250 | let ax = R | |
251 | 251 | (ax + 1) | |
252 | 252 | } | |
253 | 253 | else 0 | |
254 | 254 | } | |
255 | 255 | $Tuple2([IntegerEntry(q(r, s), aw), IntegerEntry(u(r, s, aw), height), StringEntry(w(r, s, aw), x("0", "0")), IntegerEntry(t(r, s), aw)], unit) | |
256 | 256 | } | |
257 | 257 | else throw("Strict value is not equal to itself.") | |
258 | 258 | } | |
259 | 259 | else throw("Strict value is not equal to itself.") | |
260 | 260 | } | |
261 | 261 | else throw("Strict value is not equal to itself.") | |
262 | 262 | } | |
263 | 263 | else throw("Strict value is not equal to itself.") | |
264 | 264 | } | |
265 | 265 | else throw("Strict value is not equal to itself.") | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | ||
270 | 270 | @Callable(V) | |
271 | 271 | func vote (r,s,ay) = { | |
272 | 272 | let v = value(getInteger(q(r, s))) | |
273 | 273 | let az = (value(getInteger(u(r, s, v))) + value(getInteger(d))) | |
274 | 274 | let am = [if (isDefined(getInteger(q(r, s)))) | |
275 | 275 | then true | |
276 | 276 | else throw("the token isn't on the voting list"), if ((az > height)) | |
277 | 277 | then true | |
278 | 278 | else throw("too late to vote")] | |
279 | 279 | if ((am == am)) | |
280 | 280 | then { | |
281 | 281 | let D = invoke(L, "getUserGwxAmountAtHeightREADONLY", [toString(V.caller), az], nil) | |
282 | 282 | let aA = if ((Y(D) > 0)) | |
283 | 283 | then true | |
284 | 284 | else throw("you don't have gwx") | |
285 | 285 | if ((aA == aA)) | |
286 | 286 | then { | |
287 | 287 | let E = { | |
288 | 288 | let R = getString(A(r, s, v, toString(V.caller))) | |
289 | 289 | if ($isInstanceOf(R, "String")) | |
290 | 290 | then { | |
291 | 291 | let S = R | |
292 | 292 | let E = split(S, a) | |
293 | 293 | let aB = E[1] | |
294 | 294 | let aC = E[2] | |
295 | 295 | let aD = if (if ((aC == "yes")) | |
296 | 296 | then (ay == true) | |
297 | 297 | else false) | |
298 | 298 | then true | |
299 | 299 | else if ((aC == "no")) | |
300 | 300 | then (ay == false) | |
301 | 301 | else false | |
302 | 302 | let aE = if (aD) | |
303 | 303 | then (Y(D) == parseIntValue(aB)) | |
304 | 304 | else false | |
305 | 305 | let aF = if (if (aD) | |
306 | 306 | then aE | |
307 | 307 | else false) | |
308 | 308 | then throw("you already voted") | |
309 | 309 | else invoke(this, "cancelVote", [r, s], nil) | |
310 | 310 | aF | |
311 | 311 | } | |
312 | 312 | else if ($isInstanceOf(R, "Unit")) | |
313 | 313 | then { | |
314 | 314 | let aG = R | |
315 | 315 | aG | |
316 | 316 | } | |
317 | 317 | else throw("Match error") | |
318 | 318 | } | |
319 | 319 | if ((E == E)) | |
320 | 320 | then { | |
321 | 321 | let aH = split(value(getString(w(r, s, v))), a) | |
322 | 322 | let aI = aH[1] | |
323 | 323 | let aJ = aH[2] | |
324 | 324 | let aK = if (ay) | |
325 | 325 | then { | |
326 | 326 | let aL = (parseIntValue(aI) + Y(D)) | |
327 | 327 | [toString(aL), aJ] | |
328 | 328 | } | |
329 | 329 | else { | |
330 | 330 | let aM = (parseIntValue(aJ) + Y(D)) | |
331 | 331 | [aI, toString(aM)] | |
332 | 332 | } | |
333 | 333 | let aN = A(r, s, v, toString(V.caller)) | |
334 | 334 | let aB = C(toString(Y(D)), ay) | |
335 | 335 | $Tuple2([StringEntry(w(r, s, v), x(aK[0], aK[1])), StringEntry(aN, aB)], unit) | |
336 | 336 | } | |
337 | 337 | else throw("Strict value is not equal to itself.") | |
338 | 338 | } | |
339 | 339 | else throw("Strict value is not equal to itself.") | |
340 | 340 | } | |
341 | 341 | else throw("Strict value is not equal to itself.") | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | ||
346 | 346 | @Callable(V) | |
347 | 347 | func cancelVote (r,s) = { | |
348 | 348 | let aO = if ((V.caller == this)) | |
349 | 349 | then toString(V.originCaller) | |
350 | 350 | else toString(V.caller) | |
351 | 351 | let v = value(getInteger(q(r, s))) | |
352 | 352 | let am = [if (isDefined(getString(w(r, s, v)))) | |
353 | 353 | then true | |
354 | 354 | else throw("no vote for assets pair")] | |
355 | 355 | if ((am == am)) | |
356 | 356 | then { | |
357 | 357 | let E = split(value(getString(A(r, s, v, aO))), a) | |
358 | 358 | let aB = E[1] | |
359 | 359 | let aC = E[2] | |
360 | 360 | let aH = split(value(getString(w(r, s, v))), a) | |
361 | 361 | let aI = aH[1] | |
362 | 362 | let aJ = aH[2] | |
363 | 363 | let aP = if ((aC == "yes")) | |
364 | 364 | then { | |
365 | 365 | let aL = (parseIntValue(aI) - parseIntValue(aB)) | |
366 | 366 | $Tuple2([StringEntry(w(r, s, v), x(toString(aL), aJ)), DeleteEntry(A(r, s, v, aO))], unit) | |
367 | 367 | } | |
368 | 368 | else { | |
369 | 369 | let aM = (parseIntValue(aJ) - parseIntValue(aB)) | |
370 | 370 | $Tuple2([StringEntry(w(r, s, v), x(aI, toString(aM))), DeleteEntry(A(r, s, v, aO))], unit) | |
371 | 371 | } | |
372 | 372 | aP | |
373 | 373 | } | |
374 | 374 | else throw("Strict value is not equal to itself.") | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | ||
379 | 379 | @Callable(V) | |
380 | 380 | func setFee (aQ) = { | |
381 | 381 | let am = [X(V)] | |
382 | 382 | if ((am == am)) | |
383 | 383 | then [IntegerEntry(b, aQ)] | |
384 | 384 | else throw("Strict value is not equal to itself.") | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | ||
389 | 389 | @Callable(V) | |
390 | 390 | func setThreshold (aR) = { | |
391 | 391 | let am = [X(V), if ((aR > 0)) | |
392 | 392 | then true | |
393 | 393 | else throw("invalid threshold")] | |
394 | 394 | if ((am == am)) | |
395 | 395 | then $Tuple2([IntegerEntry(m, aR)], unit) | |
396 | 396 | else throw("Strict value is not equal to itself.") | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | ||
401 | 401 | @Callable(V) | |
402 | 402 | func finalize (r,s) = { | |
403 | 403 | let v = value(getInteger(q(r, s))) | |
404 | 404 | let az = (value(getInteger(u(r, s, v))) + value(getInteger(d))) | |
405 | 405 | let am = [if (isDefined(getInteger(q(r, s)))) | |
406 | 406 | then true | |
407 | 407 | else throw("no assets pair"), if ((height >= az)) | |
408 | 408 | then true | |
409 | 409 | else throw("insufficient height for completion")] | |
410 | 410 | if ((am == am)) | |
411 | 411 | then { | |
412 | 412 | let aH = split(value(getString(w(r, s, v))), a) | |
413 | 413 | let aI = parseIntValue(aH[1]) | |
414 | 414 | let aJ = parseIntValue(aH[2]) | |
415 | 415 | let aS = (aI + aJ) | |
416 | 416 | let an = p(m) | |
417 | 417 | let aP = if (if ((aS >= an)) | |
418 | 418 | then (aI > aJ) | |
419 | 419 | else false) | |
420 | 420 | then { | |
421 | 421 | let aT = invoke(N, "setWxEmissionPoolLabel", [r, s], nil) | |
422 | 422 | if ((aT == aT)) | |
423 | 423 | then { | |
424 | 424 | let aU = invoke(P, "create", [r, s], nil) | |
425 | 425 | if ((aU == aU)) | |
426 | 426 | then $Tuple2([DeleteEntry(q(r, s))], unit) | |
427 | 427 | else throw("Strict value is not equal to itself.") | |
428 | 428 | } | |
429 | 429 | else throw("Strict value is not equal to itself.") | |
430 | 430 | } | |
431 | 431 | else $Tuple2([DeleteEntry(q(r, s))], unit) | |
432 | 432 | aP | |
433 | 433 | } | |
434 | 434 | else throw("Strict value is not equal to itself.") | |
435 | 435 | } | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | ||
439 | 439 | @Callable(V) | |
440 | - | func setManager (aV) = { | |
441 | - | let aW = X(V) | |
442 | - | if ((aW == aW)) | |
440 | + | func approve (r,s) = { | |
441 | + | let aV = if ((V.caller == O)) | |
442 | + | then true | |
443 | + | else X(V) | |
444 | + | if ((aV == aV)) | |
443 | 445 | then { | |
444 | - | let aX = fromBase58String(aV) | |
446 | + | let aT = [invoke(N, "setWxEmissionPoolLabel", [r, s], nil), invoke(P, "create", [r, s], nil)] | |
447 | + | if ((aT == aT)) | |
448 | + | then $Tuple2(nil, unit) | |
449 | + | else throw("Strict value is not equal to itself.") | |
450 | + | } | |
451 | + | else throw("Strict value is not equal to itself.") | |
452 | + | } | |
453 | + | ||
454 | + | ||
455 | + | ||
456 | + | @Callable(V) | |
457 | + | func setManager (aW) = { | |
458 | + | let aV = X(V) | |
459 | + | if ((aV == aV)) | |
460 | + | then { | |
461 | + | let aX = fromBase58String(aW) | |
445 | 462 | if ((aX == aX)) | |
446 | - | then [StringEntry(J(), | |
463 | + | then [StringEntry(J(), aW)] | |
447 | 464 | else throw("Strict value is not equal to itself.") | |
448 | 465 | } | |
449 | 466 | else throw("Strict value is not equal to itself.") | |
450 | 467 | } | |
451 | 468 | ||
452 | 469 | ||
453 | 470 | ||
454 | 471 | @Callable(V) | |
455 | 472 | func confirmManager () = { | |
456 | 473 | let aY = T() | |
457 | 474 | let aZ = if (isDefined(aY)) | |
458 | 475 | then true | |
459 | 476 | else throw("no pending manager") | |
460 | 477 | if ((aZ == aZ)) | |
461 | 478 | then { | |
462 | 479 | let ba = if ((V.callerPublicKey == value(aY))) | |
463 | 480 | then true | |
464 | 481 | else throw("you are not pending manager") | |
465 | 482 | if ((ba == ba)) | |
466 | 483 | then [StringEntry(I(), toBase58String(value(aY))), DeleteEntry(J())] | |
467 | 484 | else throw("Strict value is not equal to itself.") | |
468 | 485 | } | |
469 | 486 | else throw("Strict value is not equal to itself.") | |
470 | 487 | } | |
471 | 488 | ||
472 | 489 | ||
473 | 490 | @Verifier(bb) | |
474 | 491 | func bc () = { | |
475 | 492 | let bd = { | |
476 | 493 | let R = Q() | |
477 | 494 | if ($isInstanceOf(R, "ByteVector")) | |
478 | 495 | then { | |
479 | 496 | let W = R | |
480 | 497 | W | |
481 | 498 | } | |
482 | 499 | else if ($isInstanceOf(R, "Unit")) | |
483 | 500 | then bb.senderPublicKey | |
484 | 501 | else throw("Match error") | |
485 | 502 | } | |
486 | 503 | sigVerify(bb.bodyBytes, bb.proofs[0], bd) | |
487 | 504 | } | |
488 | 505 |
github/deemru/w8io/169f3d6 66.20 ms ◑