tx · 734ZcnUizajtqXcsdKUwVwDeSB7kY56qh9dNmJMW6yZD 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00100000 Waves 2022.06.29 17:39 [2117862] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{ "type": 13, "id": "734ZcnUizajtqXcsdKUwVwDeSB7kY56qh9dNmJMW6yZD", "fee": 100000, "feeAssetId": null, "timestamp": 1656513598619, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "5UnrxMCBcfFohjymHAmsBR285wAhGYjDXVxTZvLK6Ne93rMr3sszrJbCX9odPSJZXZ2dLJ5BeApZFbLu6s6oBSNx" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMBAQEAAAACAAAAAAlzZXBhcmF0b3ICAAAAAS8BAAAADmdlbmVyYXRlU3RydWN0AAAAAwAAAAFhAAAAAWIAAAABYwQAAAADYXJyCQAETAAAAAIJAAGkAAAAAQUAAAABYQkABEwAAAACCQABpAAAAAEFAAAAAWIJAARMAAAAAgkAAaQAAAABBQAAAAFjBQAAAANuaWwJAAS5AAAAAgUAAAADYXJyBQAAAAlzZXBhcmF0b3IAAAABAAAAAWkBAAAAA3F3ZQAAAAMAAAABYQAAAAFiAAAAAWMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAABMQkBAAAADmdlbmVyYXRlU3RydWN0AAAAAwUAAAABYQUAAAABYgUAAAABYwUAAAADbmlsAAAAAIeCgYE=", "height": 2117862, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 74c8uucDboTmsS9E2MosCooGPqdmebGhX3ybLvcM5AQG Next: FfiDvLFSkBzdniT4NYuZB1vXwSfhYTRo8n8hyWT68oMk Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let separator = "/" | |
5 | + | ||
6 | + | func generateStruct (a,b,c) = { | |
7 | + | let arr = [toString(a), toString(b), toString(c)] | |
8 | + | makeString(arr, separator) | |
9 | + | } | |
4 | 10 | ||
5 | 11 | ||
6 | 12 | @Callable(i) | |
7 | - | func convertToBytes (first,second,str) = { | |
8 | - | let firstBytes = toBytes(first) | |
9 | - | let secondBytes = toBytes(second) | |
10 | - | let strBytes = toBytes(str) | |
11 | - | let res = ((firstBytes + secondBytes) + strBytes) | |
12 | - | [BinaryEntry("res", res)] | |
13 | - | } | |
14 | - | ||
15 | - | ||
16 | - | ||
17 | - | @Callable(i) | |
18 | - | func tryToParse () = { | |
19 | - | let bytes = getBinaryValue(this, "res") | |
20 | - | let firstInteger = take(bytes, 8) | |
21 | - | let secondInteger = take(drop(bytes, 8), 8) | |
22 | - | let stringTail = drop(bytes, 16) | |
23 | - | [IntegerEntry("firstInteger", toInt(firstInteger)), IntegerEntry("secondInteger", toInt(secondInteger)), StringEntry("stringTail", toUtf8String(stringTail))] | |
24 | - | } | |
13 | + | func qwe (a,b,c) = [StringEntry("1", generateStruct(a, b, c))] | |
25 | 14 | ||
26 | 15 |
github/deemru/w8io/169f3d6 26.11 ms ◑