tx · 3f2kedKPZDfzSzfFLZdD5XBimCscPFNvJowrgxDrhN4N 3Mr7indrhcaJEXbxadkbp5GL9VdWNHkbvo5: -0.01000000 Waves 2021.11.03 14:04 [1774723] smart account 3Mr7indrhcaJEXbxadkbp5GL9VdWNHkbvo5 > SELF 0.00000000 Waves
{ "type": 13, "id": "3f2kedKPZDfzSzfFLZdD5XBimCscPFNvJowrgxDrhN4N", "fee": 1000000, "feeAssetId": null, "timestamp": 1635937515660, "version": 2, "chainId": 84, "sender": "3Mr7indrhcaJEXbxadkbp5GL9VdWNHkbvo5", "senderPublicKey": "Ewbhqv7zuHvqJ2SuXUN7iKp1iJ3dmCm7YUsrDBTV5GHn", "proofs": [ "tTce3hxGVJ7Hw4Q4nL5GqMFUnnfSNrNHrEvtYLsMoHnniTyJ3jGkuFP6EnEEFSvwZXHASmmxrtxSQR5xR6DGecq" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEYAAAAAQEAAAANY3JlYXRlRW50cmllcwAAAAIAAAAEdGVzdAAAAARuZXh0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABG5leHQFAAAABG5leHQFAAAABHRlc3QAAAABAAAAAWkBAAAAC3N0b3JlRGF0YTEwAAAAAQAAAAdlbnRyaWVzBAAAAAFlCgAAAAACJGwFAAAAB2VudHJpZXMKAAAAAAIkcwkAAZAAAAABBQAAAAIkbAoAAAAABSRhY2MwBQAAAANuaWwKAQAAAAExAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkBAAAADWNyZWF0ZUVudHJpZXMAAAACBQAAAAIkYQkAAZEAAAACBQAAAAIkbAUAAAACJGkKAQAAAAEyAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABRMaXN0IHNpemUgZXhjZWVkcyAxMAkBAAAAATIAAAACCQEAAAABMQAAAAIJAQAAAAExAAAAAgkBAAAAATEAAAACCQEAAAABMQAAAAIJAQAAAAExAAAAAgkBAAAAATEAAAACCQEAAAABMQAAAAIJAQAAAAExAAAAAgkBAAAAATEAAAACCQEAAAABMQAAAAIFAAAABSRhY2MwAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAACAAAAAAAAAAADAAAAAAAAAAAEAAAAAAAAAAAFAAAAAAAAAAAGAAAAAAAAAAAHAAAAAAAAAAAIAAAAAAAAAAAJAAAAAAAAAAAKCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABHRlc3QJAAGRAAAAAgUAAAABZQAAAAAAAAAAAAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBgaWvzo8", "height": 1774723, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BDntVvRnup7yfrsQcQoeYR81sWEnAceSxErtYZzsn7Yf Next: G2CU7SiY9hGZrW6mDmTp1K11W4bh5NUoqM2JSu3poPKU Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func createEntries (test,next) = StringEntry(next, next) :: test | |
4 | 5 | ||
5 | 6 | ||
6 | 7 | @Callable(i) | |
7 | - | func storeData (keyStr,valueStr) = [ScriptTransfer(addressFromStringValue(toBase58String(i.caller.bytes)), (i.fee + 500000), unit), StringEntry(keyStr, valueStr)] | |
8 | + | func storeData10 (entries) = { | |
9 | + | let e = { | |
10 | + | let $l = entries | |
11 | + | let $s = size($l) | |
12 | + | let $acc0 = nil | |
13 | + | func 1 ($a,$i) = if (($i >= $s)) | |
14 | + | then $a | |
15 | + | else createEntries($a, $l[$i]) | |
16 | + | ||
17 | + | func 2 ($a,$i) = if (($i >= $s)) | |
18 | + | then $a | |
19 | + | else throw("List size exceeds 10") | |
20 | + | ||
21 | + | 2(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
22 | + | } | |
23 | + | [StringEntry("test", e[0])] | |
24 | + | } | |
8 | 25 | ||
9 | 26 | ||
10 | 27 | @Verifier(tx) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func createEntries (test,next) = StringEntry(next, next) :: test | |
4 | 5 | ||
5 | 6 | ||
6 | 7 | @Callable(i) | |
7 | - | func storeData (keyStr,valueStr) = [ScriptTransfer(addressFromStringValue(toBase58String(i.caller.bytes)), (i.fee + 500000), unit), StringEntry(keyStr, valueStr)] | |
8 | + | func storeData10 (entries) = { | |
9 | + | let e = { | |
10 | + | let $l = entries | |
11 | + | let $s = size($l) | |
12 | + | let $acc0 = nil | |
13 | + | func 1 ($a,$i) = if (($i >= $s)) | |
14 | + | then $a | |
15 | + | else createEntries($a, $l[$i]) | |
16 | + | ||
17 | + | func 2 ($a,$i) = if (($i >= $s)) | |
18 | + | then $a | |
19 | + | else throw("List size exceeds 10") | |
20 | + | ||
21 | + | 2(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
22 | + | } | |
23 | + | [StringEntry("test", e[0])] | |
24 | + | } | |
8 | 25 | ||
9 | 26 | ||
10 | 27 | @Verifier(tx) | |
11 | 28 | func verify () = match tx { | |
12 | 29 | case _: DataTransaction => | |
13 | 30 | true | |
14 | 31 | case _: SetScriptTransaction => | |
15 | 32 | true | |
16 | 33 | case _ => | |
17 | 34 | true | |
18 | 35 | } | |
19 | 36 |
github/deemru/w8io/169f3d6 23.31 ms ◑