tx · YZVakbWK9zzeZ9zTx8iuv8PprG6Uit8ayizrscdy2Tr

3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV:  -0.01000000 Waves

2021.12.09 13:02 [1826560] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves

{ "type": 13, "id": "YZVakbWK9zzeZ9zTx8iuv8PprG6Uit8ayizrscdy2Tr", "fee": 1000000, "feeAssetId": null, "timestamp": 1639044281412, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3WuUQ9weWoxZtYcGGC2Vhj5fVxMQsJDHAF3Z34M7hFGkRi4DBoiFonHrHWc3Ra5tJk4MGioojZ1ipfrybmHdjGaY" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAAAAVmcm9te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wAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAJAQAAABFAZXh0ck5hdGl2ZSgxMDU4KQAAAAEJAAEsAAAAAgIAAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkAgAAAAAEAAAACWNoYWxsZW5nZQkABLUAAAACCQEAAAAMZ2V0Y2hhbGxlbmdlAAAAAQUAAAAMY2hhbGxlbmRnZWlkBQAAAAVzZXBhcgMJAABmAAAAAgkAAZAAAAABBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAADCQAAAAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAgAAAAhhd2FpdGluZwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAkABLkAAAACCQAETAAAAAICAAAABXVuc2V0CQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAABCQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAACCQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAADBQAAAANuaWwFAAAABXNlcGFyBQAAAANuaWwJAAACAAAAAQIAAAAUY2hhbGxlbmdlIG5vdCBleGlzdHMJAAACAAAAAQIAAAAUY2hhbGxlbmdlIG5vdCBleGlzdHMAAAAAJ9isvw==", "height": 1826560, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: q26eQdQfCNjZx9ckbaxApUEgaXk2yVSqBomsxx8FrGN Next: C97jMmD8vggjNYnHkho41r9RKQgck46FTMEuxFLDC7Cc Diff:
OldNewDifferences
6767 case _ =>
6868 throw((((("no rules for " + movetype) + side) + figure) + "+"))
6969 }
70- let impossible = split(getStringValue((((movetype + side) + figure) + "-")), "|")
70+ let impossible = match getString((((movetype + side) + figure) + "-")) {
71+ case a: String =>
72+ split(getStringValue((((movetype + side) + figure) + "+")), "|")
73+ case _ =>
74+ throw((((("no rules for " + movetype) + side) + figure) + "+"))
75+ }
7176 let iscorrect1 = if (containsElement(possible, movement))
7277 then true
7378 else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
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 = takeRight(cells[fromy][fromx], 1)
5858 let movetype = if ((take(cells[toy][tox], 1) == "0"))
5959 then "m"
6060 else if ((take(cells[toy][tox], 1) == otherside))
6161 then "e"
6262 else throw("can not eat himself")
6363 let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy)))
6464 let possible = match getString((((movetype + side) + figure) + "+")) {
6565 case a: String =>
6666 split(getStringValue((((movetype + side) + figure) + "+")), "|")
6767 case _ =>
6868 throw((((("no rules for " + movetype) + side) + figure) + "+"))
6969 }
70- let impossible = split(getStringValue((((movetype + side) + figure) + "-")), "|")
70+ let impossible = match getString((((movetype + side) + figure) + "-")) {
71+ case a: String =>
72+ split(getStringValue((((movetype + side) + figure) + "+")), "|")
73+ case _ =>
74+ throw((((("no rules for " + movetype) + side) + figure) + "+"))
75+ }
7176 let iscorrect1 = if (containsElement(possible, movement))
7277 then true
7378 else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
7479 let iscorrect2 = if (containsElement(impossible, movement))
7580 then throw(((((("incorrect movement-: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
7681 else true
7782 if (iscorrect2)
7883 then {
7984 let old = game[8]
8085 let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2)))
8186 let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2)))
8287 $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")])
8388 }
8489 else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype))
8590 }
8691 else throw("Strict value is not equal to itself.")
8792 }
8893 else throw("Strict value is not equal to itself.")
8994 }
9095 else throw("Strict value is not equal to itself.")
9196 }
9297 else throw("Strict value is not equal to itself.")
9398 }
9499 else throw("Strict value is not equal to itself.")
95100 }
96101 else throw("Strict value is not equal to itself.")
97102 }
98103
99104
100105
101106 @Callable(i)
102107 func startgame (challengeid) = {
103108 let pmt = if ((size(i.payments) == 1))
104109 then i.payments[0]
105110 else throw("must stake some waves")
106111 if (isDefined(pmt.assetId))
107112 then throw("works with waves only")
108113 else {
109114 let callerAdress = toBase58String(i.caller.bytes)
110115 let conditions = split(getStringValue(("challenge-" + challengeid)), separ)
111116 if ((size(conditions) > 0))
112117 then if ((pmt.amount >= parseIntValue(conditions[3])))
113118 then if ((conditions[0] == "awaiting"))
114119 then {
115120 let black = if ((conditions[2] == "b"))
116121 then conditions[1]
117122 else callerAdress
118123 let white = if ((conditions[2] == "w"))
119124 then conditions[1]
120125 else callerAdress
121126 let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1))
122127 [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), {
123128 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"
124129 StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ))
125130 }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)]
126131 }
127132 else throw("no challenge awaiting")
128133 else throw("need more money")
129134 else throw("no challenge")
130135 }
131136 }
132137
133138
134139
135140 @Callable(i)
136141 func setchallenge (side) = if (if ((side == "b"))
137142 then true
138143 else (side == "w"))
139144 then {
140145 let pmt = if ((size(i.payments) == 1))
141146 then i.payments[0]
142147 else throw("must stake some waves")
143148 if (isDefined(pmt.assetId))
144149 then throw("works with waves only")
145150 else {
146151 let callerAdress = toBase58String(i.caller.bytes)
147152 let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1))
148153 [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)]
149154 }
150155 }
151156 else throw("invalid side")
152157
153158
154159
155160 @Callable(i)
156161 func unsetchallenge (challendgeid) = {
157162 let callerAdress = toBase58String(i.caller.bytes)
158163 func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) {
159164 case a: String =>
160165 getStringValue(("challenge-" + challendgeid))
161166 case _ =>
162167 ""
163168 }
164169
165170 let challenge = split(getchallenge(challendgeid), separ)
166171 if ((size(challenge) > 0))
167172 then if ((challenge[0] == "awaiting"))
168173 then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))]
169174 else throw("challenge not exists")
170175 else throw("challenge not exists")
171176 }
172177
173178

github/deemru/w8io/026f985 
30.66 ms