tx · 8bJnyXsfvoX9qnE6yBarbH4MfzZDyEVMoX2ahMXkbW9u
3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA: -0.01400000 Waves
2019.01.15 17:32 [451236] smart account 3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA > SELF 0.00000000 Waves
{
"type": 13,
"id": "8bJnyXsfvoX9qnE6yBarbH4MfzZDyEVMoX2ahMXkbW9u",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1547562762175,
"version": 1,
"sender": "3Mqg7LwuHRY3GQjz8dbCFvHDQb33gWNFaSA",
"senderPublicKey": "Eu5ZUHQswbdySVdGsEw7y2MrKCJGPvjkFtyf1YVoJLfH",
"proofs": [
"3gQKNREV4yfmjB9Li5k9mEgFJgATXfZ72aK1rabaWkXeJM6YoVRwUEr8qFJ3BgarFiiCa5ije5cKUsTjT9QeznEb"
],
"script": "base64:AQQAAAAFbG90dG8BAAAAIM5/SbYnQBvmeWPjlbnQqjja9sn0WmqR6XNSaCaPDtkgBAAAAAlsb3R0b0FkZHIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAABWxvdHRvBAAAAAZpc09wZW4JAAQbAAAAAgUAAAAJbG90dG9BZGRyAgAAAAZpc09wZW4EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAABbwUAAAAHJG1hdGNoMAMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAUAAAABbwAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAMJAAAAAAAAAggFAAAAAW8AAAAFcHJpY2UAAAAAAAAAAAEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAAAAAACBQAAAAZpc09wZW4GBwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleV8z9bU=",
"chainId": 84,
"height": 451236,
"spentComplexity": 0
}
View: original | compacted
Prev: 7fCHzgcyeM4LTFQBvw9BLwafTs9ZBNvYRfauw7xt5BuR
Next: BNbZRNCQvYjoEHQidZzYpU2fA3FbVnTgmUNaMFyMFKAB
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let lotto = base58'Eu5ZUHQswbdySVdGsEw7y2MrKCJGPvjkFtyf1YVoJLfH' |
---|
| 4 | + | let lottoAddr = addressFromPublicKey(lotto) |
---|
| 5 | + | let isOpen = getBoolean(lottoAddr, "isOpen") |
---|
4 | 6 | | match tx { |
---|
5 | 7 | | case o: Order => |
---|
6 | 8 | | if (!(isDefined(o.assetPair.priceAsset))) |
---|
7 | | - | then if (if ((o.price == 1)) |
---|
8 | | - | then true |
---|
9 | | - | else (o.senderPublicKey == lotto)) |
---|
| 9 | + | then if ((o.price == 1)) |
---|
10 | 10 | | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
11 | | - | else false |
---|
| 11 | + | else if ((isOpen == true)) |
---|
| 12 | + | then false |
---|
| 13 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
12 | 14 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
13 | 15 | | case _ => |
---|
14 | 16 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let lotto = base58'Eu5ZUHQswbdySVdGsEw7y2MrKCJGPvjkFtyf1YVoJLfH' |
---|
| 4 | + | let lottoAddr = addressFromPublicKey(lotto) |
---|
| 5 | + | let isOpen = getBoolean(lottoAddr, "isOpen") |
---|
4 | 6 | | match tx { |
---|
5 | 7 | | case o: Order => |
---|
6 | 8 | | if (!(isDefined(o.assetPair.priceAsset))) |
---|
7 | | - | then if (if ((o.price == 1)) |
---|
8 | | - | then true |
---|
9 | | - | else (o.senderPublicKey == lotto)) |
---|
| 9 | + | then if ((o.price == 1)) |
---|
10 | 10 | | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
11 | | - | else false |
---|
| 11 | + | else if ((isOpen == true)) |
---|
| 12 | + | then false |
---|
| 13 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
12 | 14 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
13 | 15 | | case _ => |
---|
14 | 16 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
15 | 17 | | } |
---|