tx · BSYg51q8R8dGXYRJKt3ikatRYyxKaHoDfdVS6aQWY1V6

3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH:  -0.05000000 Waves

2019.11.25 11:26 [780540] smart account 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH > SELF 0.00000000 Waves

{ "type": 13, "id": "BSYg51q8R8dGXYRJKt3ikatRYyxKaHoDfdVS6aQWY1V6", "fee": 5000000, "feeAssetId": null, "timestamp": 1574670448829, "version": 1, "sender": "3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH", "senderPublicKey": "9Pw6KBYMgEWmrg24tEc8SkHPhMUBwRmHaJoKjWgDkUAK", "proofs": [ "31v4r5pqwuE9UttFZUUsr33uTpAngRsn45L5XWYP4bnXwf79dvsRyq5yZ64poRDaJk4L9hU1adW8rztk9tyvFm3V" ], "script": "base64:AAIDAAAAAAAAACEIARIDCgEIEgYKBAgICAESBQoDCAgIEgkKBwgIAQEBCAgAAAAKAAAAAAROT05FAgAAAARub25lAAAAAAZvcmFjbGUJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05BY29lV2RVVFduOGNzWEpQRzQ3djFGanRqY2ZxeGI1dHUAAAAABWFza0lEAgAAAAVXQVZFUwAAAAAFYmlkSUQCAAAABVVTRC1OAAAAAAZtaW5QaXAAAAAAAAAPQkABAAAACGdlbktleUlEAAAAAQAAAARhZGRyCQACWAAAAAEJAAH3AAAAAQkAAZsAAAABCQABLAAAAAIFAAAABGFkZHIJAAQlAAAAAQUAAAAEdGhpcwEAAAAHZ2VuR3JpZAAAAAIAAAABYQAAAAFiAwkAAAAAAAACBQAAAAFhAgAAAAAJAAGkAAAAAQUAAAABYgkAASwAAAACCQABLAAAAAIFAAAAAWECAAAAAXwJAAGkAAAAAQUAAAABYgEAAAAHZ2VuTGlzdAAAAAIAAAABYQAAAAFiCQAETAAAAAIFAAAAAWIFAAAAAWEBAAAACmdlbkxpc3RJb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AAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAB19zdGF0dXMCAAAAB2NyZWF0ZWQFAAAAA25pbAAAAAFpAQAAAA1kZWZpbmVTY2FscGVyAAAABwAAAAV0aXRsZQAAAARhZGRyAAAABGdyaWQAAAAFc3RlcHMAAAAIbGlmZXRpbWUAAAAIb3JkZXJpbmcAAAAKcmVPcmRlck91dAQAAAAGc2VuZGVyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABWtleUlECQEAAAAIZ2VuS2V5SUQAAAABBQAAAARhZGRyCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAVfZ3JpZAUAAAAEZ3JpZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAGX3N0ZXBzBQAAAAVzdGVwcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAJX2xpZmV0aW1lBQAAAAhsaWZldGltZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAJX29yZGVyaW5nBQAAAAhvcmRlcmluZwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAALX3JlT3JkZXJPdXQFAAAACnJlT3JkZXJPdXQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAB19zdGF0dXMCAAAAB2RlZmluZWQFAAAAA25pbAAAAAAO3BCP", "chainId": 84, "height": 780540, "spentComplexity": 0 } View: original | compacted Prev: HPY7yoYDxR7WCPVo1qAau9iBypbY6EC81VQXbYEvHmhx Next: BbbzZNwS6nGX9mwABa5hQ4NAA9b3VDi789wMfpqgYLc6 Diff:
OldNewDifferences
179179
180180
181181 @Callable(i)
182+func createScalper (title,type,addr) = {
183+ let sender = toBase58String(i.caller.bytes)
184+ let keyID = genKeyID(addr)
185+ WriteSet([DataEntry((keyID + "_scalperID"), addr), DataEntry((keyID + "_title"), title), DataEntry((keyID + "_type"), type), DataEntry((keyID + "_grid"), 0), DataEntry((keyID + "_steps"), 0), DataEntry((keyID + "_lifetime"), 0), DataEntry((keyID + "_ordering"), "middle"), DataEntry((keyID + "_reOrderOut"), "middle"), DataEntry((keyID + "_fundraised"), 0), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), DataEntry((keyID + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_status"), "created")])
186+ }
187+
188+
189+
190+@Callable(i)
182191 func defineScalper (title,addr,grid,steps,lifetime,ordering,reOrderOut) = {
183192 let sender = toBase58String(i.caller.bytes)
184193 let keyID = genKeyID(addr)
186195 }
187196
188197
189-
190-@Callable(i)
191-func createScalper (title,type,addr) = {
192- let sender = toBase58String(i.caller.bytes)
193- let keyID = genKeyID(addr)
194- WriteSet([DataEntry((keyID + "_scalperID"), addr), DataEntry((keyID + "_title"), title), DataEntry((keyID + "_type"), type), DataEntry((keyID + "_grid"), 0), DataEntry((keyID + "_steps"), 0), DataEntry((keyID + "_lifetime"), 0), DataEntry((keyID + "_ordering"), "middle"), DataEntry((keyID + "_reOrderOut"), "middle"), DataEntry((keyID + "_fundraised"), 0), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), DataEntry((keyID + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_status"), "created")])
195- }
196-
197-
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
66 let oracle = addressFromStringValue("3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu")
77
88 let askID = "WAVES"
99
1010 let bidID = "USD-N"
1111
1212 let minPip = 1000000
1313
1414 func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this)))))
1515
1616
1717 func genGrid (a,b) = if ((a == ""))
1818 then toString(b)
1919 else ((a + "|") + toString(b))
2020
2121
2222 func genList (a,b) = b :: a
2323
2424
2525 func genListInt (a,b) = {
2626 let parseB = parseIntValue(b)
2727 (a[0] + 2) :: a
2828 }
2929
3030
3131 func revListInt (a,b) = b :: a
3232
3333
3434 @Callable(i)
3535 func sendGridAsk (gridA) = {
3636 let sender = toBase58String(i.caller.bytes)
3737 let gridAsk = split(gridA, "|")
3838 let ver = {
3939 let $list779812 = gridAsk
4040 let $size779812 = size($list779812)
4141 let $acc0779812 = [69]
4242 if (($size779812 == 0))
4343 then $acc0779812
4444 else {
4545 let $acc1779812 = genListInt($acc0779812, $list779812[0])
4646 if (($size779812 == 1))
4747 then $acc1779812
4848 else {
4949 let $acc2779812 = genListInt($acc1779812, $list779812[1])
5050 if (($size779812 == 2))
5151 then $acc2779812
5252 else {
5353 let $acc3779812 = genListInt($acc2779812, $list779812[2])
5454 if (($size779812 == 3))
5555 then $acc3779812
5656 else {
5757 let $acc4779812 = genListInt($acc3779812, $list779812[3])
5858 if (($size779812 == 4))
5959 then $acc4779812
6060 else {
6161 let $acc5779812 = genListInt($acc4779812, $list779812[4])
6262 if (($size779812 == 5))
6363 then $acc5779812
6464 else {
6565 let $acc6779812 = genListInt($acc5779812, $list779812[5])
6666 if (($size779812 == 6))
6767 then $acc6779812
6868 else {
6969 let $acc7779812 = genListInt($acc6779812, $list779812[6])
7070 if (($size779812 == 7))
7171 then $acc7779812
7272 else {
7373 let $acc8779812 = genListInt($acc7779812, $list779812[7])
7474 if (($size779812 == 8))
7575 then $acc8779812
7676 else {
7777 let $acc9779812 = genListInt($acc8779812, $list779812[8])
7878 if (($size779812 == 9))
7979 then $acc9779812
8080 else {
8181 let $acc10779812 = genListInt($acc9779812, $list779812[9])
8282 if (($size779812 == 10))
8383 then $acc10779812
8484 else {
8585 let $acc11779812 = genListInt($acc10779812, $list779812[10])
8686 throw("List size exceed 10")
8787 }
8888 }
8989 }
9090 }
9191 }
9292 }
9393 }
9494 }
9595 }
9696 }
9797 }
9898 }
9999 WriteSet(nil)
100100 }
101101
102102
103103
104104 @Callable(i)
105105 func defineScalping (title,gridA,gridB,step) = {
106106 let sender = toBase58String(i.caller.bytes)
107107 let deposited = extract(i.payment)
108108 let keyID = genKeyID(sender)
109109 let usdV = getIntegerValue(oracle, "waves_usd_2")
110110 if ((100000000 >= deposited.amount))
111111 then throw(("Amount under of required: " + toString(deposited.amount)))
112112 else {
113113 let arr = [5, 4, 3, 2, 1]
114114 let ver = {
115115 let $list15311555 = arr
116116 let $size15311555 = size($list15311555)
117117 let $acc015311555 = nil
118118 if (($size15311555 == 0))
119119 then $acc015311555
120120 else {
121121 let $acc115311555 = genList($acc015311555, $list15311555[0])
122122 if (($size15311555 == 1))
123123 then $acc115311555
124124 else {
125125 let $acc215311555 = genList($acc115311555, $list15311555[1])
126126 if (($size15311555 == 2))
127127 then $acc215311555
128128 else {
129129 let $acc315311555 = genList($acc215311555, $list15311555[2])
130130 if (($size15311555 == 3))
131131 then $acc315311555
132132 else {
133133 let $acc415311555 = genList($acc315311555, $list15311555[3])
134134 if (($size15311555 == 4))
135135 then $acc415311555
136136 else {
137137 let $acc515311555 = genList($acc415311555, $list15311555[4])
138138 if (($size15311555 == 5))
139139 then $acc515311555
140140 else {
141141 let $acc615311555 = genList($acc515311555, $list15311555[5])
142142 if (($size15311555 == 6))
143143 then $acc615311555
144144 else {
145145 let $acc715311555 = genList($acc615311555, $list15311555[6])
146146 if (($size15311555 == 7))
147147 then $acc715311555
148148 else {
149149 let $acc815311555 = genList($acc715311555, $list15311555[7])
150150 if (($size15311555 == 8))
151151 then $acc815311555
152152 else {
153153 let $acc915311555 = genList($acc815311555, $list15311555[8])
154154 if (($size15311555 == 9))
155155 then $acc915311555
156156 else {
157157 let $acc1015311555 = genList($acc915311555, $list15311555[9])
158158 if (($size15311555 == 10))
159159 then $acc1015311555
160160 else {
161161 let $acc1115311555 = genList($acc1015311555, $list15311555[10])
162162 throw("List size exceed 10")
163163 }
164164 }
165165 }
166166 }
167167 }
168168 }
169169 }
170170 }
171171 }
172172 }
173173 }
174174 }
175175 WriteSet(nil)
176176 }
177177 }
178178
179179
180180
181181 @Callable(i)
182+func createScalper (title,type,addr) = {
183+ let sender = toBase58String(i.caller.bytes)
184+ let keyID = genKeyID(addr)
185+ WriteSet([DataEntry((keyID + "_scalperID"), addr), DataEntry((keyID + "_title"), title), DataEntry((keyID + "_type"), type), DataEntry((keyID + "_grid"), 0), DataEntry((keyID + "_steps"), 0), DataEntry((keyID + "_lifetime"), 0), DataEntry((keyID + "_ordering"), "middle"), DataEntry((keyID + "_reOrderOut"), "middle"), DataEntry((keyID + "_fundraised"), 0), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), DataEntry((keyID + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_status"), "created")])
186+ }
187+
188+
189+
190+@Callable(i)
182191 func defineScalper (title,addr,grid,steps,lifetime,ordering,reOrderOut) = {
183192 let sender = toBase58String(i.caller.bytes)
184193 let keyID = genKeyID(addr)
185194 WriteSet([DataEntry((keyID + "_grid"), grid), DataEntry((keyID + "_steps"), steps), DataEntry((keyID + "_lifetime"), lifetime), DataEntry((keyID + "_ordering"), ordering), DataEntry((keyID + "_reOrderOut"), reOrderOut), DataEntry((keyID + "_status"), "defined")])
186195 }
187196
188197
189-
190-@Callable(i)
191-func createScalper (title,type,addr) = {
192- let sender = toBase58String(i.caller.bytes)
193- let keyID = genKeyID(addr)
194- WriteSet([DataEntry((keyID + "_scalperID"), addr), DataEntry((keyID + "_title"), title), DataEntry((keyID + "_type"), type), DataEntry((keyID + "_grid"), 0), DataEntry((keyID + "_steps"), 0), DataEntry((keyID + "_lifetime"), 0), DataEntry((keyID + "_ordering"), "middle"), DataEntry((keyID + "_reOrderOut"), "middle"), DataEntry((keyID + "_fundraised"), 0), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), DataEntry((keyID + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_status"), "created")])
195- }
196-
197-

github/deemru/w8io/026f985 
30.03 ms