tx · 8bP92YyAG111dLAhgnToJPZjydh7iYjARKyp4D5U7JsK

3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1:  -0.01000000 Waves

2024.01.09 12:06 [2923745] smart account 3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1 > SELF 0.00000000 Waves

{ "type": 13, "id": "8bP92YyAG111dLAhgnToJPZjydh7iYjARKyp4D5U7JsK", "fee": 1000000, "feeAssetId": null, "timestamp": 1704791184205, "version": 2, "chainId": 84, "sender": "3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1", "senderPublicKey": "7c3qLtcJ7EaPS2JDjXv8MBbd4kpyc6R27wcn5GgvZhur", "proofs": [ "yiFktKnahbL13SHdwUdAQ16VvFQLoURU3DyCMTvc7oNciswyysRSth7jcQBKFJ5pHmfKm7MDMs6UJZEHnRgFGxP" ], "script": "base64:BgIKCAISBgoECAEBARAADGNvbnRyYWN0RmlsZQIQdmVzdGluZ19uZW8ucmlkZQADU0VQAgJfXwARTUFYX1ZFU1RJTkdfQ09VTlQACgEIdGhyb3dFcnIBA21zZwkAAgEJAKwCAgkArAICBQxjb250cmFjdEZpbGUCAjogBQNtc2cACmtleUFzc2V0SWQJALkJAgkAzAgCAgIlcwkAzAgCAgdhc3NldElkBQNuaWwFA1NFUAANYXNzZXRJZFN0cmluZwkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzBQprZXlBc3NldElkAgVXQVZFUwAMYXNzZXRJZEJ5dGVzAwkAAAIFDWFzc2V0SWRTdHJpbmcCBVdBVkVTBQR1bml0CQDZBAEFDWFzc2V0SWRTdHJpbmcBFGlzVmFsaWRBZGRyZXNzU3RyaW5nAQ1hZGRyZXNzU3RyaW5nBAckbWF0Y2gwCQCmCAEFDWFkZHJlc3NTdHJpbmcDCQABAgUHJG1hdGNoMAIHQWRkcmVzcwQBYQUHJG1hdGNoMAYHAQ5rZXlVc2VyVmVzdGluZwILdXNlckFkZHJlc3MCaWQEBmNoZWNrcwk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9ucwEBaQEDZm9vBAt1c2VyQWRkcmVzcw12ZXN0aW5nQW1vdW50CnN0YXJ0QmxvY2sKbG9ja0xlbmd0aAkBFGdldE5ld1Zlc3RpbmdBY3Rpb25zBQULdXNlckFkZHJlc3MAAAUNdmVzdGluZ0Ftb3VudAUKc3RhcnRCbG9jawUKbG9ja0xlbmd0aAAeA+ni", "height": 2923745, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AkJqAGEiwucVRK15PBpN6JH2StKnrt4teCcLNTt6qVNF Next: 4K6cyaXp2pbGoWJ1rWXvfN1ipf3eoyL7zEkRGnBRrQoh Diff:
OldNewDifferences
55
66 let b = "__"
77
8-let c = 100
8+let c = 10
99
1010 func d (e) = throw(((a + ": ") + e))
1111
113113 func J (n,o,r,s,t) = [StringEntry(m(n, o), q(r, s, t))]
114114
115115
116-@Callable(K)
116+func K (n) = {
117+ func L (M,l) = {
118+ let N = M
119+ let O = N._1
120+ let P = N._2
121+ $Tuple2((O ++ F(n, P)), (P + 1))
122+ }
123+
124+ let Q = {
125+ let R = nil
126+ let S = size(R)
127+ let T = $Tuple2(nil, 0)
128+ func U (V,W) = if ((W >= S))
129+ then V
130+ else L(V, R[W])
131+
132+ func X (V,W) = if ((W >= S))
133+ then V
134+ else throw("List size exceeds 10")
135+
136+ X(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
137+ }
138+ let O = Q._1
139+ let Y = Q._2
140+ O
141+ }
142+
143+
144+@Callable(Z)
117145 func foo (n,r,s,t) = J(n, 0, r, s, t)
118146
119147
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
8-let c = 100
8+let c = 10
99
1010 func d (e) = throw(((a + ": ") + e))
1111
1212
1313 let f = makeString(["%s", "assetId"], b)
1414
1515 let g = valueOrElse(getString(this, f), "WAVES")
1616
1717 let h = if ((g == "WAVES"))
1818 then unit
1919 else fromBase58String(g)
2020
2121 func i (j) = {
2222 let k = addressFromString(j)
2323 if ($isInstanceOf(k, "Address"))
2424 then {
2525 let l = k
2626 true
2727 }
2828 else false
2929 }
3030
3131
3232 func m (n,o) = {
3333 let p = [if (i(n))
3434 then true
3535 else d(makeString(["address is not valid:", n], " ")), if (if ((o >= 0))
3636 then (c > o)
3737 else false)
3838 then true
3939 else d(makeString(["id is invalid:", toString(o)], " "))]
4040 if ((p == p))
4141 then makeString(["%s%d", n, toString(o)], b)
4242 else throw("Strict value is not equal to itself.")
4343 }
4444
4545
4646 func q (r,s,t) = {
4747 let p = [if ((r >= 0))
4848 then true
4949 else d("vesting amount cannot be negative"), if ((s >= 0))
5050 then true
5151 else d("start block cannot be negative"), if ((t >= 0))
5252 then true
5353 else d("lock length cannot be negative")]
5454 if ((p == p))
5555 then makeString(["%d%d%d", toString(r), toString(s), toString(t)], b)
5656 else throw("Strict value is not equal to itself.")
5757 }
5858
5959
6060 func u (n,o) = {
6161 let k = getString(this, m(n, o))
6262 if ($isInstanceOf(k, "String"))
6363 then {
6464 let v = k
6565 let w = split(v, b)
6666 let r = parseIntValue(w[1])
6767 let s = parseIntValue(w[2])
6868 let t = parseIntValue(w[3])
6969 $Tuple3(r, s, t)
7070 }
7171 else $Tuple3(0, 0, 0)
7272 }
7373
7474
7575 func x (y,s,t) = {
7676 let z = (height - s)
7777 let A = if (if ((t != 0))
7878 then (z > 0)
7979 else false)
8080 then min([fraction(y, z, t), y])
8181 else 0
8282 $Tuple2(A, (y - A))
8383 }
8484
8585
8686 func B (n,o) = {
8787 let C = u(n, o)
8888 let r = C._1
8989 let s = C._2
9090 let t = C._3
9191 let D = x(r, s, t)
9292 let A = D._1
9393 let E = D._2
9494 $Tuple2(A, E)
9595 }
9696
9797
9898 func F (n,o) = {
9999 let G = u(n, o)
100100 let r = G._1
101101 let s = G._2
102102 let t = G._3
103103 let H = B(n, o)
104104 let A = H._1
105105 let E = H._2
106106 let I = max([((s + t) - height), 0])
107107 if ((A != 0))
108108 then [ScriptTransfer(addressFromStringValue(n), A, h), StringEntry(m(n, o), q(E, height, I))]
109109 else nil
110110 }
111111
112112
113113 func J (n,o,r,s,t) = [StringEntry(m(n, o), q(r, s, t))]
114114
115115
116-@Callable(K)
116+func K (n) = {
117+ func L (M,l) = {
118+ let N = M
119+ let O = N._1
120+ let P = N._2
121+ $Tuple2((O ++ F(n, P)), (P + 1))
122+ }
123+
124+ let Q = {
125+ let R = nil
126+ let S = size(R)
127+ let T = $Tuple2(nil, 0)
128+ func U (V,W) = if ((W >= S))
129+ then V
130+ else L(V, R[W])
131+
132+ func X (V,W) = if ((W >= S))
133+ then V
134+ else throw("List size exceeds 10")
135+
136+ X(U(U(U(U(U(U(U(U(U(U(T, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
137+ }
138+ let O = Q._1
139+ let Y = Q._2
140+ O
141+ }
142+
143+
144+@Callable(Z)
117145 func foo (n,r,s,t) = J(n, 0, r, s, t)
118146
119147

github/deemru/w8io/169f3d6 
26.49 ms