tx · 9pGdXnu2kyvP97CQcySeJVcJqHahaEJbxn2taatU3aJN

3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV:  -1.00000000 Waves

2019.03.10 19:39 [530220] smart asset 3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV > SELF 0.00000000 test2

{ "type": 15, "id": "9pGdXnu2kyvP97CQcySeJVcJqHahaEJbxn2taatU3aJN", "fee": 100000000, "feeAssetId": null, "timestamp": 1552235967200, "version": 1, "sender": "3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV", "senderPublicKey": "4fEj7DKYTPhNbYatj1wPFk8GxUNCu62QAgqgVF8A6r1y", "proofs": [ "4MuB9jZces5UoSuwk8ReCrMWkcHqu56PR2iWegRFdLgHAMhu7tpxUJzM9ztCh1x2XCTADroL2fVjbWbsREn7mZNX" ], "assetId": "AzqDQB9HWaq9mDBnqzTyLkq3mQGP3Ksw5BM5bFuwWKti", "script": "base64:AQQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUEC3cmEatGb52HzfuglZKYNkiVPPK99oMBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXJlY2lwaWVudAkAAlgAAAABCAkABCQAAAABCAUAAAACdHgAAAAJcmVjaXBpZW50AAAABWJ5dGVzBAAAABFyZWNpcGllbnRDYXRlZ29yeQkABB0AAAACBQAAAAZpc3N1ZXIFAAAACXJlY2lwaWVudAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgMDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAARcmVjaXBpZW50Q2F0ZWdvcnkJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABBQAAABFyZWNpcGllbnRDYXRlZ29yeQIAAAAKYW1iYXNzYWRvcgcGCQAAAgAAAAECAAAAL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IHRlc3QyIAMJAAAAAAAAAggIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAAqVHJhbnNhY3Rpb24gaXMgbm90IGFsbG93ZWQgYnkgdG9rZW4tc2NyaXB0BwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwAwkAAAAAAAACCAUAAAACdHgAAAAGc2VuZGVyBQAAAAZpc3N1ZXIGCQAAAgAAAAECAAAANllvdSBjYW5ub3Qgc2VuZCB0aGlzIGFzc2V0IHZpYSBNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgkAAAIAAAABAgAAABpZb3UgY2Fubm90IGJ1cm4gdGhpcyBhc3NldAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGB1Hoi4Q=", "chainId": 84, "height": 530220, "spentComplexity": 0 } View: original | compacted Prev: B95G1YmmQnpaTMYmsA6CbJzSaRCwGmsZJrbA3FE6JU5 Next: DB6CYtfBSBD7DH5RtuyME7wLT7wc7aJik6fCScuh1noH Diff:
OldNewDifferences
2727 else if (sell)
2828 then if (isDefined((minimumamount > tx.sellOrder.amount)))
2929 then throw("Minimum transaction amount is 1,500 test2 ")
30- else if ((tx.sellOrder.sender == issuer))
30+ else if ((tx.buyOrder.sender == issuer))
3131 then true
3232 else throw("Transaction is not allowed by token-script")
3333 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let issuer = Address(base58'3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV')
44 match tx {
55 case tx: TransferTransaction =>
66 let recipient = toBase58String(addressFromRecipient(tx.recipient).bytes)
77 let recipientCategory = getString(issuer, recipient)
88 if ((tx.sender == issuer))
99 then true
1010 else if (if (isDefined(recipientCategory))
1111 then (extract(recipientCategory) == "ambassador")
1212 else false)
1313 then true
1414 else throw("This asset can be transferred to whitelist only")
1515 case tx: ExchangeTransaction =>
1616 let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey)
1717 let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey)
1818 let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes)
1919 let minimumamount = 150000
2020 let maximumprice = 1
2121 if (if (buy)
2222 then if (isDefined((maximumprice > tx.buyOrder.price)))
2323 then true
2424 else throw("Transaction is not allowed by token-script ")
2525 else false)
2626 then true
2727 else if (sell)
2828 then if (isDefined((minimumamount > tx.sellOrder.amount)))
2929 then throw("Minimum transaction amount is 1,500 test2 ")
30- else if ((tx.sellOrder.sender == issuer))
30+ else if ((tx.buyOrder.sender == issuer))
3131 then true
3232 else throw("Transaction is not allowed by token-script")
3333 else false
3434 case tx: MassTransferTransaction =>
3535 if ((tx.sender == issuer))
3636 then true
3737 else throw("You cannot send this asset via MassTransferTransaction")
3838 case tx: BurnTransaction =>
3939 if ((tx.sender == issuer))
4040 then true
4141 else throw("You cannot burn this asset")
4242 case tx: ReissueTransaction|SetAssetScriptTransaction =>
4343 true
4444 case _ =>
4545 false
4646 }

github/deemru/w8io/026f985 
24.92 ms