tx · 9mtHfAgaGN7N91fkPGmPhsUBTh3D6wTaYQWxY2A7hnSX 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T: -0.01400000 Waves 2022.04.29 18:49 [2029966] smart account 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T > SELF 0.00000000 Waves
{ "type": 13, "id": "9mtHfAgaGN7N91fkPGmPhsUBTh3D6wTaYQWxY2A7hnSX", "fee": 1400000, "feeAssetId": null, "timestamp": 1651247392618, "version": 1, "sender": "3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T", "senderPublicKey": "7iXEgsFNsnbLZ3ca4tmz8jffnyxMu9keuBV6CuQPJLuA", "proofs": [ "qvt8cRpPZaDnMwuwcDiNxMjQsoSuSAcuKNgFkWhTWLtqtL9pFiXPzFqzsytDToqG3j1xJPEwUBK2rJxJKPyyxfn" ], "script": "base64:AAIFAAAAAAAAACMIAhILCgkICAgIAQgBAQgSBAoCCAgSBQoDCAgEEgMKAQgSAAAAABgAAAAACXNlcGFyYXRvcgIAAAACX18AAAAADGtleUZlZUFtb3VudAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAAA2ZlZQUAAAADbmlsBQAAAAlzZXBhcmF0b3IAAAAADmtleVVzZG5Bc3NldElkCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAALdXNkbkFzc2V0SWQFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAABFrZXlWb3RpbmdEdXJhdGlvbgkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAAC2Vwb2NoTGVuZ3RoBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAASa2V5Vm90aW5nVGhyZXNob2xkCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAAPdm90aW5nVGhyZXNob2xkBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAAMa2V5V3hBc3NldElkCQAEuQAAAAIJAARMAAAAAgIAA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SBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5+oW66g==", "chainId": 84, "height": 2029966, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J7CtRfvmR6nxAmVpGH798a1n9V3WL4HU17ZVEzPLqXak Next: 9vHL7r6M9ndfd8VKh1tFWGn3LPm3pCoMpHG6mo8JoZy5 Diff:
Old | New | Differences | |
---|---|---|---|
149 | 149 | then true | |
150 | 150 | else throw("priceAssetId is not USDN"), if ((getBoolean(m(n, o)) == unit)) | |
151 | 151 | then true | |
152 | - | else throw("Already in voting list"), if (valueOrElse(invoke(w, "keyStatus", [n, o], nil), false)) | |
153 | - | then true | |
154 | - | else throw("User pool is not active")] | |
152 | + | else throw("Already in voting list")] | |
155 | 153 | if ((S == S)) | |
156 | 154 | then { | |
157 | 155 | let V = { | |
158 | - | let z = invoke( | |
159 | - | if ($isInstanceOf(z, " | |
156 | + | let z = invoke(w, "statusREADONLY", [n, o], nil) | |
157 | + | if ($isInstanceOf(z, "String")) | |
160 | 158 | then { | |
161 | - | let W = z | |
162 | - | W | |
159 | + | let A = z | |
160 | + | if ((A == "active")) | |
161 | + | then true | |
162 | + | else throw("User pool is not active") | |
163 | 163 | } | |
164 | - | else throw(" | |
164 | + | else throw("User pool is not active") | |
165 | 165 | } | |
166 | - | let X = invoke(v, "burn", nil, [AttachedPayment(T.assetId, T.amount)]) | |
167 | - | if ((X == X)) | |
168 | - | then [BooleanEntry(m(n, o), true), IntegerEntry(p(n, o), height)] | |
166 | + | if ((V == V)) | |
167 | + | then { | |
168 | + | let W = { | |
169 | + | let z = invoke(value(addressFromString(g)), "isVerifiedREADONLY", [n], nil) | |
170 | + | if ($isInstanceOf(z, "Boolean")) | |
171 | + | then { | |
172 | + | let X = z | |
173 | + | X | |
174 | + | } | |
175 | + | else throw("Asset is not verified") | |
176 | + | } | |
177 | + | if ((W == W)) | |
178 | + | then { | |
179 | + | let Y = invoke(v, "burn", nil, [AttachedPayment(T.assetId, T.amount)]) | |
180 | + | if ((Y == Y)) | |
181 | + | then [BooleanEntry(m(n, o), true), IntegerEntry(p(n, o), height)] | |
182 | + | else throw("Strict value is not equal to itself.") | |
183 | + | } | |
184 | + | else throw("Strict value is not equal to itself.") | |
185 | + | } | |
169 | 186 | else throw("Strict value is not equal to itself.") | |
170 | 187 | } | |
171 | 188 | else throw("Strict value is not equal to itself.") | |
174 | 191 | ||
175 | 192 | ||
176 | 193 | @Callable(D) | |
177 | - | func vote (n,o, | |
194 | + | func vote (n,o,Z) = { | |
178 | 195 | let S = [if (valueOrElse(getBoolean(m(n, o)), false)) | |
179 | 196 | then true | |
180 | 197 | else throw("The token isn't on the voting list"), (height >= (value(getInteger(p(n, o))) + value(getInteger(d))))] | |
181 | 198 | if ((S == S)) | |
182 | 199 | then { | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
200 | + | let aa = split(value(getString(q(n, o))), a) | |
201 | + | let ab = aa[1] | |
202 | + | let ac = aa[2] | |
203 | + | let ad = invoke(x, "getUserGwxAmountAtHeightREADONLY", [toString(D.caller), height], nil) | |
204 | + | let ae = if (Z) | |
188 | 205 | then { | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | $Tuple2([StringEntry(q(n, o), | |
206 | + | let af = (parseIntValue(ab) + G(ad)) | |
207 | + | let ag = makeString(["%d%d", toString(af), ac], a) | |
208 | + | let ah = r(n, o, toString(D.caller)) | |
209 | + | let ai = makeString([q(n, o), "yes"], a) | |
210 | + | $Tuple2([StringEntry(q(n, o), ag), StringEntry(ah, ai)], unit) | |
194 | 211 | } | |
195 | 212 | else { | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | $Tuple2([StringEntry(q(n, o), | |
213 | + | let aj = (parseIntValue(ac) + G(ad)) | |
214 | + | let ag = makeString(["%d%d", ab, toString(aj)], a) | |
215 | + | let ak = r(n, o, toString(D.caller)) | |
216 | + | let al = makeString([q(n, o), "no"], a) | |
217 | + | $Tuple2([StringEntry(q(n, o), ag), StringEntry(ak, al)], unit) | |
201 | 218 | } | |
202 | - | | |
219 | + | ae | |
203 | 220 | } | |
204 | 221 | else throw("Strict value is not equal to itself.") | |
205 | 222 | } | |
207 | 224 | ||
208 | 225 | ||
209 | 226 | @Callable(D) | |
210 | - | func setManager ( | |
211 | - | let | |
212 | - | if (( | |
227 | + | func setManager (am) = { | |
228 | + | let an = C(D) | |
229 | + | if ((an == an)) | |
213 | 230 | then { | |
214 | - | let | |
215 | - | if (( | |
216 | - | then [StringEntry(u(), | |
231 | + | let ao = fromBase58String(am) | |
232 | + | if ((ao == ao)) | |
233 | + | then [StringEntry(u(), am)] | |
217 | 234 | else throw("Strict value is not equal to itself.") | |
218 | 235 | } | |
219 | 236 | else throw("Strict value is not equal to itself.") | |
223 | 240 | ||
224 | 241 | @Callable(D) | |
225 | 242 | func confirmManager () = { | |
226 | - | let | |
227 | - | let | |
243 | + | let ap = B() | |
244 | + | let aq = if (isDefined(ap)) | |
228 | 245 | then true | |
229 | 246 | else throw("No pending manager") | |
230 | - | if (( | |
247 | + | if ((aq == aq)) | |
231 | 248 | then { | |
232 | - | let | |
249 | + | let ar = if ((D.callerPublicKey == value(ap))) | |
233 | 250 | then true | |
234 | 251 | else throw("You are not pending manager") | |
235 | - | if (( | |
236 | - | then [StringEntry(t(), toBase58String(value( | |
252 | + | if ((ar == ar)) | |
253 | + | then [StringEntry(t(), toBase58String(value(ap))), DeleteEntry(u())] | |
237 | 254 | else throw("Strict value is not equal to itself.") | |
238 | 255 | } | |
239 | 256 | else throw("Strict value is not equal to itself.") | |
240 | 257 | } | |
241 | 258 | ||
242 | 259 | ||
243 | - | @Verifier( | |
244 | - | func | |
245 | - | let | |
260 | + | @Verifier(as) | |
261 | + | func at () = { | |
262 | + | let au = { | |
246 | 263 | let z = y() | |
247 | 264 | if ($isInstanceOf(z, "ByteVector")) | |
248 | 265 | then { | |
250 | 267 | F | |
251 | 268 | } | |
252 | 269 | else if ($isInstanceOf(z, "Unit")) | |
253 | - | then | |
270 | + | then as.senderPublicKey | |
254 | 271 | else throw("Match error") | |
255 | 272 | } | |
256 | - | sigVerify( | |
273 | + | sigVerify(as.bodyBytes, as.proofs[0], au) | |
257 | 274 | } | |
258 | 275 |
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 | let b = makeString(["%s", "fee"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "usdnAssetId"], a) | |
9 | 9 | ||
10 | 10 | let d = makeString(["%s", "epochLength"], a) | |
11 | 11 | ||
12 | 12 | let e = makeString(["%s", "votingThreshold"], a) | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "wxAssetId"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s", "assetsStoreContract"], a) | |
17 | 17 | ||
18 | 18 | let h = makeString(["%s", "userPoolContract"], a) | |
19 | 19 | ||
20 | 20 | let i = makeString(["%s", "emissionContract"], a) | |
21 | 21 | ||
22 | 22 | let j = makeString(["%s", "boostingContract"], a) | |
23 | 23 | ||
24 | 24 | func k (l) = valueOrErrorMessage(getString(this, l), (l + " is not defined")) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func m (n,o) = makeString([("%s%s%s" + "inList"), n, o], a) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func p (n,o) = makeString([("%s%s%s" + "startHeight"), n, o], a) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func q (n,o) = makeString(["%s%s%s", "votingResult", n, o], a) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func r (n,o,s) = makeString(["%s%s%s%s", "vote", n, o, s], a) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func t () = "%s__managerPublicKey" | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func u () = "%s__pendingManagerPublicKey" | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let v = addressFromStringValue(k(i)) | |
46 | 46 | ||
47 | 47 | let w = addressFromStringValue(k(h)) | |
48 | 48 | ||
49 | 49 | let x = addressFromStringValue(k(j)) | |
50 | 50 | ||
51 | 51 | func y () = { | |
52 | 52 | let z = getString(t()) | |
53 | 53 | if ($isInstanceOf(z, "String")) | |
54 | 54 | then { | |
55 | 55 | let A = z | |
56 | 56 | fromBase58String(A) | |
57 | 57 | } | |
58 | 58 | else if ($isInstanceOf(z, "Unit")) | |
59 | 59 | then unit | |
60 | 60 | else throw("Match error") | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func B () = { | |
65 | 65 | let z = getString(u()) | |
66 | 66 | if ($isInstanceOf(z, "String")) | |
67 | 67 | then { | |
68 | 68 | let A = z | |
69 | 69 | fromBase58String(A) | |
70 | 70 | } | |
71 | 71 | else if ($isInstanceOf(z, "Unit")) | |
72 | 72 | then unit | |
73 | 73 | else throw("Match error") | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func C (D) = { | |
78 | 78 | let E = throw("Permission denied") | |
79 | 79 | let z = y() | |
80 | 80 | if ($isInstanceOf(z, "ByteVector")) | |
81 | 81 | then { | |
82 | 82 | let F = z | |
83 | 83 | if ((D.callerPublicKey == F)) | |
84 | 84 | then true | |
85 | 85 | else E | |
86 | 86 | } | |
87 | 87 | else if ($isInstanceOf(z, "Unit")) | |
88 | 88 | then if ((D.caller == this)) | |
89 | 89 | then true | |
90 | 90 | else E | |
91 | 91 | else throw("Match error") | |
92 | 92 | } | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func G (H) = { | |
96 | 96 | let z = H | |
97 | 97 | if ($isInstanceOf(z, "Int")) | |
98 | 98 | then { | |
99 | 99 | let I = z | |
100 | 100 | I | |
101 | 101 | } | |
102 | 102 | else throw("Failed to cast into Integer") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(D) | |
107 | 107 | func constructor (J,K,L,M,N,O,P,Q,R) = { | |
108 | 108 | let S = [if (C(D)) | |
109 | 109 | then true | |
110 | 110 | else throw("Must manager"), if (isDefined(addressFromString(J))) | |
111 | 111 | then true | |
112 | 112 | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(L))) | |
113 | 113 | then true | |
114 | 114 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(K))) | |
115 | 115 | then true | |
116 | 116 | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(M))) | |
117 | 117 | then true | |
118 | 118 | else throw("Invalid emission contract address"), if ((N >= 0)) | |
119 | 119 | then true | |
120 | 120 | else throw("Invalid fee amount"), if ((Q > 0)) | |
121 | 121 | then true | |
122 | 122 | else throw("Invalid voting duration"), if ((P >= 0)) | |
123 | 123 | then true | |
124 | 124 | else throw("Invalid voting threshold"), if (isDefined(assetInfo(fromBase58String(O)))) | |
125 | 125 | then true | |
126 | 126 | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(R)))) | |
127 | 127 | then true | |
128 | 128 | else throw("Invalid USDN asset ID")] | |
129 | 129 | if ((S == S)) | |
130 | 130 | then $Tuple2([StringEntry(g, J), StringEntry(h, K), StringEntry(i, M), IntegerEntry(b, N), IntegerEntry(d, Q), IntegerEntry(e, P), StringEntry(f, O), StringEntry(c, R)], unit) | |
131 | 131 | else throw("Strict value is not equal to itself.") | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | ||
136 | 136 | @Callable(D) | |
137 | 137 | func suggest (n,o) = { | |
138 | 138 | let T = value(D.payments[0]) | |
139 | 139 | let U = valueOrErrorMessage(assetInfo(fromBase58String(n)), "Invalid amountAssetId ID") | |
140 | 140 | let S = [if ((U.issuer == D.caller)) | |
141 | 141 | then true | |
142 | 142 | else throw("Asset can only be suggested by its issuer"), if ((U.scripted == false)) | |
143 | 143 | then true | |
144 | 144 | else throw("Asset is smart"), if ((toBase58String(value(T.assetId)) == value(getString(f)))) | |
145 | 145 | then true | |
146 | 146 | else throw("Invalid fee asset"), if ((T.amount == value(getInteger(b)))) | |
147 | 147 | then true | |
148 | 148 | else throw("Invalid fee amount"), if ((o == value(getString(c)))) | |
149 | 149 | then true | |
150 | 150 | else throw("priceAssetId is not USDN"), if ((getBoolean(m(n, o)) == unit)) | |
151 | 151 | then true | |
152 | - | else throw("Already in voting list"), if (valueOrElse(invoke(w, "keyStatus", [n, o], nil), false)) | |
153 | - | then true | |
154 | - | else throw("User pool is not active")] | |
152 | + | else throw("Already in voting list")] | |
155 | 153 | if ((S == S)) | |
156 | 154 | then { | |
157 | 155 | let V = { | |
158 | - | let z = invoke( | |
159 | - | if ($isInstanceOf(z, " | |
156 | + | let z = invoke(w, "statusREADONLY", [n, o], nil) | |
157 | + | if ($isInstanceOf(z, "String")) | |
160 | 158 | then { | |
161 | - | let W = z | |
162 | - | W | |
159 | + | let A = z | |
160 | + | if ((A == "active")) | |
161 | + | then true | |
162 | + | else throw("User pool is not active") | |
163 | 163 | } | |
164 | - | else throw(" | |
164 | + | else throw("User pool is not active") | |
165 | 165 | } | |
166 | - | let X = invoke(v, "burn", nil, [AttachedPayment(T.assetId, T.amount)]) | |
167 | - | if ((X == X)) | |
168 | - | then [BooleanEntry(m(n, o), true), IntegerEntry(p(n, o), height)] | |
166 | + | if ((V == V)) | |
167 | + | then { | |
168 | + | let W = { | |
169 | + | let z = invoke(value(addressFromString(g)), "isVerifiedREADONLY", [n], nil) | |
170 | + | if ($isInstanceOf(z, "Boolean")) | |
171 | + | then { | |
172 | + | let X = z | |
173 | + | X | |
174 | + | } | |
175 | + | else throw("Asset is not verified") | |
176 | + | } | |
177 | + | if ((W == W)) | |
178 | + | then { | |
179 | + | let Y = invoke(v, "burn", nil, [AttachedPayment(T.assetId, T.amount)]) | |
180 | + | if ((Y == Y)) | |
181 | + | then [BooleanEntry(m(n, o), true), IntegerEntry(p(n, o), height)] | |
182 | + | else throw("Strict value is not equal to itself.") | |
183 | + | } | |
184 | + | else throw("Strict value is not equal to itself.") | |
185 | + | } | |
169 | 186 | else throw("Strict value is not equal to itself.") | |
170 | 187 | } | |
171 | 188 | else throw("Strict value is not equal to itself.") | |
172 | 189 | } | |
173 | 190 | ||
174 | 191 | ||
175 | 192 | ||
176 | 193 | @Callable(D) | |
177 | - | func vote (n,o, | |
194 | + | func vote (n,o,Z) = { | |
178 | 195 | let S = [if (valueOrElse(getBoolean(m(n, o)), false)) | |
179 | 196 | then true | |
180 | 197 | else throw("The token isn't on the voting list"), (height >= (value(getInteger(p(n, o))) + value(getInteger(d))))] | |
181 | 198 | if ((S == S)) | |
182 | 199 | then { | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
200 | + | let aa = split(value(getString(q(n, o))), a) | |
201 | + | let ab = aa[1] | |
202 | + | let ac = aa[2] | |
203 | + | let ad = invoke(x, "getUserGwxAmountAtHeightREADONLY", [toString(D.caller), height], nil) | |
204 | + | let ae = if (Z) | |
188 | 205 | then { | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | $Tuple2([StringEntry(q(n, o), | |
206 | + | let af = (parseIntValue(ab) + G(ad)) | |
207 | + | let ag = makeString(["%d%d", toString(af), ac], a) | |
208 | + | let ah = r(n, o, toString(D.caller)) | |
209 | + | let ai = makeString([q(n, o), "yes"], a) | |
210 | + | $Tuple2([StringEntry(q(n, o), ag), StringEntry(ah, ai)], unit) | |
194 | 211 | } | |
195 | 212 | else { | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | $Tuple2([StringEntry(q(n, o), | |
213 | + | let aj = (parseIntValue(ac) + G(ad)) | |
214 | + | let ag = makeString(["%d%d", ab, toString(aj)], a) | |
215 | + | let ak = r(n, o, toString(D.caller)) | |
216 | + | let al = makeString([q(n, o), "no"], a) | |
217 | + | $Tuple2([StringEntry(q(n, o), ag), StringEntry(ak, al)], unit) | |
201 | 218 | } | |
202 | - | | |
219 | + | ae | |
203 | 220 | } | |
204 | 221 | else throw("Strict value is not equal to itself.") | |
205 | 222 | } | |
206 | 223 | ||
207 | 224 | ||
208 | 225 | ||
209 | 226 | @Callable(D) | |
210 | - | func setManager ( | |
211 | - | let | |
212 | - | if (( | |
227 | + | func setManager (am) = { | |
228 | + | let an = C(D) | |
229 | + | if ((an == an)) | |
213 | 230 | then { | |
214 | - | let | |
215 | - | if (( | |
216 | - | then [StringEntry(u(), | |
231 | + | let ao = fromBase58String(am) | |
232 | + | if ((ao == ao)) | |
233 | + | then [StringEntry(u(), am)] | |
217 | 234 | else throw("Strict value is not equal to itself.") | |
218 | 235 | } | |
219 | 236 | else throw("Strict value is not equal to itself.") | |
220 | 237 | } | |
221 | 238 | ||
222 | 239 | ||
223 | 240 | ||
224 | 241 | @Callable(D) | |
225 | 242 | func confirmManager () = { | |
226 | - | let | |
227 | - | let | |
243 | + | let ap = B() | |
244 | + | let aq = if (isDefined(ap)) | |
228 | 245 | then true | |
229 | 246 | else throw("No pending manager") | |
230 | - | if (( | |
247 | + | if ((aq == aq)) | |
231 | 248 | then { | |
232 | - | let | |
249 | + | let ar = if ((D.callerPublicKey == value(ap))) | |
233 | 250 | then true | |
234 | 251 | else throw("You are not pending manager") | |
235 | - | if (( | |
236 | - | then [StringEntry(t(), toBase58String(value( | |
252 | + | if ((ar == ar)) | |
253 | + | then [StringEntry(t(), toBase58String(value(ap))), DeleteEntry(u())] | |
237 | 254 | else throw("Strict value is not equal to itself.") | |
238 | 255 | } | |
239 | 256 | else throw("Strict value is not equal to itself.") | |
240 | 257 | } | |
241 | 258 | ||
242 | 259 | ||
243 | - | @Verifier( | |
244 | - | func | |
245 | - | let | |
260 | + | @Verifier(as) | |
261 | + | func at () = { | |
262 | + | let au = { | |
246 | 263 | let z = y() | |
247 | 264 | if ($isInstanceOf(z, "ByteVector")) | |
248 | 265 | then { | |
249 | 266 | let F = z | |
250 | 267 | F | |
251 | 268 | } | |
252 | 269 | else if ($isInstanceOf(z, "Unit")) | |
253 | - | then | |
270 | + | then as.senderPublicKey | |
254 | 271 | else throw("Match error") | |
255 | 272 | } | |
256 | - | sigVerify( | |
273 | + | sigVerify(as.bodyBytes, as.proofs[0], au) | |
257 | 274 | } | |
258 | 275 |
github/deemru/w8io/169f3d6 55.52 ms ◑