tx · AxwQP8ehEs91CYS9sQMh8GFS3y5i9J7VBM2cQ2MgZh3J 3N5HkfGrou8T5NyAuZVncnAdVuGmSHuMQ5d: -0.01000000 Waves 2023.03.21 17:41 [2499907] smart account 3N5HkfGrou8T5NyAuZVncnAdVuGmSHuMQ5d > SELF 0.00000000 Waves
{ "type": 13, "id": "AxwQP8ehEs91CYS9sQMh8GFS3y5i9J7VBM2cQ2MgZh3J", "fee": 1000000, "feeAssetId": null, "timestamp": 1679409720720, "version": 2, "chainId": 84, "sender": "3N5HkfGrou8T5NyAuZVncnAdVuGmSHuMQ5d", "senderPublicKey": "AZLzseQJi9XUNNp7cN6jwqDdSmQvDPNNqu7aQ6ujbsnJ", "proofs": [ "3C3t3HUxybWgQmW1oHpzNUYQthrNVPSHpEhCkJo3PMbcAQ58GH3CK324pA3E2gxQqzByBfyxJGG66WNghCoZxZgM" ], "script": "base64:BgIICAISBAoCAQEMAAZzY2FsZTgAgMLXLwAMc2NhbGU4QmlnSW50CQC2AgEAgMLXLwAHc2NhbGUxOAkAtgIBAICAkLu61q3wDQAKemVyb0JpZ0ludAkAtgIBAAAABGJpZzAJALYCAQAAAARiaWcxCQC2AgEAAQAEYmlnMgkAtgIBAAIABGJpZzMJALYCAQADAARiaWc0CQC2AgEABAAFQW11bHQCAzEwMAABQQIEMTAwMAEEZ2V0RAECeHAEA3hwMAkAkQMCBQJ4cAAABAN4cDEJAJEDAgUCeHAAAQQBcwkAtwICBQN4cDAFA3hwMQMJAAACBQFzBQRiaWcwBQRiaWcwBAFhCQENcGFyc2VJbnRWYWx1ZQEFAUEEA2FubgkAaAIFAWEAAgQBcAkAvAIDBQN4cDAFA3hwMQUEYmlnMQQLeHAwX3hwMV9uX24JALwCAwUBcAUEYmlnNAUEYmlnMQQFYW5uX3MJALwCAwkAtgIBBQNhbm4FAXMFBGJpZzEEBWFubl8xCQC2AgEJAGUCBQNhbm4AAQoBCWNhbGNETmV4dAEBZAQCZGQJALwCAwUBZAUBZAUEYmln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jBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIEAWQIBQskdDAxNDgwMTUyOAJfMQQFZm91bmQIBQskdDAxNDgwMTUyOAJfMgMFBWZvdW5kBQFkCQACAQkArAICAhlEIGNhbGN1bGF0aW9uIGVycm9yLCBEID0gCQCmAwEFAWQBAWkBBGNhbGMCA3hwMAN4cDEEAUQJAQRnZXREAQkAzAgCCQC2AgEFA3hwMAkAzAgCCQC2AgEFA3hwMQUDbmlsBAZTY2FsZTgAgMLXLwQDcmVzANcICQDMCAIJAQxJbnRlZ2VyRW50cnkCAgFECQCgAwEFAUQJAMwIAgkBC0RlbGV0ZUVudHJ5AQIFYW5uXzEJAMwIAgkBC0RlbGV0ZUVudHJ5AQIFYW5uX3MFA25pbAECdHgBBnZlcmlmeQAGDOkHew==", "height": 2499907, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G9q3kNbDJhi46ThmyMyEAyGEX1kgJWsuH3zUbb46efDH Next: 6eTduhG46VF9pJaCvc9n1VDpDMpSJej9Wa31NWxFJHXp Diff:
Old | New | Differences | |
---|---|---|---|
86 | 86 | let R = l([toBigInt(n), toBigInt(o)]) | |
87 | 87 | let S = 100000000 | |
88 | 88 | let T = 1111 | |
89 | - | [IntegerEntry("D", toInt(R))] | |
89 | + | [IntegerEntry("D", toInt(R)), DeleteEntry("ann_1"), DeleteEntry("ann_s")] | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(3) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(4) | |
21 | 21 | ||
22 | 22 | let j = "100" | |
23 | 23 | ||
24 | 24 | let k = "1000" | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = m[0] | |
28 | 28 | let o = m[1] | |
29 | 29 | let p = (n + o) | |
30 | 30 | if ((p == e)) | |
31 | 31 | then e | |
32 | 32 | else { | |
33 | 33 | let q = parseIntValue(k) | |
34 | 34 | let r = (q * 2) | |
35 | 35 | let s = fraction(n, o, f) | |
36 | 36 | let t = fraction(s, i, f) | |
37 | 37 | let u = fraction(toBigInt(r), p, f) | |
38 | 38 | let v = toBigInt((r - 1)) | |
39 | 39 | func w (x) = { | |
40 | 40 | let y = fraction(x, x, f) | |
41 | 41 | let z = fraction(y, x, f) | |
42 | 42 | let A = fraction(z, f, t) | |
43 | 43 | fraction((u + fraction(A, g, f)), x, (fraction(v, x, f) + fraction(h, A, f))) | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | func B (C,D) = if (C._2) | |
47 | 47 | then C | |
48 | 48 | else { | |
49 | 49 | let x = C._1 | |
50 | 50 | let E = w(x) | |
51 | 51 | let F = (E - value(x)) | |
52 | 52 | let G = if ((e > F)) | |
53 | 53 | then -(F) | |
54 | 54 | else F | |
55 | 55 | if ((f >= G)) | |
56 | 56 | then $Tuple2(E, true) | |
57 | 57 | else $Tuple2(E, false) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | let H = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
61 | 61 | let I = { | |
62 | 62 | let J = H | |
63 | 63 | let K = size(J) | |
64 | 64 | let L = $Tuple2(p, false) | |
65 | 65 | func M (N,O) = if ((O >= K)) | |
66 | 66 | then N | |
67 | 67 | else B(N, J[O]) | |
68 | 68 | ||
69 | 69 | func P (N,O) = if ((O >= K)) | |
70 | 70 | then N | |
71 | 71 | else throw("List size exceeds 18") | |
72 | 72 | ||
73 | 73 | P(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(L, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
74 | 74 | } | |
75 | 75 | let x = I._1 | |
76 | 76 | let Q = I._2 | |
77 | 77 | if (Q) | |
78 | 78 | then x | |
79 | 79 | else throw(("D calculation error, D = " + toString(x))) | |
80 | 80 | } | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | @Callable(D) | |
85 | 85 | func calc (n,o) = { | |
86 | 86 | let R = l([toBigInt(n), toBigInt(o)]) | |
87 | 87 | let S = 100000000 | |
88 | 88 | let T = 1111 | |
89 | - | [IntegerEntry("D", toInt(R))] | |
89 | + | [IntegerEntry("D", toInt(R)), DeleteEntry("ann_1"), DeleteEntry("ann_s")] | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Verifier(U) | |
94 | 94 | func V () = true | |
95 | 95 |
github/deemru/w8io/169f3d6 30.30 ms ◑