tx · DN4iW24vYvaAvA2g1Dzy9qo3E9D34Zir9FZFm3HNWDR9 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN: -0.01000000 Waves 2021.12.04 16:24 [1819583] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves
{ "type": 13, "id": "DN4iW24vYvaAvA2g1Dzy9qo3E9D34Zir9FZFm3HNWDR9", "fee": 1000000, "feeAssetId": null, "timestamp": 1638624291719, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "28vHSdR36trESzB1FxbPr4DumCLbLYcMNK4khm5imExrTtgR2MgUN8RRt469HyoEsRdViHfdfr4oGEqAGFSiRzca" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXBpeHh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAGbnVtYmVyCQABkAAAAAEFAAAABXBpeHh5BAAAAAdyZWNvcmRzBQAAAANuaWwKAQAAAAd2YWxpZHh5AAAAAQAAAAF4BAAAAAckbWF0Y2gwCQAEtgAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAMDCQAAZgAAAAIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABeAD//////////wkAAG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AAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAAAwAAAAAAAAAAAwUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAAACQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABm1hc3RlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAADBQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQAAAAAufbzQQ==", "height": 1819583, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GN8fXwkRt4e1c7KNwFo8LwtSNYmyorwwLCmDjrZCiUAp Next: ALAycoLWS3NhghgFPsG7b6iHjuDcuEQni6TPmLiZUEpV Diff:
Old | New | Differences | |
---|---|---|---|
33 | 33 | then ["--", "--", "--", "--"] | |
34 | 34 | else if ((validxy(x) == false)) | |
35 | 35 | then ["--", "--", "--", "--"] | |
36 | - | else ["ok", "--", "--", " | |
36 | + | else ["ok", "--", "--", "100"] | |
37 | 37 | ||
38 | 38 | let payment = 0 | |
39 | 39 | let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let master = Address(base58'3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx') | |
5 | 5 | ||
6 | 6 | let separ = "|||||" | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func paint (idata) = { | |
10 | 10 | let callerAdress = toBase58String(i.caller.bytes) | |
11 | 11 | let pixxy = split(idata, separ) | |
12 | 12 | let number = size(pixxy) | |
13 | 13 | let records = nil | |
14 | 14 | func validxy (x) = match parseInt(pixxy[x]) { | |
15 | 15 | case a: Int => | |
16 | 16 | if (if ((parseIntValue(pixxy[x]) > -1)) | |
17 | 17 | then (1000 > parseIntValue(pixxy[x])) | |
18 | 18 | else false) | |
19 | 19 | then parseInt(pixxy[x]) | |
20 | 20 | else false | |
21 | 21 | case _ => | |
22 | 22 | false | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | func getrecord (x) = match getString(pixxy[x]) { | |
26 | 26 | case a: String => | |
27 | 27 | a | |
28 | 28 | case _ => | |
29 | 29 | false | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | func makerecord (x) = if ((x > (number - 1))) | |
33 | 33 | then ["--", "--", "--", "--"] | |
34 | 34 | else if ((validxy(x) == false)) | |
35 | 35 | then ["--", "--", "--", "--"] | |
36 | - | else ["ok", "--", "--", " | |
36 | + | else ["ok", "--", "--", "100"] | |
37 | 37 | ||
38 | 38 | let payment = 0 | |
39 | 39 | let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)] | |
40 | 40 | $Tuple2([StringEntry(all[0][0], all[0][1]), ScriptTransfer(master, parseIntValue(all[0][3]), unit), StringEntry(all[1][0], all[1][1]), ScriptTransfer(master, parseIntValue(all[1][3]), unit), StringEntry(all[2][0], all[2][1]), ScriptTransfer(master, parseIntValue(all[2][3]), unit), StringEntry(all[3][0], all[3][1]), ScriptTransfer(master, parseIntValue(all[3][3]), unit), StringEntry(all[4][0], all[4][1]), ScriptTransfer(master, parseIntValue(all[4][3]), unit)], unit) | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 |
github/deemru/w8io/026f985 22.03 ms ◑