tx · 657u2mC66WZkMJwboiPn8qx1jSuBpgLgTb99aRMsGcsU

3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4:  -0.00300000 Waves

2023.03.24 02:13 [2503298] smart account 3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4 > SELF 0.00000000 Waves

{ "type": 13, "id": "657u2mC66WZkMJwboiPn8qx1jSuBpgLgTb99aRMsGcsU", "fee": 300000, "feeAssetId": null, "timestamp": 1679613251987, "version": 2, "chainId": 84, "sender": "3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4", "senderPublicKey": "DoAid1WtwHRuonKq6xKkbxijk1QQhXG75vdyuUM7n7NN", "proofs": [ "28zfZpQADwW1SXPhnn7d2f5PK7ykznZbv6h1peummyX4idr6Z7Twq5UGaBjTHXpA6K15WvBWLBjho4Y7xvzdZQrN" ], "script": "base64:BgIQCAISBAoCCAgSBAoCCAgSAAwABmFkbWluMQIsQmd4cENtNHd4Ylc4U0tMUEtabmY0S1UyRDZaVTI5b3Y4TWdacmthU0FxcFkABmFkbWluMgIAABZrZXlfZmFybU5mdF9uZXh0TnVtYmVyAhJmYXJtTmZ0X25leHROdW1iZXIADGZhcm1OZnRfbmFtZQILQ2F0dGxlIE5GVCAAC2Nvd05mdF9uYW1lAgdDb3cgTkZUABNmYXJtTmZ0X2Rlc2NyaXB0aW9uAjd7ImRlc2NyaXB0aW9uIjogIk5GVCBmb3IgYXNzb3RpYXRlZCBjYXR0bGUiLCAiaW1hZ2UiOiAiAARsaXZlAgZBQ1RJVkUABGRlYWQCCElOQUNUSVZFAAZmYXR0ZW4CBkZBVFRFTgENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAEMdHJ5R2V0U3RyaW5nAQNrZXkEByRtYXRjaDAJAJ0IAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACB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tb3RoZXJJZCI6ICIFCG1vdGhlcklkAhAiLCAiZmF0aGVySWQiOiAiBQhmYXRoZXJJZAIMIiwgInR5cGUiOiAiBQR0eXBlAhEiLCAiaW1hZ2VMaW5rIjogIgUJaW1hZ2VMaW5rAgEiBAVpc3N1ZQkAwggFBQtjb3dOZnRfbmFtZQkArAICCQCsAgIFC2Rlc2NyaXB0aW9uBQlpbWFnZUxpbmsCAiJ9AAEAAAcEAmlkCQC4CAEFBWlzc3VlCQDMCAIFBWlzc3VlCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudAABBQJpZAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgkArAICCQCsAgICBWZhcm1fBQdhZGRyZXNzAgVfY293XwkA2AQBBQJpZAIHX3N0YXR1cwUEbGl2ZQkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgIEY293XwkA2AQBBQJpZAIGX293bmVyBQdhZGRyZXNzBQNuaWwJAAIBAhJOb3QgYWxsb3dlZCBjYWxsZXIBaQEEaW5pdAAECWNhbGxlclBiawkA2AQBCAUBaQ9jYWxsZXJQdWJsaWNLZXkDCQEFYWxsb3cBBQljYWxsZXJQYmsJAMwIAgkBDEludGVnZXJFbnRyeQIFFmtleV9mYXJtTmZ0X25leHROdW1iZXIAAQUDbmlsCQACAQISTm90IGFsbG93ZWQgY2FsbGVyAEwmESA=", "height": 2503298, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 1GMcigNkntC3S77F8Afko6jPHbzLYYheVw7WWfY8pTB Next: Ai1pVMWpA4zLf3oPUNrxKw27AJhDYGcd4xd2PNe8wV5S Diff:
OldNewDifferences
1111
1212 let cowNft_name = "Cow NFT"
1313
14-let farmNft_description = "{\"image\": \""
14+let farmNft_description = "{\"description\": \"NFT for assotiated cattle\", \"image\": \""
1515
1616 let live = "ACTIVE"
1717
4545 then {
4646 let recipient = addressFromStringValue(address)
4747 let p_arr = split_4C(params, "|")
48- let $t014921564 = $Tuple3(p_arr[0], p_arr[1], p_arr[2])
49- let farmName = $t014921564._1
50- let farmLocation = $t014921564._2
51- let imageLink = $t014921564._3
48+ let $t015401612 = $Tuple3(p_arr[0], p_arr[1], p_arr[2])
49+ let farmName = $t015401612._1
50+ let farmLocation = $t015401612._2
51+ let imageLink = $t015401612._3
5252 let nextNum = tryGetInteger(key_farmNft_nextNumber)
5353 if ((nextNum == nextNum))
5454 then {
7070 then {
7171 let recipient = addressFromStringValue(address)
7272 let p_arr = split_4C(params, params)
73- let $t026952844 = $Tuple7(p_arr[0], p_arr[1], p_arr[2], p_arr[3], p_arr[4], p_arr[5], p_arr[6])
74- let cowCode = $t026952844._1
75- let bornedFarmAddress = $t026952844._2
76- let genes = $t026952844._3
77- let motherId = $t026952844._4
78- let fatherId = $t026952844._5
79- let type = $t026952844._6
80- let imageLink = $t026952844._7
73+ let $t027432892 = $Tuple7(p_arr[0], p_arr[1], p_arr[2], p_arr[3], p_arr[4], p_arr[5], p_arr[6])
74+ let cowCode = $t027432892._1
75+ let bornedFarmAddress = $t027432892._2
76+ let genes = $t027432892._3
77+ let motherId = $t027432892._4
78+ let fatherId = $t027432892._5
79+ let type = $t027432892._6
80+ let imageLink = $t027432892._7
8181 let description = (((((((((((((("{\"cowCode\": \"" + cowCode) + "\", \"bornedFarmAddress\": \"") + bornedFarmAddress) + "\", \"genes\": \"") + genes) + "\", \"motherId\": \"") + motherId) + "\", \"fatherId\": \"") + fatherId) + "\", \"type\": \"") + type) + "\", \"imageLink\": \"") + imageLink) + "\"")
8282 let issue = Issue(cowNft_name, ((description + imageLink) + "\"}"), 1, 0, false)
8383 let id = calculateAssetId(issue)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let admin1 = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY"
55
66 let admin2 = ""
77
88 let key_farmNft_nextNumber = "farmNft_nextNumber"
99
1010 let farmNft_name = "Cattle NFT "
1111
1212 let cowNft_name = "Cow NFT"
1313
14-let farmNft_description = "{\"image\": \""
14+let farmNft_description = "{\"description\": \"NFT for assotiated cattle\", \"image\": \""
1515
1616 let live = "ACTIVE"
1717
1818 let dead = "INACTIVE"
1919
2020 let fatten = "FATTEN"
2121
2222 func tryGetInteger (key) = match getInteger(this, key) {
2323 case b: Int =>
2424 b
2525 case _ =>
2626 0
2727 }
2828
2929
3030 func tryGetString (key) = match getString(this, key) {
3131 case a: String =>
3232 a
3333 case _ =>
3434 ""
3535 }
3636
3737
3838 func allow (callerPbk) = true
3939
4040
4141 @Callable(i)
4242 func registerFarm (address,params) = {
4343 let callerPbk = toBase58String(i.callerPublicKey)
4444 if (allow(callerPbk))
4545 then {
4646 let recipient = addressFromStringValue(address)
4747 let p_arr = split_4C(params, "|")
48- let $t014921564 = $Tuple3(p_arr[0], p_arr[1], p_arr[2])
49- let farmName = $t014921564._1
50- let farmLocation = $t014921564._2
51- let imageLink = $t014921564._3
48+ let $t015401612 = $Tuple3(p_arr[0], p_arr[1], p_arr[2])
49+ let farmName = $t015401612._1
50+ let farmLocation = $t015401612._2
51+ let imageLink = $t015401612._3
5252 let nextNum = tryGetInteger(key_farmNft_nextNumber)
5353 if ((nextNum == nextNum))
5454 then {
5555 let issue = Issue((farmNft_name + toString(nextNum)), ((farmNft_description + imageLink) + "\"}"), 1, 0, false)
5656 let id = calculateAssetId(issue)
5757 $Tuple2([issue, ScriptTransfer(recipient, 1, id), IntegerEntry(key_farmNft_nextNumber, (nextNum + 1)), BooleanEntry((("farm_" + address) + "_status"), true), StringEntry((("farm_" + address) + "_name"), farmName), StringEntry((("farm_" + address) + "_location"), farmLocation)], $Tuple4(nextNum, farmName, farmLocation, imageLink))
5858 }
5959 else throw("Strict value is not equal to itself.")
6060 }
6161 else throw("Not allowed caller")
6262 }
6363
6464
6565
6666 @Callable(i)
6767 func registerCow (address,params) = {
6868 let callerPbk = toBase58String(i.callerPublicKey)
6969 if (allow(callerPbk))
7070 then {
7171 let recipient = addressFromStringValue(address)
7272 let p_arr = split_4C(params, params)
73- let $t026952844 = $Tuple7(p_arr[0], p_arr[1], p_arr[2], p_arr[3], p_arr[4], p_arr[5], p_arr[6])
74- let cowCode = $t026952844._1
75- let bornedFarmAddress = $t026952844._2
76- let genes = $t026952844._3
77- let motherId = $t026952844._4
78- let fatherId = $t026952844._5
79- let type = $t026952844._6
80- let imageLink = $t026952844._7
73+ let $t027432892 = $Tuple7(p_arr[0], p_arr[1], p_arr[2], p_arr[3], p_arr[4], p_arr[5], p_arr[6])
74+ let cowCode = $t027432892._1
75+ let bornedFarmAddress = $t027432892._2
76+ let genes = $t027432892._3
77+ let motherId = $t027432892._4
78+ let fatherId = $t027432892._5
79+ let type = $t027432892._6
80+ let imageLink = $t027432892._7
8181 let description = (((((((((((((("{\"cowCode\": \"" + cowCode) + "\", \"bornedFarmAddress\": \"") + bornedFarmAddress) + "\", \"genes\": \"") + genes) + "\", \"motherId\": \"") + motherId) + "\", \"fatherId\": \"") + fatherId) + "\", \"type\": \"") + type) + "\", \"imageLink\": \"") + imageLink) + "\"")
8282 let issue = Issue(cowNft_name, ((description + imageLink) + "\"}"), 1, 0, false)
8383 let id = calculateAssetId(issue)
8484 [issue, ScriptTransfer(recipient, 1, id), StringEntry((((("farm_" + address) + "_cow_") + toBase58String(id)) + "_status"), live), StringEntry((("cow_" + toBase58String(id)) + "_owner"), address)]
8585 }
8686 else throw("Not allowed caller")
8787 }
8888
8989
9090
9191 @Callable(i)
9292 func init () = {
9393 let callerPbk = toBase58String(i.callerPublicKey)
9494 if (allow(callerPbk))
9595 then [IntegerEntry(key_farmNft_nextNumber, 1)]
9696 else throw("Not allowed caller")
9797 }
9898
9999

github/deemru/w8io/026f985 
29.87 ms