tx · GB64b4sPJhu9nZq31JcruAY81jhraqWKume1VheBBjGn
3N4QdQY4gYb5PmRdvfueVmye49RCmn5GAEy: -1.00000000 Waves
2019.02.17 13:31 [498948] smart asset 3N4QdQY4gYb5PmRdvfueVmye49RCmn5GAEy > SELF 0.00000000 Newwave1
{
"type": 15,
"id": "GB64b4sPJhu9nZq31JcruAY81jhraqWKume1VheBBjGn",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550399540072,
"version": 1,
"sender": "3N4QdQY4gYb5PmRdvfueVmye49RCmn5GAEy",
"senderPublicKey": "siVpxLTmbQMPohN8n2LEQwuA49kNBW4D5NoiUgyg5o1",
"proofs": [
"2Vfk4R9PX94AjpY7DZC8LzFRWwdC8jyb7CDJeu7iFBQ7d8UBSp2Du32GJeuKVa7DpxdSCbqaLmmFHB6zXnqKNtti"
],
"assetId": "DRVHgZq1m1mKdRZtpC6FyhJpgDEea5aMpYnbFtvLeCBD",
"script": "base64:AQQAAAATbWluaW11bVdhdmVzQmFsYW5jZQAAAAAAO5rKAAQAAAAQbW92ZVRpbWVJbkJsb2NrcwAAAAAAAAATiAQAAAAQbWluaW1hbEZlZVRvTW92ZQAAAAAAAJiWgAQAAAAQbWluaW1hbEZlZVRvQnVybgAAAAAAAvrwgAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAABGJ1cm4FAAAAByRtYXRjaDADCQAAZgAAAAIFAAAAEG1pbmltYWxGZWVUb0J1cm4IBQAAAARidXJuAAAAA2ZlZQkAAAIAAAABAgAAAAxwYXkgNSB0b2tlbnMGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAABG1hc3MFAAAAByRtYXRjaDAEAAAAC3RyYW5zYWN0aW9uCQAD6AAAAAEJAQAAAAdleHRyYWN0AAAAAQgFAAAABG1hc3MAAAAHYXNzZXRJZAQAAAAHJG1hdGNoMQUAAAALdHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAB2lzc3VlVHgFAAAAByRtYXRjaDEJAAAAAAAAAggFAAAABG1hc3MAAAAPc2VuZGVyUHVibGljS2V5CAUAAAAHaXNzdWVUeAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAARQmFkIGlzc3VlIHR4IHR5cGUJAAACAAAAAQIAAAAgWW91IG9ubHkgY2FuIHRyYW5zZmVyIHRoaXMgdG9rZW75pjI2",
"chainId": 84,
"height": 498948,
"spentComplexity": 0
}
View: original | compacted
Prev: 9a9a4MMqwKreznanfe8piiN8En1Jz28BnCPKNm3D6nZv
Next: AiqdF8WtJDPS4C73t1zbELnoEfrQ3me4S6n1Aj8S9ir7
Diff:
Old | New | | Differences |
---|
5 | 5 | | let minimalFeeToMove = 10000000 |
---|
6 | 6 | | let minimalFeeToBurn = 50000000 |
---|
7 | 7 | | match tx { |
---|
8 | | - | case t: ExchangeTransaction => |
---|
9 | | - | true |
---|
| 8 | + | case burn: ExchangeTransaction => |
---|
| 9 | + | if ((minimalFeeToBurn > burn.fee)) |
---|
| 10 | + | then throw("pay 5 tokens") |
---|
| 11 | + | else true |
---|
10 | 12 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
11 | 13 | | let transaction = transactionById(extract(mass.assetId)) |
---|
12 | 14 | | match transaction { |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let minimumWavesBalance = 1000000000 |
---|
4 | 4 | | let moveTimeInBlocks = 5000 |
---|
5 | 5 | | let minimalFeeToMove = 10000000 |
---|
6 | 6 | | let minimalFeeToBurn = 50000000 |
---|
7 | 7 | | match tx { |
---|
8 | | - | case t: ExchangeTransaction => |
---|
9 | | - | true |
---|
| 8 | + | case burn: ExchangeTransaction => |
---|
| 9 | + | if ((minimalFeeToBurn > burn.fee)) |
---|
| 10 | + | then throw("pay 5 tokens") |
---|
| 11 | + | else true |
---|
10 | 12 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
11 | 13 | | let transaction = transactionById(extract(mass.assetId)) |
---|
12 | 14 | | match transaction { |
---|
13 | 15 | | case issueTx: IssueTransaction => |
---|
14 | 16 | | (mass.senderPublicKey == issueTx.senderPublicKey) |
---|
15 | 17 | | case _ => |
---|
16 | 18 | | throw("Bad issue tx type") |
---|
17 | 19 | | } |
---|
18 | 20 | | case _ => |
---|
19 | 21 | | throw("You only can transfer this token") |
---|
20 | 22 | | } |
---|