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:AAIDAAAAAAAAACcIARIDCgEIEgYKBAgICAESBAoCCAgSCQoHAQgBCAgBCBIFCgMICAgAAAANAAAAAAROT05FAgAAAARub25lAAAAAAZvcmFjbGUJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05BY29lV2RVVFduOGNzWEpQRzQ3djFGanRqY2ZxeGI1dHUAAAAABWFza0lEAgAAAAVXQVZFUwAAAAAFYmlkSUQCAAAABVVTRC1OAAAAAAZtaW5QaXAAAAAAAAAPQkABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y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AACCQABLAAAAAIFAAAABWtleUlEAgAAAAhfZ3JpZEFzawIAAAAOdW5kZWZpbmVkIGFza3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACF9ncmlkQmlkAgAAAA51bmRlZmluZWQgYmlkcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAALX2Jsb2NrU3RhcnQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9ibG9ja1N0b3AAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9wcmljZU9wZW4AAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAC19wcmljZUNsb3NlAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAdfcHJvZml0AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAApfcHJvZml0RmVlAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAdfc3RhdHVzAgAAAAdjcmVhdGVkBQAAAANuaWwAAAAAybPD4g==", "chainId": 84, "height": 781674, "spentComplexity": 0 } View: original | compacted Prev: 6s8DPuobTjf12pEiEfoAVWCT36bddJF6neSSxZuMU1Hr Next: Dxra1EtHNr5Ya76oiXeup2VtXTRn5RP2Gw4WoZPZLpu6 Diff:
Old | New | Differences | |
---|---|---|---|
208 | 208 | let sender = toBase58String(i.caller.bytes) | |
209 | 209 | let deposited = extract(i.payment) | |
210 | 210 | let keyID = genKeyID(addr) | |
211 | - | let assetId = deposited.assetId | |
212 | - | WriteSet( | |
211 | + | let assetId = extract(deposited.assetId) | |
212 | + | WriteSet([DataEntry((keyID + "_assetId"), assetId)]) | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 |
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 | func teste (a) = a | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | @Callable(i) | |
60 | 60 | func sendGridAsk (gridA) = { | |
61 | 61 | let sender = toBase58String(i.caller.bytes) | |
62 | 62 | let gridAsk = split(gridA, "|") | |
63 | 63 | let ver = { | |
64 | 64 | let $list11031136 = gridAsk | |
65 | 65 | let $size11031136 = size($list11031136) | |
66 | 66 | let $acc011031136 = [69] | |
67 | 67 | if (($size11031136 == 0)) | |
68 | 68 | then $acc011031136 | |
69 | 69 | else { | |
70 | 70 | let $acc111031136 = genListInt($acc011031136, $list11031136[0]) | |
71 | 71 | if (($size11031136 == 1)) | |
72 | 72 | then $acc111031136 | |
73 | 73 | else { | |
74 | 74 | let $acc211031136 = genListInt($acc111031136, $list11031136[1]) | |
75 | 75 | if (($size11031136 == 2)) | |
76 | 76 | then $acc211031136 | |
77 | 77 | else { | |
78 | 78 | let $acc311031136 = genListInt($acc211031136, $list11031136[2]) | |
79 | 79 | if (($size11031136 == 3)) | |
80 | 80 | then $acc311031136 | |
81 | 81 | else { | |
82 | 82 | let $acc411031136 = genListInt($acc311031136, $list11031136[3]) | |
83 | 83 | if (($size11031136 == 4)) | |
84 | 84 | then $acc411031136 | |
85 | 85 | else { | |
86 | 86 | let $acc511031136 = genListInt($acc411031136, $list11031136[4]) | |
87 | 87 | if (($size11031136 == 5)) | |
88 | 88 | then $acc511031136 | |
89 | 89 | else { | |
90 | 90 | let $acc611031136 = genListInt($acc511031136, $list11031136[5]) | |
91 | 91 | if (($size11031136 == 6)) | |
92 | 92 | then $acc611031136 | |
93 | 93 | else { | |
94 | 94 | let $acc711031136 = genListInt($acc611031136, $list11031136[6]) | |
95 | 95 | if (($size11031136 == 7)) | |
96 | 96 | then $acc711031136 | |
97 | 97 | else { | |
98 | 98 | let $acc811031136 = genListInt($acc711031136, $list11031136[7]) | |
99 | 99 | if (($size11031136 == 8)) | |
100 | 100 | then $acc811031136 | |
101 | 101 | else { | |
102 | 102 | let $acc911031136 = genListInt($acc811031136, $list11031136[8]) | |
103 | 103 | if (($size11031136 == 9)) | |
104 | 104 | then $acc911031136 | |
105 | 105 | else { | |
106 | 106 | let $acc1011031136 = genListInt($acc911031136, $list11031136[9]) | |
107 | 107 | if (($size11031136 == 10)) | |
108 | 108 | then $acc1011031136 | |
109 | 109 | else { | |
110 | 110 | let $acc1111031136 = genListInt($acc1011031136, $list11031136[10]) | |
111 | 111 | throw("List size exceed 10") | |
112 | 112 | } | |
113 | 113 | } | |
114 | 114 | } | |
115 | 115 | } | |
116 | 116 | } | |
117 | 117 | } | |
118 | 118 | } | |
119 | 119 | } | |
120 | 120 | } | |
121 | 121 | } | |
122 | 122 | } | |
123 | 123 | } | |
124 | 124 | WriteSet(nil) | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | ||
129 | 129 | @Callable(i) | |
130 | 130 | func startScalp (title,gridA,gridB,step) = { | |
131 | 131 | let sender = toBase58String(i.caller.bytes) | |
132 | 132 | let deposited = extract(i.payment) | |
133 | 133 | let keyID = genKeyID(sender) | |
134 | 134 | let usdV = getIntegerValue(oracle, "waves_usd_2") | |
135 | 135 | if ((100000000 >= deposited.amount)) | |
136 | 136 | then throw(("Amount under of required: " + toString(deposited.amount))) | |
137 | 137 | else { | |
138 | 138 | let arr = [5, 4, 3, 2, 1] | |
139 | 139 | let ver = { | |
140 | 140 | let $list18501874 = arr | |
141 | 141 | let $size18501874 = size($list18501874) | |
142 | 142 | let $acc018501874 = nil | |
143 | 143 | if (($size18501874 == 0)) | |
144 | 144 | then $acc018501874 | |
145 | 145 | else { | |
146 | 146 | let $acc118501874 = genList($acc018501874, $list18501874[0]) | |
147 | 147 | if (($size18501874 == 1)) | |
148 | 148 | then $acc118501874 | |
149 | 149 | else { | |
150 | 150 | let $acc218501874 = genList($acc118501874, $list18501874[1]) | |
151 | 151 | if (($size18501874 == 2)) | |
152 | 152 | then $acc218501874 | |
153 | 153 | else { | |
154 | 154 | let $acc318501874 = genList($acc218501874, $list18501874[2]) | |
155 | 155 | if (($size18501874 == 3)) | |
156 | 156 | then $acc318501874 | |
157 | 157 | else { | |
158 | 158 | let $acc418501874 = genList($acc318501874, $list18501874[3]) | |
159 | 159 | if (($size18501874 == 4)) | |
160 | 160 | then $acc418501874 | |
161 | 161 | else { | |
162 | 162 | let $acc518501874 = genList($acc418501874, $list18501874[4]) | |
163 | 163 | if (($size18501874 == 5)) | |
164 | 164 | then $acc518501874 | |
165 | 165 | else { | |
166 | 166 | let $acc618501874 = genList($acc518501874, $list18501874[5]) | |
167 | 167 | if (($size18501874 == 6)) | |
168 | 168 | then $acc618501874 | |
169 | 169 | else { | |
170 | 170 | let $acc718501874 = genList($acc618501874, $list18501874[6]) | |
171 | 171 | if (($size18501874 == 7)) | |
172 | 172 | then $acc718501874 | |
173 | 173 | else { | |
174 | 174 | let $acc818501874 = genList($acc718501874, $list18501874[7]) | |
175 | 175 | if (($size18501874 == 8)) | |
176 | 176 | then $acc818501874 | |
177 | 177 | else { | |
178 | 178 | let $acc918501874 = genList($acc818501874, $list18501874[8]) | |
179 | 179 | if (($size18501874 == 9)) | |
180 | 180 | then $acc918501874 | |
181 | 181 | else { | |
182 | 182 | let $acc1018501874 = genList($acc918501874, $list18501874[9]) | |
183 | 183 | if (($size18501874 == 10)) | |
184 | 184 | then $acc1018501874 | |
185 | 185 | else { | |
186 | 186 | let $acc1118501874 = genList($acc1018501874, $list18501874[10]) | |
187 | 187 | throw("List size exceed 10") | |
188 | 188 | } | |
189 | 189 | } | |
190 | 190 | } | |
191 | 191 | } | |
192 | 192 | } | |
193 | 193 | } | |
194 | 194 | } | |
195 | 195 | } | |
196 | 196 | } | |
197 | 197 | } | |
198 | 198 | } | |
199 | 199 | } | |
200 | 200 | WriteSet(nil) | |
201 | 201 | } | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | ||
206 | 206 | @Callable(i) | |
207 | 207 | func defineScalping (title,addr) = { | |
208 | 208 | let sender = toBase58String(i.caller.bytes) | |
209 | 209 | let deposited = extract(i.payment) | |
210 | 210 | let keyID = genKeyID(addr) | |
211 | - | let assetId = deposited.assetId | |
212 | - | WriteSet( | |
211 | + | let assetId = extract(deposited.assetId) | |
212 | + | WriteSet([DataEntry((keyID + "_assetId"), assetId)]) | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(i) | |
218 | 218 | func defineScalper (grid,reOrderOut,lifetime,addr,ordering,steps,title) = { | |
219 | 219 | let sender = toBase58String(i.caller.bytes) | |
220 | 220 | let keyID = genKeyID(addr) | |
221 | 221 | 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 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Callable(i) | |
227 | 227 | func createScalper (title,type,addr) = { | |
228 | 228 | let sender = toBase58String(i.caller.bytes) | |
229 | 229 | let keyID = genKeyID(addr) | |
230 | 230 | 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 | 231 | } | |
232 | 232 | ||
233 | 233 |
github/deemru/w8io/026f985 38.33 ms ◑