tx · 5hSqW7aonXKHfL2iPedEAJHyoEU7k8JcYYvmoPo9G4Xp 3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh: -0.14000000 Waves 2021.08.04 21:11 [1643943] smart account 3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh > SELF 0.00000000 Waves
{ "type": 13, "id": "5hSqW7aonXKHfL2iPedEAJHyoEU7k8JcYYvmoPo9G4Xp", "fee": 14000000, "feeAssetId": null, "timestamp": 1628100750255, "version": 2, "chainId": 84, "sender": "3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh", "senderPublicKey": "D7edN6TZzQ6PbyWHGFdGMPJkkRNjR1Y32g7MmU7AXR73", "proofs": [ "2ezniBqsJpsgBuCTakYMf6yKD9qAST97oFvCTHqaYBfJbix6mahGabDX1MWikuKjUMeya9sKbJpsYagDdNjoR2FR" ], "script": "base64:AAIFAAAAAAAAABcIAhIAEgMKAQESAwoBARIAEgMKAQESAAAAAAgAAAAACUJMT0NLU1RFUAAAAAAAAAAACgAAAAAJSU5HT1RDT1NUAAAAAAAAAAPoAAAAAAhQTE9UQ09TVAAAAAAAAAGGoAAAAAAJZ0x1bXBQbG90AAAAAAAAAAPoAAAAAAVnTHVtcAEAAAAg9zCOS72Q1vYXbBOZsGiYip0A3D8vW8S490kPXDWEHLMAAAAABERBUFABAAAAGgFUpZA952bRN7y6hwRmiOc+AIH2ZcFVWggYAAAAAAlFUE9DSFNURVAAAAAAAAAAAGQBAAAACnJhbmRvbWl6ZXIAAAABAAAAA2ludgQAAAAIbGFzdFBsYXkEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAIbGFzdE1pbmUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQBAAAADkdvbGRNaW5lcnMyMDIxCQAAAgAAAAECAAAAC01hdGNoIGVycm9yBA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2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZrtRkI=", "height": 1643943, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4JKSumEHnQ6KydmsNXatHhkJXiW5vV7z3Ax6CJ3fGzNL Next: 2p8iSWw6g9qUXaWs5won1q6srj5o97didxKQcs8ZaN8M Diff:
Old | New | Differences | |
---|---|---|---|
118 | 118 | 0 | |
119 | 119 | } | |
120 | 120 | let balance = assetBalance(this, gLump) | |
121 | - | let newDeposit = (gLumpDeposit + ( | |
122 | - | if ((0 > ((balance - gLumpDeposit) - ( | |
121 | + | let newDeposit = (gLumpDeposit + (pSize * gLumpPlot)) | |
122 | + | if ((0 > ((balance - gLumpDeposit) - (pSize * gLumpPlot)))) | |
123 | 123 | then throw("Not enough gLUMP in World") | |
124 | 124 | else if ((plotSize > 0)) | |
125 | 125 | then throw("You already have a plot!") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let BLOCKSTEP = 10 | |
5 | 5 | ||
6 | 6 | let INGOTCOST = 1000 | |
7 | 7 | ||
8 | 8 | let PLOTCOST = 100000 | |
9 | 9 | ||
10 | 10 | let gLumpPlot = 1000 | |
11 | 11 | ||
12 | 12 | let gLump = base58'HdveNhSzDRiEib9RfQ5EAxmpFVica4EqvBFd2S4pdbD4' | |
13 | 13 | ||
14 | 14 | let DAPP = base58'3N51W4fn1aAAdypU26EGUwNZPr3zikN3vwh' | |
15 | 15 | ||
16 | 16 | let EPOCHSTEP = 100 | |
17 | 17 | ||
18 | 18 | func randomizer (inv) = { | |
19 | 19 | let lastPlay = match getBinary(this, "lastMine") { | |
20 | 20 | case s: ByteVector => | |
21 | 21 | s | |
22 | 22 | case _: Unit => | |
23 | 23 | base58'TGCTLFoHxJ8U7rcUofN' | |
24 | 24 | case _ => | |
25 | 25 | throw("Match error") | |
26 | 26 | } | |
27 | 27 | let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
28 | 28 | sha256(rand) | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func goToMine () = { | |
34 | 34 | let caller = toBase58String(i.caller.bytes) | |
35 | 35 | let wait = match getInteger(this, ("wait_" + caller)) { | |
36 | 36 | case a: Int => | |
37 | 37 | a | |
38 | 38 | case _ => | |
39 | 39 | 0 | |
40 | 40 | } | |
41 | 41 | let gLumpDeposit = match getInteger(this, "deposit") { | |
42 | 42 | case a: Int => | |
43 | 43 | a | |
44 | 44 | case _ => | |
45 | 45 | 0 | |
46 | 46 | } | |
47 | 47 | let balance = assetBalance(this, gLump) | |
48 | 48 | let newWait = (lastBlock.height + BLOCKSTEP) | |
49 | 49 | let randhash = randomizer(i) | |
50 | 50 | let count = (toInt(randhash) % 1000) | |
51 | 51 | if ((0 > ((balance - gLumpDeposit) - count))) | |
52 | 52 | then throw("Not enough gLUMP in World") | |
53 | 53 | else if ((wait > lastBlock.height)) | |
54 | 54 | then throw((("Wait block " + toString(wait)) + " for mining again")) | |
55 | 55 | else [IntegerEntry(("wait_" + caller), newWait), ScriptTransfer(i.caller, count, gLump), BinaryEntry("lastMine", randhash)] | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(i) | |
61 | 61 | func craftIngot (count) = { | |
62 | 62 | let caller = toBase58String(i.caller.bytes) | |
63 | 63 | let craft = match getInteger(this, ("craft_" + caller)) { | |
64 | 64 | case a: Int => | |
65 | 65 | a | |
66 | 66 | case _ => | |
67 | 67 | 0 | |
68 | 68 | } | |
69 | 69 | let ingots = match getInteger(this, "ingots_count") { | |
70 | 70 | case a: Int => | |
71 | 71 | a | |
72 | 72 | case _ => | |
73 | 73 | 0 | |
74 | 74 | } | |
75 | 75 | let newIngots = (ingots + 1) | |
76 | 76 | let newCraft = (lastBlock.height + BLOCKSTEP) | |
77 | 77 | if ((size(i.payments) == 0)) | |
78 | 78 | then throw("Payment wasn't attached") | |
79 | 79 | else if ((craft > lastBlock.height)) | |
80 | 80 | then throw((("Wait block " + toString(craft)) + " for crafting again")) | |
81 | 81 | else if (if (if ((count != 1)) | |
82 | 82 | then (count != 10) | |
83 | 83 | else false) | |
84 | 84 | then (count != 50) | |
85 | 85 | else false) | |
86 | 86 | then throw("Wrong ingot's weight!") | |
87 | 87 | else { | |
88 | 88 | let payment = i.payments[0] | |
89 | 89 | if ((payment.assetId != gLump)) | |
90 | 90 | then throw("Payment only in gLump") | |
91 | 91 | else if ((payment.amount != (INGOTCOST * count))) | |
92 | 92 | then throw((("Payment expected " + toString((INGOTCOST * count))) + " gLump")) | |
93 | 93 | else { | |
94 | 94 | let issueName = ("INGOT" + toString(newIngots)) | |
95 | 95 | let issueDesc = (((((("{\"weight\":" + toString(count)) + ",\"uid\":") + toString(newIngots)) + ",\"made_by\":\"") + caller) + "\"}") | |
96 | 96 | let issue = Issue(issueName, issueDesc, 1, 0, false) | |
97 | 97 | let nft = calculateAssetId(issue) | |
98 | 98 | [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)] | |
99 | 99 | } | |
100 | 100 | } | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | ||
105 | 105 | @Callable(i) | |
106 | 106 | func buyPlot (pSize) = { | |
107 | 107 | let caller = toBase58String(i.caller.bytes) | |
108 | 108 | let plotSize = match getInteger(this, ("plot_" + caller)) { | |
109 | 109 | case a: Int => | |
110 | 110 | a | |
111 | 111 | case _ => | |
112 | 112 | 0 | |
113 | 113 | } | |
114 | 114 | let gLumpDeposit = match getInteger(this, "deposit") { | |
115 | 115 | case a: Int => | |
116 | 116 | a | |
117 | 117 | case _ => | |
118 | 118 | 0 | |
119 | 119 | } | |
120 | 120 | let balance = assetBalance(this, gLump) | |
121 | - | let newDeposit = (gLumpDeposit + ( | |
122 | - | if ((0 > ((balance - gLumpDeposit) - ( | |
121 | + | let newDeposit = (gLumpDeposit + (pSize * gLumpPlot)) | |
122 | + | if ((0 > ((balance - gLumpDeposit) - (pSize * gLumpPlot)))) | |
123 | 123 | then throw("Not enough gLUMP in World") | |
124 | 124 | else if ((plotSize > 0)) | |
125 | 125 | then throw("You already have a plot!") | |
126 | 126 | else if (if ((0 > plotSize)) | |
127 | 127 | then true | |
128 | 128 | else (plotSize > 1000)) | |
129 | 129 | then throw("Correct size value from 1 to 1000") | |
130 | 130 | else { | |
131 | 131 | let payment = i.payments[0] | |
132 | 132 | if (isDefined(payment.assetId)) | |
133 | 133 | then throw("Payment only in WAVES") | |
134 | 134 | else if ((payment.amount != (pSize * PLOTCOST))) | |
135 | 135 | then throw((("Payment expected " + toString((pSize * PLOTCOST))) + " WAVELET")) | |
136 | 136 | else [IntegerEntry(("plot_" + caller), pSize), IntegerEntry("deposit", newDeposit)] | |
137 | 137 | } | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(i) | |
143 | 143 | func goToPlot () = { | |
144 | 144 | let caller = toBase58String(i.caller.bytes) | |
145 | 145 | let plotSize = match getInteger(this, ("plot_" + caller)) { | |
146 | 146 | case a: Int => | |
147 | 147 | a | |
148 | 148 | case _ => | |
149 | 149 | 0 | |
150 | 150 | } | |
151 | 151 | let wait = match getInteger(this, ("wait_" + caller)) { | |
152 | 152 | case a: Int => | |
153 | 153 | a | |
154 | 154 | case _ => | |
155 | 155 | 0 | |
156 | 156 | } | |
157 | 157 | let gLumpDeposit = match getInteger(this, "deposit") { | |
158 | 158 | case a: Int => | |
159 | 159 | a | |
160 | 160 | case _ => | |
161 | 161 | 0 | |
162 | 162 | } | |
163 | 163 | let newDeposit = (gLumpDeposit - gLumpPlot) | |
164 | 164 | let newWait = (lastBlock.height + BLOCKSTEP) | |
165 | 165 | let newPlotSize = (plotSize - 1) | |
166 | 166 | if ((0 >= plotSize)) | |
167 | 167 | then throw("Plot is empty, buy new!") | |
168 | 168 | else if ((wait > lastBlock.height)) | |
169 | 169 | then throw((("Wait block " + toString(wait)) + " for mining again")) | |
170 | 170 | else [IntegerEntry(("wait_" + caller), newWait), ScriptTransfer(i.caller, gLumpPlot, gLump), IntegerEntry(("plot_" + caller), newPlotSize), IntegerEntry("deposit", newDeposit)] | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | ||
175 | 175 | @Callable(i) | |
176 | 176 | func giveIngot (uid) = { | |
177 | 177 | let caller = toBase58String(i.caller.bytes) | |
178 | 178 | let assetId = match getString(this, ("ingot_" + toString(uid))) { | |
179 | 179 | case a: String => | |
180 | 180 | a | |
181 | 181 | case _ => | |
182 | 182 | "" | |
183 | 183 | } | |
184 | 184 | let given = match getInteger(this, ("from_by_" + caller)) { | |
185 | 185 | case a: Int => | |
186 | 186 | a | |
187 | 187 | case _ => | |
188 | 188 | 0 | |
189 | 189 | } | |
190 | 190 | let weight = match getInteger(this, ("weight_" + assetId)) { | |
191 | 191 | case a: Int => | |
192 | 192 | a | |
193 | 193 | case _ => | |
194 | 194 | 0 | |
195 | 195 | } | |
196 | 196 | let maxq = match getInteger(this, "max_q") { | |
197 | 197 | case a: Int => | |
198 | 198 | a | |
199 | 199 | case _ => | |
200 | 200 | 0 | |
201 | 201 | } | |
202 | 202 | let newGiven = (given + weight) | |
203 | 203 | let newMaxQ = newGiven | |
204 | 204 | if ((size(i.payments) == 0)) | |
205 | 205 | then throw("NFT Payment wasn't attached") | |
206 | 206 | else if ((assetId == "")) | |
207 | 207 | then throw(("Can't find INGOT" + toString(uid))) | |
208 | 208 | else { | |
209 | 209 | let payment = i.payments[0] | |
210 | 210 | if ((isDefined(payment.assetId) == false)) | |
211 | 211 | then throw("???") | |
212 | 212 | else if ((payment.assetId != fromBase58String(assetId))) | |
213 | 213 | then throw(("Wrong Ingot in Payment " + assetId)) | |
214 | 214 | else if ((payment.amount != 1)) | |
215 | 215 | then throw("Wrong ingot's count") | |
216 | 216 | else if ((newMaxQ > maxq)) | |
217 | 217 | then [IntegerEntry("max_q", newMaxQ), StringEntry("max_owner", caller), IntegerEntry(("from_by_" + caller), newGiven)] | |
218 | 218 | else [IntegerEntry(("from_by_" + caller), newGiven)] | |
219 | 219 | } | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(i) | |
225 | 225 | func startNewEpoch () = { | |
226 | 226 | let epoch = match getInteger(this, "epoch") { | |
227 | 227 | case a: Int => | |
228 | 228 | a | |
229 | 229 | case _ => | |
230 | 230 | -1 | |
231 | 231 | } | |
232 | 232 | let maxOwner = match getString(this, "max_owner") { | |
233 | 233 | case a: String => | |
234 | 234 | a | |
235 | 235 | case _ => | |
236 | 236 | "" | |
237 | 237 | } | |
238 | 238 | if ((i.caller.bytes != DAPP)) | |
239 | 239 | then throw("Only Creator of the world can start new Epoch") | |
240 | 240 | else { | |
241 | 241 | let newEpoch = (epoch + 1) | |
242 | 242 | let nextEpochHeight = (lastBlock.height + BLOCKSTEP) | |
243 | 243 | if ((maxOwner == "")) | |
244 | 244 | then [IntegerEntry("epoch", newEpoch), IntegerEntry("epochHeight", nextEpochHeight)] | |
245 | 245 | else { | |
246 | 246 | let issueName = ("CROWN" + toString(epoch)) | |
247 | 247 | let issueDesc = (((("{\"king\":\"" + maxOwner) + "\",\"epoch\":") + toString(epoch)) + "}") | |
248 | 248 | let issue = Issue(issueName, issueDesc, 1, 0, false) | |
249 | 249 | let nft = calculateAssetId(issue) | |
250 | 250 | [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))] | |
251 | 251 | } | |
252 | 252 | } | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | @Verifier(tx) | |
257 | 257 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
258 | 258 |
github/deemru/w8io/026f985 39.97 ms ◑