tx · HZ5V8kNainMapAzBMLxhLpTATyjvD6WJatnQphZ8G8oq

3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r:  -0.04000000 Waves

2022.03.29 17:41 [1985349] smart account 3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r > SELF 0.00000000 Waves

{ "type": 13, "id": "HZ5V8kNainMapAzBMLxhLpTATyjvD6WJatnQphZ8G8oq", "fee": 4000000, "feeAssetId": null, "timestamp": 1648564904409, "version": 2, "chainId": 84, "sender": "3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r", "senderPublicKey": "GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY", "proofs": [ "4NwXJPtSxC84Extx8v1DczRpQKGhSLvajqtnkLjaHXonPEmctqCgPuf9MScn2nMagKwRbbUnrQWzamV2GKKzUCm2" ], "script": "base64:AAIFAAAAAAAAACMIAhIECgIICBIECgIICBIFCgMICAgSBgoECAgICBIECgIIAQAAAA8AAAAABENPTFMAAAAAAAAABAAAAAAABFJPV1MAAAAAAAAABAAAAAAACW5mdERvbWFpbgIAAAAYaHR0cHM6Ly9uZnQuZ3JpZGdhbmcuaW8vAAAAABVhZGRPd25lckFuZEFtb3VudEZ1bmMCAAAAEWFkZE93bmVyQW5kQW1vdW50AAAAAAVERUJVRwYAAAAAEW1pbkZvclNhbGVXYXZsZXRzAAAAAAAF9eEAAAAAABBtaW5QdXJjaGFzZVByaWNlAAAAAAAAD0JAAAAAABFob2xkaW5nc1B1YmxpY0tleQIAAAAsR1VIdzFqa3N0TldUczlTWDFLTTNwTXRxOUhYanVwdnhpVGQxdXJOaE5veVkAAAAACGhvbGRpbmdzAgAAACMzTjlSN3U0NDlaMWI3NlFwSnA5dTNnelBqTVlRWW5wM1Y3cgAAAAAPaG9sZGluZ3NBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAIaG9sZGluZ3MBAAAADGdldEFzc2V0TmFtZQAAAAIAAAABeAAAAA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AAQkAAlkAAAABBQAAAAdhc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BgkAAAAAAAACCQAEsAAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAEWhvbGRpbmdzUHVibGljS2V5yNGN1A==", "height": 1985349, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FhMinnN3MVQCa79guFG6Qpv1Nj8g52QjB9LsZHQhU5J9 Next: 5PGptvqfHU9jTUu4QEAFxZb61dTHPw5JJGdtwQpZDWY8 Diff:
OldNewDifferences
1515
1616 let minPurchasePrice = 1000000
1717
18-let holdingsPublicKey = fromBase58String("GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY")
18+let holdingsPublicKey = "GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY"
1919
2020 let holdings = "3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r"
2121
4242
4343
4444 func getDataKeyPrefixFromAssetName (name) = {
45- let $t0920960 = getXYGenFromName(name)
46- let x = $t0920960._1
47- let y = $t0920960._2
48- let gen = $t0920960._3
45+ let $t0902942 = getXYGenFromName(name)
46+ let x = $t0902942._1
47+ let y = $t0902942._2
48+ let gen = $t0902942._3
4949 let prefix = getDataKeyPrefix(x, y, gen)
5050 prefix
5151 }
8181 else {
8282 let ownerId = toBase58String(i.caller.bytes)
8383 let transactionId = toBase58String(i.transactionId)
84- let $t021342229 = claimSquare(x, y, "1", ownerId, transactionId)
85- let asset = $t021342229._1
86- let assetId = $t021342229._2
87- let assetUrl = $t021342229._3
88- let dataKeyPrefix = $t021342229._4
84+ let $t021162211 = claimSquare(x, y, "1", ownerId, transactionId)
85+ let asset = $t021162211._1
86+ let assetId = $t021162211._2
87+ let assetUrl = $t021162211._3
88+ let dataKeyPrefix = $t021162211._4
8989 [asset, StringEntry((dataKeyPrefix + "_assetId"), toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), ownerId), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)]
9090 }
9191 }
9999 then throw("This can only be triggering internally")
100100 else {
101101 let transactionId = toBase58String(i.transactionId)
102- let $t027852881 = claimSquare(x, y, "1", holdings, transactionId)
103- let asset = $t027852881._1
104- let assetId = $t027852881._2
105- let assetUrl = $t027852881._3
106- let dataKeyPrefix = $t027852881._4
102+ let $t027672863 = claimSquare(x, y, "1", holdings, transactionId)
103+ let asset = $t027672863._1
104+ let assetId = $t027672863._2
105+ let assetUrl = $t027672863._3
106+ let dataKeyPrefix = $t027672863._4
107107 let assetIdStr = toBase58String(assetId)
108108 let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [holdings, assetId, 3], [AttachedPayment(unit, 0)])
109109 if ((res == res))
121121 then throw("This can only be triggering internally")
122122 else {
123123 let transactionId = toBase58String(i.transactionId)
124- let $t036343739 = claimSquare(x, y, "1", desinationAddress, transactionId)
125- let asset = $t036343739._1
126- let assetId = $t036343739._2
127- let assetUrl = $t036343739._3
128- let dataKeyPrefix = $t036343739._4
124+ let $t036163721 = claimSquare(x, y, "1", desinationAddress, transactionId)
125+ let asset = $t036163721._1
126+ let assetId = $t036163721._2
127+ let assetUrl = $t036163721._3
128+ let dataKeyPrefix = $t036163721._4
129129 let assetIdStr = toBase58String(assetId)
130130 [asset, StringEntry((dataKeyPrefix + "_assetId"), assetIdStr), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), desinationAddress), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]
131131 }
140140 then throw("This can only be triggering internally")
141141 else {
142142 let transactionId = toBase58String(i.transactionId)
143- let $t044024497 = claimSquare(x, y, gen, ownerId, transactionId)
144- let asset = $t044024497._1
145- let assetId = $t044024497._2
146- let assetUrl = $t044024497._3
147- let dataKeyPrefix = $t044024497._4
143+ let $t043844479 = claimSquare(x, y, gen, ownerId, transactionId)
144+ let asset = $t043844479._1
145+ let assetId = $t043844479._2
146+ let assetUrl = $t043844479._3
147+ let dataKeyPrefix = $t043844479._4
148148 [asset, StringEntry((dataKeyPrefix + "_assetId"), toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), ownerId), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]
149149 }
150150 }
185185 @Verifier(tx)
186186 func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
187187 then true
188- else (tx.senderPublicKey == holdingsPublicKey)
188+ else (toUtf8String(tx.senderPublicKey) == holdingsPublicKey)
189189
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
18-let holdingsPublicKey = fromBase58String("GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY")
18+let holdingsPublicKey = "GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY"
1919
2020 let holdings = "3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r"
2121
2222 let holdingsAddress = Address(fromBase58String(holdings))
2323
2424 func getAssetName (x,y) = {
2525 let name = ((x + ",") + y)
2626 name
2727 }
2828
2929
3030 func getDataKeyPrefix (x,y,gen) = {
3131 let name = getAssetName(x, y)
3232 let prefix = ((name + ",") + gen)
3333 prefix
3434 }
3535
3636
3737 func getXYGenFromName (name) = {
3838 let parts = split(name, ",")
3939 let tuple = $Tuple3(parts[0], parts[1], parts[2])
4040 tuple
4141 }
4242
4343
4444 func getDataKeyPrefixFromAssetName (name) = {
45- let $t0920960 = getXYGenFromName(name)
46- let x = $t0920960._1
47- let y = $t0920960._2
48- let gen = $t0920960._3
45+ let $t0902942 = getXYGenFromName(name)
46+ let x = $t0902942._1
47+ let y = $t0902942._2
48+ let gen = $t0902942._3
4949 let prefix = getDataKeyPrefix(x, y, gen)
5050 prefix
5151 }
5252
5353
5454 func claimSquare (x,y,gen,ownerId,transactionId) = {
5555 let resolvedXStr = x
5656 let resolvedYStr = y
5757 let resolvedGenStr = gen
5858 let assetName = getAssetName(resolvedXStr, resolvedYStr)
5959 let assetUrl = ((nftDomain + transactionId) + ".png")
6060 let asset = Issue(((assetName + ",") + resolvedGenStr), assetUrl, 1, 0, false)
6161 let assetId = calculateAssetId(asset)
6262 let dataKeyPrefix = getDataKeyPrefix(resolvedXStr, resolvedYStr, gen)
6363 $Tuple4(asset, assetId, assetUrl, dataKeyPrefix)
6464 }
6565
6666
6767 @Callable(i)
6868 func purchase (x,y) = {
6969 let prefix = getDataKeyPrefix(x, y, "1")
7070 let paymentAmount = valueOrElse(i.payments[0].amount, 0)
7171 let existingAssetId = match getString(this, (prefix + "_assetId")) {
7272 case _: Unit =>
7373 "unset"
7474 case err: String =>
7575 throw("This square has already been purchased")
7676 case _ =>
7777 throw("Match error")
7878 }
7979 if ((minPurchasePrice > paymentAmount))
8080 then throw((("You need to send at least " + toString(minPurchasePrice)) + "WAVLETS to purchase a square"))
8181 else {
8282 let ownerId = toBase58String(i.caller.bytes)
8383 let transactionId = toBase58String(i.transactionId)
84- let $t021342229 = claimSquare(x, y, "1", ownerId, transactionId)
85- let asset = $t021342229._1
86- let assetId = $t021342229._2
87- let assetUrl = $t021342229._3
88- let dataKeyPrefix = $t021342229._4
84+ let $t021162211 = claimSquare(x, y, "1", ownerId, transactionId)
85+ let asset = $t021162211._1
86+ let assetId = $t021162211._2
87+ let assetUrl = $t021162211._3
88+ let dataKeyPrefix = $t021162211._4
8989 [asset, StringEntry((dataKeyPrefix + "_assetId"), toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), ownerId), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(i.caller, 1, assetId)]
9090 }
9191 }
9292
9393
9494
9595 @Callable(i)
9696 func autoBuy (x,y) = {
9797 let callerId = toBase58String(i.caller.bytes)
9898 if ((callerId != holdings))
9999 then throw("This can only be triggering internally")
100100 else {
101101 let transactionId = toBase58String(i.transactionId)
102- let $t027852881 = claimSquare(x, y, "1", holdings, transactionId)
103- let asset = $t027852881._1
104- let assetId = $t027852881._2
105- let assetUrl = $t027852881._3
106- let dataKeyPrefix = $t027852881._4
102+ let $t027672863 = claimSquare(x, y, "1", holdings, transactionId)
103+ let asset = $t027672863._1
104+ let assetId = $t027672863._2
105+ let assetUrl = $t027672863._3
106+ let dataKeyPrefix = $t027672863._4
107107 let assetIdStr = toBase58String(assetId)
108108 let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [holdings, assetId, 3], [AttachedPayment(unit, 0)])
109109 if ((res == res))
110110 then [asset, StringEntry((dataKeyPrefix + "_assetId"), assetIdStr), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), holdings), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(holdingsAddress, 1, assetId)]
111111 else throw("Strict value is not equal to itself.")
112112 }
113113 }
114114
115115
116116
117117 @Callable(i)
118118 func promotionPurchase (x,y,desinationAddress) = {
119119 let callerId = toBase58String(i.caller.bytes)
120120 if ((callerId != holdings))
121121 then throw("This can only be triggering internally")
122122 else {
123123 let transactionId = toBase58String(i.transactionId)
124- let $t036343739 = claimSquare(x, y, "1", desinationAddress, transactionId)
125- let asset = $t036343739._1
126- let assetId = $t036343739._2
127- let assetUrl = $t036343739._3
128- let dataKeyPrefix = $t036343739._4
124+ let $t036163721 = claimSquare(x, y, "1", desinationAddress, transactionId)
125+ let asset = $t036163721._1
126+ let assetId = $t036163721._2
127+ let assetUrl = $t036163721._3
128+ let dataKeyPrefix = $t036163721._4
129129 let assetIdStr = toBase58String(assetId)
130130 [asset, StringEntry((dataKeyPrefix + "_assetId"), assetIdStr), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), desinationAddress), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(desinationAddress)), 1, assetId)]
131131 }
132132 }
133133
134134
135135
136136 @Callable(i)
137137 func evolve (x,y,gen,ownerId) = {
138138 let callerId = toBase58String(i.caller.bytes)
139139 if ((callerId != holdings))
140140 then throw("This can only be triggering internally")
141141 else {
142142 let transactionId = toBase58String(i.transactionId)
143- let $t044024497 = claimSquare(x, y, gen, ownerId, transactionId)
144- let asset = $t044024497._1
145- let assetId = $t044024497._2
146- let assetUrl = $t044024497._3
147- let dataKeyPrefix = $t044024497._4
143+ let $t043844479 = claimSquare(x, y, gen, ownerId, transactionId)
144+ let asset = $t043844479._1
145+ let assetId = $t043844479._2
146+ let assetUrl = $t043844479._3
147+ let dataKeyPrefix = $t043844479._4
148148 [asset, StringEntry((dataKeyPrefix + "_assetId"), toBase58String(assetId)), StringEntry((dataKeyPrefix + "_asset"), assetUrl), StringEntry((dataKeyPrefix + "_owner"), ownerId), StringEntry(transactionId, dataKeyPrefix), ScriptTransfer(Address(fromBase58String(ownerId)), 1, assetId)]
149149 }
150150 }
151151
152152
153153
154154 @Callable(i)
155155 func putForSale (assetId,amount) = {
156156 let callerId = toBase58String(i.caller.bytes)
157157 let assetData = match assetInfo(fromBase58String(assetId)) {
158158 case ass: Asset =>
159159 ass
160160 case _ =>
161161 throw("Asset not found")
162162 }
163163 let dataPrefix = getDataKeyPrefixFromAssetName(assetData.name)
164164 let ownerId = match getString(this, (dataPrefix + "_owner")) {
165165 case s: String =>
166166 s
167167 case _ =>
168168 throw("Owner not found in data")
169169 }
170170 if ((minForSaleWavlets > amount))
171171 then throw("Amount needs to be more than 1 wave")
172172 else if (if ((callerId != ownerId))
173173 then (callerId != holdings)
174174 else false)
175175 then throw("You are not able to put this asset up for sale")
176176 else {
177177 let res = invoke(holdingsAddress, addOwnerAndAmountFunc, [callerId, assetId, amount], [AttachedPayment(unit, 0)])
178178 if ((res == res))
179179 then [ScriptTransfer(holdingsAddress, 1, fromBase58String(assetId))]
180180 else throw("Strict value is not equal to itself.")
181181 }
182182 }
183183
184184
185185 @Verifier(tx)
186186 func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
187187 then true
188- else (tx.senderPublicKey == holdingsPublicKey)
188+ else (toUtf8String(tx.senderPublicKey) == holdingsPublicKey)
189189

github/deemru/w8io/169f3d6 
63.29 ms