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 NONE = "none" |
---|
5 | 5 | | |
---|
6 | | - | func merge (a,b) = ((a + "|") + b) |
---|
| 6 | + | func merge (a,b) = if ((a == NONE)) |
---|
| 7 | + | then b |
---|
| 8 | + | else ((a + "|") + b) |
---|
7 | 9 | | |
---|
8 | 10 | | |
---|
9 | 11 | | @Callable(i) |
---|
|
21 | 23 | | let spl = split(oAskList, "|") |
---|
22 | 24 | | let newspl = "5" :: spl |
---|
23 | 25 | | let s = { |
---|
24 | | - | let $list657682 = newspl |
---|
25 | | - | let $size657682 = size($list657682) |
---|
26 | | - | let $acc0657682 = "" |
---|
27 | | - | if (($size657682 == 0)) |
---|
28 | | - | then $acc0657682 |
---|
| 26 | + | let $list692718 = newspl |
---|
| 27 | + | let $size692718 = size($list692718) |
---|
| 28 | + | let $acc0692718 = NONE |
---|
| 29 | + | if (($size692718 == 0)) |
---|
| 30 | + | then $acc0692718 |
---|
29 | 31 | | else { |
---|
30 | | - | let $acc1657682 = merge($acc0657682, $list657682[0]) |
---|
31 | | - | if (($size657682 == 1)) |
---|
32 | | - | then $acc1657682 |
---|
| 32 | + | let $acc1692718 = merge($acc0692718, $list692718[0]) |
---|
| 33 | + | if (($size692718 == 1)) |
---|
| 34 | + | then $acc1692718 |
---|
33 | 35 | | else { |
---|
34 | | - | let $acc2657682 = merge($acc1657682, $list657682[1]) |
---|
35 | | - | if (($size657682 == 2)) |
---|
36 | | - | then $acc2657682 |
---|
| 36 | + | let $acc2692718 = merge($acc1692718, $list692718[1]) |
---|
| 37 | + | if (($size692718 == 2)) |
---|
| 38 | + | then $acc2692718 |
---|
37 | 39 | | else { |
---|
38 | | - | let $acc3657682 = merge($acc2657682, $list657682[2]) |
---|
39 | | - | if (($size657682 == 3)) |
---|
40 | | - | then $acc3657682 |
---|
| 40 | + | let $acc3692718 = merge($acc2692718, $list692718[2]) |
---|
| 41 | + | if (($size692718 == 3)) |
---|
| 42 | + | then $acc3692718 |
---|
41 | 43 | | else { |
---|
42 | | - | let $acc4657682 = merge($acc3657682, $list657682[3]) |
---|
43 | | - | if (($size657682 == 4)) |
---|
44 | | - | then $acc4657682 |
---|
| 44 | + | let $acc4692718 = merge($acc3692718, $list692718[3]) |
---|
| 45 | + | if (($size692718 == 4)) |
---|
| 46 | + | then $acc4692718 |
---|
45 | 47 | | else { |
---|
46 | | - | let $acc5657682 = merge($acc4657682, $list657682[4]) |
---|
47 | | - | if (($size657682 == 5)) |
---|
48 | | - | then $acc5657682 |
---|
| 48 | + | let $acc5692718 = merge($acc4692718, $list692718[4]) |
---|
| 49 | + | if (($size692718 == 5)) |
---|
| 50 | + | then $acc5692718 |
---|
49 | 51 | | else { |
---|
50 | | - | let $acc6657682 = merge($acc5657682, $list657682[5]) |
---|
51 | | - | if (($size657682 == 6)) |
---|
52 | | - | then $acc6657682 |
---|
53 | | - | else { |
---|
54 | | - | let $acc7657682 = merge($acc6657682, $list657682[6]) |
---|
55 | | - | if (($size657682 == 7)) |
---|
56 | | - | then $acc7657682 |
---|
57 | | - | else { |
---|
58 | | - | let $acc8657682 = merge($acc7657682, $list657682[7]) |
---|
59 | | - | if (($size657682 == 8)) |
---|
60 | | - | then $acc8657682 |
---|
61 | | - | else { |
---|
62 | | - | let $acc9657682 = merge($acc8657682, $list657682[8]) |
---|
63 | | - | if (($size657682 == 9)) |
---|
64 | | - | then $acc9657682 |
---|
65 | | - | else { |
---|
66 | | - | let $acc10657682 = merge($acc9657682, $list657682[9]) |
---|
67 | | - | if (($size657682 == 10)) |
---|
68 | | - | then $acc10657682 |
---|
69 | | - | else { |
---|
70 | | - | let $acc11657682 = merge($acc10657682, $list657682[10]) |
---|
71 | | - | throw("List size exceed 10") |
---|
72 | | - | } |
---|
73 | | - | } |
---|
74 | | - | } |
---|
75 | | - | } |
---|
76 | | - | } |
---|
| 52 | + | let $acc6692718 = merge($acc5692718, $list692718[5]) |
---|
| 53 | + | throw("List size exceed 5") |
---|
77 | 54 | | } |
---|
78 | 55 | | } |
---|
79 | 56 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let NONE = "none" |
---|
5 | 5 | | |
---|
6 | | - | func merge (a,b) = ((a + "|") + b) |
---|
| 6 | + | func merge (a,b) = if ((a == NONE)) |
---|
| 7 | + | then b |
---|
| 8 | + | else ((a + "|") + b) |
---|
7 | 9 | | |
---|
8 | 10 | | |
---|
9 | 11 | | @Callable(i) |
---|
10 | 12 | | func defScalping (gridID,oAsk) = { |
---|
11 | 13 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
12 | 14 | | WriteSet([DataEntry(gridID, supplierAddress), DataEntry((gridID + "_oAsk"), oAsk)]) |
---|
13 | 15 | | } |
---|
14 | 16 | | |
---|
15 | 17 | | |
---|
16 | 18 | | |
---|
17 | 19 | | @Callable(i) |
---|
18 | 20 | | func listScalping () = { |
---|
19 | 21 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
20 | 22 | | let oAskList = getStringValue(this, "Teste_1_oAsk") |
---|
21 | 23 | | let spl = split(oAskList, "|") |
---|
22 | 24 | | let newspl = "5" :: spl |
---|
23 | 25 | | let s = { |
---|
24 | | - | let $list657682 = newspl |
---|
25 | | - | let $size657682 = size($list657682) |
---|
26 | | - | let $acc0657682 = "" |
---|
27 | | - | if (($size657682 == 0)) |
---|
28 | | - | then $acc0657682 |
---|
| 26 | + | let $list692718 = newspl |
---|
| 27 | + | let $size692718 = size($list692718) |
---|
| 28 | + | let $acc0692718 = NONE |
---|
| 29 | + | if (($size692718 == 0)) |
---|
| 30 | + | then $acc0692718 |
---|
29 | 31 | | else { |
---|
30 | | - | let $acc1657682 = merge($acc0657682, $list657682[0]) |
---|
31 | | - | if (($size657682 == 1)) |
---|
32 | | - | then $acc1657682 |
---|
| 32 | + | let $acc1692718 = merge($acc0692718, $list692718[0]) |
---|
| 33 | + | if (($size692718 == 1)) |
---|
| 34 | + | then $acc1692718 |
---|
33 | 35 | | else { |
---|
34 | | - | let $acc2657682 = merge($acc1657682, $list657682[1]) |
---|
35 | | - | if (($size657682 == 2)) |
---|
36 | | - | then $acc2657682 |
---|
| 36 | + | let $acc2692718 = merge($acc1692718, $list692718[1]) |
---|
| 37 | + | if (($size692718 == 2)) |
---|
| 38 | + | then $acc2692718 |
---|
37 | 39 | | else { |
---|
38 | | - | let $acc3657682 = merge($acc2657682, $list657682[2]) |
---|
39 | | - | if (($size657682 == 3)) |
---|
40 | | - | then $acc3657682 |
---|
| 40 | + | let $acc3692718 = merge($acc2692718, $list692718[2]) |
---|
| 41 | + | if (($size692718 == 3)) |
---|
| 42 | + | then $acc3692718 |
---|
41 | 43 | | else { |
---|
42 | | - | let $acc4657682 = merge($acc3657682, $list657682[3]) |
---|
43 | | - | if (($size657682 == 4)) |
---|
44 | | - | then $acc4657682 |
---|
| 44 | + | let $acc4692718 = merge($acc3692718, $list692718[3]) |
---|
| 45 | + | if (($size692718 == 4)) |
---|
| 46 | + | then $acc4692718 |
---|
45 | 47 | | else { |
---|
46 | | - | let $acc5657682 = merge($acc4657682, $list657682[4]) |
---|
47 | | - | if (($size657682 == 5)) |
---|
48 | | - | then $acc5657682 |
---|
| 48 | + | let $acc5692718 = merge($acc4692718, $list692718[4]) |
---|
| 49 | + | if (($size692718 == 5)) |
---|
| 50 | + | then $acc5692718 |
---|
49 | 51 | | else { |
---|
50 | | - | let $acc6657682 = merge($acc5657682, $list657682[5]) |
---|
51 | | - | if (($size657682 == 6)) |
---|
52 | | - | then $acc6657682 |
---|
53 | | - | else { |
---|
54 | | - | let $acc7657682 = merge($acc6657682, $list657682[6]) |
---|
55 | | - | if (($size657682 == 7)) |
---|
56 | | - | then $acc7657682 |
---|
57 | | - | else { |
---|
58 | | - | let $acc8657682 = merge($acc7657682, $list657682[7]) |
---|
59 | | - | if (($size657682 == 8)) |
---|
60 | | - | then $acc8657682 |
---|
61 | | - | else { |
---|
62 | | - | let $acc9657682 = merge($acc8657682, $list657682[8]) |
---|
63 | | - | if (($size657682 == 9)) |
---|
64 | | - | then $acc9657682 |
---|
65 | | - | else { |
---|
66 | | - | let $acc10657682 = merge($acc9657682, $list657682[9]) |
---|
67 | | - | if (($size657682 == 10)) |
---|
68 | | - | then $acc10657682 |
---|
69 | | - | else { |
---|
70 | | - | let $acc11657682 = merge($acc10657682, $list657682[10]) |
---|
71 | | - | throw("List size exceed 10") |
---|
72 | | - | } |
---|
73 | | - | } |
---|
74 | | - | } |
---|
75 | | - | } |
---|
76 | | - | } |
---|
| 52 | + | let $acc6692718 = merge($acc5692718, $list692718[5]) |
---|
| 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", s)]) |
---|
85 | 62 | | } |
---|
86 | 63 | | |
---|
87 | 64 | | |
---|
88 | 65 | | |
---|
89 | 66 | | @Callable(i) |
---|
90 | 67 | | func startScalping () = { |
---|
91 | 68 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
92 | 69 | | let arr = value(getString(this, "Teste_1_oAsk")) |
---|
93 | 70 | | WriteSet([DataEntry(("Teste_1_" + supplierAddress), arr)]) |
---|
94 | 71 | | } |
---|
95 | 72 | | |
---|
96 | 73 | | |
---|