tx · Hu1kHDzMkgYXcnDiNF9zMhAxkMRCANAVZzC3kbNbqMHT 3N1ZfechNGoBTZyzvCAxGXPKchL4C6438dr: -0.03300000 Waves 2024.12.02 17:46 [3397172] smart account 3N1ZfechNGoBTZyzvCAxGXPKchL4C6438dr > SELF 0.00000000 Waves
{ "type": 13, "id": "Hu1kHDzMkgYXcnDiNF9zMhAxkMRCANAVZzC3kbNbqMHT", "fee": 3300000, "feeAssetId": null, "timestamp": 1733150809591, "version": 2, "chainId": 84, "sender": "3N1ZfechNGoBTZyzvCAxGXPKchL4C6438dr", "senderPublicKey": "9JhgPDL4uV7b9tRjpNxGkGVDsbQ2qkEWfjt64wysYmKQ", "proofs": [ "4kdBMeHmNKYThabcZCkExDk6ZGaoCG9UariykxpZbVkHYbMWUbu5JLYMCwJK8Z6SGKvdYR1pSf7noBgszjtbh5bB" ], "script": "base64:BgJbCAISABIDCgEIEgMKAQgSBAoCCAESAwoBCBIECgIBCBIECgIBCBIDCgEIEgMKAQgSBAoCCAgSABIAEgASABIECgIICBIFCgMICAESAwoBARIKCggBCAEECAEBAVABF3N0YXRpY0tleV9vcmFjbGVBZGRyZXNzAAIUc3RhdGljX29yYWNsZUFkZHJlc3MBGHN0YXRpY0tleV9icmVlZGVyQWRkcmVzcwACFXN0YXRpY19icmVlZGVyQWRkcmVzcwEUc3RhdGljS2V5X2VnZ0Fzc2V0SWQAAhFzdGF0aWNfZWdnQXNzZXRJZAEVc3RhdGljS2V5X3BldGVBc3NldElkAAISc3RhdGljX3BldGVBc3NldElkARpzdGF0aWNLZXlfdHJ1c3RlZENvbnRyYWN0cwACF3N0YXRpY190cnVzdGVkQ29udHJhY3RzARhzdGF0aWNLZXlfcmViaXJ0aEFkZHJlc3MAAhVzdGF0aWNfcmViaXJ0aEFkZHJlc3MBHnN0YXRpY0tleV90dXJ0bGVSZWJpcnRoQWRkcmVzcwACG3N0YXRpY190dXJ0bGVSZWJpcnRoQWRkcmVzcwEWc3RhdGljS2V5X3BpcG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uRPmCtNNByWrsDB5tVFMNX8e8jNzpFZmThe9x8rQE Next: none Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | ||
9 | 9 | ||
10 | 10 | func staticKey_eggAssetId () = "static_eggAssetId" | |
11 | + | ||
12 | + | ||
13 | + | func staticKey_peteAssetId () = "static_peteAssetId" | |
11 | 14 | ||
12 | 15 | ||
13 | 16 | func staticKey_trustedContracts () = "static_trustedContracts" | |
96 | 99 | ||
97 | 100 | let allArtefact = ["ART-LAKE", "ART-HOUSE", "ART-BIGHOUSE", "ART-FIXGENE", "ART-FREEGENE", "ART-MIRROR", "ART-POMP", "ART-CAPE", "ART-HAT", "ART-CUSTOMDUCK", "ART-XMISTL", "ART-XHAT", "ART-XSCARF", "ART-XSWEATER", "ART-XSOCK", "ART-XTREE"] | |
98 | 101 | ||
99 | - | let snow_boosters = ["ART-TINSEL", "ART-FEED10", "ART-GNGR_BREAD", "ART-SNOWBALL", "ART-GIFT_DOUBL"] | |
102 | + | let snow_boosters = ["ART-TINSEL", "ART-FEED5", "ART-FEED10", "ART-FEED15", "ART-GNGR_BREAD", "ART-SNOWBALL", "ART-GIFT_DOUBL", "ART-FELCPN", "ART-CANCPN", "ART-GFTR", "ART-GFTW"] | |
100 | 103 | ||
101 | 104 | let hween_boosters = ["ART-HWRESCUE", "ART-HWERASE", "ART-FEED10", "ART-FEED15", "ART-FEED20", "ART-FEED25", "ART-GIFT_DOUBL"] | |
102 | 105 | ||
158 | 161 | ||
159 | 162 | ||
160 | 163 | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
164 | + | ||
165 | + | ||
166 | + | func getPeteAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_peteAssetId())) | |
161 | 167 | ||
162 | 168 | ||
163 | 169 | func getTrustedContracts () = tryGetStringExternal(getOracle(), staticKey_trustedContracts()) | |
258 | 264 | func itemMerger (baseItem,amountBaseItem,endItem,payments,feeAmount,feeAssetId,recipient,instantFinish,txId,secondaryItem,amountSecondaryItem,ducklingsPercent,genValue) = if (((amountBaseItem + amountSecondaryItem) > size(payments))) | |
259 | 265 | then throw("IID: Please attach more payments!") | |
260 | 266 | else { | |
261 | - | func isBaseItem (accumulated,pay) = if (if ((pay.assetId == unit)) | |
267 | + | func isBaseItem (accumulated,pay) = if (if (if ((pay.assetId == unit)) | |
262 | 268 | then true | |
263 | 269 | else (pay.assetId == getEggAssetId())) | |
270 | + | then true | |
271 | + | else (pay.assetId == getPeteAssetId())) | |
264 | 272 | then $Tuple5(accumulated._1, accumulated._2, accumulated._3, accumulated._4, accumulated._5) | |
265 | 273 | else { | |
266 | 274 | let assetId = value(pay.assetId) | |
325 | 333 | else { | |
326 | 334 | let validate = if ((feeAmount != 0)) | |
327 | 335 | then { | |
328 | - | let feePayment = payments[amountBaseItem] | |
336 | + | let feePayment = payments[(amountBaseItem + amountSecondaryItem)] | |
329 | 337 | if ((feePayment.assetId != feeAssetId)) | |
330 | 338 | then throw("IID: You miss a payment with the fee!") | |
331 | 339 | else if ((feePayment.amount != feeAmount)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func staticKey_oracleAddress () = "static_oracleAddress" | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func staticKey_breederAddress () = "static_breederAddress" | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func staticKey_eggAssetId () = "static_eggAssetId" | |
11 | + | ||
12 | + | ||
13 | + | func staticKey_peteAssetId () = "static_peteAssetId" | |
11 | 14 | ||
12 | 15 | ||
13 | 16 | func staticKey_trustedContracts () = "static_trustedContracts" | |
14 | 17 | ||
15 | 18 | ||
16 | 19 | func staticKey_rebirthAddress () = "static_rebirthAddress" | |
17 | 20 | ||
18 | 21 | ||
19 | 22 | func staticKey_turtleRebirthAddress () = "static_turtleRebirthAddress" | |
20 | 23 | ||
21 | 24 | ||
22 | 25 | func staticKey_pipelineUser () = "static_pipelineUser" | |
23 | 26 | ||
24 | 27 | ||
25 | 28 | func staticKey_extraFee () = "static_extraFee" | |
26 | 29 | ||
27 | 30 | ||
28 | 31 | func staticKey_feeAggregator () = "static_feeAggregator" | |
29 | 32 | ||
30 | 33 | ||
31 | 34 | func staticKey_huntDistroAddress () = "static_huntDistroAddress" | |
32 | 35 | ||
33 | 36 | ||
34 | 37 | func staticKey_warsPKey () = "static_warsPKey" | |
35 | 38 | ||
36 | 39 | ||
37 | 40 | func staticKey_duplicatorFee () = "static_duplicatorFee" | |
38 | 41 | ||
39 | 42 | ||
40 | 43 | func staticKey_canineRebirthAddress () = "static_canineRebirthAddress" | |
41 | 44 | ||
42 | 45 | ||
43 | 46 | func staticKey_felineRebirthAddress () = "static_felineRebirthAddress" | |
44 | 47 | ||
45 | 48 | ||
46 | 49 | func staticKey_babyDuckAddress () = "static_babyDuckAddress" | |
47 | 50 | ||
48 | 51 | ||
49 | 52 | func staticKey_burnAddress () = "static_burnAddress" | |
50 | 53 | ||
51 | 54 | ||
52 | 55 | func key_artefactOwner (artefactName,owner) = (((artefactName + "_") + owner) + "_owner") | |
53 | 56 | ||
54 | 57 | ||
55 | 58 | func key_unstakeHeight (artefactName,artefactId) = (((artefactName + "_") + artefactId) + "_unstake_height") | |
56 | 59 | ||
57 | 60 | ||
58 | 61 | func key_externalBoostDuck (duckId) = (duckId + "_duck_external_boost") | |
59 | 62 | ||
60 | 63 | ||
61 | 64 | func key_externalBoostAddress (address) = (address + "_user_external_boost") | |
62 | 65 | ||
63 | 66 | ||
64 | 67 | func key_priceCosmetic (item) = ("direct_cosmetic_" + item) | |
65 | 68 | ||
66 | 69 | ||
67 | 70 | func key_maxSalesCosmetic (item) = (("direct_cosmetic_" + item) + "_max_sales") | |
68 | 71 | ||
69 | 72 | ||
70 | 73 | func key_saleCosmetic (item) = (("direct_cosmetic_" + item) + "_sale") | |
71 | 74 | ||
72 | 75 | ||
73 | 76 | func key_priceAssetCosmetic (item) = (("direct_cosmetic_" + item) + "_priceAsset") | |
74 | 77 | ||
75 | 78 | ||
76 | 79 | func key_growPercentageCosmetic (item) = (("direct_cosmetic_" + item) + "_growing_percentage") | |
77 | 80 | ||
78 | 81 | ||
79 | 82 | func key_soldCosmetic (item) = (("direct_cosmetic_" + item) + "_sold") | |
80 | 83 | ||
81 | 84 | ||
82 | 85 | func key_lastPriceCosmetic (item) = (("direct_cosmetic_" + item) + "_last_price") | |
83 | 86 | ||
84 | 87 | ||
85 | 88 | func key_startTsCosmetic (item) = (("direct_cosmetic_" + item) + "_startTs") | |
86 | 89 | ||
87 | 90 | ||
88 | 91 | func key_endTsCosmetic (item) = (("direct_cosmetic_" + item) + "_endTs") | |
89 | 92 | ||
90 | 93 | ||
91 | 94 | func key_processFinishHeight (address,txId) = (((address + "_") + toBase58String(txId)) + "_fh") | |
92 | 95 | ||
93 | 96 | ||
94 | 97 | func staticKey_couponsAddress () = "static_couponsAddress" | |
95 | 98 | ||
96 | 99 | ||
97 | 100 | let allArtefact = ["ART-LAKE", "ART-HOUSE", "ART-BIGHOUSE", "ART-FIXGENE", "ART-FREEGENE", "ART-MIRROR", "ART-POMP", "ART-CAPE", "ART-HAT", "ART-CUSTOMDUCK", "ART-XMISTL", "ART-XHAT", "ART-XSCARF", "ART-XSWEATER", "ART-XSOCK", "ART-XTREE"] | |
98 | 101 | ||
99 | - | let snow_boosters = ["ART-TINSEL", "ART-FEED10", "ART-GNGR_BREAD", "ART-SNOWBALL", "ART-GIFT_DOUBL"] | |
102 | + | let snow_boosters = ["ART-TINSEL", "ART-FEED5", "ART-FEED10", "ART-FEED15", "ART-GNGR_BREAD", "ART-SNOWBALL", "ART-GIFT_DOUBL", "ART-FELCPN", "ART-CANCPN", "ART-GFTR", "ART-GFTW"] | |
100 | 103 | ||
101 | 104 | let hween_boosters = ["ART-HWRESCUE", "ART-HWERASE", "ART-FEED10", "ART-FEED15", "ART-FEED20", "ART-FEED25", "ART-GIFT_DOUBL"] | |
102 | 105 | ||
103 | 106 | let shake_artefact = ["ART-SNW_GLBES", "ART-SKELETON"] | |
104 | 107 | ||
105 | 108 | let Generations = ["G", "H", "I", "K", "L", "M", "N", "O"] | |
106 | 109 | ||
107 | 110 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
108 | 111 | case b: Boolean => | |
109 | 112 | b | |
110 | 113 | case _ => | |
111 | 114 | false | |
112 | 115 | } | |
113 | 116 | ||
114 | 117 | ||
115 | 118 | func tryGetString (key) = match getString(this, key) { | |
116 | 119 | case a: String => | |
117 | 120 | a | |
118 | 121 | case _ => | |
119 | 122 | "" | |
120 | 123 | } | |
121 | 124 | ||
122 | 125 | ||
123 | 126 | func tryGetInteger (key) = match getInteger(this, key) { | |
124 | 127 | case a: Int => | |
125 | 128 | a | |
126 | 129 | case _ => | |
127 | 130 | 0 | |
128 | 131 | } | |
129 | 132 | ||
130 | 133 | ||
131 | 134 | func tryGetIntegerExternal (address,key) = match getInteger(address, key) { | |
132 | 135 | case b: Int => | |
133 | 136 | b | |
134 | 137 | case _ => | |
135 | 138 | 0 | |
136 | 139 | } | |
137 | 140 | ||
138 | 141 | ||
139 | 142 | func getRandomNumber (variants,txId,finishHeight,offset) = { | |
140 | 143 | let randomSeedBlock = value(blockInfoByHeight((finishHeight - 1))) | |
141 | 144 | let randomHash = sha256(((base58'items' + txId) + value(randomSeedBlock.vrf))) | |
142 | 145 | (toInt(randomHash, offset) % variants) | |
143 | 146 | } | |
144 | 147 | ||
145 | 148 | ||
146 | 149 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
147 | 150 | case a: String => | |
148 | 151 | a | |
149 | 152 | case _ => | |
150 | 153 | "" | |
151 | 154 | } | |
152 | 155 | ||
153 | 156 | ||
154 | 157 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
155 | 158 | ||
156 | 159 | ||
157 | 160 | func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_breederAddress()))) | |
158 | 161 | ||
159 | 162 | ||
160 | 163 | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
164 | + | ||
165 | + | ||
166 | + | func getPeteAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_peteAssetId())) | |
161 | 167 | ||
162 | 168 | ||
163 | 169 | func getTrustedContracts () = tryGetStringExternal(getOracle(), staticKey_trustedContracts()) | |
164 | 170 | ||
165 | 171 | ||
166 | 172 | func getRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_rebirthAddress()))) | |
167 | 173 | ||
168 | 174 | ||
169 | 175 | func getTurtleRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleRebirthAddress()))) | |
170 | 176 | ||
171 | 177 | ||
172 | 178 | func getCanineRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_canineRebirthAddress()))) | |
173 | 179 | ||
174 | 180 | ||
175 | 181 | func getFelineeRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_felineRebirthAddress()))) | |
176 | 182 | ||
177 | 183 | ||
178 | 184 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
179 | 185 | ||
180 | 186 | ||
181 | 187 | func getHuntDistroAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_huntDistroAddress()))) | |
182 | 188 | ||
183 | 189 | ||
184 | 190 | func getWarsPKey () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_warsPKey())) | |
185 | 191 | ||
186 | 192 | ||
187 | 193 | func getDuplicatorFee () = tryGetIntegerExternal(getOracle(), staticKey_duplicatorFee()) | |
188 | 194 | ||
189 | 195 | ||
190 | 196 | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
191 | 197 | ||
192 | 198 | ||
193 | 199 | func getBabyduckAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_babyDuckAddress()))) | |
194 | 200 | ||
195 | 201 | ||
196 | 202 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
197 | 203 | ||
198 | 204 | ||
199 | 205 | func tryGetCosmeticItemPrice (item) = { | |
200 | 206 | let key = key_priceCosmetic(item) | |
201 | 207 | match getInteger(this, key) { | |
202 | 208 | case a: Int => | |
203 | 209 | a | |
204 | 210 | case _ => | |
205 | 211 | throw((("ITGCIP: " + item) + " is not available in the store!")) | |
206 | 212 | } | |
207 | 213 | } | |
208 | 214 | ||
209 | 215 | ||
210 | 216 | func asString (value) = match value { | |
211 | 217 | case string: String => | |
212 | 218 | string | |
213 | 219 | case _ => | |
214 | 220 | throw("wrong type, expected: String") | |
215 | 221 | } | |
216 | 222 | ||
217 | 223 | ||
218 | 224 | func asInt (value) = match value { | |
219 | 225 | case int: Int => | |
220 | 226 | int | |
221 | 227 | case _ => | |
222 | 228 | throw("wrong type, expected: Int") | |
223 | 229 | } | |
224 | 230 | ||
225 | 231 | ||
226 | 232 | func manipulateName (assetName,position,char) = ((take(assetName, (position - 1)) + char) + takeRight(assetName, (16 - position))) | |
227 | 233 | ||
228 | 234 | ||
229 | 235 | func itemIsInCoolDown (artefactName,artefactId) = { | |
230 | 236 | let unstakeHeightLast = tryGetInteger(key_unstakeHeight(artefactName, artefactId)) | |
231 | 237 | let cooldownPeriod = 240 | |
232 | 238 | if ((height > (unstakeHeightLast + cooldownPeriod))) | |
233 | 239 | then false | |
234 | 240 | else true | |
235 | 241 | } | |
236 | 242 | ||
237 | 243 | ||
238 | 244 | func isTestEnv () = tryGetBoolean("TESTENV") | |
239 | 245 | ||
240 | 246 | ||
241 | 247 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
242 | 248 | then throw("WCAP: Please attach waves") | |
243 | 249 | else { | |
244 | 250 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
245 | 251 | if ((payment.amount != feeAmount)) | |
246 | 252 | then throw((("WCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
247 | 253 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
248 | 254 | } | |
249 | 255 | ||
250 | 256 | ||
251 | 257 | func issueItem (type,nonce,address) = { | |
252 | 258 | let artefact = Issue(type, "NFT artefact of Waves Ducks game.", 1, 0, false, unit, nonce) | |
253 | 259 | let artefactId = calculateAssetId(artefact) | |
254 | 260 | $Tuple2([artefact, StringEntry((("artefact_" + toBase58String(artefactId)) + "_type"), type), ScriptTransfer(address, 1, artefactId)], toBase58String(artefactId)) | |
255 | 261 | } | |
256 | 262 | ||
257 | 263 | ||
258 | 264 | func itemMerger (baseItem,amountBaseItem,endItem,payments,feeAmount,feeAssetId,recipient,instantFinish,txId,secondaryItem,amountSecondaryItem,ducklingsPercent,genValue) = if (((amountBaseItem + amountSecondaryItem) > size(payments))) | |
259 | 265 | then throw("IID: Please attach more payments!") | |
260 | 266 | else { | |
261 | - | func isBaseItem (accumulated,pay) = if (if ((pay.assetId == unit)) | |
267 | + | func isBaseItem (accumulated,pay) = if (if (if ((pay.assetId == unit)) | |
262 | 268 | then true | |
263 | 269 | else (pay.assetId == getEggAssetId())) | |
270 | + | then true | |
271 | + | else (pay.assetId == getPeteAssetId())) | |
264 | 272 | then $Tuple5(accumulated._1, accumulated._2, accumulated._3, accumulated._4, accumulated._5) | |
265 | 273 | else { | |
266 | 274 | let assetId = value(pay.assetId) | |
267 | 275 | if ((value(assetInfo(value(assetId))).issuer == getBreederAddress())) | |
268 | 276 | then { | |
269 | 277 | let splitted = split(value(assetInfo(value(assetId))).name, "") | |
270 | 278 | let gen = splitted[14] | |
271 | 279 | let genNr = value(indexOf(Generations, gen)) | |
272 | 280 | $Tuple5(accumulated._1, accumulated._2, accumulated._3, accumulated._4, (accumulated._5 + genNr)) | |
273 | 281 | } | |
274 | 282 | else if ((value(assetInfo(value(assetId))).issuer == getBabyduckAddress())) | |
275 | 283 | then { | |
276 | 284 | let startPercentage = tryGetIntegerExternal(getBabyduckAddress(), (("duckling_" + toBase58String(assetId)) + "_startPercentage")) | |
277 | 285 | let limit = if ((10 > startPercentage)) | |
278 | 286 | then 10 | |
279 | 287 | else startPercentage | |
280 | 288 | let burnCall = invoke(getBurnAddress(), "burnDuckling", [toString(recipient)], [AttachedPayment(assetId, 1)]) | |
281 | 289 | if ((burnCall == burnCall)) | |
282 | 290 | then $Tuple5(accumulated._1, accumulated._2, accumulated._3, (accumulated._4 + limit), accumulated._5) | |
283 | 291 | else throw("Strict value is not equal to itself.") | |
284 | 292 | } | |
285 | 293 | else { | |
286 | 294 | let artefact = asString(invoke(this, "checkArtefactDetails", [toBase58String(assetId)], nil)) | |
287 | 295 | if ((artefact == artefact)) | |
288 | 296 | then if ((artefact == baseItem)) | |
289 | 297 | then $Tuple5((accumulated._1 ++ [Burn(assetId, 1)]), (accumulated._2 + 1), accumulated._3, accumulated._4, accumulated._5) | |
290 | 298 | else if ((artefact == secondaryItem)) | |
291 | 299 | then $Tuple5((accumulated._1 ++ [Burn(assetId, 1)]), accumulated._2, (accumulated._3 + 1), accumulated._4, accumulated._5) | |
292 | 300 | else $Tuple5(accumulated._1, accumulated._2, accumulated._3, accumulated._4, accumulated._5) | |
293 | 301 | else throw("Strict value is not equal to itself.") | |
294 | 302 | } | |
295 | 303 | } | |
296 | 304 | ||
297 | 305 | let totalBaseItem = { | |
298 | 306 | let $l = payments | |
299 | 307 | let $s = size($l) | |
300 | 308 | let $acc0 = $Tuple5(nil, 0, 0, 0, 0) | |
301 | 309 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
302 | 310 | then $a | |
303 | 311 | else isBaseItem($a, $l[$i]) | |
304 | 312 | ||
305 | 313 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
306 | 314 | then $a | |
307 | 315 | else throw("List size exceeds 10") | |
308 | 316 | ||
309 | 317 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
310 | 318 | } | |
311 | 319 | if ((totalBaseItem._2 != amountBaseItem)) | |
312 | 320 | then throw(((("IID: Please attach " + toString(amountBaseItem)) + " artefacts of primary type ") + baseItem)) | |
313 | 321 | else if (if ((secondaryItem != "")) | |
314 | 322 | then (totalBaseItem._3 != amountSecondaryItem) | |
315 | 323 | else false) | |
316 | 324 | then throw(((("IID: Please attach " + toString(amountSecondaryItem)) + " artefacts of secondary type ") + secondaryItem)) | |
317 | 325 | else if (if ((ducklingsPercent != 0)) | |
318 | 326 | then (totalBaseItem._4 != ducklingsPercent) | |
319 | 327 | else false) | |
320 | 328 | then throw(((("IID: Please attach " + toString(ducklingsPercent)) + " growth, you added ") + toString(totalBaseItem._4))) | |
321 | 329 | else if (if ((genValue != 0)) | |
322 | 330 | then (totalBaseItem._5 != genValue) | |
323 | 331 | else false) | |
324 | 332 | then throw(((("IID: Please attach " + toString(genValue)) + " gen value, you added ") + toString(totalBaseItem._5))) | |
325 | 333 | else { | |
326 | 334 | let validate = if ((feeAmount != 0)) | |
327 | 335 | then { | |
328 | - | let feePayment = payments[amountBaseItem] | |
336 | + | let feePayment = payments[(amountBaseItem + amountSecondaryItem)] | |
329 | 337 | if ((feePayment.assetId != feeAssetId)) | |
330 | 338 | then throw("IID: You miss a payment with the fee!") | |
331 | 339 | else if ((feePayment.amount != feeAmount)) | |
332 | 340 | then throw("IID: You did not attach the correct fee amount!") | |
333 | 341 | else [ScriptTransfer(getFeeAggregator(), feeAmount, feePayment.assetId)] | |
334 | 342 | } | |
335 | 343 | else nil | |
336 | 344 | if ((validate == validate)) | |
337 | 345 | then { | |
338 | 346 | let artefact = Issue(endItem, ("NFT artefact of Waves Ducks game: " + endItem), 1, 0, false, unit, 0) | |
339 | 347 | let artefactId = calculateAssetId(artefact) | |
340 | 348 | let instant = if (instantFinish) | |
341 | 349 | then issueItem(endItem, 0, recipient) | |
342 | 350 | else $Tuple2(nil, "") | |
343 | 351 | $Tuple2(((([BooleanEntry((("merge_" + txId) + "_instant"), instantFinish), StringEntry((("merge_" + txId) + "_reward"), endItem), BooleanEntry((("merge_" + txId) + "_finished"), instantFinish)] ++ instant._1) ++ totalBaseItem._1) ++ validate), instant._2) | |
344 | 352 | } | |
345 | 353 | else throw("Strict value is not equal to itself.") | |
346 | 354 | } | |
347 | 355 | } | |
348 | 356 | ||
349 | 357 | ||
350 | 358 | func getBaseItem (baseItem) = getStringValue((("merge_" + baseItem) + "_baseItem")) | |
351 | 359 | ||
352 | 360 | ||
353 | 361 | func getAmountBaseItem (baseItem) = getIntegerValue((("merge_" + baseItem) + "_amount")) | |
354 | 362 | ||
355 | 363 | ||
356 | 364 | func getSecondaryItem (baseItem) = tryGetString((("merge_" + baseItem) + "_secondaryItem")) | |
357 | 365 | ||
358 | 366 | ||
359 | 367 | func getAmountSecondaryItem (baseItem) = tryGetInteger((("merge_" + baseItem) + "_secondaryItemAmount")) | |
360 | 368 | ||
361 | 369 | ||
362 | 370 | func getGenValue (baseItem) = tryGetInteger((("merge_" + baseItem) + "_genValue")) | |
363 | 371 | ||
364 | 372 | ||
365 | 373 | func getDucklingsPercent (baseItem) = tryGetInteger((("merge_" + baseItem) + "_ducklingsPercent")) | |
366 | 374 | ||
367 | 375 | ||
368 | 376 | func getEndItem (baseItem) = getStringValue((("merge_" + baseItem) + "_endItem")) | |
369 | 377 | ||
370 | 378 | ||
371 | 379 | func getPrice (baseItem) = getIntegerValue((("merge_" + baseItem) + "_price")) | |
372 | 380 | ||
373 | 381 | ||
374 | 382 | func getInstant (baseItem) = getBooleanValue((("merge_" + baseItem) + "_instant")) | |
375 | 383 | ||
376 | 384 | ||
377 | 385 | func getAsset (baseItem) = { | |
378 | 386 | let asset = getStringValue((("merge_" + baseItem) + "_asset")) | |
379 | 387 | if ((asset == "WAVES")) | |
380 | 388 | then unit | |
381 | 389 | else fromBase58String(asset) | |
382 | 390 | } | |
383 | 391 | ||
384 | 392 | ||
385 | 393 | func userExperience (user) = (user + "_experience") | |
386 | 394 | ||
387 | 395 | ||
388 | 396 | func finishShakeItBabyInternal (initTx,address,payment) = { | |
389 | 397 | let type = getStringValue((((("address_" + address) + "_initTx_") + initTx) + "_type")) | |
390 | 398 | let expStep = if ((type == "ART-SNW_GLBES")) | |
391 | 399 | then 100 | |
392 | 400 | else if ((type == "ART-SKELETON")) | |
393 | 401 | then 200 | |
394 | 402 | else throw("FSI: Invalid type") | |
395 | 403 | let steps = if ((type == "ART-SNW_GLBES")) | |
396 | 404 | then [1, 2, 3, 4, 5, 6] | |
397 | 405 | else if ((type == "ART-SKELETON")) | |
398 | 406 | then [1, 2, 3, 4, 5, 6, 7] | |
399 | 407 | else throw("FSI: Invalid type") | |
400 | 408 | let maxStep = size(steps) | |
401 | 409 | let rewards = if ((type == "ART-SNW_GLBES")) | |
402 | 410 | then snow_boosters | |
403 | 411 | else if ((type == "ART-SKELETON")) | |
404 | 412 | then hween_boosters | |
405 | 413 | else throw("FSI: Invalid type") | |
406 | 414 | let expUser = tryGetIntegerExternal(getCouponsAddress(), userExperience(address)) | |
407 | 415 | let multiplier = min([((expUser / expStep) + 1), maxStep]) | |
408 | 416 | let finish = getIntegerValue((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock")) | |
409 | 417 | if ((finish > height)) | |
410 | 418 | then throw("Please wait till the shaking is finished!") | |
411 | 419 | else if ((tryGetString((((("address_" + address) + "_initTx_") + initTx) + "_status")) != "open")) | |
412 | 420 | then throw("FSI: Only open status can be finished!") | |
413 | 421 | else { | |
414 | 422 | func handleMint (acc,index) = if ((multiplier >= index)) | |
415 | 423 | then { | |
416 | 424 | let randomPosition = getRandomNumber(size(rewards), fromBase58String(initTx), finish, index) | |
417 | 425 | let win = rewards[randomPosition] | |
418 | 426 | ((acc ++ issueItem(win, (index - 1), addressFromStringValue(address))._1) ++ [StringEntry(((((("address_" + address) + "_initTx_") + initTx) + "_win") + toString((index - 1))), win)]) | |
419 | 427 | } | |
420 | 428 | else acc | |
421 | 429 | ||
422 | 430 | ({ | |
423 | 431 | let $l = steps | |
424 | 432 | let $s = size($l) | |
425 | 433 | let $acc0 = nil | |
426 | 434 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
427 | 435 | then $a | |
428 | 436 | else handleMint($a, $l[$i]) | |
429 | 437 | ||
430 | 438 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
431 | 439 | then $a | |
432 | 440 | else throw("List size exceeds 7") | |
433 | 441 | ||
434 | 442 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7) | |
435 | 443 | } ++ [StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "finish")]) | |
436 | 444 | } | |
437 | 445 | } | |
438 | 446 | ||
439 | 447 | ||
440 | 448 | @Callable(i) | |
441 | 449 | func startShakeItBaby () = { | |
442 | 450 | let itemPayment = value(i.payments[0]) | |
443 | 451 | let validPayment = checkAdditionalPayment(i.payments[1]) | |
444 | 452 | let itemAssetId = toBase58String(value(itemPayment.assetId)) | |
445 | 453 | if ((itemPayment.amount != 1)) | |
446 | 454 | then throw("IID: Item NFT is not attached") | |
447 | 455 | else { | |
448 | 456 | let globeArtefact = asString(invoke(this, "checkArtefactDetails", [itemAssetId], nil)) | |
449 | 457 | if ((globeArtefact == globeArtefact)) | |
450 | 458 | then if ((indexOf(shake_artefact, globeArtefact) == unit)) | |
451 | 459 | then throw("IID: You need to attach a valid artefact") | |
452 | 460 | else { | |
453 | 461 | let address = toString(i.caller) | |
454 | 462 | let initTx = toBase58String(i.transactionId) | |
455 | 463 | [Burn(value(itemPayment.assetId), 1), IntegerEntry((((("address_" + address) + "_initTx_") + initTx) + "_finishBlock"), (height + 2)), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_status"), "open"), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_assetId"), itemAssetId), StringEntry((((("address_" + address) + "_initTx_") + initTx) + "_type"), globeArtefact)] | |
456 | 464 | } | |
457 | 465 | else throw("Strict value is not equal to itself.") | |
458 | 466 | } | |
459 | 467 | } | |
460 | 468 | ||
461 | 469 | ||
462 | 470 | ||
463 | 471 | @Callable(i) | |
464 | 472 | func finishShakeItBaby (initTx) = finishShakeItBabyInternal(initTx, toString(i.caller), i.payments[0]) | |
465 | 473 | ||
466 | 474 | ||
467 | 475 | ||
468 | 476 | @Callable(i) | |
469 | 477 | func instanMergeItem (receiptName) = if ((tryGetString((("merge_" + receiptName) + "_endItem")) == "")) | |
470 | 478 | then throw("IID: Only certain items can be merged!") | |
471 | 479 | else { | |
472 | 480 | let params = $Tuple10(getAmountBaseItem(receiptName), getEndItem(receiptName), getPrice(receiptName), getAsset(receiptName), getInstant(receiptName), getSecondaryItem(receiptName), getAmountSecondaryItem(receiptName), getDucklingsPercent(receiptName), getBaseItem(receiptName), getGenValue(receiptName)) | |
473 | 481 | let grantExp = invoke(getCouponsAddress(), "increaseExp", [toString(i.caller)], nil) | |
474 | 482 | if ((grantExp == grantExp)) | |
475 | 483 | then itemMerger(params._9, params._1, params._2, i.payments, params._3, params._4, i.caller, params._5, toBase58String(i.transactionId), params._6, params._7, params._8, params._10) | |
476 | 484 | else throw("Strict value is not equal to itself.") | |
477 | 485 | } | |
478 | 486 | ||
479 | 487 | ||
480 | 488 | ||
481 | 489 | @Callable(i) | |
482 | 490 | func directBuyItemMultiple (itemName,itemAmount) = { | |
483 | 491 | let array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] | |
484 | 492 | let basePrice = tryGetCosmeticItemPrice(itemName) | |
485 | 493 | let grow = tryGetInteger(key_growPercentageCosmetic(itemName)) | |
486 | 494 | let startTs = tryGetInteger(key_startTsCosmetic(itemName)) | |
487 | 495 | let endTs = tryGetInteger(key_endTsCosmetic(itemName)) | |
488 | 496 | if (if ((startTs != 0)) | |
489 | 497 | then (startTs > lastBlock.timestamp) | |
490 | 498 | else false) | |
491 | 499 | then throw("IDBI: The sale did not start yet!") | |
492 | 500 | else if (if ((endTs != 0)) | |
493 | 501 | then (lastBlock.timestamp > endTs) | |
494 | 502 | else false) | |
495 | 503 | then throw("IDBI: The sale has already finished!") | |
496 | 504 | else if (!(tryGetBoolean(key_saleCosmetic(itemName)))) | |
497 | 505 | then throw(("IDBI: Item not for sale anymore" + key_saleCosmetic(itemName))) | |
498 | 506 | else { | |
499 | 507 | let maxSalesValue = tryGetInteger(key_maxSalesCosmetic(itemName)) | |
500 | 508 | let soldValue = tryGetInteger(key_soldCosmetic(itemName)) | |
501 | 509 | if ((itemAmount > size(array))) | |
502 | 510 | then throw(("IDBI: Max amount to issue is " + toString(size(array)))) | |
503 | 511 | else { | |
504 | 512 | let price = if ((grow == 0)) | |
505 | 513 | then (basePrice * itemAmount) | |
506 | 514 | else throw("IDBI: Items that grow in price can not be bought in batch!") | |
507 | 515 | if (if ((maxSalesValue != 0)) | |
508 | 516 | then (soldValue >= maxSalesValue) | |
509 | 517 | else false) | |
510 | 518 | then throw("IDBI: Max editions sold!") | |
511 | 519 | else { | |
512 | 520 | let assetId = if ((tryGetString(key_priceAssetCosmetic(itemName)) == "")) | |
513 | 521 | then getEggAssetId() | |
514 | 522 | else if ((tryGetString(key_priceAssetCosmetic(itemName)) == "WAVES")) | |
515 | 523 | then unit | |
516 | 524 | else fromBase58String(tryGetString(key_priceAssetCosmetic(itemName))) | |
517 | 525 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
518 | 526 | let firstPayment = value(i.payments[1]) | |
519 | 527 | let amount = firstPayment.amount | |
520 | 528 | if ((firstPayment.assetId != assetId)) | |
521 | 529 | then throw("IDBI: You can attach only tokens with the correct payment ") | |
522 | 530 | else if ((amount != price)) | |
523 | 531 | then throw(("IDBI: Please attach the exact asset amount" + toString(price))) | |
524 | 532 | else { | |
525 | 533 | let txIdStr = toBase58String(i.transactionId) | |
526 | 534 | let address = i.originCaller | |
527 | 535 | func handleMint (acc,index) = if ((itemAmount > index)) | |
528 | 536 | then (acc ++ issueItem(itemName, index, address)._1) | |
529 | 537 | else acc | |
530 | 538 | ||
531 | 539 | let issues = { | |
532 | 540 | let $l = array | |
533 | 541 | let $s = size($l) | |
534 | 542 | let $acc0 = nil | |
535 | 543 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
536 | 544 | then $a | |
537 | 545 | else handleMint($a, $l[$i]) | |
538 | 546 | ||
539 | 547 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
540 | 548 | then $a | |
541 | 549 | else throw("List size exceeds 30") | |
542 | 550 | ||
543 | 551 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
544 | 552 | } | |
545 | 553 | (([IntegerEntry(key_lastPriceCosmetic(itemName), basePrice), IntegerEntry(key_soldCosmetic(itemName), (soldValue + itemAmount)), ScriptTransfer(getFeeAggregator(), amount, assetId)] ++ validPayment) ++ issues) | |
546 | 554 | } | |
547 | 555 | } | |
548 | 556 | } | |
549 | 557 | } | |
550 | 558 | } | |
551 | 559 | ||
552 | 560 | ||
553 | 561 | ||
554 | 562 | @Callable(i) | |
555 | 563 | func directBuyItem (itemName) = { | |
556 | 564 | let basePrice = tryGetCosmeticItemPrice(itemName) | |
557 | 565 | let grow = tryGetInteger(key_growPercentageCosmetic(itemName)) | |
558 | 566 | let startTs = tryGetInteger(key_startTsCosmetic(itemName)) | |
559 | 567 | let endTs = tryGetInteger(key_endTsCosmetic(itemName)) | |
560 | 568 | if (if ((startTs != 0)) | |
561 | 569 | then (startTs > lastBlock.timestamp) | |
562 | 570 | else false) | |
563 | 571 | then throw("IDBI: The sale did not start yet!") | |
564 | 572 | else if (if ((endTs != 0)) | |
565 | 573 | then (lastBlock.timestamp > endTs) | |
566 | 574 | else false) | |
567 | 575 | then throw("IDBI: The sale has already finished!") | |
568 | 576 | else if (!(tryGetBoolean(key_saleCosmetic(itemName)))) | |
569 | 577 | then throw(("IDBI: Item not for sale anymore" + key_saleCosmetic(itemName))) | |
570 | 578 | else { | |
571 | 579 | let maxSalesValue = tryGetInteger(key_maxSalesCosmetic(itemName)) | |
572 | 580 | let soldValue = tryGetInteger(key_soldCosmetic(itemName)) | |
573 | 581 | let price = if ((grow == 0)) | |
574 | 582 | then basePrice | |
575 | 583 | else (basePrice + ((basePrice / 100) * (soldValue * grow))) | |
576 | 584 | if (if ((maxSalesValue != 0)) | |
577 | 585 | then (soldValue >= maxSalesValue) | |
578 | 586 | else false) | |
579 | 587 | then throw("IDBI: Max editions sold!") | |
580 | 588 | else { | |
581 | 589 | let assetId = if ((tryGetString(key_priceAssetCosmetic(itemName)) == "")) | |
582 | 590 | then getEggAssetId() | |
583 | 591 | else if ((tryGetString(key_priceAssetCosmetic(itemName)) == "WAVES")) | |
584 | 592 | then unit | |
585 | 593 | else fromBase58String(tryGetString(key_priceAssetCosmetic(itemName))) | |
586 | 594 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
587 | 595 | let firstPayment = value(i.payments[1]) | |
588 | 596 | let amount = firstPayment.amount | |
589 | 597 | if ((firstPayment.assetId != assetId)) | |
590 | 598 | then throw("IDBI: You can attach only tokens with the correct payment ") | |
591 | 599 | else if ((amount != price)) | |
592 | 600 | then throw(("IDBI: Please attach the exact asset amount" + toString(price))) | |
593 | 601 | else { | |
594 | 602 | let txIdStr = toBase58String(i.transactionId) | |
595 | 603 | let address = i.originCaller | |
596 | 604 | let artefact = Issue(itemName, ("NFT artefact of Waves Ducks game: " + itemName), 1, 0, false, unit, 0) | |
597 | 605 | let artefactId = calculateAssetId(artefact) | |
598 | 606 | $Tuple2(([artefact, StringEntry((("artefact_" + toBase58String(artefactId)) + "_type"), itemName), IntegerEntry(key_lastPriceCosmetic(itemName), price), IntegerEntry(key_soldCosmetic(itemName), (soldValue + 1)), ScriptTransfer(address, 1, artefactId), ScriptTransfer(getFeeAggregator(), amount, assetId)] ++ validPayment), toBase58String(artefactId)) | |
599 | 607 | } | |
600 | 608 | } | |
601 | 609 | } | |
602 | 610 | } | |
603 | 611 | ||
604 | 612 | ||
605 | 613 | ||
606 | 614 | @Callable(i) | |
607 | 615 | func manipulateBoost (boost,duckId) = { | |
608 | 616 | let allowedContracts = getTrustedContracts() | |
609 | 617 | let allowedContractsList = split(allowedContracts, ";") | |
610 | 618 | let dappToCall = toString(i.caller) | |
611 | 619 | if ((indexOf(allowedContractsList, dappToCall) == unit)) | |
612 | 620 | then throw("IMB: This smart contract can't manipulate the boost!") | |
613 | 621 | else { | |
614 | 622 | let key = key_externalBoostDuck(duckId) | |
615 | 623 | let activeBoost = tryGetInteger(key) | |
616 | 624 | let newBoost = (activeBoost + boost) | |
617 | 625 | if ((0 > newBoost)) | |
618 | 626 | then throw("IMB: Something went wrong with boost, please contact the admins!") | |
619 | 627 | else [IntegerEntry(key, newBoost)] | |
620 | 628 | } | |
621 | 629 | } | |
622 | 630 | ||
623 | 631 | ||
624 | 632 | ||
625 | 633 | @Callable(i) | |
626 | 634 | func manipulateBoostAccount (boost,address) = { | |
627 | 635 | let allowedContracts = getTrustedContracts() | |
628 | 636 | let allowedContractsList = split(allowedContracts, ";") | |
629 | 637 | let dappToCall = toString(i.caller) | |
630 | 638 | if ((indexOf(allowedContractsList, dappToCall) == unit)) | |
631 | 639 | then throw("IMBA: This smart contract can't manipulate the boost!") | |
632 | 640 | else { | |
633 | 641 | let key = key_externalBoostAddress(address) | |
634 | 642 | let activeBoost = tryGetInteger(key) | |
635 | 643 | let newBoost = (activeBoost + boost) | |
636 | 644 | if ((0 > newBoost)) | |
637 | 645 | then throw("IMBA: Something went wrong with boost, please contact the admins!") | |
638 | 646 | else [IntegerEntry(key, newBoost)] | |
639 | 647 | } | |
640 | 648 | } | |
641 | 649 | ||
642 | 650 | ||
643 | 651 | ||
644 | 652 | @Callable(i) | |
645 | 653 | func checkArtefactDetails (assetId) = { | |
646 | 654 | let asset = value(assetInfo(fromBase58String(assetId))) | |
647 | 655 | let assetName = value(asset.name) | |
648 | 656 | if (if (if (containsElement(allArtefact, assetName)) | |
649 | 657 | then true | |
650 | 658 | else isDefined(tryGetCosmeticItemPrice(assetName))) | |
651 | 659 | then (asset.issuer == this) | |
652 | 660 | else false) | |
653 | 661 | then $Tuple2(nil, assetName) | |
654 | 662 | else throw("Invalid artefact") | |
655 | 663 | } | |
656 | 664 | ||
657 | 665 | ||
658 | 666 | ||
659 | 667 | @Callable(i) | |
660 | 668 | func configureOracle (oracle) = if ((i.caller != this)) | |
661 | 669 | then throw("IC: admin only") | |
662 | 670 | else [StringEntry(staticKey_oracleAddress(), oracle)] | |
663 | 671 | ||
664 | 672 | ||
665 | 673 | ||
666 | 674 | @Callable(i) | |
667 | 675 | func calculateFarmingPowerBoost (duckId,address) = { | |
668 | 676 | let externalBoostDuck = tryGetInteger(key_externalBoostDuck(duckId)) | |
669 | 677 | let externalBoostAddress = tryGetInteger(key_externalBoostAddress(address)) | |
670 | 678 | let totalBoost = (externalBoostDuck + externalBoostAddress) | |
671 | 679 | $Tuple2([IntegerEntry((duckId + "_last_boost"), totalBoost)], totalBoost) | |
672 | 680 | } | |
673 | 681 | ||
674 | 682 | ||
675 | 683 | ||
676 | 684 | @Callable(i) | |
677 | 685 | func itemDuplicator () = if ((size(i.payments) != 4)) | |
678 | 686 | then throw("IID: Four payments are needed!") | |
679 | 687 | else { | |
680 | 688 | let duplicatorPayment = value(i.payments[0]) | |
681 | 689 | let itemPayment = value(i.payments[1]) | |
682 | 690 | let eggPayment = value(i.payments[2]) | |
683 | 691 | let validPayment = checkAdditionalPayment(i.payments[3]) | |
684 | 692 | let duplicatorAssetId = toBase58String(value(duplicatorPayment.assetId)) | |
685 | 693 | if ((duplicatorPayment.amount != 1)) | |
686 | 694 | then throw("IID: Duplicator NFT is not attached") | |
687 | 695 | else { | |
688 | 696 | let itemAssetId = toBase58String(value(itemPayment.assetId)) | |
689 | 697 | if ((itemPayment.amount != 1)) | |
690 | 698 | then throw("IID: Item NFT is not attached") | |
691 | 699 | else { | |
692 | 700 | let eggAssetId = value(eggPayment.assetId) | |
693 | 701 | if ((eggAssetId != getEggAssetId())) | |
694 | 702 | then throw("IID: Please attach eggs!") | |
695 | 703 | else if ((getDuplicatorFee() > eggPayment.amount)) | |
696 | 704 | then throw(("IID: to duplicate an items you need the following amount of egglets: " + toString(getDuplicatorFee()))) | |
697 | 705 | else { | |
698 | 706 | let duplicatorArtefact = asString(invoke(this, "checkArtefactDetails", [duplicatorAssetId], nil)) | |
699 | 707 | if ((duplicatorArtefact == duplicatorArtefact)) | |
700 | 708 | then if ((duplicatorArtefact != "ART-ITEM_DUPLI")) | |
701 | 709 | then throw("IID: You need to attach a ART-ITEM_DUPLI artefact") | |
702 | 710 | else { | |
703 | 711 | let artefactName = asString(invoke(this, "checkArtefactDetails", [itemAssetId], nil)) | |
704 | 712 | if ((artefactName == artefactName)) | |
705 | 713 | then { | |
706 | 714 | let artefact = Issue(artefactName, ("NFT artefact of Waves Ducks game: " + artefactName), 1, 0, false, unit, 0) | |
707 | 715 | let artefactId = calculateAssetId(artefact) | |
708 | 716 | $Tuple2(([artefact, StringEntry((("artefact_" + toBase58String(artefactId)) + "_type"), artefactName), Burn(value(duplicatorPayment.assetId), 1), ScriptTransfer(i.originCaller, 1, itemPayment.assetId), ScriptTransfer(i.originCaller, 1, artefactId), ScriptTransfer(getFeeAggregator(), eggPayment.amount, eggPayment.assetId)] ++ validPayment), toBase58String(artefactId)) | |
709 | 717 | } | |
710 | 718 | else throw("Strict value is not equal to itself.") | |
711 | 719 | } | |
712 | 720 | else throw("Strict value is not equal to itself.") | |
713 | 721 | } | |
714 | 722 | } | |
715 | 723 | } | |
716 | 724 | } | |
717 | 725 | ||
718 | 726 | ||
719 | 727 | ||
720 | 728 | @Callable(i) | |
721 | 729 | func copyDuck () = { | |
722 | 730 | let firstPayment = value(i.payments[0]) | |
723 | 731 | let secondPayment = value(i.payments[1]) | |
724 | 732 | let validPayment = checkAdditionalPayment(i.payments[2]) | |
725 | 733 | let firstAssetId = toBase58String(value(firstPayment.assetId)) | |
726 | 734 | let children = asInt(invoke(getBreederAddress(), "validateAndGetChildren", [firstAssetId], nil)) | |
727 | 735 | if ((children == children)) | |
728 | 736 | then if (if ((firstPayment.amount != 1)) | |
729 | 737 | then true | |
730 | 738 | else (secondPayment.amount != 1)) | |
731 | 739 | then throw("NFT is not attached") | |
732 | 740 | else { | |
733 | 741 | let artefact = asString(invoke(this, "checkArtefactDetails", [toBase58String(value(secondPayment.assetId))], nil)) | |
734 | 742 | if ((artefact == artefact)) | |
735 | 743 | then if ((artefact != "ART-MIRROR")) | |
736 | 744 | then throw("You need to attach a ART-MIRROR artefact") | |
737 | 745 | else { | |
738 | 746 | let nftInfo = value(assetInfo(value(firstPayment.assetId))) | |
739 | 747 | let asset1Gen = split(nftInfo.name, "") | |
740 | 748 | if (if ((asset1Gen[14] == "G")) | |
741 | 749 | then true | |
742 | 750 | else (asset1Gen[14] == "J")) | |
743 | 751 | then throw("You can't mirror this duck") | |
744 | 752 | else { | |
745 | 753 | let duckGen = nftInfo.name | |
746 | 754 | let call = invoke(getBreederAddress(), "createDuckSpecialGenes", [i.caller.bytes, duckGen, children], nil) | |
747 | 755 | if ((call == call)) | |
748 | 756 | then ([ScriptTransfer(i.caller, 1, firstPayment.assetId), Burn(value(secondPayment.assetId), 1)] ++ validPayment) | |
749 | 757 | else throw("Strict value is not equal to itself.") | |
750 | 758 | } | |
751 | 759 | } | |
752 | 760 | else throw("Strict value is not equal to itself.") | |
753 | 761 | } | |
754 | 762 | else throw("Strict value is not equal to itself.") | |
755 | 763 | } | |
756 | 764 | ||
757 | 765 | ||
758 | 766 | ||
759 | 767 | @Callable(i) | |
760 | 768 | func addArteFactToDuck () = { | |
761 | 769 | let firstPayment = value(i.payments[0]) | |
762 | 770 | let secondPayment = value(i.payments[1]) | |
763 | 771 | let validPayment = checkAdditionalPayment(i.payments[2]) | |
764 | 772 | let firstAssetId = toBase58String(value(firstPayment.assetId)) | |
765 | 773 | if (if ((firstPayment.amount != 1)) | |
766 | 774 | then true | |
767 | 775 | else (secondPayment.amount != 1)) | |
768 | 776 | then throw("NFT is not attached") | |
769 | 777 | else { | |
770 | 778 | let children = asInt(invoke(getBreederAddress(), "validateAndGetChildren", [firstAssetId], nil)) | |
771 | 779 | if ((children == children)) | |
772 | 780 | then if ((children == 0)) | |
773 | 781 | then throw("You can only pick a sterile NFT-duck") | |
774 | 782 | else { | |
775 | 783 | let artefact = asString(invoke(this, "checkArtefactDetails", [toBase58String(value(secondPayment.assetId))], nil)) | |
776 | 784 | if ((artefact == artefact)) | |
777 | 785 | then if (if ((artefact != "ART-XHAT")) | |
778 | 786 | then (artefact != "ART-POMP") | |
779 | 787 | else false) | |
780 | 788 | then throw("You need to attach a ART-XHAT or ART-POMP artefact") | |
781 | 789 | else { | |
782 | 790 | let nftInfo = value(assetInfo(value(firstPayment.assetId))) | |
783 | 791 | let asset1Gen = split(nftInfo.name, "") | |
784 | 792 | if (if ((asset1Gen[14] == "G")) | |
785 | 793 | then true | |
786 | 794 | else (asset1Gen[14] == "J")) | |
787 | 795 | then throw("You can't mirror this duck") | |
788 | 796 | else if (if ((asset1Gen[5] == "S")) | |
789 | 797 | then true | |
790 | 798 | else (asset1Gen[5] == "T")) | |
791 | 799 | then throw("you already attached a artefact") | |
792 | 800 | else { | |
793 | 801 | let char = if ((artefact == "ART-XHAT")) | |
794 | 802 | then "T" | |
795 | 803 | else if ((artefact == "ART-POMP")) | |
796 | 804 | then "S" | |
797 | 805 | else throw("No char defined") | |
798 | 806 | let oldDuckGen = nftInfo.name | |
799 | 807 | let oldFarmGen = asString(invoke(getBreederAddress(), "getGenFromName", [oldDuckGen], nil)) | |
800 | 808 | if ((oldFarmGen == oldFarmGen)) | |
801 | 809 | then { | |
802 | 810 | let duckGen = manipulateName(oldDuckGen, 6, char) | |
803 | 811 | let call = invoke(getBreederAddress(), "createDuckSpecialGenes", [i.caller.bytes, duckGen, children], nil) | |
804 | 812 | if ((call == call)) | |
805 | 813 | then { | |
806 | 814 | let callReduce = invoke(getBreederAddress(), "reduceRarity", [firstAssetId, oldFarmGen], nil) | |
807 | 815 | if ((callReduce == callReduce)) | |
808 | 816 | then ([Burn(value(firstPayment.assetId), 1), Burn(value(secondPayment.assetId), 1)] ++ validPayment) | |
809 | 817 | else throw("Strict value is not equal to itself.") | |
810 | 818 | } | |
811 | 819 | else throw("Strict value is not equal to itself.") | |
812 | 820 | } | |
813 | 821 | else throw("Strict value is not equal to itself.") | |
814 | 822 | } | |
815 | 823 | } | |
816 | 824 | else throw("Strict value is not equal to itself.") | |
817 | 825 | } | |
818 | 826 | else throw("Strict value is not equal to itself.") | |
819 | 827 | } | |
820 | 828 | } | |
821 | 829 | ||
822 | 830 | ||
823 | 831 | ||
824 | 832 | @Callable(i) | |
825 | 833 | func preInit () = [IntegerEntry("static_ART-LAKE_farmingSlots", 200), IntegerEntry("static_ART-LAKE_farmingBoost", 2), IntegerEntry("static_ART-HOUSE_farmingSlots", 4), IntegerEntry("static_ART-HOUSE_farmingBoost", 30), IntegerEntry("static_ART-BIGHOUSE_farmingSlots", 10), IntegerEntry("static_ART-BIGHOUSE_farmingBoost", 15)] | |
826 | 834 | ||
827 | 835 | ||
828 | 836 | ||
829 | 837 | @Callable(i) | |
830 | 838 | func issueArtefact (type,receiver) = if (if (if (if (if (if (if ((i.caller != this)) | |
831 | 839 | then (i.caller != getRebirthAddress()) | |
832 | 840 | else false) | |
833 | 841 | then (i.caller != getTurtleRebirthAddress()) | |
834 | 842 | else false) | |
835 | 843 | then (i.caller != getCanineRebirthAddress()) | |
836 | 844 | else false) | |
837 | 845 | then (i.caller != getHuntDistroAddress()) | |
838 | 846 | else false) | |
839 | 847 | then (i.callerPublicKey != getWarsPKey()) | |
840 | 848 | else false) | |
841 | 849 | then !(isTestEnv()) | |
842 | 850 | else false) | |
843 | 851 | then throw("IIA: admin only") | |
844 | 852 | else if (if (if ((i.caller == getHuntDistroAddress())) | |
845 | 853 | then !(contains(type, "ART-FIRE_")) | |
846 | 854 | else false) | |
847 | 855 | then !(tryGetBoolean((type + "_issue"))) | |
848 | 856 | else false) | |
849 | 857 | then throw("FIRE AND WHITELIST ITEM ONLY!") | |
850 | 858 | else { | |
851 | 859 | let address = Address(fromBase58String(receiver)) | |
852 | 860 | issueItem(type, 0, address) | |
853 | 861 | } | |
854 | 862 | ||
855 | 863 | ||
856 | 864 | ||
857 | 865 | @Callable(i) | |
858 | 866 | func issueArtefactIndex (type,receiver,nonce) = if (if (if (if (if (if (if ((i.caller != this)) | |
859 | 867 | then (i.caller != getRebirthAddress()) | |
860 | 868 | else false) | |
861 | 869 | then (i.caller != getTurtleRebirthAddress()) | |
862 | 870 | else false) | |
863 | 871 | then (i.caller != getCanineRebirthAddress()) | |
864 | 872 | else false) | |
865 | 873 | then (i.caller != getFelineeRebirthAddress()) | |
866 | 874 | else false) | |
867 | 875 | then (i.caller != getHuntDistroAddress()) | |
868 | 876 | else false) | |
869 | 877 | then (i.callerPublicKey != getWarsPKey()) | |
870 | 878 | else false) | |
871 | 879 | then throw("IIAI: admin only") | |
872 | 880 | else if (if (if (if ((i.caller == getHuntDistroAddress())) | |
873 | 881 | then true | |
874 | 882 | else (i.callerPublicKey == getWarsPKey())) | |
875 | 883 | then !(contains(type, "ART-FIRE_")) | |
876 | 884 | else false) | |
877 | 885 | then !(tryGetBoolean((type + "_issue"))) | |
878 | 886 | else false) | |
879 | 887 | then throw("FIRE AND WHITELIST ITEM ONLY!") | |
880 | 888 | else { | |
881 | 889 | let address = Address(fromBase58String(receiver)) | |
882 | 890 | let issueResult = issueItem(type, nonce, address) | |
883 | 891 | issueResult | |
884 | 892 | } | |
885 | 893 | ||
886 | 894 | ||
887 | 895 | ||
888 | 896 | @Callable(i) | |
889 | 897 | func setLock (n) = if ((i.caller == this)) | |
890 | 898 | then [IntegerEntry("global_locked", n)] | |
891 | 899 | else throw("admin only") | |
892 | 900 | ||
893 | 901 | ||
894 | 902 | ||
895 | 903 | @Callable(i) | |
896 | 904 | func addItemToStore (price,item,maxSales,sale,pricesset,growthPercentage,startTs,endTs) = if ((i.caller != addressFromStringValue(tryGetStringExternal(getOracle(), staticKey_pipelineUser())))) | |
897 | 905 | then throw("IAITS: Only for trusted users!") | |
898 | 906 | else [IntegerEntry(key_priceCosmetic(item), price), IntegerEntry(key_maxSalesCosmetic(item), maxSales), BooleanEntry(key_saleCosmetic(item), sale), StringEntry(key_priceAssetCosmetic(item), pricesset), IntegerEntry(key_growPercentageCosmetic(item), growthPercentage), IntegerEntry(key_startTsCosmetic(item), startTs), IntegerEntry(key_endTsCosmetic(item), endTs)] | |
899 | 907 | ||
900 | 908 | ||
901 | 909 | @Verifier(tx) | |
902 | 910 | func verify () = if (isTestEnv()) | |
903 | 911 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
904 | 912 | else { | |
905 | 913 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
906 | 914 | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
907 | 915 | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
908 | 916 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
909 | 917 | then 1 | |
910 | 918 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
911 | 919 | then 1 | |
912 | 920 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
913 | 921 | then 1 | |
914 | 922 | else 0 | |
915 | 923 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
916 | 924 | then 1 | |
917 | 925 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
918 | 926 | then 1 | |
919 | 927 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
920 | 928 | then 1 | |
921 | 929 | else 0 | |
922 | 930 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
923 | 931 | then 1 | |
924 | 932 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
925 | 933 | then 1 | |
926 | 934 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
927 | 935 | then 1 | |
928 | 936 | else 0 | |
929 | 937 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
930 | 938 | match tx { | |
931 | 939 | case _ => | |
932 | 940 | (signaturesCount >= 2) | |
933 | 941 | } | |
934 | 942 | } | |
935 | 943 |
github/deemru/w8io/026f985 139.35 ms ◑