tx · GKJCQ9BfBUMFhumw1HZKnGKYs3b8Lzu6Aj699q8xzPPH
3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar: -1.00000000 Waves
2020.09.03 18:49 [1161415] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200
{
"type": 15,
"id": "GKJCQ9BfBUMFhumw1HZKnGKYs3b8Lzu6Aj699q8xzPPH",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1599148166915,
"version": 1,
"sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar",
"senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS",
"proofs": [
"418x9DaUjdvp14raC7neRtq9pZfKUeq4RHP2GoT9eoxwWLcG88mNEdWufQ2VmRGsmFqdGRPNZ9STsyjnYMAbMtsk"
],
"assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e",
"script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCQAAaQAAAAIIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAAAAAPoBAAAAAdzcG9uc29yAQAAACBBa8XAYqVvmo8A0b+Cee545P2vz+BaMZNc8EyMlYJWlQQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAABy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AAAAWUAAAAJc2VsbE9yZGVyAAAACW9yZGVyVHlwZQUAAAAEU2VsbAMJAABmAAAAAgAAAAAAAvrwfwgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAADIyMjCQABpAAAAAEFAAAAA3RpbQIAAAADIyMjBgkAAAIAAAABAgAAABZTb21ldGhpbmcgYmFkIGhhcHBlbmVkByIXsTs=",
"chainId": 84,
"height": 1161415,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4wUuVxm1iPjU6rWXWFWW2JhfW4hPErdJt87kKpzP2p6X
Next: 8aAw6Si7SDzBxMpJgvb7ogwVLVZEE2K4efB3UySpSKtG
Diff:
Old | New | | Differences |
---|
9 | 9 | | (tx.sender == dAppAddress) |
---|
10 | 10 | | case t: TransferTransaction => |
---|
11 | 11 | | if ((t.feeAssetId != sponsor)) |
---|
12 | | - | then throw("You have to pay 5 WAVES to burn this token") |
---|
| 12 | + | then throw("### Для отправки используйте спонсорский токен AYDIK (ID - sdfsfsdfsdfsdfsdfsdfsdgwetsedgdgdfgd) ###") |
---|
13 | 13 | | else true |
---|
14 | 14 | | case e: ExchangeTransaction => |
---|
15 | 15 | | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar") |
---|
4 | 4 | | let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS' |
---|
5 | 5 | | let tim = (lastBlock.timestamp / 1000) |
---|
6 | 6 | | let sponsor = base58'5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC' |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case tx: MassTransferTransaction|BurnTransaction|SetAssetScriptTransaction|ReissueTransaction => |
---|
9 | 9 | | (tx.sender == dAppAddress) |
---|
10 | 10 | | case t: TransferTransaction => |
---|
11 | 11 | | if ((t.feeAssetId != sponsor)) |
---|
12 | | - | then throw("You have to pay 5 WAVES to burn this token") |
---|
| 12 | + | then throw("### Для отправки используйте спонсорский токен AYDIK (ID - sdfsfsdfsdfsdfsdfsdfsdgwetsedgdgdfgd) ###") |
---|
13 | 13 | | else true |
---|
14 | 14 | | case e: ExchangeTransaction => |
---|
15 | 15 | | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) |
---|
16 | 16 | | if (admin) |
---|
17 | 17 | | then true |
---|
18 | 18 | | else if (isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
19 | 19 | | then throw((("###" + toString(tim)) + "###")) |
---|
20 | 20 | | else if ((e.buyOrder.orderType == Buy)) |
---|
21 | 21 | | then if ((94999999 > e.buyOrder.price)) |
---|
22 | 22 | | then throw((("###" + toString(tim)) + "###")) |
---|
23 | 23 | | else true |
---|
24 | 24 | | else if ((e.sellOrder.orderType == Sell)) |
---|
25 | 25 | | then if ((49999999 > e.sellOrder.price)) |
---|
26 | 26 | | then throw((("###" + toString(tim)) + "###")) |
---|
27 | 27 | | else true |
---|
28 | 28 | | else throw("Something bad happened") |
---|
29 | 29 | | case _ => |
---|
30 | 30 | | false |
---|
31 | 31 | | } |
---|