tx · 9y9hsSkKgSvX8YdqdqUPDGKV3nK1TUECBh7qUW11M1yD 3Mxpdp5zFKcQygoSEAuvHwKmeDTrkAqEgp1: -0.01700000 Waves 2022.08.13 08:30 [2182281] smart account 3Mxpdp5zFKcQygoSEAuvHwKmeDTrkAqEgp1 > SELF 0.00000000 Waves
{ "type": 13, "id": "9y9hsSkKgSvX8YdqdqUPDGKV3nK1TUECBh7qUW11M1yD", "fee": 1700000, "feeAssetId": null, "timestamp": 1660368618365, "version": 2, "chainId": 84, "sender": "3Mxpdp5zFKcQygoSEAuvHwKmeDTrkAqEgp1", "senderPublicKey": "AxEqxWpyCTdAvD236iNy1uGqdXHaTryrnexWY9d5RQbw", "proofs": [ "2EaAkUqdWmxoQuF7bJJpEpyqoNyMP73UtnfU2YfJRvz9djeTiNmsgoAiduB75rkkDvjcmfbypRC8oY9BUPN1RHDt" ], "script": "base64:BgIUCAISAwoBGBIFCgMICAESBAoCCAgUARBnZXRCaW5hcnlEZWZhdWx0Aw5hZGRyZXNzT3JBbGlhcwNrZXkDdmFsCQELdmFsdWVPckVsc2UCCQCcCAIFDmFkZHJlc3NPckFsaWFzBQNrZXkFA3ZhbAEUZ2V0QmluYXJ5U2VsZkRlZmF1bHQCA2tleQN2YWwJAQt2YWx1ZU9yRWxzZQIJAKEIAQUDa2V5BQN2YWwBEWdldEJvb2xlYW5EZWZhdWx0Aw5hZGRyZXNzT3JBbGlhcwNrZXkDdmFsCQELdmFsdWVPckVsc2UCCQCbCAIFDmFkZHJlc3NPckFsaWFzBQNrZXkFA3ZhbAEVZ2V0Qm9vbGVhblNlbGZEZWZhdWx0AgNrZXkDdmFsCQELdmFsdWVPckVsc2UCCQCgCAEFA2tleQUDdmFsARFnZXRJbnRlZ2VyRGVmYXVsdAMOYWRkcmVzc09yQWxpYXMDa2V5A3ZhbAkBC3ZhbHVlT3JFbHNlAgkAmggCBQ5hZGRyZXNzT3JBbGlhcwUDa2V5BQN2YWwBFWdldEludGVnZXJTZWxmRGV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tuZXh0T3JkZXJJZAABBQNuaWwFA25pbAkAAgECF2RhcHAgaXMgbm90IGluaXRpYWxpemVkAWkBC21hcmtldE9yZGVyAgRiYXNlBXF1b3RlAwkBBmlzSW5pdAADCQELaXNWYWxpZFBhaXICBQRiYXNlBQVxdW90ZQQHcGF5bWVudAkAkQMCCAUBaQhwYXltZW50cwAABQNuaWwFA25pbAkAAgECF2RhcHAgaXMgbm90IGluaXRpYWxpemVkAE+xNHU=", "height": 2182281, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J4p9EqPeFV4bJTUsVhChZX2aPwrjtioD2eCPh7zthCnB Next: DeGgkNimKZnXgnLWoQWbAdY1i2bypTTWybrpHme4m3jv Diff:
Old | New | Differences | |
---|---|---|---|
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | + | func isInit () = getBooleanSelfDefault("init", false) | |
119 | + | ||
120 | + | ||
121 | + | func makeQuoteAssetEntry (accum,next) = { | |
122 | + | let $t033513374 = accum | |
123 | + | let result = $t033513374._1 | |
124 | + | let j = $t033513374._2 | |
125 | + | $Tuple2((result :+ IntegerEntry(makeString(["quoteAsset", next], "_"), j)), (j + 1)) | |
126 | + | } | |
127 | + | ||
128 | + | ||
118 | 129 | @Callable(i) | |
119 | - | func limitOrder (base,quote,price) = if (isValidPair(base, quote)) | |
120 | - | then { | |
121 | - | let payment = i.payments[0] | |
122 | - | let paidAsset = stringFromAsset(payment.assetId) | |
123 | - | let nextOrderIdKey = makeString([base, quote, "nextOrderId"], "_") | |
124 | - | let nextOrderId = getIntegerSelfDefault(nextOrderIdKey, 1) | |
125 | - | if ((paidAsset == quote)) | |
126 | - | then { | |
127 | - | let side = "BUY" | |
128 | - | let orderKey = makeString(["order", toString(nextOrderId)], "_") | |
129 | - | let orderData = makeString([toString(i.caller), base, quote, side, toString(price)], "_") | |
130 | - | let orderPriceSizeKey = makeString([base, quote, side, toString(price), "size"], "_") | |
131 | - | let orderPriceSizeData = (getIntegerSelfDefault(orderPriceSizeKey, 0) + payment.amount) | |
132 | - | let orderIdListKey = makeString([base, quote, side, "orders"], "_") | |
133 | - | let orderIdList = match getString(orderIdListKey) { | |
134 | - | case t: String => | |
135 | - | makeString([t, toString(nextOrderId)], "_") | |
136 | - | case _ => | |
137 | - | toString(nextOrderId) | |
130 | + | func init (quoteAssets) = if ((i.caller == this)) | |
131 | + | then if (isInit()) | |
132 | + | then throw("dapp is already initialized") | |
133 | + | else { | |
134 | + | let $t036363721 = { | |
135 | + | let $l = quoteAssets | |
136 | + | let $s = size($l) | |
137 | + | let $acc0 = $Tuple2(nil, 1) | |
138 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
139 | + | then $a | |
140 | + | else makeQuoteAssetEntry($a, $l[$i]) | |
141 | + | ||
142 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
143 | + | then $a | |
144 | + | else throw("List size exceeds 20") | |
145 | + | ||
146 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
138 | 147 | } | |
139 | - | [StringEntry(orderKey, orderData), IntegerEntry(orderPriceSizeKey, orderPriceSizeData), StringEntry(orderIdListKey, orderIdList), IntegerEntry(nextOrderIdKey, (nextOrderId + 1))] | |
140 | - | } | |
141 | - | else { | |
142 | - | let side = "SELL" | |
143 | - | let orderKey = makeString(["order", toString(nextOrderId)], "_") | |
144 | - | let orderData = makeString([toString(i.caller), base, quote, side, toString(price)], "_") | |
145 | - | let orderPriceSizeKey = makeString([base, quote, side, toString(price), "size"], "_") | |
146 | - | let orderPriceSizeData = (getIntegerSelfDefault(orderPriceSizeKey, 0) + payment.amount) | |
147 | - | let orderIdListKey = makeString([base, quote, side, "orders"], "_") | |
148 | - | let orderIdList = match getString(orderIdListKey) { | |
149 | - | case t: String => | |
150 | - | makeString([t, toString(nextOrderId)], "_") | |
151 | - | case _ => | |
152 | - | toString(nextOrderId) | |
153 | - | } | |
154 | - | [StringEntry(orderKey, orderData), IntegerEntry(orderPriceSizeKey, orderPriceSizeData), StringEntry(orderIdListKey, orderIdList), IntegerEntry(nextOrderIdKey, (nextOrderId + 1))] | |
155 | - | } | |
156 | - | } | |
157 | - | else nil | |
148 | + | let entries = $t036363721._1 | |
149 | + | let nextQuoteAssetId = $t036363721._2 | |
150 | + | ((entries :+ BooleanEntry("init", true)) :+ IntegerEntry("nextQuoteAssetId", nextQuoteAssetId)) | |
151 | + | } | |
152 | + | else throw("not allowed") | |
158 | 153 | ||
159 | 154 | ||
160 | 155 | ||
161 | 156 | @Callable(i) | |
162 | - | func marketOrder (base,quote) = if (isValidPair(base, quote)) | |
163 | - | then { | |
164 | - | let payment = i.payments[0] | |
165 | - | nil | |
166 | - | } | |
167 | - | else nil | |
157 | + | func limitOrder (base,quote,price) = if (isInit()) | |
158 | + | then if (isValidPair(base, quote)) | |
159 | + | then { | |
160 | + | let payment = i.payments[0] | |
161 | + | let paidAsset = stringFromAsset(payment.assetId) | |
162 | + | let nextOrderIdKey = makeString([base, quote, "nextOrderId"], "_") | |
163 | + | let nextOrderId = getIntegerSelfDefault(nextOrderIdKey, 1) | |
164 | + | if ((paidAsset == quote)) | |
165 | + | then { | |
166 | + | let side = "BUY" | |
167 | + | let orderKey = makeString(["order", toString(nextOrderId)], "_") | |
168 | + | let orderData = makeString([toString(i.caller), base, quote, side, toString(price)], "_") | |
169 | + | let orderPriceSizeKey = makeString([base, quote, side, toString(price), "size"], "_") | |
170 | + | let orderPriceSizeData = (getIntegerSelfDefault(orderPriceSizeKey, 0) + payment.amount) | |
171 | + | let orderIdListKey = makeString([base, quote, side, "orders"], "_") | |
172 | + | let orderIdList = match getString(orderIdListKey) { | |
173 | + | case t: String => | |
174 | + | makeString([t, toString(nextOrderId)], "_") | |
175 | + | case _ => | |
176 | + | toString(nextOrderId) | |
177 | + | } | |
178 | + | [StringEntry(orderKey, orderData), IntegerEntry(orderPriceSizeKey, orderPriceSizeData), StringEntry(orderIdListKey, orderIdList), IntegerEntry(nextOrderIdKey, (nextOrderId + 1))] | |
179 | + | } | |
180 | + | else { | |
181 | + | let side = "SELL" | |
182 | + | let orderKey = makeString(["order", toString(nextOrderId)], "_") | |
183 | + | let orderData = makeString([toString(i.caller), base, quote, side, toString(price)], "_") | |
184 | + | let orderPriceSizeKey = makeString([base, quote, side, toString(price), "size"], "_") | |
185 | + | let orderPriceSizeData = (getIntegerSelfDefault(orderPriceSizeKey, 0) + payment.amount) | |
186 | + | let orderIdListKey = makeString([base, quote, side, "orders"], "_") | |
187 | + | let orderIdList = match getString(orderIdListKey) { | |
188 | + | case t: String => | |
189 | + | makeString([t, toString(nextOrderId)], "_") | |
190 | + | case _ => | |
191 | + | toString(nextOrderId) | |
192 | + | } | |
193 | + | [StringEntry(orderKey, orderData), IntegerEntry(orderPriceSizeKey, orderPriceSizeData), StringEntry(orderIdListKey, orderIdList), IntegerEntry(nextOrderIdKey, (nextOrderId + 1))] | |
194 | + | } | |
195 | + | } | |
196 | + | else nil | |
197 | + | else throw("dapp is not initialized") | |
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | @Callable(i) | |
202 | + | func marketOrder (base,quote) = if (isInit()) | |
203 | + | then if (isValidPair(base, quote)) | |
204 | + | then { | |
205 | + | let payment = i.payments[0] | |
206 | + | nil | |
207 | + | } | |
208 | + | else nil | |
209 | + | else throw("dapp is not initialized") | |
168 | 210 | ||
169 | 211 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getBinaryDefault (addressOrAlias,key,val) = valueOrElse(getBinary(addressOrAlias, key), val) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func getBinarySelfDefault (key,val) = valueOrElse(getBinary(key), val) | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func getBooleanDefault (addressOrAlias,key,val) = valueOrElse(getBoolean(addressOrAlias, key), val) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func getBooleanSelfDefault (key,val) = valueOrElse(getBoolean(key), val) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func getIntegerDefault (addressOrAlias,key,val) = valueOrElse(getInteger(addressOrAlias, key), val) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func getIntegerSelfDefault (key,val) = valueOrElse(getInteger(key), val) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func getStringDefault (addressOrAlias,key,val) = valueOrElse(getString(addressOrAlias, key), val) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func getStringSelfDefault (key,val) = valueOrElse(getString(key), val) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func assetFromString (assetId) = if ((assetId == "WAVES")) | |
29 | 29 | then unit | |
30 | 30 | else fromBase58String(assetId) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func stringFromAsset (asset) = match asset { | |
34 | 34 | case t: ByteVector => | |
35 | 35 | toBase58String(t) | |
36 | 36 | case _ => | |
37 | 37 | "WAVES" | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func map (accum,next) = parseInt(next) :: accum | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func convertPrices (orderbook) = { | |
45 | 45 | let $l = split(orderbook, "_") | |
46 | 46 | let $s = size($l) | |
47 | 47 | let $acc0 = nil | |
48 | 48 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
49 | 49 | then $a | |
50 | 50 | else map($a, $l[$i]) | |
51 | 51 | ||
52 | 52 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
53 | 53 | then $a | |
54 | 54 | else throw("List size exceeds 1000") | |
55 | 55 | ||
56 | 56 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115), 116), 117), 118), 119), 120), 121), 122), 123), 124), 125), 126), 127), 128), 129), 130), 131), 132), 133), 134), 135), 136), 137), 138), 139), 140), 141), 142), 143), 144), 145), 146), 147), 148), 149), 150), 151), 152), 153), 154), 155), 156), 157), 158), 159), 160), 161), 162), 163), 164), 165), 166), 167), 168), 169), 170), 171), 172), 173), 174), 175), 176), 177), 178), 179), 180), 181), 182), 183), 184), 185), 186), 187), 188), 189), 190), 191), 192), 193), 194), 195), 196), 197), 198), 199), 200), 201), 202), 203), 204), 205), 206), 207), 208), 209), 210), 211), 212), 213), 214), 215), 216), 217), 218), 219), 220), 221), 222), 223), 224), 225), 226), 227), 228), 229), 230), 231), 232), 233), 234), 235), 236), 237), 238), 239), 240), 241), 242), 243), 244), 245), 246), 247), 248), 249), 250), 251), 252), 253), 254), 255), 256), 257), 258), 259), 260), 261), 262), 263), 264), 265), 266), 267), 268), 269), 270), 271), 272), 273), 274), 275), 276), 277), 278), 279), 280), 281), 282), 283), 284), 285), 286), 287), 288), 289), 290), 291), 292), 293), 294), 295), 296), 297), 298), 299), 300), 301), 302), 303), 304), 305), 306), 307), 308), 309), 310), 311), 312), 313), 314), 315), 316), 317), 318), 319), 320), 321), 322), 323), 324), 325), 326), 327), 328), 329), 330), 331), 332), 333), 334), 335), 336), 337), 338), 339), 340), 341), 342), 343), 344), 345), 346), 347), 348), 349), 350), 351), 352), 353), 354), 355), 356), 357), 358), 359), 360), 361), 362), 363), 364), 365), 366), 367), 368), 369), 370), 371), 372), 373), 374), 375), 376), 377), 378), 379), 380), 381), 382), 383), 384), 385), 386), 387), 388), 389), 390), 391), 392), 393), 394), 395), 396), 397), 398), 399), 400), 401), 402), 403), 404), 405), 406), 407), 408), 409), 410), 411), 412), 413), 414), 415), 416), 417), 418), 419), 420), 421), 422), 423), 424), 425), 426), 427), 428), 429), 430), 431), 432), 433), 434), 435), 436), 437), 438), 439), 440), 441), 442), 443), 444), 445), 446), 447), 448), 449), 450), 451), 452), 453), 454), 455), 456), 457), 458), 459), 460), 461), 462), 463), 464), 465), 466), 467), 468), 469), 470), 471), 472), 473), 474), 475), 476), 477), 478), 479), 480), 481), 482), 483), 484), 485), 486), 487), 488), 489), 490), 491), 492), 493), 494), 495), 496), 497), 498), 499), 500), 501), 502), 503), 504), 505), 506), 507), 508), 509), 510), 511), 512), 513), 514), 515), 516), 517), 518), 519), 520), 521), 522), 523), 524), 525), 526), 527), 528), 529), 530), 531), 532), 533), 534), 535), 536), 537), 538), 539), 540), 541), 542), 543), 544), 545), 546), 547), 548), 549), 550), 551), 552), 553), 554), 555), 556), 557), 558), 559), 560), 561), 562), 563), 564), 565), 566), 567), 568), 569), 570), 571), 572), 573), 574), 575), 576), 577), 578), 579), 580), 581), 582), 583), 584), 585), 586), 587), 588), 589), 590), 591), 592), 593), 594), 595), 596), 597), 598), 599), 600), 601), 602), 603), 604), 605), 606), 607), 608), 609), 610), 611), 612), 613), 614), 615), 616), 617), 618), 619), 620), 621), 622), 623), 624), 625), 626), 627), 628), 629), 630), 631), 632), 633), 634), 635), 636), 637), 638), 639), 640), 641), 642), 643), 644), 645), 646), 647), 648), 649), 650), 651), 652), 653), 654), 655), 656), 657), 658), 659), 660), 661), 662), 663), 664), 665), 666), 667), 668), 669), 670), 671), 672), 673), 674), 675), 676), 677), 678), 679), 680), 681), 682), 683), 684), 685), 686), 687), 688), 689), 690), 691), 692), 693), 694), 695), 696), 697), 698), 699), 700), 701), 702), 703), 704), 705), 706), 707), 708), 709), 710), 711), 712), 713), 714), 715), 716), 717), 718), 719), 720), 721), 722), 723), 724), 725), 726), 727), 728), 729), 730), 731), 732), 733), 734), 735), 736), 737), 738), 739), 740), 741), 742), 743), 744), 745), 746), 747), 748), 749), 750), 751), 752), 753), 754), 755), 756), 757), 758), 759), 760), 761), 762), 763), 764), 765), 766), 767), 768), 769), 770), 771), 772), 773), 774), 775), 776), 777), 778), 779), 780), 781), 782), 783), 784), 785), 786), 787), 788), 789), 790), 791), 792), 793), 794), 795), 796), 797), 798), 799), 800), 801), 802), 803), 804), 805), 806), 807), 808), 809), 810), 811), 812), 813), 814), 815), 816), 817), 818), 819), 820), 821), 822), 823), 824), 825), 826), 827), 828), 829), 830), 831), 832), 833), 834), 835), 836), 837), 838), 839), 840), 841), 842), 843), 844), 845), 846), 847), 848), 849), 850), 851), 852), 853), 854), 855), 856), 857), 858), 859), 860), 861), 862), 863), 864), 865), 866), 867), 868), 869), 870), 871), 872), 873), 874), 875), 876), 877), 878), 879), 880), 881), 882), 883), 884), 885), 886), 887), 888), 889), 890), 891), 892), 893), 894), 895), 896), 897), 898), 899), 900), 901), 902), 903), 904), 905), 906), 907), 908), 909), 910), 911), 912), 913), 914), 915), 916), 917), 918), 919), 920), 921), 922), 923), 924), 925), 926), 927), 928), 929), 930), 931), 932), 933), 934), 935), 936), 937), 938), 939), 940), 941), 942), 943), 944), 945), 946), 947), 948), 949), 950), 951), 952), 953), 954), 955), 956), 957), 958), 959), 960), 961), 962), 963), 964), 965), 966), 967), 968), 969), 970), 971), 972), 973), 974), 975), 976), 977), 978), 979), 980), 981), 982), 983), 984), 985), 986), 987), 988), 989), 990), 991), 992), 993), 994), 995), 996), 997), 998), 999), 1000) | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getBidPrice (base,quote) = { | |
61 | 61 | let key = makeString([base, quote, "BUY"], "_") | |
62 | 62 | let orderbook = getStringSelfDefault(key, "") | |
63 | 63 | let prices = convertPrices(orderbook) | |
64 | 64 | let price = max(prices) | |
65 | 65 | price | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func getAskPrice (base,quote) = { | |
70 | 70 | let key = makeString([base, quote, "SELL"], "_") | |
71 | 71 | let orderbook = getStringSelfDefault(key, "") | |
72 | 72 | let prices = convertPrices(orderbook) | |
73 | 73 | let price = min(prices) | |
74 | 74 | price | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func getQuoteAssetIdx (asset) = { | |
79 | 79 | let numPriceAssets = getIntegerValue("nextQuoteAssetId") | |
80 | 80 | if ((asset == "WAVES")) | |
81 | 81 | then numPriceAssets | |
82 | 82 | else getIntegerSelfDefault((asset + "_quoteAssetId"), (numPriceAssets + 1)) | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getAssetIssueHeight (asset) = transactionHeightById(fromBase58String(asset)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func orderPair (asset1,asset2) = if ((asset1 == asset2)) | |
90 | 90 | then throw("assets cannot be the same") | |
91 | 91 | else { | |
92 | 92 | let asset1Idx = getQuoteAssetIdx(asset1) | |
93 | 93 | let asset2Idx = getQuoteAssetIdx(asset2) | |
94 | 94 | if ((asset1Idx > asset2Idx)) | |
95 | 95 | then [asset1, asset2] | |
96 | 96 | else if ((asset2Idx > asset1Idx)) | |
97 | 97 | then [asset2, asset1] | |
98 | 98 | else { | |
99 | 99 | let asset1Int = toBigInt(fromBase58String(asset1)) | |
100 | 100 | let asset2Int = toBigInt(fromBase58String(asset2)) | |
101 | 101 | let assetList = [asset1Int, asset2Int] | |
102 | 102 | let larger = max(assetList) | |
103 | 103 | if ((larger == asset1Int)) | |
104 | 104 | then [asset1, asset2] | |
105 | 105 | else [asset2, asset1] | |
106 | 106 | } | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func isValidPair (base,quote) = { | |
111 | 111 | let pair = orderPair(base, quote) | |
112 | 112 | if ((pair[0] == base)) | |
113 | 113 | then true | |
114 | 114 | else false | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | + | func isInit () = getBooleanSelfDefault("init", false) | |
119 | + | ||
120 | + | ||
121 | + | func makeQuoteAssetEntry (accum,next) = { | |
122 | + | let $t033513374 = accum | |
123 | + | let result = $t033513374._1 | |
124 | + | let j = $t033513374._2 | |
125 | + | $Tuple2((result :+ IntegerEntry(makeString(["quoteAsset", next], "_"), j)), (j + 1)) | |
126 | + | } | |
127 | + | ||
128 | + | ||
118 | 129 | @Callable(i) | |
119 | - | func limitOrder (base,quote,price) = if (isValidPair(base, quote)) | |
120 | - | then { | |
121 | - | let payment = i.payments[0] | |
122 | - | let paidAsset = stringFromAsset(payment.assetId) | |
123 | - | let nextOrderIdKey = makeString([base, quote, "nextOrderId"], "_") | |
124 | - | let nextOrderId = getIntegerSelfDefault(nextOrderIdKey, 1) | |
125 | - | if ((paidAsset == quote)) | |
126 | - | then { | |
127 | - | let side = "BUY" | |
128 | - | let orderKey = makeString(["order", toString(nextOrderId)], "_") | |
129 | - | let orderData = makeString([toString(i.caller), base, quote, side, toString(price)], "_") | |
130 | - | let orderPriceSizeKey = makeString([base, quote, side, toString(price), "size"], "_") | |
131 | - | let orderPriceSizeData = (getIntegerSelfDefault(orderPriceSizeKey, 0) + payment.amount) | |
132 | - | let orderIdListKey = makeString([base, quote, side, "orders"], "_") | |
133 | - | let orderIdList = match getString(orderIdListKey) { | |
134 | - | case t: String => | |
135 | - | makeString([t, toString(nextOrderId)], "_") | |
136 | - | case _ => | |
137 | - | toString(nextOrderId) | |
130 | + | func init (quoteAssets) = if ((i.caller == this)) | |
131 | + | then if (isInit()) | |
132 | + | then throw("dapp is already initialized") | |
133 | + | else { | |
134 | + | let $t036363721 = { | |
135 | + | let $l = quoteAssets | |
136 | + | let $s = size($l) | |
137 | + | let $acc0 = $Tuple2(nil, 1) | |
138 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
139 | + | then $a | |
140 | + | else makeQuoteAssetEntry($a, $l[$i]) | |
141 | + | ||
142 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
143 | + | then $a | |
144 | + | else throw("List size exceeds 20") | |
145 | + | ||
146 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
138 | 147 | } | |
139 | - | [StringEntry(orderKey, orderData), IntegerEntry(orderPriceSizeKey, orderPriceSizeData), StringEntry(orderIdListKey, orderIdList), IntegerEntry(nextOrderIdKey, (nextOrderId + 1))] | |
140 | - | } | |
141 | - | else { | |
142 | - | let side = "SELL" | |
143 | - | let orderKey = makeString(["order", toString(nextOrderId)], "_") | |
144 | - | let orderData = makeString([toString(i.caller), base, quote, side, toString(price)], "_") | |
145 | - | let orderPriceSizeKey = makeString([base, quote, side, toString(price), "size"], "_") | |
146 | - | let orderPriceSizeData = (getIntegerSelfDefault(orderPriceSizeKey, 0) + payment.amount) | |
147 | - | let orderIdListKey = makeString([base, quote, side, "orders"], "_") | |
148 | - | let orderIdList = match getString(orderIdListKey) { | |
149 | - | case t: String => | |
150 | - | makeString([t, toString(nextOrderId)], "_") | |
151 | - | case _ => | |
152 | - | toString(nextOrderId) | |
153 | - | } | |
154 | - | [StringEntry(orderKey, orderData), IntegerEntry(orderPriceSizeKey, orderPriceSizeData), StringEntry(orderIdListKey, orderIdList), IntegerEntry(nextOrderIdKey, (nextOrderId + 1))] | |
155 | - | } | |
156 | - | } | |
157 | - | else nil | |
148 | + | let entries = $t036363721._1 | |
149 | + | let nextQuoteAssetId = $t036363721._2 | |
150 | + | ((entries :+ BooleanEntry("init", true)) :+ IntegerEntry("nextQuoteAssetId", nextQuoteAssetId)) | |
151 | + | } | |
152 | + | else throw("not allowed") | |
158 | 153 | ||
159 | 154 | ||
160 | 155 | ||
161 | 156 | @Callable(i) | |
162 | - | func marketOrder (base,quote) = if (isValidPair(base, quote)) | |
163 | - | then { | |
164 | - | let payment = i.payments[0] | |
165 | - | nil | |
166 | - | } | |
167 | - | else nil | |
157 | + | func limitOrder (base,quote,price) = if (isInit()) | |
158 | + | then if (isValidPair(base, quote)) | |
159 | + | then { | |
160 | + | let payment = i.payments[0] | |
161 | + | let paidAsset = stringFromAsset(payment.assetId) | |
162 | + | let nextOrderIdKey = makeString([base, quote, "nextOrderId"], "_") | |
163 | + | let nextOrderId = getIntegerSelfDefault(nextOrderIdKey, 1) | |
164 | + | if ((paidAsset == quote)) | |
165 | + | then { | |
166 | + | let side = "BUY" | |
167 | + | let orderKey = makeString(["order", toString(nextOrderId)], "_") | |
168 | + | let orderData = makeString([toString(i.caller), base, quote, side, toString(price)], "_") | |
169 | + | let orderPriceSizeKey = makeString([base, quote, side, toString(price), "size"], "_") | |
170 | + | let orderPriceSizeData = (getIntegerSelfDefault(orderPriceSizeKey, 0) + payment.amount) | |
171 | + | let orderIdListKey = makeString([base, quote, side, "orders"], "_") | |
172 | + | let orderIdList = match getString(orderIdListKey) { | |
173 | + | case t: String => | |
174 | + | makeString([t, toString(nextOrderId)], "_") | |
175 | + | case _ => | |
176 | + | toString(nextOrderId) | |
177 | + | } | |
178 | + | [StringEntry(orderKey, orderData), IntegerEntry(orderPriceSizeKey, orderPriceSizeData), StringEntry(orderIdListKey, orderIdList), IntegerEntry(nextOrderIdKey, (nextOrderId + 1))] | |
179 | + | } | |
180 | + | else { | |
181 | + | let side = "SELL" | |
182 | + | let orderKey = makeString(["order", toString(nextOrderId)], "_") | |
183 | + | let orderData = makeString([toString(i.caller), base, quote, side, toString(price)], "_") | |
184 | + | let orderPriceSizeKey = makeString([base, quote, side, toString(price), "size"], "_") | |
185 | + | let orderPriceSizeData = (getIntegerSelfDefault(orderPriceSizeKey, 0) + payment.amount) | |
186 | + | let orderIdListKey = makeString([base, quote, side, "orders"], "_") | |
187 | + | let orderIdList = match getString(orderIdListKey) { | |
188 | + | case t: String => | |
189 | + | makeString([t, toString(nextOrderId)], "_") | |
190 | + | case _ => | |
191 | + | toString(nextOrderId) | |
192 | + | } | |
193 | + | [StringEntry(orderKey, orderData), IntegerEntry(orderPriceSizeKey, orderPriceSizeData), StringEntry(orderIdListKey, orderIdList), IntegerEntry(nextOrderIdKey, (nextOrderId + 1))] | |
194 | + | } | |
195 | + | } | |
196 | + | else nil | |
197 | + | else throw("dapp is not initialized") | |
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | @Callable(i) | |
202 | + | func marketOrder (base,quote) = if (isInit()) | |
203 | + | then if (isValidPair(base, quote)) | |
204 | + | then { | |
205 | + | let payment = i.payments[0] | |
206 | + | nil | |
207 | + | } | |
208 | + | else nil | |
209 | + | else throw("dapp is not initialized") | |
168 | 210 | ||
169 | 211 |
github/deemru/w8io/169f3d6 101.80 ms ◑