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(o)
182-func defineScalper (H,g,ac,ad,ae,af,ag) = {
182+func createScalper (H,ac,g) = {
183183 let q = toBase58String(o.caller.bytes)
184184 let L = f(g)
185- WriteSet([DataEntry((L + "_grid"), ac), DataEntry((L + "_steps"), ad), DataEntry((L + "_lifetime"), ae), DataEntry((L + "_ordering"), af), DataEntry((L + "_reOrderOut"), ag), DataEntry((L + "_status"), "defined")])
185+ WriteSet([DataEntry((L + "_scalperID"), g), DataEntry((L + "_title"), H), DataEntry((L + "_type"), ac), DataEntry((L + "_grid"), 0), DataEntry((L + "_steps"), 0), DataEntry((L + "_lifetime"), 0), DataEntry((L + "_ordering"), "middle"), DataEntry((L + "_reOrderOut"), "middle"), DataEntry((L + "_fundraised"), 0), DataEntry((L + "_priceOpen"), 0), DataEntry((L + "_priceClose"), 0), DataEntry((L + "_upOutGTD"), 0), DataEntry((L + "_downOutGTD"), 0), DataEntry((L + "_profit"), 0), DataEntry((L + "_profitFee"), 0), DataEntry((L + "_gridAsk"), "undefined asks"), DataEntry((L + "_gridBid"), "undefined bids"), DataEntry((L + "_blockStart"), 0), DataEntry((L + "_blockStop"), 0), DataEntry((L + "_status"), "created")])
186186 }
187187
188188
189189
190190 @Callable(o)
191-func createScalper (H,ah,g) = {
191+func defineScalper (H,g,ad,ae,af,ag,ah) = {
192192 let q = toBase58String(o.caller.bytes)
193193 let L = f(g)
194- WriteSet([DataEntry((L + "_scalperID"), g), DataEntry((L + "_title"), H), DataEntry((L + "_type"), ah), DataEntry((L + "_grid"), 0), DataEntry((L + "_steps"), 0), DataEntry((L + "_lifetime"), 0), DataEntry((L + "_ordering"), "middle"), DataEntry((L + "_reOrderOut"), "middle"), DataEntry((L + "_fundraised"), 0), DataEntry((L + "_priceOpen"), 0), DataEntry((L + "_priceClose"), 0), DataEntry((L + "_upOutGTD"), 0), DataEntry((L + "_downOutGTD"), 0), DataEntry((L + "_profit"), 0), DataEntry((L + "_profitFee"), 0), DataEntry((L + "_gridAsk"), "undefined asks"), DataEntry((L + "_gridBid"), "undefined bids"), DataEntry((L + "_blockStart"), 0), DataEntry((L + "_blockStop"), 0), DataEntry((L + "_status"), "created")])
194+ WriteSet([DataEntry((L + "_grid"), ad), DataEntry((L + "_steps"), ae), DataEntry((L + "_lifetime"), af), DataEntry((L + "_ordering"), ag), DataEntry((L + "_reOrderOut"), ah), DataEntry((L + "_status"), "defined")])
195195 }
196196
197197
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "none"
55
66 let b = addressFromStringValue("3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu")
77
88 let c = "WAVES"
99
1010 let d = "USD-N"
1111
1212 let e = 1000000
1313
1414 func f (g) = toBase58String(sha256(toBytes((g + toString(this)))))
1515
1616
1717 func h (i,j) = if ((i == ""))
1818 then toString(j)
1919 else ((i + "|") + toString(j))
2020
2121
2222 func k (i,j) = j :: i
2323
2424
2525 func l (i,j) = {
2626 let m = parseIntValue(j)
2727 (i[0] + 2) :: i
2828 }
2929
3030
3131 func n (i,j) = j :: i
3232
3333
3434 @Callable(o)
3535 func sendGridAsk (p) = {
3636 let q = toBase58String(o.caller.bytes)
3737 let r = split(p, "|")
3838 let s = {
3939 let t = r
4040 let u = size(t)
4141 let v = [69]
4242 if ((u == 0))
4343 then v
4444 else {
4545 let w = l(v, t[0])
4646 if ((u == 1))
4747 then w
4848 else {
4949 let x = l(w, t[1])
5050 if ((u == 2))
5151 then x
5252 else {
5353 let y = l(x, t[2])
5454 if ((u == 3))
5555 then y
5656 else {
5757 let z = l(y, t[3])
5858 if ((u == 4))
5959 then z
6060 else {
6161 let A = l(z, t[4])
6262 if ((u == 5))
6363 then A
6464 else {
6565 let B = l(A, t[5])
6666 if ((u == 6))
6767 then B
6868 else {
6969 let C = l(B, t[6])
7070 if ((u == 7))
7171 then C
7272 else {
7373 let D = l(C, t[7])
7474 if ((u == 8))
7575 then D
7676 else {
7777 let E = l(D, t[8])
7878 if ((u == 9))
7979 then E
8080 else {
8181 let F = l(E, t[9])
8282 if ((u == 10))
8383 then F
8484 else {
8585 let G = l(F, t[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(o)
105105 func defineScalping (H,p,I,J) = {
106106 let q = toBase58String(o.caller.bytes)
107107 let K = extract(o.payment)
108108 let L = f(q)
109109 let M = getIntegerValue(b, "waves_usd_2")
110110 if ((100000000 >= K.amount))
111111 then throw(("Amount under of required: " + toString(K.amount)))
112112 else {
113113 let N = [5, 4, 3, 2, 1]
114114 let s = {
115115 let O = N
116116 let P = size(O)
117117 let Q = nil
118118 if ((P == 0))
119119 then Q
120120 else {
121121 let R = k(Q, O[0])
122122 if ((P == 1))
123123 then R
124124 else {
125125 let S = k(R, O[1])
126126 if ((P == 2))
127127 then S
128128 else {
129129 let T = k(S, O[2])
130130 if ((P == 3))
131131 then T
132132 else {
133133 let U = k(T, O[3])
134134 if ((P == 4))
135135 then U
136136 else {
137137 let V = k(U, O[4])
138138 if ((P == 5))
139139 then V
140140 else {
141141 let W = k(V, O[5])
142142 if ((P == 6))
143143 then W
144144 else {
145145 let X = k(W, O[6])
146146 if ((P == 7))
147147 then X
148148 else {
149149 let Y = k(X, O[7])
150150 if ((P == 8))
151151 then Y
152152 else {
153153 let Z = k(Y, O[8])
154154 if ((P == 9))
155155 then Z
156156 else {
157157 let aa = k(Z, O[9])
158158 if ((P == 10))
159159 then aa
160160 else {
161161 let ab = k(aa, O[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(o)
182-func defineScalper (H,g,ac,ad,ae,af,ag) = {
182+func createScalper (H,ac,g) = {
183183 let q = toBase58String(o.caller.bytes)
184184 let L = f(g)
185- WriteSet([DataEntry((L + "_grid"), ac), DataEntry((L + "_steps"), ad), DataEntry((L + "_lifetime"), ae), DataEntry((L + "_ordering"), af), DataEntry((L + "_reOrderOut"), ag), DataEntry((L + "_status"), "defined")])
185+ WriteSet([DataEntry((L + "_scalperID"), g), DataEntry((L + "_title"), H), DataEntry((L + "_type"), ac), DataEntry((L + "_grid"), 0), DataEntry((L + "_steps"), 0), DataEntry((L + "_lifetime"), 0), DataEntry((L + "_ordering"), "middle"), DataEntry((L + "_reOrderOut"), "middle"), DataEntry((L + "_fundraised"), 0), DataEntry((L + "_priceOpen"), 0), DataEntry((L + "_priceClose"), 0), DataEntry((L + "_upOutGTD"), 0), DataEntry((L + "_downOutGTD"), 0), DataEntry((L + "_profit"), 0), DataEntry((L + "_profitFee"), 0), DataEntry((L + "_gridAsk"), "undefined asks"), DataEntry((L + "_gridBid"), "undefined bids"), DataEntry((L + "_blockStart"), 0), DataEntry((L + "_blockStop"), 0), DataEntry((L + "_status"), "created")])
186186 }
187187
188188
189189
190190 @Callable(o)
191-func createScalper (H,ah,g) = {
191+func defineScalper (H,g,ad,ae,af,ag,ah) = {
192192 let q = toBase58String(o.caller.bytes)
193193 let L = f(g)
194- WriteSet([DataEntry((L + "_scalperID"), g), DataEntry((L + "_title"), H), DataEntry((L + "_type"), ah), DataEntry((L + "_grid"), 0), DataEntry((L + "_steps"), 0), DataEntry((L + "_lifetime"), 0), DataEntry((L + "_ordering"), "middle"), DataEntry((L + "_reOrderOut"), "middle"), DataEntry((L + "_fundraised"), 0), DataEntry((L + "_priceOpen"), 0), DataEntry((L + "_priceClose"), 0), DataEntry((L + "_upOutGTD"), 0), DataEntry((L + "_downOutGTD"), 0), DataEntry((L + "_profit"), 0), DataEntry((L + "_profitFee"), 0), DataEntry((L + "_gridAsk"), "undefined asks"), DataEntry((L + "_gridBid"), "undefined bids"), DataEntry((L + "_blockStart"), 0), DataEntry((L + "_blockStop"), 0), DataEntry((L + "_status"), "created")])
194+ WriteSet([DataEntry((L + "_grid"), ad), DataEntry((L + "_steps"), ae), DataEntry((L + "_lifetime"), af), DataEntry((L + "_ordering"), ag), DataEntry((L + "_reOrderOut"), ah), DataEntry((L + "_status"), "defined")])
195195 }
196196
197197

github/deemru/w8io/026f985 
48.69 ms