tx · 28s8Lc7kSHdD7iLGxitbYGMq5XWHU5h23M7iTw7UKJeA
3MpQ7Dv9FfugVvQWf7kQnXU2sgY1SVYNiTX: -0.05000000 Waves
2018.12.20 18:15 [413349] smart account 3MpQ7Dv9FfugVvQWf7kQnXU2sgY1SVYNiTX > SELF 0.00000000 Waves
{
"type": 13,
"id": "28s8Lc7kSHdD7iLGxitbYGMq5XWHU5h23M7iTw7UKJeA",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1545318933703,
"version": 1,
"sender": "3MpQ7Dv9FfugVvQWf7kQnXU2sgY1SVYNiTX",
"senderPublicKey": "Ceg4md8EkGfjJbqwKW2WvLZXFKxXSwVJ1EuGJ533QWq9",
"proofs": [
"676fMt9BMPHxpugncZ6HGuCD7H2ArxEPjWKjJoff9DKz8YyCfsqqq2Wpo43GqtbqoeTbTDKQDGUx4qQJWDRrWgJY"
],
"script": "base64:AQQAAAAObWF4VXNlckJhbGFuc2UAAAAAASoF8gAEAAAACW1heEFtb3VudAAAAAAAO5rKAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABmFtb3VudAkBAAAAB2V4dHJhY3QAAAABCAUAAAABdAAAAAZhbW91bnQEAAAADWFtb3VudENvcnJlY3QJAABnAAAAAgUAAAAJbWF4QW1vdW50BQAAAAZhbW91bnQEAAAABmFkcmVzcwkBAAAAB2V4dHJhY3QAAAABCAUAAAABdAAAAAlyZWNpcGllbnQEAAAAC3VzZXJCYWxhbmNlCQEAAAAMd2F2ZXNCYWxhbmNlAAAAAQUAAAAGYWRyZXNzBAAAAA5iYWxhbmNlQ29ycmVjdAkAAGYAAAACBQAAAA5tYXhVc2VyQmFsYW5zZQUAAAALdXNlckJhbGFuY2UEAAAADXNlbmRlckNvcnJlY3QJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwMFAAAADWFtb3VudENvcnJlY3QFAAAADmJhbGFuY2VDb3JyZWN0BwUAAAANc2VuZGVyQ29ycmVjdAcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwBgdmuLw+",
"chainId": 84,
"height": 413349,
"spentComplexity": 0
}
View: original | compacted
Prev: 8FyB2Vu8qg26LVveaDTqZ62zcazWorieEoMKMvGQV8N8
Next: 6ezSoAdLLYZLEpdAvqdRmfEBnadezGWoWgoFVgF3Hcj5
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let maxUserBalanse = 500000000 |
---|
4 | | - | let maxAmount = 10000000 |
---|
| 3 | + | let maxUserBalanse = 5000000000 |
---|
| 4 | + | let maxAmount = 1000000000 |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case t: TransferTransaction => |
---|
7 | 7 | | let amount = extract(t.amount) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let maxUserBalanse = 500000000 |
---|
4 | | - | let maxAmount = 10000000 |
---|
| 3 | + | let maxUserBalanse = 5000000000 |
---|
| 4 | + | let maxAmount = 1000000000 |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case t: TransferTransaction => |
---|
7 | 7 | | let amount = extract(t.amount) |
---|
8 | 8 | | let amountCorrect = (maxAmount >= amount) |
---|
9 | 9 | | let adress = extract(t.recipient) |
---|
10 | 10 | | let userBalance = wavesBalance(adress) |
---|
11 | 11 | | let balanceCorrect = (maxUserBalanse > userBalance) |
---|
12 | 12 | | let senderCorrect = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
13 | 13 | | if (if (amountCorrect) |
---|
14 | 14 | | then balanceCorrect |
---|
15 | 15 | | else false) |
---|
16 | 16 | | then senderCorrect |
---|
17 | 17 | | else false |
---|
18 | 18 | | case s: SetScriptTransaction => |
---|
19 | 19 | | true |
---|
20 | 20 | | case _ => |
---|
21 | 21 | | false |
---|
22 | 22 | | } |
---|