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+9HctthQtzPqBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BAAAAANidXkJAAH0AAAAAwgIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAPc2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eAUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAADZZb3UgY2Fubm90IHNlbmQgdGhpcyBhc3NldCB2aWEgTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAaWW91IGNhbm5vdCBidXJuIHRoaXMgYXNzZXQDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgft7fUu", "chainId": 84, "height": 540084, "spentComplexity": 0 } View: original | compacted Prev: 2tmnt2Cyd45R2WKYb3uo7knm72e7xZY8Ntf8cprasqLz Next: H7TEMpGdDVEZuQPKLEiM4RZAX1uXCix2JmaLXFrchhX9 Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let issuer = Address(base58'3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb')
44 match tx {
55 case tx: ExchangeTransaction =>
66 let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey)
77 let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey)
88 let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes)
99 let buyOrderSender = toBase58String(tx.sellOrder.sender.bytes)
1010 let sellOrderSenderCategory = getString(issuer, sellOrderSender)
1111 let buyOrderSenderCategory = getString(issuer, buyOrderSender)
1212 let am = 6000000000
1313 if (if (if (buy)
1414 then if (if (isDefined(buyOrderSenderCategory))
1515 then (extract(sellOrderSenderCategory) == "ambassador")
1616 else false)
1717 then true
1818 else throw("Only whitelist can buy this asset")
1919 else false)
2020 then true
2121 else if (sell)
2222 then if (if (isDefined(sellOrderSenderCategory))
2323 then (extract(sellOrderSenderCategory) == "ambassador")
2424 else false)
2525 then true
2626 else throw("Only whitelist can sell this asset")
2727 else false)
2828 then true
2929 else if ((tx.sellOrder.amount > am))
3030 then true
3131 else throw("Min sell ammount = 60")
3232 case tx: MassTransferTransaction =>
3333 if ((tx.sender == issuer))
3434 then true
3535 else throw("You cannot send this asset via MassTransferTransaction")
3636 case tx: BurnTransaction =>
3737 if ((tx.sender == issuer))
3838 then true
3939 else throw("You cannot burn this asset")
4040 case tx: ReissueTransaction|SetAssetScriptTransaction =>
4141 true
4242 case _ =>
4343 false
4444 }

github/deemru/w8io/026f985 
45.02 ms