tx · 6xRwMSnWQRGhZs7AB5PEiBttajjzCxdU86UR8uLGcCqc
3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj: -0.05000000 Waves
2019.11.22 07:29 [775924] smart account 3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj > SELF 0.00000000 Waves
{
"type": 13,
"id": "6xRwMSnWQRGhZs7AB5PEiBttajjzCxdU86UR8uLGcCqc",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1574396923014,
"version": 1,
"sender": "3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj",
"senderPublicKey": "J6uUrhmBcnvdu5KYxCr6uY5XoFb6bK1CdjWR8CMBst8o",
"proofs": [
"4c2tgu9G9kcPvzjyMw4ePMGecvoBMP3UcSexSEfDDvHrn6UMzuEbMGaELdcBHnj8wQQv98m22p8JnKY6x1M7osc2"
],
"script": "base64:AAIDAAAAAAAAAAwIARIECgIICBIAEgAAAAACAAAAAAROT05FAgAAAARub25lAQAAAAVtZXJnZQAAAAIAAAABYQAAAAFiAwkAAAAAAAACBQAAAAFhBQAAAAROT05FBQAAAAFiCQABLAAAAAIJAAEsAAAAAgUAAAABYQIAAAABfAUAAAABYgAAAAMAAAABaQEAAAALZGVmU2NhbHBpbmcAAAACAAAABmdyaWRJRAAAAARvQXNrBAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ3JpZElEBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGZ3JpZElEAgAAAAVfb0FzawUAAAAEb0FzawUAAAADbmlsAAAAAWkBAAAADGxpc3RTY2FscGluZwAAAAAEAAAAD3N1cHBsaWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5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MjcxOAQAAAALJGFjYzU2OTI3MTgJAQAAAAVtZXJnZQAAAAIFAAAACyRhY2M0NjkyNzE4CQABkQAAAAIFAAAACyRsaXN0NjkyNzE4AAAAAAAAAAAEAwkAAAAAAAACBQAAAAskc2l6ZTY5MjcxOAAAAAAAAAAABQUAAAALJGFjYzU2OTI3MTgEAAAACyRhY2M2NjkyNzE4CQEAAAAFbWVyZ2UAAAACBQAAAAskYWNjNTY5MjcxOAkAAZEAAAACBQAAAAskbGlzdDY5MjcxOAAAAAAAAAAABQkAAAIAAAABAgAAABJMaXN0IHNpemUgZXhjZWVkIDUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADFRlc3RlXzFfTGlzdAUAAAABcwUAAAADbmlsAAAAAWkBAAAADXN0YXJ0U2NhbHBpbmcAAAAABAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAADYXJyCQEAAAAFdmFsdWUAAAABCQAEHQAAAAIFAAAABHRoaXMCAAAADFRlc3RlXzFfb0FzawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAhUZXN0ZV8xXwUAAAAPc3VwcGxpZXJBZGRyZXNzBQAAAANhcnIFAAAAA25pbAAAAAAnpc1t",
"chainId": 84,
"height": 775924,
"spentComplexity": 0
}
View: original | compacted
Prev: 7ieuXnzBKppYsUDmvjC2LDL3uV1MmyVLfXQbgzBiUqgQ
Next: 5Pmqu4pzHrPof44qanV42gjiacuoHDB7HgaHxkEyLiTu
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "none" |
---|
5 | 5 | | |
---|
6 | | - | func b (c,d) = ((c + "|") + d) |
---|
| 6 | + | func b (c,d) = if ((c == a)) |
---|
| 7 | + | then d |
---|
| 8 | + | else ((c + "|") + d) |
---|
7 | 9 | | |
---|
8 | 10 | | |
---|
9 | 11 | | @Callable(e) |
---|
|
23 | 25 | | let l = { |
---|
24 | 26 | | let m = k |
---|
25 | 27 | | let n = size(m) |
---|
26 | | - | let o = "" |
---|
| 28 | + | let o = a |
---|
27 | 29 | | if ((n == 0)) |
---|
28 | 30 | | then o |
---|
29 | 31 | | else { |
---|
|
48 | 50 | | then t |
---|
49 | 51 | | else { |
---|
50 | 52 | | let u = b(t, m[5]) |
---|
51 | | - | if ((n == 6)) |
---|
52 | | - | then u |
---|
53 | | - | else { |
---|
54 | | - | let v = b(u, m[6]) |
---|
55 | | - | if ((n == 7)) |
---|
56 | | - | then v |
---|
57 | | - | else { |
---|
58 | | - | let w = b(v, m[7]) |
---|
59 | | - | if ((n == 8)) |
---|
60 | | - | then w |
---|
61 | | - | else { |
---|
62 | | - | let x = b(w, m[8]) |
---|
63 | | - | if ((n == 9)) |
---|
64 | | - | then x |
---|
65 | | - | else { |
---|
66 | | - | let y = b(x, m[9]) |
---|
67 | | - | if ((n == 10)) |
---|
68 | | - | then y |
---|
69 | | - | else { |
---|
70 | | - | let z = b(y, m[10]) |
---|
71 | | - | throw("List size exceed 10") |
---|
72 | | - | } |
---|
73 | | - | } |
---|
74 | | - | } |
---|
75 | | - | } |
---|
76 | | - | } |
---|
| 53 | + | throw("List size exceed 5") |
---|
77 | 54 | | } |
---|
78 | 55 | | } |
---|
79 | 56 | | } |
---|
|
89 | 66 | | @Callable(e) |
---|
90 | 67 | | func startScalping () = { |
---|
91 | 68 | | let h = toBase58String(e.caller.bytes) |
---|
92 | | - | let A = value(getString(this, "Teste_1_oAsk")) |
---|
93 | | - | WriteSet([DataEntry(("Teste_1_" + h), A)]) |
---|
| 69 | + | let v = value(getString(this, "Teste_1_oAsk")) |
---|
| 70 | + | WriteSet([DataEntry(("Teste_1_" + h), v)]) |
---|
94 | 71 | | } |
---|
95 | 72 | | |
---|
96 | 73 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "none" |
---|
5 | 5 | | |
---|
6 | | - | func b (c,d) = ((c + "|") + d) |
---|
| 6 | + | func b (c,d) = if ((c == a)) |
---|
| 7 | + | then d |
---|
| 8 | + | else ((c + "|") + d) |
---|
7 | 9 | | |
---|
8 | 10 | | |
---|
9 | 11 | | @Callable(e) |
---|
10 | 12 | | func defScalping (f,g) = { |
---|
11 | 13 | | let h = toBase58String(e.caller.bytes) |
---|
12 | 14 | | WriteSet([DataEntry(f, h), DataEntry((f + "_oAsk"), g)]) |
---|
13 | 15 | | } |
---|
14 | 16 | | |
---|
15 | 17 | | |
---|
16 | 18 | | |
---|
17 | 19 | | @Callable(e) |
---|
18 | 20 | | func listScalping () = { |
---|
19 | 21 | | let h = toBase58String(e.caller.bytes) |
---|
20 | 22 | | let i = getStringValue(this, "Teste_1_oAsk") |
---|
21 | 23 | | let j = split(i, "|") |
---|
22 | 24 | | let k = "5" :: j |
---|
23 | 25 | | let l = { |
---|
24 | 26 | | let m = k |
---|
25 | 27 | | let n = size(m) |
---|
26 | | - | let o = "" |
---|
| 28 | + | let o = a |
---|
27 | 29 | | if ((n == 0)) |
---|
28 | 30 | | then o |
---|
29 | 31 | | else { |
---|
30 | 32 | | let p = b(o, m[0]) |
---|
31 | 33 | | if ((n == 1)) |
---|
32 | 34 | | then p |
---|
33 | 35 | | else { |
---|
34 | 36 | | let q = b(p, m[1]) |
---|
35 | 37 | | if ((n == 2)) |
---|
36 | 38 | | then q |
---|
37 | 39 | | else { |
---|
38 | 40 | | let r = b(q, m[2]) |
---|
39 | 41 | | if ((n == 3)) |
---|
40 | 42 | | then r |
---|
41 | 43 | | else { |
---|
42 | 44 | | let s = b(r, m[3]) |
---|
43 | 45 | | if ((n == 4)) |
---|
44 | 46 | | then s |
---|
45 | 47 | | else { |
---|
46 | 48 | | let t = b(s, m[4]) |
---|
47 | 49 | | if ((n == 5)) |
---|
48 | 50 | | then t |
---|
49 | 51 | | else { |
---|
50 | 52 | | let u = b(t, m[5]) |
---|
51 | | - | if ((n == 6)) |
---|
52 | | - | then u |
---|
53 | | - | else { |
---|
54 | | - | let v = b(u, m[6]) |
---|
55 | | - | if ((n == 7)) |
---|
56 | | - | then v |
---|
57 | | - | else { |
---|
58 | | - | let w = b(v, m[7]) |
---|
59 | | - | if ((n == 8)) |
---|
60 | | - | then w |
---|
61 | | - | else { |
---|
62 | | - | let x = b(w, m[8]) |
---|
63 | | - | if ((n == 9)) |
---|
64 | | - | then x |
---|
65 | | - | else { |
---|
66 | | - | let y = b(x, m[9]) |
---|
67 | | - | if ((n == 10)) |
---|
68 | | - | then y |
---|
69 | | - | else { |
---|
70 | | - | let z = b(y, m[10]) |
---|
71 | | - | throw("List size exceed 10") |
---|
72 | | - | } |
---|
73 | | - | } |
---|
74 | | - | } |
---|
75 | | - | } |
---|
76 | | - | } |
---|
| 53 | + | throw("List size exceed 5") |
---|
77 | 54 | | } |
---|
78 | 55 | | } |
---|
79 | 56 | | } |
---|
80 | 57 | | } |
---|
81 | 58 | | } |
---|
82 | 59 | | } |
---|
83 | 60 | | } |
---|
84 | 61 | | WriteSet([DataEntry("Teste_1_List", l)]) |
---|
85 | 62 | | } |
---|
86 | 63 | | |
---|
87 | 64 | | |
---|
88 | 65 | | |
---|
89 | 66 | | @Callable(e) |
---|
90 | 67 | | func startScalping () = { |
---|
91 | 68 | | let h = toBase58String(e.caller.bytes) |
---|
92 | | - | let A = value(getString(this, "Teste_1_oAsk")) |
---|
93 | | - | WriteSet([DataEntry(("Teste_1_" + h), A)]) |
---|
| 69 | + | let v = value(getString(this, "Teste_1_oAsk")) |
---|
| 70 | + | WriteSet([DataEntry(("Teste_1_" + h), v)]) |
---|
94 | 71 | | } |
---|
95 | 72 | | |
---|
96 | 73 | | |
---|