tx · 5qAFkEYUEsqBzndkJgMaamenLDLfxvk2Ms3jcDHK9iD1
3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb: -1.00000000 Waves
2019.03.17 14:19 [540127] smart asset 3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb > SELF 0.00000000 ZAraa
{
"type": 15,
"id": "5qAFkEYUEsqBzndkJgMaamenLDLfxvk2Ms3jcDHK9iD1",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552821603306,
"version": 1,
"sender": "3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb",
"senderPublicKey": "6XtTAMMi9snEs1mN1TBpR3npxA2R16FMxneyWXMZdMdf",
"proofs": [
"SUChReVfXDPbCr99EWnmSQhG5rksregF8f94BCrjPvc5SEnzBq282grEsqSagiSNs4jHECjRZNzivT2ZDo1cyZp"
],
"assetId": "6uTUhCBEKUcWVxKz8sHJ2oh616PmmGPMFV1cr2Hx9Ggu",
"script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUn3ENnb2h8+cM5MoAZuZG+9HctthQtzPqBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAABHNlbGwJAAH0AAAAAwgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5BAAAAANidXkJAAH0AAAAAwgIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAJ0eAAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAACdHgAAAAIYnV5T3JkZXIAAA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gdGhpcyBhc3NldAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGBxHNzDE=",
"chainId": 84,
"height": 540127,
"spentComplexity": 0
}
View: original | compacted
Prev: DY1TTfFDr4bshviDwZUZsBwzb8xGZnedXcjHDB8Y7Hh3
Next: 2otMNLv5yW1dys7T8D3bvYTbvtWSCbBZrxbKWSZPJJDX
Diff:
Old | New | | Differences |
---|
10 | 10 | | let sellOrderSenderCategory = getString(issuer, sellOrderSender) |
---|
11 | 11 | | let buyOrderSenderCategory = getString(issuer, buyOrderSender) |
---|
12 | 12 | | let am = 6000000000 |
---|
13 | | - | if (sell) |
---|
| 13 | + | if (if (sell) |
---|
14 | 14 | | then if ((am > tx.sellOrder.amount)) |
---|
15 | 15 | | then throw("Min sell ammount = 60") |
---|
16 | 16 | | else true |
---|
17 | | - | else false |
---|
| 17 | + | else false) |
---|
| 18 | + | then true |
---|
| 19 | + | else if (buy) |
---|
| 20 | + | then if ((am > tx.buyOrder.amount)) |
---|
| 21 | + | then throw("Min sell ammount = 60") |
---|
| 22 | + | else true |
---|
| 23 | + | else false |
---|
18 | 24 | | case tx: MassTransferTransaction => |
---|
19 | 25 | | if ((tx.sender == issuer)) |
---|
20 | 26 | | then true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3N4T8eVemVK3f4E8KZgbwvBpk8csem2bFyb') |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case tx: ExchangeTransaction => |
---|
6 | 6 | | let sell = sigVerify(tx.sellOrder.bodyBytes, tx.sellOrder.proofs[0], tx.sellOrder.senderPublicKey) |
---|
7 | 7 | | let buy = sigVerify(tx.buyOrder.bodyBytes, tx.buyOrder.proofs[0], tx.buyOrder.senderPublicKey) |
---|
8 | 8 | | let sellOrderSender = toBase58String(tx.sellOrder.sender.bytes) |
---|
9 | 9 | | let buyOrderSender = toBase58String(tx.sellOrder.sender.bytes) |
---|
10 | 10 | | let sellOrderSenderCategory = getString(issuer, sellOrderSender) |
---|
11 | 11 | | let buyOrderSenderCategory = getString(issuer, buyOrderSender) |
---|
12 | 12 | | let am = 6000000000 |
---|
13 | | - | if (sell) |
---|
| 13 | + | if (if (sell) |
---|
14 | 14 | | then if ((am > tx.sellOrder.amount)) |
---|
15 | 15 | | then throw("Min sell ammount = 60") |
---|
16 | 16 | | else true |
---|
17 | | - | else false |
---|
| 17 | + | else false) |
---|
| 18 | + | then true |
---|
| 19 | + | else if (buy) |
---|
| 20 | + | then if ((am > tx.buyOrder.amount)) |
---|
| 21 | + | then throw("Min sell ammount = 60") |
---|
| 22 | + | else true |
---|
| 23 | + | else false |
---|
18 | 24 | | case tx: MassTransferTransaction => |
---|
19 | 25 | | if ((tx.sender == issuer)) |
---|
20 | 26 | | then true |
---|
21 | 27 | | else throw("You cannot send this asset via MassTransferTransaction") |
---|
22 | 28 | | case tx: BurnTransaction => |
---|
23 | 29 | | if ((tx.sender == issuer)) |
---|
24 | 30 | | then true |
---|
25 | 31 | | else throw("You cannot burn this asset") |
---|
26 | 32 | | case tx: ReissueTransaction|SetAssetScriptTransaction => |
---|
27 | 33 | | true |
---|
28 | 34 | | case _ => |
---|
29 | 35 | | false |
---|
30 | 36 | | } |
---|