tx · 8U2NrgmZQVURLDxtPPxznjsbrucpuujP8BpnAnJpkNdv

3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh:  -0.01400000 Waves

2021.08.05 21:04 [1645374] smart account 3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh > SELF 0.00000000 Waves

{ "type": 13, "id": "8U2NrgmZQVURLDxtPPxznjsbrucpuujP8BpnAnJpkNdv", "fee": 1400000, "feeAssetId": null, "timestamp": 1628186674260, "version": 2, "chainId": 84, "sender": "3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh", "senderPublicKey": "D7edN6TZzQ6PbyWHGFdGMPJkkRNjR1Y32g7MmU7AXR73", "proofs": [ "3L1LJrMKYHnCSzSi6VEkCWHQPXfW2poZ53X6qjj7RL9Ycxy2R4Ki9vv5DqypMxZ5QrgcFZbWE2Ksrt2EYFsZKijw" ], "script": "base64:AAIFAAAAAAAAABcIAhIAEgMKAQESAwoBARIAEgMKAQESAAAAAAkAAAAABWdMdW1wAQAAACD3MI5LvZDW9hdsE5mwaJiKnQDcPy9bxLj3SQ9cNYQcswAAAAAEREFQUAEAAAAaAVSlkD3nZtE3vLqHBGaI5z4AgfZlwVVaCBgAAAAACUJMT0NLU1RFUAAAAAAAAAAACgAAAAAJSU5HT1RDT1NUAAAAAAAAAAPoAAAAAAhQTE9UQ09TVAAAAAAAAAGGoAAAAAAJZ0x1bXBQbG90AAAAAAAAAAH0AAAAAAlFUE9DSFNURVAAAAAAAAABhqAAAAAACkJPT1NUUFJJQ0UAAAAAAAAAAAEBAAAACnJhbmRvbWl6ZXIAAAABAAAAA2ludgQAAAAIbGFzdFBsYXkEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAIbGFzdE1pbmUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQBAAAADkdvbGRNa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gFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V50T5Feg==", "height": 1645374, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2p8iSWw6g9qUXaWs5won1q6srj5o97didxKQcs8ZaN8M Next: FBDEY7KsbSg8GDqK4zzu35bYKV6mxNgx5E5U3xwMfVcQ Diff:
OldNewDifferences
4949 let balance = assetBalance(this, gLump)
5050 let newWait = (lastBlock.height + BLOCKSTEP)
5151 let randhash = randomizer(i)
52- let count = (toInt(randhash) % 1000)
52+ let count = ((toInt(randhash) % 1000) / 2)
5353 if ((0 > ((balance - gLumpDeposit) - count)))
5454 then throw("Not enough gLUMP in World")
5555 else if ((wait > lastBlock.height))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let gLump = base58'HdveNhSzDRiEib9RfQ5EAxmpFVica4EqvBFd2S4pdbD4'
55
66 let DAPP = base58'3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh'
77
88 let BLOCKSTEP = 10
99
1010 let INGOTCOST = 1000
1111
1212 let PLOTCOST = 100000
1313
1414 let gLumpPlot = 500
1515
1616 let EPOCHSTEP = 100000
1717
1818 let BOOSTPRICE = 1
1919
2020 func randomizer (inv) = {
2121 let lastPlay = match getBinary(this, "lastMine") {
2222 case s: ByteVector =>
2323 s
2424 case _: Unit =>
2525 base58'TGCTLFoHxJ8U7rcUofN'
2626 case _ =>
2727 throw("Match error")
2828 }
2929 let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
3030 sha256(rand)
3131 }
3232
3333
3434 @Callable(i)
3535 func goToMine () = {
3636 let caller = toBase58String(i.caller.bytes)
3737 let wait = match getInteger(this, ("wait_" + caller)) {
3838 case a: Int =>
3939 a
4040 case _ =>
4141 0
4242 }
4343 let gLumpDeposit = match getInteger(this, "deposit") {
4444 case a: Int =>
4545 a
4646 case _ =>
4747 0
4848 }
4949 let balance = assetBalance(this, gLump)
5050 let newWait = (lastBlock.height + BLOCKSTEP)
5151 let randhash = randomizer(i)
52- let count = (toInt(randhash) % 1000)
52+ let count = ((toInt(randhash) % 1000) / 2)
5353 if ((0 > ((balance - gLumpDeposit) - count)))
5454 then throw("Not enough gLUMP in World")
5555 else if ((wait > lastBlock.height))
5656 then throw((("Wait block " + toString(wait)) + " for mining again"))
5757 else [IntegerEntry(("wait_" + caller), newWait), ScriptTransfer(i.caller, count, gLump), BinaryEntry("lastMine", randhash)]
5858 }
5959
6060
6161
6262 @Callable(i)
6363 func craftIngot (count) = {
6464 let caller = toBase58String(i.caller.bytes)
6565 let craft = match getInteger(this, ("craft_" + caller)) {
6666 case a: Int =>
6767 a
6868 case _ =>
6969 0
7070 }
7171 let ingots = match getInteger(this, "ingots_count") {
7272 case a: Int =>
7373 a
7474 case _ =>
7575 0
7676 }
7777 let newIngots = (ingots + 1)
7878 let newCraft = (lastBlock.height + BLOCKSTEP)
7979 if ((size(i.payments) == 0))
8080 then throw("Payment wasn't attached")
8181 else if ((craft > lastBlock.height))
8282 then throw((("Wait block " + toString(craft)) + " for crafting again"))
8383 else if (if (if ((count != 1))
8484 then (count != 10)
8585 else false)
8686 then (count != 50)
8787 else false)
8888 then throw("Wrong ingot's weight!")
8989 else {
9090 let payment = i.payments[0]
9191 if ((payment.assetId != gLump))
9292 then throw("Payment only in gLump")
9393 else if ((payment.amount != (INGOTCOST * count)))
9494 then throw((("Payment expected " + toString((INGOTCOST * count))) + " gLump"))
9595 else {
9696 let issueName = ("INGOT" + toString(newIngots))
9797 let issueDesc = (((((("{\"weight\":" + toString(count)) + ",\"uid\":") + toString(newIngots)) + ",\"made_by\":\"") + caller) + "\"}")
9898 let issue = Issue(issueName, issueDesc, 1, 0, false)
9999 let nft = calculateAssetId(issue)
100100 [Burn(gLump, (INGOTCOST * count)), Issue(issueName, issueDesc, 1, 0, false), ScriptTransfer(i.caller, 1, nft), IntegerEntry("ingots_count", newIngots), StringEntry(("ingot_" + toString(newIngots)), toBase58String(nft)), IntegerEntry(("craft_" + caller), newCraft), IntegerEntry(("weight_" + toBase58String(nft)), count)]
101101 }
102102 }
103103 }
104104
105105
106106
107107 @Callable(i)
108108 func buyPlot (pSize) = {
109109 let caller = toBase58String(i.caller.bytes)
110110 let plotSize = match getInteger(this, ("plot_" + caller)) {
111111 case a: Int =>
112112 a
113113 case _ =>
114114 0
115115 }
116116 let gLumpDeposit = match getInteger(this, "deposit") {
117117 case a: Int =>
118118 a
119119 case _ =>
120120 0
121121 }
122122 let balance = assetBalance(this, gLump)
123123 let newDeposit = (gLumpDeposit + (pSize * gLumpPlot))
124124 if ((0 > ((balance - gLumpDeposit) - (pSize * gLumpPlot))))
125125 then throw("Not enough gLUMP in World")
126126 else if ((plotSize > 0))
127127 then throw("You already have a plot!")
128128 else if (if ((0 > plotSize))
129129 then true
130130 else (plotSize > 1000))
131131 then throw("Correct size value from 1 to 1000")
132132 else {
133133 let payment = i.payments[0]
134134 if (isDefined(payment.assetId))
135135 then throw("Payment only in WAVES")
136136 else if ((payment.amount != (pSize * PLOTCOST)))
137137 then throw((("Payment expected " + toString((pSize * PLOTCOST))) + " WAVELET"))
138138 else [IntegerEntry(("plot_" + caller), pSize), IntegerEntry("deposit", newDeposit)]
139139 }
140140 }
141141
142142
143143
144144 @Callable(i)
145145 func goToPlot () = {
146146 let caller = toBase58String(i.caller.bytes)
147147 let plotSize = match getInteger(this, ("plot_" + caller)) {
148148 case a: Int =>
149149 a
150150 case _ =>
151151 0
152152 }
153153 let wait = match getInteger(this, ("wait_" + caller)) {
154154 case a: Int =>
155155 a
156156 case _ =>
157157 0
158158 }
159159 let gLumpDeposit = match getInteger(this, "deposit") {
160160 case a: Int =>
161161 a
162162 case _ =>
163163 0
164164 }
165165 let newDeposit = (gLumpDeposit - gLumpPlot)
166166 let newWait = (lastBlock.height + BLOCKSTEP)
167167 let newPlotSize = (plotSize - 1)
168168 if ((0 >= plotSize))
169169 then throw("Plot is empty, buy new!")
170170 else if ((wait > lastBlock.height))
171171 then throw((("Wait block " + toString(wait)) + " for mining again"))
172172 else [IntegerEntry(("wait_" + caller), newWait), ScriptTransfer(i.caller, gLumpPlot, gLump), IntegerEntry(("plot_" + caller), newPlotSize), IntegerEntry("deposit", newDeposit)]
173173 }
174174
175175
176176
177177 @Callable(i)
178178 func giveIngot (uid) = {
179179 let caller = toBase58String(i.caller.bytes)
180180 let assetId = match getString(this, ("ingot_" + toString(uid))) {
181181 case a: String =>
182182 a
183183 case _ =>
184184 ""
185185 }
186186 let given = match getInteger(this, ("from_by_" + caller)) {
187187 case a: Int =>
188188 a
189189 case _ =>
190190 0
191191 }
192192 let weight = match getInteger(this, ("weight_" + assetId)) {
193193 case a: Int =>
194194 a
195195 case _ =>
196196 0
197197 }
198198 let maxq = match getInteger(this, "max_q") {
199199 case a: Int =>
200200 a
201201 case _ =>
202202 0
203203 }
204204 let newGiven = (given + weight)
205205 let newMaxQ = newGiven
206206 if ((size(i.payments) == 0))
207207 then throw("NFT Payment wasn't attached")
208208 else if ((assetId == ""))
209209 then throw(("Can't find INGOT" + toString(uid)))
210210 else {
211211 let payment = i.payments[0]
212212 if ((isDefined(payment.assetId) == false))
213213 then throw("???")
214214 else if ((payment.assetId != fromBase58String(assetId)))
215215 then throw(("Wrong Ingot in Payment " + assetId))
216216 else if ((payment.amount != 1))
217217 then throw("Wrong ingot's count")
218218 else if ((newMaxQ > maxq))
219219 then [IntegerEntry("max_q", newMaxQ), StringEntry("max_owner", caller), IntegerEntry(("from_by_" + caller), newGiven)]
220220 else [IntegerEntry(("from_by_" + caller), newGiven)]
221221 }
222222 }
223223
224224
225225
226226 @Callable(i)
227227 func startNewEpoch () = {
228228 let epoch = match getInteger(this, "epoch") {
229229 case a: Int =>
230230 a
231231 case _ =>
232232 -1
233233 }
234234 let maxOwner = match getString(this, "max_owner") {
235235 case a: String =>
236236 a
237237 case _ =>
238238 ""
239239 }
240240 if ((i.caller.bytes != DAPP))
241241 then throw("Only Creator of the world can start new Epoch")
242242 else {
243243 let newEpoch = (epoch + 1)
244244 let nextEpochHeight = (lastBlock.height + BLOCKSTEP)
245245 if ((maxOwner == ""))
246246 then [IntegerEntry("epoch", newEpoch), IntegerEntry("epochHeight", nextEpochHeight)]
247247 else {
248248 let issueName = ("CROWN" + toString(epoch))
249249 let issueDesc = (((("{\"king\":\"" + maxOwner) + "\",\"epoch\":") + toString(epoch)) + "}")
250250 let issue = Issue(issueName, issueDesc, 1, 0, false)
251251 let nft = calculateAssetId(issue)
252252 [Issue(issueName, issueDesc, 1, 0, false), ScriptTransfer(addressFromStringValue(maxOwner), 1, nft), IntegerEntry("epoch", newEpoch), IntegerEntry("epochHeight", nextEpochHeight), StringEntry("king", maxOwner), StringEntry(("crown_" + toString(epoch)), toBase58String(nft))]
253253 }
254254 }
255255 }
256256
257257
258258 @Verifier(tx)
259259 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
260260

github/deemru/w8io/169f3d6 
39.57 ms