tx · 6hBVYB2pvmpeH75aKWcEPPyYvKTb2oUkp1qYqL5GxKmT

3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD:  -0.00500000 Waves

2022.08.02 14:16 [2166798] smart account 3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD > SELF 0.00000000 Waves

{ "type": 13, "id": "6hBVYB2pvmpeH75aKWcEPPyYvKTb2oUkp1qYqL5GxKmT", "fee": 500000, "feeAssetId": null, "timestamp": 1659438976835, "version": 2, "chainId": 84, "sender": "3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD", "senderPublicKey": "DuG16HmDLNnqp4eX1MeM1DX5DuWxFCARi1TAXvrekhGb", "proofs": [ "2DuEDUCDGUGaAXdhQHWkhdFJs5XEKgL8yNBeeeofQGJmWSbrCjHCPdVpCZu6zXMqXhXnqRUCtZPiWcrkPLdwWjeU" ], "script": "base64:AAIFAAAAAAAAABQIAhIECgIBARIECgIECBIECgIICAAAABcAAAAADVBBWU1FTlRfQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAAxSRVdBUkRfQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAAAthZG1pblB1YktleQEAAAAgqLWmf98toNE9vqPG9aON6EpqB9vXYJJsZXUlC8eDPgUAAAAADlBBWU1FTlRfQU1PVU5UAAAAAAAAD0JAAAAAAAZwaXhlbHMFAAAADFJFV0FSRF9BU1NFVAAAAAAEeE1JTgAAAAAAAAAAAAAAAAAEeE1BWAAAAAAAAAAEsQAAAAAEeU1JTgAAAAAAAAAAAAAAAAAEeU1BWAAAAAAAAAACWQAAAAANUkVXQVJEX0FNT1VOVAAAAAAABfXhAAAAAAAMU1RBUlRfSEVJR0hUAAAAAAAAINEjAAAAAApFTkRfSEVJR0hUCQAAZAAAAAIFAAAADFNUQVJUX0hFSUdIVAkAAGgAAAACAAAAAAAAAAWgAAAAAAAAAAAOAAAAAA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Bjb2xvcgkAAAIAAAABAgAAABxnYW1lIGlzIG5vdCBhY3RpdmUgcmlnaHQgbm93AAAAAAGaSiE=", "height": 2166798, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FGdxHFk4Z6tLRuhEBSRi8Wmu7272Xi7Gen3WeMM1MUC Next: HqbspicDkNotWLjfPktmfA9qKviod8xy8c1qeoKGh53o Diff:
OldNewDifferences
8484 let J = (s + t)
8585 let K = (((toString(s) + "_") + toString(J)) + "_0")
8686 let L = valueOrElse(getString(this, p), K)
87- if (if (if ((height > k))
88- then (l > height)
87+ let M = split(L, "_")
88+ let N = valueOrErrorMessage(parseInt(M[0]), "int_str err")
89+ let O = valueOrErrorMessage(parseInt(M[1]), "int_str err")
90+ let C = valueOrErrorMessage(parseInt(M[2]), "int_str err")
91+ if (if (if ((height > N))
92+ then (O > height)
8993 else false)
9094 then I
9195 else false)
9296 then {
93- let M = containsElement(v, G)
94- let N = valueOrElse(getInteger(this, o), u)
95- if (M)
97+ let P = containsElement(v, G)
98+ if (P)
9699 then {
97- let O = toBase58String(x.caller.bytes)
98- let P = split(H, "_")
99- let Q = valueOrElse(parseInt(P[0]), 0)
100- let R = valueOrElse(parseInt(P[1]), 0)
101- if (if (((Q % 8) != 0))
100+ let Q = toBase58String(x.caller.bytes)
101+ let R = split(H, "_")
102+ let S = valueOrElse(parseInt(R[0]), 0)
103+ let T = valueOrElse(parseInt(R[1]), 0)
104+ if (if (((S % 8) != 0))
102105 then true
103- else ((R % 8) != 0))
106+ else ((T % 8) != 0))
104107 then throw("not cool.")
105108 else {
106- let S = ((toString(Q) + "_") + toString(R))
107- let T = (((O + "_") + S) + "_c")
108- let U = (O + "_count")
109- let V = "pixels_count"
110- let W = valueOrElse(getInteger(this, U), 0)
111- let X = valueOrElse(getInteger(this, V), 0)
112- if ((n >= X))
113- then if ((m >= W))
114- then if (if (if (if ((Q >= f))
115- then (g > Q)
109+ let U = ((toString(S) + "_") + toString(T))
110+ let V = (((((Q + "_") + U) + "_c") + "_") + toString(C))
111+ let W = ((Q + "_count") + toString(C))
112+ let X = ("pixels_count" + toString(C))
113+ let Y = valueOrElse(getInteger(this, W), 0)
114+ let Z = valueOrElse(getInteger(this, X), 0)
115+ if ((n >= Z))
116+ then if ((m >= Y))
117+ then if (if (if (if ((S >= f))
118+ then (g > S)
116119 else false)
117- then (R >= h)
120+ then (T >= h)
118121 else false)
119- then (i > R)
122+ then (i > T)
120123 else false)
121124 then if (w(x))
122- then [IntegerEntry(U, (W + 1)), IntegerEntry(V, (X + 1)), StringEntry(T, G), ScriptTransfer(x.caller, j, e)]
125+ then [IntegerEntry(W, (Y + 1)), IntegerEntry(X, (Z + 1)), StringEntry(V, G), ScriptTransfer(x.caller, j, e)]
123126 else throw("wrong payment amount or asset")
124127 else throw("out of context")
125128 else throw((("max " + toString(m)) + " pixels for each wallet!"))
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
88 let c = base58'CMa9TJH8JthRv8Uq8pZc4FSpgZ9bvpk6XRsZktUm2ivx'
99
1010 let d = 1000000
1111
1212 let e = b
1313
1414 let f = 0
1515
1616 let g = 1201
1717
1818 let h = 0
1919
2020 let i = 601
2121
2222 let j = 100000000
2323
2424 let k = 2150691
2525
2626 let l = (k + (1440 * 14))
2727
2828 let m = 1000
2929
3030 let n = 2250000000000
3131
3232 let o = "activeSession"
3333
3434 let p = "activeBlock"
3535
3636 let q = "isOpen"
3737
3838 let r = "shutDownReason"
3939
4040 let s = 2166753
4141
4242 let t = (1440 * 7)
4343
4444 let u = 1
4545
4646 let v = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"]
4747
4848 func w (x) = {
4949 let y = a
5050 if ((size(x.payments) == 0))
5151 then throw("Payment not attached")
5252 else {
5353 let z = x.payments[0]
5454 let A = z.assetId
5555 if ($isInstanceOf(A, "ByteVector"))
5656 then {
5757 let B = A
5858 if ((B == y))
5959 then (z.amount == 1000000)
6060 else false
6161 }
6262 else throw("Wrong payment asset")
6363 }
6464 }
6565
6666
6767 @Callable(x)
6868 func activeSession (C,D) = if ((c != x.callerPublicKey))
6969 then throw("you can not")
7070 else [IntegerEntry(o, C), StringEntry(p, ((((toString(D) + "_") + toString((D + t))) + "_") + toString(C)))]
7171
7272
7373
7474 @Callable(x)
7575 func shutdown (E,F) = if ((c != x.callerPublicKey))
7676 then throw("you can not")
7777 else [BooleanEntry(q, E), StringEntry(r, F)]
7878
7979
8080
8181 @Callable(x)
8282 func coordinates (G,H) = {
8383 let I = valueOrElse(getBoolean(this, q), true)
8484 let J = (s + t)
8585 let K = (((toString(s) + "_") + toString(J)) + "_0")
8686 let L = valueOrElse(getString(this, p), K)
87- if (if (if ((height > k))
88- then (l > height)
87+ let M = split(L, "_")
88+ let N = valueOrErrorMessage(parseInt(M[0]), "int_str err")
89+ let O = valueOrErrorMessage(parseInt(M[1]), "int_str err")
90+ let C = valueOrErrorMessage(parseInt(M[2]), "int_str err")
91+ if (if (if ((height > N))
92+ then (O > height)
8993 else false)
9094 then I
9195 else false)
9296 then {
93- let M = containsElement(v, G)
94- let N = valueOrElse(getInteger(this, o), u)
95- if (M)
97+ let P = containsElement(v, G)
98+ if (P)
9699 then {
97- let O = toBase58String(x.caller.bytes)
98- let P = split(H, "_")
99- let Q = valueOrElse(parseInt(P[0]), 0)
100- let R = valueOrElse(parseInt(P[1]), 0)
101- if (if (((Q % 8) != 0))
100+ let Q = toBase58String(x.caller.bytes)
101+ let R = split(H, "_")
102+ let S = valueOrElse(parseInt(R[0]), 0)
103+ let T = valueOrElse(parseInt(R[1]), 0)
104+ if (if (((S % 8) != 0))
102105 then true
103- else ((R % 8) != 0))
106+ else ((T % 8) != 0))
104107 then throw("not cool.")
105108 else {
106- let S = ((toString(Q) + "_") + toString(R))
107- let T = (((O + "_") + S) + "_c")
108- let U = (O + "_count")
109- let V = "pixels_count"
110- let W = valueOrElse(getInteger(this, U), 0)
111- let X = valueOrElse(getInteger(this, V), 0)
112- if ((n >= X))
113- then if ((m >= W))
114- then if (if (if (if ((Q >= f))
115- then (g > Q)
109+ let U = ((toString(S) + "_") + toString(T))
110+ let V = (((((Q + "_") + U) + "_c") + "_") + toString(C))
111+ let W = ((Q + "_count") + toString(C))
112+ let X = ("pixels_count" + toString(C))
113+ let Y = valueOrElse(getInteger(this, W), 0)
114+ let Z = valueOrElse(getInteger(this, X), 0)
115+ if ((n >= Z))
116+ then if ((m >= Y))
117+ then if (if (if (if ((S >= f))
118+ then (g > S)
116119 else false)
117- then (R >= h)
120+ then (T >= h)
118121 else false)
119- then (i > R)
122+ then (i > T)
120123 else false)
121124 then if (w(x))
122- then [IntegerEntry(U, (W + 1)), IntegerEntry(V, (X + 1)), StringEntry(T, G), ScriptTransfer(x.caller, j, e)]
125+ then [IntegerEntry(W, (Y + 1)), IntegerEntry(X, (Z + 1)), StringEntry(V, G), ScriptTransfer(x.caller, j, e)]
123126 else throw("wrong payment amount or asset")
124127 else throw("out of context")
125128 else throw((("max " + toString(m)) + " pixels for each wallet!"))
126129 else throw("all sold. thanx.")
127130 }
128131 }
129132 else throw("wrong color")
130133 }
131134 else throw("game is not active right now")
132135 }
133136
134137

github/deemru/w8io/169f3d6 
73.85 ms