tx · J2RWo1srm7D2hyF1LSjCqXmftMaHnS5HhRkPpM1e86Gf 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN: -0.01000000 Waves 2021.12.03 16:19 [1818145] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves
{ "type": 13, "id": "J2RWo1srm7D2hyF1LSjCqXmftMaHnS5HhRkPpM1e86Gf", "fee": 1000000, "feeAssetId": null, "timestamp": 1638537615473, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "5XKf3FkSi2aY1z7gSbGgJPtq36A7Vr2A7f4c6ikmAhYhuLhd8dqF5FnSDdwqxdKAmZFchUW18ZLgEcmkfzQeGsb2" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAFb3duZXICAAAAIzNNdVc0dDFqQ1hIdDhXUnNIVkxVYXIzMkVudkp4WmFRV0F4AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAAnh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAEbWVzcwIAAAAhc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3NzBAAAAANvdXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAZEAAAACBQAAAAJ4eQAAAAAAAAAAAAUAAAAEbWVzcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABkQAAAAIFAAAAAnh5AAAAAAAAAAABBQAAAARtZXNzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAGRAAAAAgUAAAACeHkAAAAAAAAAAAIFAAAABG1lc3MFAAAAA25pbAkABRQAAAACBQAAAANvdXQFAAAABHVuaXQAAAAALNmDXQ==", "height": 1818145, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3wKZBRkEzBQcUPVLC8KC8rHzr5iroC3aeXLtFyvr4bFE Next: 2P7HD4v86Bb9UwFb7Sxz5f5uHA8a94hCaubjuuFD8ics Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let b = "|||||" | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | - | func | |
9 | + | func paint (d) = { | |
10 | 10 | let e = toBase58String(c.caller.bytes) | |
11 | - | let f = makeString(["3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "url", toString(100)], b) | |
12 | - | if ((a == e)) | |
13 | - | then $Tuple2([StringEntry(d, f)], unit) | |
14 | - | else throw("Вы не можете to create") | |
15 | - | } | |
16 | - | ||
17 | - | ||
18 | - | ||
19 | - | @Callable(c) | |
20 | - | func change (g) = { | |
21 | - | let e = toBase58String(c.caller.bytes) | |
22 | - | let h = split(g, b) | |
23 | - | let f = makeString([e, h[1], h[2]], b) | |
24 | - | let i = if ((size(c.payments) == 1)) | |
25 | - | then c.payments[0] | |
26 | - | else throw("Attached payment is required") | |
27 | - | if (isDefined(i.assetId)) | |
28 | - | then throw("works with waves only") | |
29 | - | else if ((a == e)) | |
30 | - | then $Tuple2([StringEntry(h[0], f), ScriptTransfer(c.caller, 100000000, unit)], unit) | |
31 | - | else throw("Вы не можете to create") | |
11 | + | let f = split(d, b) | |
12 | + | let g = "sssssssssssssssssssssssssssssssss" | |
13 | + | let h = [StringEntry(f[0], g), StringEntry(f[1], g), StringEntry(f[2], g)] | |
14 | + | $Tuple2(h, unit) | |
32 | 15 | } | |
33 | 16 | ||
34 | 17 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx" | |
5 | 5 | ||
6 | 6 | let b = "|||||" | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | - | func | |
9 | + | func paint (d) = { | |
10 | 10 | let e = toBase58String(c.caller.bytes) | |
11 | - | let f = makeString(["3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "url", toString(100)], b) | |
12 | - | if ((a == e)) | |
13 | - | then $Tuple2([StringEntry(d, f)], unit) | |
14 | - | else throw("Вы не можете to create") | |
15 | - | } | |
16 | - | ||
17 | - | ||
18 | - | ||
19 | - | @Callable(c) | |
20 | - | func change (g) = { | |
21 | - | let e = toBase58String(c.caller.bytes) | |
22 | - | let h = split(g, b) | |
23 | - | let f = makeString([e, h[1], h[2]], b) | |
24 | - | let i = if ((size(c.payments) == 1)) | |
25 | - | then c.payments[0] | |
26 | - | else throw("Attached payment is required") | |
27 | - | if (isDefined(i.assetId)) | |
28 | - | then throw("works with waves only") | |
29 | - | else if ((a == e)) | |
30 | - | then $Tuple2([StringEntry(h[0], f), ScriptTransfer(c.caller, 100000000, unit)], unit) | |
31 | - | else throw("Вы не можете to create") | |
11 | + | let f = split(d, b) | |
12 | + | let g = "sssssssssssssssssssssssssssssssss" | |
13 | + | let h = [StringEntry(f[0], g), StringEntry(f[1], g), StringEntry(f[2], g)] | |
14 | + | $Tuple2(h, unit) | |
32 | 15 | } | |
33 | 16 | ||
34 | 17 |
github/deemru/w8io/026f985 27.22 ms ◑