tx · 7ieuXnzBKppYsUDmvjC2LDL3uV1MmyVLfXQbgzBiUqgQ
3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj: -0.05000000 Waves
2019.11.22 07:22 [775915] smart account 3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj > SELF 0.00000000 Waves
{
"type": 13,
"id": "7ieuXnzBKppYsUDmvjC2LDL3uV1MmyVLfXQbgzBiUqgQ",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1574396550740,
"version": 1,
"sender": "3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj",
"senderPublicKey": "J6uUrhmBcnvdu5KYxCr6uY5XoFb6bK1CdjWR8CMBst8o",
"proofs": [
"Qakhzu3sHLrVX3raNyDocgatbd7FFb8HkmR28vHVgvHLLk9oWnGbm1sDZFSquqDDBeYiRF9Ty6jUndkNdTrmw6a"
],
"script": "base64:AAIDAAAAAAAAAAwIARIECgIICBIAEgAAAAACAAAAAAROT05FAgAAAARub25lAQAAAAVtZXJnZQAAAAIAAAABYQAAAAFiCQABLAAAAAIJAAEsAAAAAgUAAAABYQIAAAABfAUAAAABYgAAAAMAAAABaQEAAAALZGVmU2NhbHBpbmcAAAACAAAABmdyaWRJRAAAAARvQXNrBAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ3JpZElEBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGZ3JpZElEAgAAAAVfb0FzawUAAAAEb0FzawUAAAADbmlsAAAAAWkBAAAADGxpc3RTY2FscGluZwAAAAAEAAAAD3N1cHBsaWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhvQXNrTGlzdAkBAAAAEUB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jYzEwNjU3NjgyCQABkQAAAAIFAAAACyRsaXN0NjU3NjgyAAAAAAAAAAAKCQAAAgAAAAECAAAAE0xpc3Qgc2l6ZSBleGNlZWQgMTAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADFRlc3RlXzFfTGlzdAUAAAABcwUAAAADbmlsAAAAAWkBAAAADXN0YXJ0U2NhbHBpbmcAAAAABAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAADYXJyCQEAAAAFdmFsdWUAAAABCQAEHQAAAAIFAAAABHRoaXMCAAAADFRlc3RlXzFfb0FzawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAhUZXN0ZV8xXwUAAAAPc3VwcGxpZXJBZGRyZXNzBQAAAANhcnIFAAAAA25pbAAAAAD6I/fj",
"chainId": 84,
"height": 775915,
"spentComplexity": 0
}
View: original | compacted
Prev: 6WMiVHmTfSYNELXSaxZTLpatC1oBFViW96Thf4CNb9F7
Next: 6xRwMSnWQRGhZs7AB5PEiBttajjzCxdU86UR8uLGcCqc
Diff:
Old | New | | Differences |
---|
21 | 21 | | let spl = split(oAskList, "|") |
---|
22 | 22 | | let newspl = "5" :: spl |
---|
23 | 23 | | let s = { |
---|
24 | | - | let $list657689 = newspl |
---|
25 | | - | let $size657689 = size($list657689) |
---|
26 | | - | let $acc0657689 = newspl[0] |
---|
27 | | - | if (($size657689 == 0)) |
---|
28 | | - | then $acc0657689 |
---|
| 24 | + | let $list657682 = newspl |
---|
| 25 | + | let $size657682 = size($list657682) |
---|
| 26 | + | let $acc0657682 = "" |
---|
| 27 | + | if (($size657682 == 0)) |
---|
| 28 | + | then $acc0657682 |
---|
29 | 29 | | else { |
---|
30 | | - | let $acc1657689 = merge($acc0657689, $list657689[0]) |
---|
31 | | - | if (($size657689 == 1)) |
---|
32 | | - | then $acc1657689 |
---|
| 30 | + | let $acc1657682 = merge($acc0657682, $list657682[0]) |
---|
| 31 | + | if (($size657682 == 1)) |
---|
| 32 | + | then $acc1657682 |
---|
33 | 33 | | else { |
---|
34 | | - | let $acc2657689 = merge($acc1657689, $list657689[1]) |
---|
35 | | - | if (($size657689 == 2)) |
---|
36 | | - | then $acc2657689 |
---|
| 34 | + | let $acc2657682 = merge($acc1657682, $list657682[1]) |
---|
| 35 | + | if (($size657682 == 2)) |
---|
| 36 | + | then $acc2657682 |
---|
37 | 37 | | else { |
---|
38 | | - | let $acc3657689 = merge($acc2657689, $list657689[2]) |
---|
39 | | - | if (($size657689 == 3)) |
---|
40 | | - | then $acc3657689 |
---|
| 38 | + | let $acc3657682 = merge($acc2657682, $list657682[2]) |
---|
| 39 | + | if (($size657682 == 3)) |
---|
| 40 | + | then $acc3657682 |
---|
41 | 41 | | else { |
---|
42 | | - | let $acc4657689 = merge($acc3657689, $list657689[3]) |
---|
43 | | - | if (($size657689 == 4)) |
---|
44 | | - | then $acc4657689 |
---|
| 42 | + | let $acc4657682 = merge($acc3657682, $list657682[3]) |
---|
| 43 | + | if (($size657682 == 4)) |
---|
| 44 | + | then $acc4657682 |
---|
45 | 45 | | else { |
---|
46 | | - | let $acc5657689 = merge($acc4657689, $list657689[4]) |
---|
47 | | - | if (($size657689 == 5)) |
---|
48 | | - | then $acc5657689 |
---|
| 46 | + | let $acc5657682 = merge($acc4657682, $list657682[4]) |
---|
| 47 | + | if (($size657682 == 5)) |
---|
| 48 | + | then $acc5657682 |
---|
49 | 49 | | else { |
---|
50 | | - | let $acc6657689 = merge($acc5657689, $list657689[5]) |
---|
51 | | - | if (($size657689 == 6)) |
---|
52 | | - | then $acc6657689 |
---|
| 50 | + | let $acc6657682 = merge($acc5657682, $list657682[5]) |
---|
| 51 | + | if (($size657682 == 6)) |
---|
| 52 | + | then $acc6657682 |
---|
53 | 53 | | else { |
---|
54 | | - | let $acc7657689 = merge($acc6657689, $list657689[6]) |
---|
55 | | - | if (($size657689 == 7)) |
---|
56 | | - | then $acc7657689 |
---|
| 54 | + | let $acc7657682 = merge($acc6657682, $list657682[6]) |
---|
| 55 | + | if (($size657682 == 7)) |
---|
| 56 | + | then $acc7657682 |
---|
57 | 57 | | else { |
---|
58 | | - | let $acc8657689 = merge($acc7657689, $list657689[7]) |
---|
59 | | - | if (($size657689 == 8)) |
---|
60 | | - | then $acc8657689 |
---|
| 58 | + | let $acc8657682 = merge($acc7657682, $list657682[7]) |
---|
| 59 | + | if (($size657682 == 8)) |
---|
| 60 | + | then $acc8657682 |
---|
61 | 61 | | else { |
---|
62 | | - | let $acc9657689 = merge($acc8657689, $list657689[8]) |
---|
63 | | - | if (($size657689 == 9)) |
---|
64 | | - | then $acc9657689 |
---|
| 62 | + | let $acc9657682 = merge($acc8657682, $list657682[8]) |
---|
| 63 | + | if (($size657682 == 9)) |
---|
| 64 | + | then $acc9657682 |
---|
65 | 65 | | else { |
---|
66 | | - | let $acc10657689 = merge($acc9657689, $list657689[9]) |
---|
67 | | - | if (($size657689 == 10)) |
---|
68 | | - | then $acc10657689 |
---|
| 66 | + | let $acc10657682 = merge($acc9657682, $list657682[9]) |
---|
| 67 | + | if (($size657682 == 10)) |
---|
| 68 | + | then $acc10657682 |
---|
69 | 69 | | else { |
---|
70 | | - | let $acc11657689 = merge($acc10657689, $list657689[10]) |
---|
| 70 | + | let $acc11657682 = merge($acc10657682, $list657682[10]) |
---|
71 | 71 | | throw("List size exceed 10") |
---|
72 | 72 | | } |
---|
73 | 73 | | } |
---|
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 | 6 | | func merge (a,b) = ((a + "|") + b) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | @Callable(i) |
---|
10 | 10 | | func defScalping (gridID,oAsk) = { |
---|
11 | 11 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
12 | 12 | | WriteSet([DataEntry(gridID, supplierAddress), DataEntry((gridID + "_oAsk"), oAsk)]) |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func listScalping () = { |
---|
19 | 19 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
20 | 20 | | let oAskList = getStringValue(this, "Teste_1_oAsk") |
---|
21 | 21 | | let spl = split(oAskList, "|") |
---|
22 | 22 | | let newspl = "5" :: spl |
---|
23 | 23 | | let s = { |
---|
24 | | - | let $list657689 = newspl |
---|
25 | | - | let $size657689 = size($list657689) |
---|
26 | | - | let $acc0657689 = newspl[0] |
---|
27 | | - | if (($size657689 == 0)) |
---|
28 | | - | then $acc0657689 |
---|
| 24 | + | let $list657682 = newspl |
---|
| 25 | + | let $size657682 = size($list657682) |
---|
| 26 | + | let $acc0657682 = "" |
---|
| 27 | + | if (($size657682 == 0)) |
---|
| 28 | + | then $acc0657682 |
---|
29 | 29 | | else { |
---|
30 | | - | let $acc1657689 = merge($acc0657689, $list657689[0]) |
---|
31 | | - | if (($size657689 == 1)) |
---|
32 | | - | then $acc1657689 |
---|
| 30 | + | let $acc1657682 = merge($acc0657682, $list657682[0]) |
---|
| 31 | + | if (($size657682 == 1)) |
---|
| 32 | + | then $acc1657682 |
---|
33 | 33 | | else { |
---|
34 | | - | let $acc2657689 = merge($acc1657689, $list657689[1]) |
---|
35 | | - | if (($size657689 == 2)) |
---|
36 | | - | then $acc2657689 |
---|
| 34 | + | let $acc2657682 = merge($acc1657682, $list657682[1]) |
---|
| 35 | + | if (($size657682 == 2)) |
---|
| 36 | + | then $acc2657682 |
---|
37 | 37 | | else { |
---|
38 | | - | let $acc3657689 = merge($acc2657689, $list657689[2]) |
---|
39 | | - | if (($size657689 == 3)) |
---|
40 | | - | then $acc3657689 |
---|
| 38 | + | let $acc3657682 = merge($acc2657682, $list657682[2]) |
---|
| 39 | + | if (($size657682 == 3)) |
---|
| 40 | + | then $acc3657682 |
---|
41 | 41 | | else { |
---|
42 | | - | let $acc4657689 = merge($acc3657689, $list657689[3]) |
---|
43 | | - | if (($size657689 == 4)) |
---|
44 | | - | then $acc4657689 |
---|
| 42 | + | let $acc4657682 = merge($acc3657682, $list657682[3]) |
---|
| 43 | + | if (($size657682 == 4)) |
---|
| 44 | + | then $acc4657682 |
---|
45 | 45 | | else { |
---|
46 | | - | let $acc5657689 = merge($acc4657689, $list657689[4]) |
---|
47 | | - | if (($size657689 == 5)) |
---|
48 | | - | then $acc5657689 |
---|
| 46 | + | let $acc5657682 = merge($acc4657682, $list657682[4]) |
---|
| 47 | + | if (($size657682 == 5)) |
---|
| 48 | + | then $acc5657682 |
---|
49 | 49 | | else { |
---|
50 | | - | let $acc6657689 = merge($acc5657689, $list657689[5]) |
---|
51 | | - | if (($size657689 == 6)) |
---|
52 | | - | then $acc6657689 |
---|
| 50 | + | let $acc6657682 = merge($acc5657682, $list657682[5]) |
---|
| 51 | + | if (($size657682 == 6)) |
---|
| 52 | + | then $acc6657682 |
---|
53 | 53 | | else { |
---|
54 | | - | let $acc7657689 = merge($acc6657689, $list657689[6]) |
---|
55 | | - | if (($size657689 == 7)) |
---|
56 | | - | then $acc7657689 |
---|
| 54 | + | let $acc7657682 = merge($acc6657682, $list657682[6]) |
---|
| 55 | + | if (($size657682 == 7)) |
---|
| 56 | + | then $acc7657682 |
---|
57 | 57 | | else { |
---|
58 | | - | let $acc8657689 = merge($acc7657689, $list657689[7]) |
---|
59 | | - | if (($size657689 == 8)) |
---|
60 | | - | then $acc8657689 |
---|
| 58 | + | let $acc8657682 = merge($acc7657682, $list657682[7]) |
---|
| 59 | + | if (($size657682 == 8)) |
---|
| 60 | + | then $acc8657682 |
---|
61 | 61 | | else { |
---|
62 | | - | let $acc9657689 = merge($acc8657689, $list657689[8]) |
---|
63 | | - | if (($size657689 == 9)) |
---|
64 | | - | then $acc9657689 |
---|
| 62 | + | let $acc9657682 = merge($acc8657682, $list657682[8]) |
---|
| 63 | + | if (($size657682 == 9)) |
---|
| 64 | + | then $acc9657682 |
---|
65 | 65 | | else { |
---|
66 | | - | let $acc10657689 = merge($acc9657689, $list657689[9]) |
---|
67 | | - | if (($size657689 == 10)) |
---|
68 | | - | then $acc10657689 |
---|
| 66 | + | let $acc10657682 = merge($acc9657682, $list657682[9]) |
---|
| 67 | + | if (($size657682 == 10)) |
---|
| 68 | + | then $acc10657682 |
---|
69 | 69 | | else { |
---|
70 | | - | let $acc11657689 = merge($acc10657689, $list657689[10]) |
---|
| 70 | + | let $acc11657682 = merge($acc10657682, $list657682[10]) |
---|
71 | 71 | | throw("List size exceed 10") |
---|
72 | 72 | | } |
---|
73 | 73 | | } |
---|
74 | 74 | | } |
---|
75 | 75 | | } |
---|
76 | 76 | | } |
---|
77 | 77 | | } |
---|
78 | 78 | | } |
---|
79 | 79 | | } |
---|
80 | 80 | | } |
---|
81 | 81 | | } |
---|
82 | 82 | | } |
---|
83 | 83 | | } |
---|
84 | 84 | | WriteSet([DataEntry("Teste_1_List", s)]) |
---|
85 | 85 | | } |
---|
86 | 86 | | |
---|
87 | 87 | | |
---|
88 | 88 | | |
---|
89 | 89 | | @Callable(i) |
---|
90 | 90 | | func startScalping () = { |
---|
91 | 91 | | let supplierAddress = toBase58String(i.caller.bytes) |
---|
92 | 92 | | let arr = value(getString(this, "Teste_1_oAsk")) |
---|
93 | 93 | | WriteSet([DataEntry(("Teste_1_" + supplierAddress), arr)]) |
---|
94 | 94 | | } |
---|
95 | 95 | | |
---|
96 | 96 | | |
---|