tx · BWXQEyj3pdxU4ukiqwGKtszeg5DBULEV44Pzz1tRtbtJ 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL: -0.04000000 Waves 2022.04.20 01:29 [2016042] smart account 3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL > SELF 0.00000000 Waves
{ "type": 13, "id": "BWXQEyj3pdxU4ukiqwGKtszeg5DBULEV44Pzz1tRtbtJ", "fee": 4000000, "feeAssetId": null, "timestamp": 1650407367808, "version": 2, "chainId": 84, "sender": "3N7J6mMMkjVViBREz9y53JmcX7r7KZRXQpL", "senderPublicKey": "G6aSmaqLJ4p7jzm7BnQcZuqa2NRRLVtzqdYNjYErnEZZ", "proofs": [ "5AGK8T3VGaqrkNF44W4JmaLJbhfmjEztVwxuP2wCcychk9G5bnYftQxcTszTeM446wY1X1HL72vjUx174TszzEm4" ], "script": "base64:AAIFAAAAAAAAADEIAhIFCgMICAgSBAoCCAgSBgoECAgICBIECgIIARIFCgMICAgSBQoDCAgIEgQKAggIAAAAEgAAAAAEQ09MUwAAAAAAAAAEAAAAAAAEUk9XUwAAAAAAAAAEAAAAAAAJbmZ0RG9tYWluAgAAABhodHRwczovL25mdC5ncmlkZ2FuZy5pby8AAAAAFWFkZE93bmVyQW5kQW1vdW50RnVuYwIAAAARYWRkT3duZXJBbmRBbW91bnQAAAAABURFQlVHBgAAAAARbWluRm9yU2FsZVdhdmxldHMAAAAAAAX14QAAAAAAEG1pblB1cmNoYXNlUHJpY2UAAAAAAAAPQkAAAAAABGRhcHACAAAAIzNON0o2bU1Na2pWVmlCUkV6OXk1M0ptY1g3cjdLWlJYUXBMAAAAAAtkYXBwQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABGRhcHAAAAAAEWhvbGRpbmdzUHVibGljS2V5AgAAACxBeUF3V2JNUE03YTRWWWtuMWJoRUJmdEM1V1pnZnZVWGdyWURlOThtdkxzdgAAAAAIaG9sZGluZ3MCAAAAIzNNd1BzTHk5R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AAA9zZW5kZXJQdWJsaWNLZXkGCQAAAAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAD2hvbGRpbmdzQWRkcmVzcwYJAAAAAAAAAgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQUAAAALZGFwcEFkZHJlc3MzJQM7", "height": 2016042, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ef3zYniofQUL7D4jzkYeGDLp8qEQohmi16uN8SiSq9fp Next: HSVG75L6UBtr3LSeJmNVcigC1AgziJ3mMCmpn86Dt2tR Diff:
Old | New | Differences | |
---|---|---|---|
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | - | ||
215 | - | @Callable(i) | |
216 | - | func burnTest (assetId) = [Burn(fromBase58String(assetId), 1)] | |
217 | - | ||
218 | - | ||
219 | 214 | @Verifier(tx) | |
220 | 215 | func verify () = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
221 | 216 | then true |
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 | @Callable(i) | |
67 | 67 | func purchase (x,y,userText) = { | |
68 | 68 | let prefix = getDataKeyPrefix(x, y) | |
69 | 69 | let paymentAmount = valueOrElse(i.payments[0].amount, 0) | |
70 | 70 | let existingAssetId = match getString(this, (prefix + "_assetId")) { | |
71 | 71 | case _: Unit => | |
72 | 72 | "unset" | |
73 | 73 | case err: String => | |
74 | 74 | throw("This square has already been purchased") | |
75 | 75 | case _ => | |
76 | 76 | throw("Match error") | |
77 | 77 | } | |
78 | 78 | if ((minPurchasePrice > paymentAmount)) | |
79 | 79 | then throw((("You need to send at least " + toString(minPurchasePrice)) + "WAVLETS to purchase a square")) | |
80 | 80 | else { | |
81 | 81 | let ownerId = toBase58String(i.caller.bytes) | |
82 | 82 | let transactionId = toBase58String(i.transactionId) | |
83 | 83 | let $t023862481 = claimSquare(x, y, "1", ownerId, transactionId) | |
84 | 84 | let asset = $t023862481._1 | |
85 | 85 | let assetId = $t023862481._2 | |
86 | 86 | let assetUrl = $t023862481._3 | |
87 | 87 | let dataKeyPrefix = $t023862481._4 | |
88 | 88 | (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, "1") ++ [asset, StringEntry((ownerId + "_handle"), userText), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)]) | |
89 | 89 | } | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | ||
94 | 94 | @Callable(i) | |
95 | 95 | func autoBuy (x,y) = { | |
96 | 96 | let callerId = toBase58String(i.caller.bytes) | |
97 | 97 | if (if ((callerId != holdings)) | |
98 | 98 | then (callerId != dapp) | |
99 | 99 | else false) | |
100 | 100 | then throw("This can only be triggering internally") | |
101 | 101 | else { | |
102 | 102 | let transactionId = toBase58String(i.transactionId) | |
103 | 103 | let $t030163112 = claimSquare(x, y, "1", holdings, transactionId) | |
104 | 104 | let asset = $t030163112._1 | |
105 | 105 | let assetId = $t030163112._2 | |
106 | 106 | let assetUrl = $t030163112._3 | |
107 | 107 | let dataKeyPrefix = $t030163112._4 | |
108 | 108 | let assetIdStr = toBase58String(assetId) | |
109 | 109 | let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [holdings, assetIdStr, 3], [AttachedPayment(unit, 0)]) | |
110 | 110 | if ((res == res)) | |
111 | 111 | then (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, holdings, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(holdingsAddress, 1, assetId)]) | |
112 | 112 | else throw("Strict value is not equal to itself.") | |
113 | 113 | } | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(i) | |
119 | 119 | func evolve (x,y,gen,ownerId) = { | |
120 | 120 | let callerId = toBase58String(i.caller.bytes) | |
121 | 121 | if ((callerId != holdings)) | |
122 | 122 | then throw("This can only be triggering internally") | |
123 | 123 | else { | |
124 | 124 | let transactionId = toBase58String(i.transactionId) | |
125 | 125 | let $t037683863 = claimSquare(x, y, gen, ownerId, transactionId) | |
126 | 126 | let asset = $t037683863._1 | |
127 | 127 | let assetId = $t037683863._2 | |
128 | 128 | let assetUrl = $t037683863._3 | |
129 | 129 | let dataKeyPrefix = $t037683863._4 | |
130 | 130 | (getTransactionEntries(dataKeyPrefix, toBase58String(assetId), assetUrl, ownerId, gen) ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]) | |
131 | 131 | } | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | ||
136 | 136 | @Callable(i) | |
137 | 137 | func putForSale (assetId,amount) = { | |
138 | 138 | let callerId = toBase58String(i.caller.bytes) | |
139 | 139 | let assetData = match assetInfo(fromBase58String(assetId)) { | |
140 | 140 | case ass: Asset => | |
141 | 141 | ass | |
142 | 142 | case _ => | |
143 | 143 | throw("Asset not found") | |
144 | 144 | } | |
145 | 145 | let dataPrefix = getDataKeyPrefixFromAssetName(assetData.name) | |
146 | 146 | let ownerId = match getString(this, (dataPrefix + "_owner")) { | |
147 | 147 | case s: String => | |
148 | 148 | s | |
149 | 149 | case _ => | |
150 | 150 | throw("Owner not found in data") | |
151 | 151 | } | |
152 | 152 | if ((minForSaleWavlets > amount)) | |
153 | 153 | then throw("Amount needs to be more than 1 wave") | |
154 | 154 | else if (if ((callerId != ownerId)) | |
155 | 155 | then (callerId != holdings) | |
156 | 156 | else false) | |
157 | 157 | then throw("You are not able to put this asset up for sale") | |
158 | 158 | else { | |
159 | 159 | let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [callerId, assetId, amount], [AttachedPayment(unit, 0)]) | |
160 | 160 | if ((res == res)) | |
161 | 161 | then [ScriptTransfer(holdingsAddress, 1, fromBase58String(assetId))] | |
162 | 162 | else throw("Strict value is not equal to itself.") | |
163 | 163 | } | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | ||
168 | 168 | @Callable(i) | |
169 | 169 | func finalizeSale (assetId,ownerId,userText) = { | |
170 | 170 | let callerId = toBase58String(i.caller.bytes) | |
171 | 171 | if ((callerId != holdings)) | |
172 | 172 | then throw("This can only be triggering internally") | |
173 | 173 | else { | |
174 | 174 | let prefix = match assetInfo(fromBase58String(assetId)) { | |
175 | 175 | case asset: Asset => | |
176 | 176 | asset.name | |
177 | 177 | case _ => | |
178 | 178 | throw("Can't find asset") | |
179 | 179 | } | |
180 | 180 | [StringEntry((prefix + "_owner"), ownerId), StringEntry((ownerId + "_handle"), userText)] | |
181 | 181 | } | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | ||
186 | 186 | @Callable(i) | |
187 | 187 | func adminPromotionPurchase (x,y,desinationAddress) = { | |
188 | 188 | let callerId = toBase58String(i.caller.bytes) | |
189 | 189 | if ((callerId != holdings)) | |
190 | 190 | then throw("This can only be triggering internally") | |
191 | 191 | else { | |
192 | 192 | let transactionId = toBase58String(i.transactionId) | |
193 | 193 | let $t057445849 = claimSquare(x, y, "1", desinationAddress, transactionId) | |
194 | 194 | let asset = $t057445849._1 | |
195 | 195 | let assetId = $t057445849._2 | |
196 | 196 | let assetUrl = $t057445849._3 | |
197 | 197 | let dataKeyPrefix = $t057445849._4 | |
198 | 198 | let assetIdStr = toBase58String(assetId) | |
199 | 199 | (getTransactionEntries(dataKeyPrefix, assetIdStr, assetUrl, desinationAddress, "1") ++ [asset, StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]) | |
200 | 200 | } | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | ||
205 | 205 | @Callable(i) | |
206 | 206 | func adminSetHandle (ownerId,handle) = { | |
207 | 207 | let callerId = toBase58String(i.caller.bytes) | |
208 | 208 | if ((callerId != holdings)) | |
209 | 209 | then throw("This can only be triggering internally") | |
210 | 210 | else [StringEntry((ownerId + "_handle"), handle)] | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | - | ||
215 | - | @Callable(i) | |
216 | - | func burnTest (assetId) = [Burn(fromBase58String(assetId), 1)] | |
217 | - | ||
218 | - | ||
219 | 214 | @Verifier(tx) | |
220 | 215 | func verify () = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
221 | 216 | then true | |
222 | 217 | else (addressFromPublicKey(tx.senderPublicKey) == holdingsAddress)) | |
223 | 218 | then true | |
224 | 219 | else (addressFromPublicKey(tx.senderPublicKey) == dappAddress) | |
225 | 220 |
github/deemru/w8io/169f3d6 94.02 ms ◑