tx · 7mCgN8p7WDWwMPHFxmcs1dvJWfRjiafWZiMQPbeSg79m

3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb:  -1.00000000 Waves

2019.03.16 13:15 [538584] smart asset 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb > SELF 0.00000000 ZAraa

{ "type": 15, "id": "7mCgN8p7WDWwMPHFxmcs1dvJWfRjiafWZiMQPbeSg79m", "fee": 100000000, "feeAssetId": null, "timestamp": 1552731377765, "version": 1, "sender": "3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb", "senderPublicKey": "6XtTAMMi9snEs1mN1TBpR3npxA2R16FMxneyWXMZdMdf", "proofs": [ "2nqcszR7wVEPT7THwHTUvfVESZbuNMHBNxjXdZrw54dRCeNM2XgN8cf8UXJUhHMm2yC9hV75SRQFPL1BTdtB7dvE" ], "assetId": "6uTUhCBEKUcWVxKz8sHJ2oh616PmmGPMFV1cr2Hx9Ggu", "script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUn3ENnb2h8+cM5MoAZuZG+9HctthQtzPqBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BAAAAANidXkJAAH0AAAAAwgIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAACdHgAAAAIYnV5T3JkZXIAAAA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AJ0eAUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAADZZb3UgY2Fubm90IHNlbmQgdGhpcyBhc3NldCB2aWEgTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24DCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAaWW91IGNhbm5vdCBidXJuIHRoaXMgYXNzZXQDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgemlQop", "chainId": 84, "height": 538584, "spentComplexity": 0 } View: original | compacted Prev: 3vX1pp9FXg3tcXjzdkza96gzzuxrwJ1KEB5D4VohuQRp Next: 6XoAwBtiUcL9bgbJrvLwyi9SJAdcNtVSju298cyCYca3 Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let issuer = Address(base58'3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb')
44 match tx {
5- case tx: TransferTransaction =>
6- let recipient = toBase58String(addressFromRecipient(tx.recipient).bytes)
7- let recipientCategory = getString(issuer, recipient)
8- if ((tx.sender == issuer))
9- then true
10- else if (if (isDefined(recipientCategory))
11- then (extract(recipientCategory) == "ambassador")
12- else false)
13- then true
14- else throw("This asset can be transferred to whitelist only")
155 case tx: ExchangeTransaction =>
166 let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey)
177 let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey)
199 let buyOrderSender = toBase58String(tx.sellOrder.sender.bytes)
2010 let sellOrderSenderCategory = getString(issuer, sellOrderSender)
2111 let buyOrderSenderCategory = getString(issuer, buyOrderSender)
22- if (if (buy)
12+ if (if (if (buy)
2313 then if (if (isDefined(buyOrderSenderCategory))
2414 then (extract(sellOrderSenderCategory) == "ambassador")
2515 else false)
3323 else false)
3424 then true
3525 else throw("Only whitelist can sell this asset")
26+ else false)
27+ then true
28+ else if (sell)
29+ then if ((tx.sellOrder.amount > 60))
30+ then true
31+ else throw("Min sell ammount = 60")
3632 else false
3733 case tx: MassTransferTransaction =>
3834 if ((tx.sender == issuer))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let issuer = Address(base58'3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb')
44 match tx {
5- case tx: TransferTransaction =>
6- let recipient = toBase58String(addressFromRecipient(tx.recipient).bytes)
7- let recipientCategory = getString(issuer, recipient)
8- if ((tx.sender == issuer))
9- then true
10- else if (if (isDefined(recipientCategory))
11- then (extract(recipientCategory) == "ambassador")
12- else false)
13- then true
14- else throw("This asset can be transferred to whitelist only")
155 case tx: ExchangeTransaction =>
166 let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey)
177 let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey)
188 let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes)
199 let buyOrderSender = toBase58String(tx.sellOrder.sender.bytes)
2010 let sellOrderSenderCategory = getString(issuer, sellOrderSender)
2111 let buyOrderSenderCategory = getString(issuer, buyOrderSender)
22- if (if (buy)
12+ if (if (if (buy)
2313 then if (if (isDefined(buyOrderSenderCategory))
2414 then (extract(sellOrderSenderCategory) == "ambassador")
2515 else false)
2616 then true
2717 else throw("Only whitelist can buy this asset")
2818 else false)
2919 then true
3020 else if (sell)
3121 then if (if (isDefined(sellOrderSenderCategory))
3222 then (extract(sellOrderSenderCategory) == "ambassador")
3323 else false)
3424 then true
3525 else throw("Only whitelist can sell this asset")
26+ else false)
27+ then true
28+ else if (sell)
29+ then if ((tx.sellOrder.amount > 60))
30+ then true
31+ else throw("Min sell ammount = 60")
3632 else false
3733 case tx: MassTransferTransaction =>
3834 if ((tx.sender == issuer))
3935 then true
4036 else throw("You cannot send this asset via MassTransferTransaction")
4137 case tx: BurnTransaction =>
4238 if ((tx.sender == issuer))
4339 then true
4440 else throw("You cannot burn this asset")
4541 case tx: ReissueTransaction|SetAssetScriptTransaction =>
4642 true
4743 case _ =>
4844 false
4945 }

github/deemru/w8io/026f985 
29.24 ms