tx · FdASEDHTctWGTbG5623dC6BWPHcodAUAWvqxTzyB7K1K 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar: -1.00000000 Waves 2020.09.03 10:24 [1160908] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200
{ "type": 15, "id": "FdASEDHTctWGTbG5623dC6BWPHcodAUAWvqxTzyB7K1K", "fee": 100000000, "feeAssetId": null, "timestamp": 1599117847023, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "4rcoDSq5trCjBdepvJhxKybVtta9jMLN87xMnB5cWARHUJxbrCTApefyrayTL5idAeN5q1unKT5Zj7e1QEKHunjP" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAALZEFwcEFkZH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sAAAAAgkAASwAAAACAgAAAD4tPSDQptC10L3QsCDQv9GA0L7QtNCw0LbQuCDQtNC+0LvQttC90LAg0LHRi9GC0Ywg0LHQvtC70YzRiNC1IAkAAaQAAAABBQAAAAN0aW0CAAAADCBXYXZlbGV0cyA9LQYDBQAAAANidXkGCQAAAgAAAAECAAAAFnNvbWV0aGluZyBiYWQgaGFwcGVuZWQHvt8BQA==", "chainId": 84, "height": 1160908, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: FRZd1iBe7zCGWtbTjKLLakyQn2MscZZFcabNFMSFWzrQ Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar") | |
4 | + | let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS' | |
5 | + | let tim = lastBlock.timestamp | |
6 | + | match tx { | |
7 | + | case tx: MassTransferTransaction|BurnTransaction|SetAssetScriptTransaction|ReissueTransaction => | |
8 | + | (tx.sender == dAppAddress) | |
9 | + | case tx: TransferTransaction => | |
10 | + | true | |
11 | + | case e: ExchangeTransaction => | |
12 | + | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) | |
13 | + | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) | |
14 | + | let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK)) | |
15 | + | if (admin) | |
16 | + | then true | |
17 | + | else if (isDefined(e.sellOrder.assetPair.priceAsset)) | |
18 | + | then throw("Only waves accepted") | |
19 | + | else if (sell) | |
20 | + | then if ((100 > e.sellOrder.amount)) | |
21 | + | then throw((("Время " + toString(tim)) + " CloMinTok =-")) | |
22 | + | else if ((100 >= e.sellOrder.price)) | |
23 | + | then throw((("-= Цена продажи должна быть больше " + toString(tim)) + " Wavelets =-")) | |
24 | + | else true | |
25 | + | else if (buy) | |
26 | + | then true | |
27 | + | else throw("something bad happened") | |
28 | + | case _ => | |
29 | + | false | |
30 | + | } |
github/deemru/w8io/169f3d6 27.22 ms ◑