tx · 135K9ZiYhhk59Rkwg7wX9jTGoNVriargs7eHcxUtkw7y

3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4:  -0.00300000 Waves

2023.03.24 01:39 [2503259] smart account 3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4 > SELF 0.00000000 Waves

{ "type": 13, "id": "135K9ZiYhhk59Rkwg7wX9jTGoNVriargs7eHcxUtkw7y", "fee": 300000, "feeAssetId": null, "timestamp": 1679611220663, "version": 2, "chainId": 84, "sender": "3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4", "senderPublicKey": "DoAid1WtwHRuonKq6xKkbxijk1QQhXG75vdyuUM7n7NN", "proofs": [ "3Sg7Mww1RPkY6qEZbEEZ1X4g7kCtVDa7uR4CoDdMtxkjVNLJqCCneuNUAVjsd3ARYPwvF6vd4up4PZC4XPoZdCWA" ], "script": "base64:BgIQCAISBAoCCAgSBAoCCAgSAAwABmFkbWluMQIsQmd4cENtNHd4Ylc4U0tMUEtabmY0S1UyRDZaVTI5b3Y4TWdacmthU0FxcFkABmFkbWluMgIAABZrZXlfZmFybU5mdF9uZXh0TnVtYmVyAhJmYXJtTmZ0X25leHROdW1iZXIADGZhcm1OZnRfbmFtZQITQXNzb3RpYXRlZCBGYXJtIE5GVAALY293TmZ0X25hbWUCEkFzc290aWF0ZWQgQ293IE5GVAATZmFybU5mdF9kZXNjcmlwdGlvbgILeyJpbWFnZSI6ICIABGxpdmUCBkFDVElWRQAEZGVhZAIISU5BQ1RJVkUABmZhdHRlbgIGRkFUVEVOAQ10cnlHZXRJbnRlZ2VyAQNrZXkEByRtYXRjaDAJAJoIAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAAQx0cnlHZXRTdHJpbmcBA2tleQQHJG1hdGNoMAkAnQgCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABBWFsbG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IjogIgUIZmF0aGVySWQCDCIsICJ0eXBlIjogIgUEdHlwZQIRIiwgImltYWdlTGluayI6ICIFCWltYWdlTGluawIBIgQFaXNzdWUJAMIIBQULY293TmZ0X25hbWUJAKwCAgkArAICBQtkZXNjcmlwdGlvbgUJaW1hZ2VMaW5rAgIifQABAAAHBAJpZAkAuAgBBQVpc3N1ZQkAzAgCBQVpc3N1ZQkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQlyZWNpcGllbnQAAQUCaWQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKwCAgkArAICAgVmYXJtXwUHYWRkcmVzcwIFX2Nvd18JANgEAQUCaWQCB19zdGF0dXMFBGxpdmUJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgICBGNvd18JANgEAQUCaWQCBl9vd25lcgUHYWRkcmVzcwUDbmlsCQACAQISTm90IGFsbG93ZWQgY2FsbGVyAWkBBGluaXQACQDMCAIJAQxJbnRlZ2VyRW50cnkCBRZrZXlfZmFybU5mdF9uZXh0TnVtYmVyAAEFA25pbAC9kQq0", "height": 2503259, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JoYmWzbFSF4u7pxzhmoQuqLMcsu5Q1vyi126YpumFjv Next: DarajS5ETdhk69YZXx7YS95dmmZBXdu6Jb23334xPtmW Diff:
OldNewDifferences
6464 then {
6565 let B = Issue((d + toString(A)), ((f + z) + "\"}"), 1, 0, false)
6666 let C = calculateAssetId(B)
67-[B, ScriptTransfer(u, 1, C), IntegerEntry(c, (A + 1)), StringEntry((("farm_" + s) + "_name"), x), StringEntry((("farm_" + s) + "_location"), y)]
67+ $Tuple2([B, ScriptTransfer(u, 1, C), IntegerEntry(c, (A + 1)), StringEntry((("farm_" + s) + "_name"), x), StringEntry((("farm_" + s) + "_location"), y)], $Tuple4(A, x, y, z))
6868 }
6969 else throw("Strict value is not equal to itself.")
7070 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY"
55
66 let b = ""
77
88 let c = "farmNft_nextNumber"
99
1010 let d = "Assotiated Farm NFT"
1111
1212 let e = "Assotiated Cow NFT"
1313
1414 let f = "{\"image\": \""
1515
1616 let g = "ACTIVE"
1717
1818 let h = "INACTIVE"
1919
2020 let i = "FATTEN"
2121
2222 func j (k) = {
2323 let l = getInteger(this, k)
2424 if ($isInstanceOf(l, "Int"))
2525 then {
2626 let m = l
2727 m
2828 }
2929 else 0
3030 }
3131
3232
3333 func n (k) = {
3434 let l = getString(this, k)
3535 if ($isInstanceOf(l, "String"))
3636 then {
3737 let o = l
3838 o
3939 }
4040 else ""
4141 }
4242
4343
4444 func p (q) = if (if ((q == a))
4545 then true
4646 else (q == b))
4747 then true
4848 else false
4949
5050
5151 @Callable(r)
5252 func registerFarm (s,t) = {
5353 let q = toBase58String(r.callerPublicKey)
5454 if (p(q))
5555 then {
5656 let u = addressFromStringValue(s)
5757 let v = split_4C(t, "|")
5858 let w = $Tuple3(v[0], v[1], v[2])
5959 let x = w._1
6060 let y = w._2
6161 let z = w._3
6262 let A = j(c)
6363 if ((A == A))
6464 then {
6565 let B = Issue((d + toString(A)), ((f + z) + "\"}"), 1, 0, false)
6666 let C = calculateAssetId(B)
67-[B, ScriptTransfer(u, 1, C), IntegerEntry(c, (A + 1)), StringEntry((("farm_" + s) + "_name"), x), StringEntry((("farm_" + s) + "_location"), y)]
67+ $Tuple2([B, ScriptTransfer(u, 1, C), IntegerEntry(c, (A + 1)), StringEntry((("farm_" + s) + "_name"), x), StringEntry((("farm_" + s) + "_location"), y)], $Tuple4(A, x, y, z))
6868 }
6969 else throw("Strict value is not equal to itself.")
7070 }
7171 else throw("Not allowed caller")
7272 }
7373
7474
7575
7676 @Callable(r)
7777 func registerCow (s,t) = {
7878 let q = toBase58String(r.callerPublicKey)
7979 if (p(q))
8080 then {
8181 let u = addressFromStringValue(s)
8282 let v = split_4C(t, t)
8383 let D = $Tuple7(v[0], v[1], v[2], v[3], v[4], v[5], v[6])
8484 let E = D._1
8585 let F = D._2
8686 let G = D._3
8787 let H = D._4
8888 let I = D._5
8989 let J = D._6
9090 let z = D._7
9191 let K = (((((((((((((("{\"cowCode\": \"" + E) + "\", \"bornedFarmAddress\": \"") + F) + "\", \"genes\": \"") + G) + "\", \"motherId\": \"") + H) + "\", \"fatherId\": \"") + I) + "\", \"type\": \"") + J) + "\", \"imageLink\": \"") + z) + "\"")
9292 let B = Issue(e, ((K + z) + "\"}"), 1, 0, false)
9393 let C = calculateAssetId(B)
9494 [B, ScriptTransfer(u, 1, C), StringEntry((((("farm_" + s) + "_cow_") + toBase58String(C)) + "_status"), g), StringEntry((("cow_" + toBase58String(C)) + "_owner"), s)]
9595 }
9696 else throw("Not allowed caller")
9797 }
9898
9999
100100
101101 @Callable(r)
102102 func init () = [IntegerEntry(c, 1)]
103103
104104

github/deemru/w8io/026f985 
24.58 ms