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:AAIFAAAAAAAAABcIAhIAEgMKAQESAwoBARIAEgMKAQESAAAAAAkAAAAABWdMdW1wAQAAACD3MI5LvZDW9hdsE5mwaJiKnQDcPy9bxLj3SQ9cNYQcswAAAAAEREFQUAEAAAAaAVSlkD3nZtE3vLqHBGaI5z4AgfZlwVVaCBgAAAAACUJMT0NLU1RFUAAAAAAAAAAACgAAAAAJSU5HT1RDT1NUAAAAAAAAAAPoAAAAAAhQTE9UQ09TVAAAAAAAAAGGoAAAAAAJZ0x1bXBQbG90AAAAAAAAAAH0AAAAAAlFUE9DSFNURVAAAAAAAAABhqAAAAAACkJPT1NUUFJJQ0UAAAAAAAAAAAEBAAAACnJhbmRvbWl6ZXIAAAABAAAAA2ludgQAAAAIbGFzdFBsYXkEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwIAAAAIbGFzdE1pbmUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQBAAAADkdvbGRNaW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FAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V50T5Feg==", "height": 1645374, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2p8iSWw6g9qUXaWs5won1q6srj5o97didxKQcs8ZaN8M Next: FBDEY7KsbSg8GDqK4zzu35bYKV6mxNgx5E5U3xwMfVcQ Diff:
Old | New | Differences | |
---|---|---|---|
49 | 49 | let balance = assetBalance(this, gLump) | |
50 | 50 | let newWait = (lastBlock.height + BLOCKSTEP) | |
51 | 51 | let randhash = randomizer(i) | |
52 | - | let count = (toInt(randhash) % 1000) | |
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)) |
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 | - | let count = (toInt(randhash) % 1000) | |
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 | 180 | let assetId = match getString(this, ("ingot_" + toString(uid))) { | |
181 | 181 | case a: String => | |
182 | 182 | a | |
183 | 183 | case _ => | |
184 | 184 | "" | |
185 | 185 | } | |
186 | 186 | let given = match getInteger(this, ("from_by_" + caller)) { | |
187 | 187 | case a: Int => | |
188 | 188 | a | |
189 | 189 | case _ => | |
190 | 190 | 0 | |
191 | 191 | } | |
192 | 192 | let weight = match getInteger(this, ("weight_" + assetId)) { | |
193 | 193 | case a: Int => | |
194 | 194 | a | |
195 | 195 | case _ => | |
196 | 196 | 0 | |
197 | 197 | } | |
198 | 198 | let maxq = match getInteger(this, "max_q") { | |
199 | 199 | case a: Int => | |
200 | 200 | a | |
201 | 201 | case _ => | |
202 | 202 | 0 | |
203 | 203 | } | |
204 | 204 | let newGiven = (given + weight) | |
205 | 205 | let newMaxQ = newGiven | |
206 | 206 | if ((size(i.payments) == 0)) | |
207 | 207 | then throw("NFT Payment wasn't attached") | |
208 | 208 | else if ((assetId == "")) | |
209 | 209 | then throw(("Can't find INGOT" + toString(uid))) | |
210 | 210 | else { | |
211 | 211 | let payment = i.payments[0] | |
212 | 212 | if ((isDefined(payment.assetId) == false)) | |
213 | 213 | then throw("???") | |
214 | 214 | else if ((payment.assetId != fromBase58String(assetId))) | |
215 | 215 | then throw(("Wrong Ingot in Payment " + assetId)) | |
216 | 216 | else if ((payment.amount != 1)) | |
217 | 217 | then throw("Wrong ingot's count") | |
218 | 218 | else if ((newMaxQ > maxq)) | |
219 | 219 | then [IntegerEntry("max_q", newMaxQ), StringEntry("max_owner", caller), IntegerEntry(("from_by_" + caller), newGiven)] | |
220 | 220 | else [IntegerEntry(("from_by_" + caller), newGiven)] | |
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Callable(i) | |
227 | 227 | func startNewEpoch () = { | |
228 | 228 | let epoch = match getInteger(this, "epoch") { | |
229 | 229 | case a: Int => | |
230 | 230 | a | |
231 | 231 | case _ => | |
232 | 232 | -1 | |
233 | 233 | } | |
234 | 234 | let maxOwner = match getString(this, "max_owner") { | |
235 | 235 | case a: String => | |
236 | 236 | a | |
237 | 237 | case _ => | |
238 | 238 | "" | |
239 | 239 | } | |
240 | 240 | if ((i.caller.bytes != DAPP)) | |
241 | 241 | then throw("Only Creator of the world can start new Epoch") | |
242 | 242 | else { | |
243 | 243 | let newEpoch = (epoch + 1) | |
244 | 244 | let nextEpochHeight = (lastBlock.height + BLOCKSTEP) | |
245 | 245 | if ((maxOwner == "")) | |
246 | 246 | then [IntegerEntry("epoch", newEpoch), IntegerEntry("epochHeight", nextEpochHeight)] | |
247 | 247 | else { | |
248 | 248 | let issueName = ("CROWN" + toString(epoch)) | |
249 | 249 | let issueDesc = (((("{\"king\":\"" + maxOwner) + "\",\"epoch\":") + toString(epoch)) + "}") | |
250 | 250 | let issue = Issue(issueName, issueDesc, 1, 0, false) | |
251 | 251 | let nft = calculateAssetId(issue) | |
252 | 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))] | |
253 | 253 | } | |
254 | 254 | } | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Verifier(tx) | |
259 | 259 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
260 | 260 |
github/deemru/w8io/169f3d6 39.57 ms ◑