tx · HJNhZQNg5ezL4soXxMnfjduCJKqV4KbDVkNp9WXyG9Tw 3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr: -0.02100000 Waves 2023.05.10 13:15 [2571655] smart account 3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr > SELF 0.00000000 Waves
{ "type": 13, "id": "HJNhZQNg5ezL4soXxMnfjduCJKqV4KbDVkNp9WXyG9Tw", "fee": 2100000, "feeAssetId": null, "timestamp": 1683713746908, "version": 2, "chainId": 84, "sender": "3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr", "senderPublicKey": "4j5ighurrUZ2WcdBTRGqBfXs5fz9YDA76D4gtpZ9basj", "proofs": [ "62rPxd54LARcoie8qHstFMmS4MYijsoZjwniJxPSGzrVTHd8Y2s3sCqkxsiDccGrUfyMNPAViqvwH9sxSYf6EgdL" ], "script": "base64:AAIFAAAAAAAACXEIAhIDCgEIEgkKBwgICAgBCAgSAwoBARIAEgASBQoDCAgIEgQKAggBEgMKAQgiA1NFUCIFRU1QVFkiD2dldFN0cmluZ09yRmFpbCIDa2V5IhBnZXRCb29sZWFuT3JGYWlsIhNrZXlNYW5hZ2VyUHVibGljS2V5IhZrZXlNYW5hZ2VyVmF1bHRBZGRyZXNzIhxnZXRNYW5hZ2VyVmF1bHRBZGRyZXNzT3JUaGlzIgckbWF0Y2gwIgFzIg5mYWlsRXhlY3V0ZUdldCIDbXNnIgxiYXNlQXNzZXRTdHIiDnVzZXJBZGRyZXNzU3RyIgpnZXRUeElkU3RyIhZrZXlBc3NldHNTdG9yZUNvbnRyYWN0IgtrZXlBc3NldENmZyIPa2V5UHJveHlBZGRyZXNzIgdhc3NldElkIgprZXlCYWxhbmNlIhZrZXlOZXh0SW50ZXJuYWxBc3NldElkIgxrZXlQcmljZUxhc3QiFWludGVybmFsQmFzZXRBc3NldFN0ciISa2V5VG9wVXBMYXN0SGVpZ2h0IgZzZW5kZXIiD2tleVByaWNlSGlzdG9yeSIBaCIJdGltZXN0Y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YVoBAAAAFGN1cnJlbnRTeXNQYXJhbXNSRVNUAAAAAQAAAAFtBAAAAAJiTAkBAAAAAmFVAAAAAQUAAAABbQQAAAACYXQICAUAAAACYkwAAAACXzEAAAAFdmFsdWUEAAAAAVYICAUAAAACYkwAAAACXzIAAAAFdmFsdWUEAAAAAmFRCAgFAAAAAmJMAAAAAl8zAAAABXZhbHVlBAAAAAJhUAgIBQAAAAJiTAAAAAJfNAAAAAV2YWx1ZQQAAAACYVIICAUAAAACYkwAAAACXzUAAAAFdmFsdWUEAAAAAmFTCAgFAAAAAmJMAAAAAl82AAAABXZhbHVlBAAAAAJiTQkABLkAAAACCQAETAAAAAICAAAAGXN0YXJ0Q3VycmVudFN5c1BhcmFtc1JFU1QJAARMAAAAAgkAAaQAAAABBQAAAAJhdAkABEwAAAACCQABpAAAAAEFAAAAAVYJAARMAAAAAgkAAaQAAAABBQAAAAJhUQkABEwAAAACCQABpAAAAAEFAAAAAmFQCQAETAAAAAIJAAGkAAAAAQUAAAACYVIJAARMAAAAAgkAAaQAAAABBQAAAAJhUwkABEwAAAACAgAAABdlbmRDdXJyZW50U3lzUGFyYW1zUkVTVAUAAAADbmlsBQAAAAFhCQAAAgAAAAEFAAAAAmJNAAAAAQAAAAJiTgEAAAACYk8AAAAABAAAAAJiUAQAAAABaQkBAAAAAmFJAAAAAAMJAAABAAAAAgUAAAABaQIAAAAKQnl0ZVZlY3RvcgQAAAACYmIFAAAAAWkFAAAAAmJiAwkAAAEAAAACBQAAAAFpAgAAAARVbml0CAUAAAACYk4AAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJiTgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmJOAAAABnByb29mcwAAAAAAAAAAAAUAAAACYlAYBW4D", "height": 2571655, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7QoC1hiV52ZP4cNmGRURc8xASNFewmF68ghT4gEpo8cr Next: none Diff:
Old | New | Differences | |
---|---|---|---|
14 | 14 | func f () = makeString(["%s", "managerPublicKey"], a) | |
15 | 15 | ||
16 | 16 | ||
17 | - | func g () = | |
17 | + | func g () = "%s__managerVaultAddress" | |
18 | 18 | ||
19 | 19 | ||
20 | - | func h (i,j,k,l) = throw(((((((i + ": baseAssetStr=") + j) + " userAddressStr=") + k) + " getTxIdStr=") + l)) | |
21 | - | ||
22 | - | ||
23 | - | func m () = makeString(["%s", "assetsStoreContract"], a) | |
24 | - | ||
25 | - | ||
26 | - | func n (j) = ("%s%s%s__config__asset__" + j) | |
27 | - | ||
28 | - | ||
29 | - | func o (p) = makeString(["%s%s", "proxyAddress", p], a) | |
30 | - | ||
31 | - | ||
32 | - | func q (p) = makeString(["%s%s", "balance", p], a) | |
33 | - | ||
34 | - | ||
35 | - | func r () = "%s__nextInternalAssetId" | |
36 | - | ||
37 | - | ||
38 | - | func s (t) = ("%s%s%d__price__last__" + t) | |
39 | - | ||
40 | - | ||
41 | - | func u (t,v) = makeString(["%s%s%s%d%s__topup__last__height", t, v], a) | |
42 | - | ||
43 | - | ||
44 | - | func w (t,x,y) = makeString(["%s%s%d%d%d__price__history", t, toString(x), toString(y)], a) | |
45 | - | ||
46 | - | ||
47 | - | func z (t) = ("%s%s%d__total__locked__" + t) | |
48 | - | ||
49 | - | ||
50 | - | func A (B,k) = makeString(["%s%s%d%s__total__locked", B, k], a) | |
51 | - | ||
52 | - | ||
53 | - | func C (D) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(D)) | |
54 | - | ||
55 | - | ||
56 | - | func E (j) = ("%s%s%s__mappings__baseAsset2internalId__" + j) | |
57 | - | ||
58 | - | ||
59 | - | func F (G) = ("%s%s%s__mappings__share2baseAssetId__" + G) | |
60 | - | ||
61 | - | ||
62 | - | func H (j) = ("%s%s%s__mappings__baseAsset2shareId__" + j) | |
63 | - | ||
64 | - | ||
65 | - | func I (B) = ("%s%s%d__shutdown__put__" + B) | |
66 | - | ||
67 | - | ||
68 | - | func J (B) = ("%s%s%d__shutdown__manager__" + B) | |
69 | - | ||
70 | - | ||
71 | - | func K () = addressFromStringValue(value(getString(m()))) | |
72 | - | ||
73 | - | ||
74 | - | let L = 1 | |
75 | - | ||
76 | - | let M = 2 | |
77 | - | ||
78 | - | let N = 3 | |
79 | - | ||
80 | - | let O = 4 | |
81 | - | ||
82 | - | let P = 5 | |
83 | - | ||
84 | - | func Q (G,B,R,S,T) = makeString(["%s%d%d%d%d", G, B, toString(R), toString(S), toString(T)], a) | |
85 | - | ||
86 | - | ||
87 | - | let U = 1 | |
88 | - | ||
89 | - | let V = 2 | |
90 | - | ||
91 | - | func W (X,Y) = makeString(["%d%d", toString(X), toString(Y)], a) | |
92 | - | ||
93 | - | ||
94 | - | func Z (d) = { | |
95 | - | let aa = split(valueOrElse(getString(this, d), W(0, 0)), a) | |
96 | - | [-1, parseIntValue(aa[U]), parseIntValue(aa[V])] | |
20 | + | func h () = { | |
21 | + | let i = getString(g()) | |
22 | + | if ($isInstanceOf(i, "String")) | |
23 | + | then { | |
24 | + | let j = i | |
25 | + | addressFromStringValue(j) | |
26 | + | } | |
27 | + | else this | |
97 | 28 | } | |
98 | 29 | ||
99 | 30 | ||
100 | - | func | |
31 | + | func k (l,m,n,o) = throw(((((((l + ": baseAssetStr=") + m) + " userAddressStr=") + n) + " getTxIdStr=") + o)) | |
101 | 32 | ||
102 | 33 | ||
103 | - | let af = 1 | |
104 | - | ||
105 | - | let ag = 2 | |
106 | - | ||
107 | - | let ah = 3 | |
108 | - | ||
109 | - | let ai = 4 | |
110 | - | ||
111 | - | let aj = 5 | |
112 | - | ||
113 | - | let ak = 6 | |
114 | - | ||
115 | - | let al = 7 | |
116 | - | ||
117 | - | let am = 8 | |
118 | - | ||
119 | - | func an (ao,ap,aq,ar,as,at,au,av) = makeString(["%s%d%d%d%d%d%d%d", ao, ap, aq, ar, as, at, au, av], a) | |
34 | + | func p () = makeString(["%s", "assetsStoreContract"], a) | |
120 | 35 | ||
121 | 36 | ||
122 | - | func | |
37 | + | func q (m) = ("%s%s%s__config__asset__" + m) | |
123 | 38 | ||
124 | 39 | ||
125 | - | func | |
40 | + | func r (s) = makeString(["%s%s", "proxyAddress", s], a) | |
126 | 41 | ||
127 | 42 | ||
128 | - | func aB (j) = { | |
129 | - | let d = n(j) | |
43 | + | func t (s) = makeString(["%s%s", "balance", s], a) | |
44 | + | ||
45 | + | ||
46 | + | func u () = "%s__nextInternalAssetId" | |
47 | + | ||
48 | + | ||
49 | + | func v (w) = ("%s%s%d__price__last__" + w) | |
50 | + | ||
51 | + | ||
52 | + | func x (w,y) = makeString(["%s%s%s%d%s__topup__last__height", w, y], a) | |
53 | + | ||
54 | + | ||
55 | + | func z (w,A,B) = makeString(["%s%s%d%d%d__price__history", w, toString(A), toString(B)], a) | |
56 | + | ||
57 | + | ||
58 | + | func C (w) = ("%s%s%d__total__locked__" + w) | |
59 | + | ||
60 | + | ||
61 | + | func D (E,n) = makeString(["%s%s%d%s__total__locked", E, n], a) | |
62 | + | ||
63 | + | ||
64 | + | func F (G) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(G)) | |
65 | + | ||
66 | + | ||
67 | + | func H (m) = ("%s%s%s__mappings__baseAsset2internalId__" + m) | |
68 | + | ||
69 | + | ||
70 | + | func I (J) = ("%s%s%s__mappings__share2baseAssetId__" + J) | |
71 | + | ||
72 | + | ||
73 | + | func K (m) = ("%s%s%s__mappings__baseAsset2shareId__" + m) | |
74 | + | ||
75 | + | ||
76 | + | func L (E) = ("%s%s%d__shutdown__put__" + E) | |
77 | + | ||
78 | + | ||
79 | + | func M (E) = ("%s%s%d__shutdown__manager__" + E) | |
80 | + | ||
81 | + | ||
82 | + | func N () = addressFromStringValue(value(getString(p()))) | |
83 | + | ||
84 | + | ||
85 | + | let O = 1 | |
86 | + | ||
87 | + | let P = 2 | |
88 | + | ||
89 | + | let Q = 3 | |
90 | + | ||
91 | + | let R = 4 | |
92 | + | ||
93 | + | let S = 5 | |
94 | + | ||
95 | + | func T (J,E,U,V,W) = makeString(["%s%d%d%d%d", J, E, toString(U), toString(V), toString(W)], a) | |
96 | + | ||
97 | + | ||
98 | + | let X = 1 | |
99 | + | ||
100 | + | let Y = 2 | |
101 | + | ||
102 | + | func Z (aa,ab) = makeString(["%d%d", toString(aa), toString(ab)], a) | |
103 | + | ||
104 | + | ||
105 | + | func ac (d) = { | |
106 | + | let ad = split(valueOrElse(getString(this, d), Z(0, 0)), a) | |
107 | + | [-1, parseIntValue(ad[X]), parseIntValue(ad[Y])] | |
108 | + | } | |
109 | + | ||
110 | + | ||
111 | + | func ae (af,E,ag,ah) = makeString(["%s%d%s%s", af, E, ag, ah], a) | |
112 | + | ||
113 | + | ||
114 | + | let ai = 1 | |
115 | + | ||
116 | + | let aj = 2 | |
117 | + | ||
118 | + | let ak = 3 | |
119 | + | ||
120 | + | let al = 4 | |
121 | + | ||
122 | + | let am = 5 | |
123 | + | ||
124 | + | let an = 6 | |
125 | + | ||
126 | + | let ao = 7 | |
127 | + | ||
128 | + | let ap = 8 | |
129 | + | ||
130 | + | func aq (ar,as,at,au,av,aw,ax,ay) = makeString(["%s%d%d%d%d%d%d%d", ar, as, at, au, av, aw, ax, ay], a) | |
131 | + | ||
132 | + | ||
133 | + | func az (ar,as,at,au,av,aw,ax,ay) = aq(ar, toString(as), toString(at), toString(au), toString(av), toString(aw), toString(ax), toString(ay)) | |
134 | + | ||
135 | + | ||
136 | + | func aA (aB,aC,aD) = aq(aC, aB[aj], aB[ak], aB[al], aB[am], aB[an], aB[ao], toString(aD)) | |
137 | + | ||
138 | + | ||
139 | + | func aE (m) = { | |
140 | + | let d = q(m) | |
130 | 141 | split(c(d), a) | |
131 | 142 | } | |
132 | 143 | ||
133 | 144 | ||
134 | - | func | |
135 | - | let | |
136 | - | StringEntry(d, | |
145 | + | func aF (d,aa,ab) = { | |
146 | + | let aG = ac(d) | |
147 | + | StringEntry(d, Z((aG[X] + aa), (aG[Y] + ab))) | |
137 | 148 | } | |
138 | 149 | ||
139 | 150 | ||
140 | - | func | |
141 | - | let | |
142 | - | StringEntry(d, | |
151 | + | func aH (d,aa,ab) = { | |
152 | + | let aG = ac(d) | |
153 | + | StringEntry(d, Z((aG[X] - aa), (aG[Y] - ab))) | |
143 | 154 | } | |
144 | 155 | ||
145 | 156 | ||
146 | - | func aF () = { | |
147 | - | let aG = getString(f()) | |
148 | - | if ($isInstanceOf(aG, "String")) | |
157 | + | func aI () = { | |
158 | + | let aJ = h() | |
159 | + | let i = getString(aJ, f()) | |
160 | + | if ($isInstanceOf(i, "String")) | |
149 | 161 | then { | |
150 | - | let | |
151 | - | fromBase58String( | |
162 | + | let j = i | |
163 | + | fromBase58String(j) | |
152 | 164 | } | |
153 | - | else if ($isInstanceOf( | |
165 | + | else if ($isInstanceOf(i, "Unit")) | |
154 | 166 | then unit | |
155 | 167 | else throw("Match error") | |
156 | 168 | } | |
157 | 169 | ||
158 | 170 | ||
159 | - | func aI () = { | |
160 | - | let aG = getString(g()) | |
161 | - | if ($isInstanceOf(aG, "String")) | |
171 | + | func aK (s) = valueOrElse(getInteger(t(s)), 0) | |
172 | + | ||
173 | + | ||
174 | + | func aL (E,aM,aN,aO,U,V) = { | |
175 | + | let ad = ac(C(E)) | |
176 | + | let aP = ad[Y] | |
177 | + | let aQ = aK(toBase58String(aM)) | |
178 | + | let aR = (aQ + aN) | |
179 | + | if ((0 > aR)) | |
180 | + | then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aQ)) + " baseAssetBalanceConsideringLock=") + toString(aR))) | |
181 | + | else { | |
182 | + | let aS = value(assetInfo(aO)).quantity | |
183 | + | let at = if ((aS == 0)) | |
184 | + | then (1 * V) | |
185 | + | else fraction(aR, V, aS) | |
186 | + | $Tuple5(at, aQ, aP, aR, aS) | |
187 | + | } | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | func aT (E,aM,aO,U,V) = { | |
192 | + | let ad = ac(C(E)) | |
193 | + | let aP = ad[Y] | |
194 | + | let aQ = aK(toBase58String(aM)) | |
195 | + | let aR = aQ | |
196 | + | let aS = value(assetInfo(aO)).quantity | |
197 | + | let at = value(getInteger(v(E))) | |
198 | + | $Tuple5(at, aQ, aP, aR, aS) | |
199 | + | } | |
200 | + | ||
201 | + | ||
202 | + | func aU (m) = { | |
203 | + | let aM = fromBase58String(m) | |
204 | + | let aV = aE(m) | |
205 | + | let J = aV[O] | |
206 | + | let aO = fromBase58String(J) | |
207 | + | let U = parseIntValue(aV[Q]) | |
208 | + | let V = parseIntValue(aV[R]) | |
209 | + | let E = aV[P] | |
210 | + | let aW = aT(E, aM, aO, U, V) | |
211 | + | let aX = { | |
212 | + | let i = getInteger(x(E, getStringValue(r(m)))) | |
213 | + | if ($isInstanceOf(i, "Int")) | |
214 | + | then { | |
215 | + | let A = i | |
216 | + | value(A) | |
217 | + | } | |
218 | + | else if ($isInstanceOf(i, "Unit")) | |
219 | + | then getIntegerValue(x(E, toString(addressFromPublicKey(fromBase58String(getStringValue(f())))))) | |
220 | + | else throw("undefined behaviour in privateCurrentSysParamsREST match") | |
221 | + | } | |
222 | + | $Tuple8(IntegerEntry("price", aW._1), IntegerEntry("decimalsMultPrice", V), IntegerEntry("baseAssetBalance", aW._2), IntegerEntry("totalLockedBaseAmount", aW._3), IntegerEntry("baseAssetBalanceConsideringLock", aW._4), IntegerEntry("shareEmission", aW._5), IntegerEntry("baseAssetDecimals", value(assetInfo(aM)).decimals), IntegerEntry("lastTopUpTimestamp", value(blockInfoByHeight(aX)).timestamp)) | |
223 | + | } | |
224 | + | ||
225 | + | ||
226 | + | func aY (aZ) = { | |
227 | + | let ba = throw("permission denied") | |
228 | + | let i = aI() | |
229 | + | if ($isInstanceOf(i, "ByteVector")) | |
162 | 230 | then { | |
163 | - | let aH = aG | |
164 | - | fromBase58String(aH) | |
231 | + | let bb = i | |
232 | + | if ((aZ.callerPublicKey == bb)) | |
233 | + | then true | |
234 | + | else ba | |
165 | 235 | } | |
166 | - | else if ($isInstanceOf(aG, "Unit")) | |
167 | - | then unit | |
236 | + | else if ($isInstanceOf(i, "Unit")) | |
237 | + | then if ((aZ.caller == this)) | |
238 | + | then true | |
239 | + | else ba | |
168 | 240 | else throw("Match error") | |
169 | 241 | } | |
170 | 242 | ||
171 | 243 | ||
172 | - | func aJ (p) = valueOrElse(getInteger(q(p)), 0) | |
173 | - | ||
174 | - | ||
175 | - | func aK (B,aL,aM,aN,R,S) = { | |
176 | - | let aa = Z(z(B)) | |
177 | - | let aO = aa[V] | |
178 | - | let aP = aJ(toBase58String(aL)) | |
179 | - | let aQ = (aP + aM) | |
180 | - | if ((0 > aQ)) | |
181 | - | then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aP)) + " baseAssetBalanceConsideringLock=") + toString(aQ))) | |
182 | - | else { | |
183 | - | let aR = value(assetInfo(aN)).quantity | |
184 | - | let aq = if ((aR == 0)) | |
185 | - | then (1 * S) | |
186 | - | else fraction(aQ, S, aR) | |
187 | - | $Tuple5(aq, aP, aO, aQ, aR) | |
188 | - | } | |
189 | - | } | |
190 | - | ||
191 | - | ||
192 | - | func aS (B,aL,aN,R,S) = { | |
193 | - | let aa = Z(z(B)) | |
194 | - | let aO = aa[V] | |
195 | - | let aP = aJ(toBase58String(aL)) | |
196 | - | let aQ = aP | |
197 | - | let aR = value(assetInfo(aN)).quantity | |
198 | - | let aq = value(getInteger(s(B))) | |
199 | - | $Tuple5(aq, aP, aO, aQ, aR) | |
200 | - | } | |
201 | - | ||
202 | - | ||
203 | - | func aT (j) = { | |
204 | - | let aL = fromBase58String(j) | |
205 | - | let aU = aB(j) | |
206 | - | let G = aU[L] | |
207 | - | let aN = fromBase58String(G) | |
208 | - | let R = parseIntValue(aU[N]) | |
209 | - | let S = parseIntValue(aU[O]) | |
210 | - | let B = aU[M] | |
211 | - | let aV = aS(B, aL, aN, R, S) | |
212 | - | let aW = { | |
213 | - | let aG = getInteger(u(B, getStringValue(o(j)))) | |
214 | - | if ($isInstanceOf(aG, "Int")) | |
215 | - | then { | |
216 | - | let x = aG | |
217 | - | value(x) | |
218 | - | } | |
219 | - | else if ($isInstanceOf(aG, "Unit")) | |
220 | - | then getIntegerValue(u(B, toString(addressFromPublicKey(fromBase58String(getStringValue(f())))))) | |
221 | - | else throw("undefined behaviour in privateCurrentSysParamsREST match") | |
222 | - | } | |
223 | - | $Tuple8(IntegerEntry("price", aV._1), IntegerEntry("decimalsMultPrice", S), IntegerEntry("baseAssetBalance", aV._2), IntegerEntry("totalLockedBaseAmount", aV._3), IntegerEntry("baseAssetBalanceConsideringLock", aV._4), IntegerEntry("shareEmission", aV._5), IntegerEntry("baseAssetDecimals", value(assetInfo(aL)).decimals), IntegerEntry("lastTopUpTimestamp", value(blockInfoByHeight(aW)).timestamp)) | |
224 | - | } | |
225 | - | ||
226 | - | ||
227 | - | func aX (aY) = { | |
228 | - | let aZ = throw("permission denied") | |
229 | - | let aG = aF() | |
230 | - | if ($isInstanceOf(aG, "ByteVector")) | |
231 | - | then { | |
232 | - | let ba = aG | |
233 | - | if ((aY.callerPublicKey == ba)) | |
234 | - | then true | |
235 | - | else aZ | |
236 | - | } | |
237 | - | else if ($isInstanceOf(aG, "Unit")) | |
238 | - | then if ((aY.caller == this)) | |
239 | - | then true | |
240 | - | else aZ | |
241 | - | else throw("Match error") | |
242 | - | } | |
243 | - | ||
244 | - | ||
245 | - | func bb (aY,p) = { | |
246 | - | let bc = (toString(aY.caller) == valueOrElse(getString(o(p)), b)) | |
247 | - | if (bc) | |
244 | + | func bc (aZ,s) = { | |
245 | + | let bd = (toString(aZ.caller) == valueOrElse(getString(r(s)), b)) | |
246 | + | if (bd) | |
248 | 247 | then true | |
249 | 248 | else { | |
250 | - | let | |
251 | - | if (( | |
249 | + | let be = aY(aZ) | |
250 | + | if ((be == be)) | |
252 | 251 | then true | |
253 | 252 | else throw("Strict value is not equal to itself.") | |
254 | 253 | } | |
255 | 254 | } | |
256 | 255 | ||
257 | 256 | ||
258 | - | @Callable( | |
259 | - | func constructor ( | |
260 | - | let | |
261 | - | if (( | |
262 | - | then [StringEntry( | |
257 | + | @Callable(aZ) | |
258 | + | func constructor (N) = { | |
259 | + | let be = aY(aZ) | |
260 | + | if ((be == be)) | |
261 | + | then [StringEntry(p(), N)] | |
263 | 262 | else throw("Strict value is not equal to itself.") | |
264 | 263 | } | |
265 | 264 | ||
266 | 265 | ||
267 | 266 | ||
268 | - | @Callable( | |
269 | - | func adminRegisterAsset ( | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | if (( | |
274 | - | then if ((toString(addressFromStringValue( | |
267 | + | @Callable(aZ) | |
268 | + | func adminRegisterAsset (m,bf,bg,bh,bi,bj,bk) = { | |
269 | + | let aM = fromBase58String(m) | |
270 | + | let bl = value(assetInfo(aM)).decimals | |
271 | + | let bm = aY(aZ) | |
272 | + | if ((bm == bm)) | |
273 | + | then if ((toString(addressFromStringValue(bj)) != bj)) | |
275 | 274 | then throw("invalid shutdownManagerAddress") | |
276 | - | else if ((0 > | |
277 | - | then throw(("invalid getDelayinBlocks=" + toString( | |
275 | + | else if ((0 > bi)) | |
276 | + | then throw(("invalid getDelayinBlocks=" + toString(bi))) | |
278 | 277 | else { | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | if (( | |
278 | + | let bn = Issue(bf, bg, 1, bl, true) | |
279 | + | let aO = calculateAssetId(bn) | |
280 | + | let J = toBase58String(aO) | |
281 | + | let V = ((100 * 1000) * 1000) | |
282 | + | let U = pow(10, 0, bl, 0, 0, DOWN) | |
283 | + | let bo = (1 * V) | |
284 | + | let bp = valueOrElse(getInteger(this, u()), 0) | |
285 | + | let E = toString(bp) | |
286 | + | let bq = invoke(N(), "createOrUpdate", [J, bh, false], nil) | |
287 | + | if ((bq == bq)) | |
289 | 288 | then { | |
290 | - | let | |
291 | - | if (( | |
292 | - | then [StringEntry( | |
289 | + | let br = invoke(N(), "addLabel", [J, "STAKING_LP"], nil) | |
290 | + | if ((br == br)) | |
291 | + | then [StringEntry(q(m), T(J, E, U, V, bi)), StringEntry(F(bp), m), StringEntry(H(m), E), StringEntry(I(J), m), StringEntry(K(m), J), BooleanEntry(L(E), false), StringEntry(M(E), bj), IntegerEntry(u(), (bp + 1)), IntegerEntry(v(E), bo), IntegerEntry(z(E, height, lastBlock.timestamp), bo), bn, Burn(aO, 1), StringEntry(r(m), bk)] | |
293 | 292 | else throw("Strict value is not equal to itself.") | |
294 | 293 | } | |
295 | 294 | else throw("Strict value is not equal to itself.") | |
299 | 298 | ||
300 | 299 | ||
301 | 300 | ||
302 | - | @Callable( | |
303 | - | func shutdownPut ( | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | if ((1 > size( | |
301 | + | @Callable(aZ) | |
302 | + | func shutdownPut (bs) = { | |
303 | + | let bt = toString(bs) | |
304 | + | let bu = c(F(bs)) | |
305 | + | let bj = c(M(bt)) | |
306 | + | if ((1 > size(bu))) | |
308 | 307 | then throw("invalid internalBaseAssetId") | |
309 | - | else if ((toString( | |
308 | + | else if ((toString(aZ.caller) != bj)) | |
310 | 309 | then throw("access denied") | |
311 | - | else [BooleanEntry( | |
310 | + | else [BooleanEntry(L(toString(bs)), true)] | |
312 | 311 | } | |
313 | 312 | ||
314 | 313 | ||
315 | 314 | ||
316 | - | @Callable( | |
315 | + | @Callable(aZ) | |
317 | 316 | func put () = { | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | if ( | |
317 | + | let bv = value(aZ.payments[0]) | |
318 | + | let aM = value(bv.assetId) | |
319 | + | let m = toBase58String(aM) | |
320 | + | let n = toString(aZ.caller) | |
321 | + | let aV = aE(m) | |
322 | + | let J = aV[O] | |
323 | + | let aO = fromBase58String(J) | |
324 | + | let U = parseIntValue(aV[Q]) | |
325 | + | let V = parseIntValue(aV[R]) | |
326 | + | let E = aV[P] | |
327 | + | let bw = e(L(E)) | |
328 | + | if (bw) | |
330 | 329 | then throw("put operation is blocked") | |
331 | 330 | else { | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | [Reissue( | |
331 | + | let bx = (aK(m) + bv.amount) | |
332 | + | let at = aT(E, aM, aO, U, V)._1 | |
333 | + | let aa = fraction(bv.amount, V, at, CEILING) | |
334 | + | [Reissue(aO, aa, true), ScriptTransfer(aZ.caller, aa, aO), StringEntry(ae("P", E, n, toBase58String(aZ.transactionId)), az("FINISHED", bv.amount, at, aa, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(r(m)))), bv.amount, aM), IntegerEntry(t(m), bx)] | |
336 | 335 | } | |
337 | 336 | } | |
338 | 337 | ||
339 | 338 | ||
340 | 339 | ||
341 | - | @Callable( | |
340 | + | @Callable(aZ) | |
342 | 341 | func submitGetRequest () = { | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | [Burn( | |
342 | + | let bv = value(aZ.payments[0]) | |
343 | + | let aO = value(bv.assetId) | |
344 | + | let J = toBase58String(aO) | |
345 | + | let by = toBase58String(aZ.callerPublicKey) | |
346 | + | let ag = aZ.caller | |
347 | + | let n = toString(ag) | |
348 | + | let aa = bv.amount | |
349 | + | let m = c(I(J)) | |
350 | + | let aM = fromBase58String(m) | |
351 | + | let aV = aE(m) | |
352 | + | let U = parseIntValue(aV[Q]) | |
353 | + | let V = parseIntValue(aV[R]) | |
354 | + | let bz = parseIntValue(aV[S]) | |
355 | + | let E = aV[P] | |
356 | + | let at = aT(E, aM, aO, U, V)._1 | |
357 | + | let ab = fraction(aa, at, V) | |
358 | + | let bA = ae("G", E, n, toBase58String(aZ.transactionId)) | |
359 | + | let bB = az("PENDING", aa, at, ab, height, lastBlock.timestamp, (height + bz), 0) | |
360 | + | [Burn(aO, aa), StringEntry(bA, bB), aF(C(E), aa, ab), aF(D(E, n), aa, ab), IntegerEntry(t(m), (aK(m) - ab))] | |
362 | 361 | } | |
363 | 362 | ||
364 | 363 | ||
365 | 364 | ||
366 | - | @Callable( | |
367 | - | func executeGetRequest ( | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | if (( | |
380 | - | then | |
381 | - | else if (( | |
382 | - | then | |
383 | - | else [ScriptTransfer( | |
365 | + | @Callable(aZ) | |
366 | + | func executeGetRequest (m,n,o) = { | |
367 | + | let ag = addressFromStringValue(n) | |
368 | + | let bC = aE(m) | |
369 | + | let aO = fromBase58String(bC[O]) | |
370 | + | let aM = fromBase58String(m) | |
371 | + | let E = bC[P] | |
372 | + | let bA = ae("G", E, n, o) | |
373 | + | let bD = split(c(bA), a) | |
374 | + | let ar = bD[ai] | |
375 | + | let ax = parseIntValue(bD[ao]) | |
376 | + | let bE = parseIntValue(bD[aj]) | |
377 | + | let bF = parseIntValue(bD[al]) | |
378 | + | if ((ar != "PENDING")) | |
379 | + | then k("Status is not PENDING", m, n, o) | |
380 | + | else if ((ax > height)) | |
381 | + | then k(((("EndHeight[" + toString(ax)) + "] > ") + toString(height)), m, n, o) | |
382 | + | else [ScriptTransfer(ag, bF, aM), StringEntry(bA, aA(bD, "FINISHED", lastBlock.timestamp)), aH(C(E), bE, bF), aH(D(E, n), bE, bF)] | |
384 | 383 | } | |
385 | 384 | ||
386 | 385 | ||
387 | 386 | ||
388 | - | @Callable( | |
389 | - | func topUpBalance ( | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
387 | + | @Callable(aZ) | |
388 | + | func topUpBalance (m,bG) = { | |
389 | + | let bC = aE(m) | |
390 | + | let bv = value(aZ.payments[0]) | |
391 | + | let bH = value(bv.assetId) | |
392 | + | let bI = toBase58String(bH) | |
393 | + | let aO = fromBase58String(bC[O]) | |
394 | + | let U = parseIntValue(bC[Q]) | |
395 | + | let V = parseIntValue(bC[R]) | |
396 | + | let E = bC[P] | |
397 | + | let bJ = x(E, toString(aZ.caller)) | |
398 | + | let aX = valueOrElse(getInteger(this, bJ), 0) | |
399 | + | let bK = [bc(aZ, m), if ((aX != height)) | |
401 | 400 | then true | |
402 | - | else throw("only one topUp per block is allowed"), if (( | |
401 | + | else throw("only one topUp per block is allowed"), if ((bG > 0)) | |
403 | 402 | then true | |
404 | 403 | else throw("only positive delta is allowed")] | |
405 | - | if (( | |
406 | - | then if (( | |
404 | + | if ((bK == bK)) | |
405 | + | then if ((m != bI)) | |
407 | 406 | then throw("attached payment's asset id is NOT matched passed baseAssetStr") | |
408 | - | else if ((size( | |
407 | + | else if ((size(aZ.payments) > 1)) | |
409 | 408 | then throw("only one payment can be attached") | |
410 | 409 | else { | |
411 | - | let | |
412 | - | [IntegerEntry( | |
410 | + | let at = aL(E, bH, bG, aO, U, V)._1 | |
411 | + | [IntegerEntry(v(E), at), IntegerEntry(z(E, height, lastBlock.timestamp), at), IntegerEntry(bJ, height), IntegerEntry(t(bI), (aK(bI) + bG))] | |
413 | 412 | } | |
414 | 413 | else throw("Strict value is not equal to itself.") | |
415 | 414 | } | |
416 | 415 | ||
417 | 416 | ||
418 | 417 | ||
419 | - | @Callable( | |
420 | - | func currentSysParamsREST ( | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | throw( | |
418 | + | @Callable(aZ) | |
419 | + | func currentSysParamsREST (m) = { | |
420 | + | let bL = aU(m) | |
421 | + | let at = bL._1.value | |
422 | + | let V = bL._2.value | |
423 | + | let aQ = bL._3.value | |
424 | + | let aP = bL._4.value | |
425 | + | let aR = bL._5.value | |
426 | + | let aS = bL._6.value | |
427 | + | let bM = makeString(["startCurrentSysParamsREST", toString(at), toString(V), toString(aQ), toString(aP), toString(aR), toString(aS), "endCurrentSysParamsREST"], a) | |
428 | + | throw(bM) | |
430 | 429 | } | |
431 | 430 | ||
432 | 431 | ||
433 | - | ||
434 | - | @Callable(aY) | |
435 | - | func setManager (bM) = { | |
436 | - | let bd = aX(aY) | |
437 | - | if ((bd == bd)) | |
438 | - | then { | |
439 | - | let bN = fromBase58String(bM) | |
440 | - | if ((bN == bN)) | |
441 | - | then [StringEntry(g(), bM)] | |
442 | - | else throw("Strict value is not equal to itself.") | |
443 | - | } | |
444 | - | else throw("Strict value is not equal to itself.") | |
445 | - | } | |
446 | - | ||
447 | - | ||
448 | - | ||
449 | - | @Callable(aY) | |
450 | - | func confirmManager () = { | |
451 | - | let bO = aI() | |
452 | - | let bP = if (isDefined(bO)) | |
453 | - | then true | |
454 | - | else throw("no pending manager") | |
455 | - | if ((bP == bP)) | |
456 | - | then { | |
457 | - | let bQ = if ((aY.callerPublicKey == value(bO))) | |
458 | - | then true | |
459 | - | else throw("you are not pending manager") | |
460 | - | if ((bQ == bQ)) | |
461 | - | then [StringEntry(f(), toBase58String(value(bO))), DeleteEntry(g())] | |
462 | - | else throw("Strict value is not equal to itself.") | |
463 | - | } | |
464 | - | else throw("Strict value is not equal to itself.") | |
465 | - | } | |
466 | - | ||
467 | - | ||
468 | - | @Verifier(bR) | |
469 | - | func bS () = { | |
470 | - | let bT = { | |
471 | - | let aG = aF() | |
472 | - | if ($isInstanceOf(aG, "ByteVector")) | |
432 | + | @Verifier(bN) | |
433 | + | func bO () = { | |
434 | + | let bP = { | |
435 | + | let i = aI() | |
436 | + | if ($isInstanceOf(i, "ByteVector")) | |
473 | 437 | then { | |
474 | - | let | |
475 | - | | |
438 | + | let bb = i | |
439 | + | bb | |
476 | 440 | } | |
477 | - | else if ($isInstanceOf( | |
478 | - | then | |
441 | + | else if ($isInstanceOf(i, "Unit")) | |
442 | + | then bN.senderPublicKey | |
479 | 443 | else throw("Match error") | |
480 | 444 | } | |
481 | - | sigVerify( | |
445 | + | sigVerify(bN.bodyBytes, bN.proofs[0], bP) | |
482 | 446 | } | |
483 | 447 |
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 = "" | |
7 | 7 | ||
8 | 8 | func c (d) = valueOrErrorMessage(getString(this, d), ("No data for this.key=" + d)) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e (d) = valueOrErrorMessage(getBoolean(this, d), ("No data for this.key=" + d)) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f () = makeString(["%s", "managerPublicKey"], a) | |
15 | 15 | ||
16 | 16 | ||
17 | - | func g () = | |
17 | + | func g () = "%s__managerVaultAddress" | |
18 | 18 | ||
19 | 19 | ||
20 | - | func h (i,j,k,l) = throw(((((((i + ": baseAssetStr=") + j) + " userAddressStr=") + k) + " getTxIdStr=") + l)) | |
21 | - | ||
22 | - | ||
23 | - | func m () = makeString(["%s", "assetsStoreContract"], a) | |
24 | - | ||
25 | - | ||
26 | - | func n (j) = ("%s%s%s__config__asset__" + j) | |
27 | - | ||
28 | - | ||
29 | - | func o (p) = makeString(["%s%s", "proxyAddress", p], a) | |
30 | - | ||
31 | - | ||
32 | - | func q (p) = makeString(["%s%s", "balance", p], a) | |
33 | - | ||
34 | - | ||
35 | - | func r () = "%s__nextInternalAssetId" | |
36 | - | ||
37 | - | ||
38 | - | func s (t) = ("%s%s%d__price__last__" + t) | |
39 | - | ||
40 | - | ||
41 | - | func u (t,v) = makeString(["%s%s%s%d%s__topup__last__height", t, v], a) | |
42 | - | ||
43 | - | ||
44 | - | func w (t,x,y) = makeString(["%s%s%d%d%d__price__history", t, toString(x), toString(y)], a) | |
45 | - | ||
46 | - | ||
47 | - | func z (t) = ("%s%s%d__total__locked__" + t) | |
48 | - | ||
49 | - | ||
50 | - | func A (B,k) = makeString(["%s%s%d%s__total__locked", B, k], a) | |
51 | - | ||
52 | - | ||
53 | - | func C (D) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(D)) | |
54 | - | ||
55 | - | ||
56 | - | func E (j) = ("%s%s%s__mappings__baseAsset2internalId__" + j) | |
57 | - | ||
58 | - | ||
59 | - | func F (G) = ("%s%s%s__mappings__share2baseAssetId__" + G) | |
60 | - | ||
61 | - | ||
62 | - | func H (j) = ("%s%s%s__mappings__baseAsset2shareId__" + j) | |
63 | - | ||
64 | - | ||
65 | - | func I (B) = ("%s%s%d__shutdown__put__" + B) | |
66 | - | ||
67 | - | ||
68 | - | func J (B) = ("%s%s%d__shutdown__manager__" + B) | |
69 | - | ||
70 | - | ||
71 | - | func K () = addressFromStringValue(value(getString(m()))) | |
72 | - | ||
73 | - | ||
74 | - | let L = 1 | |
75 | - | ||
76 | - | let M = 2 | |
77 | - | ||
78 | - | let N = 3 | |
79 | - | ||
80 | - | let O = 4 | |
81 | - | ||
82 | - | let P = 5 | |
83 | - | ||
84 | - | func Q (G,B,R,S,T) = makeString(["%s%d%d%d%d", G, B, toString(R), toString(S), toString(T)], a) | |
85 | - | ||
86 | - | ||
87 | - | let U = 1 | |
88 | - | ||
89 | - | let V = 2 | |
90 | - | ||
91 | - | func W (X,Y) = makeString(["%d%d", toString(X), toString(Y)], a) | |
92 | - | ||
93 | - | ||
94 | - | func Z (d) = { | |
95 | - | let aa = split(valueOrElse(getString(this, d), W(0, 0)), a) | |
96 | - | [-1, parseIntValue(aa[U]), parseIntValue(aa[V])] | |
20 | + | func h () = { | |
21 | + | let i = getString(g()) | |
22 | + | if ($isInstanceOf(i, "String")) | |
23 | + | then { | |
24 | + | let j = i | |
25 | + | addressFromStringValue(j) | |
26 | + | } | |
27 | + | else this | |
97 | 28 | } | |
98 | 29 | ||
99 | 30 | ||
100 | - | func | |
31 | + | func k (l,m,n,o) = throw(((((((l + ": baseAssetStr=") + m) + " userAddressStr=") + n) + " getTxIdStr=") + o)) | |
101 | 32 | ||
102 | 33 | ||
103 | - | let af = 1 | |
104 | - | ||
105 | - | let ag = 2 | |
106 | - | ||
107 | - | let ah = 3 | |
108 | - | ||
109 | - | let ai = 4 | |
110 | - | ||
111 | - | let aj = 5 | |
112 | - | ||
113 | - | let ak = 6 | |
114 | - | ||
115 | - | let al = 7 | |
116 | - | ||
117 | - | let am = 8 | |
118 | - | ||
119 | - | func an (ao,ap,aq,ar,as,at,au,av) = makeString(["%s%d%d%d%d%d%d%d", ao, ap, aq, ar, as, at, au, av], a) | |
34 | + | func p () = makeString(["%s", "assetsStoreContract"], a) | |
120 | 35 | ||
121 | 36 | ||
122 | - | func | |
37 | + | func q (m) = ("%s%s%s__config__asset__" + m) | |
123 | 38 | ||
124 | 39 | ||
125 | - | func | |
40 | + | func r (s) = makeString(["%s%s", "proxyAddress", s], a) | |
126 | 41 | ||
127 | 42 | ||
128 | - | func aB (j) = { | |
129 | - | let d = n(j) | |
43 | + | func t (s) = makeString(["%s%s", "balance", s], a) | |
44 | + | ||
45 | + | ||
46 | + | func u () = "%s__nextInternalAssetId" | |
47 | + | ||
48 | + | ||
49 | + | func v (w) = ("%s%s%d__price__last__" + w) | |
50 | + | ||
51 | + | ||
52 | + | func x (w,y) = makeString(["%s%s%s%d%s__topup__last__height", w, y], a) | |
53 | + | ||
54 | + | ||
55 | + | func z (w,A,B) = makeString(["%s%s%d%d%d__price__history", w, toString(A), toString(B)], a) | |
56 | + | ||
57 | + | ||
58 | + | func C (w) = ("%s%s%d__total__locked__" + w) | |
59 | + | ||
60 | + | ||
61 | + | func D (E,n) = makeString(["%s%s%d%s__total__locked", E, n], a) | |
62 | + | ||
63 | + | ||
64 | + | func F (G) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(G)) | |
65 | + | ||
66 | + | ||
67 | + | func H (m) = ("%s%s%s__mappings__baseAsset2internalId__" + m) | |
68 | + | ||
69 | + | ||
70 | + | func I (J) = ("%s%s%s__mappings__share2baseAssetId__" + J) | |
71 | + | ||
72 | + | ||
73 | + | func K (m) = ("%s%s%s__mappings__baseAsset2shareId__" + m) | |
74 | + | ||
75 | + | ||
76 | + | func L (E) = ("%s%s%d__shutdown__put__" + E) | |
77 | + | ||
78 | + | ||
79 | + | func M (E) = ("%s%s%d__shutdown__manager__" + E) | |
80 | + | ||
81 | + | ||
82 | + | func N () = addressFromStringValue(value(getString(p()))) | |
83 | + | ||
84 | + | ||
85 | + | let O = 1 | |
86 | + | ||
87 | + | let P = 2 | |
88 | + | ||
89 | + | let Q = 3 | |
90 | + | ||
91 | + | let R = 4 | |
92 | + | ||
93 | + | let S = 5 | |
94 | + | ||
95 | + | func T (J,E,U,V,W) = makeString(["%s%d%d%d%d", J, E, toString(U), toString(V), toString(W)], a) | |
96 | + | ||
97 | + | ||
98 | + | let X = 1 | |
99 | + | ||
100 | + | let Y = 2 | |
101 | + | ||
102 | + | func Z (aa,ab) = makeString(["%d%d", toString(aa), toString(ab)], a) | |
103 | + | ||
104 | + | ||
105 | + | func ac (d) = { | |
106 | + | let ad = split(valueOrElse(getString(this, d), Z(0, 0)), a) | |
107 | + | [-1, parseIntValue(ad[X]), parseIntValue(ad[Y])] | |
108 | + | } | |
109 | + | ||
110 | + | ||
111 | + | func ae (af,E,ag,ah) = makeString(["%s%d%s%s", af, E, ag, ah], a) | |
112 | + | ||
113 | + | ||
114 | + | let ai = 1 | |
115 | + | ||
116 | + | let aj = 2 | |
117 | + | ||
118 | + | let ak = 3 | |
119 | + | ||
120 | + | let al = 4 | |
121 | + | ||
122 | + | let am = 5 | |
123 | + | ||
124 | + | let an = 6 | |
125 | + | ||
126 | + | let ao = 7 | |
127 | + | ||
128 | + | let ap = 8 | |
129 | + | ||
130 | + | func aq (ar,as,at,au,av,aw,ax,ay) = makeString(["%s%d%d%d%d%d%d%d", ar, as, at, au, av, aw, ax, ay], a) | |
131 | + | ||
132 | + | ||
133 | + | func az (ar,as,at,au,av,aw,ax,ay) = aq(ar, toString(as), toString(at), toString(au), toString(av), toString(aw), toString(ax), toString(ay)) | |
134 | + | ||
135 | + | ||
136 | + | func aA (aB,aC,aD) = aq(aC, aB[aj], aB[ak], aB[al], aB[am], aB[an], aB[ao], toString(aD)) | |
137 | + | ||
138 | + | ||
139 | + | func aE (m) = { | |
140 | + | let d = q(m) | |
130 | 141 | split(c(d), a) | |
131 | 142 | } | |
132 | 143 | ||
133 | 144 | ||
134 | - | func | |
135 | - | let | |
136 | - | StringEntry(d, | |
145 | + | func aF (d,aa,ab) = { | |
146 | + | let aG = ac(d) | |
147 | + | StringEntry(d, Z((aG[X] + aa), (aG[Y] + ab))) | |
137 | 148 | } | |
138 | 149 | ||
139 | 150 | ||
140 | - | func | |
141 | - | let | |
142 | - | StringEntry(d, | |
151 | + | func aH (d,aa,ab) = { | |
152 | + | let aG = ac(d) | |
153 | + | StringEntry(d, Z((aG[X] - aa), (aG[Y] - ab))) | |
143 | 154 | } | |
144 | 155 | ||
145 | 156 | ||
146 | - | func aF () = { | |
147 | - | let aG = getString(f()) | |
148 | - | if ($isInstanceOf(aG, "String")) | |
157 | + | func aI () = { | |
158 | + | let aJ = h() | |
159 | + | let i = getString(aJ, f()) | |
160 | + | if ($isInstanceOf(i, "String")) | |
149 | 161 | then { | |
150 | - | let | |
151 | - | fromBase58String( | |
162 | + | let j = i | |
163 | + | fromBase58String(j) | |
152 | 164 | } | |
153 | - | else if ($isInstanceOf( | |
165 | + | else if ($isInstanceOf(i, "Unit")) | |
154 | 166 | then unit | |
155 | 167 | else throw("Match error") | |
156 | 168 | } | |
157 | 169 | ||
158 | 170 | ||
159 | - | func aI () = { | |
160 | - | let aG = getString(g()) | |
161 | - | if ($isInstanceOf(aG, "String")) | |
171 | + | func aK (s) = valueOrElse(getInteger(t(s)), 0) | |
172 | + | ||
173 | + | ||
174 | + | func aL (E,aM,aN,aO,U,V) = { | |
175 | + | let ad = ac(C(E)) | |
176 | + | let aP = ad[Y] | |
177 | + | let aQ = aK(toBase58String(aM)) | |
178 | + | let aR = (aQ + aN) | |
179 | + | if ((0 > aR)) | |
180 | + | then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aQ)) + " baseAssetBalanceConsideringLock=") + toString(aR))) | |
181 | + | else { | |
182 | + | let aS = value(assetInfo(aO)).quantity | |
183 | + | let at = if ((aS == 0)) | |
184 | + | then (1 * V) | |
185 | + | else fraction(aR, V, aS) | |
186 | + | $Tuple5(at, aQ, aP, aR, aS) | |
187 | + | } | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | func aT (E,aM,aO,U,V) = { | |
192 | + | let ad = ac(C(E)) | |
193 | + | let aP = ad[Y] | |
194 | + | let aQ = aK(toBase58String(aM)) | |
195 | + | let aR = aQ | |
196 | + | let aS = value(assetInfo(aO)).quantity | |
197 | + | let at = value(getInteger(v(E))) | |
198 | + | $Tuple5(at, aQ, aP, aR, aS) | |
199 | + | } | |
200 | + | ||
201 | + | ||
202 | + | func aU (m) = { | |
203 | + | let aM = fromBase58String(m) | |
204 | + | let aV = aE(m) | |
205 | + | let J = aV[O] | |
206 | + | let aO = fromBase58String(J) | |
207 | + | let U = parseIntValue(aV[Q]) | |
208 | + | let V = parseIntValue(aV[R]) | |
209 | + | let E = aV[P] | |
210 | + | let aW = aT(E, aM, aO, U, V) | |
211 | + | let aX = { | |
212 | + | let i = getInteger(x(E, getStringValue(r(m)))) | |
213 | + | if ($isInstanceOf(i, "Int")) | |
214 | + | then { | |
215 | + | let A = i | |
216 | + | value(A) | |
217 | + | } | |
218 | + | else if ($isInstanceOf(i, "Unit")) | |
219 | + | then getIntegerValue(x(E, toString(addressFromPublicKey(fromBase58String(getStringValue(f())))))) | |
220 | + | else throw("undefined behaviour in privateCurrentSysParamsREST match") | |
221 | + | } | |
222 | + | $Tuple8(IntegerEntry("price", aW._1), IntegerEntry("decimalsMultPrice", V), IntegerEntry("baseAssetBalance", aW._2), IntegerEntry("totalLockedBaseAmount", aW._3), IntegerEntry("baseAssetBalanceConsideringLock", aW._4), IntegerEntry("shareEmission", aW._5), IntegerEntry("baseAssetDecimals", value(assetInfo(aM)).decimals), IntegerEntry("lastTopUpTimestamp", value(blockInfoByHeight(aX)).timestamp)) | |
223 | + | } | |
224 | + | ||
225 | + | ||
226 | + | func aY (aZ) = { | |
227 | + | let ba = throw("permission denied") | |
228 | + | let i = aI() | |
229 | + | if ($isInstanceOf(i, "ByteVector")) | |
162 | 230 | then { | |
163 | - | let aH = aG | |
164 | - | fromBase58String(aH) | |
231 | + | let bb = i | |
232 | + | if ((aZ.callerPublicKey == bb)) | |
233 | + | then true | |
234 | + | else ba | |
165 | 235 | } | |
166 | - | else if ($isInstanceOf(aG, "Unit")) | |
167 | - | then unit | |
236 | + | else if ($isInstanceOf(i, "Unit")) | |
237 | + | then if ((aZ.caller == this)) | |
238 | + | then true | |
239 | + | else ba | |
168 | 240 | else throw("Match error") | |
169 | 241 | } | |
170 | 242 | ||
171 | 243 | ||
172 | - | func aJ (p) = valueOrElse(getInteger(q(p)), 0) | |
173 | - | ||
174 | - | ||
175 | - | func aK (B,aL,aM,aN,R,S) = { | |
176 | - | let aa = Z(z(B)) | |
177 | - | let aO = aa[V] | |
178 | - | let aP = aJ(toBase58String(aL)) | |
179 | - | let aQ = (aP + aM) | |
180 | - | if ((0 > aQ)) | |
181 | - | then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aP)) + " baseAssetBalanceConsideringLock=") + toString(aQ))) | |
182 | - | else { | |
183 | - | let aR = value(assetInfo(aN)).quantity | |
184 | - | let aq = if ((aR == 0)) | |
185 | - | then (1 * S) | |
186 | - | else fraction(aQ, S, aR) | |
187 | - | $Tuple5(aq, aP, aO, aQ, aR) | |
188 | - | } | |
189 | - | } | |
190 | - | ||
191 | - | ||
192 | - | func aS (B,aL,aN,R,S) = { | |
193 | - | let aa = Z(z(B)) | |
194 | - | let aO = aa[V] | |
195 | - | let aP = aJ(toBase58String(aL)) | |
196 | - | let aQ = aP | |
197 | - | let aR = value(assetInfo(aN)).quantity | |
198 | - | let aq = value(getInteger(s(B))) | |
199 | - | $Tuple5(aq, aP, aO, aQ, aR) | |
200 | - | } | |
201 | - | ||
202 | - | ||
203 | - | func aT (j) = { | |
204 | - | let aL = fromBase58String(j) | |
205 | - | let aU = aB(j) | |
206 | - | let G = aU[L] | |
207 | - | let aN = fromBase58String(G) | |
208 | - | let R = parseIntValue(aU[N]) | |
209 | - | let S = parseIntValue(aU[O]) | |
210 | - | let B = aU[M] | |
211 | - | let aV = aS(B, aL, aN, R, S) | |
212 | - | let aW = { | |
213 | - | let aG = getInteger(u(B, getStringValue(o(j)))) | |
214 | - | if ($isInstanceOf(aG, "Int")) | |
215 | - | then { | |
216 | - | let x = aG | |
217 | - | value(x) | |
218 | - | } | |
219 | - | else if ($isInstanceOf(aG, "Unit")) | |
220 | - | then getIntegerValue(u(B, toString(addressFromPublicKey(fromBase58String(getStringValue(f())))))) | |
221 | - | else throw("undefined behaviour in privateCurrentSysParamsREST match") | |
222 | - | } | |
223 | - | $Tuple8(IntegerEntry("price", aV._1), IntegerEntry("decimalsMultPrice", S), IntegerEntry("baseAssetBalance", aV._2), IntegerEntry("totalLockedBaseAmount", aV._3), IntegerEntry("baseAssetBalanceConsideringLock", aV._4), IntegerEntry("shareEmission", aV._5), IntegerEntry("baseAssetDecimals", value(assetInfo(aL)).decimals), IntegerEntry("lastTopUpTimestamp", value(blockInfoByHeight(aW)).timestamp)) | |
224 | - | } | |
225 | - | ||
226 | - | ||
227 | - | func aX (aY) = { | |
228 | - | let aZ = throw("permission denied") | |
229 | - | let aG = aF() | |
230 | - | if ($isInstanceOf(aG, "ByteVector")) | |
231 | - | then { | |
232 | - | let ba = aG | |
233 | - | if ((aY.callerPublicKey == ba)) | |
234 | - | then true | |
235 | - | else aZ | |
236 | - | } | |
237 | - | else if ($isInstanceOf(aG, "Unit")) | |
238 | - | then if ((aY.caller == this)) | |
239 | - | then true | |
240 | - | else aZ | |
241 | - | else throw("Match error") | |
242 | - | } | |
243 | - | ||
244 | - | ||
245 | - | func bb (aY,p) = { | |
246 | - | let bc = (toString(aY.caller) == valueOrElse(getString(o(p)), b)) | |
247 | - | if (bc) | |
244 | + | func bc (aZ,s) = { | |
245 | + | let bd = (toString(aZ.caller) == valueOrElse(getString(r(s)), b)) | |
246 | + | if (bd) | |
248 | 247 | then true | |
249 | 248 | else { | |
250 | - | let | |
251 | - | if (( | |
249 | + | let be = aY(aZ) | |
250 | + | if ((be == be)) | |
252 | 251 | then true | |
253 | 252 | else throw("Strict value is not equal to itself.") | |
254 | 253 | } | |
255 | 254 | } | |
256 | 255 | ||
257 | 256 | ||
258 | - | @Callable( | |
259 | - | func constructor ( | |
260 | - | let | |
261 | - | if (( | |
262 | - | then [StringEntry( | |
257 | + | @Callable(aZ) | |
258 | + | func constructor (N) = { | |
259 | + | let be = aY(aZ) | |
260 | + | if ((be == be)) | |
261 | + | then [StringEntry(p(), N)] | |
263 | 262 | else throw("Strict value is not equal to itself.") | |
264 | 263 | } | |
265 | 264 | ||
266 | 265 | ||
267 | 266 | ||
268 | - | @Callable( | |
269 | - | func adminRegisterAsset ( | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | if (( | |
274 | - | then if ((toString(addressFromStringValue( | |
267 | + | @Callable(aZ) | |
268 | + | func adminRegisterAsset (m,bf,bg,bh,bi,bj,bk) = { | |
269 | + | let aM = fromBase58String(m) | |
270 | + | let bl = value(assetInfo(aM)).decimals | |
271 | + | let bm = aY(aZ) | |
272 | + | if ((bm == bm)) | |
273 | + | then if ((toString(addressFromStringValue(bj)) != bj)) | |
275 | 274 | then throw("invalid shutdownManagerAddress") | |
276 | - | else if ((0 > | |
277 | - | then throw(("invalid getDelayinBlocks=" + toString( | |
275 | + | else if ((0 > bi)) | |
276 | + | then throw(("invalid getDelayinBlocks=" + toString(bi))) | |
278 | 277 | else { | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | if (( | |
278 | + | let bn = Issue(bf, bg, 1, bl, true) | |
279 | + | let aO = calculateAssetId(bn) | |
280 | + | let J = toBase58String(aO) | |
281 | + | let V = ((100 * 1000) * 1000) | |
282 | + | let U = pow(10, 0, bl, 0, 0, DOWN) | |
283 | + | let bo = (1 * V) | |
284 | + | let bp = valueOrElse(getInteger(this, u()), 0) | |
285 | + | let E = toString(bp) | |
286 | + | let bq = invoke(N(), "createOrUpdate", [J, bh, false], nil) | |
287 | + | if ((bq == bq)) | |
289 | 288 | then { | |
290 | - | let | |
291 | - | if (( | |
292 | - | then [StringEntry( | |
289 | + | let br = invoke(N(), "addLabel", [J, "STAKING_LP"], nil) | |
290 | + | if ((br == br)) | |
291 | + | then [StringEntry(q(m), T(J, E, U, V, bi)), StringEntry(F(bp), m), StringEntry(H(m), E), StringEntry(I(J), m), StringEntry(K(m), J), BooleanEntry(L(E), false), StringEntry(M(E), bj), IntegerEntry(u(), (bp + 1)), IntegerEntry(v(E), bo), IntegerEntry(z(E, height, lastBlock.timestamp), bo), bn, Burn(aO, 1), StringEntry(r(m), bk)] | |
293 | 292 | else throw("Strict value is not equal to itself.") | |
294 | 293 | } | |
295 | 294 | else throw("Strict value is not equal to itself.") | |
296 | 295 | } | |
297 | 296 | else throw("Strict value is not equal to itself.") | |
298 | 297 | } | |
299 | 298 | ||
300 | 299 | ||
301 | 300 | ||
302 | - | @Callable( | |
303 | - | func shutdownPut ( | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | if ((1 > size( | |
301 | + | @Callable(aZ) | |
302 | + | func shutdownPut (bs) = { | |
303 | + | let bt = toString(bs) | |
304 | + | let bu = c(F(bs)) | |
305 | + | let bj = c(M(bt)) | |
306 | + | if ((1 > size(bu))) | |
308 | 307 | then throw("invalid internalBaseAssetId") | |
309 | - | else if ((toString( | |
308 | + | else if ((toString(aZ.caller) != bj)) | |
310 | 309 | then throw("access denied") | |
311 | - | else [BooleanEntry( | |
310 | + | else [BooleanEntry(L(toString(bs)), true)] | |
312 | 311 | } | |
313 | 312 | ||
314 | 313 | ||
315 | 314 | ||
316 | - | @Callable( | |
315 | + | @Callable(aZ) | |
317 | 316 | func put () = { | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | if ( | |
317 | + | let bv = value(aZ.payments[0]) | |
318 | + | let aM = value(bv.assetId) | |
319 | + | let m = toBase58String(aM) | |
320 | + | let n = toString(aZ.caller) | |
321 | + | let aV = aE(m) | |
322 | + | let J = aV[O] | |
323 | + | let aO = fromBase58String(J) | |
324 | + | let U = parseIntValue(aV[Q]) | |
325 | + | let V = parseIntValue(aV[R]) | |
326 | + | let E = aV[P] | |
327 | + | let bw = e(L(E)) | |
328 | + | if (bw) | |
330 | 329 | then throw("put operation is blocked") | |
331 | 330 | else { | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | [Reissue( | |
331 | + | let bx = (aK(m) + bv.amount) | |
332 | + | let at = aT(E, aM, aO, U, V)._1 | |
333 | + | let aa = fraction(bv.amount, V, at, CEILING) | |
334 | + | [Reissue(aO, aa, true), ScriptTransfer(aZ.caller, aa, aO), StringEntry(ae("P", E, n, toBase58String(aZ.transactionId)), az("FINISHED", bv.amount, at, aa, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(r(m)))), bv.amount, aM), IntegerEntry(t(m), bx)] | |
336 | 335 | } | |
337 | 336 | } | |
338 | 337 | ||
339 | 338 | ||
340 | 339 | ||
341 | - | @Callable( | |
340 | + | @Callable(aZ) | |
342 | 341 | func submitGetRequest () = { | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | [Burn( | |
342 | + | let bv = value(aZ.payments[0]) | |
343 | + | let aO = value(bv.assetId) | |
344 | + | let J = toBase58String(aO) | |
345 | + | let by = toBase58String(aZ.callerPublicKey) | |
346 | + | let ag = aZ.caller | |
347 | + | let n = toString(ag) | |
348 | + | let aa = bv.amount | |
349 | + | let m = c(I(J)) | |
350 | + | let aM = fromBase58String(m) | |
351 | + | let aV = aE(m) | |
352 | + | let U = parseIntValue(aV[Q]) | |
353 | + | let V = parseIntValue(aV[R]) | |
354 | + | let bz = parseIntValue(aV[S]) | |
355 | + | let E = aV[P] | |
356 | + | let at = aT(E, aM, aO, U, V)._1 | |
357 | + | let ab = fraction(aa, at, V) | |
358 | + | let bA = ae("G", E, n, toBase58String(aZ.transactionId)) | |
359 | + | let bB = az("PENDING", aa, at, ab, height, lastBlock.timestamp, (height + bz), 0) | |
360 | + | [Burn(aO, aa), StringEntry(bA, bB), aF(C(E), aa, ab), aF(D(E, n), aa, ab), IntegerEntry(t(m), (aK(m) - ab))] | |
362 | 361 | } | |
363 | 362 | ||
364 | 363 | ||
365 | 364 | ||
366 | - | @Callable( | |
367 | - | func executeGetRequest ( | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | if (( | |
380 | - | then | |
381 | - | else if (( | |
382 | - | then | |
383 | - | else [ScriptTransfer( | |
365 | + | @Callable(aZ) | |
366 | + | func executeGetRequest (m,n,o) = { | |
367 | + | let ag = addressFromStringValue(n) | |
368 | + | let bC = aE(m) | |
369 | + | let aO = fromBase58String(bC[O]) | |
370 | + | let aM = fromBase58String(m) | |
371 | + | let E = bC[P] | |
372 | + | let bA = ae("G", E, n, o) | |
373 | + | let bD = split(c(bA), a) | |
374 | + | let ar = bD[ai] | |
375 | + | let ax = parseIntValue(bD[ao]) | |
376 | + | let bE = parseIntValue(bD[aj]) | |
377 | + | let bF = parseIntValue(bD[al]) | |
378 | + | if ((ar != "PENDING")) | |
379 | + | then k("Status is not PENDING", m, n, o) | |
380 | + | else if ((ax > height)) | |
381 | + | then k(((("EndHeight[" + toString(ax)) + "] > ") + toString(height)), m, n, o) | |
382 | + | else [ScriptTransfer(ag, bF, aM), StringEntry(bA, aA(bD, "FINISHED", lastBlock.timestamp)), aH(C(E), bE, bF), aH(D(E, n), bE, bF)] | |
384 | 383 | } | |
385 | 384 | ||
386 | 385 | ||
387 | 386 | ||
388 | - | @Callable( | |
389 | - | func topUpBalance ( | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
387 | + | @Callable(aZ) | |
388 | + | func topUpBalance (m,bG) = { | |
389 | + | let bC = aE(m) | |
390 | + | let bv = value(aZ.payments[0]) | |
391 | + | let bH = value(bv.assetId) | |
392 | + | let bI = toBase58String(bH) | |
393 | + | let aO = fromBase58String(bC[O]) | |
394 | + | let U = parseIntValue(bC[Q]) | |
395 | + | let V = parseIntValue(bC[R]) | |
396 | + | let E = bC[P] | |
397 | + | let bJ = x(E, toString(aZ.caller)) | |
398 | + | let aX = valueOrElse(getInteger(this, bJ), 0) | |
399 | + | let bK = [bc(aZ, m), if ((aX != height)) | |
401 | 400 | then true | |
402 | - | else throw("only one topUp per block is allowed"), if (( | |
401 | + | else throw("only one topUp per block is allowed"), if ((bG > 0)) | |
403 | 402 | then true | |
404 | 403 | else throw("only positive delta is allowed")] | |
405 | - | if (( | |
406 | - | then if (( | |
404 | + | if ((bK == bK)) | |
405 | + | then if ((m != bI)) | |
407 | 406 | then throw("attached payment's asset id is NOT matched passed baseAssetStr") | |
408 | - | else if ((size( | |
407 | + | else if ((size(aZ.payments) > 1)) | |
409 | 408 | then throw("only one payment can be attached") | |
410 | 409 | else { | |
411 | - | let | |
412 | - | [IntegerEntry( | |
410 | + | let at = aL(E, bH, bG, aO, U, V)._1 | |
411 | + | [IntegerEntry(v(E), at), IntegerEntry(z(E, height, lastBlock.timestamp), at), IntegerEntry(bJ, height), IntegerEntry(t(bI), (aK(bI) + bG))] | |
413 | 412 | } | |
414 | 413 | else throw("Strict value is not equal to itself.") | |
415 | 414 | } | |
416 | 415 | ||
417 | 416 | ||
418 | 417 | ||
419 | - | @Callable( | |
420 | - | func currentSysParamsREST ( | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | throw( | |
418 | + | @Callable(aZ) | |
419 | + | func currentSysParamsREST (m) = { | |
420 | + | let bL = aU(m) | |
421 | + | let at = bL._1.value | |
422 | + | let V = bL._2.value | |
423 | + | let aQ = bL._3.value | |
424 | + | let aP = bL._4.value | |
425 | + | let aR = bL._5.value | |
426 | + | let aS = bL._6.value | |
427 | + | let bM = makeString(["startCurrentSysParamsREST", toString(at), toString(V), toString(aQ), toString(aP), toString(aR), toString(aS), "endCurrentSysParamsREST"], a) | |
428 | + | throw(bM) | |
430 | 429 | } | |
431 | 430 | ||
432 | 431 | ||
433 | - | ||
434 | - | @Callable(aY) | |
435 | - | func setManager (bM) = { | |
436 | - | let bd = aX(aY) | |
437 | - | if ((bd == bd)) | |
438 | - | then { | |
439 | - | let bN = fromBase58String(bM) | |
440 | - | if ((bN == bN)) | |
441 | - | then [StringEntry(g(), bM)] | |
442 | - | else throw("Strict value is not equal to itself.") | |
443 | - | } | |
444 | - | else throw("Strict value is not equal to itself.") | |
445 | - | } | |
446 | - | ||
447 | - | ||
448 | - | ||
449 | - | @Callable(aY) | |
450 | - | func confirmManager () = { | |
451 | - | let bO = aI() | |
452 | - | let bP = if (isDefined(bO)) | |
453 | - | then true | |
454 | - | else throw("no pending manager") | |
455 | - | if ((bP == bP)) | |
456 | - | then { | |
457 | - | let bQ = if ((aY.callerPublicKey == value(bO))) | |
458 | - | then true | |
459 | - | else throw("you are not pending manager") | |
460 | - | if ((bQ == bQ)) | |
461 | - | then [StringEntry(f(), toBase58String(value(bO))), DeleteEntry(g())] | |
462 | - | else throw("Strict value is not equal to itself.") | |
463 | - | } | |
464 | - | else throw("Strict value is not equal to itself.") | |
465 | - | } | |
466 | - | ||
467 | - | ||
468 | - | @Verifier(bR) | |
469 | - | func bS () = { | |
470 | - | let bT = { | |
471 | - | let aG = aF() | |
472 | - | if ($isInstanceOf(aG, "ByteVector")) | |
432 | + | @Verifier(bN) | |
433 | + | func bO () = { | |
434 | + | let bP = { | |
435 | + | let i = aI() | |
436 | + | if ($isInstanceOf(i, "ByteVector")) | |
473 | 437 | then { | |
474 | - | let | |
475 | - | | |
438 | + | let bb = i | |
439 | + | bb | |
476 | 440 | } | |
477 | - | else if ($isInstanceOf( | |
478 | - | then | |
441 | + | else if ($isInstanceOf(i, "Unit")) | |
442 | + | then bN.senderPublicKey | |
479 | 443 | else throw("Match error") | |
480 | 444 | } | |
481 | - | sigVerify( | |
445 | + | sigVerify(bN.bodyBytes, bN.proofs[0], bP) | |
482 | 446 | } | |
483 | 447 |
github/deemru/w8io/169f3d6 129.48 ms ◑