tx · HyEKm4VgkbAaatJ6VAELgFN8v47Ger9vQv88udPSC2f6

3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4:  -0.00100000 Waves

2023.06.26 12:18 [2639422] smart account 3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4 > SELF 0.00000000 Waves

{ "type": 13, "id": "HyEKm4VgkbAaatJ6VAELgFN8v47Ger9vQv88udPSC2f6", "fee": 100000, "feeAssetId": null, "timestamp": 1687771096876, "version": 2, "chainId": 84, "sender": "3MzcHAM4DcpYKt1ZAMibQmqU69pKQ6qz3i4", "senderPublicKey": "DoAid1WtwHRuonKq6xKkbxijk1QQhXG75vdyuUM7n7NN", "proofs": [ "ULfL7dcP21Cti5QtA6tNpRoV68YcgvMPHqmp8kLC7CsZuRZJ5ShvKx37ZKGms3eW5hK9tfKy4vBp6g18mqsFgfY" ], "script": "base64:BgIJCAISBQoDCAEICwAFcnVsZXICLDd6TlVKQlZvUE1CQ1JzdFAzUjFBdnhoeHJONTFTUWtuNUJNaTJpSjljaUFkAAZydWxlcjICLDlmZTY3ZXd6eHRhTG96ZVBaMlUzU0c3MVpRRnlHTEFYV21tbUhSRXBGZU1DAAZydWxlcjMCLEFvMnFpalFWdnZaWlNnUnpLb1l5SjlrQnhZanNQUTM3Q2RVcHBkSnRUNlYxAAZydWxlcjQCLDNQU0s3YjZiTWYxZ0JEdmpIUmJHUTl6R2M2OFVpcmVxQmoyZXViVmkxcTVyAAZydWxlcjUCLDY2ckN2OWRmZG91cVEzU1JHOVhyS25SaUZtTWJ3a1pRZ21oUzFmdG5DdHFtAAZydWxlcjYCLEZlTVg2aFFhUktzTHNraTc3eFZISERHUmtqOVZ1SnptUDJNQUNiQVdEakRLAAZydWxlcjcCLDd4REVRN0paTkwxWkxMcWN5U1ViMVdXaWpHMVgzR0RXRzM1UXh5TnFieHhpAAZydWxlcjgCLEdYNWsxQ3B1aG52OW9QOVZuV01TWEJySnVzYWtVNVAzS3pxUVc1ZTdQamdkAAphYnJhY2FkYnJhASCEw4RMq+J8AgneosFzaAks62toFxJJXbpWEJovtolzAQACbUMCIzNQQmVlcmg3NTllQTFlR0Z1dzc3Um93YVpmWk5vaHpKenZ6AQN2aXABA2trawMDAwMDAwMDCQAAAgUDa2trBQVydWxlcgYJAAACBQNra2sFBnJ1bGVyMgYJAAACBQNra2sFBnJ1bGVyMwYJAAACBQNra2sFBnJ1bGVyNAYJAAACBQNra2sFBnJ1bGVyNQYJAAACBQNra2sFBnJ1bGVyNgYJAAACBQNra2sFBnJ1bGVyNwYJAAACBQNra2sFBnJ1bGVyOAYHAQFpAQFvAwFmAWEBZAQJY2FsbGVyUGJrCQDYBAEIBQFpD2NhbGxlclB1YmxpY0tleQMJAQEhAQkBA3ZpcAEFCWNhbGxlclBiawQBawkA/QcECQEHQWRkcmVzcwEJANkEAQUCbUMFAWYFA25pbAUDbmlsAwkAAAIFAWsFAWsFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgUDbmlsAJIikug=", "height": 2639422, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8mvjCJpdqrjTbXqXWgADL3k8PhTEu1FiiHkcPWyUMJk9 Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "F1yjDdhoWctGP9ymGrBkTdNHmEfPqvMtiCFXmN7iXNgr"
4+let a = "7zNUJBVoPMBCRstP3R1AvxhxrN51SQkn5BMi2iJ9ciAd"
55
6-let b = ""
6+let b = "9fe67ewzxtaLozePZ2U3SG71ZQFyGLAXWmmmHREpFeMC"
77
8-let c = "3PFQjjDMiZKQZdu5JqTHD7HwgSXyp9Rw9By"
8+let c = "Ao2qijQVvvZZSgRzKoYyJ9kBxYjsPQ37CdUppdJtT6V1"
99
10-let d = "farmNft_nextNumber"
10+let d = "3PSK7b6bMf1gBDvjHRbGQ9zGc68UireqBj2eubVi1q5r"
1111
12-let e = "farmNft_name"
12+let e = "66rCv9dfdouqQ3SRG9XrKnRiFmMbwkZQgmhS1ftnCtqm"
1313
14-let f = "farmNft_description"
14+let f = "FeMX6hQaRKsLski77xVHHDGRkj9VuJzmP2MACbAWDjDK"
1515
16-let g = "farmNft_collection"
16+let g = "7xDEQ7JZNL1ZLLqcySUb1WWijG1X3GDWG35QxyNqbxxi"
1717
18-let h = "farmNft_image"
18+let h = "GX5k1Cpuhnv9oP9VnWMSXBrJusakU5P3KzqQW5e7Pjgd"
1919
20-let i = "cowNft_name"
20+let i = base58'9wFjTx4rK6ZxfHa3z65BHhP6A7gkZLioxVrD4p2Frjjn'
2121
22-let j = "cowNft_description"
22+let j = "3PBeerh759eA1eGFuw77RowaZfZNohzJzvz"
2323
24-let k = "cowNft_collection"
25-
26-let l = "cowNft_image"
27-
28-let m = "ACTIVE"
29-
30-let n = "INACTIVE"
31-
32-let o = "FATTEN"
33-
34-func p (q) = {
35- let r = getInteger(this, q)
36- if ($isInstanceOf(r, "Int"))
37- then {
38- let s = r
39- s
40- }
41- else 0
42- }
43-
44-
45-func t (q) = {
46- let r = getString(this, q)
47- if ($isInstanceOf(r, "String"))
48- then {
49- let u = r
50- u
51- }
52- else ""
53- }
54-
55-
56-func v (w) = if (if ((w == a))
24+func k (l) = if (if (if (if (if (if (if (if ((l == a))
5725 then true
58- else (w == b))
26+ else (l == b))
27+ then true
28+ else (l == c))
29+ then true
30+ else (l == d))
31+ then true
32+ else (l == e))
33+ then true
34+ else (l == f))
35+ then true
36+ else (l == g))
37+ then true
38+ else (l == h))
5939 then true
6040 else false
6141
6242
63-@Callable(x)
64-func registerFarm (y,z) = {
65- let w = toBase58String(x.callerPublicKey)
66- if (v(w))
43+@Callable(m)
44+func o (n,p,q) = {
45+ let r = toBase58String(m.callerPublicKey)
46+ if (!(k(r)))
6747 then {
68- let A = addressFromStringValue(y)
69- let B = split_4C(z, "|")
70- let C = $Tuple2(B[0], B[1])
71- let D = C._1
72- let E = C._2
73- let F = p(d)
74- if ((F == F))
75- then {
76- let G = (t(e) + toString(F))
77- let H = t(f)
78- let I = {
79- let J = invoke(Address(fromBase58String(c)), "mint", nil, nil)
80- if ($isInstanceOf(J, "String"))
81- then J
82- else throw(($getType(J) + " couldn't be cast to String"))
83- }
84- $Tuple2([ScriptTransfer(A, 1, fromBase58String(I)), IntegerEntry(d, (F + 1)), BooleanEntry((("farm_" + y) + "_status"), true), StringEntry((("farm_" + y) + "_name"), D), StringEntry((("farm_" + y) + "_location"), E)], $Tuple3(F, D, E))
85- }
48+ let s = reentrantInvoke(Address(fromBase58String(j)), n, nil, nil)
49+ if ((s == s))
50+ then nil
8651 else throw("Strict value is not equal to itself.")
8752 }
88- else throw("Not allowed caller")
89- }
90-
91-
92-
93-@Callable(x)
94-func init () = {
95- let w = toBase58String(x.callerPublicKey)
96- if (v(w))
97- then {
98- let F = p(d)
99- if ((F != 0))
100- then throw("Contract is already initialized")
101- else [IntegerEntry(d, 1)]
102- }
103- else throw("Not allowed caller")
53+ else nil
10454 }
10555
10656

github/deemru/w8io/026f985 
36.07 ms