tx · 5ge2gDgj7FeyVQ86YS5utLERWYZFVGTwz7nNiZGnqPmN 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb: -1.00000000 Waves 2019.03.17 13:36 [540084] smart asset 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb > SELF 0.00000000 ZAraa
{ "type": 15, "id": "5ge2gDgj7FeyVQ86YS5utLERWYZFVGTwz7nNiZGnqPmN", "fee": 100000000, "feeAssetId": null, "timestamp": 1552818977028, "version": 1, "sender": "3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb", "senderPublicKey": "6XtTAMMi9snEs1mN1TBpR3npxA2R16FMxneyWXMZdMdf", "proofs": [ "e63x4Eiv95ce84zncXS4dEbaCwk5vav1FLnW2FeXZSFsHXMcUzdqH5GpJnxJruoQQ51gHGhXjiTBhSNHMH3149j" ], "assetId": "6uTUhCBEKUcWVxKz8sHJ2oh616PmmGPMFV1cr2Hx9Ggu", "script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUn3ENnb2h8+cM5MoAZuZG+9HctthQtzPqBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BAAAAANidXkJAAH0AAAAAwgIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAPc2V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AUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAADZZb3UgY2Fubm90IHNlbmQgdGhpcyBhc3NldCB2aWEgTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAaWW91IGNhbm5vdCBidXJuIHRoaXMgYXNzZXQDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgft7fUu", "chainId": 84, "height": 540084, "spentComplexity": 0 } View: original | compacted Prev: 2tmnt2Cyd45R2WKYb3uo7knm72e7xZY8Ntf8cprasqLz Next: H7TEMpGdDVEZuQPKLEiM4RZAX1uXCix2JmaLXFrchhX9 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let issuer = Address(base58'3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb') | |
4 | 4 | match tx { | |
5 | 5 | case tx: ExchangeTransaction => | |
6 | 6 | let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey) | |
7 | 7 | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) | |
8 | 8 | let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes) | |
9 | 9 | let buyOrderSender = toBase58String(tx.sellOrder.sender.bytes) | |
10 | 10 | let sellOrderSenderCategory = getString(issuer, sellOrderSender) | |
11 | 11 | let buyOrderSenderCategory = getString(issuer, buyOrderSender) | |
12 | 12 | let am = 6000000000 | |
13 | 13 | if (if (if (buy) | |
14 | 14 | then if (if (isDefined(buyOrderSenderCategory)) | |
15 | 15 | then (extract(sellOrderSenderCategory) == "ambassador") | |
16 | 16 | else false) | |
17 | 17 | then true | |
18 | 18 | else throw("Only whitelist can buy this asset") | |
19 | 19 | else false) | |
20 | 20 | then true | |
21 | 21 | else if (sell) | |
22 | 22 | then if (if (isDefined(sellOrderSenderCategory)) | |
23 | 23 | then (extract(sellOrderSenderCategory) == "ambassador") | |
24 | 24 | else false) | |
25 | 25 | then true | |
26 | 26 | else throw("Only whitelist can sell this asset") | |
27 | 27 | else false) | |
28 | 28 | then true | |
29 | 29 | else if ((tx.sellOrder.amount > am)) | |
30 | 30 | then true | |
31 | 31 | else throw("Min sell ammount = 60") | |
32 | 32 | case tx: MassTransferTransaction => | |
33 | 33 | if ((tx.sender == issuer)) | |
34 | 34 | then true | |
35 | 35 | else throw("You cannot send this asset via MassTransferTransaction") | |
36 | 36 | case tx: BurnTransaction => | |
37 | 37 | if ((tx.sender == issuer)) | |
38 | 38 | then true | |
39 | 39 | else throw("You cannot burn this asset") | |
40 | 40 | case tx: ReissueTransaction|SetAssetScriptTransaction => | |
41 | 41 | true | |
42 | 42 | case _ => | |
43 | 43 | false | |
44 | 44 | } |
github/deemru/w8io/026f985 45.02 ms ◑