tx · 4ZUTbhhX9W5kJ4SYUQNUAmX3Aan5fcdQPy2KA9Fciz3h 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37: -0.00500000 Waves 2022.07.01 22:50 [2121028] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves
{ "type": 13, "id": "4ZUTbhhX9W5kJ4SYUQNUAmX3Aan5fcdQPy2KA9Fciz3h", "fee": 500000, "feeAssetId": null, "timestamp": 1656705033769, "version": 2, "chainId": 84, "sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37", "senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV", "proofs": [ "5D7ePpNCSnEiJks1fjdS8K2Q2nHkWsVefUg2M14rmSdULeWHJyXGeDGfdNT1c8rQhEwBpboyLPxL2tJMjXTyWE55" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAMBAAAACGFzU3RyaW5nAAAAAQAAAAN2YWwEAAAAByRtYXRjaDAFAAAAA3ZhbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAZ2YWxTdHIFAAAAByRtYXRjaDAFAAAABnZhbFN0cgkAAAIAAAABAgAAABhmYWlsIHRvIGNhc3QgaW50byBTdHJpbmcBAAAAC25lc3RlZENhbGxzAAAAAQAAAAF4CgEAAAAEY2FsbAAAAAIAAAABYQAAAAFlCQABLAAAAAIJAAEsAAAAAgUAAAABYQIAAAABCgkBAAAACGFzU3RyaW5nAAAAAQkAA/wAAAAECQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQgFAAAAAWUAAAACXzEIBQAAAAFlAAAAAl8yCAUAAAABZQAAAAJfMwUAAAADbmlsCgAAAAACJGwFAAAAAXgKAAAAAAIkcwkAAZAAAAABBQAAAAIkbAoAAAAABSRhY2MwAgAAAAAKAQAAAAUkZjBfMQAAAAIAAAACJGEAAAACJGkDCQAAZwAAAAIFAAAAAiRpBQAAAAIkcwUAAAACJGEJAQAAAARjYWxsAAAAAgUAAAACJGEJAAGRAAAAAgUAAAACJGwFAAAAAiRpCgEAAAAFJGYwXzIAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQAAAgAAAAECAAAAFExpc3Qgc2l6ZSBleGNlZWRzIDEwCQEAAAAFJGYwXzIAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAAABgAAAAAAAAAABwAAAAAAAAAACAAAAAAAAAAACQAAAAAAAAAACgEAAAADZm9vAAAAAQAAAARhcmdzBAAAAAF0CQAFFQAAAAMCAAAAIzNNeGQ1bzdQd0g3NlprTjh6RzR4d0RMdWJFbmJrYWloS3ppAgAAACZ1bnN0YWtlQ29taXNzaW9uQW1vdW50QnlIZWlnaHRSRUFET05MWQUAAAAEYXJncwkBAAAAC25lc3RlZENhbGxzAAAAAQkABEwAAAACBQAAAAF0BQAAAANuaWwAAAAAAAAAAJhvNrI=", "height": 2121028, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 99mEYjqncPmWsyopY5UuStUTUV8QbBAYsZNfLKqr8Y6N Next: DmUyRo7Bkf2CDcDAfCbyMjvfbbJ9Y7PuYMih7fHxcP2z Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b) = "hello" | |
4 | + | func a (b) = { | |
5 | + | let c = b | |
6 | + | if ($isInstanceOf(c, "String")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else throw("fail to cast into String") | |
12 | + | } | |
5 | 13 | ||
6 | 14 | ||
7 | - | func c (d) = { | |
8 | - | let e = $Tuple3("3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "unstakeComissionAmountByHeightREADONLY", d) | |
9 | - | a([e]) | |
15 | + | func e (f) = { | |
16 | + | func g (h,i) = ((h + " | |
17 | + | ") + a(invoke(Address(fromBase58String(i._1)), i._2, i._3, nil))) | |
18 | + | ||
19 | + | let j = f | |
20 | + | let k = size(j) | |
21 | + | let l = "" | |
22 | + | func m (n,o) = if ((o >= k)) | |
23 | + | then n | |
24 | + | else g(n, j[o]) | |
25 | + | ||
26 | + | func p (n,o) = if ((o >= k)) | |
27 | + | then n | |
28 | + | else throw("List size exceeds 10") | |
29 | + | ||
30 | + | p(m(m(m(m(m(m(m(m(m(m(l, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | func q (r) = { | |
35 | + | let s = $Tuple3("3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "unstakeComissionAmountByHeightREADONLY", r) | |
36 | + | e([s]) | |
10 | 37 | } | |
11 | 38 | ||
12 | 39 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b) = "hello" | |
4 | + | func a (b) = { | |
5 | + | let c = b | |
6 | + | if ($isInstanceOf(c, "String")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else throw("fail to cast into String") | |
12 | + | } | |
5 | 13 | ||
6 | 14 | ||
7 | - | func c (d) = { | |
8 | - | let e = $Tuple3("3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "unstakeComissionAmountByHeightREADONLY", d) | |
9 | - | a([e]) | |
15 | + | func e (f) = { | |
16 | + | func g (h,i) = ((h + " | |
17 | + | ") + a(invoke(Address(fromBase58String(i._1)), i._2, i._3, nil))) | |
18 | + | ||
19 | + | let j = f | |
20 | + | let k = size(j) | |
21 | + | let l = "" | |
22 | + | func m (n,o) = if ((o >= k)) | |
23 | + | then n | |
24 | + | else g(n, j[o]) | |
25 | + | ||
26 | + | func p (n,o) = if ((o >= k)) | |
27 | + | then n | |
28 | + | else throw("List size exceeds 10") | |
29 | + | ||
30 | + | p(m(m(m(m(m(m(m(m(m(m(l, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | func q (r) = { | |
35 | + | let s = $Tuple3("3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "unstakeComissionAmountByHeightREADONLY", r) | |
36 | + | e([s]) | |
10 | 37 | } | |
11 | 38 | ||
12 | 39 | ||
13 | 40 |
github/deemru/w8io/169f3d6 27.59 ms ◑