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:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAAAAVmcm9teA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NzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMKAQAAAAxnZXRjaGFsbGVuZ2UAAAABAAAADGNoYWxsZW5kZ2VpZAQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwCQEAAAARQGV4dHJOYXRpdmUoMTA1OCkAAAABCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAIAAAAABAAAAAljaGFsbGVuZ2UJAAS1AAAAAgkBAAAADGdldGNoYWxsZW5nZQAAAAEFAAAADGNoYWxsZW5kZ2VpZAUAAAAFc2VwYXIDCQAAZgAAAAIJAAGQAAAAAQUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAwkAAAAAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAIAAAAIYXdhaXRpbmcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQJAAS5AAAAAgkABEwAAAACAgAAAAV1bnNldAkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAQkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAgkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAwUAAAADbmlsBQAAAAVzZXBhcgUAAAADbmlsCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzAAAAAEUBLGU=", "height": 1827752, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DenXwG1E1Liorjxi9EzBMvBs2RuBQ3iExHDqUnLWoxAE Next: 3mM9e4vJ8cMVb4hSGSpued3yobJXJ6XRwkEAMoew72pr Diff:
Old | New | Differences | |
---|---|---|---|
71 | 71 | } | |
72 | 72 | let impossible = match getString((((movetype + side) + figure) + "-")) { | |
73 | 73 | case a: String => | |
74 | - | split(getStringValue((((movetype + side) + figure) + " | |
74 | + | split(getStringValue((((movetype + side) + figure) + "-")), "|") | |
75 | 75 | case _ => | |
76 | - | throw((((("no rules for " + movetype) + side) + figure) + " | |
76 | + | throw((((("no rules for " + movetype) + side) + figure) + "-")) | |
77 | 77 | } | |
78 | 78 | let iscorrect1 = if (containsElement(possible, movement)) | |
79 | 79 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separ = "|" | |
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func reset () = [StringEntry("lastgameid", "0"), StringEntry("lastchallengeid", "0")] | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||
11 | 11 | @Callable(i) | |
12 | 12 | func setrules () = [StringEntry("mbf+", "-1,1|1,1"), StringEntry("mbf-", ""), StringEntry("mwf+", "-1,-1|1,-1"), StringEntry("mwf-", "")] | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func move (gameid,fromx,fromy,tox,toy) = { | |
18 | 18 | let game = match getString(("game-" + gameid)) { | |
19 | 19 | case a: String => | |
20 | 20 | split(getStringValue(("game-" + gameid)), separ) | |
21 | 21 | case _ => | |
22 | 22 | throw("no game") | |
23 | 23 | } | |
24 | 24 | if ((game == game)) | |
25 | 25 | then { | |
26 | 26 | let callerAdress = toBase58String(i.caller.bytes) | |
27 | 27 | if ((callerAdress == callerAdress)) | |
28 | 28 | then { | |
29 | 29 | let isgame = if ((game[0] == "ongoing")) | |
30 | 30 | then true | |
31 | 31 | else throw("not ongoing game") | |
32 | 32 | if ((isgame == isgame)) | |
33 | 33 | then { | |
34 | 34 | let side = if (if (isgame) | |
35 | 35 | then if ((game[1] == callerAdress)) | |
36 | 36 | then true | |
37 | 37 | else (game[2] == callerAdress) | |
38 | 38 | else false) | |
39 | 39 | then if ((game[1] == callerAdress)) | |
40 | 40 | then "w" | |
41 | 41 | else "b" | |
42 | 42 | else throw("not gamer") | |
43 | 43 | if ((side == side)) | |
44 | 44 | then { | |
45 | 45 | let otherside = if ((side == "w")) | |
46 | 46 | then "b" | |
47 | 47 | else "w" | |
48 | 48 | let turn = if ((side == game[5])) | |
49 | 49 | then true | |
50 | 50 | else throw("not your turn") | |
51 | 51 | if ((turn == turn)) | |
52 | 52 | then { | |
53 | 53 | let situation = split(game[8], "!") | |
54 | 54 | 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], "-")] | |
55 | 55 | if ((cells == cells)) | |
56 | 56 | then { | |
57 | 57 | let figure = if ((takeRight(cells[fromy][fromx], 1) == "0")) | |
58 | 58 | then throw("empty cell") | |
59 | 59 | else takeRight(cells[fromy][fromx], 1) | |
60 | 60 | let movetype = if ((take(cells[toy][tox], 1) == "0")) | |
61 | 61 | then "m" | |
62 | 62 | else if ((take(cells[toy][tox], 1) == otherside)) | |
63 | 63 | then "e" | |
64 | 64 | else throw("can not eat himself") | |
65 | 65 | let movement = ((toString((fromx - tox)) + ",") + toString((fromy - toy))) | |
66 | 66 | let possible = match getString((((movetype + side) + figure) + "+")) { | |
67 | 67 | case a: String => | |
68 | 68 | split(getStringValue((((movetype + side) + figure) + "+")), "|") | |
69 | 69 | case _ => | |
70 | 70 | throw((((("no rules for " + movetype) + side) + figure) + "+")) | |
71 | 71 | } | |
72 | 72 | let impossible = match getString((((movetype + side) + figure) + "-")) { | |
73 | 73 | case a: String => | |
74 | - | split(getStringValue((((movetype + side) + figure) + " | |
74 | + | split(getStringValue((((movetype + side) + figure) + "-")), "|") | |
75 | 75 | case _ => | |
76 | - | throw((((("no rules for " + movetype) + side) + figure) + " | |
76 | + | throw((((("no rules for " + movetype) + side) + figure) + "-")) | |
77 | 77 | } | |
78 | 78 | let iscorrect1 = if (containsElement(possible, movement)) | |
79 | 79 | then true | |
80 | 80 | else throw(((((("incorrect movement+: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
81 | 81 | let iscorrect2 = if (containsElement(impossible, movement)) | |
82 | 82 | then throw(((((((("incorrect (" + movement) + ")movement-: fig=") + figure) + " side=") + side) + " mtype=") + movetype)) | |
83 | 83 | else true | |
84 | 84 | if (iscorrect2) | |
85 | 85 | then { | |
86 | 86 | let old = game[8] | |
87 | 87 | let new = ((take(old, ((fromx * 3) + ((fromy * 8) * 3))) + "00") + takeRight(old, ((191 - ((fromx * 3) + ((fromy * 8) * 3))) - 2))) | |
88 | 88 | let newsituation = (((take(new, ((tox * 3) + ((toy * 8) * 3))) + side) + figure) + takeRight(new, ((191 - ((tox * 3) + ((toy * 8) * 3))) - 2))) | |
89 | 89 | $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")]) | |
90 | 90 | } | |
91 | 91 | else throw(((((("impossible movement: fig=" + figure) + " side=") + side) + " mtype=") + movetype)) | |
92 | 92 | } | |
93 | 93 | else throw("Strict value is not equal to itself.") | |
94 | 94 | } | |
95 | 95 | else throw("Strict value is not equal to itself.") | |
96 | 96 | } | |
97 | 97 | else throw("Strict value is not equal to itself.") | |
98 | 98 | } | |
99 | 99 | else throw("Strict value is not equal to itself.") | |
100 | 100 | } | |
101 | 101 | else throw("Strict value is not equal to itself.") | |
102 | 102 | } | |
103 | 103 | else throw("Strict value is not equal to itself.") | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | ||
108 | 108 | @Callable(i) | |
109 | 109 | func startgame (challengeid) = { | |
110 | 110 | let pmt = if ((size(i.payments) == 1)) | |
111 | 111 | then i.payments[0] | |
112 | 112 | else throw("must stake some waves") | |
113 | 113 | if (isDefined(pmt.assetId)) | |
114 | 114 | then throw("works with waves only") | |
115 | 115 | else { | |
116 | 116 | let callerAdress = toBase58String(i.caller.bytes) | |
117 | 117 | let conditions = split(getStringValue(("challenge-" + challengeid)), separ) | |
118 | 118 | if ((size(conditions) > 0)) | |
119 | 119 | then if ((pmt.amount >= parseIntValue(conditions[3]))) | |
120 | 120 | then if ((conditions[0] == "awaiting")) | |
121 | 121 | then { | |
122 | 122 | let black = if ((conditions[2] == "b")) | |
123 | 123 | then conditions[1] | |
124 | 124 | else callerAdress | |
125 | 125 | let white = if ((conditions[2] == "w")) | |
126 | 126 | then conditions[1] | |
127 | 127 | else callerAdress | |
128 | 128 | let gameid = toString((parseIntValue(getStringValue("lastgameid")) + 1)) | |
129 | 129 | [StringEntry(("challenge-" + challengeid), makeString([gameid, conditions[1], conditions[2], conditions[3], callerAdress], separ)), { | |
130 | 130 | 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" | |
131 | 131 | StringEntry(("game-" + gameid), makeString(["ongoing", white, black, conditions[3], "0", "w", "startblock", "laststepblock", situation], separ)) | |
132 | 132 | }, StringEntry("lastgameid", gameid), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(conditions[3])), unit)] | |
133 | 133 | } | |
134 | 134 | else throw("no challenge awaiting") | |
135 | 135 | else throw("need more money") | |
136 | 136 | else throw("no challenge") | |
137 | 137 | } | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(i) | |
143 | 143 | func setchallenge (side) = if (if ((side == "b")) | |
144 | 144 | then true | |
145 | 145 | else (side == "w")) | |
146 | 146 | then { | |
147 | 147 | let pmt = if ((size(i.payments) == 1)) | |
148 | 148 | then i.payments[0] | |
149 | 149 | else throw("must stake some waves") | |
150 | 150 | if (isDefined(pmt.assetId)) | |
151 | 151 | then throw("works with waves only") | |
152 | 152 | else { | |
153 | 153 | let callerAdress = toBase58String(i.caller.bytes) | |
154 | 154 | let challengeid = toString((parseIntValue(getStringValue("lastchallengeid")) + 1)) | |
155 | 155 | [StringEntry(("challenge-" + challengeid), makeString(["awaiting", callerAdress, side, toString(pmt.amount)], separ)), StringEntry("lastchallengeid", challengeid)] | |
156 | 156 | } | |
157 | 157 | } | |
158 | 158 | else throw("invalid side") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Callable(i) | |
163 | 163 | func unsetchallenge (challendgeid) = { | |
164 | 164 | let callerAdress = toBase58String(i.caller.bytes) | |
165 | 165 | func getchallenge (challendgeid) = match getString(("challenge-" + challendgeid)) { | |
166 | 166 | case a: String => | |
167 | 167 | getStringValue(("challenge-" + challendgeid)) | |
168 | 168 | case _ => | |
169 | 169 | "" | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | let challenge = split(getchallenge(challendgeid), separ) | |
173 | 173 | if ((size(challenge) > 0)) | |
174 | 174 | then if ((challenge[0] == "awaiting")) | |
175 | 175 | then [StringEntry(("challenge-" + challendgeid), makeString(["unset", challenge[1], challenge[2], challenge[3]], separ))] | |
176 | 176 | else throw("challenge not exists") | |
177 | 177 | else throw("challenge not exists") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 |
github/deemru/w8io/026f985 35.37 ms ◑