tx · Eh4JLzabPA8AzVPjEcfj9V8sMt8xCEzA8fRbiiqmRfY8 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h: -0.01300000 Waves 2024.02.14 09:54 [2975559] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves
{ "type": 13, "id": "Eh4JLzabPA8AzVPjEcfj9V8sMt8xCEzA8fRbiiqmRfY8", "fee": 1300000, "feeAssetId": null, "timestamp": 1707893655847, "version": 2, "chainId": 84, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "VSAfuztj954gxHaD8WXG9E2WDDRSdGXgWkqN92EsvvcYGiMPBQ9VQmtKucNqwjuCPAqdAQdLEHDtRzArFkHxNr6" ], "script": "base64:BgI0CAISAwoBARIDCgEEEgMKAQgSAwoBCBIECgIICBIDCgEIEgQKAggBEgQKAggBEgMKAQESACgADGNvbnRyYWN0RmlsZQIRbDJtcF9sZWFzaW5nLnJpZGUAA1NFUAICX18BCHRocm93RXJyAQNtc2cJAAIBCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAAprZXlBc3NldElkCQC5CQIJAMwIAgICJXMJAMwIAgIHYXNzZXRJZAUDbmlsBQNTRVAADGtleUFkbWluTGlzdAkAuQkCCQDMCAICAiVzCQDMCAICCWFkbWluTGlzdAUDbmlsBQNTRVAADGtleUZvcmNlU3RvcAkAuQkCCQDMCAICAiVzCQDMCAICCWZvcmNlU3RvcAUDbmlsBQNTRVAAEWtleVBlcmlvZE9mZnNldElkCQC5CQIJAMwIAgICJXMJAMwIAgIIb2Zmc2V0SWQFA25pbAUDU0VQABVrZXlQZXJpb2RPZmZzZXRIZWlnaHQJALkJAgkAzAgCAgIlcwkAzAgCAgxvZmZzZXRIZWlnaHQFA25pbAUDU0VQAA9rZXlQZXJpb2RMZW5ndGgJALkJA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2NrZWQCC25vZGVBZGRyZXNzBmFtb3VudAQLdXNlckFkZHJlc3MJAKUIAQgFAWkGY2FsbGVyCQEbZ2V0U3Rha2VGcm9tVW5sb2NrZWRBY3Rpb25zAwULbm9kZUFkZHJlc3MFC3VzZXJBZGRyZXNzBQZhbW91bnQBaQELY2FuY2VsTGVhc2UCC25vZGVBZGRyZXNzBmFtb3VudAQLdXNlckFkZHJlc3MJAKUIAQgFAWkGY2FsbGVyCQERZ2V0VW5zdGFrZUFjdGlvbnMDBQtub2RlQWRkcmVzcwULdXNlckFkZHJlc3MFBmFtb3VudAFpAQVjbGFpbQEGYW1vdW50BAt1c2VyQWRkcmVzcwkApQgBCAUBaQZjYWxsZXIJARdnZXRDbGFpbVVubG9ja2VkQWN0aW9ucwIFC3VzZXJBZGRyZXNzBQZhbW91bnQBaQEIY2xhaW1BbGwABAt1c2VyQWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEDSR0MDE0NTU4MTQ2MTgJARVnZXRVc2VyVG9DbGFpbUJhbGFuY2UBBQt1c2VyQWRkcmVzcwQHdG9DbGFpbQgFDSR0MDE0NTU4MTQ2MTgCXzEECHRvVW5sb2NrCAUNJHQwMTQ1NTgxNDYxOAJfMgQGY2hlY2tzCQDMCAIDCQBmAgUHdG9DbGFpbQAABgkBCHRocm93RXJyAQIQbm90aGluZyB0byBjbGFpbQUDbmlsAwkAAAIFBmNoZWNrcwUGY2hlY2tzCQEXZ2V0Q2xhaW1VbmxvY2tlZEFjdGlvbnMCBQt1c2VyQWRkcmVzcwUHdG9DbGFpbQkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgB6Kn7f", "height": 2975559, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EHjWDZsTpFpnHRJcNvoFYUXwufcHiSSgN5ZQY6LN25up Next: 4QGBpEr1MLNb9nuazfRv9SPBRzZKUCdU3UwUCYA7JvAo Diff:
Old | New | Differences | |
---|---|---|---|
39 | 39 | func q (r) = makeString(["%s", r], b) | |
40 | 40 | ||
41 | 41 | ||
42 | - | func s (t) = makeString(["%s%s", | |
42 | + | func s (t,r) = makeString(["%s%s", r, t], b) | |
43 | 43 | ||
44 | 44 | ||
45 | - | func u (t | |
45 | + | func u (t) = makeString(["%s%s", "toClaim", t], b) | |
46 | 46 | ||
47 | 47 | ||
48 | - | func v ( | |
48 | + | func v (t) = makeString(["%s%s", "userTotalLocked", t], b) | |
49 | 49 | ||
50 | 50 | ||
51 | - | func w (r | |
51 | + | func w (r) = makeString(["%s%d", r, toString(height)], b) | |
52 | 52 | ||
53 | 53 | ||
54 | - | let x = valueOrElse(getString(this, e), "WAVES") | |
55 | - | ||
56 | - | let y = if ((x == "WAVES")) | |
57 | - | then unit | |
58 | - | else fromBase58String(x) | |
59 | - | ||
60 | - | let z = split(valueOrElse(getString(this, f), ""), b) | |
61 | - | ||
62 | - | let A = valueOrElse(getBoolean(this, g), false) | |
63 | - | ||
64 | - | func B (C) = containsElement(z, C) | |
54 | + | func x (r,t) = makeString(["%s%s%d", r, t, toString(height)], b) | |
65 | 55 | ||
66 | 56 | ||
67 | - | func D (C) = { | |
68 | - | let E = addressFromString(C) | |
69 | - | if ($isInstanceOf(E, "Address")) | |
57 | + | let y = valueOrElse(getString(this, e), "WAVES") | |
58 | + | ||
59 | + | let z = if ((y == "WAVES")) | |
60 | + | then unit | |
61 | + | else fromBase58String(y) | |
62 | + | ||
63 | + | let A = split(valueOrElse(getString(this, f), ""), b) | |
64 | + | ||
65 | + | let B = valueOrElse(getBoolean(this, g), false) | |
66 | + | ||
67 | + | func C (D) = containsElement(A, D) | |
68 | + | ||
69 | + | ||
70 | + | func E (D) = { | |
71 | + | let F = addressFromString(D) | |
72 | + | if ($isInstanceOf(F, "Address")) | |
70 | 73 | then { | |
71 | - | let | |
74 | + | let G = F | |
72 | 75 | true | |
73 | 76 | } | |
74 | 77 | else false | |
75 | 78 | } | |
76 | 79 | ||
77 | 80 | ||
78 | - | func | |
79 | - | let | |
80 | - | StringEntry(q(r), | |
81 | + | func H (r,I,J) = { | |
82 | + | let K = makeString(["%d%d%d%d", toString(o), toString(I), toString(p), toString(J)], b) | |
83 | + | StringEntry(q(r), K) | |
81 | 84 | } | |
82 | 85 | ||
83 | 86 | ||
84 | - | func | |
85 | - | let | |
86 | - | let | |
87 | - | if ($isInstanceOf( | |
87 | + | func L (r) = { | |
88 | + | let M = getString(this, q(r)) | |
89 | + | let F = M | |
90 | + | if ($isInstanceOf(F, "String")) | |
88 | 91 | then { | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | let | |
93 | - | let | |
94 | - | let | |
95 | - | if (( | |
96 | - | then $Tuple2( | |
97 | - | else $Tuple2( | |
92 | + | let N = F | |
93 | + | let O = split(N, b) | |
94 | + | let P = parseIntValue(O[1]) | |
95 | + | let Q = parseIntValue(O[2]) | |
96 | + | let R = parseIntValue(O[3]) | |
97 | + | let S = parseIntValue(O[4]) | |
98 | + | if ((R > height)) | |
99 | + | then $Tuple2(Q, S) | |
100 | + | else $Tuple2(S, S) | |
98 | 101 | } | |
99 | 102 | else $Tuple2(0, 0) | |
100 | 103 | } | |
101 | 104 | ||
102 | 105 | ||
103 | - | func | |
104 | - | let | |
105 | - | StringEntry( | |
106 | + | func T (r,t,U,V) = { | |
107 | + | let K = makeString(["%d%d%d%d", toString(o), toString(U), toString(p), toString(V)], b) | |
108 | + | StringEntry(s(t, r), K) | |
106 | 109 | } | |
107 | 110 | ||
108 | 111 | ||
109 | - | func | |
110 | - | let | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
112 | + | func W (r,t) = { | |
113 | + | let X = getString(this, s(t, r)) | |
114 | + | let F = X | |
115 | + | if ($isInstanceOf(F, "String")) | |
113 | 116 | then { | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | if (( | |
121 | - | then $Tuple2( | |
122 | - | else $Tuple2( | |
117 | + | let N = F | |
118 | + | let O = split(N, b) | |
119 | + | let Y = parseIntValue(O[1]) | |
120 | + | let U = parseIntValue(O[2]) | |
121 | + | let Z = parseIntValue(O[3]) | |
122 | + | let V = parseIntValue(O[4]) | |
123 | + | if ((Z > height)) | |
124 | + | then $Tuple2(U, V) | |
125 | + | else $Tuple2(V, V) | |
123 | 126 | } | |
124 | 127 | else $Tuple2(0, 0) | |
125 | 128 | } | |
126 | 129 | ||
127 | 130 | ||
128 | - | func | |
129 | - | let | |
130 | - | StringEntry( | |
131 | + | func aa (t,ab,ac) = { | |
132 | + | let K = makeString(["%d%d%d%d", toString(o), toString(ab), toString(p), toString(ac)], b) | |
133 | + | StringEntry(u(t), K) | |
131 | 134 | } | |
132 | 135 | ||
133 | 136 | ||
134 | - | func | |
135 | - | let | |
136 | - | let | |
137 | - | if ($isInstanceOf( | |
137 | + | func ad (t) = { | |
138 | + | let ae = getString(this, u(t)) | |
139 | + | let F = ae | |
140 | + | if ($isInstanceOf(F, "String")) | |
138 | 141 | then { | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | let | |
144 | - | let | |
145 | - | if (( | |
146 | - | then $Tuple2( | |
147 | - | else $Tuple2(( | |
142 | + | let N = F | |
143 | + | let O = split(N, b) | |
144 | + | let af = parseIntValue(O[1]) | |
145 | + | let ab = parseIntValue(O[2]) | |
146 | + | let ag = parseIntValue(O[3]) | |
147 | + | let ac = parseIntValue(O[4]) | |
148 | + | if ((ag > height)) | |
149 | + | then $Tuple2(ab, ac) | |
150 | + | else $Tuple2((ab + ac), 0) | |
148 | 151 | } | |
149 | 152 | else $Tuple2(0, 0) | |
150 | 153 | } | |
151 | 154 | ||
152 | 155 | ||
153 | - | func ag (r,t,ah) = { | |
154 | - | let ai = [if (!(A)) | |
156 | + | func ah (t,ai) = IntegerEntry(v(t), ai) | |
157 | + | ||
158 | + | ||
159 | + | func aj (t) = valueOrElse(getInteger(this, v(t)), 0) | |
160 | + | ||
161 | + | ||
162 | + | func ak (r,t,al) = { | |
163 | + | let am = [if (!(B)) | |
155 | 164 | then true | |
156 | - | else c("contract is temporary stopped"), if ((size( | |
165 | + | else c("contract is temporary stopped"), if ((size(al.payments) == 1)) | |
157 | 166 | then true | |
158 | - | else c("payment size should be exactly 1"), if (( | |
167 | + | else c("payment size should be exactly 1"), if ((al.payments[0].assetId == z)) | |
159 | 168 | then true | |
160 | - | else c(makeString(["payment assetId should be:", | |
169 | + | else c(makeString(["payment assetId should be:", y], " ")), if (E(r)) | |
161 | 170 | then true | |
162 | - | else c(makeString(["node address is not valid:", r], " ")), if ( | |
171 | + | else c(makeString(["node address is not valid:", r], " ")), if (E(t)) | |
163 | 172 | then true | |
164 | 173 | else c(makeString(["user address is not valid:", t], " "))] | |
165 | - | if (( | |
174 | + | if ((am == am)) | |
166 | 175 | then { | |
167 | - | let aj = ah.payments[0].amount | |
168 | - | let ak = K(r) | |
169 | - | let P = ak._1 | |
170 | - | let R = ak._2 | |
171 | - | let al = (R + aj) | |
172 | - | let am = V(r, t) | |
173 | - | let T = am._1 | |
174 | - | let U = am._2 | |
175 | - | let an = (U + aj) | |
176 | - | [G(r, P, al), S(r, t, T, an), IntegerEntry(v(r), al), IntegerEntry(w(r, t), an)] | |
176 | + | let an = al.payments[0].amount | |
177 | + | let ao = L(r) | |
178 | + | let Q = ao._1 | |
179 | + | let S = ao._2 | |
180 | + | let ap = (S + an) | |
181 | + | let aq = W(r, t) | |
182 | + | let U = aq._1 | |
183 | + | let V = aq._2 | |
184 | + | let ar = (V + an) | |
185 | + | let ai = aj(t) | |
186 | + | let as = (ai + an) | |
187 | + | [H(r, Q, ap), T(r, t, U, ar), ah(t, as), IntegerEntry(w(r), ap), IntegerEntry(x(r, t), ar)] | |
177 | 188 | } | |
178 | 189 | else throw("Strict value is not equal to itself.") | |
179 | 190 | } | |
180 | 191 | ||
181 | 192 | ||
182 | - | func | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
193 | + | func at (r,t,au) = { | |
194 | + | let av = L(r) | |
195 | + | let Q = av._1 | |
196 | + | let S = av._2 | |
197 | + | let aw = W(r, t) | |
198 | + | let U = aw._1 | |
199 | + | let V = aw._2 | |
200 | + | let am = [if (!(B)) | |
190 | 201 | then true | |
191 | - | else c("contract is temporary stopped"), if (( | |
202 | + | else c("contract is temporary stopped"), if ((au > 0)) | |
192 | 203 | then true | |
193 | - | else c("unstake amount should be greater than 0"), if (( | |
204 | + | else c("unstake amount should be greater than 0"), if ((V >= au)) | |
194 | 205 | then true | |
195 | - | else c("unstake amount should be less or equal user staked amount"), if (( | |
206 | + | else c("unstake amount should be less or equal user staked amount"), if ((S >= au)) | |
196 | 207 | then true | |
197 | - | else c("unstake amount should be less or equal node staked amount"), if ( | |
208 | + | else c("unstake amount should be less or equal node staked amount"), if (E(r)) | |
198 | 209 | then true | |
199 | - | else c(makeString(["node address is not valid:", r], " ")), if ( | |
210 | + | else c(makeString(["node address is not valid:", r], " ")), if (E(t)) | |
200 | 211 | then true | |
201 | 212 | else c(makeString(["user address is not valid:", t], " "))] | |
202 | - | if (( | |
213 | + | if ((am == am)) | |
203 | 214 | then { | |
204 | - | let al = (R - ap) | |
205 | - | let an = (U - ap) | |
206 | - | let as = ac(t) | |
207 | - | let aa = as._1 | |
208 | - | let ab = as._2 | |
209 | - | let at = (ab + ap) | |
210 | - | [G(r, P, al), S(r, t, T, an), Z(t, aa, at), IntegerEntry(v(r), al), IntegerEntry(w(r, t), an)] | |
215 | + | let ap = (S - au) | |
216 | + | let ar = (V - au) | |
217 | + | let ax = ad(t) | |
218 | + | let ab = ax._1 | |
219 | + | let ac = ax._2 | |
220 | + | let ay = (ac + au) | |
221 | + | let ai = aj(t) | |
222 | + | let as = (ai - au) | |
223 | + | [H(r, Q, ap), T(r, t, U, ar), aa(t, ab, ay), ah(t, as), IntegerEntry(w(r), ap), IntegerEntry(x(r, t), ar)] | |
211 | 224 | } | |
212 | 225 | else throw("Strict value is not equal to itself.") | |
213 | 226 | } | |
214 | 227 | ||
215 | 228 | ||
216 | - | func | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
229 | + | func az (t,aA) = { | |
230 | + | let aB = ad(t) | |
231 | + | let ab = aB._1 | |
232 | + | let ac = aB._2 | |
233 | + | let am = [if (!(B)) | |
221 | 234 | then true | |
222 | - | else c("contract is temporary stopped"), if (( | |
235 | + | else c("contract is temporary stopped"), if ((aA > 0)) | |
223 | 236 | then true | |
224 | - | else c("claim amount should be greater than 0"), if (( | |
237 | + | else c("claim amount should be greater than 0"), if ((ab >= aA)) | |
225 | 238 | then true | |
226 | - | else c("claim amount should be less or equal unlocked amount"), if ( | |
239 | + | else c("claim amount should be less or equal unlocked amount"), if (E(t)) | |
227 | 240 | then true | |
228 | 241 | else c(makeString(["user address is not valid:", t], " "))] | |
229 | - | if (( | |
242 | + | if ((am == am)) | |
230 | 243 | then { | |
231 | - | let | |
232 | - | [ | |
244 | + | let aC = (ab - aA) | |
245 | + | [aa(t, aC, ac), ScriptTransfer(addressFromStringValue(t), aA, z)] | |
233 | 246 | } | |
234 | 247 | else throw("Strict value is not equal to itself.") | |
235 | 248 | } | |
236 | 249 | ||
237 | 250 | ||
238 | - | func | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
251 | + | func aD (r,t,an) = { | |
252 | + | let aE = ad(t) | |
253 | + | let ab = aE._1 | |
254 | + | let ac = aE._2 | |
255 | + | let aF = (ac + ab) | |
256 | + | let am = [if (!(B)) | |
244 | 257 | then true | |
245 | - | else c("contract is temporary stopped"), if (( | |
258 | + | else c("contract is temporary stopped"), if ((an > 0)) | |
246 | 259 | then true | |
247 | - | else c("amount should be greater than 0"), if (( | |
260 | + | else c("amount should be greater than 0"), if ((aF >= an)) | |
248 | 261 | then true | |
249 | - | else c("amount should be less or equal | |
262 | + | else c("amount should be less or equal available amount"), if (E(r)) | |
250 | 263 | then true | |
251 | - | else c(makeString(["node address is not valid:", r], " ")), if ( | |
264 | + | else c(makeString(["node address is not valid:", r], " ")), if (E(t)) | |
252 | 265 | then true | |
253 | 266 | else c(makeString(["user address is not valid:", t], " "))] | |
254 | - | if (( | |
267 | + | if ((am == am)) | |
255 | 268 | then { | |
256 | - | let aB = K(r) | |
257 | - | let P = aB._1 | |
258 | - | let R = aB._2 | |
259 | - | let al = (R + aj) | |
260 | - | let aC = V(r, t) | |
261 | - | let T = aC._1 | |
262 | - | let U = aC._2 | |
263 | - | let an = (U + aj) | |
264 | - | let at = max([0, (ab - aj)]) | |
265 | - | let ax = min([aa, (aa + (ab - aj))]) | |
266 | - | [G(r, P, al), S(r, t, T, an), Z(t, ax, at), IntegerEntry(v(r), al), IntegerEntry(w(r, t), an)] | |
269 | + | let aG = L(r) | |
270 | + | let Q = aG._1 | |
271 | + | let S = aG._2 | |
272 | + | let ap = (S + an) | |
273 | + | let aH = W(r, t) | |
274 | + | let U = aH._1 | |
275 | + | let V = aH._2 | |
276 | + | let ar = (V + an) | |
277 | + | let ay = max([0, (ac - an)]) | |
278 | + | let aC = min([ab, (ab + (ac - an))]) | |
279 | + | let ai = aj(t) | |
280 | + | let as = (ai + an) | |
281 | + | [H(r, Q, ap), T(r, t, U, ar), aa(t, aC, ay), ah(t, as), IntegerEntry(w(r), ap), IntegerEntry(x(r, t), ar)] | |
267 | 282 | } | |
268 | 283 | else throw("Strict value is not equal to itself.") | |
269 | 284 | } | |
270 | 285 | ||
271 | 286 | ||
272 | - | func | |
273 | - | let | |
287 | + | func aI (aJ) = { | |
288 | + | let aK = [if ((aJ > 0)) | |
274 | 289 | then true | |
275 | 290 | else c("period length should be greater than 0")] | |
276 | - | if (( | |
291 | + | if ((aK == aK)) | |
277 | 292 | then if ((m == -1)) | |
278 | - | then [IntegerEntry(j, | |
279 | - | else [IntegerEntry(h, (n + 1)), IntegerEntry(i, p), IntegerEntry(j, | |
293 | + | then [IntegerEntry(j, aJ), IntegerEntry(i, height)] | |
294 | + | else [IntegerEntry(h, (n + 1)), IntegerEntry(i, p), IntegerEntry(j, aJ)] | |
280 | 295 | else throw("Strict value is not equal to itself.") | |
281 | 296 | } | |
282 | 297 | ||
283 | 298 | ||
284 | - | @Callable( | |
285 | - | func setNewPeriodLength ( | |
286 | - | let | |
299 | + | @Callable(al) | |
300 | + | func setNewPeriodLength (aJ) = { | |
301 | + | let am = [if (C(toString(al.caller))) | |
287 | 302 | then true | |
288 | 303 | else c("caller is not in adminList")] | |
289 | - | if (( | |
290 | - | then | |
304 | + | if ((am == am)) | |
305 | + | then aI(aJ) | |
291 | 306 | else throw("Strict value is not equal to itself.") | |
292 | 307 | } | |
293 | 308 | ||
294 | 309 | ||
295 | 310 | ||
296 | - | @Callable( | |
297 | - | func setForceStopFlag ( | |
298 | - | let | |
311 | + | @Callable(al) | |
312 | + | func setForceStopFlag (aL) = { | |
313 | + | let aK = [if (C(toString(al.caller))) | |
299 | 314 | then true | |
300 | 315 | else c("caller is not an admin")] | |
301 | - | if (( | |
302 | - | then [BooleanEntry(g, | |
316 | + | if ((aK == aK)) | |
317 | + | then [BooleanEntry(g, aL)] | |
303 | 318 | else throw("Strict value is not equal to itself.") | |
304 | 319 | } | |
305 | 320 | ||
306 | 321 | ||
307 | 322 | ||
308 | - | @Callable( | |
323 | + | @Callable(al) | |
309 | 324 | func getNodeDataREADONLY (r) = { | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | $Tuple2(nil, $Tuple5(o, | |
325 | + | let aM = L(r) | |
326 | + | let aN = aM._1 | |
327 | + | let J = aM._2 | |
328 | + | $Tuple2(nil, $Tuple5(o, aN, p, J, height)) | |
314 | 329 | } | |
315 | 330 | ||
316 | 331 | ||
317 | 332 | ||
318 | - | @Callable( | |
333 | + | @Callable(al) | |
319 | 334 | func getUserDataREADONLY (t) = { | |
320 | - | let aJ = ac(t) | |
321 | - | let aa = aJ._1 | |
322 | - | let ab = aJ._2 | |
323 | - | $Tuple2(nil, $Tuple5(o, aa, p, ab, height)) | |
335 | + | let aO = ad(t) | |
336 | + | let ab = aO._1 | |
337 | + | let ac = aO._2 | |
338 | + | let ai = aj(t) | |
339 | + | $Tuple2(nil, $Tuple6(o, ab, p, ac, ai, height)) | |
324 | 340 | } | |
325 | 341 | ||
326 | 342 | ||
327 | 343 | ||
328 | - | @Callable( | |
329 | - | func leaseByAddress (r,t) = | |
344 | + | @Callable(al) | |
345 | + | func leaseByAddress (r,t) = ak(r, t, al) | |
330 | 346 | ||
331 | 347 | ||
332 | 348 | ||
333 | - | @Callable( | |
349 | + | @Callable(al) | |
334 | 350 | func lease (r) = { | |
335 | - | let t = toString( | |
336 | - | | |
351 | + | let t = toString(al.caller) | |
352 | + | ak(r, t, al) | |
337 | 353 | } | |
338 | 354 | ||
339 | 355 | ||
340 | 356 | ||
341 | - | @Callable( | |
342 | - | func | |
343 | - | let t = toString( | |
344 | - | | |
357 | + | @Callable(al) | |
358 | + | func leaseFromLocked (r,aP) = { | |
359 | + | let t = toString(al.caller) | |
360 | + | aD(r, t, aP) | |
345 | 361 | } | |
346 | 362 | ||
347 | 363 | ||
348 | 364 | ||
349 | - | @Callable( | |
350 | - | func cancelLease (r, | |
351 | - | let t = toString( | |
352 | - | | |
365 | + | @Callable(al) | |
366 | + | func cancelLease (r,aP) = { | |
367 | + | let t = toString(al.caller) | |
368 | + | at(r, t, aP) | |
353 | 369 | } | |
354 | 370 | ||
355 | 371 | ||
356 | 372 | ||
357 | - | @Callable( | |
358 | - | func claim ( | |
359 | - | let t = toString( | |
360 | - | | |
373 | + | @Callable(al) | |
374 | + | func claim (aP) = { | |
375 | + | let t = toString(al.caller) | |
376 | + | az(t, aP) | |
361 | 377 | } | |
362 | 378 | ||
363 | 379 | ||
364 | 380 | ||
365 | - | @Callable( | |
381 | + | @Callable(al) | |
366 | 382 | func claimAll () = { | |
367 | - | let t = toString( | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
383 | + | let t = toString(al.caller) | |
384 | + | let aQ = ad(t) | |
385 | + | let ab = aQ._1 | |
386 | + | let ac = aQ._2 | |
387 | + | let am = [if ((ab > 0)) | |
372 | 388 | then true | |
373 | 389 | else c("nothing to claim")] | |
374 | - | if (( | |
375 | - | then | |
390 | + | if ((am == am)) | |
391 | + | then az(t, ab) | |
376 | 392 | else throw("Strict value is not equal to itself.") | |
377 | 393 | } | |
378 | 394 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "l2mp_leasing.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | func c (d) = throw(((a + ": ") + d)) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | let e = makeString(["%s", "assetId"], b) | |
12 | 12 | ||
13 | 13 | let f = makeString(["%s", "adminList"], b) | |
14 | 14 | ||
15 | 15 | let g = makeString(["%s", "forceStop"], b) | |
16 | 16 | ||
17 | 17 | let h = makeString(["%s", "offsetId"], b) | |
18 | 18 | ||
19 | 19 | let i = makeString(["%s", "offsetHeight"], b) | |
20 | 20 | ||
21 | 21 | let j = makeString(["%s", "periodLength"], b) | |
22 | 22 | ||
23 | 23 | let k = valueOrElse(getInteger(this, h), 0) | |
24 | 24 | ||
25 | 25 | let l = valueOrElse(getInteger(this, j), 10000) | |
26 | 26 | ||
27 | 27 | let m = valueOrElse(getInteger(this, i), -1) | |
28 | 28 | ||
29 | 29 | let n = if (if ((height > m)) | |
30 | 30 | then (m != -1) | |
31 | 31 | else false) | |
32 | 32 | then (((height - m) / l) + k) | |
33 | 33 | else max([0, (k - 1)]) | |
34 | 34 | ||
35 | 35 | let o = (m + ((n - k) * l)) | |
36 | 36 | ||
37 | 37 | let p = (o + l) | |
38 | 38 | ||
39 | 39 | func q (r) = makeString(["%s", r], b) | |
40 | 40 | ||
41 | 41 | ||
42 | - | func s (t) = makeString(["%s%s", | |
42 | + | func s (t,r) = makeString(["%s%s", r, t], b) | |
43 | 43 | ||
44 | 44 | ||
45 | - | func u (t | |
45 | + | func u (t) = makeString(["%s%s", "toClaim", t], b) | |
46 | 46 | ||
47 | 47 | ||
48 | - | func v ( | |
48 | + | func v (t) = makeString(["%s%s", "userTotalLocked", t], b) | |
49 | 49 | ||
50 | 50 | ||
51 | - | func w (r | |
51 | + | func w (r) = makeString(["%s%d", r, toString(height)], b) | |
52 | 52 | ||
53 | 53 | ||
54 | - | let x = valueOrElse(getString(this, e), "WAVES") | |
55 | - | ||
56 | - | let y = if ((x == "WAVES")) | |
57 | - | then unit | |
58 | - | else fromBase58String(x) | |
59 | - | ||
60 | - | let z = split(valueOrElse(getString(this, f), ""), b) | |
61 | - | ||
62 | - | let A = valueOrElse(getBoolean(this, g), false) | |
63 | - | ||
64 | - | func B (C) = containsElement(z, C) | |
54 | + | func x (r,t) = makeString(["%s%s%d", r, t, toString(height)], b) | |
65 | 55 | ||
66 | 56 | ||
67 | - | func D (C) = { | |
68 | - | let E = addressFromString(C) | |
69 | - | if ($isInstanceOf(E, "Address")) | |
57 | + | let y = valueOrElse(getString(this, e), "WAVES") | |
58 | + | ||
59 | + | let z = if ((y == "WAVES")) | |
60 | + | then unit | |
61 | + | else fromBase58String(y) | |
62 | + | ||
63 | + | let A = split(valueOrElse(getString(this, f), ""), b) | |
64 | + | ||
65 | + | let B = valueOrElse(getBoolean(this, g), false) | |
66 | + | ||
67 | + | func C (D) = containsElement(A, D) | |
68 | + | ||
69 | + | ||
70 | + | func E (D) = { | |
71 | + | let F = addressFromString(D) | |
72 | + | if ($isInstanceOf(F, "Address")) | |
70 | 73 | then { | |
71 | - | let | |
74 | + | let G = F | |
72 | 75 | true | |
73 | 76 | } | |
74 | 77 | else false | |
75 | 78 | } | |
76 | 79 | ||
77 | 80 | ||
78 | - | func | |
79 | - | let | |
80 | - | StringEntry(q(r), | |
81 | + | func H (r,I,J) = { | |
82 | + | let K = makeString(["%d%d%d%d", toString(o), toString(I), toString(p), toString(J)], b) | |
83 | + | StringEntry(q(r), K) | |
81 | 84 | } | |
82 | 85 | ||
83 | 86 | ||
84 | - | func | |
85 | - | let | |
86 | - | let | |
87 | - | if ($isInstanceOf( | |
87 | + | func L (r) = { | |
88 | + | let M = getString(this, q(r)) | |
89 | + | let F = M | |
90 | + | if ($isInstanceOf(F, "String")) | |
88 | 91 | then { | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | let | |
93 | - | let | |
94 | - | let | |
95 | - | if (( | |
96 | - | then $Tuple2( | |
97 | - | else $Tuple2( | |
92 | + | let N = F | |
93 | + | let O = split(N, b) | |
94 | + | let P = parseIntValue(O[1]) | |
95 | + | let Q = parseIntValue(O[2]) | |
96 | + | let R = parseIntValue(O[3]) | |
97 | + | let S = parseIntValue(O[4]) | |
98 | + | if ((R > height)) | |
99 | + | then $Tuple2(Q, S) | |
100 | + | else $Tuple2(S, S) | |
98 | 101 | } | |
99 | 102 | else $Tuple2(0, 0) | |
100 | 103 | } | |
101 | 104 | ||
102 | 105 | ||
103 | - | func | |
104 | - | let | |
105 | - | StringEntry( | |
106 | + | func T (r,t,U,V) = { | |
107 | + | let K = makeString(["%d%d%d%d", toString(o), toString(U), toString(p), toString(V)], b) | |
108 | + | StringEntry(s(t, r), K) | |
106 | 109 | } | |
107 | 110 | ||
108 | 111 | ||
109 | - | func | |
110 | - | let | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
112 | + | func W (r,t) = { | |
113 | + | let X = getString(this, s(t, r)) | |
114 | + | let F = X | |
115 | + | if ($isInstanceOf(F, "String")) | |
113 | 116 | then { | |
114 | - | let | |
115 | - | let | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | if (( | |
121 | - | then $Tuple2( | |
122 | - | else $Tuple2( | |
117 | + | let N = F | |
118 | + | let O = split(N, b) | |
119 | + | let Y = parseIntValue(O[1]) | |
120 | + | let U = parseIntValue(O[2]) | |
121 | + | let Z = parseIntValue(O[3]) | |
122 | + | let V = parseIntValue(O[4]) | |
123 | + | if ((Z > height)) | |
124 | + | then $Tuple2(U, V) | |
125 | + | else $Tuple2(V, V) | |
123 | 126 | } | |
124 | 127 | else $Tuple2(0, 0) | |
125 | 128 | } | |
126 | 129 | ||
127 | 130 | ||
128 | - | func | |
129 | - | let | |
130 | - | StringEntry( | |
131 | + | func aa (t,ab,ac) = { | |
132 | + | let K = makeString(["%d%d%d%d", toString(o), toString(ab), toString(p), toString(ac)], b) | |
133 | + | StringEntry(u(t), K) | |
131 | 134 | } | |
132 | 135 | ||
133 | 136 | ||
134 | - | func | |
135 | - | let | |
136 | - | let | |
137 | - | if ($isInstanceOf( | |
137 | + | func ad (t) = { | |
138 | + | let ae = getString(this, u(t)) | |
139 | + | let F = ae | |
140 | + | if ($isInstanceOf(F, "String")) | |
138 | 141 | then { | |
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | let | |
144 | - | let | |
145 | - | if (( | |
146 | - | then $Tuple2( | |
147 | - | else $Tuple2(( | |
142 | + | let N = F | |
143 | + | let O = split(N, b) | |
144 | + | let af = parseIntValue(O[1]) | |
145 | + | let ab = parseIntValue(O[2]) | |
146 | + | let ag = parseIntValue(O[3]) | |
147 | + | let ac = parseIntValue(O[4]) | |
148 | + | if ((ag > height)) | |
149 | + | then $Tuple2(ab, ac) | |
150 | + | else $Tuple2((ab + ac), 0) | |
148 | 151 | } | |
149 | 152 | else $Tuple2(0, 0) | |
150 | 153 | } | |
151 | 154 | ||
152 | 155 | ||
153 | - | func ag (r,t,ah) = { | |
154 | - | let ai = [if (!(A)) | |
156 | + | func ah (t,ai) = IntegerEntry(v(t), ai) | |
157 | + | ||
158 | + | ||
159 | + | func aj (t) = valueOrElse(getInteger(this, v(t)), 0) | |
160 | + | ||
161 | + | ||
162 | + | func ak (r,t,al) = { | |
163 | + | let am = [if (!(B)) | |
155 | 164 | then true | |
156 | - | else c("contract is temporary stopped"), if ((size( | |
165 | + | else c("contract is temporary stopped"), if ((size(al.payments) == 1)) | |
157 | 166 | then true | |
158 | - | else c("payment size should be exactly 1"), if (( | |
167 | + | else c("payment size should be exactly 1"), if ((al.payments[0].assetId == z)) | |
159 | 168 | then true | |
160 | - | else c(makeString(["payment assetId should be:", | |
169 | + | else c(makeString(["payment assetId should be:", y], " ")), if (E(r)) | |
161 | 170 | then true | |
162 | - | else c(makeString(["node address is not valid:", r], " ")), if ( | |
171 | + | else c(makeString(["node address is not valid:", r], " ")), if (E(t)) | |
163 | 172 | then true | |
164 | 173 | else c(makeString(["user address is not valid:", t], " "))] | |
165 | - | if (( | |
174 | + | if ((am == am)) | |
166 | 175 | then { | |
167 | - | let aj = ah.payments[0].amount | |
168 | - | let ak = K(r) | |
169 | - | let P = ak._1 | |
170 | - | let R = ak._2 | |
171 | - | let al = (R + aj) | |
172 | - | let am = V(r, t) | |
173 | - | let T = am._1 | |
174 | - | let U = am._2 | |
175 | - | let an = (U + aj) | |
176 | - | [G(r, P, al), S(r, t, T, an), IntegerEntry(v(r), al), IntegerEntry(w(r, t), an)] | |
176 | + | let an = al.payments[0].amount | |
177 | + | let ao = L(r) | |
178 | + | let Q = ao._1 | |
179 | + | let S = ao._2 | |
180 | + | let ap = (S + an) | |
181 | + | let aq = W(r, t) | |
182 | + | let U = aq._1 | |
183 | + | let V = aq._2 | |
184 | + | let ar = (V + an) | |
185 | + | let ai = aj(t) | |
186 | + | let as = (ai + an) | |
187 | + | [H(r, Q, ap), T(r, t, U, ar), ah(t, as), IntegerEntry(w(r), ap), IntegerEntry(x(r, t), ar)] | |
177 | 188 | } | |
178 | 189 | else throw("Strict value is not equal to itself.") | |
179 | 190 | } | |
180 | 191 | ||
181 | 192 | ||
182 | - | func | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
193 | + | func at (r,t,au) = { | |
194 | + | let av = L(r) | |
195 | + | let Q = av._1 | |
196 | + | let S = av._2 | |
197 | + | let aw = W(r, t) | |
198 | + | let U = aw._1 | |
199 | + | let V = aw._2 | |
200 | + | let am = [if (!(B)) | |
190 | 201 | then true | |
191 | - | else c("contract is temporary stopped"), if (( | |
202 | + | else c("contract is temporary stopped"), if ((au > 0)) | |
192 | 203 | then true | |
193 | - | else c("unstake amount should be greater than 0"), if (( | |
204 | + | else c("unstake amount should be greater than 0"), if ((V >= au)) | |
194 | 205 | then true | |
195 | - | else c("unstake amount should be less or equal user staked amount"), if (( | |
206 | + | else c("unstake amount should be less or equal user staked amount"), if ((S >= au)) | |
196 | 207 | then true | |
197 | - | else c("unstake amount should be less or equal node staked amount"), if ( | |
208 | + | else c("unstake amount should be less or equal node staked amount"), if (E(r)) | |
198 | 209 | then true | |
199 | - | else c(makeString(["node address is not valid:", r], " ")), if ( | |
210 | + | else c(makeString(["node address is not valid:", r], " ")), if (E(t)) | |
200 | 211 | then true | |
201 | 212 | else c(makeString(["user address is not valid:", t], " "))] | |
202 | - | if (( | |
213 | + | if ((am == am)) | |
203 | 214 | then { | |
204 | - | let al = (R - ap) | |
205 | - | let an = (U - ap) | |
206 | - | let as = ac(t) | |
207 | - | let aa = as._1 | |
208 | - | let ab = as._2 | |
209 | - | let at = (ab + ap) | |
210 | - | [G(r, P, al), S(r, t, T, an), Z(t, aa, at), IntegerEntry(v(r), al), IntegerEntry(w(r, t), an)] | |
215 | + | let ap = (S - au) | |
216 | + | let ar = (V - au) | |
217 | + | let ax = ad(t) | |
218 | + | let ab = ax._1 | |
219 | + | let ac = ax._2 | |
220 | + | let ay = (ac + au) | |
221 | + | let ai = aj(t) | |
222 | + | let as = (ai - au) | |
223 | + | [H(r, Q, ap), T(r, t, U, ar), aa(t, ab, ay), ah(t, as), IntegerEntry(w(r), ap), IntegerEntry(x(r, t), ar)] | |
211 | 224 | } | |
212 | 225 | else throw("Strict value is not equal to itself.") | |
213 | 226 | } | |
214 | 227 | ||
215 | 228 | ||
216 | - | func | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
229 | + | func az (t,aA) = { | |
230 | + | let aB = ad(t) | |
231 | + | let ab = aB._1 | |
232 | + | let ac = aB._2 | |
233 | + | let am = [if (!(B)) | |
221 | 234 | then true | |
222 | - | else c("contract is temporary stopped"), if (( | |
235 | + | else c("contract is temporary stopped"), if ((aA > 0)) | |
223 | 236 | then true | |
224 | - | else c("claim amount should be greater than 0"), if (( | |
237 | + | else c("claim amount should be greater than 0"), if ((ab >= aA)) | |
225 | 238 | then true | |
226 | - | else c("claim amount should be less or equal unlocked amount"), if ( | |
239 | + | else c("claim amount should be less or equal unlocked amount"), if (E(t)) | |
227 | 240 | then true | |
228 | 241 | else c(makeString(["user address is not valid:", t], " "))] | |
229 | - | if (( | |
242 | + | if ((am == am)) | |
230 | 243 | then { | |
231 | - | let | |
232 | - | [ | |
244 | + | let aC = (ab - aA) | |
245 | + | [aa(t, aC, ac), ScriptTransfer(addressFromStringValue(t), aA, z)] | |
233 | 246 | } | |
234 | 247 | else throw("Strict value is not equal to itself.") | |
235 | 248 | } | |
236 | 249 | ||
237 | 250 | ||
238 | - | func | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
251 | + | func aD (r,t,an) = { | |
252 | + | let aE = ad(t) | |
253 | + | let ab = aE._1 | |
254 | + | let ac = aE._2 | |
255 | + | let aF = (ac + ab) | |
256 | + | let am = [if (!(B)) | |
244 | 257 | then true | |
245 | - | else c("contract is temporary stopped"), if (( | |
258 | + | else c("contract is temporary stopped"), if ((an > 0)) | |
246 | 259 | then true | |
247 | - | else c("amount should be greater than 0"), if (( | |
260 | + | else c("amount should be greater than 0"), if ((aF >= an)) | |
248 | 261 | then true | |
249 | - | else c("amount should be less or equal | |
262 | + | else c("amount should be less or equal available amount"), if (E(r)) | |
250 | 263 | then true | |
251 | - | else c(makeString(["node address is not valid:", r], " ")), if ( | |
264 | + | else c(makeString(["node address is not valid:", r], " ")), if (E(t)) | |
252 | 265 | then true | |
253 | 266 | else c(makeString(["user address is not valid:", t], " "))] | |
254 | - | if (( | |
267 | + | if ((am == am)) | |
255 | 268 | then { | |
256 | - | let aB = K(r) | |
257 | - | let P = aB._1 | |
258 | - | let R = aB._2 | |
259 | - | let al = (R + aj) | |
260 | - | let aC = V(r, t) | |
261 | - | let T = aC._1 | |
262 | - | let U = aC._2 | |
263 | - | let an = (U + aj) | |
264 | - | let at = max([0, (ab - aj)]) | |
265 | - | let ax = min([aa, (aa + (ab - aj))]) | |
266 | - | [G(r, P, al), S(r, t, T, an), Z(t, ax, at), IntegerEntry(v(r), al), IntegerEntry(w(r, t), an)] | |
269 | + | let aG = L(r) | |
270 | + | let Q = aG._1 | |
271 | + | let S = aG._2 | |
272 | + | let ap = (S + an) | |
273 | + | let aH = W(r, t) | |
274 | + | let U = aH._1 | |
275 | + | let V = aH._2 | |
276 | + | let ar = (V + an) | |
277 | + | let ay = max([0, (ac - an)]) | |
278 | + | let aC = min([ab, (ab + (ac - an))]) | |
279 | + | let ai = aj(t) | |
280 | + | let as = (ai + an) | |
281 | + | [H(r, Q, ap), T(r, t, U, ar), aa(t, aC, ay), ah(t, as), IntegerEntry(w(r), ap), IntegerEntry(x(r, t), ar)] | |
267 | 282 | } | |
268 | 283 | else throw("Strict value is not equal to itself.") | |
269 | 284 | } | |
270 | 285 | ||
271 | 286 | ||
272 | - | func | |
273 | - | let | |
287 | + | func aI (aJ) = { | |
288 | + | let aK = [if ((aJ > 0)) | |
274 | 289 | then true | |
275 | 290 | else c("period length should be greater than 0")] | |
276 | - | if (( | |
291 | + | if ((aK == aK)) | |
277 | 292 | then if ((m == -1)) | |
278 | - | then [IntegerEntry(j, | |
279 | - | else [IntegerEntry(h, (n + 1)), IntegerEntry(i, p), IntegerEntry(j, | |
293 | + | then [IntegerEntry(j, aJ), IntegerEntry(i, height)] | |
294 | + | else [IntegerEntry(h, (n + 1)), IntegerEntry(i, p), IntegerEntry(j, aJ)] | |
280 | 295 | else throw("Strict value is not equal to itself.") | |
281 | 296 | } | |
282 | 297 | ||
283 | 298 | ||
284 | - | @Callable( | |
285 | - | func setNewPeriodLength ( | |
286 | - | let | |
299 | + | @Callable(al) | |
300 | + | func setNewPeriodLength (aJ) = { | |
301 | + | let am = [if (C(toString(al.caller))) | |
287 | 302 | then true | |
288 | 303 | else c("caller is not in adminList")] | |
289 | - | if (( | |
290 | - | then | |
304 | + | if ((am == am)) | |
305 | + | then aI(aJ) | |
291 | 306 | else throw("Strict value is not equal to itself.") | |
292 | 307 | } | |
293 | 308 | ||
294 | 309 | ||
295 | 310 | ||
296 | - | @Callable( | |
297 | - | func setForceStopFlag ( | |
298 | - | let | |
311 | + | @Callable(al) | |
312 | + | func setForceStopFlag (aL) = { | |
313 | + | let aK = [if (C(toString(al.caller))) | |
299 | 314 | then true | |
300 | 315 | else c("caller is not an admin")] | |
301 | - | if (( | |
302 | - | then [BooleanEntry(g, | |
316 | + | if ((aK == aK)) | |
317 | + | then [BooleanEntry(g, aL)] | |
303 | 318 | else throw("Strict value is not equal to itself.") | |
304 | 319 | } | |
305 | 320 | ||
306 | 321 | ||
307 | 322 | ||
308 | - | @Callable( | |
323 | + | @Callable(al) | |
309 | 324 | func getNodeDataREADONLY (r) = { | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | $Tuple2(nil, $Tuple5(o, | |
325 | + | let aM = L(r) | |
326 | + | let aN = aM._1 | |
327 | + | let J = aM._2 | |
328 | + | $Tuple2(nil, $Tuple5(o, aN, p, J, height)) | |
314 | 329 | } | |
315 | 330 | ||
316 | 331 | ||
317 | 332 | ||
318 | - | @Callable( | |
333 | + | @Callable(al) | |
319 | 334 | func getUserDataREADONLY (t) = { | |
320 | - | let aJ = ac(t) | |
321 | - | let aa = aJ._1 | |
322 | - | let ab = aJ._2 | |
323 | - | $Tuple2(nil, $Tuple5(o, aa, p, ab, height)) | |
335 | + | let aO = ad(t) | |
336 | + | let ab = aO._1 | |
337 | + | let ac = aO._2 | |
338 | + | let ai = aj(t) | |
339 | + | $Tuple2(nil, $Tuple6(o, ab, p, ac, ai, height)) | |
324 | 340 | } | |
325 | 341 | ||
326 | 342 | ||
327 | 343 | ||
328 | - | @Callable( | |
329 | - | func leaseByAddress (r,t) = | |
344 | + | @Callable(al) | |
345 | + | func leaseByAddress (r,t) = ak(r, t, al) | |
330 | 346 | ||
331 | 347 | ||
332 | 348 | ||
333 | - | @Callable( | |
349 | + | @Callable(al) | |
334 | 350 | func lease (r) = { | |
335 | - | let t = toString( | |
336 | - | | |
351 | + | let t = toString(al.caller) | |
352 | + | ak(r, t, al) | |
337 | 353 | } | |
338 | 354 | ||
339 | 355 | ||
340 | 356 | ||
341 | - | @Callable( | |
342 | - | func | |
343 | - | let t = toString( | |
344 | - | | |
357 | + | @Callable(al) | |
358 | + | func leaseFromLocked (r,aP) = { | |
359 | + | let t = toString(al.caller) | |
360 | + | aD(r, t, aP) | |
345 | 361 | } | |
346 | 362 | ||
347 | 363 | ||
348 | 364 | ||
349 | - | @Callable( | |
350 | - | func cancelLease (r, | |
351 | - | let t = toString( | |
352 | - | | |
365 | + | @Callable(al) | |
366 | + | func cancelLease (r,aP) = { | |
367 | + | let t = toString(al.caller) | |
368 | + | at(r, t, aP) | |
353 | 369 | } | |
354 | 370 | ||
355 | 371 | ||
356 | 372 | ||
357 | - | @Callable( | |
358 | - | func claim ( | |
359 | - | let t = toString( | |
360 | - | | |
373 | + | @Callable(al) | |
374 | + | func claim (aP) = { | |
375 | + | let t = toString(al.caller) | |
376 | + | az(t, aP) | |
361 | 377 | } | |
362 | 378 | ||
363 | 379 | ||
364 | 380 | ||
365 | - | @Callable( | |
381 | + | @Callable(al) | |
366 | 382 | func claimAll () = { | |
367 | - | let t = toString( | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
383 | + | let t = toString(al.caller) | |
384 | + | let aQ = ad(t) | |
385 | + | let ab = aQ._1 | |
386 | + | let ac = aQ._2 | |
387 | + | let am = [if ((ab > 0)) | |
372 | 388 | then true | |
373 | 389 | else c("nothing to claim")] | |
374 | - | if (( | |
375 | - | then | |
390 | + | if ((am == am)) | |
391 | + | then az(t, ab) | |
376 | 392 | else throw("Strict value is not equal to itself.") | |
377 | 393 | } | |
378 | 394 | ||
379 | 395 |
github/deemru/w8io/169f3d6 101.63 ms ◑