tx · HfpcfMcwqQe3neYcxco4egPeQPbj8RtB4JivV5kN837c 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2: -0.00800000 Waves 2023.04.26 02:21 [2550721] smart account 3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2 > SELF 0.00000000 Waves
{ "type": 13, "id": "HfpcfMcwqQe3neYcxco4egPeQPbj8RtB4JivV5kN837c", "fee": 800000, "feeAssetId": null, "timestamp": 1682464907559, "version": 2, "chainId": 84, "sender": "3N5LuKQTLpnuibSzamYvruXsbp7YpqzKDA2", "senderPublicKey": "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY", "proofs": [ "4pZ5UxiHHGi7stwohVC3vCYwv8TQHqESd6CLQxTo9EZDR4TVfsPRQ5b5ZbYRWAXjnbg2DpTtShEMkxjKeCvah2HF" ], "script": "base64:BgIHCAISAwoBCCAACktfYW1fYXNfaWQCDyVzX19hbW91bnRBc3NldAAKS19wcl9hc19pZAIOJXNfX3ByaWNlQXNzZXQABUtfYW1wAgclc19fYW1wAAdLX3NoYXJlAkQlcyVzX19zaGFyZUFzc2V0QmFsYW5jZV9fWWlOYm9mRnpDMTdqRUhIQ013clJjcHk5TXJyamFiTU1MWnhnOGc1eG1mNwAIS19zdGFrZWQCGSVzJXNfX3N0YWtlZEJhbGFuY2VfV0FWRVMACUtfYV9hc19pZAIKQV9hc3NldF9pZAAJS19iX2FzX2lkAgpCX2Fzc2V0X2lkAApLX2FfYXNfYmFsAg9BX2Fzc2V0X2JhbGFuY2UACktfYl9hc19iYWwCD0JfYXNzZXRfYmFsYW5jZQAFS19mZWUCCmNvbW1pc3Npb24AC0tfYXNzZXRfaWRzAg9zdGF0aWNfdG9rZW5JZHMACUtfZmVlX3B1egIKc3RhdGljX2ZlZQAKS19mZWVUb2tlbgIPc3RhdGljX2ZlZVRva2VuARBnZXRQdXpCYWxhbmNlS2V5AQdhc3NldElkCQCsAgIJAKwCAgIHZ2xvYmFsXwUHYXN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AQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQBiAGMAZAQGcmVzdWx0CQC7CQIFBnJlc0FycgIBfAUGcmVzdWx0AQFpAQR0ZXN0AQFzCQACAQUBcwBbcU87", "height": 2550721, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HjHwhRyNz8hq6huWDfERRjxSjjZ3bmmj3Wekn4M4DVub Next: D1ySj6xkkG6vBxBbDgD1yZDic7D3TiuAu7Wu7v59NgbD Diff:
Old | New | Differences | |
---|---|---|---|
131 | 131 | } | |
132 | 132 | let len = size(assetsData) | |
133 | 133 | let assetsArr = removeByIndex(assetsData, (len - 1)) | |
134 | - | let assetsDataStr = makeString(assetsData, ";") | |
134 | + | let assetsDataStr = makeString_2C(assetsData, ";") | |
135 | 135 | $Tuple3(fee, feeToken, assetsDataStr) | |
136 | 136 | } | |
137 | 137 | ||
162 | 162 | ||
163 | 163 | ||
164 | 164 | func processWX (result,address) = { | |
165 | - | let $ | |
166 | - | let assetsStr = $ | |
167 | - | let datas = $ | |
165 | + | let $t040944137 = getWxData(address) | |
166 | + | let assetsStr = $t040944137._1 | |
167 | + | let datas = $t040944137._2 | |
168 | 168 | let assetsString = getBalancesStr(assetsStr, address) | |
169 | 169 | let resItem = ((((address + "/") + assetsString) + "/") + datas) | |
170 | 170 | resItem :: result | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func processPZ (result,address) = { | |
182 | - | let $ | |
183 | - | let fee = $ | |
184 | - | let feeToken = $ | |
185 | - | let assetsString = $ | |
182 | + | let $t045374591 = getPzData(address) | |
183 | + | let fee = $t045374591._1 | |
184 | + | let feeToken = $t045374591._2 | |
185 | + | let assetsString = $t045374591._3 | |
186 | 186 | let resItem = ((((((address + "/") + toString(fee)) + "/") + feeToken) + "/") + assetsString) | |
187 | 187 | resItem :: result | |
188 | 188 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let K_am_as_id = "%s__amountAsset" | |
5 | 5 | ||
6 | 6 | let K_pr_as_id = "%s__priceAsset" | |
7 | 7 | ||
8 | 8 | let K_amp = "%s__amp" | |
9 | 9 | ||
10 | 10 | let K_share = "%s%s__shareAssetBalance__YiNbofFzC17jEHHCMwrRcpy9MrrjabMMLZxg8g5xmf7" | |
11 | 11 | ||
12 | 12 | let K_staked = "%s%s__stakedBalance_WAVES" | |
13 | 13 | ||
14 | 14 | let K_a_as_id = "A_asset_id" | |
15 | 15 | ||
16 | 16 | let K_b_as_id = "B_asset_id" | |
17 | 17 | ||
18 | 18 | let K_a_as_bal = "A_asset_balance" | |
19 | 19 | ||
20 | 20 | let K_b_as_bal = "B_asset_balance" | |
21 | 21 | ||
22 | 22 | let K_fee = "commission" | |
23 | 23 | ||
24 | 24 | let K_asset_ids = "static_tokenIds" | |
25 | 25 | ||
26 | 26 | let K_fee_puz = "static_fee" | |
27 | 27 | ||
28 | 28 | let K_feeToken = "static_feeToken" | |
29 | 29 | ||
30 | 30 | func getPuzBalanceKey (assetId) = (("global_" + assetId) + "_balance") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func getPuzWeightKey (assetId) = (("static_" + assetId) + "_weight") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func tryGetString (key,address) = match getString(address, key) { | |
37 | 37 | case b: String => | |
38 | 38 | b | |
39 | 39 | case _ => | |
40 | 40 | "" | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func tryGetInteger (key,address) = match getInteger(address, key) { | |
45 | 45 | case b: Int => | |
46 | 46 | b | |
47 | 47 | case _ => | |
48 | 48 | 0 | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func getAssetBalance (address,assetId) = { | |
53 | 53 | let a = assetBalance(address, assetId) | |
54 | 54 | a | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getWavesBalance (address) = { | |
59 | 59 | let w = wavesBalance(address).available | |
60 | 60 | w | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getBalance (result,assetId) = { | |
65 | 65 | let address = take(result, 35) | |
66 | 66 | let addr = Address(fromBase58String(address)) | |
67 | 67 | let balance = if ((assetId == "WAVES")) | |
68 | 68 | then getWavesBalance(addr) | |
69 | 69 | else { | |
70 | 70 | let aId = fromBase58String(assetId) | |
71 | 71 | getAssetBalance(addr, aId) | |
72 | 72 | } | |
73 | 73 | let len = size(result) | |
74 | 74 | (((((address + drop(result, 35)) + assetId) + ":") + toString(balance)) + ",") | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func getWxData (address) = { | |
79 | 79 | let addr = Address(fromBase58String(address)) | |
80 | 80 | let amountId = tryGetString(K_am_as_id, addr) | |
81 | 81 | let priceId = tryGetString(K_pr_as_id, addr) | |
82 | 82 | let amp = tryGetInteger(K_amp, addr) | |
83 | 83 | let share = tryGetInteger(K_share, addr) | |
84 | 84 | let stake = tryGetInteger(K_staked, addr) | |
85 | 85 | $Tuple2(((amountId + ",") + priceId), ((((toString(amp) + ",") + toString(share)) + ",") + toString(stake))) | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getSwData (address) = { | |
90 | 90 | let addr = Address(fromBase58String(address)) | |
91 | 91 | let A_id = tryGetString(K_a_as_id, addr) | |
92 | 92 | let B_id = tryGetString(K_b_as_id, addr) | |
93 | 93 | let A_balance = tryGetInteger(K_a_as_bal, addr) | |
94 | 94 | let B_balance = tryGetInteger(K_b_as_bal, addr) | |
95 | 95 | ((((((A_id + ":") + toString(A_balance)) + ",") + B_id) + ":") + toString(B_balance)) | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func collectPuzAssetsData (result,assetId) = { | |
100 | 100 | let len = size(result) | |
101 | 101 | let address = result[(len - 1)] | |
102 | 102 | let addr = Address(fromBase58String(address)) | |
103 | 103 | let balanceKey = getPuzBalanceKey(assetId) | |
104 | 104 | let weightKey = getPuzWeightKey(assetId) | |
105 | 105 | let balance = tryGetInteger(balanceKey, addr) | |
106 | 106 | let weight = tryGetInteger(weightKey, addr) | |
107 | 107 | let res = ((((assetId + ",") + toString(balance)) + ",") + toString(weight)) | |
108 | 108 | res :: result | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func getPzData (address) = { | |
113 | 113 | let addr = Address(fromBase58String(address)) | |
114 | 114 | let fee = tryGetInteger(K_fee_puz, addr) | |
115 | 115 | let feeToken = tryGetString(K_feeToken, addr) | |
116 | 116 | let assetsStr = tryGetString(K_asset_ids, addr) | |
117 | 117 | let assets = split(assetsStr, ",") | |
118 | 118 | let assetsData = { | |
119 | 119 | let $l = assets | |
120 | 120 | let $s = size($l) | |
121 | 121 | let $acc0 = [address] | |
122 | 122 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
123 | 123 | then $a | |
124 | 124 | else collectPuzAssetsData($a, $l[$i]) | |
125 | 125 | ||
126 | 126 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
127 | 127 | then $a | |
128 | 128 | else throw("List size exceeds 10") | |
129 | 129 | ||
130 | 130 | $f0_2($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) | |
131 | 131 | } | |
132 | 132 | let len = size(assetsData) | |
133 | 133 | let assetsArr = removeByIndex(assetsData, (len - 1)) | |
134 | - | let assetsDataStr = makeString(assetsData, ";") | |
134 | + | let assetsDataStr = makeString_2C(assetsData, ";") | |
135 | 135 | $Tuple3(fee, feeToken, assetsDataStr) | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func test_loop (result,ele) = ele :: result | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getBalancesStr (assetsStr,address) = { | |
143 | 143 | let assets = split_4C(assetsStr, ",") | |
144 | 144 | let res = { | |
145 | 145 | let $l = assets | |
146 | 146 | let $s = size($l) | |
147 | 147 | let $acc0 = address | |
148 | 148 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
149 | 149 | then $a | |
150 | 150 | else getBalance($a, $l[$i]) | |
151 | 151 | ||
152 | 152 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
153 | 153 | then $a | |
154 | 154 | else throw("List size exceeds 2") | |
155 | 155 | ||
156 | 156 | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
157 | 157 | } | |
158 | 158 | let balances = drop(res, 35) | |
159 | 159 | let bals = dropRight(balances, 1) | |
160 | 160 | bals | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func processWX (result,address) = { | |
165 | - | let $ | |
166 | - | let assetsStr = $ | |
167 | - | let datas = $ | |
165 | + | let $t040944137 = getWxData(address) | |
166 | + | let assetsStr = $t040944137._1 | |
167 | + | let datas = $t040944137._2 | |
168 | 168 | let assetsString = getBalancesStr(assetsStr, address) | |
169 | 169 | let resItem = ((((address + "/") + assetsString) + "/") + datas) | |
170 | 170 | resItem :: result | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func processSW (result,address) = { | |
175 | 175 | let assetsString = getSwData(address) | |
176 | 176 | let resItem = ((address + "/") + assetsString) | |
177 | 177 | resItem :: result | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func processPZ (result,address) = { | |
182 | - | let $ | |
183 | - | let fee = $ | |
184 | - | let feeToken = $ | |
185 | - | let assetsString = $ | |
182 | + | let $t045374591 = getPzData(address) | |
183 | + | let fee = $t045374591._1 | |
184 | + | let feeToken = $t045374591._2 | |
185 | + | let assetsString = $t045374591._3 | |
186 | 186 | let resItem = ((((((address + "/") + toString(fee)) + "/") + feeToken) + "/") + assetsString) | |
187 | 187 | resItem :: result | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func getWX (params) = { | |
192 | 192 | let pools = split_4C(params, ",") | |
193 | 193 | let resArr = { | |
194 | 194 | let $l = pools | |
195 | 195 | let $s = size($l) | |
196 | 196 | let $acc0 = nil | |
197 | 197 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
198 | 198 | then $a | |
199 | 199 | else processWX($a, $l[$i]) | |
200 | 200 | ||
201 | 201 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
202 | 202 | then $a | |
203 | 203 | else throw("List size exceeds 100") | |
204 | 204 | ||
205 | 205 | $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($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) | |
206 | 206 | } | |
207 | 207 | let result = makeString_11C(resArr, "|") | |
208 | 208 | result | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func getSW (params) = { | |
213 | 213 | let pools = split_4C(params, ",") | |
214 | 214 | let resArr = { | |
215 | 215 | let $l = pools | |
216 | 216 | let $s = size($l) | |
217 | 217 | let $acc0 = nil | |
218 | 218 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
219 | 219 | then $a | |
220 | 220 | else processSW($a, $l[$i]) | |
221 | 221 | ||
222 | 222 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
223 | 223 | then $a | |
224 | 224 | else throw("List size exceeds 100") | |
225 | 225 | ||
226 | 226 | $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($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) | |
227 | 227 | } | |
228 | 228 | let result = makeString_11C(resArr, "|") | |
229 | 229 | result | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func getPZ (params) = { | |
234 | 234 | let pools = split_4C(params, ",") | |
235 | 235 | let resArr = { | |
236 | 236 | let $l = pools | |
237 | 237 | let $s = size($l) | |
238 | 238 | let $acc0 = nil | |
239 | 239 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
240 | 240 | then $a | |
241 | 241 | else processPZ($a, $l[$i]) | |
242 | 242 | ||
243 | 243 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
244 | 244 | then $a | |
245 | 245 | else throw("List size exceeds 100") | |
246 | 246 | ||
247 | 247 | $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($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) | |
248 | 248 | } | |
249 | 249 | let result = makeString_11C(resArr, "|") | |
250 | 250 | result | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | @Callable(i) | |
255 | 255 | func test (s) = throw(s) | |
256 | 256 | ||
257 | 257 |
github/deemru/w8io/026f985 45.11 ms ◑