tx · G5QBXiZUnhCu2ucme8XdXts7HRk6htQmp6ESMCp31Np1
3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk: -0.01400000 Waves
2018.10.08 17:40 [366668] smart account 3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk > SELF 0.00000000 Waves
{
"type": 13,
"id": "G5QBXiZUnhCu2ucme8XdXts7HRk6htQmp6ESMCp31Np1",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1539009624479,
"version": 1,
"sender": "3MwpUQwpSfHV1rFfHqCuuYL7A9K8ursTQWk",
"senderPublicKey": "5ydncg624xM6LmJKWJ26iZoy7XBdGx9JxcgqKMNhJPaz",
"proofs": [
"28JV5XiKZVJnVgZNpAyPL96y9PE2mF8bZFZyaeWXgbdP2c5kiJYzao6PbLiFAt5wmZSDeaey8jmJjbxPbgiCkX7s"
],
"script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACZHQFAAAAByRtYXRjaDADAwMDCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACCAUAAAACZHQAAAAGc2VuZGVyAgAAAAlnYW1lU3RhdGUAAAAAAAAAAAAJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAAdjb21tYW5kAAAAAAAAAAABBwkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAACWdhbWVTdGF0ZQAAAAAAAAAAAQcJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAAlwbGF5ZXJPbmUCAAAABWVtcHR5BwkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQTAAAAAggFAAAAAmR0AAAABGRhdGECAAAACXBsYXllclR3bwIAAAAFZW1wdHkHBnpoiyU=",
"chainId": 84,
"height": 366668,
"spentComplexity": 0
}
View: original | compacted
Prev: BSeVEUvRBScf4439dkKYTFH9563PUhMUTwxL16BW5p3S
Next: WGCgMeHB45zm79KudBU8iJaLZARUsPGnZitLXHujaad
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case dt: DataTransaction => |
---|
5 | | - | let gameNotStarted = match getInteger(dt.sender, "gameState") { |
---|
6 | | - | case i: Int => |
---|
7 | | - | false |
---|
8 | | - | case _ => |
---|
9 | | - | true |
---|
10 | | - | } |
---|
11 | | - | let gameInitialization = if (if (gameNotStarted) |
---|
12 | | - | then (extract(getInteger(dt.data, "command")) == 0) |
---|
| 5 | + | if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 0)) |
---|
| 6 | + | then (extract(getInteger(dt.data, "command")) == 1) |
---|
13 | 7 | | else false) |
---|
14 | | - | then (extract(getInteger(dt.data, "gameState")) == 0) |
---|
| 8 | + | then (extract(getInteger(dt.data, "gameState")) == 1) |
---|
| 9 | + | else false) |
---|
| 10 | + | then (extract(getString(dt.data, "playerOne")) == "empty") |
---|
| 11 | + | else false) |
---|
| 12 | + | then (extract(getString(dt.data, "playerTwo")) == "empty") |
---|
15 | 13 | | else false |
---|
16 | | - | gameInitialization |
---|
17 | 14 | | case _ => |
---|
18 | 15 | | true |
---|
19 | 16 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case dt: DataTransaction => |
---|
5 | | - | let gameNotStarted = match getInteger(dt.sender, "gameState") { |
---|
6 | | - | case i: Int => |
---|
7 | | - | false |
---|
8 | | - | case _ => |
---|
9 | | - | true |
---|
10 | | - | } |
---|
11 | | - | let gameInitialization = if (if (gameNotStarted) |
---|
12 | | - | then (extract(getInteger(dt.data, "command")) == 0) |
---|
| 5 | + | if (if (if (if ((extract(getInteger(dt.sender, "gameState")) == 0)) |
---|
| 6 | + | then (extract(getInteger(dt.data, "command")) == 1) |
---|
13 | 7 | | else false) |
---|
14 | | - | then (extract(getInteger(dt.data, "gameState")) == 0) |
---|
| 8 | + | then (extract(getInteger(dt.data, "gameState")) == 1) |
---|
| 9 | + | else false) |
---|
| 10 | + | then (extract(getString(dt.data, "playerOne")) == "empty") |
---|
| 11 | + | else false) |
---|
| 12 | + | then (extract(getString(dt.data, "playerTwo")) == "empty") |
---|
15 | 13 | | else false |
---|
16 | | - | gameInitialization |
---|
17 | 14 | | case _ => |
---|
18 | 15 | | true |
---|
19 | 16 | | } |
---|