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