tx · BdN4gSBVMNjbGfNoGRpGmKG6Pp7QZyr4VUz8N4pTWVRm 3MtrXLq2YFHNLqTBXr488vaQVQpsHdmbg7C: -0.02100000 Waves 2024.12.03 23:51 [3398961] smart account 3MtrXLq2YFHNLqTBXr488vaQVQpsHdmbg7C > SELF 0.00000000 Waves
{ "type": 13, "id": "BdN4gSBVMNjbGfNoGRpGmKG6Pp7QZyr4VUz8N4pTWVRm", "fee": 2100000, "feeAssetId": null, "timestamp": 1733259196408, "version": 2, "chainId": 84, "sender": "3MtrXLq2YFHNLqTBXr488vaQVQpsHdmbg7C", "senderPublicKey": "ESRi59hjHAnDxmeFyTaaXNvzeEW323BvzYJYyKjpEsC1", "proofs": [ "XnMW2S55UqURVmSXp1qw5p9f6ta4mFYxyQjzXJ7HMpVAvYxfQfHK7PV2jmrSixYgEC6FSCgypQuVyU9P79nqK69" ], "script": "base64:AAIFAAAAAAAAAC8IAhIECgIICBIECgIICBIDCgEIEgUKAwgICBIECgIICBIDCgEBEgMKAQgSAwoBCAAAACUBAAAAB2dldEJvb2wAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIHAQAAAAhhc1N0cmluZwAAAAEAAAAFdmFsdWUEAAAAByRtYXRjaDAFAAAABXZhbHVlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABcwUAAAAHJG1hdGNoMAkAAAIAAAABAgAAACZ3cm9uZyB0eXBlLCBleHBlY3RlZDogU3RyaW5nLCBnb3Q6IEludAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAABcwUAAAAHJG1hdGNoMAkAAAIAAAABAgAAACd3cm9uZyB0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RAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAJdGhpcmRVc2VyAAAAAAAAAAABAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACXRoaXJkVXNlcgAAAAAAAAAAAQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAAl0aGlyZFVzZXIAAAAAAAAAAAEAAAAAAAAAAAAEAAAAD3NpZ25hdHVyZXNDb3VudAkAAGQAAAACCQAAZAAAAAIFAAAAD2ZpcnN0VXNlclNpZ25lZAUAAAAQc2Vjb25kVXNlclNpZ25lZAUAAAAPdGhpcmRVc2VyU2lnbmVkBAAAAAckbWF0Y2gwBQAAAAJ0eAkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAALddNez", "height": 3398961, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B7mXXdprvczmQyEEm9yfKnx7vkRgJ4bhhteTWCSVCCpD Next: none Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | b | |
7 | 7 | case _ => | |
8 | 8 | false | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func asString (value) = match value { | |
13 | + | case s: String => | |
14 | + | s | |
15 | + | case s: Int => | |
16 | + | throw("wrong type, expected: String, got: Int") | |
17 | + | case s: Unit => | |
18 | + | throw("wrong type, expected: String, got: Unit") | |
19 | + | case _ => | |
20 | + | throw("wrong type, expected: String") | |
9 | 21 | } | |
10 | 22 | ||
11 | 23 | ||
41 | 53 | func staticKey_caniFarmingAddress () = "static_canineStakingAddress" | |
42 | 54 | ||
43 | 55 | ||
56 | + | func staticKey_itemsAddress () = "static_itemsAddress" | |
57 | + | ||
58 | + | ||
44 | 59 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
45 | 60 | ||
46 | 61 | ||
60 | 75 | ||
61 | 76 | ||
62 | 77 | func getCaniFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_caniFarmingAddress()))) | |
78 | + | ||
79 | + | ||
80 | + | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
63 | 81 | ||
64 | 82 | ||
65 | 83 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
211 | 229 | let finishHeightKey = getHatchingFinishHeightKey(address, txId) | |
212 | 230 | let totalDucksAmount = tryGetInteger("cani_amount") | |
213 | 231 | let eggsNeeded = countEggsNeededAmount(totalDucksAmount) | |
214 | - | let $ | |
215 | - | let duckGen = $ | |
216 | - | let farmGen = $ | |
232 | + | let $t069707022 = $Tuple2((("CANI-" + gen) + "-JU"), "8W-J") | |
233 | + | let duckGen = $t069707022._1 | |
234 | + | let farmGen = $t069707022._2 | |
217 | 235 | let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}") | |
218 | 236 | let asset = Issue(duckGen, description, 1, 0, false, unit, height) | |
219 | 237 | let assetId = calculateAssetId(asset) | |
235 | 253 | let finishHeightKey = getHatchingFinishHeightKey(address, txId) | |
236 | 254 | let totalDucksAmount = tryGetInteger("cani_amount") | |
237 | 255 | let eggsNeeded = countEggsNeededAmount(totalDucksAmount) | |
238 | - | let $ | |
239 | - | let CANIGen = $ | |
240 | - | let farmGen = $ | |
256 | + | let $t086048752 = getRandomName(txId, (valueOrErrorMessage(transactionHeightById(txId), ((txIdStr + " not found ") + toBase58String(txId))) + 1), true) | |
257 | + | let CANIGen = $t086048752._1 | |
258 | + | let farmGen = $t086048752._2 | |
241 | 259 | let description = (("{\"genotype\": \"" + CANIGen) + "\", \"crossbreeding\": true}") | |
242 | 260 | let asset = Issue(CANIGen, description, 1, 0, false, unit, height) | |
243 | 261 | let assetId = calculateAssetId(asset) | |
265 | 283 | let totalCaniAmount = tryGetInteger("cani_amount") | |
266 | 284 | let eggsNeeded = countEggsNeededAmount(totalCaniAmount) | |
267 | 285 | let results = [StringEntry(getHatchingStatusKey(toString(i.originCaller), i.transactionId), HatchingStarted), IntegerEntry(getHatchingFinishHeightKey(toString(i.originCaller), i.transactionId), (height + delayForHatching)), IntegerEntry("cani_amount", (totalCaniAmount + 1)), IntegerEntry("cani_last_price", (eggsNeeded / 1500000))] | |
268 | - | let leftToPay = eggsNeeded | |
269 | 286 | let firstPayment = value(i.payments[1]) | |
287 | + | let leftToPay = if ((size(i.payments) == 3)) | |
288 | + | then { | |
289 | + | let boosterType = asString(invoke(getItemsAddress(), "checkArtefactDetails", [toBase58String(value(value(i.payments[2]).assetId))], nil)) | |
290 | + | if ((boosterType == boosterType)) | |
291 | + | then if ((boosterType == "ART-CANCPN")) | |
292 | + | then ((eggsNeeded / 100) * 85) | |
293 | + | else 100 | |
294 | + | else throw("Strict value is not equal to itself.") | |
295 | + | } | |
296 | + | else eggsNeeded | |
270 | 297 | if ((firstPayment.assetId != getMintAssetId())) | |
271 | 298 | then throw("TB: You can attach only WAVES") | |
272 | 299 | else if ((leftToPay > firstPayment.amount)) | |
307 | 334 | else if ((hatchingFinishHeight > height)) | |
308 | 335 | then throw((((("Hatching is not finished yet " + toString((hatchingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((hatchingFinishHeight - height))) + " minutes")) | |
309 | 336 | else { | |
310 | - | let $ | |
311 | - | let CANIGen = $ | |
312 | - | let farmGen = $ | |
337 | + | let $t01259912672 = getRandomName(txId, hatchingFinishHeight, false) | |
338 | + | let CANIGen = $t01259912672._1 | |
339 | + | let farmGen = $t01259912672._2 | |
313 | 340 | let description = (("{\"genotype\": \"" + CANIGen) + "\", \"crossbreeding\": true}") | |
314 | 341 | let asset = Issue(CANIGen, description, 1, 0, false, unit, hatchingFinishHeight) | |
315 | 342 | let assetId = calculateAssetId(asset) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getBool (key) = match getBoolean(this, key) { | |
5 | 5 | case b: Boolean => | |
6 | 6 | b | |
7 | 7 | case _ => | |
8 | 8 | false | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func asString (value) = match value { | |
13 | + | case s: String => | |
14 | + | s | |
15 | + | case s: Int => | |
16 | + | throw("wrong type, expected: String, got: Int") | |
17 | + | case s: Unit => | |
18 | + | throw("wrong type, expected: String, got: Unit") | |
19 | + | case _ => | |
20 | + | throw("wrong type, expected: String") | |
9 | 21 | } | |
10 | 22 | ||
11 | 23 | ||
12 | 24 | func isTestEnv () = getBool("TESTENV") | |
13 | 25 | ||
14 | 26 | ||
15 | 27 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
16 | 28 | case a: String => | |
17 | 29 | a | |
18 | 30 | case _ => | |
19 | 31 | "" | |
20 | 32 | } | |
21 | 33 | ||
22 | 34 | ||
23 | 35 | func tryGetString (key) = tryGetStringExternal(this, key) | |
24 | 36 | ||
25 | 37 | ||
26 | 38 | func staticKey_oracleAddress () = "static_oracleAddress" | |
27 | 39 | ||
28 | 40 | ||
29 | 41 | func staticKey_extraFee () = "static_extraFee" | |
30 | 42 | ||
31 | 43 | ||
32 | 44 | func staticKey_feeAggregator () = "static_feeAggregator" | |
33 | 45 | ||
34 | 46 | ||
35 | 47 | func staticKey_refContractAddress () = "static_refContractAddress" | |
36 | 48 | ||
37 | 49 | ||
38 | 50 | func staticKey_caniRebirthAddress () = "static_canineRebirthAddress" | |
39 | 51 | ||
40 | 52 | ||
41 | 53 | func staticKey_caniFarmingAddress () = "static_canineStakingAddress" | |
42 | 54 | ||
43 | 55 | ||
56 | + | func staticKey_itemsAddress () = "static_itemsAddress" | |
57 | + | ||
58 | + | ||
44 | 59 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
45 | 60 | ||
46 | 61 | ||
47 | 62 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
48 | 63 | ||
49 | 64 | ||
50 | 65 | func getMintAssetId () = unit | |
51 | 66 | ||
52 | 67 | ||
53 | 68 | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_burnAddress"))) | |
54 | 69 | ||
55 | 70 | ||
56 | 71 | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
57 | 72 | ||
58 | 73 | ||
59 | 74 | func getCaniRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_caniRebirthAddress()))) | |
60 | 75 | ||
61 | 76 | ||
62 | 77 | func getCaniFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_caniFarmingAddress()))) | |
78 | + | ||
79 | + | ||
80 | + | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
63 | 81 | ||
64 | 82 | ||
65 | 83 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
66 | 84 | then throw("BDCAP: Please attach waves") | |
67 | 85 | else { | |
68 | 86 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
69 | 87 | if ((payment.amount != feeAmount)) | |
70 | 88 | then throw((("BDCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
71 | 89 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
72 | 90 | } | |
73 | 91 | ||
74 | 92 | ||
75 | 93 | let delayForHatching = 2 | |
76 | 94 | ||
77 | 95 | let HatchingStarted = "HATCHING_STARTED" | |
78 | 96 | ||
79 | 97 | let HatchingFinished = "HATCHING_FINISHED" | |
80 | 98 | ||
81 | 99 | func isLocked () = { | |
82 | 100 | let masterAddress = Address(base58'3PEPftf2kWZDmAaWBjs6BUJa9957kiA2PkU') | |
83 | 101 | match getInteger(masterAddress, "egglock") { | |
84 | 102 | case b: Int => | |
85 | 103 | b | |
86 | 104 | case _ => | |
87 | 105 | 0 | |
88 | 106 | } | |
89 | 107 | } | |
90 | 108 | ||
91 | 109 | ||
92 | 110 | func getHatchingStatusKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_status") | |
93 | 111 | ||
94 | 112 | ||
95 | 113 | func getHatchingFinishHeightKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_fh") | |
96 | 114 | ||
97 | 115 | ||
98 | 116 | func getCANIIdKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_di") | |
99 | 117 | ||
100 | 118 | ||
101 | 119 | func getCANIStatsKey (genString) = (("stats_" + genString) + "_amount") | |
102 | 120 | ||
103 | 121 | ||
104 | 122 | func tryGetInteger (key) = { | |
105 | 123 | let val = match getInteger(this, key) { | |
106 | 124 | case b: Int => | |
107 | 125 | b | |
108 | 126 | case _ => | |
109 | 127 | 0 | |
110 | 128 | } | |
111 | 129 | val | |
112 | 130 | } | |
113 | 131 | ||
114 | 132 | ||
115 | 133 | let discountCoefficient = tryGetInteger("discountCoefficient") | |
116 | 134 | ||
117 | 135 | func getRandomNumber (variants,txId,hatchingFinishHeight,offset) = { | |
118 | 136 | let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1))) | |
119 | 137 | let randomHash = sha256((txId + value(randomSeedBlock.vrf))) | |
120 | 138 | (toInt(randomHash, (offset * 8)) % variants) | |
121 | 139 | } | |
122 | 140 | ||
123 | 141 | ||
124 | 142 | func select (color) = { | |
125 | 143 | let oldGenes = [$Tuple2(("CANI-AAAAAAAA-G" + color), "8A-G")] | |
126 | 144 | let newGenes = [$Tuple2(("CANI-BBBBBBBB-G" + color), "8B-G"), $Tuple2(("CANI-CCCCCCCC-G" + color), "8C-G"), $Tuple2(("CANI-DDDDDDDD-G" + color), "8D-G"), $Tuple2(("CANI-EEEEEEEE-G" + color), "8E-G")] | |
127 | 145 | $Tuple2((oldGenes ++ newGenes), newGenes) | |
128 | 146 | } | |
129 | 147 | ||
130 | 148 | ||
131 | 149 | func getRandomName (txId,hatchingFinishHeight,all) = { | |
132 | 150 | let colorRandom = getRandomNumber(4, txId, hatchingFinishHeight, 1) | |
133 | 151 | let color = ["A", "B", "C", "D"][colorRandom] | |
134 | 152 | let colorSelect = select(color) | |
135 | 153 | let toPickFrom = if (all) | |
136 | 154 | then colorSelect._1 | |
137 | 155 | else colorSelect._2 | |
138 | 156 | let typeRandom = getRandomNumber(size(toPickFrom), txId, hatchingFinishHeight, 0) | |
139 | 157 | toPickFrom[typeRandom] | |
140 | 158 | } | |
141 | 159 | ||
142 | 160 | ||
143 | 161 | let typesAmount = (size(select("R")._2) - 1) | |
144 | 162 | ||
145 | 163 | func countEggsNeededAmount (totalCANIsAmount) = { | |
146 | 164 | let n = totalCANIsAmount | |
147 | 165 | let g = discountCoefficient | |
148 | 166 | let t = typesAmount | |
149 | 167 | let price = (pow((100 + ((n * g) / (10 * t))), 2, 5, 1, 2, DOWN) + 55) | |
150 | 168 | (price * 1500000) | |
151 | 169 | } | |
152 | 170 | ||
153 | 171 | ||
154 | 172 | func asBoolean (value) = match value { | |
155 | 173 | case boolean: Boolean => | |
156 | 174 | boolean | |
157 | 175 | case _ => | |
158 | 176 | throw("TI: wrong type, expected: Boolean") | |
159 | 177 | } | |
160 | 178 | ||
161 | 179 | ||
162 | 180 | @Callable(i) | |
163 | 181 | func reduceRarity (assetId,fGen) = { | |
164 | 182 | let asset = fromBase58String(assetId) | |
165 | 183 | if (if ((i.caller != getCaniRebirthAddress())) | |
166 | 184 | then (i.caller != this) | |
167 | 185 | else false) | |
168 | 186 | then throw("IRR: admin or rebirth only") | |
169 | 187 | else { | |
170 | 188 | let duckGen = value(assetInfo(asset)).name | |
171 | 189 | let letter = takeRight(take(duckGen, 6), 1) | |
172 | 190 | let farmGen = (("8" + letter) + "-G") | |
173 | 191 | [IntegerEntry(getCANIStatsKey(duckGen), (tryGetInteger(getCANIStatsKey(duckGen)) - 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) - 1))] | |
174 | 192 | } | |
175 | 193 | } | |
176 | 194 | ||
177 | 195 | ||
178 | 196 | ||
179 | 197 | @Callable(i) | |
180 | 198 | func increaseRarity (assetId,fGen) = { | |
181 | 199 | let asset = fromBase58String(assetId) | |
182 | 200 | if (if ((i.caller != getCaniRebirthAddress())) | |
183 | 201 | then (i.caller != this) | |
184 | 202 | else false) | |
185 | 203 | then throw("IRR: admin or rebirth only") | |
186 | 204 | else { | |
187 | 205 | let duckGen = value(assetInfo(asset)).name | |
188 | 206 | let letter = takeRight(take(duckGen, 6), 1) | |
189 | 207 | let farmGen = (("8" + letter) + "-G") | |
190 | 208 | [IntegerEntry(getCANIStatsKey(duckGen), (tryGetInteger(getCANIStatsKey(duckGen)) + 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1))] | |
191 | 209 | } | |
192 | 210 | } | |
193 | 211 | ||
194 | 212 | ||
195 | 213 | ||
196 | 214 | @Callable(i) | |
197 | 215 | func configureOracle (oracle) = if ((i.caller != this)) | |
198 | 216 | then throw("ICU: admin only") | |
199 | 217 | else [StringEntry("static_oracleAddress", oracle)] | |
200 | 218 | ||
201 | 219 | ||
202 | 220 | ||
203 | 221 | @Callable(i) | |
204 | 222 | func issueJackpot (address,txIdStr,gen) = if (if ((i.caller != getCaniRebirthAddress())) | |
205 | 223 | then (i.caller != this) | |
206 | 224 | else false) | |
207 | 225 | then throw("ISJ: admin or rebirth only") | |
208 | 226 | else { | |
209 | 227 | let txId = fromBase58String(txIdStr) | |
210 | 228 | let hatchingStatusKey = getHatchingStatusKey(address, txId) | |
211 | 229 | let finishHeightKey = getHatchingFinishHeightKey(address, txId) | |
212 | 230 | let totalDucksAmount = tryGetInteger("cani_amount") | |
213 | 231 | let eggsNeeded = countEggsNeededAmount(totalDucksAmount) | |
214 | - | let $ | |
215 | - | let duckGen = $ | |
216 | - | let farmGen = $ | |
232 | + | let $t069707022 = $Tuple2((("CANI-" + gen) + "-JU"), "8W-J") | |
233 | + | let duckGen = $t069707022._1 | |
234 | + | let farmGen = $t069707022._2 | |
217 | 235 | let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}") | |
218 | 236 | let asset = Issue(duckGen, description, 1, 0, false, unit, height) | |
219 | 237 | let assetId = calculateAssetId(asset) | |
220 | 238 | let duckIdKey = getCANIIdKey(address, txId) | |
221 | 239 | let valueDuckIdKeyExits = tryGetString(duckIdKey) | |
222 | 240 | if ((valueDuckIdKeyExits != "")) | |
223 | 241 | then throw((("ISJ: You will override following duckId :" + duckIdKey) + " make sure that your txId is unique!")) | |
224 | 242 | else $Tuple2([IntegerEntry(getHatchingFinishHeightKey(address, txId), height), IntegerEntry("cani_amount", (totalDucksAmount + 1)), IntegerEntry("cani_last_price", (eggsNeeded / 1500000)), StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getCANIStatsKey(duckGen), (tryGetInteger(getCANIStatsKey(duckGen)) + 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId)) | |
225 | 243 | } | |
226 | 244 | ||
227 | 245 | ||
228 | 246 | ||
229 | 247 | @Callable(i) | |
230 | 248 | func issueFree (address,txIdStr) = if ((i.caller != getCaniRebirthAddress())) | |
231 | 249 | then throw("CIF: rebirth only") | |
232 | 250 | else { | |
233 | 251 | let txId = fromBase58String(txIdStr) | |
234 | 252 | let hatchingStatusKey = getHatchingStatusKey(address, txId) | |
235 | 253 | let finishHeightKey = getHatchingFinishHeightKey(address, txId) | |
236 | 254 | let totalDucksAmount = tryGetInteger("cani_amount") | |
237 | 255 | let eggsNeeded = countEggsNeededAmount(totalDucksAmount) | |
238 | - | let $ | |
239 | - | let CANIGen = $ | |
240 | - | let farmGen = $ | |
256 | + | let $t086048752 = getRandomName(txId, (valueOrErrorMessage(transactionHeightById(txId), ((txIdStr + " not found ") + toBase58String(txId))) + 1), true) | |
257 | + | let CANIGen = $t086048752._1 | |
258 | + | let farmGen = $t086048752._2 | |
241 | 259 | let description = (("{\"genotype\": \"" + CANIGen) + "\", \"crossbreeding\": true}") | |
242 | 260 | let asset = Issue(CANIGen, description, 1, 0, false, unit, height) | |
243 | 261 | let assetId = calculateAssetId(asset) | |
244 | 262 | let amount = (tryGetInteger(getCANIStatsKey(CANIGen)) + 1) | |
245 | 263 | let duckIdKey = getCANIIdKey(address, txId) | |
246 | 264 | $Tuple2([IntegerEntry(getHatchingFinishHeightKey(address, txId), height), IntegerEntry("cani_amount", (totalDucksAmount + 1)), IntegerEntry("cani_last_price", (eggsNeeded / 1500000)), StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getCANIStatsKey(CANIGen), amount), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId)) | |
247 | 265 | } | |
248 | 266 | ||
249 | 267 | ||
250 | 268 | ||
251 | 269 | @Callable(i) | |
252 | 270 | func setDiscount (val) = if ((i.caller != this)) | |
253 | 271 | then throw("admin_only") | |
254 | 272 | else [IntegerEntry("discountCoefficient", val)] | |
255 | 273 | ||
256 | 274 | ||
257 | 275 | ||
258 | 276 | @Callable(i) | |
259 | 277 | func startHatching (refererAddress) = { | |
260 | 278 | let feeValidate = checkAdditionalPayment(i.payments[0]) | |
261 | 279 | if ((feeValidate == feeValidate)) | |
262 | 280 | then if ((isLocked() > 0)) | |
263 | 281 | then throw("EGG operations are temporarily locked") | |
264 | 282 | else { | |
265 | 283 | let totalCaniAmount = tryGetInteger("cani_amount") | |
266 | 284 | let eggsNeeded = countEggsNeededAmount(totalCaniAmount) | |
267 | 285 | let results = [StringEntry(getHatchingStatusKey(toString(i.originCaller), i.transactionId), HatchingStarted), IntegerEntry(getHatchingFinishHeightKey(toString(i.originCaller), i.transactionId), (height + delayForHatching)), IntegerEntry("cani_amount", (totalCaniAmount + 1)), IntegerEntry("cani_last_price", (eggsNeeded / 1500000))] | |
268 | - | let leftToPay = eggsNeeded | |
269 | 286 | let firstPayment = value(i.payments[1]) | |
287 | + | let leftToPay = if ((size(i.payments) == 3)) | |
288 | + | then { | |
289 | + | let boosterType = asString(invoke(getItemsAddress(), "checkArtefactDetails", [toBase58String(value(value(i.payments[2]).assetId))], nil)) | |
290 | + | if ((boosterType == boosterType)) | |
291 | + | then if ((boosterType == "ART-CANCPN")) | |
292 | + | then ((eggsNeeded / 100) * 85) | |
293 | + | else 100 | |
294 | + | else throw("Strict value is not equal to itself.") | |
295 | + | } | |
296 | + | else eggsNeeded | |
270 | 297 | if ((firstPayment.assetId != getMintAssetId())) | |
271 | 298 | then throw("TB: You can attach only WAVES") | |
272 | 299 | else if ((leftToPay > firstPayment.amount)) | |
273 | 300 | then throw(((("TB: To breed a Canine you following amount of WAVES: " + toString(leftToPay)) + " ") + toString(i.caller))) | |
274 | 301 | else { | |
275 | 302 | let addMore = invoke(getCaniFarmingAddress(), "addWavesAndStakeMore", nil, [AttachedPayment(unit, leftToPay)]) | |
276 | 303 | if ((addMore == addMore)) | |
277 | 304 | then { | |
278 | 305 | let refund = if ((size(i.payments) == 2)) | |
279 | 306 | then [ScriptTransfer(i.caller, (i.payments[1].amount - leftToPay), getMintAssetId())] | |
280 | 307 | else nil | |
281 | 308 | ((results ++ refund) ++ feeValidate) | |
282 | 309 | } | |
283 | 310 | else throw("Strict value is not equal to itself.") | |
284 | 311 | } | |
285 | 312 | } | |
286 | 313 | else throw("Strict value is not equal to itself.") | |
287 | 314 | } | |
288 | 315 | ||
289 | 316 | ||
290 | 317 | ||
291 | 318 | @Callable(i) | |
292 | 319 | func finishHatching (txIdStr) = { | |
293 | 320 | let feeValidate = checkAdditionalPayment(i.payments[0]) | |
294 | 321 | if ((feeValidate == feeValidate)) | |
295 | 322 | then { | |
296 | 323 | let txId = fromBase58String(txIdStr) | |
297 | 324 | let hatchingStatusKey = getHatchingStatusKey(toString(i.caller), txId) | |
298 | 325 | let finishHeightKey = getHatchingFinishHeightKey(toString(i.caller), txId) | |
299 | 326 | let CANIIdKey = getCANIIdKey(toString(i.caller), txId) | |
300 | 327 | let hatchingTxStatus = getStringValue(this, hatchingStatusKey) | |
301 | 328 | let hatchingFinishHeight = getIntegerValue(this, finishHeightKey) | |
302 | 329 | if ((hatchingTxStatus == HatchingFinished)) | |
303 | 330 | then { | |
304 | 331 | let CANIId = getStringValue(this, getCANIIdKey(toString(i.caller), txId)) | |
305 | 332 | throw(("The Cani was hatched and claimed already, here is the folowing: " + CANIId)) | |
306 | 333 | } | |
307 | 334 | else if ((hatchingFinishHeight > height)) | |
308 | 335 | then throw((((("Hatching is not finished yet " + toString((hatchingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((hatchingFinishHeight - height))) + " minutes")) | |
309 | 336 | else { | |
310 | - | let $ | |
311 | - | let CANIGen = $ | |
312 | - | let farmGen = $ | |
337 | + | let $t01259912672 = getRandomName(txId, hatchingFinishHeight, false) | |
338 | + | let CANIGen = $t01259912672._1 | |
339 | + | let farmGen = $t01259912672._2 | |
313 | 340 | let description = (("{\"genotype\": \"" + CANIGen) + "\", \"crossbreeding\": true}") | |
314 | 341 | let asset = Issue(CANIGen, description, 1, 0, false, unit, hatchingFinishHeight) | |
315 | 342 | let assetId = calculateAssetId(asset) | |
316 | 343 | let amount = (tryGetInteger(getCANIStatsKey(CANIGen)) + 1) | |
317 | 344 | ([StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(CANIIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), CANIIdKey), IntegerEntry(getCANIStatsKey(CANIGen), amount), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(i.caller, 1, assetId)] ++ feeValidate) | |
318 | 345 | } | |
319 | 346 | } | |
320 | 347 | else throw("Strict value is not equal to itself.") | |
321 | 348 | } | |
322 | 349 | ||
323 | 350 | ||
324 | 351 | @Verifier(tx) | |
325 | 352 | func verify () = if (isTestEnv()) | |
326 | 353 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
327 | 354 | else { | |
328 | 355 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
329 | 356 | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
330 | 357 | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
331 | 358 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
332 | 359 | then 1 | |
333 | 360 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
334 | 361 | then 1 | |
335 | 362 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
336 | 363 | then 1 | |
337 | 364 | else 0 | |
338 | 365 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
339 | 366 | then 1 | |
340 | 367 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
341 | 368 | then 1 | |
342 | 369 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
343 | 370 | then 1 | |
344 | 371 | else 0 | |
345 | 372 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
346 | 373 | then 1 | |
347 | 374 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
348 | 375 | then 1 | |
349 | 376 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
350 | 377 | then 1 | |
351 | 378 | else 0 | |
352 | 379 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
353 | 380 | match tx { | |
354 | 381 | case _ => | |
355 | 382 | (signaturesCount >= 2) | |
356 | 383 | } | |
357 | 384 | } | |
358 | 385 |
github/deemru/w8io/169f3d6 45.28 ms ◑