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:AAIDAAAAAAAAAAwIARIECgIICBIAEgAAAAACAAAAAAROT05FAgAAAARub25lAQAAAAVtZXJnZQAAAAIAAAABYQAAAAFiAwkAAAAAAAACBQAAAAFhBQAAAAROT05FBQAAAAFiCQABLAAAAAIJAAEsAAAAAgUAAAABYQIAAAABfAUAAAABYgAAAAMAAAABaQEAAAALZGVmU2NhbHBpbmcAAAACAAAABmdyaWRJRAAAAARvQXNrBAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ3JpZElEBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGZ3JpZElEAgAAAAVfb0FzawUAAAAEb0FzawUAAAADbmlsAAAAAWkBAAAADGxpc3RTY2FscGluZwAAAAAEAAAAD3N1cHBsaWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAA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AAALJGFjYzU2OTI3MTgJAQAAAAVtZXJnZQAAAAIFAAAACyRhY2M0NjkyNzE4CQABkQAAAAIFAAAACyRsaXN0NjkyNzE4AAAAAAAAAAAEAwkAAAAAAAACBQAAAAskc2l6ZTY5MjcxOAAAAAAAAAAABQUAAAALJGFjYzU2OTI3MTgEAAAACyRhY2M2NjkyNzE4CQEAAAAFbWVyZ2UAAAACBQAAAAskYWNjNTY5MjcxOAkAAZEAAAACBQAAAAskbGlzdDY5MjcxOAAAAAAAAAAABQkAAAIAAAABAgAAABJMaXN0IHNpemUgZXhjZWVkIDUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADFRlc3RlXzFfTGlzdAUAAAABcwUAAAADbmlsAAAAAWkBAAAADXN0YXJ0U2NhbHBpbmcAAAAABAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAADYXJyCQEAAAAFdmFsdWUAAAABCQAEHQAAAAIFAAAABHRoaXMCAAAADFRlc3RlXzFfb0FzawkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAhUZXN0ZV8xXwUAAAAPc3VwcGxpZXJBZGRyZXNzBQAAAANhcnIFAAAAA25pbAAAAAAnpc1t", "chainId": 84, "height": 775924, "spentComplexity": 0 } View: original | compacted Prev: 7ieuXnzBKppYsUDmvjC2LDL3uV1MmyVLfXQbgzBiUqgQ Next: 5Pmqu4pzHrPof44qanV42gjiacuoHDB7HgaHxkEyLiTu Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
6-func merge (a,b) = ((a + "|") + b)
6+func merge (a,b) = if ((a == NONE))
7+ then b
8+ else ((a + "|") + b)
79
810
911 @Callable(i)
2123 let spl = split(oAskList, "|")
2224 let newspl = "5" :: spl
2325 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
2931 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
3335 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
3739 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
4143 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
4547 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
4951 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")
7754 }
7855 }
7956 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
6-func merge (a,b) = ((a + "|") + b)
6+func merge (a,b) = if ((a == NONE))
7+ then b
8+ else ((a + "|") + b)
79
810
911 @Callable(i)
1012 func defScalping (gridID,oAsk) = {
1113 let supplierAddress = toBase58String(i.caller.bytes)
1214 WriteSet([DataEntry(gridID, supplierAddress), DataEntry((gridID + "_oAsk"), oAsk)])
1315 }
1416
1517
1618
1719 @Callable(i)
1820 func listScalping () = {
1921 let supplierAddress = toBase58String(i.caller.bytes)
2022 let oAskList = getStringValue(this, "Teste_1_oAsk")
2123 let spl = split(oAskList, "|")
2224 let newspl = "5" :: spl
2325 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
2931 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
3335 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
3739 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
4143 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
4547 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
4951 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")
7754 }
7855 }
7956 }
8057 }
8158 }
8259 }
8360 }
8461 WriteSet([DataEntry("Teste_1_List", s)])
8562 }
8663
8764
8865
8966 @Callable(i)
9067 func startScalping () = {
9168 let supplierAddress = toBase58String(i.caller.bytes)
9269 let arr = value(getString(this, "Teste_1_oAsk"))
9370 WriteSet([DataEntry(("Teste_1_" + supplierAddress), arr)])
9471 }
9572
9673

github/deemru/w8io/026f985 
62.26 ms