tx · GJ1EMchehsp1FTV1MaNnCkLA7NNGZEtcJDAj5AiwdRqA 3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV: -1.00000000 Waves 2019.03.10 16:49 [530045] smart asset 3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV > SELF 0.00000000 test2
{ "type": 15, "id": "GJ1EMchehsp1FTV1MaNnCkLA7NNGZEtcJDAj5AiwdRqA", "fee": 100000000, "feeAssetId": null, "timestamp": 1552225795642, "version": 1, "sender": "3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV", "senderPublicKey": "4fEj7DKYTPhNbYatj1wPFk8GxUNCu62QAgqgVF8A6r1y", "proofs": [ "4ZvFQYLmH1zNmm9QhJ5Fh6x8kuuHiEL7EFVzXsuQxbM1znbryhVhFjgRaJoqY4CwPY2XKzVodBxdQsibuHb3w1ho" ], "assetId": "AzqDQB9HWaq9mDBnqzTyLkq3mQGP3Ksw5BM5bFuwWKti", "script": "base64:AQQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUEC3cmEatGb52HzfuglZKYNkiVPPK99oMBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXJlY2lwaWVudAkAAlgAAAABCAkABCQAAAABCAUAAAACdHgAAAAJcmVjaXBpZW50AAAABWJ5dGVzBAAAABFyZWNpcGllbnRDYXRlZ29yeQkABB0AAAACBQAAAAZpc3N1ZXIFAAAACXJlY2lwaWVudAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgMDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAARcmVjaXBpZW50Q2F0ZWdvcnkJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABBQAAABFyZWNpcGllbnRDYXRlZ29yeQIAAAAKYW1iYXNzYWRvcgcGCQAA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AHJG1hdGNoMAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAADZZb3UgY2Fubm90IHNlbmQgdGhpcyBhc3NldCB2aWEgTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAaWW91IGNhbm5vdCBidXJuIHRoaXMgYXNzZXQDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgcLnNoA", "chainId": 84, "height": 530045, "spentComplexity": 0 } View: original | compacted Prev: 8LY3nD5eRMEuxcT4uXDvpGuzyxSWrfZrQoCWkuSsf5Lg Next: FeFHzBi8iaS76FzSdqL72djAs3UYQCnvjz89juwPjAhe Diff:
Old | New | Differences | |
---|---|---|---|
18 | 18 | let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes) | |
19 | 19 | let minimumamount = 1500 | |
20 | 20 | if (sell) | |
21 | - | then if (( | |
21 | + | then if ((minimumamount > tx.sellOrder.amount)) | |
22 | 22 | then throw("Minimum transaction amount is 1,500 test2") | |
23 | 23 | else if ((tx.sellOrder.sender == issuer)) | |
24 | 24 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
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 if (if (isDefined(recipientCategory)) | |
11 | 11 | then (extract(recipientCategory) == "ambassador") | |
12 | 12 | else false) | |
13 | 13 | then true | |
14 | 14 | else throw("This asset can be transferred to whitelist only") | |
15 | 15 | case tx: ExchangeTransaction => | |
16 | 16 | let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey) | |
17 | 17 | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) | |
18 | 18 | let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes) | |
19 | 19 | let minimumamount = 1500 | |
20 | 20 | if (sell) | |
21 | - | then if (( | |
21 | + | then if ((minimumamount > tx.sellOrder.amount)) | |
22 | 22 | then throw("Minimum transaction amount is 1,500 test2") | |
23 | 23 | else if ((tx.sellOrder.sender == issuer)) | |
24 | 24 | then true | |
25 | 25 | else throw("Transaction is not allowed by token-script ") | |
26 | 26 | else false | |
27 | 27 | case tx: MassTransferTransaction => | |
28 | 28 | if ((tx.sender == issuer)) | |
29 | 29 | then true | |
30 | 30 | else throw("You cannot send this asset via MassTransferTransaction") | |
31 | 31 | case tx: BurnTransaction => | |
32 | 32 | if ((tx.sender == issuer)) | |
33 | 33 | then true | |
34 | 34 | else throw("You cannot burn this asset") | |
35 | 35 | case tx: ReissueTransaction|SetAssetScriptTransaction => | |
36 | 36 | true | |
37 | 37 | case _ => | |
38 | 38 | false | |
39 | 39 | } |
github/deemru/w8io/026f985 18.97 ms ◑