tx · FxYrr1u17yDvTf8kFNeYYqbuwtZfz4PebWRtsw8kC6cr 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx: -1.00000000 Waves 2019.02.21 15:14 [505010] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG
{ "type": 15, "id": "FxYrr1u17yDvTf8kFNeYYqbuwtZfz4PebWRtsw8kC6cr", "fee": 100000000, "feeAssetId": null, "timestamp": 1550751357032, "version": 1, "sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx", "senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg", "proofs": [ "4wxLNqYZQftach46XybQXUdjrz8vH3V6ASGYatrGxfgGmJwr1mFqZxCUjTwKY5d1Yqg1pUbSKeahN6GmMYDHo8ev" ], "assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg", "script": "base64:AQQAAAATbWluaW11bVdhdmVzQmFsYW5jZQAAAAAAO5rKAAQAAAAFcHJpY2UAAAAAAAX14QEEAAAACHByaWNlbWluAAAAAAAL68IBBAAAAA5hZG1pblB1YmxpY0tleQEAAAAaAVRC0PwxJhtnFV9wRfoHmO1S1kgvZLHPO40EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAAdiYWxhbmNlCQAD6wAAAAIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFlAAAAD3NlbmRlclB1YmxpY0tleQEAAAAABAAAAARzZWxsCQAB9AAAAAMICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAAD3NlbmRlclB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acted Prev: EE3mVDWKminZ3pj5qqDE8je51tbxWdinsBx6UPT4buvi Next: AyrhTCHqnx3CujdjpR2gmXnZDwmfC7bSNYHHTDR7uC4X Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let minimumWavesBalance = 1000000000 | |
4 | 4 | let price = 100000001 | |
5 | 5 | let pricemin = 200000001 | |
6 | 6 | let adminPublicKey = base58'3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx' | |
7 | 7 | match tx { | |
8 | 8 | case e: ExchangeTransaction => | |
9 | 9 | let balance = assetBalance(addressFromPublicKey(e.senderPublicKey), base58'') | |
10 | 10 | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) | |
11 | 11 | if (sell) | |
12 | 12 | then { | |
13 | 13 | let permit = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey) | |
14 | 14 | if ((price > e.sellOrder.price)) | |
15 | 15 | then throw("you cannot sell for less than 1.00000001") | |
16 | 16 | else if ((minimumWavesBalance > balance)) | |
17 | 17 | then throw("you can sell only have at least 10 tokens") | |
18 | 18 | else true | |
19 | 19 | } | |
20 | 20 | else true | |
21 | 21 | case mass: SetAssetScriptTransaction|MassTransferTransaction => | |
22 | 22 | let transaction = transactionById(extract(mass.assetId)) | |
23 | 23 | match transaction { | |
24 | 24 | case issueTx: IssueTransaction => | |
25 | 25 | (mass.senderPublicKey == issueTx.senderPublicKey) | |
26 | 26 | case _ => | |
27 | 27 | throw("Bad issue tx type") | |
28 | 28 | } | |
29 | 29 | case _ => | |
30 | 30 | throw("You only can transfer this token") | |
31 | 31 | } |
github/deemru/w8io/026f985 30.34 ms ◑