tx · 2EyNTxnx1VnZb1KjfgR1Tzbbtyd6rctw3FhSjkPTBjgD 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz: -1.00000000 Waves 2019.09.14 19:34 [676124] smart asset 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz > SELF 0.00000000 TokenA
{ "type": 15, "id": "2EyNTxnx1VnZb1KjfgR1Tzbbtyd6rctw3FhSjkPTBjgD", "fee": 100000000, "feeAssetId": null, "timestamp": 1568478852714, "version": 1, "sender": "3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz", "senderPublicKey": "8xbFEr8yZ5HF64v8tiadoqScjuYSatXx8ceugsivh1zn", "proofs": [ "hhKBGPcyuVyB8xKUxc2iuFqmWYGmY8htysPPALeoNLBv9boXeoqUExcK1r24Mup13xNwkVwe54PK1U2d9Wu3UzT" ], "assetId": "6Ponwv7qGwKTtPyN6Gd68zDCA3VqL24iR52faUWM3HTy", "script": "base64:AgQAAAAFQmR1YWwBAAAAIEhocYsvJAIw6qjgq8Ok9j5yvcUbjiYH1swG1+QUHbREBAAAAAVBZHVhbAEAAAAgUCIe2sKBAeqOmQ0Gcfw9adh/6p0++/xV4a6VbFosSEwEAAAACUNvbWlzc2lvbgEAAAAgizOUBLk8GF5Oej34h34ow7SJ0CFxtAwrO41N3Xa/WncEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAADYnV5CQAB9AAAAAMICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAnR4AAAACGJ1eU9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAAOYWRtaW5QdWJsaWNLZXkBAAAAIHY/eXgbBANV+nvhb3szPMwdsAe/cf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rpb24EAAAAB2lzc3VlVHgFAAAAByRtYXRjaDEJAAAAAAAAAggFAAAABG1hc3MAAAAPc2VuZGVyUHVibGljS2V5CAUAAAAHaXNzdWVUeAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAABEWW91IGNhbm5vdCB0cmFuc2ZlciB0aGlzIHRva2VuLCBtb3JlIGluZm9ybWF0aW9uIG9uIG91ciBzaXR5IHZrLmNvbS4Ga6TgQA==", "chainId": 84, "height": 676124, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 2 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let Bdual = base58'5sej2eGsiwMhJbBy7utj2fVCnC9mngj5aRaGNMnWupcj' | |
4 | + | let Adual = base58'6Ponwv7qGwKTtPyN6Gd68zDCA3VqL24iR52faUWM3HTy' | |
5 | + | let Comission = base58'ANPHb8Ys8oMeJP1JfZ9XdNhAPC6LnAee7EMJN6CbDK6n' | |
6 | + | match tx { | |
7 | + | case tx: ExchangeTransaction => | |
8 | + | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) | |
9 | + | let adminPublicKey = base58'8xbFEr8yZ5HF64v8tiadoqScjuYSatXx8ceugsivh1zn' | |
10 | + | let permit = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], adminPublicKey) | |
11 | + | if (permit) | |
12 | + | then true | |
13 | + | else if (if ((assetBalance(tx.sellOrder.sender, Bdual) >= ((assetBalance(tx.sellOrder.sender, Adual) / 100) * 70))) | |
14 | + | then (assetBalance(tx.sellOrder.sender, Comission) >= 1) | |
15 | + | else false) | |
16 | + | then true | |
17 | + | else if (buy) | |
18 | + | then true | |
19 | + | else throw("You do not have enough token B, more information on our sity vk.com.") | |
20 | + | case mass: SetAssetScriptTransaction|ReissueTransaction|MassTransferTransaction|TransferTransaction => | |
21 | + | let transaction = transactionById(extract(mass.assetId)) | |
22 | + | match transaction { | |
23 | + | case issueTx: IssueTransaction => | |
24 | + | (mass.senderPublicKey == issueTx.senderPublicKey) | |
25 | + | case _ => | |
26 | + | throw("You cannot transfer this token, more information on our sity vk.com.") | |
27 | + | } | |
28 | + | case _ => | |
29 | + | true | |
30 | + | } |
github/deemru/w8io/169f3d6 17.21 ms ◑