tx · 6WMiVHmTfSYNELXSaxZTLpatC1oBFViW96Thf4CNb9F7
3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj: -0.05000000 Waves
2019.11.22 07:20 [775912] smart account 3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj > SELF 0.00000000 Waves
{
"type": 13,
"id": "6WMiVHmTfSYNELXSaxZTLpatC1oBFViW96Thf4CNb9F7",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1574396424088,
"version": 1,
"sender": "3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj",
"senderPublicKey": "J6uUrhmBcnvdu5KYxCr6uY5XoFb6bK1CdjWR8CMBst8o",
"proofs": [
"2nJprw2ifmL6Bbvju1pwBE6QC3eRzAzUkddtm7w2BM3xP6VV1QR4iueNZ3xfRuvJxMS9xDcCFzYY7dda7mY9pY56"
],
"script": "base64:AAIDAAAAAAAAAAwIARIECgIICBIAEgAAAAACAAAAAAROT05FAgAAAARub25lAQAAAAVtZXJnZQAAAAIAAAABYQAAAAFiCQABLAAAAAIJAAEsAAAAAgUAAAABYQIAAAABfAUAAAABYgAAAAMAAAABaQEAAAALZGVmU2NhbHBpbmcAAAACAAAABmdyaWRJRAAAAARvQXNrBAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ3JpZElEBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGZ3JpZElEAgAAAAVfb0FzawUAAAAEb0FzawUAAAADbmlsAAAAAWkBAAAADGxpc3RTY2FscGluZwAAAAAEAAAAD3N1cHBsaWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhvQXNrTGlzdAkBAAAAEUBleHRyTm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bWVyZ2UAAAACBQAAAAwkYWNjMTA2NTc2ODkJAAGRAAAAAgUAAAALJGxpc3Q2NTc2ODkAAAAAAAAAAAoJAAACAAAAAQIAAAATTGlzdCBzaXplIGV4Y2VlZCAxMAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAMVGVzdGVfMV9MaXN0BQAAAAFzBQAAAANuaWwAAAABaQEAAAANc3RhcnRTY2FscGluZwAAAAAEAAAAD3N1cHBsaWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAANhcnIJAQAAAAV2YWx1ZQAAAAEJAAQdAAAAAgUAAAAEdGhpcwIAAAAMVGVzdGVfMV9vQXNrCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAACFRlc3RlXzFfBQAAAA9zdXBwbGllckFkZHJlc3MFAAAAA2FycgUAAAADbmlsAAAAAG4WM/Y=",
"chainId": 84,
"height": 775912,
"spentComplexity": 0
}
View: original | compacted
Prev: GKCCosiMtVE6Yf2M8uQwjtKQqNU3BtFMWE9Ut75BqZ9A
Next: 7ieuXnzBKppYsUDmvjC2LDL3uV1MmyVLfXQbgzBiUqgQ
Diff:
Old | New | | Differences |
---|
21 | 21 | | let spl = split(oAskList, "|") |
---|
22 | 22 | | let newspl = "5" :: spl |
---|
23 | 23 | | let s = { |
---|
24 | | - | let $list657683 = newspl |
---|
25 | | - | let $size657683 = size($list657683) |
---|
26 | | - | let $acc0657683 = "0" |
---|
27 | | - | if (($size657683 == 0)) |
---|
28 | | - | then $acc0657683 |
---|
| 24 | + | let $list657689 = newspl |
---|
| 25 | + | let $size657689 = size($list657689) |
---|
| 26 | + | let $acc0657689 = newspl[0] |
---|
| 27 | + | if (($size657689 == 0)) |
---|
| 28 | + | then $acc0657689 |
---|
29 | 29 | | else { |
---|
30 | | - | let $acc1657683 = merge($acc0657683, $list657683[0]) |
---|
31 | | - | if (($size657683 == 1)) |
---|
32 | | - | then $acc1657683 |
---|
| 30 | + | let $acc1657689 = merge($acc0657689, $list657689[0]) |
---|
| 31 | + | if (($size657689 == 1)) |
---|
| 32 | + | then $acc1657689 |
---|
33 | 33 | | else { |
---|
34 | | - | let $acc2657683 = merge($acc1657683, $list657683[1]) |
---|
35 | | - | if (($size657683 == 2)) |
---|
36 | | - | then $acc2657683 |
---|
| 34 | + | let $acc2657689 = merge($acc1657689, $list657689[1]) |
---|
| 35 | + | if (($size657689 == 2)) |
---|
| 36 | + | then $acc2657689 |
---|
37 | 37 | | else { |
---|
38 | | - | let $acc3657683 = merge($acc2657683, $list657683[2]) |
---|
39 | | - | if (($size657683 == 3)) |
---|
40 | | - | then $acc3657683 |
---|
| 38 | + | let $acc3657689 = merge($acc2657689, $list657689[2]) |
---|
| 39 | + | if (($size657689 == 3)) |
---|
| 40 | + | then $acc3657689 |
---|
41 | 41 | | else { |
---|
42 | | - | let $acc4657683 = merge($acc3657683, $list657683[3]) |
---|
43 | | - | if (($size657683 == 4)) |
---|
44 | | - | then $acc4657683 |
---|
| 42 | + | let $acc4657689 = merge($acc3657689, $list657689[3]) |
---|
| 43 | + | if (($size657689 == 4)) |
---|
| 44 | + | then $acc4657689 |
---|
45 | 45 | | else { |
---|
46 | | - | let $acc5657683 = merge($acc4657683, $list657683[4]) |
---|
47 | | - | if (($size657683 == 5)) |
---|
48 | | - | then $acc5657683 |
---|
| 46 | + | let $acc5657689 = merge($acc4657689, $list657689[4]) |
---|
| 47 | + | if (($size657689 == 5)) |
---|
| 48 | + | then $acc5657689 |
---|
49 | 49 | | else { |
---|
50 | | - | let $acc6657683 = merge($acc5657683, $list657683[5]) |
---|
51 | | - | if (($size657683 == 6)) |
---|
52 | | - | then $acc6657683 |
---|
| 50 | + | let $acc6657689 = merge($acc5657689, $list657689[5]) |
---|
| 51 | + | if (($size657689 == 6)) |
---|
| 52 | + | then $acc6657689 |
---|
53 | 53 | | else { |
---|
54 | | - | let $acc7657683 = merge($acc6657683, $list657683[6]) |
---|
55 | | - | if (($size657683 == 7)) |
---|
56 | | - | then $acc7657683 |
---|
| 54 | + | let $acc7657689 = merge($acc6657689, $list657689[6]) |
---|
| 55 | + | if (($size657689 == 7)) |
---|
| 56 | + | then $acc7657689 |
---|
57 | 57 | | else { |
---|
58 | | - | let $acc8657683 = merge($acc7657683, $list657683[7]) |
---|
59 | | - | if (($size657683 == 8)) |
---|
60 | | - | then $acc8657683 |
---|
| 58 | + | let $acc8657689 = merge($acc7657689, $list657689[7]) |
---|
| 59 | + | if (($size657689 == 8)) |
---|
| 60 | + | then $acc8657689 |
---|
61 | 61 | | else { |
---|
62 | | - | let $acc9657683 = merge($acc8657683, $list657683[8]) |
---|
63 | | - | if (($size657683 == 9)) |
---|
64 | | - | then $acc9657683 |
---|
| 62 | + | let $acc9657689 = merge($acc8657689, $list657689[8]) |
---|
| 63 | + | if (($size657689 == 9)) |
---|
| 64 | + | then $acc9657689 |
---|
65 | 65 | | else { |
---|
66 | | - | let $acc10657683 = merge($acc9657683, $list657683[9]) |
---|
67 | | - | if (($size657683 == 10)) |
---|
68 | | - | then $acc10657683 |
---|
| 66 | + | let $acc10657689 = merge($acc9657689, $list657689[9]) |
---|
| 67 | + | if (($size657689 == 10)) |
---|
| 68 | + | then $acc10657689 |
---|
69 | 69 | | else { |
---|
70 | | - | let $acc11657683 = merge($acc10657683, $list657683[10]) |
---|
| 70 | + | let $acc11657689 = merge($acc10657689, $list657689[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 $list657683 = newspl |
---|
25 | | - | let $size657683 = size($list657683) |
---|
26 | | - | let $acc0657683 = "0" |
---|
27 | | - | if (($size657683 == 0)) |
---|
28 | | - | then $acc0657683 |
---|
| 24 | + | let $list657689 = newspl |
---|
| 25 | + | let $size657689 = size($list657689) |
---|
| 26 | + | let $acc0657689 = newspl[0] |
---|
| 27 | + | if (($size657689 == 0)) |
---|
| 28 | + | then $acc0657689 |
---|
29 | 29 | | else { |
---|
30 | | - | let $acc1657683 = merge($acc0657683, $list657683[0]) |
---|
31 | | - | if (($size657683 == 1)) |
---|
32 | | - | then $acc1657683 |
---|
| 30 | + | let $acc1657689 = merge($acc0657689, $list657689[0]) |
---|
| 31 | + | if (($size657689 == 1)) |
---|
| 32 | + | then $acc1657689 |
---|
33 | 33 | | else { |
---|
34 | | - | let $acc2657683 = merge($acc1657683, $list657683[1]) |
---|
35 | | - | if (($size657683 == 2)) |
---|
36 | | - | then $acc2657683 |
---|
| 34 | + | let $acc2657689 = merge($acc1657689, $list657689[1]) |
---|
| 35 | + | if (($size657689 == 2)) |
---|
| 36 | + | then $acc2657689 |
---|
37 | 37 | | else { |
---|
38 | | - | let $acc3657683 = merge($acc2657683, $list657683[2]) |
---|
39 | | - | if (($size657683 == 3)) |
---|
40 | | - | then $acc3657683 |
---|
| 38 | + | let $acc3657689 = merge($acc2657689, $list657689[2]) |
---|
| 39 | + | if (($size657689 == 3)) |
---|
| 40 | + | then $acc3657689 |
---|
41 | 41 | | else { |
---|
42 | | - | let $acc4657683 = merge($acc3657683, $list657683[3]) |
---|
43 | | - | if (($size657683 == 4)) |
---|
44 | | - | then $acc4657683 |
---|
| 42 | + | let $acc4657689 = merge($acc3657689, $list657689[3]) |
---|
| 43 | + | if (($size657689 == 4)) |
---|
| 44 | + | then $acc4657689 |
---|
45 | 45 | | else { |
---|
46 | | - | let $acc5657683 = merge($acc4657683, $list657683[4]) |
---|
47 | | - | if (($size657683 == 5)) |
---|
48 | | - | then $acc5657683 |
---|
| 46 | + | let $acc5657689 = merge($acc4657689, $list657689[4]) |
---|
| 47 | + | if (($size657689 == 5)) |
---|
| 48 | + | then $acc5657689 |
---|
49 | 49 | | else { |
---|
50 | | - | let $acc6657683 = merge($acc5657683, $list657683[5]) |
---|
51 | | - | if (($size657683 == 6)) |
---|
52 | | - | then $acc6657683 |
---|
| 50 | + | let $acc6657689 = merge($acc5657689, $list657689[5]) |
---|
| 51 | + | if (($size657689 == 6)) |
---|
| 52 | + | then $acc6657689 |
---|
53 | 53 | | else { |
---|
54 | | - | let $acc7657683 = merge($acc6657683, $list657683[6]) |
---|
55 | | - | if (($size657683 == 7)) |
---|
56 | | - | then $acc7657683 |
---|
| 54 | + | let $acc7657689 = merge($acc6657689, $list657689[6]) |
---|
| 55 | + | if (($size657689 == 7)) |
---|
| 56 | + | then $acc7657689 |
---|
57 | 57 | | else { |
---|
58 | | - | let $acc8657683 = merge($acc7657683, $list657683[7]) |
---|
59 | | - | if (($size657683 == 8)) |
---|
60 | | - | then $acc8657683 |
---|
| 58 | + | let $acc8657689 = merge($acc7657689, $list657689[7]) |
---|
| 59 | + | if (($size657689 == 8)) |
---|
| 60 | + | then $acc8657689 |
---|
61 | 61 | | else { |
---|
62 | | - | let $acc9657683 = merge($acc8657683, $list657683[8]) |
---|
63 | | - | if (($size657683 == 9)) |
---|
64 | | - | then $acc9657683 |
---|
| 62 | + | let $acc9657689 = merge($acc8657689, $list657689[8]) |
---|
| 63 | + | if (($size657689 == 9)) |
---|
| 64 | + | then $acc9657689 |
---|
65 | 65 | | else { |
---|
66 | | - | let $acc10657683 = merge($acc9657683, $list657683[9]) |
---|
67 | | - | if (($size657683 == 10)) |
---|
68 | | - | then $acc10657683 |
---|
| 66 | + | let $acc10657689 = merge($acc9657689, $list657689[9]) |
---|
| 67 | + | if (($size657689 == 10)) |
---|
| 68 | + | then $acc10657689 |
---|
69 | 69 | | else { |
---|
70 | | - | let $acc11657683 = merge($acc10657683, $list657683[10]) |
---|
| 70 | + | let $acc11657689 = merge($acc10657689, $list657689[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 | | |
---|