tx · BDcyKXf3MJzSqnzkYmWdgaH6c7qmyMdp9U2hruiE2hMd

3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4:  -0.00300000 Waves

2023.03.24 02:01 [2503284] smart account 3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4 > SELF 0.00000000 Waves

{ "type": 13, "id": "BDcyKXf3MJzSqnzkYmWdgaH6c7qmyMdp9U2hruiE2hMd", "fee": 300000, "feeAssetId": null, "timestamp": 1679612541323, "version": 2, "chainId": 84, "sender": "3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4", "senderPublicKey": "DoAid1WtwHRuonKq6xKkbxijk1QQhXG75vdyuUM7n7NN", "proofs": [ "5fkVdQJdquP5QymKTiM86k7jP8GbN7H1pfCPHacUxBps5tRhGDHdjudzZhRmuH9FCc5iEfB1DjHutLRvTiqFPraV" ], "script": "base64:BgIQCAISBAoCCAgSBAoCCAgSAAwABmFkbWluMQIsQmd4cENtNHd4Ylc4U0tMUEtabmY0S1UyRDZaVTI5b3Y4TWdacmthU0FxcFkABmFkbWluMgIAABZrZXlfZmFybU5mdF9uZXh0TnVtYmVyAhJmYXJtTmZ0X25leHROdW1iZXIADGZhcm1OZnRfbmFtZQIKQ2F0dGxlIE5GVAALY293TmZ0X25hbWUCB0NvdyBORlQAE2Zhcm1OZnRfZGVzY3JpcHRpb24CC3siaW1hZ2UiOiAiAARsaXZlAgZBQ1RJVkUABGRlYWQCCElOQUNUSVZFAAZmYXR0ZW4CBkZBVFRFTgENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAEMdHJ5R2V0U3RyaW5nAQNrZXkEByRtYXRjaDAJAJ0IAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACBlN0cmluZwQBYQUHJG1hdGNoMAUBYQIAAQVhbGxvdwEJY2FsbGVyUGJrBgMB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5rAgEiBAVpc3N1ZQkAwggFBQtjb3dOZnRfbmFtZQkArAICCQCsAgIFC2Rlc2NyaXB0aW9uBQlpbWFnZUxpbmsCAiJ9AAEAAAcEAmlkCQC4CAEFBWlzc3VlCQDMCAIFBWlzc3VlCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudAABBQJpZAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgkArAICCQCsAgICBWZhcm1fBQdhZGRyZXNzAgVfY293XwkA2AQBBQJpZAIHX3N0YXR1cwUEbGl2ZQkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgIEY293XwkA2AQBBQJpZAIGX293bmVyBQdhZGRyZXNzBQNuaWwJAAIBAhJOb3QgYWxsb3dlZCBjYWxsZXIBaQEEaW5pdAAECWNhbGxlclBiawkA2AQBCAUBaQ9jYWxsZXJQdWJsaWNLZXkDCQEFYWxsb3cBBQljYWxsZXJQYmsJAMwIAgkBDEludGVnZXJFbnRyeQIFFmtleV9mYXJtTmZ0X25leHROdW1iZXIAAQUDbmlsCQACAQISTm90IGFsbG93ZWQgY2FsbGVyABuLCJU=", "height": 2503284, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EBat6D5etJp3WYMzddKmtw3GxwvG6EvFehM65S7uf3LP Next: 1GMcigNkntC3S77F8Afko6jPHbzLYYheVw7WWfY8pTB Diff:
OldNewDifferences
4141 }
4242
4343
44-func p (q) = if (if ((q == a))
45- then true
46- else (q == b))
47- then true
48- else false
44+func p (q) = true
4945
5046
5147 @Callable(r)
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 = "Cattle NFT"
1111
1212 let e = "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
44-func p (q) = if (if ((q == a))
45- then true
46- else (q == b))
47- then true
48- else false
44+func p (q) = true
4945
5046
5147 @Callable(r)
5248 func registerFarm (s,t) = {
5349 let q = toBase58String(r.callerPublicKey)
5450 if (p(q))
5551 then {
5652 let u = addressFromStringValue(s)
5753 let v = split_4C(t, "|")
5854 let w = $Tuple3(v[0], v[1], v[2])
5955 let x = w._1
6056 let y = w._2
6157 let z = w._3
6258 let A = j(c)
6359 if ((A == A))
6460 then {
6561 let B = Issue((d + toString(A)), ((f + z) + "\"}"), 1, 0, false)
6662 let C = calculateAssetId(B)
6763 $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))
6864 }
6965 else throw("Strict value is not equal to itself.")
7066 }
7167 else throw("Not allowed caller")
7268 }
7369
7470
7571
7672 @Callable(r)
7773 func registerCow (s,t) = {
7874 let q = toBase58String(r.callerPublicKey)
7975 if (p(q))
8076 then {
8177 let u = addressFromStringValue(s)
8278 let v = split_4C(t, t)
8379 let D = $Tuple7(v[0], v[1], v[2], v[3], v[4], v[5], v[6])
8480 let E = D._1
8581 let F = D._2
8682 let G = D._3
8783 let H = D._4
8884 let I = D._5
8985 let J = D._6
9086 let z = D._7
9187 let K = (((((((((((((("{\"cowCode\": \"" + E) + "\", \"bornedFarmAddress\": \"") + F) + "\", \"genes\": \"") + G) + "\", \"motherId\": \"") + H) + "\", \"fatherId\": \"") + I) + "\", \"type\": \"") + J) + "\", \"imageLink\": \"") + z) + "\"")
9288 let B = Issue(e, ((K + z) + "\"}"), 1, 0, false)
9389 let C = calculateAssetId(B)
9490 [B, ScriptTransfer(u, 1, C), StringEntry((((("farm_" + s) + "_cow_") + toBase58String(C)) + "_status"), g), StringEntry((("cow_" + toBase58String(C)) + "_owner"), s)]
9591 }
9692 else throw("Not allowed caller")
9793 }
9894
9995
10096
10197 @Callable(r)
10298 func init () = {
10399 let q = toBase58String(r.callerPublicKey)
104100 if (p(q))
105101 then [IntegerEntry(c, 1)]
106102 else throw("Not allowed caller")
107103 }
108104
109105

github/deemru/w8io/026f985 
36.60 ms