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:AAIFAAAAAAAAAB4IAhIAEgASBwoFCAEBAQESAwoBCBIDCgEIEgMKAQgAAAABAAAAAAVzZXBhcgIAAAABfAAAAAYAAAABaQEAAAAFcmVzZXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmxhc3RnYW1laWQCAAAAATAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAPbGFzdGNoYWxsZW5nZWlkAgAAAAEwBQAAAANuaWwAAAABaQEAAAAIc2V0cnVsZXMAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZisCAAAACC0xLDF8MSwxCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG1iZi0CAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAARtd2YrAgAAAAotMSwtMXwxLC0xCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABG13Zi0CAAAAAAUAAAADbmlsAAAAAWkBAAAABG1vdmUAAAAFAAAABmdhbWVpZAAAAAVmcm9teA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AgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAJAQAAABFAZXh0ck5hdGl2ZSgxMDU4KQAAAAEJAAEsAAAAAgIAAAAKY2hhbGxlbmdlLQUAAAAMY2hhbGxlbmRnZWlkAgAAAAAEAAAACWNoYWxsZW5nZQkABLUAAAACCQEAAAAMZ2V0Y2hhbGxlbmdlAAAAAQUAAAAMY2hhbGxlbmRnZWlkBQAAAAVzZXBhcgMJAABmAAAAAgkAAZAAAAABBQAAAAljaGFsbGVuZ2UAAAAAAAAAAAADCQAAAAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAAAAgAAAAhhd2FpdGluZwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNoYWxsZW5kZ2VpZAkABLkAAAACCQAETAAAAAICAAAABXVuc2V0CQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAABCQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAACCQAETAAAAAIJAAGRAAAAAgUAAAAJY2hhbGxlbmdlAAAAAAAAAAADBQAAAANuaWwFAAAABXNlcGFyBQAAAANuaWwJAAACAAAAAQIAAAAUY2hhbGxlbmdlIG5vdCBleGlzdHMJAAACAAAAAQIAAAAUY2hhbGxlbmdlIG5vdCBleGlzdHMAAAAAJ9isvw==", "height": 1826560, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: q26eQdQfCNjZx9ckbaxApUEgaXk2yVSqBomsxx8FrGN Next: C97jMmD8vggjNYnHkho41r9RKQgck46FTMEuxFLDC7Cc Diff:
Old | New | Differences | |
---|---|---|---|
73 | 73 | } | |
74 | 74 | else throw((((("no rules for " + s) + m) + r) + "+")) | |
75 | 75 | } | |
76 | - | let v = split(getStringValue((((s + m) + r) + "-")), "|") | |
76 | + | let v = { | |
77 | + | let i = getString((((s + m) + r) + "-")) | |
78 | + | if ($isInstanceOf(i, "String")) | |
79 | + | then { | |
80 | + | let j = i | |
81 | + | split(getStringValue((((s + m) + r) + "+")), "|") | |
82 | + | } | |
83 | + | else throw((((("no rules for " + s) + m) + r) + "+")) | |
84 | + | } | |
77 | 85 | let w = if (containsElement(u, t)) | |
78 | 86 | then true | |
79 | 87 | else throw(((((("incorrect movement+: fig=" + r) + " side=") + m) + " mtype=") + s)) |
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 = takeRight(q[e][d], 1) | |
61 | 61 | let s = if ((take(q[g][f], 1) == "0")) | |
62 | 62 | then "m" | |
63 | 63 | else if ((take(q[g][f], 1) == n)) | |
64 | 64 | then "e" | |
65 | 65 | else throw("can not eat himself") | |
66 | 66 | let t = ((toString((d - f)) + ",") + toString((e - g))) | |
67 | 67 | let u = { | |
68 | 68 | let i = getString((((s + m) + r) + "+")) | |
69 | 69 | if ($isInstanceOf(i, "String")) | |
70 | 70 | then { | |
71 | 71 | let j = i | |
72 | 72 | split(getStringValue((((s + m) + r) + "+")), "|") | |
73 | 73 | } | |
74 | 74 | else throw((((("no rules for " + s) + m) + r) + "+")) | |
75 | 75 | } | |
76 | - | let v = split(getStringValue((((s + m) + r) + "-")), "|") | |
76 | + | let v = { | |
77 | + | let i = getString((((s + m) + r) + "-")) | |
78 | + | if ($isInstanceOf(i, "String")) | |
79 | + | then { | |
80 | + | let j = i | |
81 | + | split(getStringValue((((s + m) + r) + "+")), "|") | |
82 | + | } | |
83 | + | else throw((((("no rules for " + s) + m) + r) + "+")) | |
84 | + | } | |
77 | 85 | let w = if (containsElement(u, t)) | |
78 | 86 | then true | |
79 | 87 | else throw(((((("incorrect movement+: fig=" + r) + " side=") + m) + " mtype=") + s)) | |
80 | 88 | let x = if (containsElement(v, t)) | |
81 | 89 | then throw(((((("incorrect movement-: fig=" + r) + " side=") + m) + " mtype=") + s)) | |
82 | 90 | else true | |
83 | 91 | if (x) | |
84 | 92 | then { | |
85 | 93 | let y = h[8] | |
86 | 94 | let z = ((take(y, ((d * 3) + ((e * 8) * 3))) + "00") + takeRight(y, ((191 - ((d * 3) + ((e * 8) * 3))) - 2))) | |
87 | 95 | let A = (((take(z, ((f * 3) + ((g * 8) * 3))) + m) + r) + takeRight(z, ((191 - ((f * 3) + ((g * 8) * 3))) - 2))) | |
88 | 96 | $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")]) | |
89 | 97 | } | |
90 | 98 | else throw(((((("impossible movement: fig=" + r) + " side=") + m) + " mtype=") + s)) | |
91 | 99 | } | |
92 | 100 | else throw("Strict value is not equal to itself.") | |
93 | 101 | } | |
94 | 102 | else throw("Strict value is not equal to itself.") | |
95 | 103 | } | |
96 | 104 | else throw("Strict value is not equal to itself.") | |
97 | 105 | } | |
98 | 106 | else throw("Strict value is not equal to itself.") | |
99 | 107 | } | |
100 | 108 | else throw("Strict value is not equal to itself.") | |
101 | 109 | } | |
102 | 110 | else throw("Strict value is not equal to itself.") | |
103 | 111 | } | |
104 | 112 | ||
105 | 113 | ||
106 | 114 | ||
107 | 115 | @Callable(b) | |
108 | 116 | func startgame (B) = { | |
109 | 117 | let C = if ((size(b.payments) == 1)) | |
110 | 118 | then b.payments[0] | |
111 | 119 | else throw("must stake some waves") | |
112 | 120 | if (isDefined(C.assetId)) | |
113 | 121 | then throw("works with waves only") | |
114 | 122 | else { | |
115 | 123 | let k = toBase58String(b.caller.bytes) | |
116 | 124 | let D = split(getStringValue(("challenge-" + B)), a) | |
117 | 125 | if ((size(D) > 0)) | |
118 | 126 | then if ((C.amount >= parseIntValue(D[3]))) | |
119 | 127 | then if ((D[0] == "awaiting")) | |
120 | 128 | then { | |
121 | 129 | let E = if ((D[2] == "b")) | |
122 | 130 | then D[1] | |
123 | 131 | else k | |
124 | 132 | let F = if ((D[2] == "w")) | |
125 | 133 | then D[1] | |
126 | 134 | else k | |
127 | 135 | let c = toString((parseIntValue(getStringValue("lastgameid")) + 1)) | |
128 | 136 | [StringEntry(("challenge-" + B), makeString([c, D[1], D[2], D[3], k], a)), { | |
129 | 137 | 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" | |
130 | 138 | StringEntry(("game-" + c), makeString(["ongoing", F, E, D[3], "0", "w", "startblock", "laststepblock", p], a)) | |
131 | 139 | }, StringEntry("lastgameid", c), ScriptTransfer(b.caller, (C.amount - parseIntValue(D[3])), unit)] | |
132 | 140 | } | |
133 | 141 | else throw("no challenge awaiting") | |
134 | 142 | else throw("need more money") | |
135 | 143 | else throw("no challenge") | |
136 | 144 | } | |
137 | 145 | } | |
138 | 146 | ||
139 | 147 | ||
140 | 148 | ||
141 | 149 | @Callable(b) | |
142 | 150 | func setchallenge (m) = if (if ((m == "b")) | |
143 | 151 | then true | |
144 | 152 | else (m == "w")) | |
145 | 153 | then { | |
146 | 154 | let C = if ((size(b.payments) == 1)) | |
147 | 155 | then b.payments[0] | |
148 | 156 | else throw("must stake some waves") | |
149 | 157 | if (isDefined(C.assetId)) | |
150 | 158 | then throw("works with waves only") | |
151 | 159 | else { | |
152 | 160 | let k = toBase58String(b.caller.bytes) | |
153 | 161 | let B = toString((parseIntValue(getStringValue("lastchallengeid")) + 1)) | |
154 | 162 | [StringEntry(("challenge-" + B), makeString(["awaiting", k, m, toString(C.amount)], a)), StringEntry("lastchallengeid", B)] | |
155 | 163 | } | |
156 | 164 | } | |
157 | 165 | else throw("invalid side") | |
158 | 166 | ||
159 | 167 | ||
160 | 168 | ||
161 | 169 | @Callable(b) | |
162 | 170 | func unsetchallenge (G) = { | |
163 | 171 | let k = toBase58String(b.caller.bytes) | |
164 | 172 | func H (G) = { | |
165 | 173 | let i = getString(("challenge-" + G)) | |
166 | 174 | if ($isInstanceOf(i, "String")) | |
167 | 175 | then { | |
168 | 176 | let j = i | |
169 | 177 | getStringValue(("challenge-" + G)) | |
170 | 178 | } | |
171 | 179 | else "" | |
172 | 180 | } | |
173 | 181 | ||
174 | 182 | let I = split(H(G), a) | |
175 | 183 | if ((size(I) > 0)) | |
176 | 184 | then if ((I[0] == "awaiting")) | |
177 | 185 | then [StringEntry(("challenge-" + G), makeString(["unset", I[1], I[2], I[3]], a))] | |
178 | 186 | else throw("challenge not exists") | |
179 | 187 | else throw("challenge not exists") | |
180 | 188 | } | |
181 | 189 | ||
182 | 190 |
github/deemru/w8io/026f985 41.11 ms ◑