tx · DaAdLE1piJi4mhdZybbk3vALHm1owdBuyLEW5d9mh1V7

3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4:  -0.00200000 Waves

2023.03.26 00:39 [2506075] smart account 3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4 > SELF 0.00000000 Waves

{ "type": 13, "id": "DaAdLE1piJi4mhdZybbk3vALHm1owdBuyLEW5d9mh1V7", "fee": 200000, "feeAssetId": null, "timestamp": 1679780393154, "version": 2, "chainId": 84, "sender": "3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4", "senderPublicKey": "DoAid1WtwHRuonKq6xKkbxijk1QQhXG75vdyuUM7n7NN", "proofs": [ "2pqEzAnT2YuAN3os7hbeTeFnNGdoWJnLANJ1ZUAjFMJSjaZjTcWFy1bWH2CgVrChgFNiuPGHUu9PuTUfikb68FhT" ], "script": "base64:BgIKCAISBAoCCAgSABIABmFkbWluMQIsRjF5akRkaG9XY3RHUDl5bUdyQmtUZE5IbUVmUHF2TXRpQ0ZYbU43aVhOZ3IABmFkbWluMgIAAApwdXp6bGVNaW50AiMzUEZRampETWlaS1FaZHU1SnFUSEQ3SHdnU1h5cDlSdzlCeQAWa2V5X2Zhcm1OZnRfbmV4dE51bWJlcgISZmFybU5mdF9uZXh0TnVtYmVyABBrZXlfZmFybU5mdF9uYW1lAgxmYXJtTmZ0X25hbWUAF2tleV9mYXJtTmZ0X2Rlc2NyaXB0aW9uAhNmYXJtTmZ0X2Rlc2NyaXB0aW9uABZrZXlfZmFybU5mdF9jb2xsZWN0aW9uAhJmYXJtTmZ0X2NvbGxlY3Rpb24AEWtleV9mYXJtTmZ0X2ltYWdlAg1mYXJtTmZ0X2ltYWdlAA9rZXlfY293TmZ0X25hbWUCC2Nvd05mdF9uYW1lABZrZXlfY293TmZ0X2Rlc2NyaXB0aW9uAhJjb3dOZnRfZGVzY3JpcHRpb24AFWtleV9jb3dOZnRfY29sbGVjdGlvbgIRY293TmZ0X2NvbGxlY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U5mdERlc2NyaXB0aW9uAAEAAAcEAmlkCQC4CAEFBWlzc3VlCQCUCgIJAMwIAgUFaXNzdWUJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50AAEFAmlkCQDMCAIJAQxJbnRlZ2VyRW50cnkCBRZrZXlfZmFybU5mdF9uZXh0TnVtYmVyCQBkAgUHbmV4dE51bQABCQDMCAIJAQxCb29sZWFuRW50cnkCCQCsAgIJAKwCAgIFZmFybV8FB2FkZHJlc3MCB19zdGF0dXMGCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICAgVmYXJtXwUHYWRkcmVzcwIFX25hbWUFCGZhcm1OYW1lCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICAgVmYXJtXwUHYWRkcmVzcwIJX2xvY2F0aW9uBQxmYXJtTG9jYXRpb24FA25pbAkAlQoDBQduZXh0TnVtBQhmYXJtTmFtZQUMZmFybUxvY2F0aW9uCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQISTm90IGFsbG93ZWQgY2FsbGVyAWkBBGluaXQABAljYWxsZXJQYmsJANgEAQgFAWkPY2FsbGVyUHVibGljS2V5AwkBBWFsbG93AQUJY2FsbGVyUGJrBAduZXh0TnVtCQENdHJ5R2V0SW50ZWdlcgEFFmtleV9mYXJtTmZ0X25leHROdW1iZXIDCQECIT0CBQduZXh0TnVtAAAJAAIBAh9Db250cmFjdCBpcyBhbHJlYWR5IGluaXRpYWxpemVkCQDMCAIJAQxJbnRlZ2VyRW50cnkCBRZrZXlfZmFybU5mdF9uZXh0TnVtYmVyAAEFA25pbAkAAgECEk5vdCBhbGxvd2VkIGNhbGxlcgBqy5tG", "height": 2506075, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6VwaZBNge2Ak9cAyudwShLrkKDHLhDhWW9kkpma6qomA Next: 8mvjCJpdqrjTbXqXWgADL3k8PhTEu1FiiHkcPWyUMJk9 Diff:
OldNewDifferences
6565 let w = toBase58String(x.callerPublicKey)
6666 if (v(w))
6767 then {
68- let A = addressFromStringValue("3MwtjV2Q62CNSqKwM3Hzspy6DdwrvxE8P9F")
68+ let A = addressFromStringValue(y)
6969 let B = split_4C(z, "|")
7070 let C = $Tuple2(B[0], B[1])
7171 let D = C._1
7575 then {
7676 let G = (t(e) + toString(F))
7777 let H = t(f)
78- let I = t(g)
79- let J = t(h)
80- let K = {
81- let L = invoke(addressFromStringValue(c), "mint", [G, H, I, J, J, 1, "", "", ""], nil)
82- if ($isInstanceOf(L, "String"))
83- then L
84- else throw(($getType(L) + " couldn't be cast to String"))
85- }
86- if ((K == K))
87- then $Tuple2([ScriptTransfer(A, 1, fromBase58String(K)), IntegerEntry(d, (F + 1)), BooleanEntry((("farm_" + y) + "_status"), true), StringEntry((("farm_" + y) + "_name"), D), StringEntry((("farm_" + y) + "_location"), E)], $Tuple3(F, D, E))
88- else throw("Strict value is not equal to itself.")
78+ let I = Issue(G, H, 1, 0, false)
79+ let J = calculateAssetId(I)
80+ $Tuple2([I, ScriptTransfer(A, 1, J), IntegerEntry(d, (F + 1)), BooleanEntry((("farm_" + y) + "_status"), true), StringEntry((("farm_" + y) + "_name"), D), StringEntry((("farm_" + y) + "_location"), E)], $Tuple3(F, D, E))
8981 }
9082 else throw("Strict value is not equal to itself.")
9183 }
9284 else throw("Not allowed caller")
9385 }
94-
95-
96-
97-@Callable(x)
98-func test () = {
99- let M = {
100- let L = invoke(this, "mint", nil, nil)
101- if ($isInstanceOf(L, "String"))
102- then L
103- else throw(($getType(L) + " couldn't be cast to String"))
104- }
105- if ((M == M))
106- then if (true)
107- then throw(M)
108- else nil
109- else throw("Strict value is not equal to itself.")
110- }
111-
112-
113-
114-@Callable(x)
115-func mint () = $Tuple2(nil, 42)
11686
11787
11888
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "F1yjDdhoWctGP9ymGrBkTdNHmEfPqvMtiCFXmN7iXNgr"
55
66 let b = ""
77
88 let c = "3PFQjjDMiZKQZdu5JqTHD7HwgSXyp9Rw9By"
99
1010 let d = "farmNft_nextNumber"
1111
1212 let e = "farmNft_name"
1313
1414 let f = "farmNft_description"
1515
1616 let g = "farmNft_collection"
1717
1818 let h = "farmNft_image"
1919
2020 let i = "cowNft_name"
2121
2222 let j = "cowNft_description"
2323
2424 let k = "cowNft_collection"
2525
2626 let l = "cowNft_image"
2727
2828 let m = "ACTIVE"
2929
3030 let n = "INACTIVE"
3131
3232 let o = "FATTEN"
3333
3434 func p (q) = {
3535 let r = getInteger(this, q)
3636 if ($isInstanceOf(r, "Int"))
3737 then {
3838 let s = r
3939 s
4040 }
4141 else 0
4242 }
4343
4444
4545 func t (q) = {
4646 let r = getString(this, q)
4747 if ($isInstanceOf(r, "String"))
4848 then {
4949 let u = r
5050 u
5151 }
5252 else ""
5353 }
5454
5555
5656 func v (w) = if (if ((w == a))
5757 then true
5858 else (w == b))
5959 then true
6060 else false
6161
6262
6363 @Callable(x)
6464 func registerFarm (y,z) = {
6565 let w = toBase58String(x.callerPublicKey)
6666 if (v(w))
6767 then {
68- let A = addressFromStringValue("3MwtjV2Q62CNSqKwM3Hzspy6DdwrvxE8P9F")
68+ let A = addressFromStringValue(y)
6969 let B = split_4C(z, "|")
7070 let C = $Tuple2(B[0], B[1])
7171 let D = C._1
7272 let E = C._2
7373 let F = p(d)
7474 if ((F == F))
7575 then {
7676 let G = (t(e) + toString(F))
7777 let H = t(f)
78- let I = t(g)
79- let J = t(h)
80- let K = {
81- let L = invoke(addressFromStringValue(c), "mint", [G, H, I, J, J, 1, "", "", ""], nil)
82- if ($isInstanceOf(L, "String"))
83- then L
84- else throw(($getType(L) + " couldn't be cast to String"))
85- }
86- if ((K == K))
87- then $Tuple2([ScriptTransfer(A, 1, fromBase58String(K)), IntegerEntry(d, (F + 1)), BooleanEntry((("farm_" + y) + "_status"), true), StringEntry((("farm_" + y) + "_name"), D), StringEntry((("farm_" + y) + "_location"), E)], $Tuple3(F, D, E))
88- else throw("Strict value is not equal to itself.")
78+ let I = Issue(G, H, 1, 0, false)
79+ let J = calculateAssetId(I)
80+ $Tuple2([I, ScriptTransfer(A, 1, J), IntegerEntry(d, (F + 1)), BooleanEntry((("farm_" + y) + "_status"), true), StringEntry((("farm_" + y) + "_name"), D), StringEntry((("farm_" + y) + "_location"), E)], $Tuple3(F, D, E))
8981 }
9082 else throw("Strict value is not equal to itself.")
9183 }
9284 else throw("Not allowed caller")
9385 }
94-
95-
96-
97-@Callable(x)
98-func test () = {
99- let M = {
100- let L = invoke(this, "mint", nil, nil)
101- if ($isInstanceOf(L, "String"))
102- then L
103- else throw(($getType(L) + " couldn't be cast to String"))
104- }
105- if ((M == M))
106- then if (true)
107- then throw(M)
108- else nil
109- else throw("Strict value is not equal to itself.")
110- }
111-
112-
113-
114-@Callable(x)
115-func mint () = $Tuple2(nil, 42)
11686
11787
11888
11989 @Callable(x)
12090 func init () = {
12191 let w = toBase58String(x.callerPublicKey)
12292 if (v(w))
12393 then {
12494 let F = p(d)
12595 if ((F != 0))
12696 then throw("Contract is already initialized")
12797 else [IntegerEntry(d, 1)]
12898 }
12999 else throw("Not allowed caller")
130100 }
131101
132102

github/deemru/w8io/026f985 
39.37 ms