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