tx · 9gD7a8eqbwoSctGiZ8cFfzdJJf9BPjZTjUvpMaiTC356 3MovP6ZTz8LV7RrQQhDekfaXH9C4kPbRmCG: -0.01000000 Waves 2020.01.20 14:26 [862484] smart account 3MovP6ZTz8LV7RrQQhDekfaXH9C4kPbRmCG > SELF 0.00000000 Waves
{ "type": 13, "id": "9gD7a8eqbwoSctGiZ8cFfzdJJf9BPjZTjUvpMaiTC356", "fee": 1000000, "feeAssetId": null, "timestamp": 1579519646811, "version": 1, "sender": "3MovP6ZTz8LV7RrQQhDekfaXH9C4kPbRmCG", "senderPublicKey": "Ebi3vsX46YwBagQQ39TMXVCMNLZhLukgD73QvyEYuz7G", "proofs": [ "3qJ2ajC6gAVcFb9xyzFPSzKrw4yybM5DLMwvNxgzbKAKPWh9LJJ6k2yLmsfvzZTiAYJT8BcaWNb1CzLbb1NenPTL" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAEBAAAAFmRyb3BFbGVtZW50SW5Kc29uQXJyYXkAAAACAAAABWFycmF5AAAAB2VsZW1lbnQEAAAADHNwbGl0ZWRBcnJheQkABLUAAAACBQAAAAVhcnJheQUAAAAHZWxlbWVudAMJAAAAAAAAAgkAAS8AAAACCQABkQAAAAIFAAAADHNwbGl0ZWRBcnJheQAAAAAAAAAAAQAAAAAAAAAAAQIAAAABLAkAASwAAAACCQABkQAAAAIFAAAADHNwbGl0ZWRBcnJheQAAAAAAAAAAAAkAATAAAAACCQABkQAAAAIFAAAADHNwbGl0ZWRBcnJheQAAAAAAAAAAAQAAAAAAAAAAAQkAASwAAAACCQEAAAAJZHJvcFJpZ2h0AAAAAgkAAZEAAAACBQAAAAxzcGxpdGVkQXJyYXkAAAAAAAAAAAAAAAAAAAAAAAEJAAGRAAAAAgUAAAAMc3BsaXRlZEFycmF5AAAAAAAAAAABAAAAAQAAAAJ0eAEAAAASZHJvcEVsZW1lbnRJbkFycmF5AAAAAgAAAAVhcnJheQAAAAdlbGVtZW50BAAAAAxzcGxpdGVkQXJyYXkJAAS1AAAAAgUAAAAFYXJyYXkFAAAAB2VsZW1lbnQEAAAACWFycmF5TGVmdAkAAZEAAAACBQAAAAxzcGxpdGVkQXJyYXkAAAAAAAAAAAAEAAAACmFycmF5UmlnaHQJAAGRAAAAAgUAAAAMc3BsaXRlZEFycmF5AAAAAAAAAAABBAAAAAluZXh0SWRPcHQJAAQaAAAAAgUAAAAEdGhpcwIAAAAGTkVYVElEBAAAAAZuZXh0SWQDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAJbmV4dElkT3B0CQEAAAAHZXh0cmFjdAAAAAEFAAAACW5leHRJZE9wdAAAAAAAAAAAAQQAAAASYXJyYXlXaXRob3RFbGVtZW50CQEAAAAWZHJvcEVsZW1lbnRJbkpzb25BcnJheQAAAAIFAAAABWFycmF5BQAAAAdlbGVtZW50CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABpAAAAAEFAAAABm5leHRJZAUAAAASYXJyYXlXaXRob3RFbGVtZW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAGbmV4dElkAgAAAAxfZXhwbGFuYXRpb24JAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAVhcnJheQIAAAADIC0gBQAAAAdlbGVtZW50AgAAAAMgPSAFAAAAEmFycmF5V2l0aG90RWxlbWVudAIAAAASICB3aGVyZSBhcnJheUxlZnQ9BQAAAAlhcnJheUxlZnQCAAAAECBhbmQgYXJyYXlSaWdodD0FAAAACmFycmF5UmlnaHQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAABk5FWFRJRAkAAGQAAAACBQAAAAZuZXh0SWQAAAAAAAAAAAEFAAAAA25pbAAAAAC2Wr3b", "chainId": 84, "height": 862484, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func dropElementInJsonArray (array,element) = { | |
5 | + | let splitedArray = split(array, element) | |
6 | + | if ((take(splitedArray[1], 1) == ",")) | |
7 | + | then (splitedArray[0] + drop(splitedArray[1], 1)) | |
8 | + | else (dropRight(splitedArray[0], 1) + splitedArray[1]) | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | @Callable(tx) | |
13 | + | func dropElementInArray (array,element) = { | |
14 | + | let splitedArray = split(array, element) | |
15 | + | let arrayLeft = splitedArray[0] | |
16 | + | let arrayRight = splitedArray[1] | |
17 | + | let nextIdOpt = getInteger(this, "NEXTID") | |
18 | + | let nextId = if (isDefined(nextIdOpt)) | |
19 | + | then extract(nextIdOpt) | |
20 | + | else 1 | |
21 | + | let arrayWithotElement = dropElementInJsonArray(array, element) | |
22 | + | WriteSet([DataEntry(toString(nextId), arrayWithotElement), DataEntry((toString(nextId) + "_explanation"), ((((((((array + " - ") + element) + " = ") + arrayWithotElement) + " where arrayLeft=") + arrayLeft) + " and arrayRight=") + arrayRight)), DataEntry("NEXTID", (nextId + 1))]) | |
23 | + | } | |
24 | + | ||
25 | + |
github/deemru/w8io/169f3d6 22.35 ms ◑