tx · En16k2jJpFSHWp2uLnwNYkbiLvNtJMZkxnQiysG7AJ6b 3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV: -1.00000000 Waves 2019.03.15 14:45 [537227] smart asset 3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV > SELF 0.00000000 test2
{ "type": 15, "id": "En16k2jJpFSHWp2uLnwNYkbiLvNtJMZkxnQiysG7AJ6b", "fee": 100000000, "feeAssetId": null, "timestamp": 1552650353077, "version": 1, "sender": "3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV", "senderPublicKey": "4fEj7DKYTPhNbYatj1wPFk8GxUNCu62QAgqgVF8A6r1y", "proofs": [ "AtVj1CqxKfeEPBRMQxwGECrMoHsznfLqkPysTHVzqcLDpTtj7PeSZHXfEHvA11bEE3QunCWSho4tVq9Ks1HuEaW" ], "assetId": "AzqDQB9HWaq9mDBnqzTyLkq3mQGP3Ksw5BM5bFuwWKti", "script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUEC3cmEatGb52HzfuglZKYNkiVPPK99oMBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXJlY2lwaWVudAkAAlgAAAABCAkABCQAAAABCAUAAAACdHgAAAAJcmVjaXBpZW50AAAABWJ5dGVzBAAAABFyZWNpcGllbnRDYXRlZ29yeQkABB0AAAACBQAAAAZpc3N1ZXIFAAAACXJlY2lwaWVudAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAACFZb3UgY2Fubm90IHRyYW5zZmVycmVkIHRoaXMgdG9rZW4DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBAAAAARzZW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biB2aWEgTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAaWW91IGNhbm5vdCBidXJuIHRoaXMgdG9rZW4DAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgflXkv2", "chainId": 84, "height": 537227, "spentComplexity": 0 } View: original | compacted Prev: Djqh3rjyREZRBwemCZ2d6QnEHyC3nyU1FxFpdBPmyDiF Next: none Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | else if (sell) | |
24 | 24 | then if ((tx.sellOrder.sender == issuer)) | |
25 | 25 | then true | |
26 | - | else throw("Error: Minimum amount | |
26 | + | else throw("Error: Minimum amount To Trade is 500 Clover") | |
27 | 27 | else false | |
28 | 28 | case tx: MassTransferTransaction => | |
29 | 29 | if ((tx.sender == issuer)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let issuer = Address(base58'3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV') | |
4 | 4 | match tx { | |
5 | 5 | case tx: TransferTransaction => | |
6 | 6 | let recipient = toBase58String(addressFromRecipient(tx.recipient).bytes) | |
7 | 7 | let recipientCategory = getString(issuer, recipient) | |
8 | 8 | if ((tx.sender == issuer)) | |
9 | 9 | then true | |
10 | 10 | else throw("You cannot transferred this token") | |
11 | 11 | case tx: ExchangeTransaction => | |
12 | 12 | let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey) | |
13 | 13 | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) | |
14 | 14 | let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes) | |
15 | 15 | let minimumamount = 150000 | |
16 | 16 | let maximumprice = 1 | |
17 | 17 | if (if (buy) | |
18 | 18 | then if (isDefined((maximumprice > tx.buyOrder.price))) | |
19 | 19 | then true | |
20 | 20 | else throw("Transaction is not allowed by token-script ") | |
21 | 21 | else false) | |
22 | 22 | then true | |
23 | 23 | else if (sell) | |
24 | 24 | then if ((tx.sellOrder.sender == issuer)) | |
25 | 25 | then true | |
26 | - | else throw("Error: Minimum amount | |
26 | + | else throw("Error: Minimum amount To Trade is 500 Clover") | |
27 | 27 | else false | |
28 | 28 | case tx: MassTransferTransaction => | |
29 | 29 | if ((tx.sender == issuer)) | |
30 | 30 | then true | |
31 | 31 | else throw("You cannot send this token via MassTransferTransaction") | |
32 | 32 | case tx: BurnTransaction => | |
33 | 33 | if ((tx.sender == issuer)) | |
34 | 34 | then true | |
35 | 35 | else throw("You cannot burn this token") | |
36 | 36 | case tx: ReissueTransaction|SetAssetScriptTransaction => | |
37 | 37 | true | |
38 | 38 | case _ => | |
39 | 39 | false | |
40 | 40 | } |
github/deemru/w8io/026f985 25.24 ms ◑