tx · DNUGk9eViZ2NwhytQrnb5CEYmfZhLBDtofQzbdRT5sDA
3NBLhM7i817HXNmUfMtuSmXNn67FvCrZqXw: -1.40000000 Waves
2019.01.17 09:53 [453686] smart asset 3NBLhM7i817HXNmUfMtuSmXNn67FvCrZqXw > SELF 0 LottoTicket
{
"type": 15,
"id": "DNUGk9eViZ2NwhytQrnb5CEYmfZhLBDtofQzbdRT5sDA",
"fee": 140000000,
"feeAssetId": null,
"timestamp": 1547708011507,
"version": 1,
"sender": "3NBLhM7i817HXNmUfMtuSmXNn67FvCrZqXw",
"senderPublicKey": "CraQbwqtaZQENZfzqHN11a2iqMjHnDRpw58iLLTYbdCC",
"proofs": [
"2G9VBA8HSQCZ7em8TUeULovjMAZ82gSZRtoUweMEd98SVEn3qRhfRmMUsenDtSR7r2nT7o7ShZmh3VZApauQr2Gn"
],
"assetId": "HdsJ9SFENUBseSk7gEQuwNL9QbPvV63AEiLnMLiSbFQL",
"script": "base64:AQQAAAAFbG90dG8BAAAAILAjygfSHbXfHiMn6tAvUu2cUpzxdZpqsP8WxLgk84lZBAAAAAd3YXZlbGV0AAAAAAAF9eEABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0AwMDCQAAAAAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkFAAAABWxvdHRvCQAAAAAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BwYDCQAAAAAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAA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AANyYnMCAAAAAjJZBgkAAAAAAAACBQAAAANyYnMCAAAAAjJaBgkAAAAAAAACBQAAAANyYnMCAAAAAjJhBgkAAAAAAAACBQAAAANyYnMCAAAAAjJiBgkAAAAAAAACBQAAAANyYnMCAAAAAjJjBgkAAAAAAAACBQAAAANyYnMCAAAAAjJkBgkAAAAAAAACBQAAAANyYnMCAAAAAjJlBgkAAAAAAAACBQAAAANyYnMCAAAAAjJmBgkAAAAAAAACBQAAAANyYnMCAAAAAjJnBgkAAAAAAAACBQAAAANyYnMCAAAAAjJoBgkAAAAAAAACBQAAAANyYnMCAAAAAjJpBgkAAAAAAAACBQAAAANyYnMCAAAAAjJqBgkAAAAAAAACBQAAAANyYnMCAAAAAjJrBgkAAAAAAAACBQAAAANyYnMCAAAAAjJtBgkAAAAAAAACBQAAAANyYnMCAAAAAjJuBgkAAAAAAAACBQAAAANyYnMCAAAAAjJvBgkAAAAAAAACBQAAAANyYnMCAAAAAjJwBgkAAAAAAAACBQAAAANyYnMCAAAAAjJxBgkAAAAAAAACBQAAAANyYnMCAAAAAjJyBgkAAAAAAAACBQAAAANyYnMCAAAAAjJzBgkAAAAAAAACBQAAAANyYnMCAAAAAjJ0BgkAAAAAAAACBQAAAANyYnMCAAAAAjJ1BgkAAAAAAAACBQAAAANyYnMCAAAAAjJ2BgkAAAAAAAACBQAAAANyYnMCAAAAAjJ3BgkAAAAAAAACBQAAAANyYnMCAAAAAjJ4BgkAAAAAAAACBQAAAANyYnMCAAAAAjJ5BgkAAAAAAAACBQAAAANyYnMCAAAAAjJ6BgkAAAAAAAACBQAAAANyYnMCAAAAAjMxBgkAAAAAAAACBQAAAANyYnMCAAAAAjMyBgkAAAAAAAACBQAAAANyYnMCAAAAAjMzBgkAAAAAAAACBQAAAANyYnMCAAAAAjM0BgYPX42s",
"chainId": 84,
"height": 453686,
"spentComplexity": 0
}
View: original | compacted
Prev: 69AsYhscQKQDV6jBtDGS3Mgqee8ePYtMhQgxarvXLrGt
Next: GzZYQTSDDcQg7ycJV7ZZ4zGp1JVm27VyU6FBGYDgDndy
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let lotto = base58'CraQbwqtaZQENZfzqHN11a2iqMjHnDRpw58iLLTYbdCC' |
---|
4 | | - | let lottoAddr = addressFromPublicKey(lotto) |
---|
5 | | - | let isOpen = getBoolean(lottoAddr, "isOpen") |
---|
| 4 | + | let wavelet = 100000000 |
---|
6 | 5 | | match tx { |
---|
7 | 6 | | case e: ExchangeTransaction => |
---|
8 | 7 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
9 | 8 | | then if (if (if ((e.buyOrder.senderPublicKey == lotto)) |
---|
| 9 | + | then (e.buyOrder.senderPublicKey == e.sellOrder.senderPublicKey) |
---|
| 10 | + | else false) |
---|
10 | 11 | | then true |
---|
11 | | - | else (e.sellOrder.senderPublicKey == lotto)) |
---|
12 | | - | then true |
---|
13 | | - | else if (if ((e.sellOrder.price == 100000000)) |
---|
| 12 | + | else if ((e.sellOrder.price == wavelet)) |
---|
14 | 13 | | then (e.sellOrder.amount == 1) |
---|
15 | 14 | | else false) |
---|
16 | | - | then (isOpen == true) |
---|
17 | | - | else false) |
---|
18 | 15 | | then true |
---|
19 | | - | else false |
---|
| 16 | + | else if ((e.buyOrder.price == wavelet)) |
---|
| 17 | + | then true |
---|
| 18 | + | else { |
---|
| 19 | + | let randomByte = take(e.buyOrder.proofs[0], 1) |
---|
| 20 | + | let rbs = toBase58String(randomByte) |
---|
| 21 | + | if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((rbs == "1")) |
---|
| 22 | + | then true |
---|
| 23 | + | else (rbs == "2")) |
---|
| 24 | + | then true |
---|
| 25 | + | else (rbs == "3")) |
---|
| 26 | + | then true |
---|
| 27 | + | else (rbs == "4")) |
---|
| 28 | + | then true |
---|
| 29 | + | else (rbs == "5")) |
---|
| 30 | + | then true |
---|
| 31 | + | else (rbs == "6")) |
---|
| 32 | + | then true |
---|
| 33 | + | else (rbs == "7")) |
---|
| 34 | + | then true |
---|
| 35 | + | else (rbs == "8")) |
---|
| 36 | + | then true |
---|
| 37 | + | else (rbs == "9")) |
---|
| 38 | + | then true |
---|
| 39 | + | else (rbs == "A")) |
---|
| 40 | + | then true |
---|
| 41 | + | else (rbs == "B")) |
---|
| 42 | + | then true |
---|
| 43 | + | else (rbs == "C")) |
---|
| 44 | + | then true |
---|
| 45 | + | else (rbs == "D")) |
---|
| 46 | + | then true |
---|
| 47 | + | else (rbs == "E")) |
---|
| 48 | + | then true |
---|
| 49 | + | else (rbs == "F")) |
---|
| 50 | + | then true |
---|
| 51 | + | else (rbs == "G")) |
---|
| 52 | + | then true |
---|
| 53 | + | else (rbs == "H")) |
---|
| 54 | + | then true |
---|
| 55 | + | else (rbs == "J")) |
---|
| 56 | + | then true |
---|
| 57 | + | else (rbs == "K")) |
---|
| 58 | + | then true |
---|
| 59 | + | else (rbs == "L")) |
---|
| 60 | + | then true |
---|
| 61 | + | else (rbs == "M")) |
---|
| 62 | + | then true |
---|
| 63 | + | else (rbs == "N")) |
---|
| 64 | + | then true |
---|
| 65 | + | else (rbs == "P")) |
---|
| 66 | + | then true |
---|
| 67 | + | else (rbs == "Q")) |
---|
| 68 | + | then true |
---|
| 69 | + | else (rbs == "R")) |
---|
| 70 | + | then true |
---|
| 71 | + | else (rbs == "S")) |
---|
| 72 | + | then true |
---|
| 73 | + | else (rbs == "T")) |
---|
| 74 | + | then true |
---|
| 75 | + | else (rbs == "U")) |
---|
| 76 | + | then true |
---|
| 77 | + | else (rbs == "V")) |
---|
| 78 | + | then true |
---|
| 79 | + | else (rbs == "W")) |
---|
| 80 | + | then true |
---|
| 81 | + | else (rbs == "X")) |
---|
| 82 | + | then true |
---|
| 83 | + | else (rbs == "Y")) |
---|
| 84 | + | then true |
---|
| 85 | + | else (rbs == "Z")) |
---|
| 86 | + | then true |
---|
| 87 | + | else (rbs == "a")) |
---|
| 88 | + | then true |
---|
| 89 | + | else (rbs == "b")) |
---|
| 90 | + | then true |
---|
| 91 | + | else (rbs == "c")) |
---|
| 92 | + | then true |
---|
| 93 | + | else (rbs == "d")) |
---|
| 94 | + | then true |
---|
| 95 | + | else (rbs == "e")) |
---|
| 96 | + | then true |
---|
| 97 | + | else (rbs == "f")) |
---|
| 98 | + | then true |
---|
| 99 | + | else (rbs == "g")) |
---|
| 100 | + | then true |
---|
| 101 | + | else (rbs == "h")) |
---|
| 102 | + | then true |
---|
| 103 | + | else (rbs == "i")) |
---|
| 104 | + | then true |
---|
| 105 | + | else (rbs == "j")) |
---|
| 106 | + | then true |
---|
| 107 | + | else (rbs == "k")) |
---|
| 108 | + | then true |
---|
| 109 | + | else (rbs == "m")) |
---|
| 110 | + | then true |
---|
| 111 | + | else (rbs == "n")) |
---|
| 112 | + | then true |
---|
| 113 | + | else (rbs == "o")) |
---|
| 114 | + | then true |
---|
| 115 | + | else (rbs == "p")) |
---|
| 116 | + | then true |
---|
| 117 | + | else (rbs == "q")) |
---|
| 118 | + | then true |
---|
| 119 | + | else (rbs == "r")) |
---|
| 120 | + | then true |
---|
| 121 | + | else (rbs == "s")) |
---|
| 122 | + | then true |
---|
| 123 | + | else (rbs == "t")) |
---|
| 124 | + | then true |
---|
| 125 | + | else (rbs == "u")) |
---|
| 126 | + | then true |
---|
| 127 | + | else (rbs == "v")) |
---|
| 128 | + | then true |
---|
| 129 | + | else (rbs == "w")) |
---|
| 130 | + | then true |
---|
| 131 | + | else (rbs == "x")) |
---|
| 132 | + | then true |
---|
| 133 | + | else (rbs == "y")) |
---|
| 134 | + | then true |
---|
| 135 | + | else (rbs == "z")) |
---|
| 136 | + | then true |
---|
| 137 | + | else (rbs == "21")) |
---|
| 138 | + | then true |
---|
| 139 | + | else (rbs == "22")) |
---|
| 140 | + | then true |
---|
| 141 | + | else (rbs == "23")) |
---|
| 142 | + | then true |
---|
| 143 | + | else (rbs == "24")) |
---|
| 144 | + | then true |
---|
| 145 | + | else (rbs == "25")) |
---|
| 146 | + | then true |
---|
| 147 | + | else (rbs == "26")) |
---|
| 148 | + | then true |
---|
| 149 | + | else (rbs == "27")) |
---|
| 150 | + | then true |
---|
| 151 | + | else (rbs == "28")) |
---|
| 152 | + | then true |
---|
| 153 | + | else (rbs == "29")) |
---|
| 154 | + | then true |
---|
| 155 | + | else (rbs == "2A")) |
---|
| 156 | + | then true |
---|
| 157 | + | else (rbs == "2B")) |
---|
| 158 | + | then true |
---|
| 159 | + | else (rbs == "2C")) |
---|
| 160 | + | then true |
---|
| 161 | + | else (rbs == "2D")) |
---|
| 162 | + | then true |
---|
| 163 | + | else (rbs == "2E")) |
---|
| 164 | + | then true |
---|
| 165 | + | else (rbs == "2F")) |
---|
| 166 | + | then true |
---|
| 167 | + | else (rbs == "2G")) |
---|
| 168 | + | then true |
---|
| 169 | + | else (rbs == "2H")) |
---|
| 170 | + | then true |
---|
| 171 | + | else (rbs == "2J")) |
---|
| 172 | + | then true |
---|
| 173 | + | else (rbs == "2K")) |
---|
| 174 | + | then true |
---|
| 175 | + | else (rbs == "2L")) |
---|
| 176 | + | then true |
---|
| 177 | + | else (rbs == "2M")) |
---|
| 178 | + | then true |
---|
| 179 | + | else (rbs == "2N")) |
---|
| 180 | + | then true |
---|
| 181 | + | else (rbs == "2P")) |
---|
| 182 | + | then true |
---|
| 183 | + | else (rbs == "2Q")) |
---|
| 184 | + | then true |
---|
| 185 | + | else (rbs == "2R")) |
---|
| 186 | + | then true |
---|
| 187 | + | else (rbs == "2S")) |
---|
| 188 | + | then true |
---|
| 189 | + | else (rbs == "2T")) |
---|
| 190 | + | then true |
---|
| 191 | + | else (rbs == "2U")) |
---|
| 192 | + | then true |
---|
| 193 | + | else (rbs == "2V")) |
---|
| 194 | + | then true |
---|
| 195 | + | else (rbs == "2W")) |
---|
| 196 | + | then true |
---|
| 197 | + | else (rbs == "2X")) |
---|
| 198 | + | then true |
---|
| 199 | + | else (rbs == "2Y")) |
---|
| 200 | + | then true |
---|
| 201 | + | else (rbs == "2Z")) |
---|
| 202 | + | then true |
---|
| 203 | + | else (rbs == "2a")) |
---|
| 204 | + | then true |
---|
| 205 | + | else (rbs == "2b")) |
---|
| 206 | + | then true |
---|
| 207 | + | else (rbs == "2c")) |
---|
| 208 | + | then true |
---|
| 209 | + | else (rbs == "2d")) |
---|
| 210 | + | then true |
---|
| 211 | + | else (rbs == "2e")) |
---|
| 212 | + | then true |
---|
| 213 | + | else (rbs == "2f")) |
---|
| 214 | + | then true |
---|
| 215 | + | else (rbs == "2g")) |
---|
| 216 | + | then true |
---|
| 217 | + | else (rbs == "2h")) |
---|
| 218 | + | then true |
---|
| 219 | + | else (rbs == "2i")) |
---|
| 220 | + | then true |
---|
| 221 | + | else (rbs == "2j")) |
---|
| 222 | + | then true |
---|
| 223 | + | else (rbs == "2k")) |
---|
| 224 | + | then true |
---|
| 225 | + | else (rbs == "2m")) |
---|
| 226 | + | then true |
---|
| 227 | + | else (rbs == "2n")) |
---|
| 228 | + | then true |
---|
| 229 | + | else (rbs == "2o")) |
---|
| 230 | + | then true |
---|
| 231 | + | else (rbs == "2p")) |
---|
| 232 | + | then true |
---|
| 233 | + | else (rbs == "2q")) |
---|
| 234 | + | then true |
---|
| 235 | + | else (rbs == "2r")) |
---|
| 236 | + | then true |
---|
| 237 | + | else (rbs == "2s")) |
---|
| 238 | + | then true |
---|
| 239 | + | else (rbs == "2t")) |
---|
| 240 | + | then true |
---|
| 241 | + | else (rbs == "2u")) |
---|
| 242 | + | then true |
---|
| 243 | + | else (rbs == "2v")) |
---|
| 244 | + | then true |
---|
| 245 | + | else (rbs == "2w")) |
---|
| 246 | + | then true |
---|
| 247 | + | else (rbs == "2x")) |
---|
| 248 | + | then true |
---|
| 249 | + | else (rbs == "2y")) |
---|
| 250 | + | then true |
---|
| 251 | + | else (rbs == "2z")) |
---|
| 252 | + | then true |
---|
| 253 | + | else (rbs == "31")) |
---|
| 254 | + | then true |
---|
| 255 | + | else (rbs == "32")) |
---|
| 256 | + | then true |
---|
| 257 | + | else (rbs == "33")) |
---|
| 258 | + | then true |
---|
| 259 | + | else (rbs == "34") |
---|
| 260 | + | } |
---|
20 | 261 | | else true |
---|
21 | 262 | | case _ => |
---|
22 | 263 | | true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let lotto = base58'CraQbwqtaZQENZfzqHN11a2iqMjHnDRpw58iLLTYbdCC' |
---|
4 | | - | let lottoAddr = addressFromPublicKey(lotto) |
---|
5 | | - | let isOpen = getBoolean(lottoAddr, "isOpen") |
---|
| 4 | + | let wavelet = 100000000 |
---|
6 | 5 | | match tx { |
---|
7 | 6 | | case e: ExchangeTransaction => |
---|
8 | 7 | | if (!(isDefined(e.sellOrder.assetPair.priceAsset))) |
---|
9 | 8 | | then if (if (if ((e.buyOrder.senderPublicKey == lotto)) |
---|
| 9 | + | then (e.buyOrder.senderPublicKey == e.sellOrder.senderPublicKey) |
---|
| 10 | + | else false) |
---|
10 | 11 | | then true |
---|
11 | | - | else (e.sellOrder.senderPublicKey == lotto)) |
---|
12 | | - | then true |
---|
13 | | - | else if (if ((e.sellOrder.price == 100000000)) |
---|
| 12 | + | else if ((e.sellOrder.price == wavelet)) |
---|
14 | 13 | | then (e.sellOrder.amount == 1) |
---|
15 | 14 | | else false) |
---|
16 | | - | then (isOpen == true) |
---|
17 | | - | else false) |
---|
18 | 15 | | then true |
---|
19 | | - | else false |
---|
| 16 | + | else if ((e.buyOrder.price == wavelet)) |
---|
| 17 | + | then true |
---|
| 18 | + | else { |
---|
| 19 | + | let randomByte = take(e.buyOrder.proofs[0], 1) |
---|
| 20 | + | let rbs = toBase58String(randomByte) |
---|
| 21 | + | if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((rbs == "1")) |
---|
| 22 | + | then true |
---|
| 23 | + | else (rbs == "2")) |
---|
| 24 | + | then true |
---|
| 25 | + | else (rbs == "3")) |
---|
| 26 | + | then true |
---|
| 27 | + | else (rbs == "4")) |
---|
| 28 | + | then true |
---|
| 29 | + | else (rbs == "5")) |
---|
| 30 | + | then true |
---|
| 31 | + | else (rbs == "6")) |
---|
| 32 | + | then true |
---|
| 33 | + | else (rbs == "7")) |
---|
| 34 | + | then true |
---|
| 35 | + | else (rbs == "8")) |
---|
| 36 | + | then true |
---|
| 37 | + | else (rbs == "9")) |
---|
| 38 | + | then true |
---|
| 39 | + | else (rbs == "A")) |
---|
| 40 | + | then true |
---|
| 41 | + | else (rbs == "B")) |
---|
| 42 | + | then true |
---|
| 43 | + | else (rbs == "C")) |
---|
| 44 | + | then true |
---|
| 45 | + | else (rbs == "D")) |
---|
| 46 | + | then true |
---|
| 47 | + | else (rbs == "E")) |
---|
| 48 | + | then true |
---|
| 49 | + | else (rbs == "F")) |
---|
| 50 | + | then true |
---|
| 51 | + | else (rbs == "G")) |
---|
| 52 | + | then true |
---|
| 53 | + | else (rbs == "H")) |
---|
| 54 | + | then true |
---|
| 55 | + | else (rbs == "J")) |
---|
| 56 | + | then true |
---|
| 57 | + | else (rbs == "K")) |
---|
| 58 | + | then true |
---|
| 59 | + | else (rbs == "L")) |
---|
| 60 | + | then true |
---|
| 61 | + | else (rbs == "M")) |
---|
| 62 | + | then true |
---|
| 63 | + | else (rbs == "N")) |
---|
| 64 | + | then true |
---|
| 65 | + | else (rbs == "P")) |
---|
| 66 | + | then true |
---|
| 67 | + | else (rbs == "Q")) |
---|
| 68 | + | then true |
---|
| 69 | + | else (rbs == "R")) |
---|
| 70 | + | then true |
---|
| 71 | + | else (rbs == "S")) |
---|
| 72 | + | then true |
---|
| 73 | + | else (rbs == "T")) |
---|
| 74 | + | then true |
---|
| 75 | + | else (rbs == "U")) |
---|
| 76 | + | then true |
---|
| 77 | + | else (rbs == "V")) |
---|
| 78 | + | then true |
---|
| 79 | + | else (rbs == "W")) |
---|
| 80 | + | then true |
---|
| 81 | + | else (rbs == "X")) |
---|
| 82 | + | then true |
---|
| 83 | + | else (rbs == "Y")) |
---|
| 84 | + | then true |
---|
| 85 | + | else (rbs == "Z")) |
---|
| 86 | + | then true |
---|
| 87 | + | else (rbs == "a")) |
---|
| 88 | + | then true |
---|
| 89 | + | else (rbs == "b")) |
---|
| 90 | + | then true |
---|
| 91 | + | else (rbs == "c")) |
---|
| 92 | + | then true |
---|
| 93 | + | else (rbs == "d")) |
---|
| 94 | + | then true |
---|
| 95 | + | else (rbs == "e")) |
---|
| 96 | + | then true |
---|
| 97 | + | else (rbs == "f")) |
---|
| 98 | + | then true |
---|
| 99 | + | else (rbs == "g")) |
---|
| 100 | + | then true |
---|
| 101 | + | else (rbs == "h")) |
---|
| 102 | + | then true |
---|
| 103 | + | else (rbs == "i")) |
---|
| 104 | + | then true |
---|
| 105 | + | else (rbs == "j")) |
---|
| 106 | + | then true |
---|
| 107 | + | else (rbs == "k")) |
---|
| 108 | + | then true |
---|
| 109 | + | else (rbs == "m")) |
---|
| 110 | + | then true |
---|
| 111 | + | else (rbs == "n")) |
---|
| 112 | + | then true |
---|
| 113 | + | else (rbs == "o")) |
---|
| 114 | + | then true |
---|
| 115 | + | else (rbs == "p")) |
---|
| 116 | + | then true |
---|
| 117 | + | else (rbs == "q")) |
---|
| 118 | + | then true |
---|
| 119 | + | else (rbs == "r")) |
---|
| 120 | + | then true |
---|
| 121 | + | else (rbs == "s")) |
---|
| 122 | + | then true |
---|
| 123 | + | else (rbs == "t")) |
---|
| 124 | + | then true |
---|
| 125 | + | else (rbs == "u")) |
---|
| 126 | + | then true |
---|
| 127 | + | else (rbs == "v")) |
---|
| 128 | + | then true |
---|
| 129 | + | else (rbs == "w")) |
---|
| 130 | + | then true |
---|
| 131 | + | else (rbs == "x")) |
---|
| 132 | + | then true |
---|
| 133 | + | else (rbs == "y")) |
---|
| 134 | + | then true |
---|
| 135 | + | else (rbs == "z")) |
---|
| 136 | + | then true |
---|
| 137 | + | else (rbs == "21")) |
---|
| 138 | + | then true |
---|
| 139 | + | else (rbs == "22")) |
---|
| 140 | + | then true |
---|
| 141 | + | else (rbs == "23")) |
---|
| 142 | + | then true |
---|
| 143 | + | else (rbs == "24")) |
---|
| 144 | + | then true |
---|
| 145 | + | else (rbs == "25")) |
---|
| 146 | + | then true |
---|
| 147 | + | else (rbs == "26")) |
---|
| 148 | + | then true |
---|
| 149 | + | else (rbs == "27")) |
---|
| 150 | + | then true |
---|
| 151 | + | else (rbs == "28")) |
---|
| 152 | + | then true |
---|
| 153 | + | else (rbs == "29")) |
---|
| 154 | + | then true |
---|
| 155 | + | else (rbs == "2A")) |
---|
| 156 | + | then true |
---|
| 157 | + | else (rbs == "2B")) |
---|
| 158 | + | then true |
---|
| 159 | + | else (rbs == "2C")) |
---|
| 160 | + | then true |
---|
| 161 | + | else (rbs == "2D")) |
---|
| 162 | + | then true |
---|
| 163 | + | else (rbs == "2E")) |
---|
| 164 | + | then true |
---|
| 165 | + | else (rbs == "2F")) |
---|
| 166 | + | then true |
---|
| 167 | + | else (rbs == "2G")) |
---|
| 168 | + | then true |
---|
| 169 | + | else (rbs == "2H")) |
---|
| 170 | + | then true |
---|
| 171 | + | else (rbs == "2J")) |
---|
| 172 | + | then true |
---|
| 173 | + | else (rbs == "2K")) |
---|
| 174 | + | then true |
---|
| 175 | + | else (rbs == "2L")) |
---|
| 176 | + | then true |
---|
| 177 | + | else (rbs == "2M")) |
---|
| 178 | + | then true |
---|
| 179 | + | else (rbs == "2N")) |
---|
| 180 | + | then true |
---|
| 181 | + | else (rbs == "2P")) |
---|
| 182 | + | then true |
---|
| 183 | + | else (rbs == "2Q")) |
---|
| 184 | + | then true |
---|
| 185 | + | else (rbs == "2R")) |
---|
| 186 | + | then true |
---|
| 187 | + | else (rbs == "2S")) |
---|
| 188 | + | then true |
---|
| 189 | + | else (rbs == "2T")) |
---|
| 190 | + | then true |
---|
| 191 | + | else (rbs == "2U")) |
---|
| 192 | + | then true |
---|
| 193 | + | else (rbs == "2V")) |
---|
| 194 | + | then true |
---|
| 195 | + | else (rbs == "2W")) |
---|
| 196 | + | then true |
---|
| 197 | + | else (rbs == "2X")) |
---|
| 198 | + | then true |
---|
| 199 | + | else (rbs == "2Y")) |
---|
| 200 | + | then true |
---|
| 201 | + | else (rbs == "2Z")) |
---|
| 202 | + | then true |
---|
| 203 | + | else (rbs == "2a")) |
---|
| 204 | + | then true |
---|
| 205 | + | else (rbs == "2b")) |
---|
| 206 | + | then true |
---|
| 207 | + | else (rbs == "2c")) |
---|
| 208 | + | then true |
---|
| 209 | + | else (rbs == "2d")) |
---|
| 210 | + | then true |
---|
| 211 | + | else (rbs == "2e")) |
---|
| 212 | + | then true |
---|
| 213 | + | else (rbs == "2f")) |
---|
| 214 | + | then true |
---|
| 215 | + | else (rbs == "2g")) |
---|
| 216 | + | then true |
---|
| 217 | + | else (rbs == "2h")) |
---|
| 218 | + | then true |
---|
| 219 | + | else (rbs == "2i")) |
---|
| 220 | + | then true |
---|
| 221 | + | else (rbs == "2j")) |
---|
| 222 | + | then true |
---|
| 223 | + | else (rbs == "2k")) |
---|
| 224 | + | then true |
---|
| 225 | + | else (rbs == "2m")) |
---|
| 226 | + | then true |
---|
| 227 | + | else (rbs == "2n")) |
---|
| 228 | + | then true |
---|
| 229 | + | else (rbs == "2o")) |
---|
| 230 | + | then true |
---|
| 231 | + | else (rbs == "2p")) |
---|
| 232 | + | then true |
---|
| 233 | + | else (rbs == "2q")) |
---|
| 234 | + | then true |
---|
| 235 | + | else (rbs == "2r")) |
---|
| 236 | + | then true |
---|
| 237 | + | else (rbs == "2s")) |
---|
| 238 | + | then true |
---|
| 239 | + | else (rbs == "2t")) |
---|
| 240 | + | then true |
---|
| 241 | + | else (rbs == "2u")) |
---|
| 242 | + | then true |
---|
| 243 | + | else (rbs == "2v")) |
---|
| 244 | + | then true |
---|
| 245 | + | else (rbs == "2w")) |
---|
| 246 | + | then true |
---|
| 247 | + | else (rbs == "2x")) |
---|
| 248 | + | then true |
---|
| 249 | + | else (rbs == "2y")) |
---|
| 250 | + | then true |
---|
| 251 | + | else (rbs == "2z")) |
---|
| 252 | + | then true |
---|
| 253 | + | else (rbs == "31")) |
---|
| 254 | + | then true |
---|
| 255 | + | else (rbs == "32")) |
---|
| 256 | + | then true |
---|
| 257 | + | else (rbs == "33")) |
---|
| 258 | + | then true |
---|
| 259 | + | else (rbs == "34") |
---|
| 260 | + | } |
---|
20 | 261 | | else true |
---|
21 | 262 | | case _ => |
---|
22 | 263 | | true |
---|
23 | 264 | | } |
---|