tx · DydJSZpWUnXuzF1ZFPQvXgiFKeBGgR6WVE7nsEXrdt8p 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH: -0.05000000 Waves 2019.11.26 05:54 [781653] smart account 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH > SELF 0.00000000 Waves
{ "type": 13, "id": "DydJSZpWUnXuzF1ZFPQvXgiFKeBGgR6WVE7nsEXrdt8p", "fee": 5000000, "feeAssetId": null, "timestamp": 1574736826064, "version": 1, "sender": "3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH", "senderPublicKey": "9Pw6KBYMgEWmrg24tEc8SkHPhMUBwRmHaJoKjWgDkUAK", "proofs": [ "2TBKDSTJ31vG1BrrzNr6aBTV7GsXSXgYTjvP4F8Kfw8d7rx1o3azRhnKkPpSixchCvLtaKS4mXmmPMsnwB2womct" ], "script": "base64:AAIDAAAAAAAAACcIARIDCgEIEgYKBAgICAESBAoCCAgSCQoHAQgBCAgBCBIFCgMICAgAAAANAAAAAAROT05FAgAAAARub25lAAAAAAZvcmFjbGUJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM05BY29lV2RVVFduOGNzWEpQRzQ3djFGanRqY2ZxeGI1dHUAAAAABWFza0lEAgAAAAVXQVZFUwAAAAAFYmlkSUQCAAAABVVTRC1OAAAAAAZtaW5QaXAAAAAAAAAPQkABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gw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AJX3VwT3V0R1REAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAtfZG93bk91dEdURAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAIX2dyaWRBc2sCAAAADnVuZGVmaW5lZCBhc2tzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAhfZ3JpZEJpZAIAAAAOdW5kZWZpbmVkIGJpZHMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAC19ibG9ja1N0YXJ0AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAApfYmxvY2tTdG9wAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAApfcHJpY2VPcGVuAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAtfcHJpY2VDbG9zZQAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAHX3Byb2ZpdAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX3Byb2ZpdEZlZQAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAHX3N0YXR1cwIAAAAHY3JlYXRlZAUAAAADbmlsAAAAANthmzY=", "chainId": 84, "height": 781653, "spentComplexity": 0 } View: original | compacted Prev: BbbzZNwS6nGX9mwABa5hQ4NAA9b3VDi789wMfpqgYLc6 Next: 6s8DPuobTjf12pEiEfoAVWCT36bddJF6neSSxZuMU1Hr Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | let bidID = "USD-N" | |
11 | 11 | ||
12 | 12 | let minPip = 1000000 | |
13 | + | ||
14 | + | func getNumberByKey (key) = { | |
15 | + | let num = match getInteger(this, key) { | |
16 | + | case a: Int => | |
17 | + | a | |
18 | + | case _ => | |
19 | + | 0 | |
20 | + | } | |
21 | + | num | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | func getStrByKey (key) = { | |
26 | + | let str = match getString(this, key) { | |
27 | + | case a: String => | |
28 | + | a | |
29 | + | case _ => | |
30 | + | NONE | |
31 | + | } | |
32 | + | str | |
33 | + | } | |
34 | + | ||
13 | 35 | ||
14 | 36 | func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this))))) | |
15 | 37 | ||
31 | 53 | func revListInt (a,b) = b :: a | |
32 | 54 | ||
33 | 55 | ||
56 | + | func teste (a) = a | |
57 | + | ||
58 | + | ||
34 | 59 | @Callable(i) | |
35 | 60 | func sendGridAsk (gridA) = { | |
36 | 61 | let sender = toBase58String(i.caller.bytes) | |
37 | 62 | let gridAsk = split(gridA, "|") | |
38 | 63 | let ver = { | |
39 | - | let $ | |
40 | - | let $ | |
41 | - | let $ | |
42 | - | if (($ | |
43 | - | then $ | |
64 | + | let $list11021135 = gridAsk | |
65 | + | let $size11021135 = size($list11021135) | |
66 | + | let $acc011021135 = [69] | |
67 | + | if (($size11021135 == 0)) | |
68 | + | then $acc011021135 | |
44 | 69 | else { | |
45 | - | let $ | |
46 | - | if (($ | |
47 | - | then $ | |
70 | + | let $acc111021135 = genListInt($acc011021135, $list11021135[0]) | |
71 | + | if (($size11021135 == 1)) | |
72 | + | then $acc111021135 | |
48 | 73 | else { | |
49 | - | let $ | |
50 | - | if (($ | |
51 | - | then $ | |
74 | + | let $acc211021135 = genListInt($acc111021135, $list11021135[1]) | |
75 | + | if (($size11021135 == 2)) | |
76 | + | then $acc211021135 | |
52 | 77 | else { | |
53 | - | let $ | |
54 | - | if (($ | |
55 | - | then $ | |
78 | + | let $acc311021135 = genListInt($acc211021135, $list11021135[2]) | |
79 | + | if (($size11021135 == 3)) | |
80 | + | then $acc311021135 | |
56 | 81 | else { | |
57 | - | let $ | |
58 | - | if (($ | |
59 | - | then $ | |
82 | + | let $acc411021135 = genListInt($acc311021135, $list11021135[3]) | |
83 | + | if (($size11021135 == 4)) | |
84 | + | then $acc411021135 | |
60 | 85 | else { | |
61 | - | let $ | |
62 | - | if (($ | |
63 | - | then $ | |
86 | + | let $acc511021135 = genListInt($acc411021135, $list11021135[4]) | |
87 | + | if (($size11021135 == 5)) | |
88 | + | then $acc511021135 | |
64 | 89 | else { | |
65 | - | let $ | |
66 | - | if (($ | |
67 | - | then $ | |
90 | + | let $acc611021135 = genListInt($acc511021135, $list11021135[5]) | |
91 | + | if (($size11021135 == 6)) | |
92 | + | then $acc611021135 | |
68 | 93 | else { | |
69 | - | let $ | |
70 | - | if (($ | |
71 | - | then $ | |
94 | + | let $acc711021135 = genListInt($acc611021135, $list11021135[6]) | |
95 | + | if (($size11021135 == 7)) | |
96 | + | then $acc711021135 | |
72 | 97 | else { | |
73 | - | let $ | |
74 | - | if (($ | |
75 | - | then $ | |
98 | + | let $acc811021135 = genListInt($acc711021135, $list11021135[7]) | |
99 | + | if (($size11021135 == 8)) | |
100 | + | then $acc811021135 | |
76 | 101 | else { | |
77 | - | let $ | |
78 | - | if (($ | |
79 | - | then $ | |
102 | + | let $acc911021135 = genListInt($acc811021135, $list11021135[8]) | |
103 | + | if (($size11021135 == 9)) | |
104 | + | then $acc911021135 | |
80 | 105 | else { | |
81 | - | let $ | |
82 | - | if (($ | |
83 | - | then $ | |
106 | + | let $acc1011021135 = genListInt($acc911021135, $list11021135[9]) | |
107 | + | if (($size11021135 == 10)) | |
108 | + | then $acc1011021135 | |
84 | 109 | else { | |
85 | - | let $ | |
110 | + | let $acc1111021135 = genListInt($acc1011021135, $list11021135[10]) | |
86 | 111 | throw("List size exceed 10") | |
87 | 112 | } | |
88 | 113 | } | |
102 | 127 | ||
103 | 128 | ||
104 | 129 | @Callable(i) | |
105 | - | func | |
130 | + | func startScalp (title,gridA,gridB,step) = { | |
106 | 131 | let sender = toBase58String(i.caller.bytes) | |
107 | 132 | let deposited = extract(i.payment) | |
108 | 133 | let keyID = genKeyID(sender) | |
112 | 137 | else { | |
113 | 138 | let arr = [5, 4, 3, 2, 1] | |
114 | 139 | let ver = { | |
115 | - | let $ | |
116 | - | let $ | |
117 | - | let $ | |
118 | - | if (($ | |
119 | - | then $ | |
140 | + | let $list18491873 = arr | |
141 | + | let $size18491873 = size($list18491873) | |
142 | + | let $acc018491873 = nil | |
143 | + | if (($size18491873 == 0)) | |
144 | + | then $acc018491873 | |
120 | 145 | else { | |
121 | - | let $ | |
122 | - | if (($ | |
123 | - | then $ | |
146 | + | let $acc118491873 = genList($acc018491873, $list18491873[0]) | |
147 | + | if (($size18491873 == 1)) | |
148 | + | then $acc118491873 | |
124 | 149 | else { | |
125 | - | let $ | |
126 | - | if (($ | |
127 | - | then $ | |
150 | + | let $acc218491873 = genList($acc118491873, $list18491873[1]) | |
151 | + | if (($size18491873 == 2)) | |
152 | + | then $acc218491873 | |
128 | 153 | else { | |
129 | - | let $ | |
130 | - | if (($ | |
131 | - | then $ | |
154 | + | let $acc318491873 = genList($acc218491873, $list18491873[2]) | |
155 | + | if (($size18491873 == 3)) | |
156 | + | then $acc318491873 | |
132 | 157 | else { | |
133 | - | let $ | |
134 | - | if (($ | |
135 | - | then $ | |
158 | + | let $acc418491873 = genList($acc318491873, $list18491873[3]) | |
159 | + | if (($size18491873 == 4)) | |
160 | + | then $acc418491873 | |
136 | 161 | else { | |
137 | - | let $ | |
138 | - | if (($ | |
139 | - | then $ | |
162 | + | let $acc518491873 = genList($acc418491873, $list18491873[4]) | |
163 | + | if (($size18491873 == 5)) | |
164 | + | then $acc518491873 | |
140 | 165 | else { | |
141 | - | let $ | |
142 | - | if (($ | |
143 | - | then $ | |
166 | + | let $acc618491873 = genList($acc518491873, $list18491873[5]) | |
167 | + | if (($size18491873 == 6)) | |
168 | + | then $acc618491873 | |
144 | 169 | else { | |
145 | - | let $ | |
146 | - | if (($ | |
147 | - | then $ | |
170 | + | let $acc718491873 = genList($acc618491873, $list18491873[6]) | |
171 | + | if (($size18491873 == 7)) | |
172 | + | then $acc718491873 | |
148 | 173 | else { | |
149 | - | let $ | |
150 | - | if (($ | |
151 | - | then $ | |
174 | + | let $acc818491873 = genList($acc718491873, $list18491873[7]) | |
175 | + | if (($size18491873 == 8)) | |
176 | + | then $acc818491873 | |
152 | 177 | else { | |
153 | - | let $ | |
154 | - | if (($ | |
155 | - | then $ | |
178 | + | let $acc918491873 = genList($acc818491873, $list18491873[8]) | |
179 | + | if (($size18491873 == 9)) | |
180 | + | then $acc918491873 | |
156 | 181 | else { | |
157 | - | let $ | |
158 | - | if (($ | |
159 | - | then $ | |
182 | + | let $acc1018491873 = genList($acc918491873, $list18491873[9]) | |
183 | + | if (($size18491873 == 10)) | |
184 | + | then $acc1018491873 | |
160 | 185 | else { | |
161 | - | let $ | |
186 | + | let $acc1118491873 = genList($acc1018491873, $list18491873[10]) | |
162 | 187 | throw("List size exceed 10") | |
163 | 188 | } | |
164 | 189 | } | |
179 | 204 | ||
180 | 205 | ||
181 | 206 | @Callable(i) | |
182 | - | func | |
207 | + | func defineScalping (title,addr) = { | |
183 | 208 | let sender = toBase58String(i.caller.bytes) | |
209 | + | let deposited = extract(i.payment) | |
184 | 210 | let keyID = genKeyID(addr) | |
185 | - | 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 + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), DataEntry((keyID + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_status"), "created")]) | |
211 | + | let assetId = extract(deposited.assetId) | |
212 | + | if ((toBase58String(assetId) == "Waves")) | |
213 | + | then throw(("Token is " + toBase58String(assetId))) | |
214 | + | else if ((toBase58String(assetId) != "Waves")) | |
215 | + | then throw(("Token is not is waves is" + toBase58String(assetId))) | |
216 | + | else WriteSet(nil) | |
186 | 217 | } | |
187 | 218 | ||
188 | 219 | ||
195 | 226 | } | |
196 | 227 | ||
197 | 228 | ||
229 | + | ||
230 | + | @Callable(i) | |
231 | + | func createScalper (title,type,addr) = { | |
232 | + | let sender = toBase58String(i.caller.bytes) | |
233 | + | let keyID = genKeyID(addr) | |
234 | + | 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")]) | |
235 | + | } | |
236 | + | ||
237 | + |
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 | + | ||
14 | + | func getNumberByKey (key) = { | |
15 | + | let num = match getInteger(this, key) { | |
16 | + | case a: Int => | |
17 | + | a | |
18 | + | case _ => | |
19 | + | 0 | |
20 | + | } | |
21 | + | num | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | func getStrByKey (key) = { | |
26 | + | let str = match getString(this, key) { | |
27 | + | case a: String => | |
28 | + | a | |
29 | + | case _ => | |
30 | + | NONE | |
31 | + | } | |
32 | + | str | |
33 | + | } | |
34 | + | ||
13 | 35 | ||
14 | 36 | func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this))))) | |
15 | 37 | ||
16 | 38 | ||
17 | 39 | func genGrid (a,b) = if ((a == "")) | |
18 | 40 | then toString(b) | |
19 | 41 | else ((a + "|") + toString(b)) | |
20 | 42 | ||
21 | 43 | ||
22 | 44 | func genList (a,b) = b :: a | |
23 | 45 | ||
24 | 46 | ||
25 | 47 | func genListInt (a,b) = { | |
26 | 48 | let parseB = parseIntValue(b) | |
27 | 49 | (a[0] + 2) :: a | |
28 | 50 | } | |
29 | 51 | ||
30 | 52 | ||
31 | 53 | func revListInt (a,b) = b :: a | |
32 | 54 | ||
33 | 55 | ||
56 | + | func teste (a) = a | |
57 | + | ||
58 | + | ||
34 | 59 | @Callable(i) | |
35 | 60 | func sendGridAsk (gridA) = { | |
36 | 61 | let sender = toBase58String(i.caller.bytes) | |
37 | 62 | let gridAsk = split(gridA, "|") | |
38 | 63 | let ver = { | |
39 | - | let $ | |
40 | - | let $ | |
41 | - | let $ | |
42 | - | if (($ | |
43 | - | then $ | |
64 | + | let $list11021135 = gridAsk | |
65 | + | let $size11021135 = size($list11021135) | |
66 | + | let $acc011021135 = [69] | |
67 | + | if (($size11021135 == 0)) | |
68 | + | then $acc011021135 | |
44 | 69 | else { | |
45 | - | let $ | |
46 | - | if (($ | |
47 | - | then $ | |
70 | + | let $acc111021135 = genListInt($acc011021135, $list11021135[0]) | |
71 | + | if (($size11021135 == 1)) | |
72 | + | then $acc111021135 | |
48 | 73 | else { | |
49 | - | let $ | |
50 | - | if (($ | |
51 | - | then $ | |
74 | + | let $acc211021135 = genListInt($acc111021135, $list11021135[1]) | |
75 | + | if (($size11021135 == 2)) | |
76 | + | then $acc211021135 | |
52 | 77 | else { | |
53 | - | let $ | |
54 | - | if (($ | |
55 | - | then $ | |
78 | + | let $acc311021135 = genListInt($acc211021135, $list11021135[2]) | |
79 | + | if (($size11021135 == 3)) | |
80 | + | then $acc311021135 | |
56 | 81 | else { | |
57 | - | let $ | |
58 | - | if (($ | |
59 | - | then $ | |
82 | + | let $acc411021135 = genListInt($acc311021135, $list11021135[3]) | |
83 | + | if (($size11021135 == 4)) | |
84 | + | then $acc411021135 | |
60 | 85 | else { | |
61 | - | let $ | |
62 | - | if (($ | |
63 | - | then $ | |
86 | + | let $acc511021135 = genListInt($acc411021135, $list11021135[4]) | |
87 | + | if (($size11021135 == 5)) | |
88 | + | then $acc511021135 | |
64 | 89 | else { | |
65 | - | let $ | |
66 | - | if (($ | |
67 | - | then $ | |
90 | + | let $acc611021135 = genListInt($acc511021135, $list11021135[5]) | |
91 | + | if (($size11021135 == 6)) | |
92 | + | then $acc611021135 | |
68 | 93 | else { | |
69 | - | let $ | |
70 | - | if (($ | |
71 | - | then $ | |
94 | + | let $acc711021135 = genListInt($acc611021135, $list11021135[6]) | |
95 | + | if (($size11021135 == 7)) | |
96 | + | then $acc711021135 | |
72 | 97 | else { | |
73 | - | let $ | |
74 | - | if (($ | |
75 | - | then $ | |
98 | + | let $acc811021135 = genListInt($acc711021135, $list11021135[7]) | |
99 | + | if (($size11021135 == 8)) | |
100 | + | then $acc811021135 | |
76 | 101 | else { | |
77 | - | let $ | |
78 | - | if (($ | |
79 | - | then $ | |
102 | + | let $acc911021135 = genListInt($acc811021135, $list11021135[8]) | |
103 | + | if (($size11021135 == 9)) | |
104 | + | then $acc911021135 | |
80 | 105 | else { | |
81 | - | let $ | |
82 | - | if (($ | |
83 | - | then $ | |
106 | + | let $acc1011021135 = genListInt($acc911021135, $list11021135[9]) | |
107 | + | if (($size11021135 == 10)) | |
108 | + | then $acc1011021135 | |
84 | 109 | else { | |
85 | - | let $ | |
110 | + | let $acc1111021135 = genListInt($acc1011021135, $list11021135[10]) | |
86 | 111 | throw("List size exceed 10") | |
87 | 112 | } | |
88 | 113 | } | |
89 | 114 | } | |
90 | 115 | } | |
91 | 116 | } | |
92 | 117 | } | |
93 | 118 | } | |
94 | 119 | } | |
95 | 120 | } | |
96 | 121 | } | |
97 | 122 | } | |
98 | 123 | } | |
99 | 124 | WriteSet(nil) | |
100 | 125 | } | |
101 | 126 | ||
102 | 127 | ||
103 | 128 | ||
104 | 129 | @Callable(i) | |
105 | - | func | |
130 | + | func startScalp (title,gridA,gridB,step) = { | |
106 | 131 | let sender = toBase58String(i.caller.bytes) | |
107 | 132 | let deposited = extract(i.payment) | |
108 | 133 | let keyID = genKeyID(sender) | |
109 | 134 | let usdV = getIntegerValue(oracle, "waves_usd_2") | |
110 | 135 | if ((100000000 >= deposited.amount)) | |
111 | 136 | then throw(("Amount under of required: " + toString(deposited.amount))) | |
112 | 137 | else { | |
113 | 138 | let arr = [5, 4, 3, 2, 1] | |
114 | 139 | let ver = { | |
115 | - | let $ | |
116 | - | let $ | |
117 | - | let $ | |
118 | - | if (($ | |
119 | - | then $ | |
140 | + | let $list18491873 = arr | |
141 | + | let $size18491873 = size($list18491873) | |
142 | + | let $acc018491873 = nil | |
143 | + | if (($size18491873 == 0)) | |
144 | + | then $acc018491873 | |
120 | 145 | else { | |
121 | - | let $ | |
122 | - | if (($ | |
123 | - | then $ | |
146 | + | let $acc118491873 = genList($acc018491873, $list18491873[0]) | |
147 | + | if (($size18491873 == 1)) | |
148 | + | then $acc118491873 | |
124 | 149 | else { | |
125 | - | let $ | |
126 | - | if (($ | |
127 | - | then $ | |
150 | + | let $acc218491873 = genList($acc118491873, $list18491873[1]) | |
151 | + | if (($size18491873 == 2)) | |
152 | + | then $acc218491873 | |
128 | 153 | else { | |
129 | - | let $ | |
130 | - | if (($ | |
131 | - | then $ | |
154 | + | let $acc318491873 = genList($acc218491873, $list18491873[2]) | |
155 | + | if (($size18491873 == 3)) | |
156 | + | then $acc318491873 | |
132 | 157 | else { | |
133 | - | let $ | |
134 | - | if (($ | |
135 | - | then $ | |
158 | + | let $acc418491873 = genList($acc318491873, $list18491873[3]) | |
159 | + | if (($size18491873 == 4)) | |
160 | + | then $acc418491873 | |
136 | 161 | else { | |
137 | - | let $ | |
138 | - | if (($ | |
139 | - | then $ | |
162 | + | let $acc518491873 = genList($acc418491873, $list18491873[4]) | |
163 | + | if (($size18491873 == 5)) | |
164 | + | then $acc518491873 | |
140 | 165 | else { | |
141 | - | let $ | |
142 | - | if (($ | |
143 | - | then $ | |
166 | + | let $acc618491873 = genList($acc518491873, $list18491873[5]) | |
167 | + | if (($size18491873 == 6)) | |
168 | + | then $acc618491873 | |
144 | 169 | else { | |
145 | - | let $ | |
146 | - | if (($ | |
147 | - | then $ | |
170 | + | let $acc718491873 = genList($acc618491873, $list18491873[6]) | |
171 | + | if (($size18491873 == 7)) | |
172 | + | then $acc718491873 | |
148 | 173 | else { | |
149 | - | let $ | |
150 | - | if (($ | |
151 | - | then $ | |
174 | + | let $acc818491873 = genList($acc718491873, $list18491873[7]) | |
175 | + | if (($size18491873 == 8)) | |
176 | + | then $acc818491873 | |
152 | 177 | else { | |
153 | - | let $ | |
154 | - | if (($ | |
155 | - | then $ | |
178 | + | let $acc918491873 = genList($acc818491873, $list18491873[8]) | |
179 | + | if (($size18491873 == 9)) | |
180 | + | then $acc918491873 | |
156 | 181 | else { | |
157 | - | let $ | |
158 | - | if (($ | |
159 | - | then $ | |
182 | + | let $acc1018491873 = genList($acc918491873, $list18491873[9]) | |
183 | + | if (($size18491873 == 10)) | |
184 | + | then $acc1018491873 | |
160 | 185 | else { | |
161 | - | let $ | |
186 | + | let $acc1118491873 = genList($acc1018491873, $list18491873[10]) | |
162 | 187 | throw("List size exceed 10") | |
163 | 188 | } | |
164 | 189 | } | |
165 | 190 | } | |
166 | 191 | } | |
167 | 192 | } | |
168 | 193 | } | |
169 | 194 | } | |
170 | 195 | } | |
171 | 196 | } | |
172 | 197 | } | |
173 | 198 | } | |
174 | 199 | } | |
175 | 200 | WriteSet(nil) | |
176 | 201 | } | |
177 | 202 | } | |
178 | 203 | ||
179 | 204 | ||
180 | 205 | ||
181 | 206 | @Callable(i) | |
182 | - | func | |
207 | + | func defineScalping (title,addr) = { | |
183 | 208 | let sender = toBase58String(i.caller.bytes) | |
209 | + | let deposited = extract(i.payment) | |
184 | 210 | let keyID = genKeyID(addr) | |
185 | - | 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 + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), DataEntry((keyID + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_status"), "created")]) | |
211 | + | let assetId = extract(deposited.assetId) | |
212 | + | if ((toBase58String(assetId) == "Waves")) | |
213 | + | then throw(("Token is " + toBase58String(assetId))) | |
214 | + | else if ((toBase58String(assetId) != "Waves")) | |
215 | + | then throw(("Token is not is waves is" + toBase58String(assetId))) | |
216 | + | else WriteSet(nil) | |
186 | 217 | } | |
187 | 218 | ||
188 | 219 | ||
189 | 220 | ||
190 | 221 | @Callable(i) | |
191 | 222 | func defineScalper (grid,reOrderOut,lifetime,addr,ordering,steps,title) = { | |
192 | 223 | let sender = toBase58String(i.caller.bytes) | |
193 | 224 | let keyID = genKeyID(addr) | |
194 | 225 | 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")]) | |
195 | 226 | } | |
196 | 227 | ||
197 | 228 | ||
229 | + | ||
230 | + | @Callable(i) | |
231 | + | func createScalper (title,type,addr) = { | |
232 | + | let sender = toBase58String(i.caller.bytes) | |
233 | + | let keyID = genKeyID(addr) | |
234 | + | 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")]) | |
235 | + | } | |
236 | + | ||
237 | + |
github/deemru/w8io/169f3d6 129.64 ms ◑