tx · 5XpXqnX7REsK9MvPyxmz7vPFZPJy9yfjuo9teboMyY3R 3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY: -0.01000000 Waves 2023.01.10 12:51 [2398688] smart account 3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY > SELF 0.00000000 Waves
{ "type": 13, "id": "5XpXqnX7REsK9MvPyxmz7vPFZPJy9yfjuo9teboMyY3R", "fee": 1000000, "feeAssetId": null, "timestamp": 1673344368408, "version": 2, "chainId": 84, "sender": "3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY", "senderPublicKey": "AbKSXC77cdmH8X3UJXcPzxsXqAX2mr2mkYZRjfRBQ7te", "proofs": [ "3dHwUMddM2e93izux2syLBJnjPk8RvhrMhptef24hHa1FfE8rHniQGP1HPqHetDwE9az4ZDvdyovgLVe8tS595zh" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABAAAAAAOc3RhcnRFbWlzc2lvbkgAAAAAAAAckecAAAAAEHN3b3BZZWFyRW1pc3Npb24AAABa8xB6QAAAAAAADWJsb2Nrc1BlclllYXIAAAAAAAAIB/oBAAAAEmdldFJld2FyZHNQZXJCbG9jawAAAAAEAAAAD2VtaXNzaW9uUGVyaW9kcwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAAOc3RhcnRFbWlzc2lvbkgFAAAADWJsb2Nrc1BlclllYXIKAQAAAAxjYWxjRW1pc3Npb24AAAACAAAAA2FjYwAAAAFpBAAAAAkkdDA0MDQ0NDEFAAAAA2FjYwQAAAALY3VyRW1pc3Npb24IBQAAAAkkdDA0MDQ0NDEAAAACXzEEAAAADHByZXZFbWlzc2lvbggFAAAACSR0MDQwNDQ0MQAAAAJfMgMJAABmAAAAAgUAAAABaQUAAAAPZW1pc3Npb25QZXJpb2RzCQAFFAAAAAIJAABrAAAAAwUAAAALY3VyRW1pc3Npb24AAAAAAAAAAEsAAAAAAAAAAGQFAAAAC2N1ckVtaXNzaW9uCQAFFAAAAAIFA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kBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVeXU3Q=", "height": 2398688, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 48aSt5oow8Mhe99tnm4mKv85VBRZq3etH4tmQcFumLf7 Next: B6wC7JkSMgVMpGyaJEVpjSDZUvjA6atgfQxy41Ap8gS5 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = 1872359 | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = 100000000000000 | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 526330 | |
9 | 9 | ||
10 | - | let d = 90000000 | |
10 | + | func d () = { | |
11 | + | let e = ((height - a) / c) | |
12 | + | func f (g,h) = { | |
13 | + | let i = g | |
14 | + | let j = i._1 | |
15 | + | let k = i._2 | |
16 | + | if ((h > e)) | |
17 | + | then $Tuple2(fraction(j, 75, 100), j) | |
18 | + | else $Tuple2(j, k) | |
19 | + | } | |
11 | 20 | ||
12 | - | let e = 110000000 | |
21 | + | let l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
22 | + | let m = size(l) | |
23 | + | let n = $Tuple2(b, b) | |
24 | + | func o (p,q) = if ((q >= m)) | |
25 | + | then p | |
26 | + | else f(p, l[q]) | |
13 | 27 | ||
14 | - | let f = 50 | |
28 | + | func r (p,q) = if ((q >= m)) | |
29 | + | then p | |
30 | + | else throw("List size exceeds 20") | |
15 | 31 | ||
16 | - | let g = 2 | |
17 | - | ||
18 | - | let h = 4600000000000000 | |
19 | - | ||
20 | - | func i (j,k) = ((fraction(b, j, k) + fraction(b, k, j)) / 2) | |
21 | - | ||
22 | - | ||
23 | - | func l (j,k) = { | |
24 | - | let m = i(j, k) | |
25 | - | (fraction((j + k), b, pow(m, c, f, g, c, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(j), toBigInt(k), toBigInt(a)), 0, toBigInt(5), 1, (c / 2), DOWN)), pow((m - h), c, f, g, c, DOWN), a))) | |
32 | + | r(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(n, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
26 | 33 | } | |
27 | 34 | ||
28 | 35 | ||
29 | - | func n (o,p,q,r) = { | |
30 | - | let s = (p - fraction(r, e, a)) | |
31 | - | let t = (p - fraction(r, d, a)) | |
32 | - | let u = (o + r) | |
33 | - | let v = (l(u, s) - q) | |
34 | - | func w (x,y) = if ((x._1 == 0)) | |
35 | - | then x | |
36 | - | else { | |
37 | - | let z = x._2 | |
38 | - | let A = x._3 | |
39 | - | let B = x._4 | |
40 | - | let C = x._5 | |
41 | - | let E = x._6 | |
42 | - | let F = (l(u, z) - q) | |
43 | - | if ((F == 0)) | |
44 | - | then $Tuple6(0, z, 0, 0, 0, 0) | |
45 | - | else { | |
46 | - | let G = if (if ((F > 0)) | |
47 | - | then (A > F) | |
48 | - | else false) | |
49 | - | then $Tuple2(F, z) | |
50 | - | else $Tuple2(A, B) | |
51 | - | let H = G._1 | |
52 | - | let I = G._2 | |
53 | - | if (((F - C) == 0)) | |
54 | - | then $Tuple6(1, (z + 1), H, I, F, z) | |
55 | - | else { | |
56 | - | let J = (z - fraction(F, (z - E), (F - C))) | |
57 | - | if (((z - J) != 0)) | |
58 | - | then $Tuple6(1, J, H, I, F, z) | |
59 | - | else if ((0 > F)) | |
60 | - | then $Tuple6(1, (z + 1), H, I, F, z) | |
61 | - | else $Tuple6(0, z, 0, 0, 0, 0) | |
62 | - | } | |
63 | - | } | |
64 | - | } | |
65 | - | ||
66 | - | let x = { | |
67 | - | let K = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | |
68 | - | let L = size(K) | |
69 | - | let M = $Tuple6(1, t, 9223372036854775807, p, v, s) | |
70 | - | func N (O,P) = if ((P >= L)) | |
71 | - | then O | |
72 | - | else w(O, K[P]) | |
73 | - | ||
74 | - | func Q (O,P) = if ((P >= L)) | |
75 | - | then O | |
76 | - | else throw("List size exceeds 12") | |
77 | - | ||
78 | - | Q(N(N(N(N(N(N(N(N(N(N(N(N(M, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12) | |
79 | - | } | |
80 | - | if ((x._1 == 0)) | |
81 | - | then (p - x._2) | |
82 | - | else (p - x._4) | |
36 | + | @Callable(h) | |
37 | + | func call () = { | |
38 | + | let s = Issue("Asset", "", 1, 0, true, unit, 0) | |
39 | + | let t = calculateAssetId(s) | |
40 | + | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), s, Reissue(t, 1, false), Burn(t, 1), ScriptTransfer(h.caller, 1, t)] | |
83 | 41 | } | |
84 | 42 | ||
85 | 43 | ||
86 | - | @Callable(R) | |
87 | - | func D (o,p,q,r) = { | |
88 | - | let S = n(o, p, q, r) | |
89 | - | $Tuple2([IntegerEntry("est", S)], S) | |
90 | - | } | |
91 | - | ||
44 | + | @Verifier(u) | |
45 | + | func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) | |
92 | 46 |
github/deemru/w8io/169f3d6 26.12 ms ◑