tx · Ai8emGQdLjv5i7HcbBdC4N7oumXUzkbtLHuCaycaYJNy

3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z:  -0.00900000 Waves

2022.07.06 21:02 [2128160] smart account 3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z > SELF 0.00000000 Waves

{ "type": 13, "id": "Ai8emGQdLjv5i7HcbBdC4N7oumXUzkbtLHuCaycaYJNy", "fee": 900000, "feeAssetId": null, "timestamp": 1657130515790, "version": 2, "chainId": 84, "sender": "3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z", "senderPublicKey": "B9LahpBYmTXMH24nttq3q9Dss7BEyDSaC8UFgCCwRgsi", "proofs": [ "3JHmMDKHihiW6yLjDWtgv2ysRD4yPSx9WatTPLLWumT5QVx5D3SKPfDmDtWm3irqgBiCZBm587WibBAwY6pMEhux" ], "script": "base64:AAIFAAAAAAAAAA8IAhIAEgMKAQgSBAoCCAgAAAAWAAAAABRtb25zdGVySXNzdWVyQWRkcmVzcwEAAAAaAVSHXYnEznMVzCVLWBzQOwCthPUxvrxCD2MAAAAAEG1heENoaWxkc0NhbkhhdmUAAAAAAAAAAAAAAAAAEGRlbGF5Rm9yQnJlZWRpbmcAAAAAAAAAAAEAAAAAD0JyZWVkaW5nU3RhcnRlZAIAAAAQQlJFRURJTkdfU1RBUlRFRAAAAAAQQnJlZWRpbmdGaW5pc2hlZAIAAAARQlJFRURJTkdfRklOSVNIRUQAAAAABG51bGwCAAAABG51bGwAAAAAEXRvdGFsQnJlZWRlZENvdW50AgAAABJfdG90YWxCcmVlZGVkQ291bnQBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQIA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ZAUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEFAAAAB2Fzc2V0SWQJAAJYAAAAAQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQJAAJYAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAAHiMkP", "height": 2128160, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: VHgE58kH9Rhhaw2CuHQqzXbEYEezcLAfyRG3d48JtWi Next: BWFf8oST9Bw67RZ37ChE2cLZd4Js5qNR4cQ2idL4zhQD Diff:
OldNewDifferences
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 }
136- else if ((processFinishHeight > height))
137- then throw((((("Breeding is not finished yet " + toString((processFinishHeight - height))) + " blocks remaining, it will take around ") + toString((processFinishHeight - height))) + " minutes"))
138- else {
139- let monsterGen = generateMonster(txId, processFinishHeight)
140- let description = (("{\"genotype\": \"" + monsterGen) + "\", \"crossbreeding\": true}")
141- let nftImageLink = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + monsterGen) + ".png")
142- let collectionName = "artefacts"
143- let assetId = match invoke(Address(monsterIssuerAddress), "createNFT", [monsterGen, description, nftImageLink, collectionName], nil) {
144- case x: String =>
145- fromBase58String(x)
146- case _ =>
147- throw("something went wrong during the creation of NFT")
148- }
149- if ((assetId == assetId))
150- then {
151- let parent1Id = getStringByKey(getMonsterParentKey(txId, 1))
152- let parent2Id = getStringByKey(getMonsterParentKey(txId, 2))
153-[StringEntry(processStatusKey, BreedingFinished), 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))]
154- }
155- else throw("Strict value is not equal to itself.")
156- }
136+ else if ((processTxStatus == ""))
137+ then throw("You havent monsters to claim")
138+ else if ((processFinishHeight > height))
139+ then throw((((("Breeding is not finished yet " + toString((processFinishHeight - height))) + " blocks remaining, it will take around ") + toString((processFinishHeight - height))) + " minutes"))
140+ else {
141+ let monsterGen = generateMonster(txId, processFinishHeight)
142+ let description = (("{\"genotype\": \"" + monsterGen) + "\", \"crossbreeding\": true}")
143+ let nftImageLink = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + monsterGen) + ".png")
144+ let collectionName = "artefacts"
145+ let assetId = match invoke(Address(monsterIssuerAddress), "createNFT", [monsterGen, description, nftImageLink, collectionName], nil) {
146+ case x: String =>
147+ fromBase58String(x)
148+ case _ =>
149+ throw("something went wrong during the creation of NFT")
150+ }
151+ if ((assetId == assetId))
152+ then {
153+ let parent1Id = getStringByKey(getMonsterParentKey(txId, 1))
154+ 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))]
156+ }
157+ else throw("Strict value is not equal to itself.")
158+ }
157159 }
158160
159161
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 }
136- else if ((processFinishHeight > height))
137- then throw((((("Breeding is not finished yet " + toString((processFinishHeight - height))) + " blocks remaining, it will take around ") + toString((processFinishHeight - height))) + " minutes"))
138- else {
139- let monsterGen = generateMonster(txId, processFinishHeight)
140- let description = (("{\"genotype\": \"" + monsterGen) + "\", \"crossbreeding\": true}")
141- let nftImageLink = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + monsterGen) + ".png")
142- let collectionName = "artefacts"
143- let assetId = match invoke(Address(monsterIssuerAddress), "createNFT", [monsterGen, description, nftImageLink, collectionName], nil) {
144- case x: String =>
145- fromBase58String(x)
146- case _ =>
147- throw("something went wrong during the creation of NFT")
148- }
149- if ((assetId == assetId))
150- then {
151- let parent1Id = getStringByKey(getMonsterParentKey(txId, 1))
152- let parent2Id = getStringByKey(getMonsterParentKey(txId, 2))
153-[StringEntry(processStatusKey, BreedingFinished), 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))]
154- }
155- else throw("Strict value is not equal to itself.")
156- }
136+ else if ((processTxStatus == ""))
137+ then throw("You havent monsters to claim")
138+ else if ((processFinishHeight > height))
139+ then throw((((("Breeding is not finished yet " + toString((processFinishHeight - height))) + " blocks remaining, it will take around ") + toString((processFinishHeight - height))) + " minutes"))
140+ else {
141+ let monsterGen = generateMonster(txId, processFinishHeight)
142+ let description = (("{\"genotype\": \"" + monsterGen) + "\", \"crossbreeding\": true}")
143+ let nftImageLink = (("https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/" + monsterGen) + ".png")
144+ let collectionName = "artefacts"
145+ let assetId = match invoke(Address(monsterIssuerAddress), "createNFT", [monsterGen, description, nftImageLink, collectionName], nil) {
146+ case x: String =>
147+ fromBase58String(x)
148+ case _ =>
149+ throw("something went wrong during the creation of NFT")
150+ }
151+ if ((assetId == assetId))
152+ then {
153+ let parent1Id = getStringByKey(getMonsterParentKey(txId, 1))
154+ 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))]
156+ }
157+ else throw("Strict value is not equal to itself.")
158+ }
157159 }
158160
159161
160162
161163 @Callable(i)
162164 func issueNFTs (name,description) = if ((i.caller.bytes != this.bytes))
163165 then throw("Only Owner Has Permission")
164166 else {
165167 let nftImageLink = "https://ipfs.io/ipfs/bafybeidwsupz24ozr244breub5obhl5dxh22xr3wu7xumm4mlf7tgmocvi/display.png"
166168 let collectionName = "artefacts"
167169 let assetId = match invoke(Address(monsterIssuerAddress), "createNFT", [name, description, nftImageLink, collectionName], nil) {
168170 case x: String =>
169171 fromBase58String(x)
170172 case _ =>
171173 throw("something went wrong during the creation of NFT")
172174 }
173175 if ((assetId == assetId))
174176 then [StringEntry(toBase58String(assetId), toBase58String(assetId)), StringEntry(toBase58String(i.transactionId), toBase58String(assetId))]
175177 else throw("Strict value is not equal to itself.")
176178 }
177179
178180

github/deemru/w8io/026f985 
38.21 ms