tx · Ew4q9KZXahkkyu6ryMVxVCGWy3pumEtPVGkoyJQ7ohpY 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL: -0.04000000 Waves 2022.04.20 15:43 [2016877] smart account 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL > SELF 0.00000000 Waves
{ "type": 13, "id": "Ew4q9KZXahkkyu6ryMVxVCGWy3pumEtPVGkoyJQ7ohpY", "fee": 4000000, "feeAssetId": null, "timestamp": 1650458582505, "version": 2, "chainId": 84, "sender": "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL", "senderPublicKey": "G6aSmaqLJ4p7jzm7BnQcZuqa2NRRLVtzqdYNjYErnEZZ", "proofs": [ "5qejGBeJMaHrs4TimK5H1yZViUvehexybJax6ujTBsjWkTEHrAvSANgkTESt3SgRqf8HXiHA97fHWqbBMGokFxLT" ], "script": "base64:AAIFAAAAAAAAADIIAhIFCgMICAgSBAoCCAgSBwoFCAgICAgSBAoCCAESBQoDCAgIEgUKAwgICBIECgIICAAAABMAAAAABENPTFMAAAAAAAAABAAAAAAABFJPV1MAAAAAAAAABAAAAAAACW5mdERvbWFpbgIAAAAYaHR0cHM6Ly9uZnQuZ3JpZGdhbmcuaW8vAAAAABVhZGRPd25lckFuZEFtb3VudEZ1bmMCAAAAEWFkZE93bmVyQW5kQW1vdW50AAAAAAVERUJVRwYAAAAAEW1pbkZvclNhbGVXYXZsZXRzAAAAAAAF9eEAAAAAABBtaW5QdXJjaGFzZVByaWNlAAAAAAAAD0JAAAAAAARkYXBwAgAAACMzTjdKNm1NTWtqVlZpQlJFejl5NTNKbWNYN3I3S1pSWFFwTAAAAAALZGFwcEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAARkYXBwAAAAABFob2xkaW5nc1B1YmxpY0tleQIAAAAsQXlBd1diTVBNN2E0VllrbjFiaEVCZnRDNVdaZ2Z2VVhncllEZTk4bXZMc3YAAAAACGhvbGRpbmdzAgAAACMzTXdQ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JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAAEWRlc2luYXRpb25BZGRyZXNzAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABaQEAAAAOYWRtaW5TZXRIYW5kbGUAAAACAAAAB293bmVySWQAAAAGaGFuZGxlBAAAAAhjYWxsZXJJZAkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAAIY2FsbGVySWQFAAAACGhvbGRpbmdzCQAAAgAAAAECAAAAJlRoaXMgY2FuIG9ubHkgYmUgdHJpZ2dlcmluZyBpbnRlcm5hbGx5CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAHb3duZXJJZAIAAAAHX2hhbmRsZQUAAAAGaGFuZGxlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAAAwMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BgkAAAAAAAACCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BQAAAA9ob2xkaW5nc0FkZHJlc3MGCQAAAAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAC2RhcHBBZGRyZXNz1/vlFQ==", "height": 2016877, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HSVG75L6UBtr3LSeJmNVcigC1AgziJ3mMCmpn86Dt2tR Next: FxUFGsw1FwwuA9TEjrbyEDnpo4CLPca9tbDKrBHmhHGy Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | @Callable(L) | |
67 | - | func purchase (n,o,M) = { | |
66 | + | func L (M,N) = { | |
67 | + | let O = { | |
68 | + | let P = N | |
69 | + | if ($isInstanceOf(P, "Unit")) | |
70 | + | then "unset" | |
71 | + | else if ($isInstanceOf(P, "String")) | |
72 | + | then { | |
73 | + | let Q = P | |
74 | + | Q | |
75 | + | } | |
76 | + | else throw("Match error") | |
77 | + | } | |
78 | + | if ((O == "unset")) | |
79 | + | then M | |
80 | + | else { | |
81 | + | let H = { | |
82 | + | let P = getString(this, (O + "_assetId")) | |
83 | + | if ($isInstanceOf(P, "Unit")) | |
84 | + | then "unset" | |
85 | + | else if ($isInstanceOf(P, "String")) | |
86 | + | then { | |
87 | + | let Q = P | |
88 | + | Q | |
89 | + | } | |
90 | + | else throw("Match error") | |
91 | + | } | |
92 | + | if ((H == "unset")) | |
93 | + | then M | |
94 | + | else (M ++ [Burn(fromBase58String(H), 1)]) | |
95 | + | } | |
96 | + | } | |
97 | + | ||
98 | + | ||
99 | + | @Callable(R) | |
100 | + | func purchase (n,o,S) = { | |
68 | 101 | let w = p(n, o) | |
69 | - | let | |
70 | - | let | |
102 | + | let T = valueOrElse(R.payments[0].amount, 0) | |
103 | + | let U = { | |
71 | 104 | let P = getString(this, (w + "_assetId")) | |
72 | 105 | if ($isInstanceOf(P, "Unit")) | |
73 | 106 | then "unset" | |
74 | 107 | else if ($isInstanceOf(P, "String")) | |
75 | 108 | then { | |
76 | - | let | |
109 | + | let V = P | |
77 | 110 | throw("This square has already been purchased") | |
78 | 111 | } | |
79 | 112 | else throw("Match error") | |
80 | 113 | } | |
81 | - | if ((g > | |
114 | + | if ((g > T)) | |
82 | 115 | then throw((("You need to send at least " + toString(g)) + "WAVLETS to purchase a square")) | |
83 | 116 | else { | |
84 | - | let z = toBase58String( | |
85 | - | let A = toBase58String( | |
86 | - | let | |
87 | - | let G = | |
88 | - | let H = | |
89 | - | let F = | |
90 | - | let I = | |
91 | - | (J(I, toBase58String(H), F, z, "1") ++ [G, StringEntry((z + "_handle"), | |
117 | + | let z = toBase58String(R.caller.bytes) | |
118 | + | let A = toBase58String(R.transactionId) | |
119 | + | let W = x(n, o, "1", z, A) | |
120 | + | let G = W._1 | |
121 | + | let H = W._2 | |
122 | + | let F = W._3 | |
123 | + | let I = W._4 | |
124 | + | (J(I, toBase58String(H), F, z, "1") ++ [G, StringEntry((z + "_handle"), S), StringEntry(A, I), ScriptTransfer(R.caller, 1, H)]) | |
92 | 125 | } | |
93 | 126 | } | |
94 | 127 | ||
95 | 128 | ||
96 | 129 | ||
97 | - | @Callable( | |
130 | + | @Callable(R) | |
98 | 131 | func autoBuy (n,o) = { | |
99 | - | let | |
100 | - | if (if (( | |
101 | - | then ( | |
132 | + | let X = toBase58String(R.caller.bytes) | |
133 | + | if (if ((X != k)) | |
134 | + | then (X != h) | |
102 | 135 | else false) | |
103 | 136 | then throw("This can only be triggering internally") | |
104 | 137 | else { | |
105 | - | let A = toBase58String( | |
106 | - | let | |
107 | - | let G = | |
108 | - | let H = | |
109 | - | let F = | |
110 | - | let I = | |
111 | - | let | |
112 | - | let | |
113 | - | if (( | |
114 | - | then (J(I, | |
138 | + | let A = toBase58String(R.transactionId) | |
139 | + | let Y = x(n, o, "1", k, A) | |
140 | + | let G = Y._1 | |
141 | + | let H = Y._2 | |
142 | + | let F = Y._3 | |
143 | + | let I = Y._4 | |
144 | + | let Z = toBase58String(H) | |
145 | + | let aa = invoke(l, d, [k, Z, 3], [AttachedPayment(unit, 0)]) | |
146 | + | if ((aa == aa)) | |
147 | + | then (J(I, Z, F, k, "1") ++ [G, StringEntry(A, I), ScriptTransfer(l, 1, H)]) | |
115 | 148 | else throw("Strict value is not equal to itself.") | |
116 | 149 | } | |
117 | 150 | } | |
118 | 151 | ||
119 | 152 | ||
120 | 153 | ||
121 | - | @Callable( | |
122 | - | func evolve (n,o,y,z) = { | |
123 | - | let | |
124 | - | if (( | |
154 | + | @Callable(R) | |
155 | + | func evolve (n,o,y,z,ab) = { | |
156 | + | let X = toBase58String(R.caller.bytes) | |
157 | + | if ((X != k)) | |
125 | 158 | then throw("This can only be triggering internally") | |
126 | 159 | else { | |
127 | - | let A = toBase58String(L.transactionId) | |
128 | - | let W = x(n, o, y, z, A) | |
129 | - | let G = W._1 | |
130 | - | let H = W._2 | |
131 | - | let F = W._3 | |
132 | - | let I = W._4 | |
133 | - | (J(I, toBase58String(H), F, z, y) ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)]) | |
160 | + | let A = toBase58String(R.transactionId) | |
161 | + | let ac = x(n, o, y, z, A) | |
162 | + | let G = ac._1 | |
163 | + | let H = ac._2 | |
164 | + | let F = ac._3 | |
165 | + | let I = ac._4 | |
166 | + | let ad = { | |
167 | + | let ae = split(ab, "|") | |
168 | + | let af = size(ae) | |
169 | + | let ag = nil | |
170 | + | func ah (ai,aj) = if ((aj >= af)) | |
171 | + | then ai | |
172 | + | else L(ai, ae[aj]) | |
173 | + | ||
174 | + | func ak (ai,aj) = if ((aj >= af)) | |
175 | + | then ai | |
176 | + | else throw("List size exceeds 110") | |
177 | + | ||
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 | + | } | |
180 | + | ((ad ++ J(I, toBase58String(H), F, z, y)) ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)]) | |
134 | 181 | } | |
135 | 182 | } | |
136 | 183 | ||
137 | 184 | ||
138 | 185 | ||
139 | - | @Callable( | |
140 | - | func putForSale (H, | |
141 | - | let | |
142 | - | let | |
186 | + | @Callable(R) | |
187 | + | func putForSale (H,al) = { | |
188 | + | let X = toBase58String(R.caller.bytes) | |
189 | + | let am = { | |
143 | 190 | let P = assetInfo(fromBase58String(H)) | |
144 | 191 | if ($isInstanceOf(P, "Asset")) | |
145 | 192 | then { | |
146 | - | let | |
147 | - | | |
193 | + | let an = P | |
194 | + | an | |
148 | 195 | } | |
149 | 196 | else throw("Asset not found") | |
150 | 197 | } | |
151 | - | let | |
198 | + | let ao = u(am.name) | |
152 | 199 | let z = { | |
153 | - | let P = getString(this, ( | |
200 | + | let P = getString(this, (ao + "_owner")) | |
154 | 201 | if ($isInstanceOf(P, "String")) | |
155 | 202 | then { | |
156 | - | let | |
157 | - | | |
203 | + | let ap = P | |
204 | + | ap | |
158 | 205 | } | |
159 | 206 | else throw("Owner not found in data") | |
160 | 207 | } | |
161 | - | if ((f > | |
208 | + | if ((f > al)) | |
162 | 209 | then throw("Amount needs to be more than 1 wave") | |
163 | - | else if (if (( | |
164 | - | then ( | |
210 | + | else if (if ((X != z)) | |
211 | + | then (X != k) | |
165 | 212 | else false) | |
166 | 213 | then throw("You are not able to put this asset up for sale") | |
167 | 214 | else { | |
168 | - | let | |
169 | - | if (( | |
215 | + | let aa = invoke(l, d, [X, H, al], [AttachedPayment(unit, 0)]) | |
216 | + | if ((aa == aa)) | |
170 | 217 | then [ScriptTransfer(l, 1, fromBase58String(H))] | |
171 | 218 | else throw("Strict value is not equal to itself.") | |
172 | 219 | } | |
174 | 221 | ||
175 | 222 | ||
176 | 223 | ||
177 | - | @Callable( | |
178 | - | func finalizeSale (H,z, | |
179 | - | let | |
180 | - | if (( | |
224 | + | @Callable(R) | |
225 | + | func finalizeSale (H,z,S) = { | |
226 | + | let X = toBase58String(R.caller.bytes) | |
227 | + | if ((X != k)) | |
181 | 228 | then throw("This can only be triggering internally") | |
182 | 229 | else { | |
183 | 230 | let w = { | |
189 | 236 | } | |
190 | 237 | else throw("Can't find asset") | |
191 | 238 | } | |
192 | - | [StringEntry((w + "_owner"), z), StringEntry((z + "_handle"), | |
239 | + | [StringEntry((w + "_owner"), z), StringEntry((z + "_handle"), S)] | |
193 | 240 | } | |
194 | 241 | } | |
195 | 242 | ||
196 | 243 | ||
197 | 244 | ||
198 | - | @Callable( | |
199 | - | func adminPromotionPurchase (n,o, | |
200 | - | let | |
201 | - | if (( | |
245 | + | @Callable(R) | |
246 | + | func adminPromotionPurchase (n,o,aq) = { | |
247 | + | let X = toBase58String(R.caller.bytes) | |
248 | + | if ((X != k)) | |
202 | 249 | then throw("This can only be triggering internally") | |
203 | 250 | else { | |
204 | - | let A = toBase58String( | |
205 | - | let | |
206 | - | let G = | |
207 | - | let H = | |
208 | - | let F = | |
209 | - | let I = | |
210 | - | let | |
211 | - | (J(I, | |
251 | + | let A = toBase58String(R.transactionId) | |
252 | + | let ar = x(n, o, "1", aq, A) | |
253 | + | let G = ar._1 | |
254 | + | let H = ar._2 | |
255 | + | let F = ar._3 | |
256 | + | let I = ar._4 | |
257 | + | let Z = toBase58String(H) | |
258 | + | (J(I, Z, F, aq, "1") ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(aq)), 1, H)]) | |
212 | 259 | } | |
213 | 260 | } | |
214 | 261 | ||
215 | 262 | ||
216 | 263 | ||
217 | - | @Callable( | |
218 | - | func adminSetHandle (z, | |
219 | - | let | |
220 | - | if (( | |
264 | + | @Callable(R) | |
265 | + | func adminSetHandle (z,as) = { | |
266 | + | let X = toBase58String(R.caller.bytes) | |
267 | + | if ((X != k)) | |
221 | 268 | then throw("This can only be triggering internally") | |
222 | - | else [StringEntry((z + "_handle"), | |
269 | + | else [StringEntry((z + "_handle"), as)] | |
223 | 270 | } | |
224 | 271 | ||
225 | 272 | ||
226 | - | ||
227 | - | @Callable(L) | |
228 | - | func burnTest (H) = [Burn(fromBase58String(H), 1)] | |
229 | - | ||
230 | - | ||
231 | - | @Verifier(af) | |
232 | - | func ag () = if (if (sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey)) | |
273 | + | @Verifier(at) | |
274 | + | func au () = if (if (sigVerify(at.bodyBytes, at.proofs[0], at.senderPublicKey)) | |
233 | 275 | then true | |
234 | - | else (addressFromPublicKey( | |
276 | + | else (addressFromPublicKey(at.senderPublicKey) == l)) | |
235 | 277 | then true | |
236 | - | else (addressFromPublicKey( | |
278 | + | else (addressFromPublicKey(at.senderPublicKey) == i) | |
237 | 279 |
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, 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 | - | @Callable(L) | |
67 | - | func purchase (n,o,M) = { | |
66 | + | func L (M,N) = { | |
67 | + | let O = { | |
68 | + | let P = N | |
69 | + | if ($isInstanceOf(P, "Unit")) | |
70 | + | then "unset" | |
71 | + | else if ($isInstanceOf(P, "String")) | |
72 | + | then { | |
73 | + | let Q = P | |
74 | + | Q | |
75 | + | } | |
76 | + | else throw("Match error") | |
77 | + | } | |
78 | + | if ((O == "unset")) | |
79 | + | then M | |
80 | + | else { | |
81 | + | let H = { | |
82 | + | let P = getString(this, (O + "_assetId")) | |
83 | + | if ($isInstanceOf(P, "Unit")) | |
84 | + | then "unset" | |
85 | + | else if ($isInstanceOf(P, "String")) | |
86 | + | then { | |
87 | + | let Q = P | |
88 | + | Q | |
89 | + | } | |
90 | + | else throw("Match error") | |
91 | + | } | |
92 | + | if ((H == "unset")) | |
93 | + | then M | |
94 | + | else (M ++ [Burn(fromBase58String(H), 1)]) | |
95 | + | } | |
96 | + | } | |
97 | + | ||
98 | + | ||
99 | + | @Callable(R) | |
100 | + | func purchase (n,o,S) = { | |
68 | 101 | let w = p(n, o) | |
69 | - | let | |
70 | - | let | |
102 | + | let T = valueOrElse(R.payments[0].amount, 0) | |
103 | + | let U = { | |
71 | 104 | let P = getString(this, (w + "_assetId")) | |
72 | 105 | if ($isInstanceOf(P, "Unit")) | |
73 | 106 | then "unset" | |
74 | 107 | else if ($isInstanceOf(P, "String")) | |
75 | 108 | then { | |
76 | - | let | |
109 | + | let V = P | |
77 | 110 | throw("This square has already been purchased") | |
78 | 111 | } | |
79 | 112 | else throw("Match error") | |
80 | 113 | } | |
81 | - | if ((g > | |
114 | + | if ((g > T)) | |
82 | 115 | then throw((("You need to send at least " + toString(g)) + "WAVLETS to purchase a square")) | |
83 | 116 | else { | |
84 | - | let z = toBase58String( | |
85 | - | let A = toBase58String( | |
86 | - | let | |
87 | - | let G = | |
88 | - | let H = | |
89 | - | let F = | |
90 | - | let I = | |
91 | - | (J(I, toBase58String(H), F, z, "1") ++ [G, StringEntry((z + "_handle"), | |
117 | + | let z = toBase58String(R.caller.bytes) | |
118 | + | let A = toBase58String(R.transactionId) | |
119 | + | let W = x(n, o, "1", z, A) | |
120 | + | let G = W._1 | |
121 | + | let H = W._2 | |
122 | + | let F = W._3 | |
123 | + | let I = W._4 | |
124 | + | (J(I, toBase58String(H), F, z, "1") ++ [G, StringEntry((z + "_handle"), S), StringEntry(A, I), ScriptTransfer(R.caller, 1, H)]) | |
92 | 125 | } | |
93 | 126 | } | |
94 | 127 | ||
95 | 128 | ||
96 | 129 | ||
97 | - | @Callable( | |
130 | + | @Callable(R) | |
98 | 131 | func autoBuy (n,o) = { | |
99 | - | let | |
100 | - | if (if (( | |
101 | - | then ( | |
132 | + | let X = toBase58String(R.caller.bytes) | |
133 | + | if (if ((X != k)) | |
134 | + | then (X != h) | |
102 | 135 | else false) | |
103 | 136 | then throw("This can only be triggering internally") | |
104 | 137 | else { | |
105 | - | let A = toBase58String( | |
106 | - | let | |
107 | - | let G = | |
108 | - | let H = | |
109 | - | let F = | |
110 | - | let I = | |
111 | - | let | |
112 | - | let | |
113 | - | if (( | |
114 | - | then (J(I, | |
138 | + | let A = toBase58String(R.transactionId) | |
139 | + | let Y = x(n, o, "1", k, A) | |
140 | + | let G = Y._1 | |
141 | + | let H = Y._2 | |
142 | + | let F = Y._3 | |
143 | + | let I = Y._4 | |
144 | + | let Z = toBase58String(H) | |
145 | + | let aa = invoke(l, d, [k, Z, 3], [AttachedPayment(unit, 0)]) | |
146 | + | if ((aa == aa)) | |
147 | + | then (J(I, Z, F, k, "1") ++ [G, StringEntry(A, I), ScriptTransfer(l, 1, H)]) | |
115 | 148 | else throw("Strict value is not equal to itself.") | |
116 | 149 | } | |
117 | 150 | } | |
118 | 151 | ||
119 | 152 | ||
120 | 153 | ||
121 | - | @Callable( | |
122 | - | func evolve (n,o,y,z) = { | |
123 | - | let | |
124 | - | if (( | |
154 | + | @Callable(R) | |
155 | + | func evolve (n,o,y,z,ab) = { | |
156 | + | let X = toBase58String(R.caller.bytes) | |
157 | + | if ((X != k)) | |
125 | 158 | then throw("This can only be triggering internally") | |
126 | 159 | else { | |
127 | - | let A = toBase58String(L.transactionId) | |
128 | - | let W = x(n, o, y, z, A) | |
129 | - | let G = W._1 | |
130 | - | let H = W._2 | |
131 | - | let F = W._3 | |
132 | - | let I = W._4 | |
133 | - | (J(I, toBase58String(H), F, z, y) ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)]) | |
160 | + | let A = toBase58String(R.transactionId) | |
161 | + | let ac = x(n, o, y, z, A) | |
162 | + | let G = ac._1 | |
163 | + | let H = ac._2 | |
164 | + | let F = ac._3 | |
165 | + | let I = ac._4 | |
166 | + | let ad = { | |
167 | + | let ae = split(ab, "|") | |
168 | + | let af = size(ae) | |
169 | + | let ag = nil | |
170 | + | func ah (ai,aj) = if ((aj >= af)) | |
171 | + | then ai | |
172 | + | else L(ai, ae[aj]) | |
173 | + | ||
174 | + | func ak (ai,aj) = if ((aj >= af)) | |
175 | + | then ai | |
176 | + | else throw("List size exceeds 110") | |
177 | + | ||
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 | + | } | |
180 | + | ((ad ++ J(I, toBase58String(H), F, z, y)) ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)]) | |
134 | 181 | } | |
135 | 182 | } | |
136 | 183 | ||
137 | 184 | ||
138 | 185 | ||
139 | - | @Callable( | |
140 | - | func putForSale (H, | |
141 | - | let | |
142 | - | let | |
186 | + | @Callable(R) | |
187 | + | func putForSale (H,al) = { | |
188 | + | let X = toBase58String(R.caller.bytes) | |
189 | + | let am = { | |
143 | 190 | let P = assetInfo(fromBase58String(H)) | |
144 | 191 | if ($isInstanceOf(P, "Asset")) | |
145 | 192 | then { | |
146 | - | let | |
147 | - | | |
193 | + | let an = P | |
194 | + | an | |
148 | 195 | } | |
149 | 196 | else throw("Asset not found") | |
150 | 197 | } | |
151 | - | let | |
198 | + | let ao = u(am.name) | |
152 | 199 | let z = { | |
153 | - | let P = getString(this, ( | |
200 | + | let P = getString(this, (ao + "_owner")) | |
154 | 201 | if ($isInstanceOf(P, "String")) | |
155 | 202 | then { | |
156 | - | let | |
157 | - | | |
203 | + | let ap = P | |
204 | + | ap | |
158 | 205 | } | |
159 | 206 | else throw("Owner not found in data") | |
160 | 207 | } | |
161 | - | if ((f > | |
208 | + | if ((f > al)) | |
162 | 209 | then throw("Amount needs to be more than 1 wave") | |
163 | - | else if (if (( | |
164 | - | then ( | |
210 | + | else if (if ((X != z)) | |
211 | + | then (X != k) | |
165 | 212 | else false) | |
166 | 213 | then throw("You are not able to put this asset up for sale") | |
167 | 214 | else { | |
168 | - | let | |
169 | - | if (( | |
215 | + | let aa = invoke(l, d, [X, H, al], [AttachedPayment(unit, 0)]) | |
216 | + | if ((aa == aa)) | |
170 | 217 | then [ScriptTransfer(l, 1, fromBase58String(H))] | |
171 | 218 | else throw("Strict value is not equal to itself.") | |
172 | 219 | } | |
173 | 220 | } | |
174 | 221 | ||
175 | 222 | ||
176 | 223 | ||
177 | - | @Callable( | |
178 | - | func finalizeSale (H,z, | |
179 | - | let | |
180 | - | if (( | |
224 | + | @Callable(R) | |
225 | + | func finalizeSale (H,z,S) = { | |
226 | + | let X = toBase58String(R.caller.bytes) | |
227 | + | if ((X != k)) | |
181 | 228 | then throw("This can only be triggering internally") | |
182 | 229 | else { | |
183 | 230 | let w = { | |
184 | 231 | let P = assetInfo(fromBase58String(H)) | |
185 | 232 | if ($isInstanceOf(P, "Asset")) | |
186 | 233 | then { | |
187 | 234 | let G = P | |
188 | 235 | G.name | |
189 | 236 | } | |
190 | 237 | else throw("Can't find asset") | |
191 | 238 | } | |
192 | - | [StringEntry((w + "_owner"), z), StringEntry((z + "_handle"), | |
239 | + | [StringEntry((w + "_owner"), z), StringEntry((z + "_handle"), S)] | |
193 | 240 | } | |
194 | 241 | } | |
195 | 242 | ||
196 | 243 | ||
197 | 244 | ||
198 | - | @Callable( | |
199 | - | func adminPromotionPurchase (n,o, | |
200 | - | let | |
201 | - | if (( | |
245 | + | @Callable(R) | |
246 | + | func adminPromotionPurchase (n,o,aq) = { | |
247 | + | let X = toBase58String(R.caller.bytes) | |
248 | + | if ((X != k)) | |
202 | 249 | then throw("This can only be triggering internally") | |
203 | 250 | else { | |
204 | - | let A = toBase58String( | |
205 | - | let | |
206 | - | let G = | |
207 | - | let H = | |
208 | - | let F = | |
209 | - | let I = | |
210 | - | let | |
211 | - | (J(I, | |
251 | + | let A = toBase58String(R.transactionId) | |
252 | + | let ar = x(n, o, "1", aq, A) | |
253 | + | let G = ar._1 | |
254 | + | let H = ar._2 | |
255 | + | let F = ar._3 | |
256 | + | let I = ar._4 | |
257 | + | let Z = toBase58String(H) | |
258 | + | (J(I, Z, F, aq, "1") ++ [G, StringEntry(A, I), ScriptTransfer(Address(fromBase58String(aq)), 1, H)]) | |
212 | 259 | } | |
213 | 260 | } | |
214 | 261 | ||
215 | 262 | ||
216 | 263 | ||
217 | - | @Callable( | |
218 | - | func adminSetHandle (z, | |
219 | - | let | |
220 | - | if (( | |
264 | + | @Callable(R) | |
265 | + | func adminSetHandle (z,as) = { | |
266 | + | let X = toBase58String(R.caller.bytes) | |
267 | + | if ((X != k)) | |
221 | 268 | then throw("This can only be triggering internally") | |
222 | - | else [StringEntry((z + "_handle"), | |
269 | + | else [StringEntry((z + "_handle"), as)] | |
223 | 270 | } | |
224 | 271 | ||
225 | 272 | ||
226 | - | ||
227 | - | @Callable(L) | |
228 | - | func burnTest (H) = [Burn(fromBase58String(H), 1)] | |
229 | - | ||
230 | - | ||
231 | - | @Verifier(af) | |
232 | - | func ag () = if (if (sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey)) | |
273 | + | @Verifier(at) | |
274 | + | func au () = if (if (sigVerify(at.bodyBytes, at.proofs[0], at.senderPublicKey)) | |
233 | 275 | then true | |
234 | - | else (addressFromPublicKey( | |
276 | + | else (addressFromPublicKey(at.senderPublicKey) == l)) | |
235 | 277 | then true | |
236 | - | else (addressFromPublicKey( | |
278 | + | else (addressFromPublicKey(at.senderPublicKey) == i) | |
237 | 279 |
github/deemru/w8io/026f985 133.56 ms ◑