tx · Gv5pwEeNUkw6zeKWsaARomE3pyg33KJrpz8KhQNBdVcp

3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1:  -0.01000000 Waves

2024.01.09 14:57 [2923902] smart account 3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1 > SELF 0.00000000 Waves

{ "type": 13, "id": "Gv5pwEeNUkw6zeKWsaARomE3pyg33KJrpz8KhQNBdVcp", "fee": 1000000, "feeAssetId": null, "timestamp": 1704801461273, "version": 2, "chainId": 84, "sender": "3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1", "senderPublicKey": "7c3qLtcJ7EaPS2JDjXv8MBbd4kpyc6R27wcn5GgvZhur", "proofs": [ "49vfg6gL37WdYN9khwtJXcbKxtS1NKqRhqt7Vyu94VimH4E8X95H5Socu33EQWDyAC2iobszZeHRHUhUQrdDKGev" ], "script": "base64:BgIRCAISBgoECAEBARIAEgMKAQgZAAxjb250cmFjdEZpbGUCEHZlc3RpbmdfbmVvLnJpZGUAA1NFUAICX18ACElEU19MSVNUCQDMCAIAAAkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFCQDMCAIABgkAzAgCAAcJAMwIAgAICQDMCAIACQkAzAgCAAoJAMwIAgALCQDMCAIADAkAzAgCAA0JAMwIAgAOCQDMCAIADwkAzAgCABAJAMwIAgARCQDMCAIAEgkAzAgCABMJAMwIAgAUCQDMCAIAFQkAzAgCABYJAMwIAgAXCQDMCAIAGAkAzAgCABkJAMwIAgAaCQDMCAIAGwkAzAgCABwJAMwIAgAdBQNuaWwAEU1BWF9WRVNUSU5HX0NPVU5UCQCQAwEFCElEU19MSVNUAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQAA1hc3NldElkU3RyaW5nCQELdmFsdWVPckVsc2UCCQ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RkcmVzcwDIpLcf", "height": 2923902, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ber9vaDCWa8ar6yvgyDuEwc45ShDrSbTysEn4bj4xXnM Next: 78yVhGW5aKxchThjtZbpmTxryV6qrDYcy1CRvm3cQYqr Diff:
OldNewDifferences
203203 let an = ap._1
204204 let aq = ap._2
205205 let ar = valueOrElse(getInteger(this, u(r)), 0)
206- let as = [IntegerEntry(u(r), (ar + aq))]
206+ let as = if ((aq != 0))
207+ then [IntegerEntry(u(r), (ar + aq))]
208+ else nil
207209 $Tuple2((an ++ as), aq)
208210 }
209211
210212
211213 func at (r) = {
212- func au (av,s) = {
213- let aw = z(r, s)
214- let w = aw._1
215- let x = aw._2
216- let y = aw._3
214+ let ar = valueOrElse(getInteger(this, u(r)), 0)
215+ if ((ar != 0))
216+ then $Tuple2([ScriptTransfer(addressFromStringValue(r), ar, i), DeleteEntry(u(r))], ar)
217+ else $Tuple2(nil, 0)
218+ }
219+
220+
221+func au (r) = {
222+ func av (aw,s) = {
223+ let ax = z(r, s)
224+ let w = ax._1
225+ let x = ax._2
226+ let y = ax._3
217227 if ((w > 0))
218- then av
219- else if ((av == -1))
228+ then aw
229+ else if ((aw == -1))
220230 then s
221- else min([av, s])
231+ else min([aw, s])
222232 }
223233
224- let av = {
234+ let aw = {
225235 let ae = c
226236 let af = size(ae)
227237 let ag = -1
228238 func ah (ai,aj) = if ((aj >= af))
229239 then ai
230- else au(ai, ae[aj])
240+ else av(ai, ae[aj])
231241
232242 func ak (ai,aj) = if ((aj >= af))
233243 then ai
235245
236246 ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
237247 }
238- if ((av == -1))
248+ if ((aw == -1))
239249 then e(makeString(["user exceeded max active vesting count: ", r], " "))
240- else av
250+ else aw
241251 }
242252
243253
244-func ax (r,s,w,x,y) = [StringEntry(q(r, s), v(w, x, y))]
254+func ay (r,s,w,x,y) = [StringEntry(q(r, s), v(w, x, y))]
245255
246256
247-@Callable(ay)
257+@Callable(az)
248258 func vestingForUser (r,w,x,y) = {
249- let az = [if ((size(ay.payments) == 1))
259+ let aA = [if ((size(az.payments) == 1))
250260 then true
251- else e("should be with exactly 1 payment"), if ((ay.payments[0].assetId == i))
261+ else e("should be with exactly 1 payment"), if ((az.payments[0].assetId == i))
252262 then true
253- else e(makeString(["payment assetId should be: ", h], " ")), if ((ay.payments[0].amount == w))
263+ else e(makeString(["payment assetId should be: ", h], " ")), if ((az.payments[0].amount == w))
254264 then true
255265 else e("payment amount should be equal to vestingAmount"), if (if ((k == nil))
256266 then true
257- else containsElement(k, toString(ay.caller)))
267+ else containsElement(k, toString(az.caller)))
258268 then true
259269 else e("you must be admin")]
260- if ((az == az))
270+ if ((aA == aA))
261271 then {
262- let s = at(r)
263- let aA = [IntegerEntry(C("vested", r, toBase58String(ay.transactionId)), w)]
264- (ax(r, s, w, x, y) ++ aA)
272+ let s = au(r)
273+ let aB = [IntegerEntry(C("vested", r, toBase58String(az.transactionId)), w)]
274+ (ay(r, s, w, x, y) ++ aB)
265275 }
266276 else throw("Strict value is not equal to itself.")
267277 }
268278
269279
270280
271-@Callable(ay)
281+@Callable(az)
272282 func claimAll () = {
273- let r = toString(ay.caller)
274- let aB = V(r)
275- let aC = aB._1
276- let aD = aB._2
277- let aA = [IntegerEntry(C("claimed", r, toBase58String(ay.transactionId)), aD)]
278- if ((aD > 0))
279- then (aC ++ aA)
283+ let r = toString(az.caller)
284+ let aC = V(r)
285+ let aD = aC._1
286+ let I = aC._2
287+ let aE = at(r)
288+ let aF = aE._1
289+ let aG = aE._2
290+ let aH = (I + aG)
291+ let aB = [IntegerEntry(C("claimed", r, toBase58String(az.transactionId)), aH)]
292+ if ((aH > 0))
293+ then ((aD ++ aF) ++ aB)
280294 else e("nothing to claim")
281295 }
296+
297+
298+
299+@Callable(az)
300+func foo (r) = al(r)
282301
283302
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "vesting_neo.ride"
55
66 let b = "__"
77
88 let c = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]
99
1010 let d = size(c)
1111
1212 func e (f) = throw(((a + ": ") + f))
1313
1414
1515 let g = makeString(["%s", "assetId"], b)
1616
1717 let h = valueOrElse(getString(this, g), "WAVES")
1818
1919 let i = if ((h == "WAVES"))
2020 then unit
2121 else fromBase58String(h)
2222
2323 let j = makeString(["%s", "adminList"], b)
2424
2525 let k = {
2626 let l = getString(this, j)
2727 if ($isInstanceOf(l, "String"))
2828 then {
2929 let m = l
3030 split(m, b)
3131 }
3232 else nil
3333 }
3434
3535 func n (o) = {
3636 let l = addressFromString(o)
3737 if ($isInstanceOf(l, "Address"))
3838 then {
3939 let p = l
4040 true
4141 }
4242 else false
4343 }
4444
4545
4646 func q (r,s) = {
4747 let t = [if (n(r))
4848 then true
4949 else e(makeString(["address is not valid:", r], " ")), if (if ((s >= 0))
5050 then (d > s)
5151 else false)
5252 then true
5353 else e(makeString(["id should be less than", toString(d), "got:", toString(s)], " "))]
5454 if ((t == t))
5555 then makeString(["%s%s%d", "vesting", r, toString(s)], b)
5656 else throw("Strict value is not equal to itself.")
5757 }
5858
5959
6060 func u (r) = {
6161 let t = [if (n(r))
6262 then true
6363 else e(makeString(["address is not valid:", r], " "))]
6464 if ((t == t))
6565 then makeString(["%s%s", "accumulated", r], b)
6666 else throw("Strict value is not equal to itself.")
6767 }
6868
6969
7070 func v (w,x,y) = {
7171 let t = [if ((w >= 0))
7272 then true
7373 else e("vesting amount cannot be negative"), if ((x >= 0))
7474 then true
7575 else e("start block cannot be negative"), if ((y >= 0))
7676 then true
7777 else e("lock length cannot be negative")]
7878 if ((t == t))
7979 then makeString(["%d%d%d%d%d", toString(w), toString(x), toString(y)], b)
8080 else throw("Strict value is not equal to itself.")
8181 }
8282
8383
8484 func z (r,s) = {
8585 let l = getString(this, q(r, s))
8686 if ($isInstanceOf(l, "String"))
8787 then {
8888 let A = l
8989 let B = split(A, b)
9090 let w = parseIntValue(B[1])
9191 let x = parseIntValue(B[2])
9292 let y = parseIntValue(B[3])
9393 $Tuple3(w, x, y)
9494 }
9595 else $Tuple3(0, 0, 0)
9696 }
9797
9898
9999 func C (D,r,E) = makeString(["%s%s%s%s", "history", D, r, E], b)
100100
101101
102102 func F (G,x,y) = {
103103 let H = (height - x)
104104 let I = if (if ((y != 0))
105105 then (H > 0)
106106 else false)
107107 then min([fraction(G, H, y), G])
108108 else 0
109109 $Tuple2(I, (G - I))
110110 }
111111
112112
113113 func J (r,s) = {
114114 let K = z(r, s)
115115 let w = K._1
116116 let x = K._2
117117 let y = K._3
118118 let L = F(w, x, y)
119119 let I = L._1
120120 let M = L._2
121121 $Tuple2(I, M)
122122 }
123123
124124
125125 func N (r,s) = {
126126 let O = z(r, s)
127127 let w = O._1
128128 let x = O._2
129129 let y = O._3
130130 let P = J(r, s)
131131 let I = P._1
132132 let M = P._2
133133 let Q = max([((x + y) - height), 0])
134134 let R = if ((I != 0))
135135 then [StringEntry(q(r, s), v(M, height, Q))]
136136 else nil
137137 $Tuple2(R, I)
138138 }
139139
140140
141141 func S (r,s) = {
142142 let T = N(r, s)
143143 let R = T._1
144144 let I = T._2
145145 let U = if ((I != 0))
146146 then [ScriptTransfer(addressFromStringValue(r), I, i)]
147147 else nil
148148 $Tuple2((R ++ U), I)
149149 }
150150
151151
152152 func V (r) = {
153153 func W (X,p) = {
154154 let Y = X
155155 let Z = Y._1
156156 let aa = Y._2
157157 let ab = S(r, p)
158158 let ac = ab._1
159159 let ad = ab._2
160160 $Tuple2((Z ++ ac), (aa + ad))
161161 }
162162
163163 let ae = c
164164 let af = size(ae)
165165 let ag = $Tuple2(nil, 0)
166166 func ah (ai,aj) = if ((aj >= af))
167167 then ai
168168 else W(ai, ae[aj])
169169
170170 func ak (ai,aj) = if ((aj >= af))
171171 then ai
172172 else throw("List size exceeds 30")
173173
174174 ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
175175 }
176176
177177
178178 func al (r) = {
179179 func W (X,p) = {
180180 let am = X
181181 let an = am._1
182182 let aa = am._2
183183 let ao = N(r, p)
184184 let R = ao._1
185185 let I = ao._2
186186 $Tuple2((an ++ R), (aa + I))
187187 }
188188
189189 let ap = {
190190 let ae = c
191191 let af = size(ae)
192192 let ag = $Tuple2(nil, 0)
193193 func ah (ai,aj) = if ((aj >= af))
194194 then ai
195195 else W(ai, ae[aj])
196196
197197 func ak (ai,aj) = if ((aj >= af))
198198 then ai
199199 else throw("List size exceeds 30")
200200
201201 ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
202202 }
203203 let an = ap._1
204204 let aq = ap._2
205205 let ar = valueOrElse(getInteger(this, u(r)), 0)
206- let as = [IntegerEntry(u(r), (ar + aq))]
206+ let as = if ((aq != 0))
207+ then [IntegerEntry(u(r), (ar + aq))]
208+ else nil
207209 $Tuple2((an ++ as), aq)
208210 }
209211
210212
211213 func at (r) = {
212- func au (av,s) = {
213- let aw = z(r, s)
214- let w = aw._1
215- let x = aw._2
216- let y = aw._3
214+ let ar = valueOrElse(getInteger(this, u(r)), 0)
215+ if ((ar != 0))
216+ then $Tuple2([ScriptTransfer(addressFromStringValue(r), ar, i), DeleteEntry(u(r))], ar)
217+ else $Tuple2(nil, 0)
218+ }
219+
220+
221+func au (r) = {
222+ func av (aw,s) = {
223+ let ax = z(r, s)
224+ let w = ax._1
225+ let x = ax._2
226+ let y = ax._3
217227 if ((w > 0))
218- then av
219- else if ((av == -1))
228+ then aw
229+ else if ((aw == -1))
220230 then s
221- else min([av, s])
231+ else min([aw, s])
222232 }
223233
224- let av = {
234+ let aw = {
225235 let ae = c
226236 let af = size(ae)
227237 let ag = -1
228238 func ah (ai,aj) = if ((aj >= af))
229239 then ai
230- else au(ai, ae[aj])
240+ else av(ai, ae[aj])
231241
232242 func ak (ai,aj) = if ((aj >= af))
233243 then ai
234244 else throw("List size exceeds 30")
235245
236246 ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30)
237247 }
238- if ((av == -1))
248+ if ((aw == -1))
239249 then e(makeString(["user exceeded max active vesting count: ", r], " "))
240- else av
250+ else aw
241251 }
242252
243253
244-func ax (r,s,w,x,y) = [StringEntry(q(r, s), v(w, x, y))]
254+func ay (r,s,w,x,y) = [StringEntry(q(r, s), v(w, x, y))]
245255
246256
247-@Callable(ay)
257+@Callable(az)
248258 func vestingForUser (r,w,x,y) = {
249- let az = [if ((size(ay.payments) == 1))
259+ let aA = [if ((size(az.payments) == 1))
250260 then true
251- else e("should be with exactly 1 payment"), if ((ay.payments[0].assetId == i))
261+ else e("should be with exactly 1 payment"), if ((az.payments[0].assetId == i))
252262 then true
253- else e(makeString(["payment assetId should be: ", h], " ")), if ((ay.payments[0].amount == w))
263+ else e(makeString(["payment assetId should be: ", h], " ")), if ((az.payments[0].amount == w))
254264 then true
255265 else e("payment amount should be equal to vestingAmount"), if (if ((k == nil))
256266 then true
257- else containsElement(k, toString(ay.caller)))
267+ else containsElement(k, toString(az.caller)))
258268 then true
259269 else e("you must be admin")]
260- if ((az == az))
270+ if ((aA == aA))
261271 then {
262- let s = at(r)
263- let aA = [IntegerEntry(C("vested", r, toBase58String(ay.transactionId)), w)]
264- (ax(r, s, w, x, y) ++ aA)
272+ let s = au(r)
273+ let aB = [IntegerEntry(C("vested", r, toBase58String(az.transactionId)), w)]
274+ (ay(r, s, w, x, y) ++ aB)
265275 }
266276 else throw("Strict value is not equal to itself.")
267277 }
268278
269279
270280
271-@Callable(ay)
281+@Callable(az)
272282 func claimAll () = {
273- let r = toString(ay.caller)
274- let aB = V(r)
275- let aC = aB._1
276- let aD = aB._2
277- let aA = [IntegerEntry(C("claimed", r, toBase58String(ay.transactionId)), aD)]
278- if ((aD > 0))
279- then (aC ++ aA)
283+ let r = toString(az.caller)
284+ let aC = V(r)
285+ let aD = aC._1
286+ let I = aC._2
287+ let aE = at(r)
288+ let aF = aE._1
289+ let aG = aE._2
290+ let aH = (I + aG)
291+ let aB = [IntegerEntry(C("claimed", r, toBase58String(az.transactionId)), aH)]
292+ if ((aH > 0))
293+ then ((aD ++ aF) ++ aB)
280294 else e("nothing to claim")
281295 }
296+
297+
298+
299+@Callable(az)
300+func foo (r) = al(r)
282301
283302

github/deemru/w8io/169f3d6 
55.32 ms