tx · 8AoXfWQdFLWaT1QUzUYSRUZRdb8tLx28SP3AxZBCXMYP

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.10 09:07 [1827752] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "8AoXfWQdFLWaT1QUzUYSRUZRdb8tLx28SP3AxZBCXMYP", "fee": 1000000, "feeAssetId": null, "timestamp": 1639116488357, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "5DQmg8iFLmRg5pQAwTsVG7bstEs5QK9oeuKVKmA7nAgdDQ822t81B64MVtxEd84i96zYexgh5cSmnYDAEuDZ36Gc" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAAAAVmcm9te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XNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMKAQAAAAxnZXRjaGFsbGVuZ2UAAAABAAAADGNoYWxsZW5kZ2VpZAQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwCQEAAAARQGV4dHJOYXRpdmUoMTA1OCkAAAABCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAIAAAAABAAAAAljaGFsbGVuZ2UJAAS1AAAAAgkBAAAADGdldGNoYWxsZW5nZQAAAAEFAAAADGNoYWxsZW5kZ2VpZAUAAAAFc2VwYXIDCQAAZgAAAAIJAAGQAAAAAQUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAwkAAAAAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAIAAAAIYXdhaXRpbmcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQJAAS5AAAAAgkABEwAAAACAgAAAAV1bnNldAkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAQkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAgkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAwUAAAADbmlsBQAAAAVzZXBhcgUAAAADbmlsCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzAAAAAEUBLGU=", "height": 1827752, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DenXwG1E1Liorjxi9EzBMvBs2RuBQ3iExHDqUnLWoxAE Next: 3mM9e4vJ8cMVb4hSGSpued3yobJXJ6XRwkEAMoew72pr Diff:
OldNewDifferences
7171 }
7272 let impossible = match getString((((movetype + side) + figure) + "-")) {
7373 case a: String =>
74- split(getStringValue((((movetype + side) + figure) + "+")), "|")
74+ split(getStringValue((((movetype + side) + figure) + "-")), "|")
7575 case _ =>
76- throw((((("no rules for " + movetype) + side) + figure) + "+"))
76+ throw((((("no rules for " + movetype) + side) + figure) + "-"))
7777 }
7878 let iscorrect1 = if (containsElement(possible, movement))
7979 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 }
2424 if ((game == game))
2525 then {
2626 let callerAdress = toBase58String(i.caller.bytes)
2727 if ((callerAdress == callerAdress))
2828 then {
2929 let isgame = if ((game[0] == "ongoing"))
3030 then true
3131 else throw("not ongoing game")
3232 if ((isgame == isgame))
3333 then {
3434 let side = if (if (isgame)
3535 then if ((game[1] == callerAdress))
3636 then true
3737 else (game[2] == callerAdress)
3838 else false)
3939 then if ((game[1] == callerAdress))
4040 then "w"
4141 else "b"
4242 else throw("not gamer")
4343 if ((side == side))
4444 then {
4545 let otherside = if ((side == "w"))
4646 then "b"
4747 else "w"
4848 let turn = if ((side == game[5]))
4949 then true
5050 else throw("not your turn")
5151 if ((turn == turn))
5252 then {
5353 let situation = split(game[8], "!")
5454 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], "-")]
5555 if ((cells == cells))
5656 then {
5757 let figure = if ((takeRight(cells[fromy][fromx], 1) == "0"))
5858 then throw("empty cell")
5959 else takeRight(cells[fromy][fromx], 1)
6060 let movetype = if ((take(cells[toy][tox], 1) == "0"))
6161 then "m"
6262 else if ((take(cells[toy][tox], 1) == otherside))
6363 then "e"
6464 else throw("can not eat himself")
6565 let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
6666 let possible = match getString((((movetype + side) + figure) + "+")) {
6767 case a: String =>
6868 split(getStringValue((((movetype + side) + figure) + "+")), "|")
6969 case _ =>
7070 throw((((("no rules for " + movetype) + side) + figure) + "+"))
7171 }
7272 let impossible = match getString((((movetype + side) + figure) + "-")) {
7373 case a: String =>
74- split(getStringValue((((movetype + side) + figure) + "+")), "|")
74+ split(getStringValue((((movetype + side) + figure) + "-")), "|")
7575 case _ =>
76- throw((((("no rules for " + movetype) + side) + figure) + "+"))
76+ throw((((("no rules for " + movetype) + side) + figure) + "-"))
7777 }
7878 let iscorrect1 = if (containsElement(possible, movement))
7979 then true
8080 else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
8181 let iscorrect2 = if (containsElement(impossible, movement))
8282 then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype))
8383 else true
8484 if (iscorrect2)
8585 then {
8686 let old = game[8]
8787 let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
8888 let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
8989 $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")])
9090 }
9191 else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
9292 }
9393 else throw("Strict value is not equal to itself.")
9494 }
9595 else throw("Strict value is not equal to itself.")
9696 }
9797 else throw("Strict value is not equal to itself.")
9898 }
9999 else throw("Strict value is not equal to itself.")
100100 }
101101 else throw("Strict value is not equal to itself.")
102102 }
103103 else throw("Strict value is not equal to itself.")
104104 }
105105
106106
107107
108108 @Callable(i)
109109 func startgame (challengeid) = {
110110 let pmt = if ((size(i.payments) == 1))
111111 then i.payments[0]
112112 else throw("must stake some waves")
113113 if (isDefined(pmt.assetId))
114114 then throw("works with waves only")
115115 else {
116116 let callerAdress = toBase58String(i.caller.bytes)
117117 let conditions = split(getStringValue(("challenge-" + challengeid)), separ)
118118 if ((size(conditions) > 0))
119119 then if ((pmt.amount >= parseIntValue(conditions[3])))
120120 then if ((conditions[0] == "awaiting"))
121121 then {
122122 let black = if ((conditions[2] == "b"))
123123 then conditions[1]
124124 else callerAdress
125125 let white = if ((conditions[2] == "w"))
126126 then conditions[1]
127127 else callerAdress
128128 let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1))
129129 [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), {
130130 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"
131131 StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ))
132132 }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)]
133133 }
134134 else throw("no challenge awaiting")
135135 else throw("need more money")
136136 else throw("no challenge")
137137 }
138138 }
139139
140140
141141
142142 @Callable(i)
143143 func setchallenge (side) = if (if ((side == "b"))
144144 then true
145145 else (side == "w"))
146146 then {
147147 let pmt = if ((size(i.payments) == 1))
148148 then i.payments[0]
149149 else throw("must stake some waves")
150150 if (isDefined(pmt.assetId))
151151 then throw("works with waves only")
152152 else {
153153 let callerAdress = toBase58String(i.caller.bytes)
154154 let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
155155 [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)]
156156 }
157157 }
158158 else throw("invalid side")
159159
160160
161161
162162 @Callable(i)
163163 func unsetchallenge (challendgeid) = {
164164 let callerAdress = toBase58String(i.caller.bytes)
165165 func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) {
166166 case a: String =>
167167 getStringValue(("challenge-" + challendgeid))
168168 case _ =>
169169 ""
170170 }
171171
172172 let challenge = split(getchallenge(challendgeid), separ)
173173 if ((size(challenge) > 0))
174174 then if ((challenge[0] == "awaiting"))
175175 then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))]
176176 else throw("challenge not exists")
177177 else throw("challenge not exists")
178178 }
179179
180180

github/deemru/w8io/026f985 
35.37 ms