tx · 8UYetY5smvsWybSeUfa1r9t68k2Xe7PAeBiYynv5fxKN 3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV: -1.00000000 Waves 2019.03.10 19:49 [530230] smart asset 3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV > SELF 0.00000000 test2
{ "type": 15, "id": "8UYetY5smvsWybSeUfa1r9t68k2Xe7PAeBiYynv5fxKN", "fee": 100000000, "feeAssetId": null, "timestamp": 1552236597062, "version": 1, "sender": "3MqPdXWunQnVsfNux9YQ3eGmMfvBKv7zpoV", "senderPublicKey": "4fEj7DKYTPhNbYatj1wPFk8GxUNCu62QAgqgVF8A6r1y", "proofs": [ "677sDZ2TTMhgZJHqv8SoEHk4s4EcJczC9d6jyZmEPWmfxV2gegvGyjtgVBBPwc8LMJz3cCoQd5NC1LZmvhzDnApv" ], "assetId": "AzqDQB9HWaq9mDBnqzTyLkq3mQGP3Ksw5BM5bFuwWKti", "script": "base64:AQQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUEC3cmEatGb52HzfuglZKYNkiVPPK99oMBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXJlY2lwaWVudAkAAlgAAAABCAkABCQAAAABCAUAAAACdHgAAAAJcmVjaXBpZW50AAAABWJ5dGVzBAAAABFyZWNpcGllbnRDYXRlZ29yeQkABB0AAAACBQAAAAZpc3N1ZXIFAAAACXJlY2lwaWVudAMJAAAAAAAAAggFAAAAAnR4AAAABnNlbmRlcgUAAAAGaXNzdWVyBgMDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAARcmVjaXBpZW50Q2F0ZWdvcnkJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABBQAAABFyZWNpcGllbnRDYXRlZ29yeQIAAAAKYW1iYXNzYWRvcgcGCQAAAgAAAAECA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WF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAAJ0eAAAAAZzZW5kZXIFAAAABmlzc3VlcgYJAAACAAAAAQIAAAA2WW91IGNhbm5vdCBzZW5kIHRoaXMgYXNzZXQgdmlhIE1hc3NUcmFuc2ZlclRyYW5zYWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwAwkAAAAAAAACCAUAAAACdHgAAAAGc2VuZGVyBQAAAAZpc3N1ZXIGCQAAAgAAAAECAAAAGllvdSBjYW5ub3QgYnVybiB0aGlzIGFzc2V0AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAYHZTbhSQ==", "chainId": 84, "height": 530230, "spentComplexity": 0 } View: original | compacted Prev: DB6CYtfBSBD7DH5RtuyME7wLT7wc7aJik6fCScuh1noH Next: E1x4xCz949iJSJgLDiXfQVhm33mba78PvufRKKmVKZyf Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | else false) | |
26 | 26 | then true | |
27 | 27 | else if (sell) | |
28 | - | then if (isDefined((minimumamount > tx.sellOrder.amount))) | |
29 | - | then throw("Minimum transaction amount is 1,500 test2 ") | |
30 | - | else if ((tx.sellOrder.sender == issuer)) | |
31 | - | then true | |
32 | - | else throw("Transaction is not allowed by token-script") | |
28 | + | then if ((tx.sellOrder.sender == issuer)) | |
29 | + | then true | |
30 | + | else throw("Minimum transaction amount is 1,500 Test2") | |
33 | 31 | else false | |
34 | 32 | case tx: MassTransferTransaction => | |
35 | 33 | if ((tx.sender == issuer)) |
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 = 150000 | |
20 | 20 | let maximumprice = 1 | |
21 | 21 | if (if (buy) | |
22 | 22 | then if (isDefined((maximumprice > tx.buyOrder.price))) | |
23 | 23 | then true | |
24 | 24 | else throw("Transaction is not allowed by token-script ") | |
25 | 25 | else false) | |
26 | 26 | then true | |
27 | 27 | else if (sell) | |
28 | - | then if (isDefined((minimumamount > tx.sellOrder.amount))) | |
29 | - | then throw("Minimum transaction amount is 1,500 test2 ") | |
30 | - | else if ((tx.sellOrder.sender == issuer)) | |
31 | - | then true | |
32 | - | else throw("Transaction is not allowed by token-script") | |
28 | + | then if ((tx.sellOrder.sender == issuer)) | |
29 | + | then true | |
30 | + | else throw("Minimum transaction amount is 1,500 Test2") | |
33 | 31 | else false | |
34 | 32 | case tx: MassTransferTransaction => | |
35 | 33 | if ((tx.sender == issuer)) | |
36 | 34 | then true | |
37 | 35 | else throw("You cannot send this asset via MassTransferTransaction") | |
38 | 36 | case tx: BurnTransaction => | |
39 | 37 | if ((tx.sender == issuer)) | |
40 | 38 | then true | |
41 | 39 | else throw("You cannot burn this asset") | |
42 | 40 | case tx: ReissueTransaction|SetAssetScriptTransaction => | |
43 | 41 | true | |
44 | 42 | case _ => | |
45 | 43 | false | |
46 | 44 | } |
github/deemru/w8io/169f3d6 37.00 ms ◑