tx · 3mfP2AJ25dTomLKMjrSVVhRQcEMTgUVi9yU4Ga4RgzyA

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.10 09:25 [1827772] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "3mfP2AJ25dTomLKMjrSVVhRQcEMTgUVi9yU4Ga4RgzyA", "fee": 1000000, "feeAssetId": null, "timestamp": 1639117573334, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "2iz3N9yYHFWNYnLm8Uc5W3A9EfTZQMm8JLj7sSGqDRNFrWD58JV8RZTcwdfW1KUVHxF9DE6zMYyd9d4fqHs1jgYv" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAA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gAAAAIJAAGQAAAAAQUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAwkAAAAAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAIAAAAIYXdhaXRpbmcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQJAAS5AAAAAgkABEwAAAACAgAAAAV1bnNldAkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAQkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAgkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAwUAAAADbmlsBQAAAAVzZXBhcgUAAAADbmlsCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzAAAAAOVvEnE=", "height": 1827772, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3mM9e4vJ8cMVb4hSGSpued3yobJXJ6XRwkEAMoew72pr Next: EPPHmiBgVkGk8DtzS6TRoPiVwCYY2vvwCYveGYX1wSne Diff:
OldNewDifferences
2121 case _ =>
2222 throw("no game")
2323 }
24+ let correctxy = if (if (if (if ((fromx > -1))
25+ then (tox > -1)
26+ else false)
27+ then (8 > fromy)
28+ else false)
29+ then (8 > toy)
30+ else false)
31+ then true
32+ else throw("incorrect xy")
2433 let callerAdress = toBase58String(i.caller.bytes)
2534 let isgame = if ((game[0] == "ongoing"))
2635 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separ = "|"
55
66 @Callable(i)
77 func reset () = [StringEntry("lastgameid", "0"), StringEntry("lastchallengeid", "0")]
88
99
1010
1111 @Callable(i)
1212 func setrules () = [StringEntry("mbf+", "-1,1|1,1"), StringEntry("mbf-", ""), StringEntry("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", "")]
1313
1414
1515
1616 @Callable(i)
1717 func move (gameid,fromx,fromy,tox,toy) = {
1818 let game = match getString(("game-" + gameid)) {
1919 case a: String =>
2020 split(getStringValue(("game-" + gameid)), separ)
2121 case _ =>
2222 throw("no game")
2323 }
24+ let correctxy = if (if (if (if ((fromx > -1))
25+ then (tox > -1)
26+ else false)
27+ then (8 > fromy)
28+ else false)
29+ then (8 > toy)
30+ else false)
31+ then true
32+ else throw("incorrect xy")
2433 let callerAdress = toBase58String(i.caller.bytes)
2534 let isgame = if ((game[0] == "ongoing"))
2635 then true
2736 else throw("not ongoing game")
2837 let side = if (if (isgame)
2938 then if ((game[1] == callerAdress))
3039 then true
3140 else (game[2] == callerAdress)
3241 else false)
3342 then if ((game[1] == callerAdress))
3443 then "w"
3544 else "b"
3645 else throw("not gamer")
3746 let otherside = if ((side == "w"))
3847 then "b"
3948 else "w"
4049 let turn = if ((side == game[5]))
4150 then true
4251 else throw("not your turn")
4352 let situation = split(game[8], "!")
4453 let cells = [split(situation[0], "-"), split(situation[1], "-"), split(situation[2], "-"), split(situation[3], "-"), split(situation[4], "-"), split(situation[5], "-"), split(situation[6], "-"), split(situation[7], "-")]
4554 let figure = if ((takeRight(cells[fromy][fromx], 1) == "0"))
4655 then throw("empty cell")
4756 else takeRight(cells[fromy][fromx], 1)
4857 let movetype = if ((take(cells[toy][tox], 1) == "0"))
4958 then "m"
5059 else if ((take(cells[toy][tox], 1) == otherside))
5160 then "e"
5261 else throw("can not eat himself")
5362 let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
5463 let possible = match getString((((movetype + side) + figure) + "+")) {
5564 case a: String =>
5665 split(getStringValue((((movetype + side) + figure) + "+")), "|")
5766 case _ =>
5867 throw((((("no rules for " + movetype) + side) + figure) + "+"))
5968 }
6069 let impossible = match getString((((movetype + side) + figure) + "-")) {
6170 case a: String =>
6271 split(getStringValue((((movetype + side) + figure) + "-")), "|")
6372 case _ =>
6473 throw((((("no rules for " + movetype) + side) + figure) + "-"))
6574 }
6675 let iscorrect1 = if (containsElement(possible, movement))
6776 then true
6877 else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
6978 let iscorrect2 = if (containsElement(impossible, movement))
7079 then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype))
7180 else true
7281 if (iscorrect2)
7382 then {
7483 let old = game[8]
7584 let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
7685 let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
7786 $Tuple2([StringEntry(("game-" + gameid), makeString([game[0], game[1], game[2], game[3], toString((parseIntValue(game[4]) + 1)), otherside, game[6], game[7], newsituation], separ))], [StringEntry("_", "possible")])
7887 }
7988 else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
8089 }
8190
8291
8392
8493 @Callable(i)
8594 func startgame (challengeid) = {
8695 let pmt = if ((size(i.payments) == 1))
8796 then i.payments[0]
8897 else throw("must stake some waves")
8998 if (isDefined(pmt.assetId))
9099 then throw("works with waves only")
91100 else {
92101 let callerAdress = toBase58String(i.caller.bytes)
93102 let conditions = split(getStringValue(("challenge-" + challengeid)), separ)
94103 if ((size(conditions) > 0))
95104 then if ((pmt.amount >= parseIntValue(conditions[3])))
96105 then if ((conditions[0] == "awaiting"))
97106 then {
98107 let black = if ((conditions[2] == "b"))
99108 then conditions[1]
100109 else callerAdress
101110 let white = if ((conditions[2] == "w"))
102111 then conditions[1]
103112 else callerAdress
104113 let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1))
105114 [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), {
106115 let situation = "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"
107116 StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ))
108117 }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)]
109118 }
110119 else throw("no challenge awaiting")
111120 else throw("need more money")
112121 else throw("no challenge")
113122 }
114123 }
115124
116125
117126
118127 @Callable(i)
119128 func setchallenge (side) = if (if ((side == "b"))
120129 then true
121130 else (side == "w"))
122131 then {
123132 let pmt = if ((size(i.payments) == 1))
124133 then i.payments[0]
125134 else throw("must stake some waves")
126135 if (isDefined(pmt.assetId))
127136 then throw("works with waves only")
128137 else {
129138 let callerAdress = toBase58String(i.caller.bytes)
130139 let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
131140 [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)]
132141 }
133142 }
134143 else throw("invalid side")
135144
136145
137146
138147 @Callable(i)
139148 func unsetchallenge (challendgeid) = {
140149 let callerAdress = toBase58String(i.caller.bytes)
141150 func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) {
142151 case a: String =>
143152 getStringValue(("challenge-" + challendgeid))
144153 case _ =>
145154 ""
146155 }
147156
148157 let challenge = split(getchallenge(challendgeid), separ)
149158 if ((size(challenge) > 0))
150159 then if ((challenge[0] == "awaiting"))
151160 then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))]
152161 else throw("challenge not exists")
153162 else throw("challenge not exists")
154163 }
155164
156165

github/deemru/w8io/026f985 
44.01 ms