tx · 7M8f9ZPkScjYvukvRYAyvxGB6tU3SHTM97jx5vkgRc5N

3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH:  -0.05000000 Waves

2019.11.26 07:43 [781764] smart account 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH > SELF 0.00000000 Waves

{ "type": 13, "id": "7M8f9ZPkScjYvukvRYAyvxGB6tU3SHTM97jx5vkgRc5N", "fee": 5000000, "feeAssetId": null, "timestamp": 1574743454873, "version": 1, "sender": "3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH", "senderPublicKey": "9Pw6KBYMgEWmrg24tEc8SkHPhMUBwRmHaJoKjWgDkUAK", "proofs": [ "mA6pU7JoKPPoeUNLFARALXU3RtKhM6GkwuKyb31TfBiBB9TgYNVRSCbMF8Q9UivTgjbxJ1f42tg276684J7MvrY" ], "script": "base64:AAIDAAAAAAAAACcIARIDCgEIEgYKBAgICAESBAoCCAgSCQoHAQgBCAgBCBIFCgMICAgAAAAMAAAAAAROT05FAgAAAARub25lAAAAAAZvcmFjbGUJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05BY29lV2RVVFduOGNzWEpQRzQ3djFGanRqY2ZxeGI1dHUAAAAABWFza0lEAgAAAAVXQVZFUwAAAAAFYmlkSUQCAAAABVVTRC1OAAAAAAZtaW5QaXAAAAAAAAAPQkABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAA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AIAAAALX2Rvd25PdXRHVEQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACF9ncmlkQXNrAgAAAA51bmRlZmluZWQgYXNrcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAIX2dyaWRCaWQCAAAADnVuZGVmaW5lZCBiaWRzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAtfYmxvY2tTdGFydAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX2Jsb2NrU3RvcAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX3ByaWNlT3BlbgAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAALX3ByaWNlQ2xvc2UAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAB19wcm9maXQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9wcm9maXRGZWUAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAB19zdGF0dXMCAAAAB2NyZWF0ZWQFAAAAA25pbAAAAAB0/Afu", "chainId": 84, "height": 781764, "spentComplexity": 0 } View: original | compacted Prev: CUVZwaS1FPxQDSAi3PDQgNpW7Any3yeiNVSLKQDj7RzA Next: 4gHGZBTp2pmtha46QnqAEPVrTzd8enaAZ6RLNLuxpxnq Diff:
OldNewDifferences
205205 let sender = toBase58String(i.caller.bytes)
206206 let deposited = extract(i.payment)
207207 let keyID = genKeyID(addr)
208- let paymentAssetId = if (!(isDefined(deposited.assetId)))
209- then throw(("Não é waves: " + toBase58String(extract(deposited.assetId))))
210- else throw("É waves: ")
211- WriteSet([DataEntry((keyID + "_assetId"), toBase58String(extract(deposited.assetId)))])
208+ let paymentAssetId = if (isDefined(deposited.assetId))
209+ then toBase58String(extract(deposited.assetId))
210+ else "WAVES"
211+ WriteSet([DataEntry((keyID + "_assetId"), paymentAssetId)])
212212 }
213213
214214
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 @Callable(i)
5757 func sendGridAsk (gridA) = {
5858 let sender = toBase58String(i.caller.bytes)
5959 let gridAsk = split(gridA, "|")
6060 let ver = {
6161 let $list10671100 = gridAsk
6262 let $size10671100 = size($list10671100)
6363 let $acc010671100 = [69]
6464 if (($size10671100 == 0))
6565 then $acc010671100
6666 else {
6767 let $acc110671100 = genListInt($acc010671100, $list10671100[0])
6868 if (($size10671100 == 1))
6969 then $acc110671100
7070 else {
7171 let $acc210671100 = genListInt($acc110671100, $list10671100[1])
7272 if (($size10671100 == 2))
7373 then $acc210671100
7474 else {
7575 let $acc310671100 = genListInt($acc210671100, $list10671100[2])
7676 if (($size10671100 == 3))
7777 then $acc310671100
7878 else {
7979 let $acc410671100 = genListInt($acc310671100, $list10671100[3])
8080 if (($size10671100 == 4))
8181 then $acc410671100
8282 else {
8383 let $acc510671100 = genListInt($acc410671100, $list10671100[4])
8484 if (($size10671100 == 5))
8585 then $acc510671100
8686 else {
8787 let $acc610671100 = genListInt($acc510671100, $list10671100[5])
8888 if (($size10671100 == 6))
8989 then $acc610671100
9090 else {
9191 let $acc710671100 = genListInt($acc610671100, $list10671100[6])
9292 if (($size10671100 == 7))
9393 then $acc710671100
9494 else {
9595 let $acc810671100 = genListInt($acc710671100, $list10671100[7])
9696 if (($size10671100 == 8))
9797 then $acc810671100
9898 else {
9999 let $acc910671100 = genListInt($acc810671100, $list10671100[8])
100100 if (($size10671100 == 9))
101101 then $acc910671100
102102 else {
103103 let $acc1010671100 = genListInt($acc910671100, $list10671100[9])
104104 if (($size10671100 == 10))
105105 then $acc1010671100
106106 else {
107107 let $acc1110671100 = genListInt($acc1010671100, $list10671100[10])
108108 throw("List size exceed 10")
109109 }
110110 }
111111 }
112112 }
113113 }
114114 }
115115 }
116116 }
117117 }
118118 }
119119 }
120120 }
121121 WriteSet(nil)
122122 }
123123
124124
125125
126126 @Callable(i)
127127 func startScalp (title,gridA,gridB,step) = {
128128 let sender = toBase58String(i.caller.bytes)
129129 let deposited = extract(i.payment)
130130 let keyID = genKeyID(sender)
131131 let usdV = getIntegerValue(oracle, "waves_usd_2")
132132 if ((100000000 >= deposited.amount))
133133 then throw(("Amount under of required: " + toString(deposited.amount)))
134134 else {
135135 let arr = [5, 4, 3, 2, 1]
136136 let ver = {
137137 let $list18141838 = arr
138138 let $size18141838 = size($list18141838)
139139 let $acc018141838 = nil
140140 if (($size18141838 == 0))
141141 then $acc018141838
142142 else {
143143 let $acc118141838 = genList($acc018141838, $list18141838[0])
144144 if (($size18141838 == 1))
145145 then $acc118141838
146146 else {
147147 let $acc218141838 = genList($acc118141838, $list18141838[1])
148148 if (($size18141838 == 2))
149149 then $acc218141838
150150 else {
151151 let $acc318141838 = genList($acc218141838, $list18141838[2])
152152 if (($size18141838 == 3))
153153 then $acc318141838
154154 else {
155155 let $acc418141838 = genList($acc318141838, $list18141838[3])
156156 if (($size18141838 == 4))
157157 then $acc418141838
158158 else {
159159 let $acc518141838 = genList($acc418141838, $list18141838[4])
160160 if (($size18141838 == 5))
161161 then $acc518141838
162162 else {
163163 let $acc618141838 = genList($acc518141838, $list18141838[5])
164164 if (($size18141838 == 6))
165165 then $acc618141838
166166 else {
167167 let $acc718141838 = genList($acc618141838, $list18141838[6])
168168 if (($size18141838 == 7))
169169 then $acc718141838
170170 else {
171171 let $acc818141838 = genList($acc718141838, $list18141838[7])
172172 if (($size18141838 == 8))
173173 then $acc818141838
174174 else {
175175 let $acc918141838 = genList($acc818141838, $list18141838[8])
176176 if (($size18141838 == 9))
177177 then $acc918141838
178178 else {
179179 let $acc1018141838 = genList($acc918141838, $list18141838[9])
180180 if (($size18141838 == 10))
181181 then $acc1018141838
182182 else {
183183 let $acc1118141838 = genList($acc1018141838, $list18141838[10])
184184 throw("List size exceed 10")
185185 }
186186 }
187187 }
188188 }
189189 }
190190 }
191191 }
192192 }
193193 }
194194 }
195195 }
196196 }
197197 WriteSet(nil)
198198 }
199199 }
200200
201201
202202
203203 @Callable(i)
204204 func defineScalping (title,addr) = {
205205 let sender = toBase58String(i.caller.bytes)
206206 let deposited = extract(i.payment)
207207 let keyID = genKeyID(addr)
208- let paymentAssetId = if (!(isDefined(deposited.assetId)))
209- then throw(("Não é waves: " + toBase58String(extract(deposited.assetId))))
210- else throw("É waves: ")
211- WriteSet([DataEntry((keyID + "_assetId"), toBase58String(extract(deposited.assetId)))])
208+ let paymentAssetId = if (isDefined(deposited.assetId))
209+ then toBase58String(extract(deposited.assetId))
210+ else "WAVES"
211+ WriteSet([DataEntry((keyID + "_assetId"), paymentAssetId)])
212212 }
213213
214214
215215
216216 @Callable(i)
217217 func defineScalper (grid,reOrderOut,lifetime,addr,ordering,steps,title) = {
218218 let sender = toBase58String(i.caller.bytes)
219219 let keyID = genKeyID(addr)
220220 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")])
221221 }
222222
223223
224224
225225 @Callable(i)
226226 func createScalper (title,type,addr) = {
227227 let sender = toBase58String(i.caller.bytes)
228228 let keyID = genKeyID(addr)
229229 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")])
230230 }
231231
232232

github/deemru/w8io/026f985 
38.14 ms