tx · EtFXSZGKAF5D8eg17aMv4xj8U6LdPqzax8ghM37QQav4 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL: -0.04000000 Waves 2022.04.19 22:09 [2015835] smart account 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL > SELF 0.00000000 Waves
{ "type": 13, "id": "EtFXSZGKAF5D8eg17aMv4xj8U6LdPqzax8ghM37QQav4", "fee": 4000000, "feeAssetId": null, "timestamp": 1650395396083, "version": 2, "chainId": 84, "sender": "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL", "senderPublicKey": "G6aSmaqLJ4p7jzm7BnQcZuqa2NRRLVtzqdYNjYErnEZZ", "proofs": [ "2uWwHNwYL4NMVYRmqR2bRUrswvijbgXFq1dHqBKxXqa9epivpNwKx9kS3fKMegPygh8bh4pE6x73SnVGz3SNrnjT" ], "script": "base64:AAIFAAAAAAAAADIIAhIFCgMICAgSBAoCCAgSBwoFCAgICAgSBAoCCAESBQoDCAgIEgUKAwgICBIECgIICAAAABMAAAAABENPTFMAAAAAAAAABAAAAAAABFJPV1MAAAAAAAAABAAAAAAACW5mdERvbWFpbgIAAAAYaHR0cHM6Ly9uZnQuZ3JpZGdhbmcuaW8vAAAAABVhZGRPd25lckFuZEFtb3VudEZ1bmMCAAAAEWFkZE93bmVyQW5kQW1vdW50AAAAAAVERUJVRwYAAAAAEW1pbkZvclNhbGVXYXZsZXRzAAAAAAAF9eEAAAAAABBtaW5QdXJjaGFzZVByaWNlAAAAAAAAD0JAAAAAAARkYXBwAgAAACMzTjdKNm1NTWtqVlZpQlJFejl5NTNKbWNYN3I3S1pSWFFwTAAAAAALZGFwcEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAARkYXBwAAAAABFob2xkaW5nc1B1YmxpY0tleQIAAAAsQXlBd1diTVBNN2E0VllrbjFiaEVCZnRDNVdaZ2Z2VVhncllEZTk4bXZMc3YAAAAACGhvbGRpbmdzAgAAACMzTXdQc0x5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AAAAAQUAAAARZGVzaW5hdGlvbkFkZHJlc3MAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAFpAQAAAA5hZG1pblNldEhhbmRsZQAAAAIAAAAHb3duZXJJZAAAAAZoYW5kbGUEAAAACGNhbGxlcklkCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAAhjYWxsZXJJZAUAAAAIaG9sZGluZ3MJAAACAAAAAQIAAAAmVGhpcyBjYW4gb25seSBiZSB0cmlnZ2VyaW5nIGludGVybmFsbHkJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAdvd25lcklkAgAAAAdfaGFuZGxlBQAAAAZoYW5kbGUFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAADAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkGCQAAAAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAD2hvbGRpbmdzQWRkcmVzcwYJAAAAAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQUAAAALZGFwcEFkZHJlc3PTPQIu", "height": 2015835, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2RuWBk2doFMGM3eZzfSJPGmCdt2jS2HCpooqmAt3KtqB Next: BBPEpqHs8VGTYr219m6nP2ZUtKEdmGuCtygSDVhSKAjW Diff:
Old | New | Differences | |
---|---|---|---|
173 | 173 | ||
174 | 174 | func ak (ai,aj) = if ((aj >= af)) | |
175 | 175 | then ai | |
176 | - | else throw("List size exceeds | |
176 | + | else throw("List size exceeds 110") | |
177 | 177 | ||
178 | - | ak | |
178 | + | ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 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) | |
179 | 179 | } | |
180 | - | (J(I, toBase58String(H), F, z, y) ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)]) | |
180 | + | ((ad ++ J(I, toBase58String(H), F, z, y)) ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)]) | |
181 | 181 | } | |
182 | 182 | } | |
183 | 183 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1024 | |
5 | 5 | ||
6 | 6 | let b = 1024 | |
7 | 7 | ||
8 | 8 | let c = "https://nft.gridgang.io/" | |
9 | 9 | ||
10 | 10 | let d = "addOwnerAndAmount" | |
11 | 11 | ||
12 | 12 | let e = true | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = 1000000 | |
17 | 17 | ||
18 | 18 | let h = "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL" | |
19 | 19 | ||
20 | 20 | let i = Address(fromBase58String(h)) | |
21 | 21 | ||
22 | 22 | let j = "AyAwWbMPM7a4VYkn1bhEBftC5WZgfvUXgrYDe98mvLsv" | |
23 | 23 | ||
24 | 24 | let k = "3MwPsLy9F1mUQrdP37sCAKvHuE5HvPE674Y" | |
25 | 25 | ||
26 | 26 | let l = Address(fromBase58String(k)) | |
27 | 27 | ||
28 | 28 | func m (n,o) = ((n + ",") + o) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func p (n,o) = m(n, o) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func q (r) = { | |
35 | 35 | let s = split(r, ",") | |
36 | 36 | let t = $Tuple2(s[0], s[1]) | |
37 | 37 | t | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func u (r) = { | |
42 | 42 | let v = q(r) | |
43 | 43 | let n = v._1 | |
44 | 44 | let o = v._2 | |
45 | 45 | let w = p(n, o) | |
46 | 46 | w | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (n,o,y,z,A) = { | |
51 | 51 | let B = n | |
52 | 52 | let C = o | |
53 | 53 | let D = y | |
54 | 54 | let E = m(B, C) | |
55 | 55 | let F = ((c + A) + ".png") | |
56 | 56 | let G = Issue(((E + ",") + D), F, 1, 0, false) | |
57 | 57 | let H = calculateAssetId(G) | |
58 | 58 | let I = p(B, C) | |
59 | 59 | $Tuple4(G, H, F, I) | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func J (w,H,G,K,y) = [StringEntry((w + "_assetId"), H), StringEntry((w + "_asset"), G), StringEntry((w + "_owner"), K), StringEntry((w + "_gen"), y)] | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func L (M,N) = { | |
67 | 67 | let O = { | |
68 | 68 | let P = N | |
69 | 69 | if ($isInstanceOf(P, "Unit")) | |
70 | 70 | then "unset" | |
71 | 71 | else if ($isInstanceOf(P, "String")) | |
72 | 72 | then { | |
73 | 73 | let Q = P | |
74 | 74 | Q | |
75 | 75 | } | |
76 | 76 | else throw("Match error") | |
77 | 77 | } | |
78 | 78 | if ((O == "unset")) | |
79 | 79 | then M | |
80 | 80 | else { | |
81 | 81 | let H = { | |
82 | 82 | let P = getString(this, (O + "_assetId")) | |
83 | 83 | if ($isInstanceOf(P, "Unit")) | |
84 | 84 | then "unset" | |
85 | 85 | else if ($isInstanceOf(P, "String")) | |
86 | 86 | then { | |
87 | 87 | let Q = P | |
88 | 88 | Q | |
89 | 89 | } | |
90 | 90 | else throw("Match error") | |
91 | 91 | } | |
92 | 92 | if ((H == "unset")) | |
93 | 93 | then M | |
94 | 94 | else (M ++ [Burn(fromBase58String(H), 1)]) | |
95 | 95 | } | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(R) | |
100 | 100 | func purchase (n,o,S) = { | |
101 | 101 | let w = p(n, o) | |
102 | 102 | let T = valueOrElse(R.payments[0].amount, 0) | |
103 | 103 | let U = { | |
104 | 104 | let P = getString(this, (w + "_assetId")) | |
105 | 105 | if ($isInstanceOf(P, "Unit")) | |
106 | 106 | then "unset" | |
107 | 107 | else if ($isInstanceOf(P, "String")) | |
108 | 108 | then { | |
109 | 109 | let V = P | |
110 | 110 | throw("This square has already been purchased") | |
111 | 111 | } | |
112 | 112 | else throw("Match error") | |
113 | 113 | } | |
114 | 114 | if ((g > T)) | |
115 | 115 | then throw((("You need to send at least " + toString(g)) + "WAVLETS to purchase a square")) | |
116 | 116 | else { | |
117 | 117 | let z = toBase58String(R.caller.bytes) | |
118 | 118 | let A = toBase58String(R.transactionId) | |
119 | 119 | let W = x(n, o, "1", z, A) | |
120 | 120 | let G = W._1 | |
121 | 121 | let H = W._2 | |
122 | 122 | let F = W._3 | |
123 | 123 | let I = W._4 | |
124 | 124 | (J(I, toBase58String(H), F, z, "1") ++ [G, StringEntry((z + "_handle"), S), StringEntry(A, I), ScriptTransfer(R.caller, 1, H)]) | |
125 | 125 | } | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | ||
130 | 130 | @Callable(R) | |
131 | 131 | func autoBuy (n,o) = { | |
132 | 132 | let X = toBase58String(R.caller.bytes) | |
133 | 133 | if (if ((X != k)) | |
134 | 134 | then (X != h) | |
135 | 135 | else false) | |
136 | 136 | then throw("This can only be triggering internally") | |
137 | 137 | else { | |
138 | 138 | let A = toBase58String(R.transactionId) | |
139 | 139 | let Y = x(n, o, "1", k, A) | |
140 | 140 | let G = Y._1 | |
141 | 141 | let H = Y._2 | |
142 | 142 | let F = Y._3 | |
143 | 143 | let I = Y._4 | |
144 | 144 | let Z = toBase58String(H) | |
145 | 145 | let aa = invoke(l, d, [k, Z, 3], [AttachedPayment(unit, 0)]) | |
146 | 146 | if ((aa == aa)) | |
147 | 147 | then (J(I, Z, F, k, "1") ++ [G, StringEntry(A, I), ScriptTransfer(l, 1, H)]) | |
148 | 148 | else throw("Strict value is not equal to itself.") | |
149 | 149 | } | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | ||
154 | 154 | @Callable(R) | |
155 | 155 | func evolve (n,o,y,z,ab) = { | |
156 | 156 | let X = toBase58String(R.caller.bytes) | |
157 | 157 | if ((X != k)) | |
158 | 158 | then throw("This can only be triggering internally") | |
159 | 159 | else { | |
160 | 160 | let A = toBase58String(R.transactionId) | |
161 | 161 | let ac = x(n, o, y, z, A) | |
162 | 162 | let G = ac._1 | |
163 | 163 | let H = ac._2 | |
164 | 164 | let F = ac._3 | |
165 | 165 | let I = ac._4 | |
166 | 166 | let ad = { | |
167 | 167 | let ae = split(ab, "|") | |
168 | 168 | let af = size(ae) | |
169 | 169 | let ag = nil | |
170 | 170 | func ah (ai,aj) = if ((aj >= af)) | |
171 | 171 | then ai | |
172 | 172 | else L(ai, ae[aj]) | |
173 | 173 | ||
174 | 174 | func ak (ai,aj) = if ((aj >= af)) | |
175 | 175 | then ai | |
176 | - | else throw("List size exceeds | |
176 | + | else throw("List size exceeds 110") | |
177 | 177 | ||
178 | - | ak | |
178 | + | ak(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ag, 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) | |
179 | 179 | } | |
180 | - | (J(I, toBase58String(H), F, z, y) ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)]) | |
180 | + | ((ad ++ J(I, toBase58String(H), F, z, y)) ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)]) | |
181 | 181 | } | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Callable(R) | |
187 | 187 | func putForSale (H,al) = { | |
188 | 188 | let X = toBase58String(R.caller.bytes) | |
189 | 189 | let am = { | |
190 | 190 | let P = assetInfo(fromBase58String(H)) | |
191 | 191 | if ($isInstanceOf(P, "Asset")) | |
192 | 192 | then { | |
193 | 193 | let an = P | |
194 | 194 | an | |
195 | 195 | } | |
196 | 196 | else throw("Asset not found") | |
197 | 197 | } | |
198 | 198 | let ao = u(am.name) | |
199 | 199 | let z = { | |
200 | 200 | let P = getString(this, (ao + "_owner")) | |
201 | 201 | if ($isInstanceOf(P, "String")) | |
202 | 202 | then { | |
203 | 203 | let ap = P | |
204 | 204 | ap | |
205 | 205 | } | |
206 | 206 | else throw("Owner not found in data") | |
207 | 207 | } | |
208 | 208 | if ((f > al)) | |
209 | 209 | then throw("Amount needs to be more than 1 wave") | |
210 | 210 | else if (if ((X != z)) | |
211 | 211 | then (X != k) | |
212 | 212 | else false) | |
213 | 213 | then throw("You are not able to put this asset up for sale") | |
214 | 214 | else { | |
215 | 215 | let aa = invoke(l, d, [X, H, al], [AttachedPayment(unit, 0)]) | |
216 | 216 | if ((aa == aa)) | |
217 | 217 | then [ScriptTransfer(l, 1, fromBase58String(H))] | |
218 | 218 | else throw("Strict value is not equal to itself.") | |
219 | 219 | } | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(R) | |
225 | 225 | func finalizeSale (H,z,S) = { | |
226 | 226 | let X = toBase58String(R.caller.bytes) | |
227 | 227 | if ((X != k)) | |
228 | 228 | then throw("This can only be triggering internally") | |
229 | 229 | else { | |
230 | 230 | let w = { | |
231 | 231 | let P = assetInfo(fromBase58String(H)) | |
232 | 232 | if ($isInstanceOf(P, "Asset")) | |
233 | 233 | then { | |
234 | 234 | let G = P | |
235 | 235 | G.name | |
236 | 236 | } | |
237 | 237 | else throw("Can't find asset") | |
238 | 238 | } | |
239 | 239 | [StringEntry((w + "_owner"), z), StringEntry((z + "_handle"), S)] | |
240 | 240 | } | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(R) | |
246 | 246 | func adminPromotionPurchase (n,o,aq) = { | |
247 | 247 | let X = toBase58String(R.caller.bytes) | |
248 | 248 | if ((X != k)) | |
249 | 249 | then throw("This can only be triggering internally") | |
250 | 250 | else { | |
251 | 251 | let A = toBase58String(R.transactionId) | |
252 | 252 | let ar = x(n, o, "1", aq, A) | |
253 | 253 | let G = ar._1 | |
254 | 254 | let H = ar._2 | |
255 | 255 | let F = ar._3 | |
256 | 256 | let I = ar._4 | |
257 | 257 | let Z = toBase58String(H) | |
258 | 258 | (J(I, Z, F, aq, "1") ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(aq)), 1, H)]) | |
259 | 259 | } | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | ||
264 | 264 | @Callable(R) | |
265 | 265 | func adminSetHandle (z,as) = { | |
266 | 266 | let X = toBase58String(R.caller.bytes) | |
267 | 267 | if ((X != k)) | |
268 | 268 | then throw("This can only be triggering internally") | |
269 | 269 | else [StringEntry((z + "_handle"), as)] | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Verifier(at) | |
274 | 274 | func au () = if (if (sigVerify(at.bodyBytes, at.proofs[0], at.senderPublicKey)) | |
275 | 275 | then true | |
276 | 276 | else (addressFromPublicKey(at.senderPublicKey) == l)) | |
277 | 277 | then true | |
278 | 278 | else (addressFromPublicKey(at.senderPublicKey) == i) | |
279 | 279 |
github/deemru/w8io/169f3d6 200.22 ms ◑