tx · FWxPDDDqRkEURy9dQgywux4n7NXY3MVUZBn4MckZJcfe
3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN: -0.01000000 Waves
2021.12.03 19:12 [1818322] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves
{
"type": 13,
"id": "FWxPDDDqRkEURy9dQgywux4n7NXY3MVUZBn4MckZJcfe",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1638548009885,
"version": 2,
"chainId": 84,
"sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN",
"senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK",
"proofs": [
"49bUr2buPWnG29suC6V9dvhLaAvYfcB74kFafeRLMgNGRrxqSaCnSDkpKqTRk3aHt7auKVAorRcBt7MCE5ec2Dds"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAFc2VwYXICAAAABXx8fHx8AAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAABG1heGkAAAAAAAAAAAEEAAAABHBpeGkAAAAAAAAAAAAEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAABG1lc3MJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABm1hc3RlcgUAAAAFc2VwYXICAAAABzEwMDAwMDAFAAAABXNlcGFyAgAAAAEwBQAAAAVzZXBhcgIAAAADdXJsCgEAAAAJaXN2YWxpZHh5AAAAAQAAAAF4BAAAAAckbWF0Y2gwCQAEtgAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAkABLYAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4BwoBAAAACWdldHJlY29yZAAAAAEAAAABeAQAAAAHJG1hdGNoMAkABCIAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAwkAAAAAAAACCQEAAAAJaXN2YWxpZHh5AAAAAQAAAAAAAAAAAAcJAAACAAAAAQIAAAARbm90IGNvcnJlY3QgY29vcmQEAAAAB3h5Y29vcmQJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAAVwaXh4eQAAAAAAAAAAAAMDCQAAZgAAAAIFAAAAB3h5Y29vcmQA//////////8JAABmAAAAAgAAAAAAAAAD6AUAAAAHeHljb29yZAcDCQAAAAAAAAIJAQAAAAlnZXRyZWNvcmQAAAABAAAAAAAAAAAABwkAAAIAAAABAgAAAApub3QgZXhpc3RzCQAAAgAAAAECAAAABmV4aXN0cwkAAAIAAAABAgAAAAx1b3Qgb2YgcmFuZ2UAAAAAu1Kk8g==",
"height": 1818322,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7ncA1nTiVmLekgqZYsd913QS6Zdtw5JhvtwXEVv2AGDK
Next: CNnzQaBHNRiW3JUtG5zPncmtU8Hh7woDo7WoAubm6Tt7
Diff:
Old | New | | Differences |
---|
29 | 29 | | if ((isvalidxy(0) == false)) |
---|
30 | 30 | | then throw("not correct coord") |
---|
31 | 31 | | else { |
---|
32 | | - | let rec = getrecord(0) |
---|
33 | | - | if ((rec == false)) |
---|
34 | | - | then throw("not exists") |
---|
35 | | - | else throw("exists") |
---|
| 32 | + | let xycoord = parseIntValue(pixxy[0]) |
---|
| 33 | + | if (if ((xycoord > -1)) |
---|
| 34 | + | then (1000 > xycoord) |
---|
| 35 | + | else false) |
---|
| 36 | + | then if ((getrecord(0) == false)) |
---|
| 37 | + | then throw("not exists") |
---|
| 38 | + | else throw("exists") |
---|
| 39 | + | else throw("uot of range") |
---|
36 | 40 | | } |
---|
37 | 41 | | } |
---|
38 | 42 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let master = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx" |
---|
5 | 5 | | |
---|
6 | 6 | | let separ = "|||||" |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func paint (idata) = { |
---|
10 | 10 | | let maxi = 1 |
---|
11 | 11 | | let pixi = 0 |
---|
12 | 12 | | let callerAdress = toBase58String(i.caller.bytes) |
---|
13 | 13 | | let pixxy = split(idata, separ) |
---|
14 | 14 | | let mess = ((((((master + separ) + "1000000") + separ) + "0") + separ) + "url") |
---|
15 | 15 | | func isvalidxy (x) = match parseInt(pixxy[x]) { |
---|
16 | 16 | | case a: Int => |
---|
17 | 17 | | parseInt(pixxy[x]) |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | false |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | func getrecord (x) = match getString(pixxy[x]) { |
---|
23 | 23 | | case a: String => |
---|
24 | 24 | | a |
---|
25 | 25 | | case _ => |
---|
26 | 26 | | false |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | if ((isvalidxy(0) == false)) |
---|
30 | 30 | | then throw("not correct coord") |
---|
31 | 31 | | else { |
---|
32 | | - | let rec = getrecord(0) |
---|
33 | | - | if ((rec == false)) |
---|
34 | | - | then throw("not exists") |
---|
35 | | - | else throw("exists") |
---|
| 32 | + | let xycoord = parseIntValue(pixxy[0]) |
---|
| 33 | + | if (if ((xycoord > -1)) |
---|
| 34 | + | then (1000 > xycoord) |
---|
| 35 | + | else false) |
---|
| 36 | + | then if ((getrecord(0) == false)) |
---|
| 37 | + | then throw("not exists") |
---|
| 38 | + | else throw("exists") |
---|
| 39 | + | else throw("uot of range") |
---|
36 | 40 | | } |
---|
37 | 41 | | } |
---|
38 | 42 | | |
---|
39 | 43 | | |
---|