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