tx · GvEsTy9x3pyB5x8JaVRSQrawksERYXjJYxAMb3j2FWSQ

3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh:  -0.05000000 Waves

2021.08.19 14:07 [1665149] smart account 3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh > SELF 0.00000000 Waves

{ "type": 13, "id": "GvEsTy9x3pyB5x8JaVRSQrawksERYXjJYxAMb3j2FWSQ", "fee": 5000000, "feeAssetId": null, "timestamp": 1629371299020, "version": 2, "chainId": 84, "sender": "3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh", "senderPublicKey": "6r8zYctv2wqVaDctJMYvewjk2Hs2k3MSmcW63GbU1jx9", "proofs": [ "2JfvNSA2KzqMfPNFPq9BXrv7CSQkJkyufV87j9jttSCvDbK3ibM1aRUyb6xEW2oJUE4GtrWWtoTfM7PYwmkN7gXS" ], "script": "base64:AAIFAAAAAAAAABwIAhIAEgMKAQgSBAoCCAgSBQoDCAgIEgQKAggIAAAAEgAAAAALZWdnc0Fzc2V0SWQBAAAAICUCZcz3BGjIvgFZkXjlWFo4ZhQTrUpMSrf+BRdIFxaDAAAAABBkZWxheUZvckhhdGNoaW5nAAAAAAAAAAAAAAAAABNkaXNjb3VudENvZWZmaWNpZW50AAAAAAAAAAAKAAAAAAt0eXBlc0Ftb3VudAAAAAAAAAAABgAAAAAScmVmQ29udHJhY3RBZGRyZXNzAQAAABoBV0m6fUK8n7ARhcHKmKrWNO3wC83v6MPupQAAAAANUmVmZXJlclJld2FyZAAAAAAAAAAABQAAAAAPSGF0Y2hpbmdTdGFydGVkAgAAABBIQVRDSElOR19TVEFSVEVEAAAAABBIYXRjaGluZ0ZpbmlzaGVkAgAAABFIQVRDSElOR19GSU5JU0hFRAAAAAAOcmViaXJ0aEFkZHJlc3MBAAAAGgFXcJF11J7rej4f+WQAMMjcRl1cmkTfdcL3AQAAABRnZXRIYXRjaGluZ1N0YXR1c0tleQAAAAIAAAAHYWRkcmVzcwAAAAR0eElkCQABLAA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AAAECAAAAFWFkbWluIG9yIHJlYmlydGggb25seQQAAAAHZHVja0dlbggJAQAAAAV2YWx1ZQAAAAEJAAPsAAAAAQUAAAAFYXNzZXQAAAAEbmFtZQQAAAAGbGV0dGVyCQEAAAAJdGFrZVJpZ2h0AAAAAgkAAS8AAAACBQAAAAdkdWNrR2VuAAAAAAAAAAAGAAAAAAAAAAABBAAAAAdmYXJtR2VuCQABLAAAAAIJAAEsAAAAAgIAAAABOAUAAAAGbGV0dGVyAgAAAAItRwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkBAAAAD2dldER1Y2tTdGF0c0tleQAAAAEFAAAAB2R1Y2tHZW4JAABlAAAAAgkBAAAADXRyeUdldEludGVnZXIAAAABCQEAAAAPZ2V0RHVja1N0YXRzS2V5AAAAAQUAAAAHZHVja0dlbgAAAAAAAAAAAQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAABnN0YXRzXwUAAAAHZmFybUdlbgIAAAAJX3F1YW50aXR5CQAAZQAAAAIJAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQkAASwAAAACCQABLAAAAAICAAAABnN0YXRzXwUAAAAHZmFybUdlbgIAAAAJX3F1YW50aXR5AAAAAAAAAAABBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZTYNtw=", "height": 1665149, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3xMLPvYyVihhARpCLDq25tzEGLB6N4o9qKxvtjuUGa64 Next: 8ncxjSy8oG1UxcYVLY7v8WyjhXo6j7hosB1Ycwq1mgiu Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let eggsAssetId = base58'3VUCuh9dWqe54SdzzNUkXhFXpc8UQynnJVh42B7MjNzN'
55
66 let delayForHatching = 0
77
88 let discountCoefficient = 10
99
1010 let typesAmount = 6
1111
1212 let refContractAddress = base58'3P8ejTkfRpz9WqCwCuihesNXU5k3zmFFfVe'
1313
1414 let RefererReward = 5
1515
1616 let HatchingStarted = "HATCHING_STARTED"
1717
1818 let HatchingFinished = "HATCHING_FINISHED"
1919
2020 let rebirthAddress = base58'3PCC6fVHNa6289DTDmcUo3RuLaFmteZZsmQ'
2121
2222 func getHatchingStatusKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_status")
2323
2424
2525 func getHatchingFinishHeightKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_fh")
2626
2727
2828 func getDuckIdKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_di")
2929
3030
3131 func getDuckStatsKey (genString) = (("stats_" + genString) + "_amount")
3232
3333
3434 func tryGetInteger (key) = {
3535 let val = match getInteger(this, key) {
3636 case b: Int =>
3737 b
3838 case _ =>
3939 0
4040 }
4141 val
4242 }
4343
4444
4545 func getRandomNumber (variants,txId,hatchingFinishHeight,offset) = {
4646 let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1)))
4747 let randomHash = sha256((txId + value(randomSeedBlock.vrf)))
4848 (toInt(randomHash, (offset * 8)) % variants)
4949 }
5050
5151
5252 func wasUniqueBorn (gen) = tryGetInteger(getDuckStatsKey(gen))
5353
5454
5555 func getRandomName (txId,hatchingFinishHeight) = {
5656 let jackpotRandom = getRandomNumber(500, txId, hatchingFinishHeight, 0)
5757 if (if ((jackpotRandom == 1))
5858 then (wasUniqueBorn("DUCK-WWWWWWWW-JU") == 0)
5959 else false)
6060 then $Tuple2("DUCK-WWWWWWWW-JU", "8W-J")
6161 else {
6262 let typeRandom = getRandomNumber(4, txId, hatchingFinishHeight, 0)
6363 let colorRandom = getRandomNumber(4, txId, hatchingFinishHeight, 1)
6464 let color = if ((colorRandom == 0))
6565 then "Y"
6666 else if ((colorRandom == 1))
6767 then "G"
6868 else if ((colorRandom == 2))
6969 then "B"
7070 else "R"
7171 $Tuple2(("DUCK-EEEEEEEE-G" + color), "8E-G")
7272 }
7373 }
7474
7575
7676 func countEggsNeededAmount (totalDucksAmount) = {
7777 let n = totalDucksAmount
7878 let g = discountCoefficient
7979 let t = typesAmount
8080 let price = pow((100 + ((n * g) / (10 * t))), 2, 5, 1, 2, DOWN)
8181 price
8282 }
8383
8484
8585 @Callable(i)
8686 func startDuckHatching () = {
8787 let totalDucksAmount = tryGetInteger("ducks_amount")
8888 let eggsNeeded = countEggsNeededAmount(totalDucksAmount)
8989 let firstPayment = value(i.payments[0])
9090 if ((firstPayment.assetId != eggsAssetId))
9191 then throw(("You can attach only EGG tokens with the following asset id: " + toBase58String(eggsAssetId)))
9292 else if ((eggsNeeded > firstPayment.amount))
9393 then throw(("To hatch a duck you currently need the following amount of EGGlets: " + toString(eggsNeeded)))
9494 else {
9595 let refererReward = ((firstPayment.amount / 100) * RefererReward)
9696 [StringEntry(getHatchingStatusKey(toString(i.caller), i.transactionId), HatchingStarted), IntegerEntry(getHatchingFinishHeightKey(toString(i.caller), i.transactionId), (height + delayForHatching)), IntegerEntry("ducks_amount", (totalDucksAmount + 1)), IntegerEntry("ducks_last_price", eggsNeeded), ScriptTransfer(i.caller, (firstPayment.amount - eggsNeeded), eggsAssetId)]
9797 }
9898 }
9999
100100
101101
102102 @Callable(i)
103103 func finishDuckHatching (txIdStr) = {
104104 let txId = fromBase58String(txIdStr)
105105 let hatchingStatusKey = getHatchingStatusKey(toString(i.caller), txId)
106106 let finishHeightKey = getHatchingFinishHeightKey(toString(i.caller), txId)
107107 let duckIdKey = getDuckIdKey(toString(i.caller), txId)
108108 let hatchingTxStatus = getStringValue(this, hatchingStatusKey)
109109 let hatchingFinishHeight = getIntegerValue(this, finishHeightKey)
110110 if ((hatchingTxStatus == HatchingFinished))
111111 then {
112112 let duckId = getStringValue(this, getDuckIdKey(toString(i.caller), txId))
113113 throw(("The duck was hatched and claimed already, here is the folowing: " + duckId))
114114 }
115115 else if ((hatchingFinishHeight > height))
116116 then throw((((("Hatching is not finished yet " + toString((hatchingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((hatchingFinishHeight - height))) + " minutes"))
117117 else {
118118 let $t045724638 = getRandomName(txId, hatchingFinishHeight)
119119 let duckGen = $t045724638._1
120120 let farmGen = $t045724638._2
121121 let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}")
122122 let asset = Issue(duckGen, description, 1, 0, false, unit, hatchingFinishHeight)
123123 let assetId = calculateAssetId(asset)
124124 let amount = (tryGetInteger(getDuckStatsKey(duckGen)) + 1)
125125 [StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getDuckStatsKey(duckGen), amount), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(i.caller, 1, assetId)]
126126 }
127127 }
128128
129129
130130
131131 @Callable(i)
132132 func issueFreeDuck (address,txIdStr) = if ((i.caller != Address(rebirthAddress)))
133133 then throw("rebirth only")
134134 else {
135135 let txId = fromBase58String(txIdStr)
136136 let hatchingStatusKey = getHatchingStatusKey(address, txId)
137137 let finishHeightKey = getHatchingFinishHeightKey(address, txId)
138138 let totalDucksAmount = tryGetInteger("ducks_amount")
139139 let eggsNeeded = countEggsNeededAmount(totalDucksAmount)
140140 let $t057945846 = getRandomName(txId, height)
141141 let duckGen = $t057945846._1
142142 let farmGen = $t057945846._2
143143 let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}")
144144 let asset = Issue(duckGen, description, 1, 0, false, unit, height)
145145 let assetId = calculateAssetId(asset)
146146 let amount = (tryGetInteger(getDuckStatsKey(duckGen)) + 1)
147147 let duckIdKey = getDuckIdKey(address, txId)
148148 $Tuple2([IntegerEntry(getHatchingFinishHeightKey(address, txId), height), IntegerEntry("ducks_amount", (totalDucksAmount + 1)), IntegerEntry("ducks_last_price", eggsNeeded), StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getDuckStatsKey(duckGen), amount), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId))
149149 }
150150
151151
152152
153153 @Callable(i)
154154 func issueJackpot (address,txIdStr,gen) = if (if ((i.caller != Address(rebirthAddress)))
155155 then (i.caller != this)
156156 else false)
157157 then throw("admin or rebirth only")
158158 else {
159159 let txId = fromBase58String(txIdStr)
160160 let hatchingStatusKey = getHatchingStatusKey(address, txId)
161161 let finishHeightKey = getHatchingFinishHeightKey(address, txId)
162162 let totalDucksAmount = tryGetInteger("ducks_amount")
163163 let eggsNeeded = countEggsNeededAmount(totalDucksAmount)
164164 let $t072897341 = $Tuple2((("DUCK-" + gen) + "-JU"), "8W-J")
165165 let duckGen = $t072897341._1
166166 let farmGen = $t072897341._2
167167 let description = (("{\"genotype\": \"" + duckGen) + "\", \"crossbreeding\": true}")
168168 let asset = Issue(duckGen, description, 1, 0, false, unit, height)
169169 let assetId = calculateAssetId(asset)
170170 let duckIdKey = getDuckIdKey(address, txId)
171171 $Tuple2([IntegerEntry(getHatchingFinishHeightKey(address, txId), height), IntegerEntry("ducks_amount", (totalDucksAmount + 1)), IntegerEntry("ducks_last_price", eggsNeeded), StringEntry(hatchingStatusKey, HatchingFinished), StringEntry(duckIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), duckIdKey), IntegerEntry(getDuckStatsKey(duckGen), (tryGetInteger(getDuckStatsKey(duckGen)) + 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) + 1)), asset, ScriptTransfer(value(addressFromString(address)), 1, assetId)], toBase58String(assetId))
172172 }
173173
174174
175175
176176 @Callable(i)
177177 func reduceRarity (assetId,fGen) = {
178178 let asset = fromBase58String(assetId)
179179 if (if ((i.caller != Address(rebirthAddress)))
180180 then (i.caller != this)
181181 else false)
182182 then throw("admin or rebirth only")
183183 else {
184184 let duckGen = value(assetInfo(asset)).name
185185 let letter = takeRight(take(duckGen, 6), 1)
186186 let farmGen = (("8" + letter) + "-G")
187187 [IntegerEntry(getDuckStatsKey(duckGen), (tryGetInteger(getDuckStatsKey(duckGen)) - 1)), IntegerEntry((("stats_" + farmGen) + "_quantity"), (tryGetInteger((("stats_" + farmGen) + "_quantity")) - 1))]
188188 }
189189 }
190190
191191
192192 @Verifier(tx)
193193 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
194194

github/deemru/w8io/169f3d6 
32.95 ms