tx · DSfKH1do9BwzncYAhLvsVzayW1XWiXcL69PvRDss2T6G 3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu: -0.04000000 Waves 2022.04.16 18:52 [2011315] smart account 3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu > SELF 0.00000000 Waves
{ "type": 13, "id": "DSfKH1do9BwzncYAhLvsVzayW1XWiXcL69PvRDss2T6G", "fee": 4000000, "feeAssetId": null, "timestamp": 1650124329715, "version": 2, "chainId": 84, "sender": "3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu", "senderPublicKey": "D4v2S9mjah7eEEmuQVBNd4WipC3scs8V4PjuDBweWatE", "proofs": [ "3cHACZW8osZMzk1xJsqt5MGQRokHJZPfLiQRjsqyt357kPqbWDxfBg6tTdCqzhiLtcAs7QjsUrVdBpUzyCAXeSA" ], "script": "base64:AAIFAAAAAAAAACoIAhIFCgMICAgSBAoCCAgSBQoDCAgIEgYKBAgICAgSBAoCCAESBAoCCAgAAAARAAAAAARDT0xTAAAAAAAAAAQAAAAAAARST1dTAAAAAAAAAAQAAAAAAAluZnREb21haW4CAAAAGGh0dHBzOi8vbmZ0LmdyaWRnYW5nLmlvLwAAAAAVYWRkT3duZXJBbmRBbW91bnRGdW5jAgAAABFhZGRPd25lckFuZEFtb3VudAAAAAAFREVCVUcGAAAAABFtaW5Gb3JTYWxlV2F2bGV0cwAAAAAABfXhAAAAAAAQbWluUHVyY2hhc2VQcmljZQAAAAAAAA9CQAAAAAAEZGFwcAIAAAAjM012VXl6UXhOR213RXhBY0tkaG9qZktlbTNYd2tYZGtCeUgAAAAAC2RhcHBBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAEZGFwcAAAAAARaG9sZGluZ3NQdWJsaWNLZXkCAAAALDJlaXhxTERLSjVranVZOGltSDRIRzJGQkpkdVQ2UXNqeExMY2gxaWFBYWR4AAAAAAhob2xkaW5ncwIAAAAjM01wRnRjZGhhQjY2TkIzOHRXMk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AAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQYJAAAAAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQUAAAAPaG9sZGluZ3NBZGRyZXNzBgkAAAAAAAACCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BQAAAAtkYXBwQWRkcmVzcyfW994=", "height": 2011315, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9usH3PwWz2L24HfqnU77kom8LCik438hckcpW4286acA Next: none Diff:
Old | New | Differences | |
---|---|---|---|
15 | 15 | ||
16 | 16 | let g = 1000000 | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "3MvUyzQxNGmwExAcKdhojfKem3XwkXdkByH" | |
19 | 19 | ||
20 | 20 | let i = Address(fromBase58String(h)) | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "2eixqLDKJ5kjuY8imH4HG2FBJduT6QsjxLLch1iaAadx" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "3MpFtcdhaB66NB38tW2APSiaVqaAoWoPvRJ" | |
25 | 25 | ||
26 | 26 | let l = Address(fromBase58String(k)) | |
27 | 27 | ||
69 | 69 | ||
70 | 70 | ||
71 | 71 | @Callable(J) | |
72 | - | func purchase (n,o) = { | |
72 | + | func purchase (n,o,K) = { | |
73 | 73 | let s = q(n, o, "1") | |
74 | - | let | |
75 | - | let | |
76 | - | let | |
77 | - | if ($isInstanceOf( | |
74 | + | let L = valueOrElse(J.payments[0].amount, 0) | |
75 | + | let M = { | |
76 | + | let N = getString(this, (s + "_assetId")) | |
77 | + | if ($isInstanceOf(N, "Unit")) | |
78 | 78 | then "unset" | |
79 | - | else if ($isInstanceOf( | |
79 | + | else if ($isInstanceOf(N, "String")) | |
80 | 80 | then { | |
81 | - | let | |
81 | + | let O = N | |
82 | 82 | throw("This square has already been purchased") | |
83 | 83 | } | |
84 | 84 | else throw("Match error") | |
85 | 85 | } | |
86 | - | if ((g > | |
86 | + | if ((g > L)) | |
87 | 87 | then throw((("You need to send at least " + toString(g)) + "WAVLETS to purchase a square")) | |
88 | 88 | else { | |
89 | 89 | let z = toBase58String(J.caller.bytes) | |
90 | 90 | let A = toBase58String(J.transactionId) | |
91 | - | let | |
92 | - | let G = | |
93 | - | let H = | |
94 | - | let F = | |
95 | - | let I = | |
96 | - | [G, StringEntry((I + "_assetId"), toBase58String(H)), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), z), StringEntry(A, I), ScriptTransfer(J.caller, 1, H)] | |
91 | + | let P = y(n, o, "1", z, A) | |
92 | + | let G = P._1 | |
93 | + | let H = P._2 | |
94 | + | let F = P._3 | |
95 | + | let I = P._4 | |
96 | + | [G, StringEntry((I + "_assetId"), toBase58String(H)), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), z), StringEntry(A, I), StringEntry(z, K), ScriptTransfer(J.caller, 1, H)] | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 | ||
101 | 101 | ||
102 | 102 | @Callable(J) | |
103 | 103 | func autoBuy (n,o) = { | |
104 | - | let | |
105 | - | if (if (( | |
106 | - | then ( | |
104 | + | let Q = toBase58String(J.caller.bytes) | |
105 | + | if (if ((Q != k)) | |
106 | + | then (Q != h) | |
107 | 107 | else false) | |
108 | 108 | then throw("This can only be triggering internally") | |
109 | 109 | else { | |
110 | 110 | let A = toBase58String(J.transactionId) | |
111 | - | let | |
112 | - | let G = | |
113 | - | let H = | |
114 | - | let F = | |
115 | - | let I = | |
116 | - | let | |
117 | - | let | |
118 | - | if (( | |
119 | - | then [G, StringEntry((I + "_assetId"), | |
111 | + | let R = y(n, o, "1", k, A) | |
112 | + | let G = R._1 | |
113 | + | let H = R._2 | |
114 | + | let F = R._3 | |
115 | + | let I = R._4 | |
116 | + | let S = toBase58String(H) | |
117 | + | let T = invoke(l, d, [k, S, 3], [AttachedPayment(unit, 0)]) | |
118 | + | if ((T == T)) | |
119 | + | then [G, StringEntry((I + "_assetId"), S), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), k), StringEntry(A, I), ScriptTransfer(l, 1, H)] | |
120 | 120 | else throw("Strict value is not equal to itself.") | |
121 | 121 | } | |
122 | 122 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | @Callable(J) | |
127 | - | func promotionPurchase (n,o, | |
128 | - | let | |
129 | - | if (( | |
127 | + | func promotionPurchase (n,o,U) = { | |
128 | + | let Q = toBase58String(J.caller.bytes) | |
129 | + | if ((Q != k)) | |
130 | 130 | then throw("This can only be triggering internally") | |
131 | 131 | else { | |
132 | 132 | let A = toBase58String(J.transactionId) | |
133 | - | let | |
134 | - | let G = | |
135 | - | let H = | |
136 | - | let F = | |
137 | - | let I = | |
138 | - | let | |
139 | - | [G, StringEntry((I + "_assetId"), | |
133 | + | let V = y(n, o, "1", U, A) | |
134 | + | let G = V._1 | |
135 | + | let H = V._2 | |
136 | + | let F = V._3 | |
137 | + | let I = V._4 | |
138 | + | let S = toBase58String(H) | |
139 | + | [G, StringEntry((I + "_assetId"), S), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), U), StringEntry(A, I), ScriptTransfer(Address(fromBase58String(U)), 1, H)] | |
140 | 140 | } | |
141 | 141 | } | |
142 | 142 | ||
144 | 144 | ||
145 | 145 | @Callable(J) | |
146 | 146 | func evolve (n,o,r,z) = { | |
147 | - | let | |
148 | - | if (( | |
147 | + | let Q = toBase58String(J.caller.bytes) | |
148 | + | if ((Q != k)) | |
149 | 149 | then throw("This can only be triggering internally") | |
150 | 150 | else { | |
151 | 151 | let A = toBase58String(J.transactionId) | |
152 | - | let | |
153 | - | let G = | |
154 | - | let H = | |
155 | - | let F = | |
156 | - | let I = | |
152 | + | let W = y(n, o, r, z, A) | |
153 | + | let G = W._1 | |
154 | + | let H = W._2 | |
155 | + | let F = W._3 | |
156 | + | let I = W._4 | |
157 | 157 | [G, StringEntry((I + "_assetId"), toBase58String(H)), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), z), StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)] | |
158 | 158 | } | |
159 | 159 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | @Callable(J) | |
164 | - | func putForSale (H, | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | if ($isInstanceOf( | |
164 | + | func putForSale (H,X) = { | |
165 | + | let Q = toBase58String(J.caller.bytes) | |
166 | + | let Y = { | |
167 | + | let N = assetInfo(fromBase58String(H)) | |
168 | + | if ($isInstanceOf(N, "Asset")) | |
169 | 169 | then { | |
170 | - | let | |
171 | - | | |
170 | + | let Z = N | |
171 | + | Z | |
172 | 172 | } | |
173 | 173 | else throw("Asset not found") | |
174 | 174 | } | |
175 | - | let | |
175 | + | let aa = w(Y.name) | |
176 | 176 | let z = { | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
177 | + | let N = getString(this, (aa + "_owner")) | |
178 | + | if ($isInstanceOf(N, "String")) | |
179 | 179 | then { | |
180 | - | let | |
181 | - | | |
180 | + | let ab = N | |
181 | + | ab | |
182 | 182 | } | |
183 | 183 | else throw("Owner not found in data") | |
184 | 184 | } | |
185 | - | if ((f > | |
185 | + | if ((f > X)) | |
186 | 186 | then throw("Amount needs to be more than 1 wave") | |
187 | - | else if (if (( | |
188 | - | then ( | |
187 | + | else if (if ((Q != z)) | |
188 | + | then (Q != k) | |
189 | 189 | else false) | |
190 | 190 | then throw("You are not able to put this asset up for sale") | |
191 | 191 | else { | |
192 | - | let | |
193 | - | if (( | |
192 | + | let T = invoke(l, d, [Q, H, X], [AttachedPayment(unit, 0)]) | |
193 | + | if ((T == T)) | |
194 | 194 | then [ScriptTransfer(l, 1, fromBase58String(H))] | |
195 | 195 | else throw("Strict value is not equal to itself.") | |
196 | 196 | } | |
200 | 200 | ||
201 | 201 | @Callable(J) | |
202 | 202 | func finalizeSale (H,z) = { | |
203 | - | let | |
204 | - | if (( | |
203 | + | let Q = toBase58String(J.caller.bytes) | |
204 | + | if ((Q != k)) | |
205 | 205 | then throw("This can only be triggering internally") | |
206 | 206 | else { | |
207 | 207 | let s = { | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
208 | + | let N = assetInfo(fromBase58String(H)) | |
209 | + | if ($isInstanceOf(N, "Asset")) | |
210 | 210 | then { | |
211 | - | let G = | |
211 | + | let G = N | |
212 | 212 | G.name | |
213 | 213 | } | |
214 | 214 | else throw("Can't find asset") | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | - | @Verifier( | |
222 | - | func | |
221 | + | @Verifier(ac) | |
222 | + | func ad () = if (if (sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)) | |
223 | 223 | then true | |
224 | - | else (addressFromPublicKey( | |
224 | + | else (addressFromPublicKey(ac.senderPublicKey) == l)) | |
225 | 225 | then true | |
226 | - | else (addressFromPublicKey( | |
226 | + | else (addressFromPublicKey(ac.senderPublicKey) == i) | |
227 | 227 |
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 | - | let h = " | |
18 | + | let h = "3MvUyzQxNGmwExAcKdhojfKem3XwkXdkByH" | |
19 | 19 | ||
20 | 20 | let i = Address(fromBase58String(h)) | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "2eixqLDKJ5kjuY8imH4HG2FBJduT6QsjxLLch1iaAadx" | |
23 | 23 | ||
24 | - | let k = " | |
24 | + | let k = "3MpFtcdhaB66NB38tW2APSiaVqaAoWoPvRJ" | |
25 | 25 | ||
26 | 26 | let l = Address(fromBase58String(k)) | |
27 | 27 | ||
28 | 28 | func m (n,o) = { | |
29 | 29 | let p = ((n + ",") + o) | |
30 | 30 | p | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func q (n,o,r) = { | |
35 | 35 | let p = m(n, o) | |
36 | 36 | let s = ((p + ",") + r) | |
37 | 37 | s | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func t (p) = { | |
42 | 42 | let u = split(p, ",") | |
43 | 43 | let v = $Tuple3(u[0], u[1], u[2]) | |
44 | 44 | v | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func w (p) = { | |
49 | 49 | let x = t(p) | |
50 | 50 | let n = x._1 | |
51 | 51 | let o = x._2 | |
52 | 52 | let r = x._3 | |
53 | 53 | let s = q(n, o, r) | |
54 | 54 | s | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func y (n,o,r,z,A) = { | |
59 | 59 | let B = n | |
60 | 60 | let C = o | |
61 | 61 | let D = r | |
62 | 62 | let E = m(B, C) | |
63 | 63 | let F = ((c + A) + ".png") | |
64 | 64 | let G = Issue(((E + ",") + D), F, 1, 0, false) | |
65 | 65 | let H = calculateAssetId(G) | |
66 | 66 | let I = q(B, C, r) | |
67 | 67 | $Tuple4(G, H, F, I) | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | @Callable(J) | |
72 | - | func purchase (n,o) = { | |
72 | + | func purchase (n,o,K) = { | |
73 | 73 | let s = q(n, o, "1") | |
74 | - | let | |
75 | - | let | |
76 | - | let | |
77 | - | if ($isInstanceOf( | |
74 | + | let L = valueOrElse(J.payments[0].amount, 0) | |
75 | + | let M = { | |
76 | + | let N = getString(this, (s + "_assetId")) | |
77 | + | if ($isInstanceOf(N, "Unit")) | |
78 | 78 | then "unset" | |
79 | - | else if ($isInstanceOf( | |
79 | + | else if ($isInstanceOf(N, "String")) | |
80 | 80 | then { | |
81 | - | let | |
81 | + | let O = N | |
82 | 82 | throw("This square has already been purchased") | |
83 | 83 | } | |
84 | 84 | else throw("Match error") | |
85 | 85 | } | |
86 | - | if ((g > | |
86 | + | if ((g > L)) | |
87 | 87 | then throw((("You need to send at least " + toString(g)) + "WAVLETS to purchase a square")) | |
88 | 88 | else { | |
89 | 89 | let z = toBase58String(J.caller.bytes) | |
90 | 90 | let A = toBase58String(J.transactionId) | |
91 | - | let | |
92 | - | let G = | |
93 | - | let H = | |
94 | - | let F = | |
95 | - | let I = | |
96 | - | [G, StringEntry((I + "_assetId"), toBase58String(H)), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), z), StringEntry(A, I), ScriptTransfer(J.caller, 1, H)] | |
91 | + | let P = y(n, o, "1", z, A) | |
92 | + | let G = P._1 | |
93 | + | let H = P._2 | |
94 | + | let F = P._3 | |
95 | + | let I = P._4 | |
96 | + | [G, StringEntry((I + "_assetId"), toBase58String(H)), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), z), StringEntry(A, I), StringEntry(z, K), ScriptTransfer(J.caller, 1, H)] | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Callable(J) | |
103 | 103 | func autoBuy (n,o) = { | |
104 | - | let | |
105 | - | if (if (( | |
106 | - | then ( | |
104 | + | let Q = toBase58String(J.caller.bytes) | |
105 | + | if (if ((Q != k)) | |
106 | + | then (Q != h) | |
107 | 107 | else false) | |
108 | 108 | then throw("This can only be triggering internally") | |
109 | 109 | else { | |
110 | 110 | let A = toBase58String(J.transactionId) | |
111 | - | let | |
112 | - | let G = | |
113 | - | let H = | |
114 | - | let F = | |
115 | - | let I = | |
116 | - | let | |
117 | - | let | |
118 | - | if (( | |
119 | - | then [G, StringEntry((I + "_assetId"), | |
111 | + | let R = y(n, o, "1", k, A) | |
112 | + | let G = R._1 | |
113 | + | let H = R._2 | |
114 | + | let F = R._3 | |
115 | + | let I = R._4 | |
116 | + | let S = toBase58String(H) | |
117 | + | let T = invoke(l, d, [k, S, 3], [AttachedPayment(unit, 0)]) | |
118 | + | if ((T == T)) | |
119 | + | then [G, StringEntry((I + "_assetId"), S), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), k), StringEntry(A, I), ScriptTransfer(l, 1, H)] | |
120 | 120 | else throw("Strict value is not equal to itself.") | |
121 | 121 | } | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | ||
126 | 126 | @Callable(J) | |
127 | - | func promotionPurchase (n,o, | |
128 | - | let | |
129 | - | if (( | |
127 | + | func promotionPurchase (n,o,U) = { | |
128 | + | let Q = toBase58String(J.caller.bytes) | |
129 | + | if ((Q != k)) | |
130 | 130 | then throw("This can only be triggering internally") | |
131 | 131 | else { | |
132 | 132 | let A = toBase58String(J.transactionId) | |
133 | - | let | |
134 | - | let G = | |
135 | - | let H = | |
136 | - | let F = | |
137 | - | let I = | |
138 | - | let | |
139 | - | [G, StringEntry((I + "_assetId"), | |
133 | + | let V = y(n, o, "1", U, A) | |
134 | + | let G = V._1 | |
135 | + | let H = V._2 | |
136 | + | let F = V._3 | |
137 | + | let I = V._4 | |
138 | + | let S = toBase58String(H) | |
139 | + | [G, StringEntry((I + "_assetId"), S), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), U), StringEntry(A, I), ScriptTransfer(Address(fromBase58String(U)), 1, H)] | |
140 | 140 | } | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(J) | |
146 | 146 | func evolve (n,o,r,z) = { | |
147 | - | let | |
148 | - | if (( | |
147 | + | let Q = toBase58String(J.caller.bytes) | |
148 | + | if ((Q != k)) | |
149 | 149 | then throw("This can only be triggering internally") | |
150 | 150 | else { | |
151 | 151 | let A = toBase58String(J.transactionId) | |
152 | - | let | |
153 | - | let G = | |
154 | - | let H = | |
155 | - | let F = | |
156 | - | let I = | |
152 | + | let W = y(n, o, r, z, A) | |
153 | + | let G = W._1 | |
154 | + | let H = W._2 | |
155 | + | let F = W._3 | |
156 | + | let I = W._4 | |
157 | 157 | [G, StringEntry((I + "_assetId"), toBase58String(H)), StringEntry((I + "_asset"), F), StringEntry((I + "_owner"), z), StringEntry(A, I), ScriptTransfer(Address(fromBase58String(z)), 1, H)] | |
158 | 158 | } | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | ||
163 | 163 | @Callable(J) | |
164 | - | func putForSale (H, | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | if ($isInstanceOf( | |
164 | + | func putForSale (H,X) = { | |
165 | + | let Q = toBase58String(J.caller.bytes) | |
166 | + | let Y = { | |
167 | + | let N = assetInfo(fromBase58String(H)) | |
168 | + | if ($isInstanceOf(N, "Asset")) | |
169 | 169 | then { | |
170 | - | let | |
171 | - | | |
170 | + | let Z = N | |
171 | + | Z | |
172 | 172 | } | |
173 | 173 | else throw("Asset not found") | |
174 | 174 | } | |
175 | - | let | |
175 | + | let aa = w(Y.name) | |
176 | 176 | let z = { | |
177 | - | let | |
178 | - | if ($isInstanceOf( | |
177 | + | let N = getString(this, (aa + "_owner")) | |
178 | + | if ($isInstanceOf(N, "String")) | |
179 | 179 | then { | |
180 | - | let | |
181 | - | | |
180 | + | let ab = N | |
181 | + | ab | |
182 | 182 | } | |
183 | 183 | else throw("Owner not found in data") | |
184 | 184 | } | |
185 | - | if ((f > | |
185 | + | if ((f > X)) | |
186 | 186 | then throw("Amount needs to be more than 1 wave") | |
187 | - | else if (if (( | |
188 | - | then ( | |
187 | + | else if (if ((Q != z)) | |
188 | + | then (Q != k) | |
189 | 189 | else false) | |
190 | 190 | then throw("You are not able to put this asset up for sale") | |
191 | 191 | else { | |
192 | - | let | |
193 | - | if (( | |
192 | + | let T = invoke(l, d, [Q, H, X], [AttachedPayment(unit, 0)]) | |
193 | + | if ((T == T)) | |
194 | 194 | then [ScriptTransfer(l, 1, fromBase58String(H))] | |
195 | 195 | else throw("Strict value is not equal to itself.") | |
196 | 196 | } | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | ||
201 | 201 | @Callable(J) | |
202 | 202 | func finalizeSale (H,z) = { | |
203 | - | let | |
204 | - | if (( | |
203 | + | let Q = toBase58String(J.caller.bytes) | |
204 | + | if ((Q != k)) | |
205 | 205 | then throw("This can only be triggering internally") | |
206 | 206 | else { | |
207 | 207 | let s = { | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
208 | + | let N = assetInfo(fromBase58String(H)) | |
209 | + | if ($isInstanceOf(N, "Asset")) | |
210 | 210 | then { | |
211 | - | let G = | |
211 | + | let G = N | |
212 | 212 | G.name | |
213 | 213 | } | |
214 | 214 | else throw("Can't find asset") | |
215 | 215 | } | |
216 | 216 | [StringEntry((s + "_owner"), z)] | |
217 | 217 | } | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | - | @Verifier( | |
222 | - | func | |
221 | + | @Verifier(ac) | |
222 | + | func ad () = if (if (sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)) | |
223 | 223 | then true | |
224 | - | else (addressFromPublicKey( | |
224 | + | else (addressFromPublicKey(ac.senderPublicKey) == l)) | |
225 | 225 | then true | |
226 | - | else (addressFromPublicKey( | |
226 | + | else (addressFromPublicKey(ac.senderPublicKey) == i) | |
227 | 227 |
github/deemru/w8io/026f985 395.82 ms ◑