tx · 5pD2pDKCmJMAA8PnVQHAQzANAXNyJPzcVMFAucj9Kkmb
3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc: -1.00000000 Waves
2019.03.14 17:21 [535896] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 oooo
{
"type": 15,
"id": "5pD2pDKCmJMAA8PnVQHAQzANAXNyJPzcVMFAucj9Kkmb",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552573279157,
"version": 1,
"sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc",
"senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T",
"proofs": [
"4X5HSAvTrxSxrt7g6LKft7TUP9LDHuQfsY6HE5Rmhpv6BuyBYRBseXHQ3V2vniUvLD6rrRkmBkv8JRC1C2vXcB2s"
],
"assetId": "6QXK7NxXhJtzvABLDKmzYH3V9NfedLAEjSb4Cnvk43wv",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAILPwEAAAACnN0YXJ0UHJpY2UAAAAAAACJVEAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAADwAAAAAAAAAA+gEAAAABHBhc3MAAAAAFO51IwAEAAAAA3ZhbAAAAAAAAIlUQAQAAAAHQVNpZ25lZAIAAAArV0hGWkwyc2VEemM0Y2dIRXk1alQ3TFN0dDV4cHF6dFZmQjU4VnhoaGk4VAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAABGRheXMJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAC3N0YXJ0SGVpZ2h0BQAAAAhpbnRlcnZhbAMJAAAAAAAAAgkAAlg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AAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAAAdBU2lnbmVkBgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAAAdBU2lnbmVkBgcJAAACAAAAAQIAAAAqVHJhbnNhY3Rpb24gaXMgbm90IGFsbG93ZWQgYnkgdG9rZW4tc2NyaXB017bmpg==",
"chainId": 84,
"height": 535896,
"spentComplexity": 0
}
View: original | compacted
Prev: 3qmWMmG8PJVK5RV9qWP5DSDvyfj7CVr1XnTeXy428B73
Next: 6xcfXsVzQif5KYdh7BriGHMduZK5bzszCmUbxWVK2XMc
Diff:
Old | New | | Differences |
---|
8 | 8 | | let val = 9000000 |
---|
9 | 9 | | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" |
---|
10 | 10 | | match tx { |
---|
11 | | - | case t: ExchangeTransaction => |
---|
| 11 | + | case e: ExchangeTransaction => |
---|
12 | 12 | | let days = ((height - startHeight) / interval) |
---|
13 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
| 13 | + | if ((toBase58String(e.senderPublicKey) == ASigned)) |
---|
14 | 14 | | then true |
---|
15 | | - | else if (if (if ((t.price >= (startPrice * (1 + (days * days))))) |
---|
16 | | - | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
---|
| 15 | + | else if (if (if ((e.price >= (startPrice * (1 + (days * days))))) |
---|
| 16 | + | then !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
17 | 17 | | else throw("001")) |
---|
18 | | - | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) |
---|
| 18 | + | then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp)) |
---|
19 | 19 | | else throw("24")) |
---|
20 | | - | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) |
---|
| 20 | + | then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp)) |
---|
21 | 21 | | else throw("25") |
---|
22 | 22 | | case t: TransferTransaction => |
---|
23 | 23 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let startHeight = 535804 |
---|
4 | 4 | | let startPrice = 9000000 |
---|
5 | 5 | | let interval = (24 * 60) |
---|
6 | 6 | | let exp = ((100 * 60) * 1000) |
---|
7 | 7 | | let pass = 89900000000 |
---|
8 | 8 | | let val = 9000000 |
---|
9 | 9 | | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" |
---|
10 | 10 | | match tx { |
---|
11 | | - | case t: ExchangeTransaction => |
---|
| 11 | + | case e: ExchangeTransaction => |
---|
12 | 12 | | let days = ((height - startHeight) / interval) |
---|
13 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
| 13 | + | if ((toBase58String(e.senderPublicKey) == ASigned)) |
---|
14 | 14 | | then true |
---|
15 | | - | else if (if (if ((t.price >= (startPrice * (1 + (days * days))))) |
---|
16 | | - | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
---|
| 15 | + | else if (if (if ((e.price >= (startPrice * (1 + (days * days))))) |
---|
| 16 | + | then !(isDefined(e.sellOrder.assetPair.priceAsset)) |
---|
17 | 17 | | else throw("001")) |
---|
18 | | - | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) |
---|
| 18 | + | then (exp >= (e.sellOrder.expiration - e.sellOrder.timestamp)) |
---|
19 | 19 | | else throw("24")) |
---|
20 | | - | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) |
---|
| 20 | + | then (exp >= (e.buyOrder.expiration - e.buyOrder.timestamp)) |
---|
21 | 21 | | else throw("25") |
---|
22 | 22 | | case t: TransferTransaction => |
---|
23 | 23 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
24 | 24 | | then true |
---|
25 | 25 | | else false |
---|
26 | 26 | | case t: ReissueTransaction => |
---|
27 | 27 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
28 | 28 | | then true |
---|
29 | 29 | | else false |
---|
30 | 30 | | case t: BurnTransaction => |
---|
31 | 31 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
32 | 32 | | then true |
---|
33 | 33 | | else false |
---|
34 | 34 | | case t: MassTransferTransaction => |
---|
35 | 35 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
36 | 36 | | then true |
---|
37 | 37 | | else false |
---|
38 | 38 | | case t: SetAssetScriptTransaction => |
---|
39 | 39 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
40 | 40 | | then true |
---|
41 | 41 | | else false |
---|
42 | 42 | | case _ => |
---|
43 | 43 | | throw("Transaction is not allowed by token-script") |
---|
44 | 44 | | } |
---|