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