tx · BWFf8oST9Bw67RZ37ChE2cLZd4Js5qNR4cQ2idL4zhQD

3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z:  -0.00900000 Waves

2022.07.06 21:25 [2128182] smart account 3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z > SELF 0.00000000 Waves

{ "type": 13, "id": "BWFf8oST9Bw67RZ37ChE2cLZd4Js5qNR4cQ2idL4zhQD", "fee": 900000, "feeAssetId": null, "timestamp": 1657131950226, "version": 2, "chainId": 84, "sender": "3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z", "senderPublicKey": "B9LahpBYmTXMH24nttq3q9Dss7BEyDSaC8UFgCCwRgsi", "proofs": [ "4YWVsfuPXunjwrvFdNQhxmDAgctHGfv76Gk9zt13PiZ9wQ3BiXiGprhtvN8vVpKf4Qu5dPoUX1vq1yehFvfLT1ph" ], "script": "base64:AAIFAAAAAAAAABQIAhIAEgMKAQgSBAoCCAgSAwoBCAAAABYAAAAAFG1vbnN0ZXJJc3N1ZXJBZGRyZXNzAQAAABoBVIddicTOcxXMJUtYHNA7AK2E9TG+vEIPYwAAAAAQbWF4Q2hpbGRzQ2FuSGF2ZQAAAAAAAAAAAAAAAAAQZGVsYXlGb3JCcmVlZGluZwAAAAAAAAAAAQAAAAAPQnJlZWRpbmdTdGFydGVkAgAAABBCUkVFRElOR19TVEFSVEVEAAAAABBCcmVlZGluZ0ZpbmlzaGVkAgAAABFCUkVFRElOR19GSU5JU0hFRAAAAAAEbnVsbAIAAAAEbnVsbAAAAAARdG90YWxCcmVlZGVkQ291bnQCAAAAEl90b3RhbEJyZWVkZWRDb3VudAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAA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AAAB2Fzc2V0SWQFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAlgAAAABBQAAAAdhc3NldElkCQACWAAAAAEFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkCQACWAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAKZGVsZXRlRGF0YQAAAAEAAAADa2V5AwkBAAAAAiE9AAAAAggIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwgFAAAABHRoaXMAAAAFYnl0ZXMJAAACAAAAAQIAAAAZT25seSBPd25lciBIYXMgUGVybWlzc2lvbgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAAAAAC2myfF", "height": 2128182, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ai8emGQdLjv5i7HcbBdC4N7oumXUzkbtLHuCaycaYJNy Next: AokDQuauoTPV5gLRdmyZRByvoP6ewVtp1z2aVgZwXfqJ Diff:
OldNewDifferences
152152 then {
153153 let parent1Id = getStringByKey(getMonsterParentKey(txId, 1))
154154 let parent2Id = getStringByKey(getMonsterParentKey(txId, 2))
155-[StringEntry(processStatusKey, BreedingFinished), DeleteEntry((getProcessStatusKey(toString(i.caller), i.transactionId) + BreedingStarted)), StringEntry((processStatusKey + BreedingFinished), txIdStr), StringEntry(monsterIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), monsterIdKey), StringEntry(toBase58String(assetId), toBase58String(assetId)), IntegerEntry(totalBreededCount, (getTotalBreededCount() + 1)), ScriptTransfer(i.caller, 1, assetId), ScriptTransfer(i.caller, 1, fromBase58String(parent1Id)), ScriptTransfer(i.caller, 1, fromBase58String(parent2Id))]
155+[StringEntry(processStatusKey, BreedingFinished), DeleteEntry((getProcessStatusKey(toString(i.caller), toBytes(txIdStr)) + BreedingStarted)), StringEntry((processStatusKey + BreedingFinished), txIdStr), StringEntry(monsterIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), monsterIdKey), StringEntry(toBase58String(assetId), toBase58String(assetId)), IntegerEntry(totalBreededCount, (getTotalBreededCount() + 1)), ScriptTransfer(i.caller, 1, assetId), ScriptTransfer(i.caller, 1, fromBase58String(parent1Id)), ScriptTransfer(i.caller, 1, fromBase58String(parent2Id))]
156156 }
157157 else throw("Strict value is not equal to itself.")
158158 }
178178 }
179179
180180
181+
182+@Callable(i)
183+func deleteData (key) = if ((i.caller.bytes != this.bytes))
184+ then throw("Only Owner Has Permission")
185+ else [DeleteEntry(key)]
186+
187+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let monsterIssuerAddress = base58'3N2Fq3xoRamZ62SFkonL1kcSs9womjpF7KQ'
55
66 let maxChildsCanHave = 0
77
88 let delayForBreeding = 1
99
1010 let BreedingStarted = "BREEDING_STARTED"
1111
1212 let BreedingFinished = "BREEDING_FINISHED"
1313
1414 let null = "null"
1515
1616 let totalBreededCount = "_totalBreededCount"
1717
1818 func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
1919
2020
2121 func getStringByKey (key) = valueOrElse(getString(this, key), "")
2222
2323
2424 func getTotalBreededCount () = valueOrElse(getInteger(this, totalBreededCount), 0)
2525
2626
2727 func checkAssetInIssueDapp (assetId) = {
2828 let result1 = valueOrElse(getString(Address(monsterIssuerAddress), assetId), null)
2929 let result2 = valueOrElse(getString(this, assetId), null)
3030 if ((result1 != null))
3131 then true
3232 else (result2 != null)
3333 }
3434
3535
3636 func constructHaveMonsterChildrenKey (assetId) = {
3737 let constructedStr = (("asset_" + assetId) + "_children")
3838 constructedStr
3939 }
4040
4141
4242 func canBeBreeded (asset1Id,asset2Id) = {
4343 let asset1Gen = split(value(assetInfo(asset1Id)).name, "")
4444 let asset2Gen = split(value(assetInfo(asset2Id)).name, "")
4545 true
4646 }
4747
4848
4949 func getMonsterParentKey (txId,parentNum) = ((("inittx_" + toBase58String(txId)) + "_parent") + toString(parentNum))
5050
5151
5252 func getProcessStatusKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_status_")
5353
5454
5555 func getProcessFinishHeightKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_fh")
5656
5757
5858 func getMonsterIdKey (address,txId) = (((address + "_") + toBase58String(txId)) + "_di")
5959
6060
6161 func getRandomNumber (variants,txId,hatchingFinishHeight,offset) = {
6262 let randomSeedBlock = value(blockInfoByHeight((hatchingFinishHeight - 1)))
6363 let randomHash = sha256_16Kb((txId + value(randomSeedBlock.vrf)))
6464 (toInt(randomHash, offset) % variants)
6565 }
6666
6767
6868 func generateMonster (txId,breedingFinishHeight) = {
6969 let colorRandom = getRandomNumber(4, txId, breedingFinishHeight, 11)
7070 let color = if ((colorRandom == 0))
7171 then "Y"
7272 else if ((colorRandom == 1))
7373 then "G"
7474 else if ((colorRandom == 2))
7575 then "B"
7676 else "R"
7777 let parent1Id = fromBase58String(getStringByKey(getMonsterParentKey(txId, 1)))
7878 let parent2Id = fromBase58String(getStringByKey(getMonsterParentKey(txId, 2)))
7979 let parent1Gen = split(value(assetInfo(parent1Id)).name, "")
8080 let parent2Gen = split(value(assetInfo(parent2Id)).name, "")
8181 let gen = ((((("MONSTER-" + color) + "-") + parent1Gen[2]) + "-") + parent2Gen[2])
8282 gen
8383 }
8484
8585
8686 func getMonsterStatsKey (genString) = (("stats_" + genString) + "_amount")
8787
8888
8989 func getProcessTxStatus (processStatusKey) = valueOrElse(getString(this, processStatusKey), "")
9090
9191
9292 func getProcessFinishHeight (finishHeightKey) = valueOrElse(getInteger(this, finishHeightKey), 0)
9393
9494
9595 @Callable(i)
9696 func startMonsterBreeding () = {
9797 let firstPayment = value(i.payments[0])
9898 let secondPayment = value(i.payments[1])
9999 let firstAssetId = toBase58String(value(firstPayment.assetId))
100100 let secondAssetId = toBase58String(value(secondPayment.assetId))
101101 if (if ((firstPayment.amount != 1))
102102 then true
103103 else (secondPayment.amount != 1))
104104 then throw("NFT is not attached")
105105 else if (!(if (checkAssetInIssueDapp(firstAssetId))
106106 then checkAssetInIssueDapp(secondAssetId)
107107 else false))
108108 then throw("You need to attach 2 valid NFT-monsters.")
109109 else if (if ((getNumberByKey(constructHaveMonsterChildrenKey(firstAssetId)) > maxChildsCanHave))
110110 then true
111111 else (getNumberByKey(constructHaveMonsterChildrenKey(secondAssetId)) > maxChildsCanHave))
112112 then throw("One monster can be used for breeding only once in its lifetime.")
113113 else {
114114 let breededStatus = canBeBreeded(fromBase58String(firstAssetId), fromBase58String(secondAssetId))
115115 if (!(breededStatus))
116116 then throw("These monsters cannot be breeded")
117117 else [IntegerEntry(constructHaveMonsterChildrenKey(firstAssetId), 1), IntegerEntry(constructHaveMonsterChildrenKey(secondAssetId), 1), StringEntry(getMonsterParentKey(i.transactionId, 1), firstAssetId), StringEntry(getMonsterParentKey(i.transactionId, 2), secondAssetId), StringEntry(getProcessStatusKey(toString(i.caller), i.transactionId), BreedingStarted), StringEntry((getProcessStatusKey(toString(i.caller), i.transactionId) + BreedingStarted), toBase58String(i.transactionId)), IntegerEntry(getProcessFinishHeightKey(toString(i.caller), i.transactionId), (height + delayForBreeding))]
118118 }
119119 }
120120
121121
122122
123123 @Callable(i)
124124 func finishMonsterBreeding (txIdStr) = {
125125 let txId = fromBase58String(txIdStr)
126126 let processStatusKey = getProcessStatusKey(toString(i.caller), txId)
127127 let finishHeightKey = getProcessFinishHeightKey(toString(i.caller), txId)
128128 let monsterIdKey = getMonsterIdKey(toString(i.caller), txId)
129129 let processTxStatus = getProcessTxStatus(processStatusKey)
130130 let processFinishHeight = getProcessFinishHeight(finishHeightKey)
131131 if ((processTxStatus == BreedingFinished))
132132 then {
133133 let monsterId = getStringValue(this, getMonsterIdKey(toString(i.caller), txId))
134134 throw(("The monster was breeded and claimed already, here is the folowing: " + monsterId))
135135 }
136136 else if ((processTxStatus == ""))
137137 then throw("You havent monsters to claim")
138138 else if ((processFinishHeight > height))
139139 then throw((((("Breeding is not finished yet " + toString((processFinishHeight - height))) + " blocks remaining, it will take around ") + toString((processFinishHeight - height))) + " minutes"))
140140 else {
141141 let monsterGen = generateMonster(txId, processFinishHeight)
142142 let description = (("{\"genotype\": \"" + monsterGen) + "\", \"crossbreeding\": true}")
143143 let nftImageLink = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + monsterGen) + ".png")
144144 let collectionName = "artefacts"
145145 let assetId = match invoke(Address(monsterIssuerAddress), "createNFT", [monsterGen, description, nftImageLink, collectionName], nil) {
146146 case x: String =>
147147 fromBase58String(x)
148148 case _ =>
149149 throw("something went wrong during the creation of NFT")
150150 }
151151 if ((assetId == assetId))
152152 then {
153153 let parent1Id = getStringByKey(getMonsterParentKey(txId, 1))
154154 let parent2Id = getStringByKey(getMonsterParentKey(txId, 2))
155-[StringEntry(processStatusKey, BreedingFinished), DeleteEntry((getProcessStatusKey(toString(i.caller), i.transactionId) + BreedingStarted)), StringEntry((processStatusKey + BreedingFinished), txIdStr), StringEntry(monsterIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), monsterIdKey), StringEntry(toBase58String(assetId), toBase58String(assetId)), IntegerEntry(totalBreededCount, (getTotalBreededCount() + 1)), ScriptTransfer(i.caller, 1, assetId), ScriptTransfer(i.caller, 1, fromBase58String(parent1Id)), ScriptTransfer(i.caller, 1, fromBase58String(parent2Id))]
155+[StringEntry(processStatusKey, BreedingFinished), DeleteEntry((getProcessStatusKey(toString(i.caller), toBytes(txIdStr)) + BreedingStarted)), StringEntry((processStatusKey + BreedingFinished), txIdStr), StringEntry(monsterIdKey, toBase58String(assetId)), StringEntry(toBase58String(assetId), monsterIdKey), StringEntry(toBase58String(assetId), toBase58String(assetId)), IntegerEntry(totalBreededCount, (getTotalBreededCount() + 1)), ScriptTransfer(i.caller, 1, assetId), ScriptTransfer(i.caller, 1, fromBase58String(parent1Id)), ScriptTransfer(i.caller, 1, fromBase58String(parent2Id))]
156156 }
157157 else throw("Strict value is not equal to itself.")
158158 }
159159 }
160160
161161
162162
163163 @Callable(i)
164164 func issueNFTs (name,description) = if ((i.caller.bytes != this.bytes))
165165 then throw("Only Owner Has Permission")
166166 else {
167167 let nftImageLink = "https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/display.png"
168168 let collectionName = "artefacts"
169169 let assetId = match invoke(Address(monsterIssuerAddress), "createNFT", [name, description, nftImageLink, collectionName], nil) {
170170 case x: String =>
171171 fromBase58String(x)
172172 case _ =>
173173 throw("something went wrong during the creation of NFT")
174174 }
175175 if ((assetId == assetId))
176176 then [StringEntry(toBase58String(assetId), toBase58String(assetId)), StringEntry(toBase58String(i.transactionId), toBase58String(assetId))]
177177 else throw("Strict value is not equal to itself.")
178178 }
179179
180180
181+
182+@Callable(i)
183+func deleteData (key) = if ((i.caller.bytes != this.bytes))
184+ then throw("Only Owner Has Permission")
185+ else [DeleteEntry(key)]
186+
187+

github/deemru/w8io/026f985 
43.54 ms