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:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+func createEntries (test,next) = StringEntry(next, next) :: test
45
56
67 @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+ }
825
926
1027 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+func createEntries (test,next) = StringEntry(next, next) :: test
45
56
67 @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+ }
825
926
1027 @Verifier(tx)
1128 func verify () = match tx {
1229 case _: DataTransaction =>
1330 true
1431 case _: SetScriptTransaction =>
1532 true
1633 case _ =>
1734 true
1835 }
1936

github/deemru/w8io/169f3d6 
23.31 ms