tx · J339H9oFSgHpBGdPrcdySWAFHA8yuHW6ywEPVWgD8NFm

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.09 12:35 [1826534] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "J339H9oFSgHpBGdPrcdySWAFHA8yuHW6ywEPVWgD8NFm", "fee": 1000000, "feeAssetId": null, "timestamp": 1639042603447, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "qCEgXbVvSLMcdu9qdQCDhLvyEhTCjCwTjGYva8RJbZB84FMKzwfC85vkp85LWtCm39moy5snRTG9regN1LUhUZo" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAAAAVmcm9teAAAAAVmcm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AARQGV4dHJOYXRpdmUoMTA1OCkAAAABCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAIAAAAABAAAAAljaGFsbGVuZ2UJAAS1AAAAAgkBAAAADGdldGNoYWxsZW5nZQAAAAEFAAAADGNoYWxsZW5kZ2VpZAUAAAAFc2VwYXIDCQAAZgAAAAIJAAGQAAAAAQUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAwkAAAAAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAIAAAAIYXdhaXRpbmcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQJAAS5AAAAAgkABEwAAAACAgAAAAV1bnNldAkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAQkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAgkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAwUAAAADbmlsBQAAAAVzZXBhcgUAAAADbmlsCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzAAAAAARJZms=", "height": 1826534, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4nHxZQ3UfobEBWG4J1G6AdFNzxdQGDpZzwAK36Rp8X51 Next: EaWJayQ2T8nPBHeSnC662Upk2oHrQ8uV61TZEhzrKzLi Diff:
OldNewDifferences
6464 let v = if (containsElement(t, r))
6565 then throw(((((("incorrect movement-: fig=" + p) + " side=") + k) + " mtype=") + q))
6666 else true
67- let w = makeString([o[0][0], o[0][1], o[0][2], o[0][3], o[0][4], o[0][5], o[0][6], o[0][7]], "-")
68- let x = makeString([o[1][0], o[1][1], o[1][2], o[1][3], o[1][4], o[1][5], o[1][6], o[1][7]], "-")
69- let y = makeString([o[2][0], o[2][1], o[2][2], o[2][3], o[2][4], o[2][5], o[2][6], o[2][7]], "-")
70- let z = makeString([w, x, y], "!")
7167 if (v)
72- then $Tuple2([StringEntry(("game-" + c), makeString([h[0], h[1], h[2], h[3], toString((parseIntValue(h[4]) + 1)), l, h[6], h[7], z], a))], [StringEntry("_", "possible")])
68+ then {
69+ let w = h[8]
70+ let x = ((take(w, ((d * 3) + ((e * 8) * 3))) + "00") + takeRight(w, ((191 - ((d * 3) + ((e * 8) * 3))) - 2)))
71+ let y = x
72+ $Tuple2([StringEntry(("game-" + c), makeString([h[0], h[1], h[2], h[3], toString((parseIntValue(h[4]) + 1)), l, h[6], h[7], y], a))], [StringEntry("_", "possible")])
73+ }
7374 else throw(((((("impossible movement: fig=" + p) + " side=") + k) + " mtype=") + q))
7475 }
7576 else throw("Strict value is not equal to itself.")
8889
8990
9091 @Callable(b)
91-func startgame (A) = {
92- let B = if ((size(b.payments) == 1))
92+func startgame (z) = {
93+ let A = if ((size(b.payments) == 1))
9394 then b.payments[0]
9495 else throw("must stake some waves")
95- if (isDefined(B.assetId))
96+ if (isDefined(A.assetId))
9697 then throw("works with waves only")
9798 else {
9899 let i = toBase58String(b.caller.bytes)
99- let C = split(getStringValue(("challenge-" + A)), a)
100- if ((size(C) > 0))
101- then if ((B.amount >= parseIntValue(C[3])))
102- then if ((C[0] == "awaiting"))
100+ let B = split(getStringValue(("challenge-" + z)), a)
101+ if ((size(B) > 0))
102+ then if ((A.amount >= parseIntValue(B[3])))
103+ then if ((B[0] == "awaiting"))
103104 then {
104- let D = if ((C[2] == "b"))
105- then C[1]
105+ let C = if ((B[2] == "b"))
106+ then B[1]
106107 else i
107- let E = if ((C[2] == "w"))
108- then C[1]
108+ let D = if ((B[2] == "w"))
109+ then B[1]
109110 else i
110111 let c = toString((parseIntValue(getStringValue("lastgameid")) + 1))
111-[StringEntry(("challenge-" + A), makeString([c, C[1], C[2], C[3], i], a)), {
112+[StringEntry(("challenge-" + z), makeString([c, B[1], B[2], B[3], i], a)), {
112113 let n = "wf-00-wf-00-wf-00-wf-00!00-wf-00-wf-00-wf-00-wf!wf-00-wf-00-wf-00-wf-00!00-00-00-00-00-00-00-00!00-00-00-00-00-00-00-00!00-bf-00-bf-00-bf-00-bf!bf-00-bf-00-bf-00-bf-00!00-bf-00-bf-00-bf-00-bf"
113- StringEntry(("game-" + c), makeString(["ongoing", E, D, C[3], "0", "w", "startblock", "laststepblock", n], a))
114- }, StringEntry("lastgameid", c), ScriptTransfer(b.caller, (B.amount - parseIntValue(C[3])), unit)]
114+ StringEntry(("game-" + c), makeString(["ongoing", D, C, B[3], "0", "w", "startblock", "laststepblock", n], a))
115+ }, StringEntry("lastgameid", c), ScriptTransfer(b.caller, (A.amount - parseIntValue(B[3])), unit)]
115116 }
116117 else throw("no challenge awaiting")
117118 else throw("need more money")
126127 then true
127128 else (k == "w"))
128129 then {
129- let B = if ((size(b.payments) == 1))
130+ let A = if ((size(b.payments) == 1))
130131 then b.payments[0]
131132 else throw("must stake some waves")
132- if (isDefined(B.assetId))
133+ if (isDefined(A.assetId))
133134 then throw("works with waves only")
134135 else {
135136 let i = toBase58String(b.caller.bytes)
136- let A = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
137-[StringEntry(("challenge-" + A), makeString(["awaiting", i, k, toString(B.amount)], a)), StringEntry("lastchallengeid", A)]
137+ let z = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
138+[StringEntry(("challenge-" + z), makeString(["awaiting", i, k, toString(A.amount)], a)), StringEntry("lastchallengeid", z)]
138139 }
139140 }
140141 else throw("invalid side")
142143
143144
144145 @Callable(b)
145-func unsetchallenge (F) = {
146+func unsetchallenge (E) = {
146147 let i = toBase58String(b.caller.bytes)
147- func G (F) = {
148- let H = getString(("challenge-" + F))
149- if ($isInstanceOf(H, "String"))
148+ func F (E) = {
149+ let G = getString(("challenge-" + E))
150+ if ($isInstanceOf(G, "String"))
150151 then {
151- let I = H
152- getStringValue(("challenge-" + F))
152+ let H = G
153+ getStringValue(("challenge-" + E))
153154 }
154155 else ""
155156 }
156157
157- let J = split(G(F), a)
158- if ((size(J) > 0))
159- then if ((J[0] == "awaiting"))
160- then [StringEntry(("challenge-" + F), makeString(["unset", J[1], J[2], J[3]], a))]
158+ let I = split(F(E), a)
159+ if ((size(I) > 0))
160+ then if ((I[0] == "awaiting"))
161+ then [StringEntry(("challenge-" + E), makeString(["unset", I[1], I[2], I[3]], a))]
161162 else throw("challenge not exists")
162163 else throw("challenge not exists")
163164 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "|"
55
66 @Callable(b)
77 func reset () = [StringEntry("lastgameid", "0"), StringEntry("lastchallengeid", "0")]
88
99
1010
1111 @Callable(b)
1212 func setrules () = [StringEntry("mbf+", "-1,1|1,1"), StringEntry("mbf-", ""), StringEntry("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", "")]
1313
1414
1515
1616 @Callable(b)
1717 func move (c,d,e,f,g) = {
1818 let h = split(getStringValue(("game-" + c)), a)
1919 if ((h == h))
2020 then {
2121 let i = toBase58String(b.caller.bytes)
2222 if ((i == i))
2323 then {
2424 let j = if ((h[0] == "ongoing"))
2525 then true
2626 else throw("not ongoing game")
2727 if ((j == j))
2828 then {
2929 let k = if (if (j)
3030 then if ((h[1] == i))
3131 then true
3232 else (h[2] == i)
3333 else false)
3434 then if ((h[1] == i))
3535 then "w"
3636 else "b"
3737 else throw("not gamer")
3838 if ((k == k))
3939 then {
4040 let l = if ((k == "w"))
4141 then "b"
4242 else "w"
4343 let m = if ((k == h[5]))
4444 then true
4545 else throw("not your turn")
4646 if ((m == m))
4747 then {
4848 let n = split(h[8], "!")
4949 let o = [split(n[0], "-"), split(n[1], "-"), split(n[2], "-"), split(n[3], "-"), split(n[4], "-"), split(n[5], "-"), split(n[6], "-"), split(n[7], "-")]
5050 if ((o == o))
5151 then {
5252 let p = takeRight(o[e][d], 1)
5353 let q = if ((take(o[g][f], 1) == "0"))
5454 then "m"
5555 else if ((take(o[g][f], 1) == l))
5656 then "e"
5757 else throw("can not eat himself")
5858 let r = ((toString((d - f)) + ",") + toString((e - g)))
5959 let s = split(getStringValue((((q + k) + p) + "+")), "|")
6060 let t = split(getStringValue((((q + k) + p) + "-")), "|")
6161 let u = if (containsElement(s, r))
6262 then true
6363 else throw(((((("incorrect movement+: fig=" + p) + " side=") + k) + " mtype=") + q))
6464 let v = if (containsElement(t, r))
6565 then throw(((((("incorrect movement-: fig=" + p) + " side=") + k) + " mtype=") + q))
6666 else true
67- let w = makeString([o[0][0], o[0][1], o[0][2], o[0][3], o[0][4], o[0][5], o[0][6], o[0][7]], "-")
68- let x = makeString([o[1][0], o[1][1], o[1][2], o[1][3], o[1][4], o[1][5], o[1][6], o[1][7]], "-")
69- let y = makeString([o[2][0], o[2][1], o[2][2], o[2][3], o[2][4], o[2][5], o[2][6], o[2][7]], "-")
70- let z = makeString([w, x, y], "!")
7167 if (v)
72- then $Tuple2([StringEntry(("game-" + c), makeString([h[0], h[1], h[2], h[3], toString((parseIntValue(h[4]) + 1)), l, h[6], h[7], z], a))], [StringEntry("_", "possible")])
68+ then {
69+ let w = h[8]
70+ let x = ((take(w, ((d * 3) + ((e * 8) * 3))) + "00") + takeRight(w, ((191 - ((d * 3) + ((e * 8) * 3))) - 2)))
71+ let y = x
72+ $Tuple2([StringEntry(("game-" + c), makeString([h[0], h[1], h[2], h[3], toString((parseIntValue(h[4]) + 1)), l, h[6], h[7], y], a))], [StringEntry("_", "possible")])
73+ }
7374 else throw(((((("impossible movement: fig=" + p) + " side=") + k) + " mtype=") + q))
7475 }
7576 else throw("Strict value is not equal to itself.")
7677 }
7778 else throw("Strict value is not equal to itself.")
7879 }
7980 else throw("Strict value is not equal to itself.")
8081 }
8182 else throw("Strict value is not equal to itself.")
8283 }
8384 else throw("Strict value is not equal to itself.")
8485 }
8586 else throw("Strict value is not equal to itself.")
8687 }
8788
8889
8990
9091 @Callable(b)
91-func startgame (A) = {
92- let B = if ((size(b.payments) == 1))
92+func startgame (z) = {
93+ let A = if ((size(b.payments) == 1))
9394 then b.payments[0]
9495 else throw("must stake some waves")
95- if (isDefined(B.assetId))
96+ if (isDefined(A.assetId))
9697 then throw("works with waves only")
9798 else {
9899 let i = toBase58String(b.caller.bytes)
99- let C = split(getStringValue(("challenge-" + A)), a)
100- if ((size(C) > 0))
101- then if ((B.amount >= parseIntValue(C[3])))
102- then if ((C[0] == "awaiting"))
100+ let B = split(getStringValue(("challenge-" + z)), a)
101+ if ((size(B) > 0))
102+ then if ((A.amount >= parseIntValue(B[3])))
103+ then if ((B[0] == "awaiting"))
103104 then {
104- let D = if ((C[2] == "b"))
105- then C[1]
105+ let C = if ((B[2] == "b"))
106+ then B[1]
106107 else i
107- let E = if ((C[2] == "w"))
108- then C[1]
108+ let D = if ((B[2] == "w"))
109+ then B[1]
109110 else i
110111 let c = toString((parseIntValue(getStringValue("lastgameid")) + 1))
111-[StringEntry(("challenge-" + A), makeString([c, C[1], C[2], C[3], i], a)), {
112+[StringEntry(("challenge-" + z), makeString([c, B[1], B[2], B[3], i], a)), {
112113 let n = "wf-00-wf-00-wf-00-wf-00!00-wf-00-wf-00-wf-00-wf!wf-00-wf-00-wf-00-wf-00!00-00-00-00-00-00-00-00!00-00-00-00-00-00-00-00!00-bf-00-bf-00-bf-00-bf!bf-00-bf-00-bf-00-bf-00!00-bf-00-bf-00-bf-00-bf"
113- StringEntry(("game-" + c), makeString(["ongoing", E, D, C[3], "0", "w", "startblock", "laststepblock", n], a))
114- }, StringEntry("lastgameid", c), ScriptTransfer(b.caller, (B.amount - parseIntValue(C[3])), unit)]
114+ StringEntry(("game-" + c), makeString(["ongoing", D, C, B[3], "0", "w", "startblock", "laststepblock", n], a))
115+ }, StringEntry("lastgameid", c), ScriptTransfer(b.caller, (A.amount - parseIntValue(B[3])), unit)]
115116 }
116117 else throw("no challenge awaiting")
117118 else throw("need more money")
118119 else throw("no challenge")
119120 }
120121 }
121122
122123
123124
124125 @Callable(b)
125126 func setchallenge (k) = if (if ((k == "b"))
126127 then true
127128 else (k == "w"))
128129 then {
129- let B = if ((size(b.payments) == 1))
130+ let A = if ((size(b.payments) == 1))
130131 then b.payments[0]
131132 else throw("must stake some waves")
132- if (isDefined(B.assetId))
133+ if (isDefined(A.assetId))
133134 then throw("works with waves only")
134135 else {
135136 let i = toBase58String(b.caller.bytes)
136- let A = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
137-[StringEntry(("challenge-" + A), makeString(["awaiting", i, k, toString(B.amount)], a)), StringEntry("lastchallengeid", A)]
137+ let z = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
138+[StringEntry(("challenge-" + z), makeString(["awaiting", i, k, toString(A.amount)], a)), StringEntry("lastchallengeid", z)]
138139 }
139140 }
140141 else throw("invalid side")
141142
142143
143144
144145 @Callable(b)
145-func unsetchallenge (F) = {
146+func unsetchallenge (E) = {
146147 let i = toBase58String(b.caller.bytes)
147- func G (F) = {
148- let H = getString(("challenge-" + F))
149- if ($isInstanceOf(H, "String"))
148+ func F (E) = {
149+ let G = getString(("challenge-" + E))
150+ if ($isInstanceOf(G, "String"))
150151 then {
151- let I = H
152- getStringValue(("challenge-" + F))
152+ let H = G
153+ getStringValue(("challenge-" + E))
153154 }
154155 else ""
155156 }
156157
157- let J = split(G(F), a)
158- if ((size(J) > 0))
159- then if ((J[0] == "awaiting"))
160- then [StringEntry(("challenge-" + F), makeString(["unset", J[1], J[2], J[3]], a))]
158+ let I = split(F(E), a)
159+ if ((size(I) > 0))
160+ then if ((I[0] == "awaiting"))
161+ then [StringEntry(("challenge-" + E), makeString(["unset", I[1], I[2], I[3]], a))]
161162 else throw("challenge not exists")
162163 else throw("challenge not exists")
163164 }
164165
165166

github/deemru/w8io/026f985 
45.11 ms