tx · 8FyB2Vu8qg26LVveaDTqZ62zcazWorieEoMKMvGQV8N8

3MpQ7Dv9FfugVvQWf7kQnXU2sgY1SVYNiTX:  -0.01000000 Waves

2018.12.20 17:34 [413305] smart account 3MpQ7Dv9FfugVvQWf7kQnXU2sgY1SVYNiTX > SELF 0.00000000 Waves

{ "type": 13, "id": "8FyB2Vu8qg26LVveaDTqZ62zcazWorieEoMKMvGQV8N8", "fee": 1000000, "feeAssetId": null, "timestamp": 1545316489765, "version": 1, "sender": "3MpQ7Dv9FfugVvQWf7kQnXU2sgY1SVYNiTX", "senderPublicKey": "Ceg4md8EkGfjJbqwKW2WvLZXFKxXSwVJ1EuGJ533QWq9", "proofs": [ "2ewGW9nUVyLmTHXQ6vWBfUqQX9UYSiinRdPHeLQXPujiiiXE3SyRdyX8J6x1rh8gePSkARJDcDXihMMAxuDLcaQC" ], "script": "base64:AQQAAAAObWF4VXNlckJhbGFuc2UAAAAAAB3NZQAEAAAACW1heEFtb3VudAAAAAAAAJiWgAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABmFtb3VudAkBAAAAB2V4dHJhY3QAAAABCAUAAAABdAAAAAZhbW91bnQEAAAADWFtb3VudENvcnJlY3QJAABnAAAAAgUAAAAJbWF4QW1vdW50BQAAAAZhbW91bnQEAAAABmFkcmVzcwkBAAAAB2V4dHJhY3QAAAABCAUAAAABdAAAAAlyZWNpcGllbnQEAAAAC3VzZXJCYWxhbmNlCQEAAAAMd2F2ZXNCYWxhbmNlAAAAAQUAAAAGYWRyZXNzBAAAAA5iYWxhbmNlQ29ycmVjdAkAAGYAAAACBQAAAA5tYXhVc2VyQmFsYW5zZQUAAAALdXNlckJhbGFuY2UEAAAADXNlbmRlckNvcnJlY3QJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwMFAAAADWFtb3VudENvcnJlY3QFAAAADmJhbGFuY2VDb3JyZWN0BwUAAAANc2VuZGVyQ29ycmVjdAcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwBgfhBhHd", "chainId": 84, "height": 413305, "spentComplexity": 0 } View: original | compacted Prev: none Next: 28s8Lc7kSHdD7iLGxitbYGMq5XWHU5h23M7iTw7UKJeA Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 1 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let maxUserBalanse = 500000000
4+let maxAmount = 10000000
5+match tx {
6+ case t: TransferTransaction =>
7+ let amount = extract(t.amount)
8+ let amountCorrect = (maxAmount >= amount)
9+ let adress = extract(t.recipient)
10+ let userBalance = wavesBalance(adress)
11+ let balanceCorrect = (maxUserBalanse > userBalance)
12+ let senderCorrect = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
13+ if (if (amountCorrect)
14+ then balanceCorrect
15+ else false)
16+ then senderCorrect
17+ else false
18+ case s: SetScriptTransaction =>
19+ true
20+ case _ =>
21+ false
22+}

github/deemru/w8io/026f985 
11.32 ms