tx · 4HAmismL1N68XjLjKEEf5xm4Nqcix3j9LeGQJRdYDnZU 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH: -0.05000000 Waves 2019.11.26 08:19 [781801] smart account 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH > SELF 0.00000000 Waves
{ "type": 13, "id": "4HAmismL1N68XjLjKEEf5xm4Nqcix3j9LeGQJRdYDnZU", "fee": 5000000, "feeAssetId": null, "timestamp": 1574745643744, "version": 1, "sender": "3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH", "senderPublicKey": "9Pw6KBYMgEWmrg24tEc8SkHPhMUBwRmHaJoKjWgDkUAK", "proofs": [ "229XJLRCTx5pynRRfH4QCiiL8cXFc5G1icRcr2TY1YMx3QsrautPxByVQgT4mni1WkiKwSoPojn8WA6o5VSxeNrU" ], "script": "base64:AAIDAAAAAAAAACcIARIDCgEIEgYKBAgICAESBAoCCAgSCQoHAQgBCAgBCBIFCgMICAgAAAAMAAAAAAROT05FAgAAAARub25lAAAAAAZvcmFjbGUJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05BY29lV2RVVFduOGNzWEpQRzQ3djFGanRqY2ZxeGI1dHUAAAAABWFza0lEAgAAAAVXQVZFUwAAAAAFYmlkSUQCAAAABVVTRC1OAAAAAAZtaW5QaXAAAAAAAAAPQkABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZT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AACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAALX2Rvd25PdXRHVEQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACF9ncmlkQXNrAgAAAA51bmRlZmluZWQgYXNrcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAIX2dyaWRCaWQCAAAADnVuZGVmaW5lZCBiaWRzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAtfYmxvY2tTdGFydAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX2Jsb2NrU3RvcAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX3ByaWNlT3BlbgAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAALX3ByaWNlQ2xvc2UAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAB19wcm9maXQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9wcm9maXRGZWUAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAB19zdGF0dXMCAAAAB2NyZWF0ZWQFAAAAA25pbAAAAAChGvij", "chainId": 84, "height": 781801, "spentComplexity": 0 } View: original | compacted Prev: BNeaNzbcQsdCbE2pUH3KGjrkhrSo1TtDJSefbaiBxcqL Next: JB7j4D4ytxZcicNp1x3TnaCysEZq6uWM58YJJxPCN65S Diff:
Old | New | Differences | |
---|---|---|---|
203 | 203 | @Callable(i) | |
204 | 204 | func defineScalping (title,addr) = { | |
205 | 205 | let sender = toBase58String(i.caller.bytes) | |
206 | - | let | |
206 | + | let found = extract(i.payment) | |
207 | 207 | let keyID = genKeyID(addr) | |
208 | - | let x = extract(payment.assetId) | |
209 | - | let Y = toBase58String(x) | |
210 | - | if (isDefined(Y)) | |
211 | - | then throw(("This is asset ID: " + Y)) | |
212 | - | else WriteSet([DataEntry((keyID + "_assetId"), Y)]) | |
208 | + | let assetID = if (isDefined(found.assetId)) | |
209 | + | then toBase58String(extract(found.assetId)) | |
210 | + | else "WAVES" | |
211 | + | if (isDefined(assetID)) | |
212 | + | then throw(("O asset é: " + assetID)) | |
213 | + | else WriteSet([DataEntry((keyID + "_assetId"), assetID)]) | |
213 | 214 | } | |
214 | 215 | ||
215 | 216 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let NONE = "none" | |
5 | 5 | ||
6 | 6 | let oracle = addressFromStringValue("3NAcoeWdUTWn8csXJPG47v1Fjtjcfqxb5tu") | |
7 | 7 | ||
8 | 8 | let askID = "WAVES" | |
9 | 9 | ||
10 | 10 | let bidID = "USD-N" | |
11 | 11 | ||
12 | 12 | let minPip = 1000000 | |
13 | 13 | ||
14 | 14 | func getNumberByKey (key) = { | |
15 | 15 | let num = match getInteger(this, key) { | |
16 | 16 | case a: Int => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | 0 | |
20 | 20 | } | |
21 | 21 | num | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func getStrByKey (key) = { | |
26 | 26 | let str = match getString(this, key) { | |
27 | 27 | case a: String => | |
28 | 28 | a | |
29 | 29 | case _ => | |
30 | 30 | NONE | |
31 | 31 | } | |
32 | 32 | str | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this))))) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func genGrid (a,b) = if ((a == "")) | |
40 | 40 | then toString(b) | |
41 | 41 | else ((a + "|") + toString(b)) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func genList (a,b) = b :: a | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func genListInt (a,b) = { | |
48 | 48 | let parseB = parseIntValue(b) | |
49 | 49 | (a[0] + 2) :: a | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func revListInt (a,b) = b :: a | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | @Callable(i) | |
57 | 57 | func sendGridAsk (gridA) = { | |
58 | 58 | let sender = toBase58String(i.caller.bytes) | |
59 | 59 | let gridAsk = split(gridA, "|") | |
60 | 60 | let ver = { | |
61 | 61 | let $list10671100 = gridAsk | |
62 | 62 | let $size10671100 = size($list10671100) | |
63 | 63 | let $acc010671100 = [69] | |
64 | 64 | if (($size10671100 == 0)) | |
65 | 65 | then $acc010671100 | |
66 | 66 | else { | |
67 | 67 | let $acc110671100 = genListInt($acc010671100, $list10671100[0]) | |
68 | 68 | if (($size10671100 == 1)) | |
69 | 69 | then $acc110671100 | |
70 | 70 | else { | |
71 | 71 | let $acc210671100 = genListInt($acc110671100, $list10671100[1]) | |
72 | 72 | if (($size10671100 == 2)) | |
73 | 73 | then $acc210671100 | |
74 | 74 | else { | |
75 | 75 | let $acc310671100 = genListInt($acc210671100, $list10671100[2]) | |
76 | 76 | if (($size10671100 == 3)) | |
77 | 77 | then $acc310671100 | |
78 | 78 | else { | |
79 | 79 | let $acc410671100 = genListInt($acc310671100, $list10671100[3]) | |
80 | 80 | if (($size10671100 == 4)) | |
81 | 81 | then $acc410671100 | |
82 | 82 | else { | |
83 | 83 | let $acc510671100 = genListInt($acc410671100, $list10671100[4]) | |
84 | 84 | if (($size10671100 == 5)) | |
85 | 85 | then $acc510671100 | |
86 | 86 | else { | |
87 | 87 | let $acc610671100 = genListInt($acc510671100, $list10671100[5]) | |
88 | 88 | if (($size10671100 == 6)) | |
89 | 89 | then $acc610671100 | |
90 | 90 | else { | |
91 | 91 | let $acc710671100 = genListInt($acc610671100, $list10671100[6]) | |
92 | 92 | if (($size10671100 == 7)) | |
93 | 93 | then $acc710671100 | |
94 | 94 | else { | |
95 | 95 | let $acc810671100 = genListInt($acc710671100, $list10671100[7]) | |
96 | 96 | if (($size10671100 == 8)) | |
97 | 97 | then $acc810671100 | |
98 | 98 | else { | |
99 | 99 | let $acc910671100 = genListInt($acc810671100, $list10671100[8]) | |
100 | 100 | if (($size10671100 == 9)) | |
101 | 101 | then $acc910671100 | |
102 | 102 | else { | |
103 | 103 | let $acc1010671100 = genListInt($acc910671100, $list10671100[9]) | |
104 | 104 | if (($size10671100 == 10)) | |
105 | 105 | then $acc1010671100 | |
106 | 106 | else { | |
107 | 107 | let $acc1110671100 = genListInt($acc1010671100, $list10671100[10]) | |
108 | 108 | throw("List size exceed 10") | |
109 | 109 | } | |
110 | 110 | } | |
111 | 111 | } | |
112 | 112 | } | |
113 | 113 | } | |
114 | 114 | } | |
115 | 115 | } | |
116 | 116 | } | |
117 | 117 | } | |
118 | 118 | } | |
119 | 119 | } | |
120 | 120 | } | |
121 | 121 | WriteSet(nil) | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | ||
126 | 126 | @Callable(i) | |
127 | 127 | func startScalp (title,gridA,gridB,step) = { | |
128 | 128 | let sender = toBase58String(i.caller.bytes) | |
129 | 129 | let deposited = extract(i.payment) | |
130 | 130 | let keyID = genKeyID(sender) | |
131 | 131 | let usdV = getIntegerValue(oracle, "waves_usd_2") | |
132 | 132 | if ((100000000 >= deposited.amount)) | |
133 | 133 | then throw(("Amount under of required: " + toString(deposited.amount))) | |
134 | 134 | else { | |
135 | 135 | let arr = [5, 4, 3, 2, 1] | |
136 | 136 | let ver = { | |
137 | 137 | let $list18141838 = arr | |
138 | 138 | let $size18141838 = size($list18141838) | |
139 | 139 | let $acc018141838 = nil | |
140 | 140 | if (($size18141838 == 0)) | |
141 | 141 | then $acc018141838 | |
142 | 142 | else { | |
143 | 143 | let $acc118141838 = genList($acc018141838, $list18141838[0]) | |
144 | 144 | if (($size18141838 == 1)) | |
145 | 145 | then $acc118141838 | |
146 | 146 | else { | |
147 | 147 | let $acc218141838 = genList($acc118141838, $list18141838[1]) | |
148 | 148 | if (($size18141838 == 2)) | |
149 | 149 | then $acc218141838 | |
150 | 150 | else { | |
151 | 151 | let $acc318141838 = genList($acc218141838, $list18141838[2]) | |
152 | 152 | if (($size18141838 == 3)) | |
153 | 153 | then $acc318141838 | |
154 | 154 | else { | |
155 | 155 | let $acc418141838 = genList($acc318141838, $list18141838[3]) | |
156 | 156 | if (($size18141838 == 4)) | |
157 | 157 | then $acc418141838 | |
158 | 158 | else { | |
159 | 159 | let $acc518141838 = genList($acc418141838, $list18141838[4]) | |
160 | 160 | if (($size18141838 == 5)) | |
161 | 161 | then $acc518141838 | |
162 | 162 | else { | |
163 | 163 | let $acc618141838 = genList($acc518141838, $list18141838[5]) | |
164 | 164 | if (($size18141838 == 6)) | |
165 | 165 | then $acc618141838 | |
166 | 166 | else { | |
167 | 167 | let $acc718141838 = genList($acc618141838, $list18141838[6]) | |
168 | 168 | if (($size18141838 == 7)) | |
169 | 169 | then $acc718141838 | |
170 | 170 | else { | |
171 | 171 | let $acc818141838 = genList($acc718141838, $list18141838[7]) | |
172 | 172 | if (($size18141838 == 8)) | |
173 | 173 | then $acc818141838 | |
174 | 174 | else { | |
175 | 175 | let $acc918141838 = genList($acc818141838, $list18141838[8]) | |
176 | 176 | if (($size18141838 == 9)) | |
177 | 177 | then $acc918141838 | |
178 | 178 | else { | |
179 | 179 | let $acc1018141838 = genList($acc918141838, $list18141838[9]) | |
180 | 180 | if (($size18141838 == 10)) | |
181 | 181 | then $acc1018141838 | |
182 | 182 | else { | |
183 | 183 | let $acc1118141838 = genList($acc1018141838, $list18141838[10]) | |
184 | 184 | throw("List size exceed 10") | |
185 | 185 | } | |
186 | 186 | } | |
187 | 187 | } | |
188 | 188 | } | |
189 | 189 | } | |
190 | 190 | } | |
191 | 191 | } | |
192 | 192 | } | |
193 | 193 | } | |
194 | 194 | } | |
195 | 195 | } | |
196 | 196 | } | |
197 | 197 | WriteSet(nil) | |
198 | 198 | } | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | ||
203 | 203 | @Callable(i) | |
204 | 204 | func defineScalping (title,addr) = { | |
205 | 205 | let sender = toBase58String(i.caller.bytes) | |
206 | - | let | |
206 | + | let found = extract(i.payment) | |
207 | 207 | let keyID = genKeyID(addr) | |
208 | - | let x = extract(payment.assetId) | |
209 | - | let Y = toBase58String(x) | |
210 | - | if (isDefined(Y)) | |
211 | - | then throw(("This is asset ID: " + Y)) | |
212 | - | else WriteSet([DataEntry((keyID + "_assetId"), Y)]) | |
208 | + | let assetID = if (isDefined(found.assetId)) | |
209 | + | then toBase58String(extract(found.assetId)) | |
210 | + | else "WAVES" | |
211 | + | if (isDefined(assetID)) | |
212 | + | then throw(("O asset é: " + assetID)) | |
213 | + | else WriteSet([DataEntry((keyID + "_assetId"), assetID)]) | |
213 | 214 | } | |
214 | 215 | ||
215 | 216 | ||
216 | 217 | ||
217 | 218 | @Callable(i) | |
218 | 219 | func defineScalper (grid,reOrderOut,lifetime,addr,ordering,steps,title) = { | |
219 | 220 | let sender = toBase58String(i.caller.bytes) | |
220 | 221 | let keyID = genKeyID(addr) | |
221 | 222 | 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")]) | |
222 | 223 | } | |
223 | 224 | ||
224 | 225 | ||
225 | 226 | ||
226 | 227 | @Callable(i) | |
227 | 228 | func createScalper (title,type,addr) = { | |
228 | 229 | let sender = toBase58String(i.caller.bytes) | |
229 | 230 | let keyID = genKeyID(addr) | |
230 | 231 | 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")]) | |
231 | 232 | } | |
232 | 233 | ||
233 | 234 |
github/deemru/w8io/026f985 35.14 ms ◑