tx · C4Yrn9JEDYQqf53XaKB9ADZ7W4Uie3dK5dZGUoovGzeo

3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1:  -0.01000000 Waves

2022.05.18 11:20 [2056852] smart account 3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1 > SELF 0.00000000 Waves

{ "type": 13, "id": "C4Yrn9JEDYQqf53XaKB9ADZ7W4Uie3dK5dZGUoovGzeo", "fee": 1000000, "feeAssetId": null, "timestamp": 1652862068868, "version": 2, "chainId": 84, "sender": "3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1", "senderPublicKey": "8rTCUHVm1p6iEchTjpJ1a7SbCaayaRrp4FegpAsirYag", "proofs": [ "4cJiXjkPHn84rSEYxdfThE5K7u1Z1q3XCcPDLM1V4s4PaT893VwaHXaHJgBm12LCTLKXuVaaEq3BvSyUy3C9mGPk" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAA8AAAAADVBBWU1FTlRfQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAAxSRVdBUkRfQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAABBTVEFLSU5HX0NPTlRSQUNUCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUjw3ifhq9EIoKzVKH33tj+QNuo3mChI2IAAAAAAZwaXhlbHMFAAAADFJFV0FSRF9BU1NFVAAAAAAEeE1JTgAAAAAAAAAAAAAAAAAEeE1BWAAAAAAAAAAEsQAAAAAEeU1JTgAAAAAAAAAAAAAAAAAEeU1BWAAAAAAAAAACWQAAAAANUkVXQVJEX0FNT1VOVAAAAAAABfXhAAAAAAAUUkVXQVJEX1BPT0xfRElWSVNJT04AAAAAAAAAAAQAAAAAElRPX1RIRV9SRVdBUkRfUE9PTAkAAGkAAAACBQAAAA1SRVdBUkRfQU1PVU5UBQAAABRSRVdBUkRfUE9PTF9ESVZJU0lPTgAAAA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ANUEFZTUVOVF9BU1NFVAUAAAASVE9fVEhFX1JFV0FSRF9QT09MBQAAAANuaWwDCQAAAAAAAAIFAAAAA3JlcwUAAAADcmVzBAAAAAckbWF0Y2gwBQAAAANyZXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAXIFAAAAByRtYXRjaDAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1SRVdBUkRfQU1PVU5UBQAAAAZwaXhlbHMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAGd2FsbGV0BQAAAAR2ZXJpCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAACXJld2FyZEtleQkAASwAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAJbmV3QW1vdW50AgAAAAFfCQABpAAAAAEFAAAABmhlaWdodAUAAAADbmlsCQAAAgAAAAECAAAAF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAAB1Xcm9uZyBwYXltZW50IGFtb3VudCBvciBhc3NldAkAAAIAAAABAgAAAA5vdXQgb2YgY29udGV4dAkAAAIAAAABAgAAAAt3cm9uZyBjb2xvcgkAAAIAAAABAgAAABxnYW1lIGlzIG5vdCBhY3RpdmUgcmlnaHQgbm93AAAAAGtFerE=", "height": 2056852, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4dj42gwoP8PmJ1skb67H6qwZ9PT4FNWyn7dUpNbkEGZ3 Next: 3ZCYgYoS7Er6kSoZ87K4dWK1p2WvTG7iHfS4ySvSFxpX Diff:
OldNewDifferences
55
66 let b = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS'
77
8-let c = b
8+let c = Address(base58'3N2xV35dmGG8EYfhNfdKBPBq2xoSKHkmYxf')
99
10-let d = 0
10+let d = b
1111
12-let e = 1201
12+let e = 0
1313
14-let f = 0
14+let f = 1201
1515
16-let g = 601
16+let g = 0
1717
18-let h = 100000000
18+let h = 601
1919
20-let i = 4
20+let i = 100000000
2121
22-let j = (h / i)
22+let j = 4
2323
24-let k = 2028020
24+let k = (i / j)
2525
26-let l = (k + (1440 * 30))
26+let l = 2028020
2727
28-let m = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"]
28+let m = (l + (1440 * 30))
2929
30-func n (o) = {
31- let p = a
32- if ((size(o.payments) == 0))
30+let n = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"]
31+
32+func o (p) = {
33+ let q = a
34+ if ((size(p.payments) == 0))
3335 then throw("Payment not attached")
3436 else {
35- let q = o.payments[0]
36- let r = q.assetId
37- if ($isInstanceOf(r, "ByteVector"))
37+ let r = p.payments[0]
38+ let s = r.assetId
39+ if ($isInstanceOf(s, "ByteVector"))
3840 then {
39- let s = r
40- if ((s == p))
41- then (q.amount == 1000000)
41+ let t = s
42+ if ((t == q))
43+ then (r.amount == 1000000)
4244 else false
4345 }
4446 else throw("Wrong payment asset")
4648 }
4749
4850
49-@Callable(o)
50-func coordinates (t,u) = if (if ((height > k))
51- then (l > height)
51+@Callable(p)
52+func coordinates (u,v) = if (if ((height > l))
53+ then (m > height)
5254 else false)
5355 then {
54- let v = containsElement(m, t)
55- if (v)
56+ let w = containsElement(n, u)
57+ if (w)
5658 then {
57- let w = toBase58String(o.caller.bytes)
58- let x = split(u, "_")
59- let y = valueOrElse(parseInt(x[0]), 0)
60- let z = valueOrElse(parseInt(x[1]), 0)
61- if (if (((y % 8) != 0))
62- then ((z % 8) != 0)
59+ let x = toBase58String(p.caller.bytes)
60+ let y = split(v, "_")
61+ let z = valueOrElse(parseInt(y[0]), 0)
62+ let A = valueOrElse(parseInt(y[1]), 0)
63+ if (if (((z % 8) != 0))
64+ then ((A % 8) != 0)
6365 else false)
6466 then throw("not cool.")
6567 else {
66- let A = ((toString(y) + "_") + toString(z))
67- let B = (((w + "_") + A) + "_c")
68- if (if (if (if ((y >= d))
69- then (e > y)
68+ let B = ((toString(z) + "_") + toString(A))
69+ let C = (((x + "_") + B) + "_c")
70+ if (if (if (if ((z >= e))
71+ then (f > z)
7072 else false)
71- then (z >= f)
73+ then (A >= g)
7274 else false)
73- then (g > z)
75+ then (h > A)
7476 else false)
75- then if (n(o))
77+ then if (o(p))
7678 then {
77- let C = "reward_pool"
78- let D = j
79- let E = height
80- let F = ("0_" + toString(height))
81- let G = valueOrElse(getString(this, "reward_pool"), F)
82- let H = split(G, "_")
83- let I = valueOrElse(parseInt(H[0]), 0)
84- let J = valueOrElse(parseInt(H[1]), height)
85- let K = (I + D)
86-[StringEntry(B, t), StringEntry(C, ((toString(K) + "_") + toString(height))), ScriptTransfer(o.caller, h, c)]
79+ let D = "reward_pool"
80+ let E = k
81+ let F = height
82+ let G = ("0_" + toString(height))
83+ let H = valueOrElse(getString(this, "reward_pool"), G)
84+ let I = split(H, "_")
85+ let J = valueOrElse(parseInt(I[0]), 0)
86+ let K = valueOrElse(parseInt(I[1]), height)
87+ let L = (J + E)
88+ let M = ((toString(L) + "_") + toString(height))
89+ let N = invoke(c, "rewardPool", [M], [AttachedPayment(a, k)])
90+ if ((N == N))
91+ then {
92+ let s = N
93+ if ($isInstanceOf(s, "Boolean"))
94+ then {
95+ let O = s
96+[ScriptTransfer(p.caller, i, d), StringEntry(C, u), StringEntry(D, ((toString(L) + "_") + toString(height)))]
97+ }
98+ else throw("Incorrect invoke result")
99+ }
100+ else throw("Strict value is not equal to itself.")
87101 }
88102 else throw("Wrong payment amount or asset")
89103 else throw("out of context")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh'
55
66 let b = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS'
77
8-let c = b
8+let c = Address(base58'3N2xV35dmGG8EYfhNfdKBPBq2xoSKHkmYxf')
99
10-let d = 0
10+let d = b
1111
12-let e = 1201
12+let e = 0
1313
14-let f = 0
14+let f = 1201
1515
16-let g = 601
16+let g = 0
1717
18-let h = 100000000
18+let h = 601
1919
20-let i = 4
20+let i = 100000000
2121
22-let j = (h / i)
22+let j = 4
2323
24-let k = 2028020
24+let k = (i / j)
2525
26-let l = (k + (1440 * 30))
26+let l = 2028020
2727
28-let m = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"]
28+let m = (l + (1440 * 30))
2929
30-func n (o) = {
31- let p = a
32- if ((size(o.payments) == 0))
30+let n = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"]
31+
32+func o (p) = {
33+ let q = a
34+ if ((size(p.payments) == 0))
3335 then throw("Payment not attached")
3436 else {
35- let q = o.payments[0]
36- let r = q.assetId
37- if ($isInstanceOf(r, "ByteVector"))
37+ let r = p.payments[0]
38+ let s = r.assetId
39+ if ($isInstanceOf(s, "ByteVector"))
3840 then {
39- let s = r
40- if ((s == p))
41- then (q.amount == 1000000)
41+ let t = s
42+ if ((t == q))
43+ then (r.amount == 1000000)
4244 else false
4345 }
4446 else throw("Wrong payment asset")
4547 }
4648 }
4749
4850
49-@Callable(o)
50-func coordinates (t,u) = if (if ((height > k))
51- then (l > height)
51+@Callable(p)
52+func coordinates (u,v) = if (if ((height > l))
53+ then (m > height)
5254 else false)
5355 then {
54- let v = containsElement(m, t)
55- if (v)
56+ let w = containsElement(n, u)
57+ if (w)
5658 then {
57- let w = toBase58String(o.caller.bytes)
58- let x = split(u, "_")
59- let y = valueOrElse(parseInt(x[0]), 0)
60- let z = valueOrElse(parseInt(x[1]), 0)
61- if (if (((y % 8) != 0))
62- then ((z % 8) != 0)
59+ let x = toBase58String(p.caller.bytes)
60+ let y = split(v, "_")
61+ let z = valueOrElse(parseInt(y[0]), 0)
62+ let A = valueOrElse(parseInt(y[1]), 0)
63+ if (if (((z % 8) != 0))
64+ then ((A % 8) != 0)
6365 else false)
6466 then throw("not cool.")
6567 else {
66- let A = ((toString(y) + "_") + toString(z))
67- let B = (((w + "_") + A) + "_c")
68- if (if (if (if ((y >= d))
69- then (e > y)
68+ let B = ((toString(z) + "_") + toString(A))
69+ let C = (((x + "_") + B) + "_c")
70+ if (if (if (if ((z >= e))
71+ then (f > z)
7072 else false)
71- then (z >= f)
73+ then (A >= g)
7274 else false)
73- then (g > z)
75+ then (h > A)
7476 else false)
75- then if (n(o))
77+ then if (o(p))
7678 then {
77- let C = "reward_pool"
78- let D = j
79- let E = height
80- let F = ("0_" + toString(height))
81- let G = valueOrElse(getString(this, "reward_pool"), F)
82- let H = split(G, "_")
83- let I = valueOrElse(parseInt(H[0]), 0)
84- let J = valueOrElse(parseInt(H[1]), height)
85- let K = (I + D)
86-[StringEntry(B, t), StringEntry(C, ((toString(K) + "_") + toString(height))), ScriptTransfer(o.caller, h, c)]
79+ let D = "reward_pool"
80+ let E = k
81+ let F = height
82+ let G = ("0_" + toString(height))
83+ let H = valueOrElse(getString(this, "reward_pool"), G)
84+ let I = split(H, "_")
85+ let J = valueOrElse(parseInt(I[0]), 0)
86+ let K = valueOrElse(parseInt(I[1]), height)
87+ let L = (J + E)
88+ let M = ((toString(L) + "_") + toString(height))
89+ let N = invoke(c, "rewardPool", [M], [AttachedPayment(a, k)])
90+ if ((N == N))
91+ then {
92+ let s = N
93+ if ($isInstanceOf(s, "Boolean"))
94+ then {
95+ let O = s
96+[ScriptTransfer(p.caller, i, d), StringEntry(C, u), StringEntry(D, ((toString(L) + "_") + toString(height)))]
97+ }
98+ else throw("Incorrect invoke result")
99+ }
100+ else throw("Strict value is not equal to itself.")
87101 }
88102 else throw("Wrong payment amount or asset")
89103 else throw("out of context")
90104 }
91105 }
92106 else throw("wrong color")
93107 }
94108 else throw("game is not active right now")
95109
96110

github/deemru/w8io/026f985 
46.11 ms