tx · 5KxgTKe4FLVRnP8QRvzzRy6onbdhaC4nEHG1yJ8b2ggy

3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH:  -0.05000000 Waves

2019.11.26 06:14 [781674] smart account 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH > SELF 0.00000000 Waves

{ "type": 13, "id": "5KxgTKe4FLVRnP8QRvzzRy6onbdhaC4nEHG1yJ8b2ggy", "fee": 5000000, "feeAssetId": null, "timestamp": 1574738119252, "version": 1, "sender": "3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH", "senderPublicKey": "9Pw6KBYMgEWmrg24tEc8SkHPhMUBwRmHaJoKjWgDkUAK", "proofs": [ "2yz8qL1JX8FYJuGndG7p3JGcjRD55AQkwyq1N9XQ97Txyh6xYeZs6oa3xVmqMMt9dSizuRok5D3zs5MYG8Lzxdjk" ], "script": "base64:AAIDAAAAAAAAACcIARIDCgEIEgYKBAgICAESBAoCCAgSCQoHAQgBCAgBCBIFCgMICAgAAAANAAAAAAROT05FAgAAAARub25lAAAAAAZvcmFjbGUJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05BY29lV2RVVFduOGNzWEpQRzQ3djFGanRqY2ZxeGI1dHUAAAAABWFza0lEAgAAAAVXQVZFUwAAAAAFYmlkSUQCAAAABVVTRC1OAAAAAAZtaW5QaXAAAAAAAAAPQkABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0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AAACCQABLAAAAAIFAAAABWtleUlEAgAAAAhfZ3JpZEFzawIAAAAOdW5kZWZpbmVkIGFza3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACF9ncmlkQmlkAgAAAA51bmRlZmluZWQgYmlkcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAALX2Jsb2NrU3RhcnQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9ibG9ja1N0b3AAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9wcmljZU9wZW4AAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAC19wcmljZUNsb3NlAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAdfcHJvZml0AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAApfcHJvZml0RmVlAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAdfc3RhdHVzAgAAAAdjcmVhdGVkBQAAAANuaWwAAAAAybPD4g==", "chainId": 84, "height": 781674, "spentComplexity": 0 } View: original | compacted Prev: 6s8DPuobTjf12pEiEfoAVWCT36bddJF6neSSxZuMU1Hr Next: Dxra1EtHNr5Ya76oiXeup2VtXTRn5RP2Gw4WoZPZLpu6 Diff:
OldNewDifferences
208208 let sender = toBase58String(i.caller.bytes)
209209 let deposited = extract(i.payment)
210210 let keyID = genKeyID(addr)
211- let assetId = deposited.assetId
212- WriteSet(nil)
211+ let assetId = extract(deposited.assetId)
212+ WriteSet([DataEntry((keyID + "_assetId"), assetId)])
213213 }
214214
215215
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 getNumberByKey (key) = {
1515 let num = match getInteger(this, key) {
1616 case a: Int =>
1717 a
1818 case _ =>
1919 0
2020 }
2121 num
2222 }
2323
2424
2525 func getStrByKey (key) = {
2626 let str = match getString(this, key) {
2727 case a: String =>
2828 a
2929 case _ =>
3030 NONE
3131 }
3232 str
3333 }
3434
3535
3636 func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this)))))
3737
3838
3939 func genGrid (a,b) = if ((a == ""))
4040 then toString(b)
4141 else ((a + "|") + toString(b))
4242
4343
4444 func genList (a,b) = b :: a
4545
4646
4747 func genListInt (a,b) = {
4848 let parseB = parseIntValue(b)
4949 (a[0] + 2) :: a
5050 }
5151
5252
5353 func revListInt (a,b) = b :: a
5454
5555
5656 func teste (a) = a
5757
5858
5959 @Callable(i)
6060 func sendGridAsk (gridA) = {
6161 let sender = toBase58String(i.caller.bytes)
6262 let gridAsk = split(gridA, "|")
6363 let ver = {
6464 let $list11031136 = gridAsk
6565 let $size11031136 = size($list11031136)
6666 let $acc011031136 = [69]
6767 if (($size11031136 == 0))
6868 then $acc011031136
6969 else {
7070 let $acc111031136 = genListInt($acc011031136, $list11031136[0])
7171 if (($size11031136 == 1))
7272 then $acc111031136
7373 else {
7474 let $acc211031136 = genListInt($acc111031136, $list11031136[1])
7575 if (($size11031136 == 2))
7676 then $acc211031136
7777 else {
7878 let $acc311031136 = genListInt($acc211031136, $list11031136[2])
7979 if (($size11031136 == 3))
8080 then $acc311031136
8181 else {
8282 let $acc411031136 = genListInt($acc311031136, $list11031136[3])
8383 if (($size11031136 == 4))
8484 then $acc411031136
8585 else {
8686 let $acc511031136 = genListInt($acc411031136, $list11031136[4])
8787 if (($size11031136 == 5))
8888 then $acc511031136
8989 else {
9090 let $acc611031136 = genListInt($acc511031136, $list11031136[5])
9191 if (($size11031136 == 6))
9292 then $acc611031136
9393 else {
9494 let $acc711031136 = genListInt($acc611031136, $list11031136[6])
9595 if (($size11031136 == 7))
9696 then $acc711031136
9797 else {
9898 let $acc811031136 = genListInt($acc711031136, $list11031136[7])
9999 if (($size11031136 == 8))
100100 then $acc811031136
101101 else {
102102 let $acc911031136 = genListInt($acc811031136, $list11031136[8])
103103 if (($size11031136 == 9))
104104 then $acc911031136
105105 else {
106106 let $acc1011031136 = genListInt($acc911031136, $list11031136[9])
107107 if (($size11031136 == 10))
108108 then $acc1011031136
109109 else {
110110 let $acc1111031136 = genListInt($acc1011031136, $list11031136[10])
111111 throw("List size exceed 10")
112112 }
113113 }
114114 }
115115 }
116116 }
117117 }
118118 }
119119 }
120120 }
121121 }
122122 }
123123 }
124124 WriteSet(nil)
125125 }
126126
127127
128128
129129 @Callable(i)
130130 func startScalp (title,gridA,gridB,step) = {
131131 let sender = toBase58String(i.caller.bytes)
132132 let deposited = extract(i.payment)
133133 let keyID = genKeyID(sender)
134134 let usdV = getIntegerValue(oracle, "waves_usd_2")
135135 if ((100000000 >= deposited.amount))
136136 then throw(("Amount under of required: " + toString(deposited.amount)))
137137 else {
138138 let arr = [5, 4, 3, 2, 1]
139139 let ver = {
140140 let $list18501874 = arr
141141 let $size18501874 = size($list18501874)
142142 let $acc018501874 = nil
143143 if (($size18501874 == 0))
144144 then $acc018501874
145145 else {
146146 let $acc118501874 = genList($acc018501874, $list18501874[0])
147147 if (($size18501874 == 1))
148148 then $acc118501874
149149 else {
150150 let $acc218501874 = genList($acc118501874, $list18501874[1])
151151 if (($size18501874 == 2))
152152 then $acc218501874
153153 else {
154154 let $acc318501874 = genList($acc218501874, $list18501874[2])
155155 if (($size18501874 == 3))
156156 then $acc318501874
157157 else {
158158 let $acc418501874 = genList($acc318501874, $list18501874[3])
159159 if (($size18501874 == 4))
160160 then $acc418501874
161161 else {
162162 let $acc518501874 = genList($acc418501874, $list18501874[4])
163163 if (($size18501874 == 5))
164164 then $acc518501874
165165 else {
166166 let $acc618501874 = genList($acc518501874, $list18501874[5])
167167 if (($size18501874 == 6))
168168 then $acc618501874
169169 else {
170170 let $acc718501874 = genList($acc618501874, $list18501874[6])
171171 if (($size18501874 == 7))
172172 then $acc718501874
173173 else {
174174 let $acc818501874 = genList($acc718501874, $list18501874[7])
175175 if (($size18501874 == 8))
176176 then $acc818501874
177177 else {
178178 let $acc918501874 = genList($acc818501874, $list18501874[8])
179179 if (($size18501874 == 9))
180180 then $acc918501874
181181 else {
182182 let $acc1018501874 = genList($acc918501874, $list18501874[9])
183183 if (($size18501874 == 10))
184184 then $acc1018501874
185185 else {
186186 let $acc1118501874 = genList($acc1018501874, $list18501874[10])
187187 throw("List size exceed 10")
188188 }
189189 }
190190 }
191191 }
192192 }
193193 }
194194 }
195195 }
196196 }
197197 }
198198 }
199199 }
200200 WriteSet(nil)
201201 }
202202 }
203203
204204
205205
206206 @Callable(i)
207207 func defineScalping (title,addr) = {
208208 let sender = toBase58String(i.caller.bytes)
209209 let deposited = extract(i.payment)
210210 let keyID = genKeyID(addr)
211- let assetId = deposited.assetId
212- WriteSet(nil)
211+ let assetId = extract(deposited.assetId)
212+ WriteSet([DataEntry((keyID + "_assetId"), assetId)])
213213 }
214214
215215
216216
217217 @Callable(i)
218218 func defineScalper (grid,reOrderOut,lifetime,addr,ordering,steps,title) = {
219219 let sender = toBase58String(i.caller.bytes)
220220 let keyID = genKeyID(addr)
221221 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")])
222222 }
223223
224224
225225
226226 @Callable(i)
227227 func createScalper (title,type,addr) = {
228228 let sender = toBase58String(i.caller.bytes)
229229 let keyID = genKeyID(addr)
230230 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 + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_status"), "created")])
231231 }
232232
233233

github/deemru/w8io/026f985 
31.18 ms