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:AAIDAAAAAAAAACcIARIDCgEIEgYKBAgICAESBAoCCAgSCQoHAQgBCAgBCBIFCgMICAgAAAAMAAAAAAROT05FAgAAAARub25lAAAAAAZvcmFjbGUJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05BY29lV2RVVFduOGNzWEpQRzQ3djFGanRqY2ZxeGI1dHUAAAAABWFza0lEAgAAAAVXQVZFUwAAAAAFYmlkSUQCAAAABVVTRC1OAAAAAAZtaW5QaXAAAAAAAAAPQkABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAA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IAAAALX2Rvd25PdXRHVEQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACF9ncmlkQXNrAgAAAA51bmRlZmluZWQgYXNrcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAIX2dyaWRCaWQCAAAADnVuZGVmaW5lZCBiaWRzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAtfYmxvY2tTdGFydAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX2Jsb2NrU3RvcAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX3ByaWNlT3BlbgAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAALX3ByaWNlQ2xvc2UAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAB19wcm9maXQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9wcm9maXRGZWUAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAB19zdGF0dXMCAAAAB2NyZWF0ZWQFAAAAA25pbAAAAAB0/Afu", "chainId": 84, "height": 781764, "spentComplexity": 0 } View: original | compacted Prev: CUVZwaS1FPxQDSAi3PDQgNpW7Any3yeiNVSLKQDj7RzA Next: 4gHGZBTp2pmtha46QnqAEPVrTzd8enaAZ6RLNLuxpxnq Diff:
Old | New | Differences | |
---|---|---|---|
211 | 211 | let w = toBase58String(u.caller.bytes) | |
212 | 212 | let Q = extract(u.payment) | |
213 | 213 | let R = m(n) | |
214 | - | let ai = if ( | |
215 | - | then | |
216 | - | else | |
217 | - | WriteSet([DataEntry((R + "_assetId"), | |
214 | + | let ai = if (isDefined(Q.assetId)) | |
215 | + | then toBase58String(extract(Q.assetId)) | |
216 | + | else "WAVES" | |
217 | + | WriteSet([DataEntry((R + "_assetId"), ai)]) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "none" | |
5 | 5 | ||
6 | 6 | let b = addressFromStringValue("3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu") | |
7 | 7 | ||
8 | 8 | let c = "WAVES" | |
9 | 9 | ||
10 | 10 | let d = "USD-N" | |
11 | 11 | ||
12 | 12 | let e = 1000000 | |
13 | 13 | ||
14 | 14 | func f (g) = { | |
15 | 15 | let h = { | |
16 | 16 | let i = getInteger(this, g) | |
17 | 17 | if ($isInstanceOf(i, "Int")) | |
18 | 18 | then { | |
19 | 19 | let j = i | |
20 | 20 | j | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | h | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func k (g) = { | |
29 | 29 | let l = { | |
30 | 30 | let i = getString(this, g) | |
31 | 31 | if ($isInstanceOf(i, "String")) | |
32 | 32 | then { | |
33 | 33 | let j = i | |
34 | 34 | j | |
35 | 35 | } | |
36 | 36 | else a | |
37 | 37 | } | |
38 | 38 | l | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func m (n) = toBase58String(sha256(toBytes((n + toString(this))))) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func o (j,p) = if ((j == "")) | |
46 | 46 | then toString(p) | |
47 | 47 | else ((j + "|") + toString(p)) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func q (j,p) = p :: j | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func r (j,p) = { | |
54 | 54 | let s = parseIntValue(p) | |
55 | 55 | (j[0] + 2) :: j | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func t (j,p) = p :: j | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | @Callable(u) | |
63 | 63 | func sendGridAsk (v) = { | |
64 | 64 | let w = toBase58String(u.caller.bytes) | |
65 | 65 | let x = split(v, "|") | |
66 | 66 | let y = { | |
67 | 67 | let z = x | |
68 | 68 | let A = size(z) | |
69 | 69 | let B = [69] | |
70 | 70 | if ((A == 0)) | |
71 | 71 | then B | |
72 | 72 | else { | |
73 | 73 | let C = r(B, z[0]) | |
74 | 74 | if ((A == 1)) | |
75 | 75 | then C | |
76 | 76 | else { | |
77 | 77 | let D = r(C, z[1]) | |
78 | 78 | if ((A == 2)) | |
79 | 79 | then D | |
80 | 80 | else { | |
81 | 81 | let E = r(D, z[2]) | |
82 | 82 | if ((A == 3)) | |
83 | 83 | then E | |
84 | 84 | else { | |
85 | 85 | let F = r(E, z[3]) | |
86 | 86 | if ((A == 4)) | |
87 | 87 | then F | |
88 | 88 | else { | |
89 | 89 | let G = r(F, z[4]) | |
90 | 90 | if ((A == 5)) | |
91 | 91 | then G | |
92 | 92 | else { | |
93 | 93 | let H = r(G, z[5]) | |
94 | 94 | if ((A == 6)) | |
95 | 95 | then H | |
96 | 96 | else { | |
97 | 97 | let I = r(H, z[6]) | |
98 | 98 | if ((A == 7)) | |
99 | 99 | then I | |
100 | 100 | else { | |
101 | 101 | let J = r(I, z[7]) | |
102 | 102 | if ((A == 8)) | |
103 | 103 | then J | |
104 | 104 | else { | |
105 | 105 | let K = r(J, z[8]) | |
106 | 106 | if ((A == 9)) | |
107 | 107 | then K | |
108 | 108 | else { | |
109 | 109 | let L = r(K, z[9]) | |
110 | 110 | if ((A == 10)) | |
111 | 111 | then L | |
112 | 112 | else { | |
113 | 113 | let M = r(L, z[10]) | |
114 | 114 | throw("List size exceed 10") | |
115 | 115 | } | |
116 | 116 | } | |
117 | 117 | } | |
118 | 118 | } | |
119 | 119 | } | |
120 | 120 | } | |
121 | 121 | } | |
122 | 122 | } | |
123 | 123 | } | |
124 | 124 | } | |
125 | 125 | } | |
126 | 126 | } | |
127 | 127 | WriteSet(nil) | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(u) | |
133 | 133 | func startScalp (N,v,O,P) = { | |
134 | 134 | let w = toBase58String(u.caller.bytes) | |
135 | 135 | let Q = extract(u.payment) | |
136 | 136 | let R = m(w) | |
137 | 137 | let S = getIntegerValue(b, "waves_usd_2") | |
138 | 138 | if ((100000000 >= Q.amount)) | |
139 | 139 | then throw(("Amount under of required: " + toString(Q.amount))) | |
140 | 140 | else { | |
141 | 141 | let T = [5, 4, 3, 2, 1] | |
142 | 142 | let y = { | |
143 | 143 | let U = T | |
144 | 144 | let V = size(U) | |
145 | 145 | let W = nil | |
146 | 146 | if ((V == 0)) | |
147 | 147 | then W | |
148 | 148 | else { | |
149 | 149 | let X = q(W, U[0]) | |
150 | 150 | if ((V == 1)) | |
151 | 151 | then X | |
152 | 152 | else { | |
153 | 153 | let Y = q(X, U[1]) | |
154 | 154 | if ((V == 2)) | |
155 | 155 | then Y | |
156 | 156 | else { | |
157 | 157 | let Z = q(Y, U[2]) | |
158 | 158 | if ((V == 3)) | |
159 | 159 | then Z | |
160 | 160 | else { | |
161 | 161 | let aa = q(Z, U[3]) | |
162 | 162 | if ((V == 4)) | |
163 | 163 | then aa | |
164 | 164 | else { | |
165 | 165 | let ab = q(aa, U[4]) | |
166 | 166 | if ((V == 5)) | |
167 | 167 | then ab | |
168 | 168 | else { | |
169 | 169 | let ac = q(ab, U[5]) | |
170 | 170 | if ((V == 6)) | |
171 | 171 | then ac | |
172 | 172 | else { | |
173 | 173 | let ad = q(ac, U[6]) | |
174 | 174 | if ((V == 7)) | |
175 | 175 | then ad | |
176 | 176 | else { | |
177 | 177 | let ae = q(ad, U[7]) | |
178 | 178 | if ((V == 8)) | |
179 | 179 | then ae | |
180 | 180 | else { | |
181 | 181 | let af = q(ae, U[8]) | |
182 | 182 | if ((V == 9)) | |
183 | 183 | then af | |
184 | 184 | else { | |
185 | 185 | let ag = q(af, U[9]) | |
186 | 186 | if ((V == 10)) | |
187 | 187 | then ag | |
188 | 188 | else { | |
189 | 189 | let ah = q(ag, U[10]) | |
190 | 190 | throw("List size exceed 10") | |
191 | 191 | } | |
192 | 192 | } | |
193 | 193 | } | |
194 | 194 | } | |
195 | 195 | } | |
196 | 196 | } | |
197 | 197 | } | |
198 | 198 | } | |
199 | 199 | } | |
200 | 200 | } | |
201 | 201 | } | |
202 | 202 | } | |
203 | 203 | WriteSet(nil) | |
204 | 204 | } | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | ||
209 | 209 | @Callable(u) | |
210 | 210 | func defineScalping (N,n) = { | |
211 | 211 | let w = toBase58String(u.caller.bytes) | |
212 | 212 | let Q = extract(u.payment) | |
213 | 213 | let R = m(n) | |
214 | - | let ai = if ( | |
215 | - | then | |
216 | - | else | |
217 | - | WriteSet([DataEntry((R + "_assetId"), | |
214 | + | let ai = if (isDefined(Q.assetId)) | |
215 | + | then toBase58String(extract(Q.assetId)) | |
216 | + | else "WAVES" | |
217 | + | WriteSet([DataEntry((R + "_assetId"), ai)]) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | ||
222 | 222 | @Callable(u) | |
223 | 223 | func defineScalper (aj,ak,al,n,am,an,N) = { | |
224 | 224 | let w = toBase58String(u.caller.bytes) | |
225 | 225 | let R = m(n) | |
226 | 226 | WriteSet([DataEntry((R + "_grid"), aj), DataEntry((R + "_steps"), an), DataEntry((R + "_lifetime"), al), DataEntry((R + "_ordering"), am), DataEntry((R + "_reOrderOut"), ak), DataEntry((R + "_status"), "defined")]) | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | ||
231 | 231 | @Callable(u) | |
232 | 232 | func createScalper (N,ao,n) = { | |
233 | 233 | let w = toBase58String(u.caller.bytes) | |
234 | 234 | let R = m(n) | |
235 | 235 | WriteSet([DataEntry((R + "_scalperID"), n), DataEntry((R + "_title"), N), DataEntry((R + "_type"), ao), DataEntry((R + "_grid"), 0), DataEntry((R + "_steps"), 0), DataEntry((R + "_lifetime"), 0), DataEntry((R + "_ordering"), "middle"), DataEntry((R + "_reOrderOut"), "middle"), DataEntry((R + "_fundraised"), 0), DataEntry((R + "_upOutGTD"), 0), DataEntry((R + "_downOutGTD"), 0), DataEntry((R + "_gridAsk"), "undefined asks"), DataEntry((R + "_gridBid"), "undefined bids"), DataEntry((R + "_blockStart"), 0), DataEntry((R + "_blockStop"), 0), DataEntry((R + "_priceOpen"), 0), DataEntry((R + "_priceClose"), 0), DataEntry((R + "_profit"), 0), DataEntry((R + "_profitFee"), 0), DataEntry((R + "_status"), "created")]) | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 |
github/deemru/w8io/026f985 32.69 ms ◑