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