tx · DmUyRo7Bkf2CDcDAfCbyMjvfbbJ9Y7PuYMih7fHxcP2z 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37: -0.00500000 Waves 2022.07.01 22:55 [2121035] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves
{ "type": 13, "id": "DmUyRo7Bkf2CDcDAfCbyMjvfbbJ9Y7PuYMih7fHxcP2z", "fee": 500000, "feeAssetId": null, "timestamp": 1656705325512, "version": 2, "chainId": 84, "sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37", "senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV", "proofs": [ "3m1gXa2ahSYFgoXQL1vrtXfKQcExXEFWRCYJ3RbLpR5yx2wo5sWHSX3GpL6rg2Cr5ruNrDhUyMEJSz7dEyYoifY5" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAMBAAAACGFzU3RyaW5nAAAAAQAAAAN2YWwEAAAAByRtYXRjaDAFAAAAA3ZhbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAZ2YWxTdHIFAAAAByRtYXRjaDAFAAAABnZhbFN0cgkAAAIAAAABAgAAABhmYWlsIHRvIGNhc3QgaW50byBTdHJpbmcBAAAAC25lc3RlZENhbGxzAAAAAQAAAAF4CgEAAAAEY2FsbAAAAAIAAAABYQAAAAFlCQABLAAAAAIJAAEsAAAAAgUAAAABYQIAAAABCgkBAAAACGFzU3RyaW5nAAAAAQkAA/wAAAAECQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQgFAAAAAWUAAAACXzEIBQAAAAFlAAAAAl8yCAUAAAABZQAAAAJfMwUAAAADbmlsCgAAAAACJGwFAAAAAXgKAAAAAAIkcwkAAZAAAAABBQAAAAIkbAoAAAAABSRhY2MwAgAAAAAKAQAAAAUkZjBfMQAAAAIAAAACJGEAAAACJGkDCQAAZwAAAAIFAAAAAiRpBQAAAAIkcwUAAAACJGEJAQAAAARjYWxsAAAAAgUAAAACJGEJAAGRAAAAAgUAAAACJGwFAAAAAiRpCgEAAAAFJGYwXzIAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQAAAgAAAAECAAAAFExpc3Qgc2l6ZSBleGNlZWRzIDEwCQEAAAAFJGYwXzIAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAAABgAAAAAAAAAABwAAAAAAAAAACAAAAAAAAAAACQAAAAAAAAAACgEAAAADZm9vAAAAAwAAAARkQXBwAAAAAmZuAAAABGFyZ3MJAQAAAAtuZXN0ZWRDYWxscwAAAAEJAARMAAAAAgkABRUAAAADBQAAAARkQXBwBQAAAAJmbgUAAAAEYXJncwUAAAADbmlsAAAAAAAAAAA7s6QL", "height": 2121035, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ZUTbhhX9W5kJ4SYUQNUAmX3Aan5fcdQPy2KA9Fciz3h Next: 87QEMjcPJej1RFUzqZmewNC2FWkXBDHTNm4GE7cYrvfa Diff:
Old | New | Differences | |
---|---|---|---|
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | - | func foo (args) = { | |
32 | - | let t = $Tuple3("3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "unstakeComissionAmountByHeightREADONLY", args) | |
33 | - | nestedCalls([t]) | |
34 | - | } | |
31 | + | func foo (dApp,fn,args) = nestedCalls([$Tuple3(dApp, fn, args)]) | |
35 | 32 | ||
36 | 33 | ||
37 | 34 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func asString (val) = match val { | |
5 | 5 | case valStr: String => | |
6 | 6 | valStr | |
7 | 7 | case _ => | |
8 | 8 | throw("fail to cast into String") | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func nestedCalls (x) = { | |
13 | 13 | func call (a,e) = ((a + " | |
14 | 14 | ") + asString(invoke(Address(fromBase58String(e._1)), e._2, e._3, nil))) | |
15 | 15 | ||
16 | 16 | let $l = x | |
17 | 17 | let $s = size($l) | |
18 | 18 | let $acc0 = "" | |
19 | 19 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
20 | 20 | then $a | |
21 | 21 | else call($a, $l[$i]) | |
22 | 22 | ||
23 | 23 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
24 | 24 | then $a | |
25 | 25 | else throw("List size exceeds 10") | |
26 | 26 | ||
27 | 27 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | - | func foo (args) = { | |
32 | - | let t = $Tuple3("3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "unstakeComissionAmountByHeightREADONLY", args) | |
33 | - | nestedCalls([t]) | |
34 | - | } | |
31 | + | func foo (dApp,fn,args) = nestedCalls([$Tuple3(dApp, fn, args)]) | |
35 | 32 | ||
36 | 33 | ||
37 | 34 |
github/deemru/w8io/169f3d6 21.65 ms ◑