tx · 6Fmyn9tP6ZJf23fNSe8L5hqvC135BcEin1W9AX7FgqXy 3N1dQJrX6RjekLwJwzD8qcN4xGLcsD7378H: -0.00100000 Waves 2022.06.28 18:54 [2116496] smart account 3N1dQJrX6RjekLwJwzD8qcN4xGLcsD7378H > SELF 0.00000000 Waves
{ "type": 13, "id": "6Fmyn9tP6ZJf23fNSe8L5hqvC135BcEin1W9AX7FgqXy", "fee": 100000, "feeAssetId": null, "timestamp": 1656431744213, "version": 2, "chainId": 84, "sender": "3N1dQJrX6RjekLwJwzD8qcN4xGLcsD7378H", "senderPublicKey": "9y5hqjQypzJQHR9EZLtj3SpwDdqP2GJ3LFFP4qoVFeti", "proofs": [ "3mV4BWo5eZ8yAd4Uk57FcLTwLqtnKLdTaPgd7JJY5ZD9CwyxKts3ZjWndVnKKTXVvrWXEwHvskWgajnBsFLdxE9r" ], "script": "base64:BQQAAAAPc2VuZGVyUHVibGljS2V5AQAAABoBVLVTyQXfa42NXHO/DYL2LB5DKHz5dhGoZwQAAAAEYXhhaQEAAAAgkuT9xAe3o/TGMH8rDGYzdqSfqA0hb04+afXY3ky0HdAEAAAABHVzZG4BAAAAIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0CgEAAAAKdmFsaWRhdGlvbgAAAAIAAAABZQAAAAF0AwUAAAABdAMDCQAAAAAAAAIICAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAARheGFpCQAAAAAAAAIICAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQFAAAABHVzZG4HBgcDAwkAAAAAAAACCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAABGF4YWkJAAAAAAAAAggICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQFAAAABHVzZG4HBgcEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkBAAAACnZhbGlkYXRpb24AAAACBQAAAAFlBgYJAQAAAAp2YWxpZGF0aW9uAAAAAgUAAAABZQcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFhBQAAAAckbWF0Y2gwBwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAD3NlbmRlclB1YmxpY0tleVzb0m8=", "height": 2116496, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let senderPublicKey = base58'3N6SrT9EbHnsfabVmtgSDwPXw8tAVuZAcvJ' | |
4 | + | let axai = base58'AtR3c6X6q21VGFdtu73PspcCw1pERV4csVS97LHZBbSF' | |
5 | + | let usdn = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
6 | + | func validation (e,t) = if (t) | |
7 | + | then if (if ((e.buyOrder.assetPair.amountAsset == axai)) | |
8 | + | then (e.buyOrder.assetPair.priceAsset == usdn) | |
9 | + | else false) | |
10 | + | then true | |
11 | + | else false | |
12 | + | else if (if ((e.sellOrder.assetPair.amountAsset == axai)) | |
13 | + | then (e.sellOrder.assetPair.priceAsset == usdn) | |
14 | + | else false) | |
15 | + | then true | |
16 | + | else false | |
17 | + | ||
18 | + | match tx { | |
19 | + | case e: ExchangeTransaction => | |
20 | + | if (validation(e, true)) | |
21 | + | then true | |
22 | + | else validation(e, false) | |
23 | + | case t: TransferTransaction => | |
24 | + | sigVerify(tx.bodyBytes, tx.proofs[0], senderPublicKey) | |
25 | + | case a: SetScriptTransaction => | |
26 | + | false | |
27 | + | case _ => | |
28 | + | sigVerify(tx.bodyBytes, tx.proofs[0], senderPublicKey) | |
29 | + | } |
github/deemru/w8io/169f3d6 20.76 ms ◑