tx · Hrew37qFfXtNhzjzzf842hpmxsDm7F1EZmZjjqoXpx5K 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2: -0.00300000 Waves 2023.04.25 22:56 [2550518] smart account 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2 > SELF 0.00000000 Waves
{ "type": 13, "id": "Hrew37qFfXtNhzjzzf842hpmxsDm7F1EZmZjjqoXpx5K", "fee": 300000, "feeAssetId": null, "timestamp": 1682452611893, "version": 2, "chainId": 84, "sender": "3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2", "senderPublicKey": "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY", "proofs": [ "2oQCMjK9fxoujEU3Mc6w9AadByZVH6pyG3VjYSbEf3DAgmPAZJtjF1Zj22oPMGbXZq89BGiuDQ1gSqnY4BRxwWjB" ], "script": "base64:BgIMCAISAwoBCBIDCgEIBwEPZ2V0QXNzZXRCYWxhbmNlAgdhZGRyZXNzB2Fzc2V0SWQEAWEJAPAHAgUHYWRkcmVzcwUHYXNzZXRJZAUBYQEPZ2V0V2F2ZXNCYWxhbmNlAQdhZGRyZXNzBAF3CAkA7wcBBQdhZGRyZXNzCWF2YWlsYWJsZQUBdwEKZ2V0QmFsYW5jZQIGcmVzdWx0B2Fzc2V0SWQEB2FkZHJlc3MJAK8CAgUGcmVzdWx0ACMEBGFkZHIJAQdBZGRyZXNzAQkA2QQBBQdhZGRyZXNzBAdiYWxhbmNlAwkAAAIFB2Fzc2V0SWQCBVdBVkVTCQEPZ2V0V2F2ZXNCYWxhbmNlAQUEYWRkcgQDYUlkCQDZBAEFB2Fzc2V0SWQJAQ9nZXRBc3NldEJhbGFuY2UCBQRhZGRyBQNhSWQEA2xlbgkAsQIBBQZyZXN1bHQJAKwCAgkArAICCQCsAgIJAKwCAgkArAICBQdhZGRyZXNzCQCwAgIFBnJlc3VsdAAjBQdhc3NldElkAgE6CQCkAwEFB2JhbGFuY2UCASwBB2RvUG9vb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kZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQBAZyZXN1bHQJALoJAgUGcmVzQXJyAgF8BQNuaWwBaQEEdGVzdAEBcwkAAgEFAXMAhmkKRw==", "height": 2550518, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 74iaT2CfNrC9JpB5qTRMCcWM4pmTLm6qQJT94bKo1tS7 Next: DTYiMS8rvjJHtiFkSDPWSo1ZPhFzd1H8UUbVAyBm2wRu Diff:
Old | New | Differences | |
---|---|---|---|
92 | 92 | D(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(z, 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), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80) | |
93 | 93 | } | |
94 | 94 | let h = makeString_2C(N, "|") | |
95 | - | | |
95 | + | nil | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = { | |
5 | 5 | let d = assetBalance(b, c) | |
6 | 6 | d | |
7 | 7 | } | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func e (b) = { | |
11 | 11 | let f = wavesBalance(b).available | |
12 | 12 | f | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (h,c) = { | |
17 | 17 | let b = take(h, 35) | |
18 | 18 | let i = Address(fromBase58String(b)) | |
19 | 19 | let j = if ((c == "WAVES")) | |
20 | 20 | then e(i) | |
21 | 21 | else { | |
22 | 22 | let k = fromBase58String(c) | |
23 | 23 | a(i, k) | |
24 | 24 | } | |
25 | 25 | let l = size(h) | |
26 | 26 | (((((b + drop(h, 35)) + c) + ":") + toString(j)) + ",") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func m (n) = { | |
31 | 31 | let o = split_4C(n, ";") | |
32 | 32 | let p = $Tuple3(o[0], o[1], o[2]) | |
33 | 33 | let b = p._1 | |
34 | 34 | let q = p._2 | |
35 | 35 | let r = p._3 | |
36 | 36 | 0 | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func s (h,t) = t :: h | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func u (v,b) = { | |
44 | 44 | let r = split_4C(v, ",") | |
45 | 45 | let w = { | |
46 | 46 | let x = r | |
47 | 47 | let y = size(x) | |
48 | 48 | let z = b | |
49 | 49 | func A (B,C) = if ((C >= y)) | |
50 | 50 | then B | |
51 | 51 | else g(B, x[C]) | |
52 | 52 | ||
53 | 53 | func D (B,C) = if ((C >= y)) | |
54 | 54 | then B | |
55 | 55 | else throw("List size exceeds 2") | |
56 | 56 | ||
57 | 57 | D(A(A(z, 0), 1), 2) | |
58 | 58 | } | |
59 | 59 | let E = drop(w, 35) | |
60 | 60 | let F = dropRight(E, 1) | |
61 | 61 | F | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (h,H) = { | |
66 | 66 | let o = split_4C(H, ";") | |
67 | 67 | let I = $Tuple3(o[0], o[1], o[2]) | |
68 | 68 | let b = I._1 | |
69 | 69 | let q = I._2 | |
70 | 70 | let v = I._3 | |
71 | 71 | let J = u(v, b) | |
72 | 72 | let K = ((b + "/") + J) | |
73 | 73 | K :: h | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | @Callable(L) | |
78 | 78 | func getWX (H) = { | |
79 | 79 | let M = split_4C(H, "|") | |
80 | 80 | let N = { | |
81 | 81 | let x = M | |
82 | 82 | let y = size(x) | |
83 | 83 | let z = nil | |
84 | 84 | func A (B,C) = if ((C >= y)) | |
85 | 85 | then B | |
86 | 86 | else G(B, x[C]) | |
87 | 87 | ||
88 | 88 | func D (B,C) = if ((C >= y)) | |
89 | 89 | then B | |
90 | 90 | else throw("List size exceeds 80") | |
91 | 91 | ||
92 | 92 | D(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(z, 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), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80) | |
93 | 93 | } | |
94 | 94 | let h = makeString_2C(N, "|") | |
95 | - | | |
95 | + | nil | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | ||
100 | 100 | @Callable(L) | |
101 | 101 | func test (O) = throw(O) | |
102 | 102 | ||
103 | 103 |
github/deemru/w8io/026f985 45.89 ms ◑