tx · DenXwG1E1Liorjxi9EzBMvBs2RuBQ3iExHDqUnLWoxAE 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01000000 Waves 2021.12.10 09:04 [1827749] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{ "type": 13, "id": "DenXwG1E1Liorjxi9EzBMvBs2RuBQ3iExHDqUnLWoxAE", "fee": 1000000, "feeAssetId": null, "timestamp": 1639116280273, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "2DRq7oqiE4t6HCHSTeXHyVineYHmyAR5EWqegaviZr1GsJU2FJgbb59cno7AwuXAJtHS82WEBbA36MiDpSgLfDex" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAAAAVmcm9teAAAAAVm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AAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMKAQAAAAxnZXRjaGFsbGVuZ2UAAAABAAAADGNoYWxsZW5kZ2VpZAQAAAAHJG1hdGNoMAkABCIAAAABCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwCQEAAAARQGV4dHJOYXRpdmUoMTA1OCkAAAABCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAIAAAAABAAAAAljaGFsbGVuZ2UJAAS1AAAAAgkBAAAADGdldGNoYWxsZW5nZQAAAAEFAAAADGNoYWxsZW5kZ2VpZAUAAAAFc2VwYXIDCQAAZgAAAAIJAAGQAAAAAQUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAwkAAAAAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAAIAAAAIYXdhaXRpbmcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAApjaGFsbGVuZ2UtBQAAAAxjaGFsbGVuZGdlaWQJAAS5AAAAAgkABEwAAAACAgAAAAV1bnNldAkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAQkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAgkABEwAAAACCQABkQAAAAIFAAAACWNoYWxsZW5nZQAAAAAAAAAAAwUAAAADbmlsBQAAAAVzZXBhcgUAAAADbmlsCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzCQAAAgAAAAECAAAAFGNoYWxsZW5nZSBub3QgZXhpc3RzAAAAAEwK1/Y=", "height": 1827749, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C97jMmD8vggjNYnHkho41r9RKQgck46FTMEuxFLDC7Cc Next: 8AoXfWQdFLWaT1QUzUYSRUZRdb8tLx28SP3AxZBCXMYP Diff:
Old | New | Differences | |
---|---|---|---|
88 | 88 | then true | |
89 | 89 | else throw(((((("incorrect movement+: fig=" + r) + " side=") + m) + " mtype=") + s)) | |
90 | 90 | let x = if (containsElement(v, t)) | |
91 | - | then throw(((((("incorrect movement-: fig=" + r) + " side=") + m) + " mtype=") + s)) | |
91 | + | then throw(((((((("incorrect (" + t) + ")movement-: fig=") + r) + " side=") + m) + " mtype=") + s)) | |
92 | 92 | else true | |
93 | 93 | if (x) | |
94 | 94 | then { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "|" | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func reset () = [StringEntry("lastgameid", "0"), StringEntry("lastchallengeid", "0")] | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||
11 | 11 | @Callable(b) | |
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(b) | |
17 | 17 | func move (c,d,e,f,g) = { | |
18 | 18 | let h = { | |
19 | 19 | let i = getString(("game-" + c)) | |
20 | 20 | if ($isInstanceOf(i, "String")) | |
21 | 21 | then { | |
22 | 22 | let j = i | |
23 | 23 | split(getStringValue(("game-" + c)), a) | |
24 | 24 | } | |
25 | 25 | else throw("no game") | |
26 | 26 | } | |
27 | 27 | if ((h == h)) | |
28 | 28 | then { | |
29 | 29 | let k = toBase58String(b.caller.bytes) | |
30 | 30 | if ((k == k)) | |
31 | 31 | then { | |
32 | 32 | let l = if ((h[0] == "ongoing")) | |
33 | 33 | then true | |
34 | 34 | else throw("not ongoing game") | |
35 | 35 | if ((l == l)) | |
36 | 36 | then { | |
37 | 37 | let m = if (if (l) | |
38 | 38 | then if ((h[1] == k)) | |
39 | 39 | then true | |
40 | 40 | else (h[2] == k) | |
41 | 41 | else false) | |
42 | 42 | then if ((h[1] == k)) | |
43 | 43 | then "w" | |
44 | 44 | else "b" | |
45 | 45 | else throw("not gamer") | |
46 | 46 | if ((m == m)) | |
47 | 47 | then { | |
48 | 48 | let n = if ((m == "w")) | |
49 | 49 | then "b" | |
50 | 50 | else "w" | |
51 | 51 | let o = if ((m == h[5])) | |
52 | 52 | then true | |
53 | 53 | else throw("not your turn") | |
54 | 54 | if ((o == o)) | |
55 | 55 | then { | |
56 | 56 | let p = split(h[8], "!") | |
57 | 57 | let q = [split(p[0], "-"), split(p[1], "-"), split(p[2], "-"), split(p[3], "-"), split(p[4], "-"), split(p[5], "-"), split(p[6], "-"), split(p[7], "-")] | |
58 | 58 | if ((q == q)) | |
59 | 59 | then { | |
60 | 60 | let r = if ((takeRight(q[e][d], 1) == "0")) | |
61 | 61 | then throw("empty cell") | |
62 | 62 | else takeRight(q[e][d], 1) | |
63 | 63 | let s = if ((take(q[g][f], 1) == "0")) | |
64 | 64 | then "m" | |
65 | 65 | else if ((take(q[g][f], 1) == n)) | |
66 | 66 | then "e" | |
67 | 67 | else throw("can not eat himself") | |
68 | 68 | let t = ((toString((d - f)) + ",") + toString((e - g))) | |
69 | 69 | let u = { | |
70 | 70 | let i = getString((((s + m) + r) + "+")) | |
71 | 71 | if ($isInstanceOf(i, "String")) | |
72 | 72 | then { | |
73 | 73 | let j = i | |
74 | 74 | split(getStringValue((((s + m) + r) + "+")), "|") | |
75 | 75 | } | |
76 | 76 | else throw((((("no rules for " + s) + m) + r) + "+")) | |
77 | 77 | } | |
78 | 78 | let v = { | |
79 | 79 | let i = getString((((s + m) + r) + "-")) | |
80 | 80 | if ($isInstanceOf(i, "String")) | |
81 | 81 | then { | |
82 | 82 | let j = i | |
83 | 83 | split(getStringValue((((s + m) + r) + "+")), "|") | |
84 | 84 | } | |
85 | 85 | else throw((((("no rules for " + s) + m) + r) + "+")) | |
86 | 86 | } | |
87 | 87 | let w = if (containsElement(u, t)) | |
88 | 88 | then true | |
89 | 89 | else throw(((((("incorrect movement+: fig=" + r) + " side=") + m) + " mtype=") + s)) | |
90 | 90 | let x = if (containsElement(v, t)) | |
91 | - | then throw(((((("incorrect movement-: fig=" + r) + " side=") + m) + " mtype=") + s)) | |
91 | + | then throw(((((((("incorrect (" + t) + ")movement-: fig=") + r) + " side=") + m) + " mtype=") + s)) | |
92 | 92 | else true | |
93 | 93 | if (x) | |
94 | 94 | then { | |
95 | 95 | let y = h[8] | |
96 | 96 | let z = ((take(y, ((d * 3) + ((e * 8) * 3))) + "00") + takeRight(y, ((191 - ((d * 3) + ((e * 8) * 3))) - 2))) | |
97 | 97 | let A = (((take(z, ((f * 3) + ((g * 8) * 3))) + m) + r) + takeRight(z, ((191 - ((f * 3) + ((g * 8) * 3))) - 2))) | |
98 | 98 | $Tuple2([StringEntry(("game-" + c), makeString([h[0], h[1], h[2], h[3], toString((parseIntValue(h[4]) + 1)), n, h[6], h[7], A], a))], [StringEntry("_", "possible")]) | |
99 | 99 | } | |
100 | 100 | else throw(((((("impossible movement: fig=" + r) + " side=") + m) + " mtype=") + s)) | |
101 | 101 | } | |
102 | 102 | else throw("Strict value is not equal to itself.") | |
103 | 103 | } | |
104 | 104 | else throw("Strict value is not equal to itself.") | |
105 | 105 | } | |
106 | 106 | else throw("Strict value is not equal to itself.") | |
107 | 107 | } | |
108 | 108 | else throw("Strict value is not equal to itself.") | |
109 | 109 | } | |
110 | 110 | else throw("Strict value is not equal to itself.") | |
111 | 111 | } | |
112 | 112 | else throw("Strict value is not equal to itself.") | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(b) | |
118 | 118 | func startgame (B) = { | |
119 | 119 | let C = if ((size(b.payments) == 1)) | |
120 | 120 | then b.payments[0] | |
121 | 121 | else throw("must stake some waves") | |
122 | 122 | if (isDefined(C.assetId)) | |
123 | 123 | then throw("works with waves only") | |
124 | 124 | else { | |
125 | 125 | let k = toBase58String(b.caller.bytes) | |
126 | 126 | let D = split(getStringValue(("challenge-" + B)), a) | |
127 | 127 | if ((size(D) > 0)) | |
128 | 128 | then if ((C.amount >= parseIntValue(D[3]))) | |
129 | 129 | then if ((D[0] == "awaiting")) | |
130 | 130 | then { | |
131 | 131 | let E = if ((D[2] == "b")) | |
132 | 132 | then D[1] | |
133 | 133 | else k | |
134 | 134 | let F = if ((D[2] == "w")) | |
135 | 135 | then D[1] | |
136 | 136 | else k | |
137 | 137 | let c = toString((parseIntValue(getStringValue("lastgameid")) + 1)) | |
138 | 138 | [StringEntry(("challenge-" + B), makeString([c, D[1], D[2], D[3], k], a)), { | |
139 | 139 | let p = "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" | |
140 | 140 | StringEntry(("game-" + c), makeString(["ongoing", F, E, D[3], "0", "w", "startblock", "laststepblock", p], a)) | |
141 | 141 | }, StringEntry("lastgameid", c), ScriptTransfer(b.caller, (C.amount - parseIntValue(D[3])), unit)] | |
142 | 142 | } | |
143 | 143 | else throw("no challenge awaiting") | |
144 | 144 | else throw("need more money") | |
145 | 145 | else throw("no challenge") | |
146 | 146 | } | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(b) | |
152 | 152 | func setchallenge (m) = if (if ((m == "b")) | |
153 | 153 | then true | |
154 | 154 | else (m == "w")) | |
155 | 155 | then { | |
156 | 156 | let C = if ((size(b.payments) == 1)) | |
157 | 157 | then b.payments[0] | |
158 | 158 | else throw("must stake some waves") | |
159 | 159 | if (isDefined(C.assetId)) | |
160 | 160 | then throw("works with waves only") | |
161 | 161 | else { | |
162 | 162 | let k = toBase58String(b.caller.bytes) | |
163 | 163 | let B = toString((parseIntValue(getStringValue("lastchallengeid")) + 1)) | |
164 | 164 | [StringEntry(("challenge-" + B), makeString(["awaiting", k, m, toString(C.amount)], a)), StringEntry("lastchallengeid", B)] | |
165 | 165 | } | |
166 | 166 | } | |
167 | 167 | else throw("invalid side") | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | ||
171 | 171 | @Callable(b) | |
172 | 172 | func unsetchallenge (G) = { | |
173 | 173 | let k = toBase58String(b.caller.bytes) | |
174 | 174 | func H (G) = { | |
175 | 175 | let i = getString(("challenge-" + G)) | |
176 | 176 | if ($isInstanceOf(i, "String")) | |
177 | 177 | then { | |
178 | 178 | let j = i | |
179 | 179 | getStringValue(("challenge-" + G)) | |
180 | 180 | } | |
181 | 181 | else "" | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | let I = split(H(G), a) | |
185 | 185 | if ((size(I) > 0)) | |
186 | 186 | then if ((I[0] == "awaiting")) | |
187 | 187 | then [StringEntry(("challenge-" + G), makeString(["unset", I[1], I[2], I[3]], a))] | |
188 | 188 | else throw("challenge not exists") | |
189 | 189 | else throw("challenge not exists") | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 |
github/deemru/w8io/026f985 35.62 ms ◑