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