tx · 9usH3PwWz2L24HfqnU77kom8LCik438hckcpW4286acA

3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu:  -0.04000000 Waves

2022.03.29 19:39 [1985470] smart account 3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu > SELF 0.00000000 Waves

{ "type": 13, "id": "9usH3PwWz2L24HfqnU77kom8LCik438hckcpW4286acA", "fee": 4000000, "feeAssetId": null, "timestamp": 1648571978800, "version": 2, "chainId": 84, "sender": "3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu", "senderPublicKey": "D4v2S9mjah7eEEmuQVBNd4WipC3scs8V4PjuDBweWatE", "proofs": [ "5EySJb5o7mJpnM5TjeBYDLJyE9MujVEotT2iArgAXzVHMPAgPRqCayMZUNtUdH2oQ4FW1GMV1eShXiJ8zcQLP8rj" ], "script": "base64:AAIFAAAAAAAAACkIAhIECgIICBIECgIICBIFCgMICAgSBgoECAgICBIECgIIARIECgIICAAAABEAAAAABENPTFMAAAAAAAAABAAAAAAABFJPV1MAAAAAAAAABAAAAAAACW5mdERvbWFpbgIAAAAYaHR0cHM6Ly9uZnQuZ3JpZGdhbmcuaW8vAAAAABVhZGRPd25lckFuZEFtb3VudEZ1bmMCAAAAEWFkZE93bmVyQW5kQW1vdW50AAAAAAVERUJVRwYAAAAAEW1pbkZvclNhbGVXYXZsZXRzAAAAAAAF9eEAAAAAABBtaW5QdXJjaGFzZVByaWNlAAAAAAAAD0JAAAAAAARkYXBwAgAAACMzTjR2cVVYV3c4dGYyM0xEV0RiU0VwSlpINmRlbnQzRVRGdQAAAAALZGFwcEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAARkYXBwAAAAABFob2xkaW5nc1B1YmxpY0tleQIAAAAsR1VIdzFqa3N0TldUczlTWDFLTTNwTXRxOUhYanVwdnhpVGQxdXJOaE5veVkAAAAACGhvbGRpbmdzAgAAACMzTjlSN3U0NDlaMWI3NlFwSnA5dTNnelBqTVlRWW5wM1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AAACdHgAAAAPc2VuZGVyUHVibGljS2V5BQAAAA9ob2xkaW5nc0FkZHJlc3MGCQAAAAAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAC2RhcHBBZGRyZXNza+OINQ==", "height": 1985470, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 56xuKEbeLjsPGAXgLgRiza8ZGDCd3FUcDKjo9XnMp6tf Next: DSfKH1do9BwzncYAhLvsVzayW1XWiXcL69PvRDss2T6G Diff:
OldNewDifferences
105105 then throw("This can only be triggering internally")
106106 else {
107107 let transactionId = toBase58String(i.transactionId)
108- let $t028862982 = claimSquare(x, y, "1", holdings, transactionId)
109- let asset = $t028862982._1
110- let assetId = $t028862982._2
111- let assetUrl = $t028862982._3
112- let dataKeyPrefix = $t028862982._4
108+ let $t028872983 = claimSquare(x, y, "1", holdings, transactionId)
109+ let asset = $t028872983._1
110+ let assetId = $t028872983._2
111+ let assetUrl = $t028872983._3
112+ let dataKeyPrefix = $t028872983._4
113113 let assetIdStr = toBase58String(assetId)
114114 let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [holdings, assetIdStr, 3], [AttachedPayment(unit, 0)])
115115 if ((res == res))
127127 then throw("This can only be triggering internally")
128128 else {
129129 let transactionId = toBase58String(i.transactionId)
130- let $t037383843 = claimSquare(x, y, "1", desinationAddress, transactionId)
131- let asset = $t037383843._1
132- let assetId = $t037383843._2
133- let assetUrl = $t037383843._3
134- let dataKeyPrefix = $t037383843._4
130+ let $t037393844 = claimSquare(x, y, "1", desinationAddress, transactionId)
131+ let asset = $t037393844._1
132+ let assetId = $t037393844._2
133+ let assetUrl = $t037393844._3
134+ let dataKeyPrefix = $t037393844._4
135135 let assetIdStr = toBase58String(assetId)
136136 [asset, StringEntry((dataKeyPrefix + "_assetId"), assetIdStr), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), desinationAddress), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]
137137 }
146146 then throw("This can only be triggering internally")
147147 else {
148148 let transactionId = toBase58String(i.transactionId)
149- let $t045064601 = claimSquare(x, y, gen, ownerId, transactionId)
150- let asset = $t045064601._1
151- let assetId = $t045064601._2
152- let assetUrl = $t045064601._3
153- let dataKeyPrefix = $t045064601._4
149+ let $t045074602 = claimSquare(x, y, gen, ownerId, transactionId)
150+ let asset = $t045074602._1
151+ let assetId = $t045074602._2
152+ let assetUrl = $t045074602._3
153+ let dataKeyPrefix = $t045074602._4
154154 [asset, StringEntry((dataKeyPrefix + "_assetId"), toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), ownerId), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]
155155 }
156156 }
188188 }
189189
190190
191+
192+@Callable(i)
193+func finalizeSale (assetId,ownerId) = {
194+ let callerId = toBase58String(i.caller.bytes)
195+ if ((callerId != holdings))
196+ then throw("This can only be triggering internally")
197+ else {
198+ let prefix = match assetInfo(fromBase58String(assetId)) {
199+ case asset: Asset =>
200+ asset.name
201+ case _ =>
202+ throw("Can't find asset")
203+ }
204+[StringEntry((prefix + "_owner"), ownerId)]
205+ }
206+ }
207+
208+
191209 @Verifier(tx)
192210 func verify () = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
193211 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let COLS = 1024
55
66 let ROWS = 1024
77
88 let nftDomain = "https://nft.gridgang.io/"
99
1010 let addOwnerAndAmountFunc = "addOwnerAndAmount"
1111
1212 let DEBUG = true
1313
1414 let minForSaleWavlets = 100000000
1515
1616 let minPurchasePrice = 1000000
1717
1818 let dapp = "3N4vqUXWw8tf23LDWDbSEpJZH6dent3ETFu"
1919
2020 let dappAddress = Address(fromBase58String(dapp))
2121
2222 let holdingsPublicKey = "GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY"
2323
2424 let holdings = "3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r"
2525
2626 let holdingsAddress = Address(fromBase58String(holdings))
2727
2828 func getAssetName (x,y) = {
2929 let name = ((x + ",") + y)
3030 name
3131 }
3232
3333
3434 func getDataKeyPrefix (x,y,gen) = {
3535 let name = getAssetName(x, y)
3636 let prefix = ((name + ",") + gen)
3737 prefix
3838 }
3939
4040
4141 func getXYGenFromName (name) = {
4242 let parts = split(name, ",")
4343 let tuple = $Tuple3(parts[0], parts[1], parts[2])
4444 tuple
4545 }
4646
4747
4848 func getDataKeyPrefixFromAssetName (name) = {
4949 let $t010011041 = getXYGenFromName(name)
5050 let x = $t010011041._1
5151 let y = $t010011041._2
5252 let gen = $t010011041._3
5353 let prefix = getDataKeyPrefix(x, y, gen)
5454 prefix
5555 }
5656
5757
5858 func claimSquare (x,y,gen,ownerId,transactionId) = {
5959 let resolvedXStr = x
6060 let resolvedYStr = y
6161 let resolvedGenStr = gen
6262 let assetName = getAssetName(resolvedXStr, resolvedYStr)
6363 let assetUrl = ((nftDomain + transactionId) + ".png")
6464 let asset = Issue(((assetName + ",") + resolvedGenStr), assetUrl, 1, 0, false)
6565 let assetId = calculateAssetId(asset)
6666 let dataKeyPrefix = getDataKeyPrefix(resolvedXStr, resolvedYStr, gen)
6767 $Tuple4(asset, assetId, assetUrl, dataKeyPrefix)
6868 }
6969
7070
7171 @Callable(i)
7272 func purchase (x,y) = {
7373 let prefix = getDataKeyPrefix(x, y, "1")
7474 let paymentAmount = valueOrElse(i.payments[0].amount, 0)
7575 let existingAssetId = match getString(this, (prefix + "_assetId")) {
7676 case _: Unit =>
7777 "unset"
7878 case err: String =>
7979 throw("This square has already been purchased")
8080 case _ =>
8181 throw("Match error")
8282 }
8383 if ((minPurchasePrice > paymentAmount))
8484 then throw((("You need to send at least " + toString(minPurchasePrice)) + "WAVLETS to purchase a square"))
8585 else {
8686 let ownerId = toBase58String(i.caller.bytes)
8787 let transactionId = toBase58String(i.transactionId)
8888 let $t022152310 = claimSquare(x, y, "1", ownerId, transactionId)
8989 let asset = $t022152310._1
9090 let assetId = $t022152310._2
9191 let assetUrl = $t022152310._3
9292 let dataKeyPrefix = $t022152310._4
9393 [asset, StringEntry((dataKeyPrefix + "_assetId"), toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), ownerId), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)]
9494 }
9595 }
9696
9797
9898
9999 @Callable(i)
100100 func autoBuy (x,y) = {
101101 let callerId = toBase58String(i.caller.bytes)
102102 if (if ((callerId != holdings))
103103 then (callerId != dapp)
104104 else false)
105105 then throw("This can only be triggering internally")
106106 else {
107107 let transactionId = toBase58String(i.transactionId)
108- let $t028862982 = claimSquare(x, y, "1", holdings, transactionId)
109- let asset = $t028862982._1
110- let assetId = $t028862982._2
111- let assetUrl = $t028862982._3
112- let dataKeyPrefix = $t028862982._4
108+ let $t028872983 = claimSquare(x, y, "1", holdings, transactionId)
109+ let asset = $t028872983._1
110+ let assetId = $t028872983._2
111+ let assetUrl = $t028872983._3
112+ let dataKeyPrefix = $t028872983._4
113113 let assetIdStr = toBase58String(assetId)
114114 let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [holdings, assetIdStr, 3], [AttachedPayment(unit, 0)])
115115 if ((res == res))
116116 then [asset, StringEntry((dataKeyPrefix + "_assetId"), assetIdStr), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), holdings), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(holdingsAddress, 1, assetId)]
117117 else throw("Strict value is not equal to itself.")
118118 }
119119 }
120120
121121
122122
123123 @Callable(i)
124124 func promotionPurchase (x,y,desinationAddress) = {
125125 let callerId = toBase58String(i.caller.bytes)
126126 if ((callerId != holdings))
127127 then throw("This can only be triggering internally")
128128 else {
129129 let transactionId = toBase58String(i.transactionId)
130- let $t037383843 = claimSquare(x, y, "1", desinationAddress, transactionId)
131- let asset = $t037383843._1
132- let assetId = $t037383843._2
133- let assetUrl = $t037383843._3
134- let dataKeyPrefix = $t037383843._4
130+ let $t037393844 = claimSquare(x, y, "1", desinationAddress, transactionId)
131+ let asset = $t037393844._1
132+ let assetId = $t037393844._2
133+ let assetUrl = $t037393844._3
134+ let dataKeyPrefix = $t037393844._4
135135 let assetIdStr = toBase58String(assetId)
136136 [asset, StringEntry((dataKeyPrefix + "_assetId"), assetIdStr), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), desinationAddress), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]
137137 }
138138 }
139139
140140
141141
142142 @Callable(i)
143143 func evolve (x,y,gen,ownerId) = {
144144 let callerId = toBase58String(i.caller.bytes)
145145 if ((callerId != holdings))
146146 then throw("This can only be triggering internally")
147147 else {
148148 let transactionId = toBase58String(i.transactionId)
149- let $t045064601 = claimSquare(x, y, gen, ownerId, transactionId)
150- let asset = $t045064601._1
151- let assetId = $t045064601._2
152- let assetUrl = $t045064601._3
153- let dataKeyPrefix = $t045064601._4
149+ let $t045074602 = claimSquare(x, y, gen, ownerId, transactionId)
150+ let asset = $t045074602._1
151+ let assetId = $t045074602._2
152+ let assetUrl = $t045074602._3
153+ let dataKeyPrefix = $t045074602._4
154154 [asset, StringEntry((dataKeyPrefix + "_assetId"), toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), ownerId), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]
155155 }
156156 }
157157
158158
159159
160160 @Callable(i)
161161 func putForSale (assetId,amount) = {
162162 let callerId = toBase58String(i.caller.bytes)
163163 let assetData = match assetInfo(fromBase58String(assetId)) {
164164 case ass: Asset =>
165165 ass
166166 case _ =>
167167 throw("Asset not found")
168168 }
169169 let dataPrefix = getDataKeyPrefixFromAssetName(assetData.name)
170170 let ownerId = match getString(this, (dataPrefix + "_owner")) {
171171 case s: String =>
172172 s
173173 case _ =>
174174 throw("Owner not found in data")
175175 }
176176 if ((minForSaleWavlets > amount))
177177 then throw("Amount needs to be more than 1 wave")
178178 else if (if ((callerId != ownerId))
179179 then (callerId != holdings)
180180 else false)
181181 then throw("You are not able to put this asset up for sale")
182182 else {
183183 let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [callerId, assetId, amount], [AttachedPayment(unit, 0)])
184184 if ((res == res))
185185 then [ScriptTransfer(holdingsAddress, 1, fromBase58String(assetId))]
186186 else throw("Strict value is not equal to itself.")
187187 }
188188 }
189189
190190
191+
192+@Callable(i)
193+func finalizeSale (assetId,ownerId) = {
194+ let callerId = toBase58String(i.caller.bytes)
195+ if ((callerId != holdings))
196+ then throw("This can only be triggering internally")
197+ else {
198+ let prefix = match assetInfo(fromBase58String(assetId)) {
199+ case asset: Asset =>
200+ asset.name
201+ case _ =>
202+ throw("Can't find asset")
203+ }
204+[StringEntry((prefix + "_owner"), ownerId)]
205+ }
206+ }
207+
208+
191209 @Verifier(tx)
192210 func verify () = if (if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
193211 then true
194212 else (addressFromPublicKey(tx.senderPublicKey) == holdingsAddress))
195213 then true
196214 else (addressFromPublicKey(tx.senderPublicKey) == dappAddress)
197215

github/deemru/w8io/026f985 
81.54 ms