tx · 7A5u8p8xKPJ1cD8oHe5VmfWhFYW1wU213LEv7ycbEKrC 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA: -0.01300000 Waves 2023.03.27 18:11 [2508531] smart account 3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA > SELF 0.00000000 Waves
{ "type": 13, "id": "7A5u8p8xKPJ1cD8oHe5VmfWhFYW1wU213LEv7ycbEKrC", "fee": 1300000, "feeAssetId": null, "timestamp": 1679929943034, "version": 2, "chainId": 84, "sender": "3NBqs2vfpyT5cMdUJ97mEJ1Ycp2y8GbAZDA", "senderPublicKey": "H19CeJVbUnfsK8EYs8K6fHxwBH7pLyxw8WCDFu7D4rGQ", "proofs": [ "4VgebUhevVNc6wcWJCirhNJxxJS4UCq1TnvAL49vsZw8kWd679pzHSptj1UEjaH2hd8SwpoBW3guqMxJY6coksDQ" ], "script": "base64:AAIFAAAAAAAABjgIAhIJCgcIAQEBAQEIEgMKAQgSAwoBARIAEgMKAQgSABIAIgNTRVAiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiD2dldFN0cmluZ09yRmFpbCIHYWRkcmVzcyIDa2V5IhFrZXlGYWN0b3J5QWRkcmVzcyIZa2V5Vm90aW5nVmVyaWZpZWRDb250cmFjdCIia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIUa2V5VXNlclBvb2xzQ29udHJhY3QiFnZvdGluZ1ZlcmlmaWVkQ29udHJhY3QiH3ZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QiEXVzZXJQb29sc0NvbnRyYWN0IhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAiFElkeEZhY3RvcnlDZmdJZG9EYXBwIhVJZHhGYWN0b3J5Q2ZnVGVhbURhcHAiGUlkeEZhY3RvcnlDZmdFbWlzc2lvbkRhcHAiFUlkeEZhY3RvcnlDZmdSZXN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CQABkQAAAAIIBQAAAAJhSAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmFK9qp44A==", "height": 2508531, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9LX9TmfgFMvNdxpdNuFmF1cnHUb3bVbQmBTqccJWMyWe Next: 4M8AEUuhVe2LGh2AJayJAGKCnMvfzgTKfU11XeJZbQcC 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 | - | let U = 3 | |
104 | - | ||
105 | - | let V = valueOrElse(getInteger(this, T()), U) | |
106 | - | ||
107 | - | func W () = "%s__managerPublicKey" | |
103 | + | func V () = "%s%s__emission__endBlock" | |
108 | 104 | ||
109 | 105 | ||
110 | - | func | |
106 | + | func W () = "%s__boostCoeff" | |
111 | 107 | ||
112 | 108 | ||
113 | - | func Y () = { | |
114 | - | let Z = getString(W()) | |
115 | - | if ($isInstanceOf(Z, "String")) | |
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")) | |
116 | 122 | then { | |
117 | - | let | |
118 | - | fromBase58String( | |
123 | + | let ad = ac | |
124 | + | fromBase58String(ad) | |
119 | 125 | } | |
120 | - | else if ($isInstanceOf( | |
126 | + | else if ($isInstanceOf(ac, "Unit")) | |
121 | 127 | then unit | |
122 | 128 | else throw("Match error") | |
123 | 129 | } | |
124 | 130 | ||
125 | 131 | ||
126 | - | func | |
127 | - | let | |
128 | - | if ($isInstanceOf( | |
132 | + | func ae () = { | |
133 | + | let ac = getString(aa()) | |
134 | + | if ($isInstanceOf(ac, "String")) | |
129 | 135 | then { | |
130 | - | let | |
131 | - | fromBase58String( | |
136 | + | let ad = ac | |
137 | + | fromBase58String(ad) | |
132 | 138 | } | |
133 | - | else if ($isInstanceOf( | |
139 | + | else if ($isInstanceOf(ac, "Unit")) | |
134 | 140 | then unit | |
135 | 141 | else throw("Match error") | |
136 | 142 | } | |
137 | 143 | ||
138 | 144 | ||
139 | - | func | |
140 | - | let | |
141 | - | let | |
142 | - | if ($isInstanceOf( | |
145 | + | func af (ag) = { | |
146 | + | let ah = d("Permission denied") | |
147 | + | let ac = ab() | |
148 | + | if ($isInstanceOf(ac, "ByteVector")) | |
143 | 149 | then { | |
144 | - | let | |
145 | - | if (( | |
150 | + | let ai = ac | |
151 | + | if ((ag.callerPublicKey == ai)) | |
146 | 152 | then true | |
147 | - | else | |
153 | + | else ah | |
148 | 154 | } | |
149 | - | else if ($isInstanceOf( | |
150 | - | then if (( | |
155 | + | else if ($isInstanceOf(ac, "Unit")) | |
156 | + | then if ((ag.caller == this)) | |
151 | 157 | then true | |
152 | - | else | |
158 | + | else ah | |
153 | 159 | else throw("Match error") | |
154 | 160 | } | |
155 | 161 | ||
156 | 162 | ||
157 | - | @Callable( | |
158 | - | func constructor ( | |
159 | - | let | |
160 | - | if (( | |
161 | - | 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))] | |
162 | 168 | else throw("Strict value is not equal to itself.") | |
163 | 169 | } | |
164 | 170 | ||
165 | 171 | ||
166 | 172 | ||
167 | - | @Callable( | |
168 | - | func constructorV2 ( | |
169 | - | let | |
170 | - | if (( | |
171 | - | 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) | |
172 | 178 | else throw("Strict value is not equal to itself.") | |
173 | 179 | } | |
174 | 180 | ||
175 | 181 | ||
176 | 182 | ||
177 | - | @Callable( | |
178 | - | func emit ( | |
183 | + | @Callable(ag) | |
184 | + | func emit (as) = if ((0 >= as)) | |
179 | 185 | then $Tuple2(nil, nil) | |
180 | 186 | else { | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | if (if (( | |
187 | - | 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) | |
188 | 194 | else false) | |
189 | - | then | |
195 | + | then d("permissions denied") | |
190 | 196 | else { | |
191 | - | let | |
192 | - | let | |
193 | - | $Tuple2([ScriptTransfer( | |
197 | + | let ap = split(e(this, M()), a)[1] | |
198 | + | let ax = fromBase58String(ap) | |
199 | + | $Tuple2([ScriptTransfer(aw, as, ax)], [ax]) | |
194 | 200 | } | |
195 | 201 | } | |
196 | 202 | ||
197 | 203 | ||
198 | 204 | ||
199 | - | @Callable( | |
205 | + | @Callable(ag) | |
200 | 206 | func burn () = { | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | if ((size( | |
205 | - | 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") | |
206 | 212 | else { | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | if (( | |
212 | - | then | |
213 | - | else if (!(containsElement([ | |
214 | - | then | |
215 | - | 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))] | |
216 | 222 | } | |
217 | 223 | } | |
218 | 224 | ||
219 | 225 | ||
220 | 226 | ||
221 | - | @Callable( | |
222 | - | func setManager ( | |
223 | - | let | |
224 | - | if (( | |
227 | + | @Callable(ag) | |
228 | + | func setManager (aC) = { | |
229 | + | let aq = af(ag) | |
230 | + | if ((aq == aq)) | |
225 | 231 | then { | |
226 | - | let | |
227 | - | if (( | |
228 | - | then [StringEntry( | |
232 | + | let aD = fromBase58String(aC) | |
233 | + | if ((aD == aD)) | |
234 | + | then [StringEntry(aa(), aC)] | |
229 | 235 | else throw("Strict value is not equal to itself.") | |
230 | 236 | } | |
231 | 237 | else throw("Strict value is not equal to itself.") | |
233 | 239 | ||
234 | 240 | ||
235 | 241 | ||
236 | - | @Callable( | |
242 | + | @Callable(ag) | |
237 | 243 | func confirmManager () = { | |
238 | - | let | |
239 | - | let | |
244 | + | let aE = ae() | |
245 | + | let aF = if (isDefined(aE)) | |
240 | 246 | then true | |
241 | - | else | |
242 | - | if (( | |
247 | + | else d("No pending manager") | |
248 | + | if ((aF == aF)) | |
243 | 249 | then { | |
244 | - | let | |
250 | + | let aG = if ((ag.callerPublicKey == value(aE))) | |
245 | 251 | then true | |
246 | - | else | |
247 | - | if (( | |
248 | - | then [StringEntry( | |
252 | + | else d("You are not pending manager") | |
253 | + | if ((aG == aG)) | |
254 | + | then [StringEntry(Z(), toBase58String(value(aE))), DeleteEntry(aa())] | |
249 | 255 | else throw("Strict value is not equal to itself.") | |
250 | 256 | } | |
251 | 257 | else throw("Strict value is not equal to itself.") | |
253 | 259 | ||
254 | 260 | ||
255 | 261 | ||
256 | - | @Callable( | |
257 | - | func getBoostCoeffREADONLY () = $Tuple2(nil, | |
262 | + | @Callable(ag) | |
263 | + | func getBoostCoeffREADONLY () = $Tuple2(nil, Y) | |
258 | 264 | ||
259 | 265 | ||
260 | - | @Verifier( | |
261 | - | func | |
262 | - | let | |
263 | - | let | |
264 | - | if ($isInstanceOf( | |
266 | + | @Verifier(aH) | |
267 | + | func aI () = { | |
268 | + | let aJ = { | |
269 | + | let ac = ab() | |
270 | + | if ($isInstanceOf(ac, "ByteVector")) | |
265 | 271 | then { | |
266 | - | let | |
267 | - | | |
272 | + | let ai = ac | |
273 | + | ai | |
268 | 274 | } | |
269 | - | else if ($isInstanceOf( | |
270 | - | then | |
275 | + | else if ($isInstanceOf(ac, "Unit")) | |
276 | + | then aH.senderPublicKey | |
271 | 277 | else throw("Match error") | |
272 | 278 | } | |
273 | - | sigVerify( | |
279 | + | sigVerify(aH.bodyBytes, aH.proofs[0], aJ) | |
274 | 280 | } | |
275 | 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 | - | let U = 3 | |
104 | - | ||
105 | - | let V = valueOrElse(getInteger(this, T()), U) | |
106 | - | ||
107 | - | func W () = "%s__managerPublicKey" | |
103 | + | func V () = "%s%s__emission__endBlock" | |
108 | 104 | ||
109 | 105 | ||
110 | - | func | |
106 | + | func W () = "%s__boostCoeff" | |
111 | 107 | ||
112 | 108 | ||
113 | - | func Y () = { | |
114 | - | let Z = getString(W()) | |
115 | - | if ($isInstanceOf(Z, "String")) | |
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")) | |
116 | 122 | then { | |
117 | - | let | |
118 | - | fromBase58String( | |
123 | + | let ad = ac | |
124 | + | fromBase58String(ad) | |
119 | 125 | } | |
120 | - | else if ($isInstanceOf( | |
126 | + | else if ($isInstanceOf(ac, "Unit")) | |
121 | 127 | then unit | |
122 | 128 | else throw("Match error") | |
123 | 129 | } | |
124 | 130 | ||
125 | 131 | ||
126 | - | func | |
127 | - | let | |
128 | - | if ($isInstanceOf( | |
132 | + | func ae () = { | |
133 | + | let ac = getString(aa()) | |
134 | + | if ($isInstanceOf(ac, "String")) | |
129 | 135 | then { | |
130 | - | let | |
131 | - | fromBase58String( | |
136 | + | let ad = ac | |
137 | + | fromBase58String(ad) | |
132 | 138 | } | |
133 | - | else if ($isInstanceOf( | |
139 | + | else if ($isInstanceOf(ac, "Unit")) | |
134 | 140 | then unit | |
135 | 141 | else throw("Match error") | |
136 | 142 | } | |
137 | 143 | ||
138 | 144 | ||
139 | - | func | |
140 | - | let | |
141 | - | let | |
142 | - | if ($isInstanceOf( | |
145 | + | func af (ag) = { | |
146 | + | let ah = d("Permission denied") | |
147 | + | let ac = ab() | |
148 | + | if ($isInstanceOf(ac, "ByteVector")) | |
143 | 149 | then { | |
144 | - | let | |
145 | - | if (( | |
150 | + | let ai = ac | |
151 | + | if ((ag.callerPublicKey == ai)) | |
146 | 152 | then true | |
147 | - | else | |
153 | + | else ah | |
148 | 154 | } | |
149 | - | else if ($isInstanceOf( | |
150 | - | then if (( | |
155 | + | else if ($isInstanceOf(ac, "Unit")) | |
156 | + | then if ((ag.caller == this)) | |
151 | 157 | then true | |
152 | - | else | |
158 | + | else ah | |
153 | 159 | else throw("Match error") | |
154 | 160 | } | |
155 | 161 | ||
156 | 162 | ||
157 | - | @Callable( | |
158 | - | func constructor ( | |
159 | - | let | |
160 | - | if (( | |
161 | - | 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))] | |
162 | 168 | else throw("Strict value is not equal to itself.") | |
163 | 169 | } | |
164 | 170 | ||
165 | 171 | ||
166 | 172 | ||
167 | - | @Callable( | |
168 | - | func constructorV2 ( | |
169 | - | let | |
170 | - | if (( | |
171 | - | 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) | |
172 | 178 | else throw("Strict value is not equal to itself.") | |
173 | 179 | } | |
174 | 180 | ||
175 | 181 | ||
176 | 182 | ||
177 | - | @Callable( | |
178 | - | func emit ( | |
183 | + | @Callable(ag) | |
184 | + | func emit (as) = if ((0 >= as)) | |
179 | 185 | then $Tuple2(nil, nil) | |
180 | 186 | else { | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | if (if (( | |
187 | - | 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) | |
188 | 194 | else false) | |
189 | - | then | |
195 | + | then d("permissions denied") | |
190 | 196 | else { | |
191 | - | let | |
192 | - | let | |
193 | - | $Tuple2([ScriptTransfer( | |
197 | + | let ap = split(e(this, M()), a)[1] | |
198 | + | let ax = fromBase58String(ap) | |
199 | + | $Tuple2([ScriptTransfer(aw, as, ax)], [ax]) | |
194 | 200 | } | |
195 | 201 | } | |
196 | 202 | ||
197 | 203 | ||
198 | 204 | ||
199 | - | @Callable( | |
205 | + | @Callable(ag) | |
200 | 206 | func burn () = { | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | if ((size( | |
205 | - | 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") | |
206 | 212 | else { | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | if (( | |
212 | - | then | |
213 | - | else if (!(containsElement([ | |
214 | - | then | |
215 | - | 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))] | |
216 | 222 | } | |
217 | 223 | } | |
218 | 224 | ||
219 | 225 | ||
220 | 226 | ||
221 | - | @Callable( | |
222 | - | func setManager ( | |
223 | - | let | |
224 | - | if (( | |
227 | + | @Callable(ag) | |
228 | + | func setManager (aC) = { | |
229 | + | let aq = af(ag) | |
230 | + | if ((aq == aq)) | |
225 | 231 | then { | |
226 | - | let | |
227 | - | if (( | |
228 | - | then [StringEntry( | |
232 | + | let aD = fromBase58String(aC) | |
233 | + | if ((aD == aD)) | |
234 | + | then [StringEntry(aa(), aC)] | |
229 | 235 | else throw("Strict value is not equal to itself.") | |
230 | 236 | } | |
231 | 237 | else throw("Strict value is not equal to itself.") | |
232 | 238 | } | |
233 | 239 | ||
234 | 240 | ||
235 | 241 | ||
236 | - | @Callable( | |
242 | + | @Callable(ag) | |
237 | 243 | func confirmManager () = { | |
238 | - | let | |
239 | - | let | |
244 | + | let aE = ae() | |
245 | + | let aF = if (isDefined(aE)) | |
240 | 246 | then true | |
241 | - | else | |
242 | - | if (( | |
247 | + | else d("No pending manager") | |
248 | + | if ((aF == aF)) | |
243 | 249 | then { | |
244 | - | let | |
250 | + | let aG = if ((ag.callerPublicKey == value(aE))) | |
245 | 251 | then true | |
246 | - | else | |
247 | - | if (( | |
248 | - | then [StringEntry( | |
252 | + | else d("You are not pending manager") | |
253 | + | if ((aG == aG)) | |
254 | + | then [StringEntry(Z(), toBase58String(value(aE))), DeleteEntry(aa())] | |
249 | 255 | else throw("Strict value is not equal to itself.") | |
250 | 256 | } | |
251 | 257 | else throw("Strict value is not equal to itself.") | |
252 | 258 | } | |
253 | 259 | ||
254 | 260 | ||
255 | 261 | ||
256 | - | @Callable( | |
257 | - | func getBoostCoeffREADONLY () = $Tuple2(nil, | |
262 | + | @Callable(ag) | |
263 | + | func getBoostCoeffREADONLY () = $Tuple2(nil, Y) | |
258 | 264 | ||
259 | 265 | ||
260 | - | @Verifier( | |
261 | - | func | |
262 | - | let | |
263 | - | let | |
264 | - | if ($isInstanceOf( | |
266 | + | @Verifier(aH) | |
267 | + | func aI () = { | |
268 | + | let aJ = { | |
269 | + | let ac = ab() | |
270 | + | if ($isInstanceOf(ac, "ByteVector")) | |
265 | 271 | then { | |
266 | - | let | |
267 | - | | |
272 | + | let ai = ac | |
273 | + | ai | |
268 | 274 | } | |
269 | - | else if ($isInstanceOf( | |
270 | - | then | |
275 | + | else if ($isInstanceOf(ac, "Unit")) | |
276 | + | then aH.senderPublicKey | |
271 | 277 | else throw("Match error") | |
272 | 278 | } | |
273 | - | sigVerify( | |
279 | + | sigVerify(aH.bodyBytes, aH.proofs[0], aJ) | |
274 | 280 | } | |
275 | 281 |
github/deemru/w8io/026f985 91.39 ms ◑