tx · 3ZfZ2LaatRMpEkzQqUyrxPbiwTpLC4TwET82Re61H5rq 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz: -1.00000000 Waves 2019.09.14 19:34 [676125] smart asset 3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz > SELF 0.00000000 TokenB
{ "type": 15, "id": "3ZfZ2LaatRMpEkzQqUyrxPbiwTpLC4TwET82Re61H5rq", "fee": 100000000, "feeAssetId": null, "timestamp": 1568478891929, "version": 1, "sender": "3MozTr8r7fZ1siohKsJgDUBykyB3ZAmTXQz", "senderPublicKey": "8xbFEr8yZ5HF64v8tiadoqScjuYSatXx8ceugsivh1zn", "proofs": [ "4tA11kSYSZ5Gdy6hgRHvQz6p5sqyeNXCo8QEqMy9rxs8jnopCcRf7uub4HrRb8MrRvuXapcHuTBLunR7rjrT89gt" ], "assetId": "5sej2eGsiwMhJbBy7utj2fVCnC9mngj5aRaGNMnWupcj", "script": "base64:AgQAAAAFQmR1YWwBAAAAIEhocYsvJAIw6qjgq8Ok9j5yvcUbjiYH1swG1+QUHbREBAAAAAVBZHVhbAEAAAAgUCIe2sKBAeqOmQ0Gcfw9adh/6p0++/xV4a6VbFosSEwEAAAACUNvbWlzc2lvbgEAAAAgizOUBLk8GF5Oej34h34ow7SJ0CFxtAwrO41N3Xa/WncEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAADYnV5CQAB9AAAAAMICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAIYnV5T3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAnR4AAAACGJ1eU9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAAOYWRtaW5QdWJsaWNLZXkBAAAAIHY/eXgbBANV+nvhb3szPMwdsAe/cfF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pb24EAAAAB2lzc3VlVHgFAAAAByRtYXRjaDEJAAAAAAAAAggFAAAABG1hc3MAAAAPc2VuZGVyUHVibGljS2V5CAUAAAAHaXNzdWVUeAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAABEWW91IGNhbm5vdCB0cmFuc2ZlciB0aGlzIHRva2VuLCBtb3JlIGluZm9ybWF0aW9uIG9uIG91ciBzaXR5IHZrLmNvbS4GU9Bufg==", "chainId": 84, "height": 676125, "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, Adual) >= ((assetBalance(tx.sellOrder.sender, Bdual) / 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 32.36 ms ◑