tx · Aa88nKSFaAaXb1Bg2GC2UDJ7bbaLjYqUUQzTxxroD7pQ
3MqUBUboZKK2jPJKPJb7ZSfBpnkfwwzjsLM: -1.00000000 Waves
2019.03.16 06:48 [538193] smart asset 3MqUBUboZKK2jPJKPJb7ZSfBpnkfwwzjsLM > SELF 0.00 Trade
{
"type": 15,
"id": "Aa88nKSFaAaXb1Bg2GC2UDJ7bbaLjYqUUQzTxxroD7pQ",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552708095845,
"version": 1,
"sender": "3MqUBUboZKK2jPJKPJb7ZSfBpnkfwwzjsLM",
"senderPublicKey": "EiDanEm9gthY3Md8gUvTzyEJFoZhQrTjHAbkdGpsfSff",
"proofs": [
"46HdUqb19Kgz2BjmGSExkqcpLGwj3BStatNUQLSTSzrao6X6HjVhuiAeFRkQEAjck8G1ckvbHY6dT7XzDJKmWxRQ"
],
"assetId": "9Au1sJgLpGYQYXbusuLEjNGh6pMRQdRsN7YVsaCNtJ4T",
"script": "base64:AgQAAAAERGF0YQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVBEKMiJm+AUz4Do8gH9FBqaZ6LJGHiIBygQAAAAFdmFsdWUJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAREYXRhAgAAAAV2YWx1ZQQAAAAHa2V5TmFtZQIAAAAFdmFsdWUEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBAAAAAN2YWwJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACCAUAAAACdHgAAAAGc2VuZGVyBQAAAAdrZXlOYW1lCQAAZgAAAAIFAAAABXZhbHVlBQAAAAN2YWwHEuCrtQ==",
"chainId": 84,
"height": 538193,
"spentComplexity": 0
}
View: original | compacted
Prev: GdpQYki2ZaUtwxQ3XGNtXqmXvKJZkcEt3mMf6Bp5yFTW
Next: none
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let Data = Address(base58'3MqUBUboZKK2jPJKPJb7ZSfBpnkfwwzjsLM') |
---|
4 | 4 | | let value = extract(getInteger(Data, "value")) |
---|
5 | | - | let am = value |
---|
6 | | - | if ((am > value)) |
---|
7 | | - | then match tx { |
---|
8 | | - | case _ => |
---|
9 | | - | true |
---|
10 | | - | } |
---|
11 | | - | else match tx { |
---|
12 | | - | case e: ExchangeTransaction => |
---|
13 | | - | false |
---|
14 | | - | case _ => |
---|
15 | | - | true |
---|
16 | | - | } |
---|
| 5 | + | let keyName = "value" |
---|
| 6 | + | match tx { |
---|
| 7 | + | case tx: DataTransaction => |
---|
| 8 | + | let val = extract(getInteger(tx.sender, keyName)) |
---|
| 9 | + | (value > val) |
---|
| 10 | + | case _ => |
---|
| 11 | + | false |
---|
| 12 | + | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let Data = Address(base58'3MqUBUboZKK2jPJKPJb7ZSfBpnkfwwzjsLM') |
---|
4 | 4 | | let value = extract(getInteger(Data, "value")) |
---|
5 | | - | let am = value |
---|
6 | | - | if ((am > value)) |
---|
7 | | - | then match tx { |
---|
8 | | - | case _ => |
---|
9 | | - | true |
---|
10 | | - | } |
---|
11 | | - | else match tx { |
---|
12 | | - | case e: ExchangeTransaction => |
---|
13 | | - | false |
---|
14 | | - | case _ => |
---|
15 | | - | true |
---|
16 | | - | } |
---|
| 5 | + | let keyName = "value" |
---|
| 6 | + | match tx { |
---|
| 7 | + | case tx: DataTransaction => |
---|
| 8 | + | let val = extract(getInteger(tx.sender, keyName)) |
---|
| 9 | + | (value > val) |
---|
| 10 | + | case _ => |
---|
| 11 | + | false |
---|
| 12 | + | } |
---|