tx · 83zDhjymZhtyMG4VS8Wa8denG7KjxQ8yWbvv7zt1No3k
3N3Bsb6cBEFXxxXYK3P18A6boegYcJtzV6c: -0.01400000 Waves
2019.03.04 17:56 [521290] smart account 3N3Bsb6cBEFXxxXYK3P18A6boegYcJtzV6c > SELF 0.00000000 Waves
{
"type": 13,
"id": "83zDhjymZhtyMG4VS8Wa8denG7KjxQ8yWbvv7zt1No3k",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1551711395037,
"version": 1,
"sender": "3N3Bsb6cBEFXxxXYK3P18A6boegYcJtzV6c",
"senderPublicKey": "AqBHTsCtnV1LE6gdpnR8sqvQvdTkpUdmprUYvjYnXjek",
"proofs": [
"48TQKskwRxiqmvHi4ZP4jFXHwRZBxSmgs81neSwY6LgJ67CG5eGqxBm2x485PjygHZ3npmoMftbY9wWMzceYeFgV"
],
"script": "base64:AQQAAAAGc2VuZGVyCAUAAAACdHgAAAAGc2VuZGVyBAAAAAVhc3NldAEAAAAg4gLVv2kuVAAxgmMDQJDM0MzAVARF8Kdg3AWkh5R5Y2AEAAAACmRpZmZpY3VsdHkJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZzZW5kZXICAAAACmRpZmZpY3VsdHkEAAAAEGxhc3RVcGRhdGVIZWlnaHQJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZzZW5kZXICAAAAEGxhc3RVcGRhdGVIZWlnaHQEAAAAEWxhc3RVcGRhdGVCYWxhbmNlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAGc2VuZGVyAgAAABFsYXN0VXBkYXRlQmFsYW5jZQQAAAAOY3VycmVudEJhbGFuY2UJAAPrAAAAAgUAAAAGc2VuZGVyBQAAAAVhc3NldAQAAAAOdmFsaWRpdHlQZXJpb2QAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAKZmlyc3RCeXRlcwkAAlgAAAABCQAAyQAAAAIIBQAAAAJ0eAAAAAJpZAUAAAAKZGlmZmljdWx0eQMDAwMDCQAAZgAAAAIFAAAADnZhbGlkaXR5UGVyaW9kCQAAZQAAAAIFAAAABmhlaWdodAUAAAAQbGFzdFVwZGF0ZUhlaWdodAkBAAAACWlzRGVmaW5lZAAAAAEJAAQbAAAAAgUAAAAGc2VuZGVyBQAAAApmaXJzdEJ5dGVzBwkAAAAAAAACCAUAAAACdHgAAAAGYW1vdW50AAAAAAAAAAABBwkAAAAAAAACCAUAAAACdHgAAAAHYXNzZXRJZAUAAAAFYXNzZXQHCQAAAAAAAAIIBQAAAAJ0eAAAAANmZWUAAAAAAAAHoSAHCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAACdHgAAAAKZmVlQXNzZXRJZAcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5KQt3ng==",
"chainId": 84,
"height": 521290,
"spentComplexity": 0
}
View: original | compacted
Prev: 2T7ewdrDAtJH3sgWaLJFjdGte2E3tTcPh5tu59zo9bKj
Next: H41Tb65a9v52CVCqVcgg9jQMtQC2ovLiwnPFWQuYzPU9
Diff:
Old | New | | Differences |
---|
6 | 6 | | let lastUpdateHeight = extract(getInteger(sender, "lastUpdateHeight")) |
---|
7 | 7 | | let lastUpdateBalance = extract(getInteger(sender, "lastUpdateBalance")) |
---|
8 | 8 | | let currentBalance = assetBalance(sender, asset) |
---|
9 | | - | let validityPeriod = 20 |
---|
| 9 | + | let validityPeriod = 1000 |
---|
10 | 10 | | match tx { |
---|
11 | 11 | | case tx: TransferTransaction => |
---|
12 | 12 | | let firstBytes = toBase58String(take(tx.id, difficulty)) |
---|
|
21 | 21 | | else false) |
---|
22 | 22 | | then !(isDefined(tx.feeAssetId)) |
---|
23 | 23 | | else false |
---|
24 | | - | case tx: DataTransaction => |
---|
25 | | - | let newDifficulty = if ((difficulty == 2)) |
---|
26 | | - | then 3 |
---|
27 | | - | else 2 |
---|
28 | | - | if (if (if (if ((size(tx.data) == 3)) |
---|
29 | | - | then (extract(getInteger(tx.data, "difficulty")) == newDifficulty) |
---|
30 | | - | else false) |
---|
31 | | - | then (extract(getInteger(tx.data, "lastUpdateHeight")) == height) |
---|
32 | | - | else false) |
---|
33 | | - | then (extract(getInteger(tx.data, "lastUpdateBalance")) == currentBalance) |
---|
34 | | - | else false) |
---|
35 | | - | then (tx.fee == 500000) |
---|
36 | | - | else false |
---|
37 | 24 | | case _ => |
---|
38 | 25 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
39 | 26 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let sender = tx.sender |
---|
4 | 4 | | let asset = base58'GDFeXJjyasFBgxQJsLrkEBjZoB1x4rkpJN12fG7NE8RV' |
---|
5 | 5 | | let difficulty = extract(getInteger(sender, "difficulty")) |
---|
6 | 6 | | let lastUpdateHeight = extract(getInteger(sender, "lastUpdateHeight")) |
---|
7 | 7 | | let lastUpdateBalance = extract(getInteger(sender, "lastUpdateBalance")) |
---|
8 | 8 | | let currentBalance = assetBalance(sender, asset) |
---|
9 | | - | let validityPeriod = 20 |
---|
| 9 | + | let validityPeriod = 1000 |
---|
10 | 10 | | match tx { |
---|
11 | 11 | | case tx: TransferTransaction => |
---|
12 | 12 | | let firstBytes = toBase58String(take(tx.id, difficulty)) |
---|
13 | 13 | | if (if (if (if (if ((validityPeriod > (height - lastUpdateHeight))) |
---|
14 | 14 | | then isDefined(getBoolean(sender, firstBytes)) |
---|
15 | 15 | | else false) |
---|
16 | 16 | | then (tx.amount == 1) |
---|
17 | 17 | | else false) |
---|
18 | 18 | | then (tx.assetId == asset) |
---|
19 | 19 | | else false) |
---|
20 | 20 | | then (tx.fee == 500000) |
---|
21 | 21 | | else false) |
---|
22 | 22 | | then !(isDefined(tx.feeAssetId)) |
---|
23 | 23 | | else false |
---|
24 | | - | case tx: DataTransaction => |
---|
25 | | - | let newDifficulty = if ((difficulty == 2)) |
---|
26 | | - | then 3 |
---|
27 | | - | else 2 |
---|
28 | | - | if (if (if (if ((size(tx.data) == 3)) |
---|
29 | | - | then (extract(getInteger(tx.data, "difficulty")) == newDifficulty) |
---|
30 | | - | else false) |
---|
31 | | - | then (extract(getInteger(tx.data, "lastUpdateHeight")) == height) |
---|
32 | | - | else false) |
---|
33 | | - | then (extract(getInteger(tx.data, "lastUpdateBalance")) == currentBalance) |
---|
34 | | - | else false) |
---|
35 | | - | then (tx.fee == 500000) |
---|
36 | | - | else false |
---|
37 | 24 | | case _ => |
---|
38 | 25 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
39 | 26 | | } |
---|