tx · 5edSsmhZA6cWkeiSJrdHqRT8wuGBKzc2cBtRCyxehzim

3N6Xy426iByijotCbF9hQRu7KWbV76xb4n8:  -0.01000000 Waves

2022.11.20 23:32 [2325912] smart account 3N6Xy426iByijotCbF9hQRu7KWbV76xb4n8 > SELF 0.00000000 Waves

{ "type": 13, "id": "5edSsmhZA6cWkeiSJrdHqRT8wuGBKzc2cBtRCyxehzim", "fee": 1000000, "feeAssetId": null, "timestamp": 1668976322087, "version": 2, "chainId": 84, "sender": "3N6Xy426iByijotCbF9hQRu7KWbV76xb4n8", "senderPublicKey": "2krAhNZ3ApQZaHMnyhticm7R3mSvdnwDpvKrRji28vQS", "proofs": [ "51yGPUUQzsHVb82YdwgC1yu4q8QtF8tqpwQDCv3Xfm4qLAcM8aR9KFiZ2gtjPy33h2Gygu4bbpeyhRzoYEkeJtbM" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAgAAAAAIYWNjb3VudHMJAARMAAAAAgIAAAAjM043V2NrZ0hFSks2SlpWaFFBdXJIS2JKdmNYeEVxY3JZb3cJAARMAAAAAgIAAAAjM015OEx3TVlYWW01d1p5S2Y0cFh0blUxWnNRVVBmTDdIWTMFAAAAA25pbAEAAAAIZGVsZWdhdGUAAAACAAAABHByZXYAAAAHYWRkcmVzcwQAAAADaW52CQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAB2FkZHJlc3MCAAAAA2ZmZgUAAAADbmlsBQAAAANuaWwGAAAAAQAAAAFpAQAAAAltYWluX2Z1bmMAAAAABAAAAAZyZXN1bHQKAAAAAAIkbAUAAAAIYWNjb3VudHMKAAAAAAIkcwkAAZAAAAABBQAAAAIkbAoAAAAABSRhY2MwBgoBAAAABSRmMF8xAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkBAAAACGRlbGVnYXRlAAAAAgUAAAACJGEJAAGRAAAAAgUAAAACJGwFAAAAAiRpCgEAAAAFJGYwXzIAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQAAAgAAAAECAAAAE0xpc3Qgc2l6ZSBleGNlZWRzIDIJAQAAAAUkZjBfMgAAAAIJAQAAAAUkZjBfMQAAAAIJAQAAAAUkZjBfMQAAAAIFAAAABSRhY2MwAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAACBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZV6wd0=", "height": 2325912, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8fVdtAH7A6jvfRmfkafiZW1VRfVF8BM6dMRpR67C3XzY Next: 8KuxN7APrGsLKPB9rdrWQSzXoh3JeWGzpDfXNXaRZBym Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let accounts = ["3N7WckgHEJK6JZVhQAurHKbJvcXxEqcrYow", "3My8LwMYXYm5wZyKf4pXtnU1ZsQUPfL7HY3"]
5+
6+func delegate (prev,address) = {
7+ let inv = invoke(addressFromStringValue(address), "fff", nil, nil)
8+ true
9+ }
410
511
612 @Callable(i)
713 func main_func () = {
8- let inv = invoke(addressFromStringValue("3N7WckgHEJK6JZVhQAurHKbJvcXxEqcrYow"), "fff", nil, nil)
9- if ((inv == inv))
10- then [StringEntry("result", "success")]
11- else throw("Strict value is not equal to itself.")
14+ let result = {
15+ let $l = accounts
16+ let $s = size($l)
17+ let $acc0 = true
18+ func $f0_1 ($a,$i) = if (($i >= $s))
19+ then $a
20+ else delegate($a, $l[$i])
21+
22+ func $f0_2 ($a,$i) = if (($i >= $s))
23+ then $a
24+ else throw("List size exceeds 2")
25+
26+ $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
27+ }
28+ nil
1229 }
1330
1431
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let accounts = ["3N7WckgHEJK6JZVhQAurHKbJvcXxEqcrYow", "3My8LwMYXYm5wZyKf4pXtnU1ZsQUPfL7HY3"]
5+
6+func delegate (prev,address) = {
7+ let inv = invoke(addressFromStringValue(address), "fff", nil, nil)
8+ true
9+ }
410
511
612 @Callable(i)
713 func main_func () = {
8- let inv = invoke(addressFromStringValue("3N7WckgHEJK6JZVhQAurHKbJvcXxEqcrYow"), "fff", nil, nil)
9- if ((inv == inv))
10- then [StringEntry("result", "success")]
11- else throw("Strict value is not equal to itself.")
14+ let result = {
15+ let $l = accounts
16+ let $s = size($l)
17+ let $acc0 = true
18+ func $f0_1 ($a,$i) = if (($i >= $s))
19+ then $a
20+ else delegate($a, $l[$i])
21+
22+ func $f0_2 ($a,$i) = if (($i >= $s))
23+ then $a
24+ else throw("List size exceeds 2")
25+
26+ $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
27+ }
28+ nil
1229 }
1330
1431
1532 @Verifier(tx)
1633 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1734

github/deemru/w8io/026f985 
22.97 ms