tx · BiiKuiqi2B7tAL12vHRiZFFkxHWMPoFubtkHvcLGmxs7 3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN: -0.01000000 Waves 2023.02.16 15:26 [2452167] smart account 3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN > SELF 0.00000000 Waves
{ "type": 13, "id": "BiiKuiqi2B7tAL12vHRiZFFkxHWMPoFubtkHvcLGmxs7", "fee": 1000000, "feeAssetId": null, "timestamp": 1676550407194, "version": 2, "chainId": 84, "sender": "3N9ZoipEVJyQhhijNYxkcomvgGrrEeDhPvN", "senderPublicKey": "2Gtgx295VLiew3CzXqh9eXfFZBTEpDW2nLsrJZ1C4i9J", "proofs": [ "5vcm3AvbdmuA1RELyk7yP1dN2khzmhjyKKbjPsrhARFGwwFLgawoav93enzqCTjPBH5rbESGrs64HiCd5bheg3g4" ], "script": "base64:AAIFAAAAAAAAACMIAhIGCgQIBAgEEgMKAQgSBwoFCAgIAQgSAwoBCBIECgIICAAAAA8AAAAAD2V4dGVybmFsT3JhY2xlcwkABEwAAAACAgAAACMzWFUzR01uMnZxWGdVMmZ2ZUhValV5aXV5SmNubnFNMUdmUwkABEwAAAACAgAAACMzWFhCRjY5VDFkZ3ZNM3NLWkFzY1dVNmk1YXJSN1hqNmIxdwUAAAADbmlsAAAAAANmZWUAAAAAAAAAAAEAAAAACGZlZVNjYWxlAAAAAAAAAAPoAQAAABR0cnlHZXRTdHJpbmdFeHRlcm5hbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAVdHJ5R2V0SW50ZWdlckV4dGVybmFsAAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkD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4XwUAAAAEdHhJZAIAAAAIX290aGVySWQCAAAAAAkAAAIAAAABCQABLAAAAAIFAAAABHR4SWQCAAAAHCBpcyBhbHJlYWR5IGZ1bGx5IHByb2Nlc3NlZCEDCQEAAAABIQAAAAEDBQAAAAlkZXN0Q2hlY2sFAAAAC3N0YXR1c0NoZWNrBwkAAAIAAAABAgAAAA1EaXJ0eSBoYWNrZXIhBAAAAAdhc3NldElkCQEAAAAMdHJ5R2V0U3RyaW5nAAAAAQkAASwAAAACCQABLAAAAAICAAAAA3R4XwUAAAAEdHhJZAIAAAAIX2Fzc2V0SWQEAAAABmFtb3VudAkBAAAADXRyeUdldEludGVnZXIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAdfYW1vdW50CQAETgAAAAIICQEAAAAMcmV3YXJkT3JhY2xlAAAAAgUAAAAHYXNzZXRJZAUAAAAGYW1vdW50AAAAAl8xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAN0eF8FAAAABHR4SWQCAAAAB19zdGF0dXMCAAAACVBST0NFU1NFRAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAADdHhfBQAAAAR0eElkAgAAAAhfb3RoZXJJZAUAAAAJb3RoZXJUeElkBQAAAANuaWwAAAAAW0BaaA==", "height": 2452167, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9FFkng3XP6xTD1hA7GuxUxHYFiLqfZsKcVSShLDTSbxk Next: 3cDh6VygQCZn95A7wTwPXRZPA2PkVmFPwZsxmW1Qn6Nx Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = [" | |
4 | + | let a = ["3XU3GMn2vqXgU2fveHUjUyiuyJcnnqM1GfS", "3XXBF69T1dgvM3sKZAscWU6i5arR7Xj6b1w"] | |
5 | 5 | ||
6 | 6 | let b = 1 | |
7 | 7 | ||
205 | 205 | else if ((k(r(o)) != Y)) | |
206 | 206 | then throw("URE: Skipping tx, corrupt data!") | |
207 | 207 | else nil | |
208 | - | (( | |
208 | + | ((V ++ [ScriptTransfer(addressFromStringValue(U), (X - z(Y, X)._2), fromBase58String(Y)), StringEntry((("tx_" + W) + "_status"), "PROCESSED"), StringEntry((("tx_" + W) + "_otherId"), toBase58String(R.transactionId))]) ++ z(Y, X)._1) | |
209 | 209 | } | |
210 | 210 | } | |
211 | 211 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = [" | |
4 | + | let a = ["3XU3GMn2vqXgU2fveHUjUyiuyJcnnqM1GfS", "3XXBF69T1dgvM3sKZAscWU6i5arR7Xj6b1w"] | |
5 | 5 | ||
6 | 6 | let b = 1 | |
7 | 7 | ||
8 | 8 | let c = 1000 | |
9 | 9 | ||
10 | 10 | func d (e,f) = { | |
11 | 11 | let g = getString(e, f) | |
12 | 12 | if ($isInstanceOf(g, "String")) | |
13 | 13 | then { | |
14 | 14 | let h = g | |
15 | 15 | h | |
16 | 16 | } | |
17 | 17 | else "" | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i (e,f) = { | |
22 | 22 | let g = getInteger(e, f) | |
23 | 23 | if ($isInstanceOf(g, "Int")) | |
24 | 24 | then { | |
25 | 25 | let j = g | |
26 | 26 | j | |
27 | 27 | } | |
28 | 28 | else 0 | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func k (f) = d(this, f) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func l (f) = i(this, f) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func m (f) = { | |
39 | 39 | let g = getBoolean(this, f) | |
40 | 40 | if ($isInstanceOf(g, "Boolean")) | |
41 | 41 | then { | |
42 | 42 | let j = g | |
43 | 43 | j | |
44 | 44 | } | |
45 | 45 | else false | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func n (o) = toBase58String(value(o)) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func p (q) = ("nativeAsset_" + q) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func r (s) = ("otherChainAsset_" + s) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func t (u) = ("reissueable_" + u) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func v (w) = { | |
62 | 62 | let x = value(w) | |
63 | 63 | if (!(isDefined(x.assetId))) | |
64 | 64 | then throw("It needs to be an asset") | |
65 | 65 | else { | |
66 | 66 | let y = value(assetInfo(value(x.assetId))) | |
67 | 67 | if ((1 > x.amount)) | |
68 | 68 | then throw("You didnt attached a payment!") | |
69 | 69 | else n(x.assetId) | |
70 | 70 | } | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func z (o,A) = { | |
75 | 75 | let B = fraction(A, b, c, DOWN) | |
76 | 76 | let C = fraction(B, 1, size(a), DOWN) | |
77 | 77 | func D (E,F) = (E ++ [ScriptTransfer(addressFromStringValue(F), C, fromBase58String(o))]) | |
78 | 78 | ||
79 | 79 | let G = { | |
80 | 80 | let H = a | |
81 | 81 | let I = size(H) | |
82 | 82 | let J = nil | |
83 | 83 | func K (L,M) = if ((M >= I)) | |
84 | 84 | then L | |
85 | 85 | else D(L, H[M]) | |
86 | 86 | ||
87 | 87 | func N (L,M) = if ((M >= I)) | |
88 | 88 | then L | |
89 | 89 | else throw("List size exceeds 5") | |
90 | 90 | ||
91 | 91 | N(K(K(K(K(K(J, 0), 1), 2), 3), 4), 5) | |
92 | 92 | } | |
93 | 93 | $Tuple2(G, B) | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func O (f,P) = { | |
98 | 98 | func Q (E,F) = { | |
99 | 99 | let g = P | |
100 | 100 | if ($isInstanceOf(g, "String")) | |
101 | 101 | then { | |
102 | 102 | let j = g | |
103 | 103 | let G = d(addressFromStringValue(F), f) | |
104 | 104 | if ((G != P)) | |
105 | 105 | then throw(("String Key not matching in " + F)) | |
106 | 106 | else true | |
107 | 107 | } | |
108 | 108 | else if ($isInstanceOf(g, "Int")) | |
109 | 109 | then { | |
110 | 110 | let j = g | |
111 | 111 | let G = i(addressFromStringValue(F), f) | |
112 | 112 | if ((G != P)) | |
113 | 113 | then throw(("Integer Key not matching in " + F)) | |
114 | 114 | else true | |
115 | 115 | } | |
116 | 116 | else throw("Invalid Value!") | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | let H = a | |
120 | 120 | let I = size(H) | |
121 | 121 | let J = true | |
122 | 122 | func K (L,M) = if ((M >= I)) | |
123 | 123 | then L | |
124 | 124 | else Q(L, H[M]) | |
125 | 125 | ||
126 | 126 | func N (L,M) = if ((M >= I)) | |
127 | 127 | then L | |
128 | 128 | else throw("List size exceeds 5") | |
129 | 129 | ||
130 | 130 | N(K(K(K(K(K(J, 0), 1), 2), 3), 4), 5) | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | @Callable(R) | |
135 | 135 | func initiateAssets (q,S,s,T) = if ((R.caller != this)) | |
136 | 136 | then throw("Only the owner dapp can add additional assets!") | |
137 | 137 | else if ((k(p(q)) != "")) | |
138 | 138 | then throw("Native Asset already listed!") | |
139 | 139 | else if ((k(r(s)) != "")) | |
140 | 140 | then throw("Other Asset already listed!") | |
141 | 141 | else [StringEntry(p(q), s), StringEntry(r(s), q), BooleanEntry(t(q), S), BooleanEntry(t(s), T)] | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(R) | |
146 | 146 | func initiateOutGoingTx (U) = { | |
147 | 147 | let w = R.payments | |
148 | 148 | if ((size(w) != 1)) | |
149 | 149 | then throw("Invalid payment added!") | |
150 | 150 | else if ((1 > w[0].amount)) | |
151 | 151 | then throw("Invalid amount added!") | |
152 | 152 | else { | |
153 | 153 | let o = v(w[0]) | |
154 | 154 | let V = if (m(t(o))) | |
155 | 155 | then [Burn(fromBase58String(o), w[0].amount), StringEntry((("tx_" + toBase58String(R.transactionId)) + "_asset_to_receive"), k(r(o)))] | |
156 | 156 | else [StringEntry((("tx_" + toBase58String(R.transactionId)) + "_asset_to_receive"), k(p(o)))] | |
157 | 157 | ([StringEntry((("tx_" + toBase58String(R.transactionId)) + "_dest"), U), StringEntry((("tx_" + toBase58String(R.transactionId)) + "_status"), "UNPROCESSED")] ++ V) | |
158 | 158 | } | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | ||
163 | 163 | @Callable(R) | |
164 | 164 | func storeDataIncomingTx (W,U,o,X,Y) = if (if ((k((("tx_" + W) + "_status")) != "")) | |
165 | 165 | then true | |
166 | 166 | else (k((("tx_" + W) + "_dest")) != "")) | |
167 | 167 | then throw((W + " is already stored!")) | |
168 | 168 | else { | |
169 | 169 | let Z = O((("tx_" + W) + "_dest"), U) | |
170 | 170 | let aa = O((("tx_" + W) + "_status"), "UNPROCESSED") | |
171 | 171 | let ab = O((("tx_" + W) + "_assetId"), o) | |
172 | 172 | let ac = O((("tx_" + W) + "_assetId_to_receive"), Y) | |
173 | 173 | let ad = O((("tx_" + W) + "_amount"), X) | |
174 | 174 | if (!(if (if (if (if (Z) | |
175 | 175 | then aa | |
176 | 176 | else false) | |
177 | 177 | then ab | |
178 | 178 | else false) | |
179 | 179 | then ac | |
180 | 180 | else false) | |
181 | 181 | then ad | |
182 | 182 | else false)) | |
183 | 183 | then throw("Dirty hacker!") | |
184 | 184 | else [StringEntry((("tx_" + W) + "_dest"), U), StringEntry((("tx_" + W) + "_status"), "UNPROCESSED"), StringEntry((("tx_" + W) + "_assetId"), o), StringEntry((("tx_" + W) + "_assetId_to_receive"), Y), IntegerEntry((("tx_" + W) + "_amount"), X)] | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(R) | |
190 | 190 | func releaseIncomingTx (W) = { | |
191 | 191 | let ae = k((("tx_" + W) + "_status")) | |
192 | 192 | if ((ae == "")) | |
193 | 193 | then throw("No such txid found!") | |
194 | 194 | else if ((ae == "PROCESSED")) | |
195 | 195 | then throw("Already processed!") | |
196 | 196 | else { | |
197 | 197 | let Y = k((("tx_" + W) + "_assetId_to_receive")) | |
198 | 198 | let U = k((("tx_" + W) + "_dest")) | |
199 | 199 | let X = l((("tx_" + W) + "_amount")) | |
200 | 200 | let o = k((("tx_" + W) + "_assetId")) | |
201 | 201 | let V = if (m(t(Y))) | |
202 | 202 | then if ((k(p(o)) != Y)) | |
203 | 203 | then throw("RE: Skipping tx, corrupt data!") | |
204 | 204 | else [Reissue(fromBase58String(Y), X, true)] | |
205 | 205 | else if ((k(r(o)) != Y)) | |
206 | 206 | then throw("URE: Skipping tx, corrupt data!") | |
207 | 207 | else nil | |
208 | - | (( | |
208 | + | ((V ++ [ScriptTransfer(addressFromStringValue(U), (X - z(Y, X)._2), fromBase58String(Y)), StringEntry((("tx_" + W) + "_status"), "PROCESSED"), StringEntry((("tx_" + W) + "_otherId"), toBase58String(R.transactionId))]) ++ z(Y, X)._1) | |
209 | 209 | } | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(R) | |
215 | 215 | func finalizeOutgoingTx (W,af) = { | |
216 | 216 | let Z = O((("tx_" + W) + "_otherId"), af) | |
217 | 217 | let aa = O((("tx_" + W) + "_status"), "PROCESSED") | |
218 | 218 | if ((k((("tx_" + W) + "_otherId")) != "")) | |
219 | 219 | then throw((W + " is already fully processed!")) | |
220 | 220 | else if (!(if (Z) | |
221 | 221 | then aa | |
222 | 222 | else false)) | |
223 | 223 | then throw("Dirty hacker!") | |
224 | 224 | else { | |
225 | 225 | let o = k((("tx_" + W) + "_assetId")) | |
226 | 226 | let X = l((("tx_" + W) + "_amount")) | |
227 | 227 | (z(o, X)._1 ++ [StringEntry((("tx_" + W) + "_status"), "PROCESSED"), StringEntry((("tx_" + W) + "_otherId"), af)]) | |
228 | 228 | } | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 |
github/deemru/w8io/169f3d6 37.66 ms ◑