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