tx · GKCCosiMtVE6Yf2M8uQwjtKQqNU3BtFMWE9Ut75BqZ9A

3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj:  -0.05000000 Waves

2019.11.22 07:16 [775908] smart account 3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj > SELF 0.00000000 Waves

{ "type": 13, "id": "GKCCosiMtVE6Yf2M8uQwjtKQqNU3BtFMWE9Ut75BqZ9A", "fee": 5000000, "feeAssetId": null, "timestamp": 1574396186809, "version": 1, "sender": "3NB5N2sZzeeXumQavrLSnySaDhLEtAjDhoj", "senderPublicKey": "J6uUrhmBcnvdu5KYxCr6uY5XoFb6bK1CdjWR8CMBst8o", "proofs": [ "4oEpuHTenMz4Z2azr24mGW3dwTSQsGKEWRxxgWiDP66ahkALAyryc3zexhFjS6naGM5DG76zJahMLSQMxyaUphMx" ], "script": "base64:AAIDAAAAAAAAAAwIARIECgIICBIAEgAAAAACAAAAAAROT05FAgAAAARub25lAQAAAAVtZXJnZQAAAAIAAAABYQAAAAFiCQABLAAAAAIJAAEsAAAAAgUAAAABYQIAAAABfAUAAAABYgAAAAMAAAABaQEAAAALZGVmU2NhbHBpbmcAAAACAAAABmdyaWRJRAAAAARvQXNrBAAAAA9zdXBwbGllckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ3JpZElEBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAGZ3JpZElEAgAAAAVfb0FzawUAAAAEb0FzawUAAAADbmlsAAAAAWkBAAAADGxpc3RTY2FscGluZwAAAAAEAAAAD3N1cHBsaWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhvQXNrTGlzdAkBAAAAEUBleHRyTmF0aXZ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wkAAZEAAAACBQAAAAskbGlzdDY1NzY4MwAAAAAAAAAACgkAAAIAAAABAgAAABNMaXN0IHNpemUgZXhjZWVkIDEwCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAxUZXN0ZV8xX0xpc3QFAAAAAXMFAAAAA25pbAAAAAFpAQAAAA1zdGFydFNjYWxwaW5nAAAAAAQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA2FycgkBAAAABXZhbHVlAAAAAQkABB0AAAACBQAAAAR0aGlzAgAAAAxUZXN0ZV8xX29Bc2sJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAIVGVzdGVfMV8FAAAAD3N1cHBsaWVyQWRkcmVzcwUAAAADYXJyBQAAAANuaWwAAAAA8r6bzw==", "chainId": 84, "height": 775908, "spentComplexity": 0 } View: original | compacted Prev: EziYtTki7W3KgfvnSNtWy2JubxTsj1qcdpxx4wsSJPa1 Next: 6WMiVHmTfSYNELXSaxZTLpatC1oBFViW96Thf4CNb9F7 Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
6-func sum (a,b) = ((toString(a) + "|") + toString(b))
6+func merge (a,b) = ((a + "|") + b)
77
88
99 @Callable(i)
1919 let supplierAddress = toBase58String(i.caller.bytes)
2020 let oAskList = getStringValue(this, "Teste_1_oAsk")
2121 let spl = split(oAskList, "|")
22- let newspl = 5 :: spl
23- WriteSet([DataEntry("Teste_1_List", spl[1])])
22+ let newspl = "5" :: spl
23+ let s = {
24+ let $list657683 = newspl
25+ let $size657683 = size($list657683)
26+ let $acc0657683 = "0"
27+ if (($size657683 == 0))
28+ then $acc0657683
29+ else {
30+ let $acc1657683 = merge($acc0657683, $list657683[0])
31+ if (($size657683 == 1))
32+ then $acc1657683
33+ else {
34+ let $acc2657683 = merge($acc1657683, $list657683[1])
35+ if (($size657683 == 2))
36+ then $acc2657683
37+ else {
38+ let $acc3657683 = merge($acc2657683, $list657683[2])
39+ if (($size657683 == 3))
40+ then $acc3657683
41+ else {
42+ let $acc4657683 = merge($acc3657683, $list657683[3])
43+ if (($size657683 == 4))
44+ then $acc4657683
45+ else {
46+ let $acc5657683 = merge($acc4657683, $list657683[4])
47+ if (($size657683 == 5))
48+ then $acc5657683
49+ else {
50+ let $acc6657683 = merge($acc5657683, $list657683[5])
51+ if (($size657683 == 6))
52+ then $acc6657683
53+ else {
54+ let $acc7657683 = merge($acc6657683, $list657683[6])
55+ if (($size657683 == 7))
56+ then $acc7657683
57+ else {
58+ let $acc8657683 = merge($acc7657683, $list657683[7])
59+ if (($size657683 == 8))
60+ then $acc8657683
61+ else {
62+ let $acc9657683 = merge($acc8657683, $list657683[8])
63+ if (($size657683 == 9))
64+ then $acc9657683
65+ else {
66+ let $acc10657683 = merge($acc9657683, $list657683[9])
67+ if (($size657683 == 10))
68+ then $acc10657683
69+ else {
70+ let $acc11657683 = merge($acc10657683, $list657683[10])
71+ throw("List size exceed 10")
72+ }
73+ }
74+ }
75+ }
76+ }
77+ }
78+ }
79+ }
80+ }
81+ }
82+ }
83+ }
84+ WriteSet([DataEntry("Teste_1_List", s)])
2485 }
2586
2687
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
6-func sum (a,b) = ((toString(a) + "|") + toString(b))
6+func merge (a,b) = ((a + "|") + b)
77
88
99 @Callable(i)
1010 func defScalping (gridID,oAsk) = {
1111 let supplierAddress = toBase58String(i.caller.bytes)
1212 WriteSet([DataEntry(gridID, supplierAddress), DataEntry((gridID + "_oAsk"), oAsk)])
1313 }
1414
1515
1616
1717 @Callable(i)
1818 func listScalping () = {
1919 let supplierAddress = toBase58String(i.caller.bytes)
2020 let oAskList = getStringValue(this, "Teste_1_oAsk")
2121 let spl = split(oAskList, "|")
22- let newspl = 5 :: spl
23- WriteSet([DataEntry("Teste_1_List", spl[1])])
22+ let newspl = "5" :: spl
23+ let s = {
24+ let $list657683 = newspl
25+ let $size657683 = size($list657683)
26+ let $acc0657683 = "0"
27+ if (($size657683 == 0))
28+ then $acc0657683
29+ else {
30+ let $acc1657683 = merge($acc0657683, $list657683[0])
31+ if (($size657683 == 1))
32+ then $acc1657683
33+ else {
34+ let $acc2657683 = merge($acc1657683, $list657683[1])
35+ if (($size657683 == 2))
36+ then $acc2657683
37+ else {
38+ let $acc3657683 = merge($acc2657683, $list657683[2])
39+ if (($size657683 == 3))
40+ then $acc3657683
41+ else {
42+ let $acc4657683 = merge($acc3657683, $list657683[3])
43+ if (($size657683 == 4))
44+ then $acc4657683
45+ else {
46+ let $acc5657683 = merge($acc4657683, $list657683[4])
47+ if (($size657683 == 5))
48+ then $acc5657683
49+ else {
50+ let $acc6657683 = merge($acc5657683, $list657683[5])
51+ if (($size657683 == 6))
52+ then $acc6657683
53+ else {
54+ let $acc7657683 = merge($acc6657683, $list657683[6])
55+ if (($size657683 == 7))
56+ then $acc7657683
57+ else {
58+ let $acc8657683 = merge($acc7657683, $list657683[7])
59+ if (($size657683 == 8))
60+ then $acc8657683
61+ else {
62+ let $acc9657683 = merge($acc8657683, $list657683[8])
63+ if (($size657683 == 9))
64+ then $acc9657683
65+ else {
66+ let $acc10657683 = merge($acc9657683, $list657683[9])
67+ if (($size657683 == 10))
68+ then $acc10657683
69+ else {
70+ let $acc11657683 = merge($acc10657683, $list657683[10])
71+ throw("List size exceed 10")
72+ }
73+ }
74+ }
75+ }
76+ }
77+ }
78+ }
79+ }
80+ }
81+ }
82+ }
83+ }
84+ WriteSet([DataEntry("Teste_1_List", s)])
2485 }
2586
2687
2788
2889 @Callable(i)
2990 func startScalping () = {
3091 let supplierAddress = toBase58String(i.caller.bytes)
3192 let arr = value(getString(this, "Teste_1_oAsk"))
3293 WriteSet([DataEntry(("Teste_1_" + supplierAddress), arr)])
3394 }
3495
3596

github/deemru/w8io/026f985 
47.88 ms