tx · 3mhR6u3tYuPZuD6FPQTL4iKX2Zqx8ZXKGWNHT7HPQY8c
3N1RMHPgVLJ8cQgaCvMECsxpbiiNc6FRSV9: -0.00500000 Waves
2022.06.28 19:56 [2116560] smart account 3N1RMHPgVLJ8cQgaCvMECsxpbiiNc6FRSV9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "3mhR6u3tYuPZuD6FPQTL4iKX2Zqx8ZXKGWNHT7HPQY8c",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1656435463700,
"version": 2,
"chainId": 84,
"sender": "3N1RMHPgVLJ8cQgaCvMECsxpbiiNc6FRSV9",
"senderPublicKey": "HyQyr9ohqWGx1aM8r8nkytLCQUUfzUwpVaQ6SmecF7Fm",
"proofs": [
"3PQusrJujMnALHR3RJWHq7Rw5DYRFMZ5owsdHNKSEdDsST6BuLbXWR7B12BMBqSWdnT2oMyHqNvzFUfzRRbG7sgH"
],
"script": "base64:BQQAAAAOYWRkcmVzc1JlY2VpdmUJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTXCh8/6kbGhh9JjyA5IBZCtwM/PGAEKMQEAAAABGF4YWkBAAAAIJLk/cQHt6P0xjB/KwxmM3akn6gNIW9OPmn12N5MtB3QBAAAAAR1c2RuAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAoBAAAABXZhbGlkAAAAAQAAAAFlAwMJAAAAAAAAAggICAUAAAABZQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAABGF4YWkJAAAAAAAAAggICAUAAAABZQAAAAhidXlPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAUAAAAEdXNkbgcGAwMJAAAAAAAAAggICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAARheGFpCQAAAAAAAAIICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BQAAAAR1c2RuBwYHBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAkBAAAABXZhbGlkAAAAAQUAAAABZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWEFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0dAUAAAAHJG1hdGNoMAkAAAAAAAACCAUAAAACdHQAAAAJcmVjaXBpZW50BQAAAA5hZGRyZXNzUmVjZWl2ZQfzly+M",
"height": 2116560,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BMvY9rrRFkpC2QBY9LgVzPgxBoDF1dyZw2dfxopnCk6x
Next: AJzMTRUhTyT5eGBnCXJ9JCryaWwiCG1PTxx9Sg1GXBHB
Diff:
Old | New | | Differences |
---|
3 | 3 | | let addressReceive = Address(base58'3N9X7BTWBUSk6KXAGKbHsxeHfSgMaAEYVdd') |
---|
4 | 4 | | let axai = base58'AtR3c6X6q21VGFdtu73PspcCw1pERV4csVS97LHZBbSF' |
---|
5 | 5 | | let usdn = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' |
---|
| 6 | + | func valid (e) = if (if ((e.buyOrder.assetPair.amountAsset == axai)) |
---|
| 7 | + | then (e.buyOrder.assetPair.priceAsset == usdn) |
---|
| 8 | + | else false) |
---|
| 9 | + | then true |
---|
| 10 | + | else if (if ((e.sellOrder.assetPair.amountAsset == axai)) |
---|
| 11 | + | then (e.sellOrder.assetPair.priceAsset == usdn) |
---|
| 12 | + | else false) |
---|
| 13 | + | then true |
---|
| 14 | + | else false |
---|
| 15 | + | |
---|
6 | 16 | | match tx { |
---|
7 | 17 | | case e: ExchangeTransaction => |
---|
8 | | - | if ((e.buyOrder.assetPair.amountAsset == axai)) |
---|
9 | | - | then true |
---|
10 | | - | else (e.buyOrder.assetPair.priceAsset == usdn) |
---|
| 18 | + | valid(e) |
---|
| 19 | + | case a: SetScriptTransaction => |
---|
| 20 | + | true |
---|
11 | 21 | | case tt: TransferTransaction => |
---|
12 | 22 | | (tt.recipient == addressReceive) |
---|
13 | 23 | | case _ => |
---|
14 | | - | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 24 | + | false |
---|
15 | 25 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let addressReceive = Address(base58'3N9X7BTWBUSk6KXAGKbHsxeHfSgMaAEYVdd') |
---|
4 | 4 | | let axai = base58'AtR3c6X6q21VGFdtu73PspcCw1pERV4csVS97LHZBbSF' |
---|
5 | 5 | | let usdn = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' |
---|
| 6 | + | func valid (e) = if (if ((e.buyOrder.assetPair.amountAsset == axai)) |
---|
| 7 | + | then (e.buyOrder.assetPair.priceAsset == usdn) |
---|
| 8 | + | else false) |
---|
| 9 | + | then true |
---|
| 10 | + | else if (if ((e.sellOrder.assetPair.amountAsset == axai)) |
---|
| 11 | + | then (e.sellOrder.assetPair.priceAsset == usdn) |
---|
| 12 | + | else false) |
---|
| 13 | + | then true |
---|
| 14 | + | else false |
---|
| 15 | + | |
---|
6 | 16 | | match tx { |
---|
7 | 17 | | case e: ExchangeTransaction => |
---|
8 | | - | if ((e.buyOrder.assetPair.amountAsset == axai)) |
---|
9 | | - | then true |
---|
10 | | - | else (e.buyOrder.assetPair.priceAsset == usdn) |
---|
| 18 | + | valid(e) |
---|
| 19 | + | case a: SetScriptTransaction => |
---|
| 20 | + | true |
---|
11 | 21 | | case tt: TransferTransaction => |
---|
12 | 22 | | (tt.recipient == addressReceive) |
---|
13 | 23 | | case _ => |
---|
14 | | - | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 24 | + | false |
---|
15 | 25 | | } |
---|