tx · A6FhHvWGiBRoZ9iSu8e61aMxarkuYPJDY3cHMhzXaESN 3MuEfswstC6FgzjQPtVnucaffFf54bA9p3H: -0.01400000 Waves 2023.05.04 13:10 [2562876] smart account 3MuEfswstC6FgzjQPtVnucaffFf54bA9p3H > SELF 0.00000000 Waves
{ "type": 13, "id": "A6FhHvWGiBRoZ9iSu8e61aMxarkuYPJDY3cHMhzXaESN", "fee": 1400000, "feeAssetId": null, "timestamp": 1683195035117, "version": 2, "chainId": 84, "sender": "3MuEfswstC6FgzjQPtVnucaffFf54bA9p3H", "senderPublicKey": "8pvajz9uNGrmuTHSzjyYc4LZJ6VkqBjwmS7HCWKsZk67", "proofs": [ "52rx1zZdSEahejZougkowo5V1qYn8y8m4Wb964DN5UbCcapXmnFyMBaVNSyFAjfSZj7a5zg8Um1ZfNVi9NEfqM7S" ], "script": "base64:AAIFAAAAAAAAACIIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSABIAAAAALwAAAAADU0VQAgAAAAJfXwEAAAAHd3JhcEVycgAAAAEAAAADbXNnCQAEuQAAAAIJAARMAAAAAgIAAAAOZW1pc3Npb24ucmlkZToJAARMAAAAAgkABCUAAAABBQAAAAR0aGlzCQAETAAAAAIFAAAAA21zZwUAAAADbmlsAgAAAAEgAQAAAAh0aHJvd0VycgAAAAEAAAADbXNnCQAAAgAAAAEJAQAAAAd3cmFwRXJyAAAAAQUAAAADbXNnAQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQEAAAAHd3JhcEVycgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAA9tYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAABFrZXlGYWN0b3J5QWRkcmVzcwAAAAACAAAAHCVzJXNfX2NvbmZpZ19fZ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m9vZnMAAAAAAAAAAAAFAAAAD3RhcmdldFB1YmxpY0tleQgdbPA=", "height": 2562876, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EjMZ4UQ9cDdqVM4odb9dMgPwfHs2qYMXZ9cvX95JFPBd Next: 7gAw8n94EQfmPdhReCNbmden3Xv464U18AwRPHBQ7UBi Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | - | func b (c | |
6 | + | func b (c) = makeString(["emission.ride:", toString(this), c], " ") | |
7 | 7 | ||
8 | 8 | ||
9 | - | func | |
9 | + | func d (c) = throw(b(c)) | |
10 | 10 | ||
11 | 11 | ||
12 | - | let f = "%s%s__config__votingVerifiedContract" | |
13 | - | ||
14 | - | let g = "%s%s__config__votingEmissionCandidateContract" | |
15 | - | ||
16 | - | let h = "%s%s__config__userPoolsContract" | |
17 | - | ||
18 | - | let i = addressFromStringValue(b(this, f)) | |
19 | - | ||
20 | - | let j = addressFromStringValue(b(this, g)) | |
21 | - | ||
22 | - | let k = addressFromStringValue(b(this, h)) | |
23 | - | ||
24 | - | let l = 1 | |
25 | - | ||
26 | - | let m = 2 | |
27 | - | ||
28 | - | let n = 3 | |
29 | - | ||
30 | - | let o = 4 | |
31 | - | ||
32 | - | let p = 5 | |
33 | - | ||
34 | - | let q = 6 | |
35 | - | ||
36 | - | let r = 7 | |
37 | - | ||
38 | - | let s = 10 | |
39 | - | ||
40 | - | func t () = "%s__factoryConfig" | |
12 | + | func e (f,g) = valueOrErrorMessage(getString(f, g), b((("mandatory this." + g) + " is not defined"))) | |
41 | 13 | ||
42 | 14 | ||
43 | - | func | |
15 | + | func h () = "%s%s__config__factoryAddress" | |
44 | 16 | ||
45 | 17 | ||
46 | - | func w () = "%s__lpTokensList" | |
18 | + | let i = "%s%s__config__votingVerifiedContract" | |
19 | + | ||
20 | + | let j = "%s%s__config__votingEmissionCandidateContract" | |
21 | + | ||
22 | + | let k = "%s%s__config__userPoolsContract" | |
23 | + | ||
24 | + | let l = addressFromStringValue(e(this, i)) | |
25 | + | ||
26 | + | let m = addressFromStringValue(e(this, j)) | |
27 | + | ||
28 | + | let n = addressFromStringValue(e(this, k)) | |
29 | + | ||
30 | + | let o = 1 | |
31 | + | ||
32 | + | let p = 2 | |
33 | + | ||
34 | + | let q = 3 | |
35 | + | ||
36 | + | let r = 4 | |
37 | + | ||
38 | + | let s = 5 | |
39 | + | ||
40 | + | let t = 6 | |
41 | + | ||
42 | + | let u = 7 | |
43 | + | ||
44 | + | let v = 10 | |
45 | + | ||
46 | + | func w () = "%s__factoryConfig" | |
47 | 47 | ||
48 | 48 | ||
49 | - | func x ( | |
49 | + | func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | - | func | |
52 | + | func z () = "%s__lpTokensList" | |
53 | 53 | ||
54 | 54 | ||
55 | - | func A () = | |
55 | + | func A (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a) | |
56 | 56 | ||
57 | 57 | ||
58 | - | func B () = | |
58 | + | func B (C) = makeString(["%s%s", "poolWeight", C], a) | |
59 | 59 | ||
60 | 60 | ||
61 | - | func | |
61 | + | func D () = addressFromStringValue(e(this, h())) | |
62 | 62 | ||
63 | 63 | ||
64 | - | func E ( | |
64 | + | func E () = split(valueOrElse(getString(D(), z()), ""), a) | |
65 | 65 | ||
66 | 66 | ||
67 | - | func | |
67 | + | func F (G) = split(e(G, w()), a) | |
68 | 68 | ||
69 | 69 | ||
70 | - | func H ( | |
70 | + | func H (I) = addressFromStringValue(I[p]) | |
71 | 71 | ||
72 | 72 | ||
73 | - | func | |
73 | + | func J (I) = addressFromStringValue(I[s]) | |
74 | 74 | ||
75 | 75 | ||
76 | - | func | |
76 | + | func K (I) = addressFromStringValue(I[o]) | |
77 | 77 | ||
78 | 78 | ||
79 | - | func | |
79 | + | func L (I) = addressFromStringValue(I[v]) | |
80 | 80 | ||
81 | 81 | ||
82 | - | func | |
82 | + | func M () = "%s__config" | |
83 | 83 | ||
84 | 84 | ||
85 | - | func | |
85 | + | func N () = "%s%s__ratePerBlockMax__current" | |
86 | 86 | ||
87 | 87 | ||
88 | - | func | |
88 | + | func O (P,Q) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(P), toString(Q)], a) | |
89 | 89 | ||
90 | 90 | ||
91 | - | func | |
91 | + | func R () = "%s%s__ratePerBlock__current" | |
92 | 92 | ||
93 | 93 | ||
94 | - | func | |
94 | + | func S (P,Q) = makeString(["%s%s%d%d__ratePerBlock__start", toString(P), toString(Q)], a) | |
95 | 95 | ||
96 | 96 | ||
97 | - | func | |
97 | + | func T () = "%s%s__emission__startBlock" | |
98 | 98 | ||
99 | 99 | ||
100 | - | func | |
100 | + | func U () = "%s%s__emission__duration" | |
101 | 101 | ||
102 | 102 | ||
103 | - | func | |
103 | + | func V () = "%s%s__emission__endBlock" | |
104 | 104 | ||
105 | 105 | ||
106 | - | func V () = { | |
107 | - | let W = getString(T()) | |
108 | - | if ($isInstanceOf(W, "String")) | |
106 | + | func W () = "%s__boostCoeff" | |
107 | + | ||
108 | + | ||
109 | + | let X = 3 | |
110 | + | ||
111 | + | let Y = valueOrElse(getInteger(this, W()), X) | |
112 | + | ||
113 | + | func Z () = "%s__managerPublicKey" | |
114 | + | ||
115 | + | ||
116 | + | func aa () = "%s__pendingManagerPublicKey" | |
117 | + | ||
118 | + | ||
119 | + | func ab () = { | |
120 | + | let ac = getString(Z()) | |
121 | + | if ($isInstanceOf(ac, "String")) | |
109 | 122 | then { | |
110 | - | let | |
111 | - | fromBase58String( | |
123 | + | let ad = ac | |
124 | + | fromBase58String(ad) | |
112 | 125 | } | |
113 | - | else if ($isInstanceOf( | |
126 | + | else if ($isInstanceOf(ac, "Unit")) | |
114 | 127 | then unit | |
115 | 128 | else throw("Match error") | |
116 | 129 | } | |
117 | 130 | ||
118 | 131 | ||
119 | - | func | |
120 | - | let | |
121 | - | if ($isInstanceOf( | |
132 | + | func ae () = { | |
133 | + | let ac = getString(aa()) | |
134 | + | if ($isInstanceOf(ac, "String")) | |
122 | 135 | then { | |
123 | - | let | |
124 | - | fromBase58String( | |
136 | + | let ad = ac | |
137 | + | fromBase58String(ad) | |
125 | 138 | } | |
126 | - | else if ($isInstanceOf( | |
139 | + | else if ($isInstanceOf(ac, "Unit")) | |
127 | 140 | then unit | |
128 | 141 | else throw("Match error") | |
129 | 142 | } | |
130 | 143 | ||
131 | 144 | ||
132 | - | func | |
133 | - | let | |
134 | - | let | |
135 | - | if ($isInstanceOf( | |
145 | + | func af (ag) = { | |
146 | + | let ah = d("Permission denied") | |
147 | + | let ac = ab() | |
148 | + | if ($isInstanceOf(ac, "ByteVector")) | |
136 | 149 | then { | |
137 | - | let | |
138 | - | if (( | |
150 | + | let ai = ac | |
151 | + | if ((ag.callerPublicKey == ai)) | |
139 | 152 | then true | |
140 | - | else | |
153 | + | else ah | |
141 | 154 | } | |
142 | - | else if ($isInstanceOf( | |
143 | - | then if (( | |
155 | + | else if ($isInstanceOf(ac, "Unit")) | |
156 | + | then if ((ag.caller == this)) | |
144 | 157 | then true | |
145 | - | else | |
158 | + | else ah | |
146 | 159 | else throw("Match error") | |
147 | 160 | } | |
148 | 161 | ||
149 | 162 | ||
150 | - | @Callable( | |
151 | - | func constructor ( | |
152 | - | let | |
153 | - | if (( | |
154 | - | then [IntegerEntry( | |
163 | + | @Callable(ag) | |
164 | + | func constructor (aj,ak,al,am,an,ao,ap) = { | |
165 | + | let aq = af(ag) | |
166 | + | if ((aq == aq)) | |
167 | + | then [IntegerEntry(O(ao, am), ak), IntegerEntry(N(), ak), IntegerEntry(S(ao, am), al), IntegerEntry(R(), al), IntegerEntry(T(), am), IntegerEntry(U(), an), IntegerEntry(V(), (am + an)), StringEntry(h(), aj), StringEntry(M(), ("%s__" + ap))] | |
155 | 168 | else throw("Strict value is not equal to itself.") | |
156 | 169 | } | |
157 | 170 | ||
158 | 171 | ||
159 | 172 | ||
160 | - | @Callable( | |
161 | - | func constructorV2 ( | |
162 | - | let | |
163 | - | if (( | |
164 | - | then $Tuple2([StringEntry( | |
173 | + | @Callable(ag) | |
174 | + | func constructorV2 (ar) = { | |
175 | + | let aq = af(ag) | |
176 | + | if ((aq == aq)) | |
177 | + | then $Tuple2([StringEntry(i, ar)], unit) | |
165 | 178 | else throw("Strict value is not equal to itself.") | |
166 | 179 | } | |
167 | 180 | ||
168 | 181 | ||
169 | 182 | ||
170 | - | @Callable( | |
171 | - | func emit ( | |
183 | + | @Callable(ag) | |
184 | + | func emit (as) = if ((0 >= as)) | |
172 | 185 | then $Tuple2(nil, nil) | |
173 | 186 | else { | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | if (if (( | |
180 | - | then ( | |
187 | + | let at = D() | |
188 | + | let I = F(at) | |
189 | + | let au = K(I) | |
190 | + | let av = L(I) | |
191 | + | let aw = ag.caller | |
192 | + | if (if ((aw != au)) | |
193 | + | then (aw != av) | |
181 | 194 | else false) | |
182 | - | then | |
195 | + | then d("permissions denied") | |
183 | 196 | else { | |
184 | - | let | |
185 | - | let | |
186 | - | $Tuple2([ScriptTransfer( | |
197 | + | let ap = split(e(this, M()), a)[1] | |
198 | + | let ax = fromBase58String(ap) | |
199 | + | $Tuple2([ScriptTransfer(aw, as, ax)], [ax]) | |
187 | 200 | } | |
188 | 201 | } | |
189 | 202 | ||
190 | 203 | ||
191 | 204 | ||
192 | - | @Callable( | |
205 | + | @Callable(ag) | |
193 | 206 | func burn () = { | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | if ((size( | |
198 | - | then | |
207 | + | let at = D() | |
208 | + | let I = F(at) | |
209 | + | let ay = H(I) | |
210 | + | if ((size(ag.payments) != 1)) | |
211 | + | then d("exact one payment is allowed") | |
199 | 212 | else { | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | if (( | |
205 | - | then | |
206 | - | else if (!(containsElement([ | |
207 | - | then | |
208 | - | else [Burn( | |
213 | + | let az = ag.payments[0] | |
214 | + | let aA = value(az.assetId) | |
215 | + | let aB = az.amount | |
216 | + | let ax = fromBase58String(split(e(this, M()), a)[1]) | |
217 | + | if ((aA != ax)) | |
218 | + | then d("invalid wxAssetId is passed") | |
219 | + | else if (!(containsElement([ay, l, m, n], ag.caller))) | |
220 | + | then d("permissions denied") | |
221 | + | else [Burn(aA, aB), StringEntry(("%s%s%s__history__burn__" + toBase58String(ag.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aB)], a))] | |
209 | 222 | } | |
210 | 223 | } | |
211 | 224 | ||
212 | 225 | ||
213 | 226 | ||
214 | - | @Callable( | |
215 | - | func setManager ( | |
216 | - | let | |
217 | - | if (( | |
227 | + | @Callable(ag) | |
228 | + | func setManager (aC) = { | |
229 | + | let aq = af(ag) | |
230 | + | if ((aq == aq)) | |
218 | 231 | then { | |
219 | - | let | |
220 | - | if (( | |
221 | - | then [StringEntry( | |
232 | + | let aD = fromBase58String(aC) | |
233 | + | if ((aD == aD)) | |
234 | + | then [StringEntry(aa(), aC)] | |
222 | 235 | else throw("Strict value is not equal to itself.") | |
223 | 236 | } | |
224 | 237 | else throw("Strict value is not equal to itself.") | |
226 | 239 | ||
227 | 240 | ||
228 | 241 | ||
229 | - | @Callable( | |
242 | + | @Callable(ag) | |
230 | 243 | func confirmManager () = { | |
231 | - | let | |
232 | - | let | |
244 | + | let aE = ae() | |
245 | + | let aF = if (isDefined(aE)) | |
233 | 246 | then true | |
234 | - | else | |
235 | - | if (( | |
247 | + | else d("No pending manager") | |
248 | + | if ((aF == aF)) | |
236 | 249 | then { | |
237 | - | let | |
250 | + | let aG = if ((ag.callerPublicKey == value(aE))) | |
238 | 251 | then true | |
239 | - | else | |
240 | - | if (( | |
241 | - | then [StringEntry( | |
252 | + | else d("You are not pending manager") | |
253 | + | if ((aG == aG)) | |
254 | + | then [StringEntry(Z(), toBase58String(value(aE))), DeleteEntry(aa())] | |
242 | 255 | else throw("Strict value is not equal to itself.") | |
243 | 256 | } | |
244 | 257 | else throw("Strict value is not equal to itself.") | |
245 | 258 | } | |
246 | 259 | ||
247 | 260 | ||
248 | - | @Verifier(aB) | |
249 | - | func aC () = { | |
250 | - | let aD = { | |
251 | - | let W = V() | |
252 | - | if ($isInstanceOf(W, "ByteVector")) | |
261 | + | ||
262 | + | @Callable(ag) | |
263 | + | func getBoostCoeffREADONLY () = $Tuple2(nil, Y) | |
264 | + | ||
265 | + | ||
266 | + | @Verifier(aH) | |
267 | + | func aI () = { | |
268 | + | let aJ = { | |
269 | + | let ac = ab() | |
270 | + | if ($isInstanceOf(ac, "ByteVector")) | |
253 | 271 | then { | |
254 | - | let | |
255 | - | | |
272 | + | let ai = ac | |
273 | + | ai | |
256 | 274 | } | |
257 | - | else if ($isInstanceOf( | |
258 | - | then | |
275 | + | else if ($isInstanceOf(ac, "Unit")) | |
276 | + | then aH.senderPublicKey | |
259 | 277 | else throw("Match error") | |
260 | 278 | } | |
261 | - | sigVerify( | |
279 | + | sigVerify(aH.bodyBytes, aH.proofs[0], aJ) | |
262 | 280 | } | |
263 | 281 |
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 | - | func b (c | |
6 | + | func b (c) = makeString(["emission.ride:", toString(this), c], " ") | |
7 | 7 | ||
8 | 8 | ||
9 | - | func | |
9 | + | func d (c) = throw(b(c)) | |
10 | 10 | ||
11 | 11 | ||
12 | - | let f = "%s%s__config__votingVerifiedContract" | |
13 | - | ||
14 | - | let g = "%s%s__config__votingEmissionCandidateContract" | |
15 | - | ||
16 | - | let h = "%s%s__config__userPoolsContract" | |
17 | - | ||
18 | - | let i = addressFromStringValue(b(this, f)) | |
19 | - | ||
20 | - | let j = addressFromStringValue(b(this, g)) | |
21 | - | ||
22 | - | let k = addressFromStringValue(b(this, h)) | |
23 | - | ||
24 | - | let l = 1 | |
25 | - | ||
26 | - | let m = 2 | |
27 | - | ||
28 | - | let n = 3 | |
29 | - | ||
30 | - | let o = 4 | |
31 | - | ||
32 | - | let p = 5 | |
33 | - | ||
34 | - | let q = 6 | |
35 | - | ||
36 | - | let r = 7 | |
37 | - | ||
38 | - | let s = 10 | |
39 | - | ||
40 | - | func t () = "%s__factoryConfig" | |
12 | + | func e (f,g) = valueOrErrorMessage(getString(f, g), b((("mandatory this." + g) + " is not defined"))) | |
41 | 13 | ||
42 | 14 | ||
43 | - | func | |
15 | + | func h () = "%s%s__config__factoryAddress" | |
44 | 16 | ||
45 | 17 | ||
46 | - | func w () = "%s__lpTokensList" | |
18 | + | let i = "%s%s__config__votingVerifiedContract" | |
19 | + | ||
20 | + | let j = "%s%s__config__votingEmissionCandidateContract" | |
21 | + | ||
22 | + | let k = "%s%s__config__userPoolsContract" | |
23 | + | ||
24 | + | let l = addressFromStringValue(e(this, i)) | |
25 | + | ||
26 | + | let m = addressFromStringValue(e(this, j)) | |
27 | + | ||
28 | + | let n = addressFromStringValue(e(this, k)) | |
29 | + | ||
30 | + | let o = 1 | |
31 | + | ||
32 | + | let p = 2 | |
33 | + | ||
34 | + | let q = 3 | |
35 | + | ||
36 | + | let r = 4 | |
37 | + | ||
38 | + | let s = 5 | |
39 | + | ||
40 | + | let t = 6 | |
41 | + | ||
42 | + | let u = 7 | |
43 | + | ||
44 | + | let v = 10 | |
45 | + | ||
46 | + | func w () = "%s__factoryConfig" | |
47 | 47 | ||
48 | 48 | ||
49 | - | func x ( | |
49 | + | func x (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | - | func | |
52 | + | func z () = "%s__lpTokensList" | |
53 | 53 | ||
54 | 54 | ||
55 | - | func A () = | |
55 | + | func A (y) = makeString(["%s%s%s", y, "mappings__lpAsset2PoolContract"], a) | |
56 | 56 | ||
57 | 57 | ||
58 | - | func B () = | |
58 | + | func B (C) = makeString(["%s%s", "poolWeight", C], a) | |
59 | 59 | ||
60 | 60 | ||
61 | - | func | |
61 | + | func D () = addressFromStringValue(e(this, h())) | |
62 | 62 | ||
63 | 63 | ||
64 | - | func E ( | |
64 | + | func E () = split(valueOrElse(getString(D(), z()), ""), a) | |
65 | 65 | ||
66 | 66 | ||
67 | - | func | |
67 | + | func F (G) = split(e(G, w()), a) | |
68 | 68 | ||
69 | 69 | ||
70 | - | func H ( | |
70 | + | func H (I) = addressFromStringValue(I[p]) | |
71 | 71 | ||
72 | 72 | ||
73 | - | func | |
73 | + | func J (I) = addressFromStringValue(I[s]) | |
74 | 74 | ||
75 | 75 | ||
76 | - | func | |
76 | + | func K (I) = addressFromStringValue(I[o]) | |
77 | 77 | ||
78 | 78 | ||
79 | - | func | |
79 | + | func L (I) = addressFromStringValue(I[v]) | |
80 | 80 | ||
81 | 81 | ||
82 | - | func | |
82 | + | func M () = "%s__config" | |
83 | 83 | ||
84 | 84 | ||
85 | - | func | |
85 | + | func N () = "%s%s__ratePerBlockMax__current" | |
86 | 86 | ||
87 | 87 | ||
88 | - | func | |
88 | + | func O (P,Q) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(P), toString(Q)], a) | |
89 | 89 | ||
90 | 90 | ||
91 | - | func | |
91 | + | func R () = "%s%s__ratePerBlock__current" | |
92 | 92 | ||
93 | 93 | ||
94 | - | func | |
94 | + | func S (P,Q) = makeString(["%s%s%d%d__ratePerBlock__start", toString(P), toString(Q)], a) | |
95 | 95 | ||
96 | 96 | ||
97 | - | func | |
97 | + | func T () = "%s%s__emission__startBlock" | |
98 | 98 | ||
99 | 99 | ||
100 | - | func | |
100 | + | func U () = "%s%s__emission__duration" | |
101 | 101 | ||
102 | 102 | ||
103 | - | func | |
103 | + | func V () = "%s%s__emission__endBlock" | |
104 | 104 | ||
105 | 105 | ||
106 | - | func V () = { | |
107 | - | let W = getString(T()) | |
108 | - | if ($isInstanceOf(W, "String")) | |
106 | + | func W () = "%s__boostCoeff" | |
107 | + | ||
108 | + | ||
109 | + | let X = 3 | |
110 | + | ||
111 | + | let Y = valueOrElse(getInteger(this, W()), X) | |
112 | + | ||
113 | + | func Z () = "%s__managerPublicKey" | |
114 | + | ||
115 | + | ||
116 | + | func aa () = "%s__pendingManagerPublicKey" | |
117 | + | ||
118 | + | ||
119 | + | func ab () = { | |
120 | + | let ac = getString(Z()) | |
121 | + | if ($isInstanceOf(ac, "String")) | |
109 | 122 | then { | |
110 | - | let | |
111 | - | fromBase58String( | |
123 | + | let ad = ac | |
124 | + | fromBase58String(ad) | |
112 | 125 | } | |
113 | - | else if ($isInstanceOf( | |
126 | + | else if ($isInstanceOf(ac, "Unit")) | |
114 | 127 | then unit | |
115 | 128 | else throw("Match error") | |
116 | 129 | } | |
117 | 130 | ||
118 | 131 | ||
119 | - | func | |
120 | - | let | |
121 | - | if ($isInstanceOf( | |
132 | + | func ae () = { | |
133 | + | let ac = getString(aa()) | |
134 | + | if ($isInstanceOf(ac, "String")) | |
122 | 135 | then { | |
123 | - | let | |
124 | - | fromBase58String( | |
136 | + | let ad = ac | |
137 | + | fromBase58String(ad) | |
125 | 138 | } | |
126 | - | else if ($isInstanceOf( | |
139 | + | else if ($isInstanceOf(ac, "Unit")) | |
127 | 140 | then unit | |
128 | 141 | else throw("Match error") | |
129 | 142 | } | |
130 | 143 | ||
131 | 144 | ||
132 | - | func | |
133 | - | let | |
134 | - | let | |
135 | - | if ($isInstanceOf( | |
145 | + | func af (ag) = { | |
146 | + | let ah = d("Permission denied") | |
147 | + | let ac = ab() | |
148 | + | if ($isInstanceOf(ac, "ByteVector")) | |
136 | 149 | then { | |
137 | - | let | |
138 | - | if (( | |
150 | + | let ai = ac | |
151 | + | if ((ag.callerPublicKey == ai)) | |
139 | 152 | then true | |
140 | - | else | |
153 | + | else ah | |
141 | 154 | } | |
142 | - | else if ($isInstanceOf( | |
143 | - | then if (( | |
155 | + | else if ($isInstanceOf(ac, "Unit")) | |
156 | + | then if ((ag.caller == this)) | |
144 | 157 | then true | |
145 | - | else | |
158 | + | else ah | |
146 | 159 | else throw("Match error") | |
147 | 160 | } | |
148 | 161 | ||
149 | 162 | ||
150 | - | @Callable( | |
151 | - | func constructor ( | |
152 | - | let | |
153 | - | if (( | |
154 | - | then [IntegerEntry( | |
163 | + | @Callable(ag) | |
164 | + | func constructor (aj,ak,al,am,an,ao,ap) = { | |
165 | + | let aq = af(ag) | |
166 | + | if ((aq == aq)) | |
167 | + | then [IntegerEntry(O(ao, am), ak), IntegerEntry(N(), ak), IntegerEntry(S(ao, am), al), IntegerEntry(R(), al), IntegerEntry(T(), am), IntegerEntry(U(), an), IntegerEntry(V(), (am + an)), StringEntry(h(), aj), StringEntry(M(), ("%s__" + ap))] | |
155 | 168 | else throw("Strict value is not equal to itself.") | |
156 | 169 | } | |
157 | 170 | ||
158 | 171 | ||
159 | 172 | ||
160 | - | @Callable( | |
161 | - | func constructorV2 ( | |
162 | - | let | |
163 | - | if (( | |
164 | - | then $Tuple2([StringEntry( | |
173 | + | @Callable(ag) | |
174 | + | func constructorV2 (ar) = { | |
175 | + | let aq = af(ag) | |
176 | + | if ((aq == aq)) | |
177 | + | then $Tuple2([StringEntry(i, ar)], unit) | |
165 | 178 | else throw("Strict value is not equal to itself.") | |
166 | 179 | } | |
167 | 180 | ||
168 | 181 | ||
169 | 182 | ||
170 | - | @Callable( | |
171 | - | func emit ( | |
183 | + | @Callable(ag) | |
184 | + | func emit (as) = if ((0 >= as)) | |
172 | 185 | then $Tuple2(nil, nil) | |
173 | 186 | else { | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | let | |
179 | - | if (if (( | |
180 | - | then ( | |
187 | + | let at = D() | |
188 | + | let I = F(at) | |
189 | + | let au = K(I) | |
190 | + | let av = L(I) | |
191 | + | let aw = ag.caller | |
192 | + | if (if ((aw != au)) | |
193 | + | then (aw != av) | |
181 | 194 | else false) | |
182 | - | then | |
195 | + | then d("permissions denied") | |
183 | 196 | else { | |
184 | - | let | |
185 | - | let | |
186 | - | $Tuple2([ScriptTransfer( | |
197 | + | let ap = split(e(this, M()), a)[1] | |
198 | + | let ax = fromBase58String(ap) | |
199 | + | $Tuple2([ScriptTransfer(aw, as, ax)], [ax]) | |
187 | 200 | } | |
188 | 201 | } | |
189 | 202 | ||
190 | 203 | ||
191 | 204 | ||
192 | - | @Callable( | |
205 | + | @Callable(ag) | |
193 | 206 | func burn () = { | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | if ((size( | |
198 | - | then | |
207 | + | let at = D() | |
208 | + | let I = F(at) | |
209 | + | let ay = H(I) | |
210 | + | if ((size(ag.payments) != 1)) | |
211 | + | then d("exact one payment is allowed") | |
199 | 212 | else { | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | if (( | |
205 | - | then | |
206 | - | else if (!(containsElement([ | |
207 | - | then | |
208 | - | else [Burn( | |
213 | + | let az = ag.payments[0] | |
214 | + | let aA = value(az.assetId) | |
215 | + | let aB = az.amount | |
216 | + | let ax = fromBase58String(split(e(this, M()), a)[1]) | |
217 | + | if ((aA != ax)) | |
218 | + | then d("invalid wxAssetId is passed") | |
219 | + | else if (!(containsElement([ay, l, m, n], ag.caller))) | |
220 | + | then d("permissions denied") | |
221 | + | else [Burn(aA, aB), StringEntry(("%s%s%s__history__burn__" + toBase58String(ag.transactionId)), makeString(["%d%d%d", toString(height), toString(lastBlock.timestamp), toString(aB)], a))] | |
209 | 222 | } | |
210 | 223 | } | |
211 | 224 | ||
212 | 225 | ||
213 | 226 | ||
214 | - | @Callable( | |
215 | - | func setManager ( | |
216 | - | let | |
217 | - | if (( | |
227 | + | @Callable(ag) | |
228 | + | func setManager (aC) = { | |
229 | + | let aq = af(ag) | |
230 | + | if ((aq == aq)) | |
218 | 231 | then { | |
219 | - | let | |
220 | - | if (( | |
221 | - | then [StringEntry( | |
232 | + | let aD = fromBase58String(aC) | |
233 | + | if ((aD == aD)) | |
234 | + | then [StringEntry(aa(), aC)] | |
222 | 235 | else throw("Strict value is not equal to itself.") | |
223 | 236 | } | |
224 | 237 | else throw("Strict value is not equal to itself.") | |
225 | 238 | } | |
226 | 239 | ||
227 | 240 | ||
228 | 241 | ||
229 | - | @Callable( | |
242 | + | @Callable(ag) | |
230 | 243 | func confirmManager () = { | |
231 | - | let | |
232 | - | let | |
244 | + | let aE = ae() | |
245 | + | let aF = if (isDefined(aE)) | |
233 | 246 | then true | |
234 | - | else | |
235 | - | if (( | |
247 | + | else d("No pending manager") | |
248 | + | if ((aF == aF)) | |
236 | 249 | then { | |
237 | - | let | |
250 | + | let aG = if ((ag.callerPublicKey == value(aE))) | |
238 | 251 | then true | |
239 | - | else | |
240 | - | if (( | |
241 | - | then [StringEntry( | |
252 | + | else d("You are not pending manager") | |
253 | + | if ((aG == aG)) | |
254 | + | then [StringEntry(Z(), toBase58String(value(aE))), DeleteEntry(aa())] | |
242 | 255 | else throw("Strict value is not equal to itself.") | |
243 | 256 | } | |
244 | 257 | else throw("Strict value is not equal to itself.") | |
245 | 258 | } | |
246 | 259 | ||
247 | 260 | ||
248 | - | @Verifier(aB) | |
249 | - | func aC () = { | |
250 | - | let aD = { | |
251 | - | let W = V() | |
252 | - | if ($isInstanceOf(W, "ByteVector")) | |
261 | + | ||
262 | + | @Callable(ag) | |
263 | + | func getBoostCoeffREADONLY () = $Tuple2(nil, Y) | |
264 | + | ||
265 | + | ||
266 | + | @Verifier(aH) | |
267 | + | func aI () = { | |
268 | + | let aJ = { | |
269 | + | let ac = ab() | |
270 | + | if ($isInstanceOf(ac, "ByteVector")) | |
253 | 271 | then { | |
254 | - | let | |
255 | - | | |
272 | + | let ai = ac | |
273 | + | ai | |
256 | 274 | } | |
257 | - | else if ($isInstanceOf( | |
258 | - | then | |
275 | + | else if ($isInstanceOf(ac, "Unit")) | |
276 | + | then aH.senderPublicKey | |
259 | 277 | else throw("Match error") | |
260 | 278 | } | |
261 | - | sigVerify( | |
279 | + | sigVerify(aH.bodyBytes, aH.proofs[0], aJ) | |
262 | 280 | } | |
263 | 281 |
github/deemru/w8io/026f985 90.07 ms ◑