tx · BADGqBX489kkRwiCmkk9SSNoHsJVC4End1wrhtSeNN3g 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL: -0.04000000 Waves 2022.04.20 22:20 [2017282] smart account 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL > SELF 0.00000000 Waves
{ "type": 13, "id": "BADGqBX489kkRwiCmkk9SSNoHsJVC4End1wrhtSeNN3g", "fee": 4000000, "feeAssetId": null, "timestamp": 1650482424373, "version": 2, "chainId": 84, "sender": "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL", "senderPublicKey": "G6aSmaqLJ4p7jzm7BnQcZuqa2NRRLVtzqdYNjYErnEZZ", "proofs": [ "5QCLtLFEzPa1VpRsnYc9MtiAVpMmMceEFAPR3kDoaokqrJJyoiWgfgiZ3xhFqRRXKWbyNAyFcXvk5TiRWzkMm8fv" ], "script": "base64:AAIFAAAAAAAAADEIAhIFCgMICAgSBAoCCAgSBgoECAgICBIECgIIARIFCgMICAgSBQoDCAgIEgQKAggIAAAAEwAAAAAEQ09MUwAAAAAAAAAEAAAAAAAEUk9XUwAAAAAAAAAEAAAAAAAJbmZ0RG9tYWluAgAAABhodHRwczovL25mdC5ncmlkZ2FuZy5pby8AAAAAFWFkZE93bmVyQW5kQW1vdW50RnVuYwIAAAARYWRkT3duZXJBbmRBbW91bnQAAAAABURFQlVHBgAAAAARbWluRm9yU2FsZVdhdmxldHMAAAAAAAX14QAAAAAAEG1pblB1cmNoYXNlUHJpY2UAAAAAAAAPQkAAAAAABGRhcHACAAAAIzNON0o2bU1Na2pWVmlCUkV6OXk1M0ptY1g3cjdLWlJYUXBMAAAAAAtkYXBwQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABGRhcHAAAAAAEWhvbGRpbmdzUHVibGljS2V5AgAAACxBeUF3V2JNUE03YTRWWWtuMWJoRUJmdEM1V1pnZnZVWGdyWURlOThtdkxzdgAAAAAIaG9sZGluZ3MCAAAAIzNNd1BzTH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uQWRkcmVzcwIAAAABMQkABEwAAAACBQAAAAVhc3NldAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAA10cmFuc2FjdGlvbklkBQAAAA1kYXRhS2V5UHJlZml4CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAABFkZXNpbmF0aW9uQWRkcmVzcwAAAAAAAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAWkBAAAADmFkbWluU2V0SGFuZGxlAAAAAgAAAAdvd25lcklkAAAABmhhbmRsZQQAAAAIY2FsbGVySWQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAACGNhbGxlcklkBQAAAAhob2xkaW5ncwkAAAIAAAABAgAAACZUaGlzIGNhbiBvbmx5IGJlIHRyaWdnZXJpbmcgaW50ZXJuYWxseQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAAB293bmVySWQCAAAAB19oYW5kbGUFAAAABmhhbmRsZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQYJAAAAAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQUAAAAPaG9sZGluZ3NBZGRyZXNzBgkAAAAAAAACCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BQAAAAtkYXBwQWRkcmVzcyQ3EnE=", "height": 2017282, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5iTDoEFBk4VZKk9z8DpDarYmtf9EkqZHNNZdWKBW8Aao Next: none Diff:
Old | New | Differences | |
---|---|---|---|
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(i) | |
146 | - | func evolve (x,y,gen,ownerId | |
146 | + | func evolve (x,y,gen,ownerId) = { | |
147 | 147 | let callerId = toBase58String(i.caller.bytes) | |
148 | 148 | if ((callerId != holdings)) | |
149 | 149 | then throw("This can only be triggering internally") | |
150 | 150 | else { | |
151 | 151 | let transactionId = toBase58String(i.transactionId) | |
152 | - | let $ | |
153 | - | let asset = $ | |
154 | - | let assetId = $ | |
155 | - | let assetUrl = $ | |
156 | - | let dataKeyPrefix = $ | |
152 | + | let $t042434338 = claimSquare(x, y, gen, ownerId, transactionId) | |
153 | + | let asset = $t042434338._1 | |
154 | + | let assetId = $t042434338._2 | |
155 | + | let assetUrl = $t042434338._3 | |
156 | + | let dataKeyPrefix = $t042434338._4 | |
157 | 157 | (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, gen) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]) | |
158 | 158 | } | |
159 | 159 | } | |
217 | 217 | then throw("This can only be triggering internally") | |
218 | 218 | else { | |
219 | 219 | let transactionId = toBase58String(i.transactionId) | |
220 | - | let $ | |
221 | - | let asset = $ | |
222 | - | let assetId = $ | |
223 | - | let assetUrl = $ | |
224 | - | let dataKeyPrefix = $ | |
220 | + | let $t062196324 = claimSquare(x, y, "1", desinationAddress, transactionId) | |
221 | + | let asset = $t062196324._1 | |
222 | + | let assetId = $t062196324._2 | |
223 | + | let assetUrl = $t062196324._3 | |
224 | + | let dataKeyPrefix = $t062196324._4 | |
225 | 225 | let assetIdStr = toBase58String(assetId) | |
226 | 226 | (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, desinationAddress, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]) | |
227 | 227 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let COLS = 1024 | |
5 | 5 | ||
6 | 6 | let ROWS = 1024 | |
7 | 7 | ||
8 | 8 | let nftDomain = "https://nft.gridgang.io/" | |
9 | 9 | ||
10 | 10 | let addOwnerAndAmountFunc = "addOwnerAndAmount" | |
11 | 11 | ||
12 | 12 | let DEBUG = true | |
13 | 13 | ||
14 | 14 | let minForSaleWavlets = 100000000 | |
15 | 15 | ||
16 | 16 | let minPurchasePrice = 1000000 | |
17 | 17 | ||
18 | 18 | let dapp = "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL" | |
19 | 19 | ||
20 | 20 | let dappAddress = Address(fromBase58String(dapp)) | |
21 | 21 | ||
22 | 22 | let holdingsPublicKey = "AyAwWbMPM7a4VYkn1bhEBftC5WZgfvUXgrYDe98mvLsv" | |
23 | 23 | ||
24 | 24 | let holdings = "3MwPsLy9F1mUQrdP37sCAKvHuE5HvPE674Y" | |
25 | 25 | ||
26 | 26 | let holdingsAddress = Address(fromBase58String(holdings)) | |
27 | 27 | ||
28 | 28 | func getAssetName (x,y) = ((x + ",") + y) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func getDataKeyPrefix (x,y) = getAssetName(x, y) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getXYGenFromName (name) = { | |
35 | 35 | let parts = split(name, ",") | |
36 | 36 | let tuple = $Tuple2(parts[0], parts[1]) | |
37 | 37 | tuple | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func getDataKeyPrefixFromAssetName (name) = { | |
42 | 42 | let $t0906941 = getXYGenFromName(name) | |
43 | 43 | let x = $t0906941._1 | |
44 | 44 | let y = $t0906941._2 | |
45 | 45 | let prefix = getDataKeyPrefix(x, y) | |
46 | 46 | prefix | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func claimSquare (x,y,gen,ownerId,transactionId) = { | |
51 | 51 | let resolvedXStr = x | |
52 | 52 | let resolvedYStr = y | |
53 | 53 | let resolvedGenStr = gen | |
54 | 54 | let assetName = getAssetName(resolvedXStr, resolvedYStr) | |
55 | 55 | let assetUrl = ((nftDomain + transactionId) + ".png") | |
56 | 56 | let asset = Issue(assetName, assetUrl, 1, 0, false) | |
57 | 57 | let assetId = calculateAssetId(asset) | |
58 | 58 | let dataKeyPrefix = getDataKeyPrefix(resolvedXStr, resolvedYStr) | |
59 | 59 | $Tuple4(asset, assetId, assetUrl, dataKeyPrefix) | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getTransactionEntries (prefix,assetId,asset,owner,gen) = [StringEntry((prefix + "_assetId"), assetId), StringEntry((prefix + "_asset"), asset), StringEntry((prefix + "_owner"), owner), StringEntry((prefix + "_gen"), gen)] | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func burnFold (accum,next) = { | |
67 | 67 | let resolvedNext = match next { | |
68 | 68 | case _: Unit => | |
69 | 69 | "unset" | |
70 | 70 | case val: String => | |
71 | 71 | val | |
72 | 72 | case _ => | |
73 | 73 | throw("Match error") | |
74 | 74 | } | |
75 | 75 | if ((resolvedNext == "unset")) | |
76 | 76 | then accum | |
77 | 77 | else { | |
78 | 78 | let assetId = match getString(this, (resolvedNext + "_assetId")) { | |
79 | 79 | case _: Unit => | |
80 | 80 | "unset" | |
81 | 81 | case val: String => | |
82 | 82 | val | |
83 | 83 | case _ => | |
84 | 84 | throw("Match error") | |
85 | 85 | } | |
86 | 86 | if ((assetId == "unset")) | |
87 | 87 | then accum | |
88 | 88 | else (accum ++ [Burn(fromBase58String(assetId), 1)]) | |
89 | 89 | } | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(i) | |
94 | 94 | func purchase (x,y,userText) = { | |
95 | 95 | let prefix = getDataKeyPrefix(x, y) | |
96 | 96 | let paymentAmount = valueOrElse(i.payments[0].amount, 0) | |
97 | 97 | let existingAssetId = match getString(this, (prefix + "_assetId")) { | |
98 | 98 | case _: Unit => | |
99 | 99 | "unset" | |
100 | 100 | case err: String => | |
101 | 101 | throw("This square has already been purchased") | |
102 | 102 | case _ => | |
103 | 103 | throw("Match error") | |
104 | 104 | } | |
105 | 105 | if ((minPurchasePrice > paymentAmount)) | |
106 | 106 | then throw((("You need to send at least " + toString(minPurchasePrice)) + "WAVLETS to purchase a square")) | |
107 | 107 | else { | |
108 | 108 | let ownerId = toBase58String(i.caller.bytes) | |
109 | 109 | let transactionId = toBase58String(i.transactionId) | |
110 | 110 | let $t028612956 = claimSquare(x, y, "1", ownerId, transactionId) | |
111 | 111 | let asset = $t028612956._1 | |
112 | 112 | let assetId = $t028612956._2 | |
113 | 113 | let assetUrl = $t028612956._3 | |
114 | 114 | let dataKeyPrefix = $t028612956._4 | |
115 | 115 | (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, "1") ++ [asset, StringEntry((ownerId + "_handle"), userText), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)]) | |
116 | 116 | } | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Callable(i) | |
122 | 122 | func autoBuy (x,y) = { | |
123 | 123 | let callerId = toBase58String(i.caller.bytes) | |
124 | 124 | if (if ((callerId != holdings)) | |
125 | 125 | then (callerId != dapp) | |
126 | 126 | else false) | |
127 | 127 | then throw("This can only be triggering internally") | |
128 | 128 | else { | |
129 | 129 | let transactionId = toBase58String(i.transactionId) | |
130 | 130 | let $t034913587 = claimSquare(x, y, "1", holdings, transactionId) | |
131 | 131 | let asset = $t034913587._1 | |
132 | 132 | let assetId = $t034913587._2 | |
133 | 133 | let assetUrl = $t034913587._3 | |
134 | 134 | let dataKeyPrefix = $t034913587._4 | |
135 | 135 | let assetIdStr = toBase58String(assetId) | |
136 | 136 | let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [holdings, assetIdStr, 3], [AttachedPayment(unit, 0)]) | |
137 | 137 | if ((res == res)) | |
138 | 138 | then (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, holdings, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(holdingsAddress, 1, assetId)]) | |
139 | 139 | else throw("Strict value is not equal to itself.") | |
140 | 140 | } | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(i) | |
146 | - | func evolve (x,y,gen,ownerId | |
146 | + | func evolve (x,y,gen,ownerId) = { | |
147 | 147 | let callerId = toBase58String(i.caller.bytes) | |
148 | 148 | if ((callerId != holdings)) | |
149 | 149 | then throw("This can only be triggering internally") | |
150 | 150 | else { | |
151 | 151 | let transactionId = toBase58String(i.transactionId) | |
152 | - | let $ | |
153 | - | let asset = $ | |
154 | - | let assetId = $ | |
155 | - | let assetUrl = $ | |
156 | - | let dataKeyPrefix = $ | |
152 | + | let $t042434338 = claimSquare(x, y, gen, ownerId, transactionId) | |
153 | + | let asset = $t042434338._1 | |
154 | + | let assetId = $t042434338._2 | |
155 | + | let assetUrl = $t042434338._3 | |
156 | + | let dataKeyPrefix = $t042434338._4 | |
157 | 157 | (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, gen) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]) | |
158 | 158 | } | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | ||
163 | 163 | @Callable(i) | |
164 | 164 | func putForSale (assetId,amount) = { | |
165 | 165 | let callerId = toBase58String(i.caller.bytes) | |
166 | 166 | let assetData = match assetInfo(fromBase58String(assetId)) { | |
167 | 167 | case ass: Asset => | |
168 | 168 | ass | |
169 | 169 | case _ => | |
170 | 170 | throw("Asset not found") | |
171 | 171 | } | |
172 | 172 | let dataPrefix = getDataKeyPrefixFromAssetName(assetData.name) | |
173 | 173 | let ownerId = match getString(this, (dataPrefix + "_owner")) { | |
174 | 174 | case s: String => | |
175 | 175 | s | |
176 | 176 | case _ => | |
177 | 177 | throw("Owner not found in data") | |
178 | 178 | } | |
179 | 179 | if ((minForSaleWavlets > amount)) | |
180 | 180 | then throw("Amount needs to be more than 1 wave") | |
181 | 181 | else if (if ((callerId != ownerId)) | |
182 | 182 | then (callerId != holdings) | |
183 | 183 | else false) | |
184 | 184 | then throw("You are not able to put this asset up for sale") | |
185 | 185 | else { | |
186 | 186 | let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [callerId, assetId, amount], [AttachedPayment(unit, 0)]) | |
187 | 187 | if ((res == res)) | |
188 | 188 | then [ScriptTransfer(holdingsAddress, 1, fromBase58String(assetId))] | |
189 | 189 | else throw("Strict value is not equal to itself.") | |
190 | 190 | } | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | ||
195 | 195 | @Callable(i) | |
196 | 196 | func finalizeSale (assetId,ownerId,userText) = { | |
197 | 197 | let callerId = toBase58String(i.caller.bytes) | |
198 | 198 | if ((callerId != holdings)) | |
199 | 199 | then throw("This can only be triggering internally") | |
200 | 200 | else { | |
201 | 201 | let prefix = match assetInfo(fromBase58String(assetId)) { | |
202 | 202 | case asset: Asset => | |
203 | 203 | asset.name | |
204 | 204 | case _ => | |
205 | 205 | throw("Can't find asset") | |
206 | 206 | } | |
207 | 207 | [StringEntry((prefix + "_owner"), ownerId), StringEntry((ownerId + "_handle"), userText)] | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(i) | |
214 | 214 | func adminPromotionPurchase (x,y,desinationAddress) = { | |
215 | 215 | let callerId = toBase58String(i.caller.bytes) | |
216 | 216 | if ((callerId != holdings)) | |
217 | 217 | then throw("This can only be triggering internally") | |
218 | 218 | else { | |
219 | 219 | let transactionId = toBase58String(i.transactionId) | |
220 | - | let $ | |
221 | - | let asset = $ | |
222 | - | let assetId = $ | |
223 | - | let assetUrl = $ | |
224 | - | let dataKeyPrefix = $ | |
220 | + | let $t062196324 = claimSquare(x, y, "1", desinationAddress, transactionId) | |
221 | + | let asset = $t062196324._1 | |
222 | + | let assetId = $t062196324._2 | |
223 | + | let assetUrl = $t062196324._3 | |
224 | + | let dataKeyPrefix = $t062196324._4 | |
225 | 225 | let assetIdStr = toBase58String(assetId) | |
226 | 226 | (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, desinationAddress, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]) | |
227 | 227 | } | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | 232 | @Callable(i) | |
233 | 233 | func adminSetHandle (ownerId,handle) = { | |
234 | 234 | let callerId = toBase58String(i.caller.bytes) | |
235 | 235 | if ((callerId != holdings)) | |
236 | 236 | then throw("This can only be triggering internally") | |
237 | 237 | else [StringEntry((ownerId + "_handle"), handle)] | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Verifier(tx) | |
242 | 242 | func verify () = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
243 | 243 | then true | |
244 | 244 | else (addressFromPublicKey(tx.senderPublicKey) == holdingsAddress)) | |
245 | 245 | then true | |
246 | 246 | else (addressFromPublicKey(tx.senderPublicKey) == dappAddress) | |
247 | 247 |
github/deemru/w8io/169f3d6 54.58 ms ◑