tx · 4CvexnntgHLeo5bTwdnZQ1AnEUBzWDmVW7XAvhYL7YnA
3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc: -1.00000000 Waves
2019.03.14 15:28 [535789] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 wwww
{
"type": 15,
"id": "4CvexnntgHLeo5bTwdnZQ1AnEUBzWDmVW7XAvhYL7YnA",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1552566484269,
"version": 1,
"sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc",
"senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T",
"proofs": [
"yznxnNjt8n6BunEVKqNTrNWsc4T5MtTvvcmoY4RPvHdZwfW3CqFtzM7EhZBqhLNNauydBGMc3s2TWecUZiEoSZf"
],
"assetId": "7oLX12jK33FqBoeqipBNbbVwdXNjDffp1SZvNf5MsSMP",
"script": "base64:AQQAAAALc3RhcnRIZWlnaHQAAAAAAAAU/UUEAAAACnN0YXJ0UHJpY2UAAAAAAAABhqAEAAAACGludGVydmFsCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAADwAAAAAAAAAADwAAAAAAAAAA+gEAAAABHBhc3MAAAAAFO51IwAEAAAAA3ZhbAAAAAAAAIlUQAQAAAAHQVNpZ25lZAIAAAArV0hGWkwyc2VEemM0Y2dIRXk1alQ3TFN0dDV4cHF6dFZmQjU4VnhoaGk4VAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BQAAAAdBU2lnbmVkBgQAAAAEZGF5cwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAALc3RhcnRIZWlnaHQFAAAACGludGVydmFsAwMDCQAAZwAAAAIIBQAAAAF0AAAABXByaWNlCQAAaAAAAAIFAAAACnN0YXJ0UHJpY2UJAABkAAAAAgAAAAAAAAAAAQkAAGgAAAACBQAAAARkYXlzBQAAAARkYXlzCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAF0AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAcJAABnAAAAAgUAAAADZXhwCQAAZQAAAAIICAUAAAABdAAAAAlzZWxsT3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAF0AAAACXNlbGxPcmRlcgAAAAl0aW1lc3RhbXAHCQAAZwAAAAIFAAAAA2V4cAkAAGUAAAACCAgFAAAAAXQAAAAIYnV5T3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAF0AAAACGJ1eU9yZGVyAAAACXRpbWVzdGFtcAcHCNfSKA==",
"chainId": 84,
"height": 535789,
"spentComplexity": 0
}
View: original | compacted
Prev: DCJtxS8X3YC3JAhMxwXym9ySpkeCE4vk9zADjVkb1ucr
Next: none
Diff:
Old | New | | Differences |
---|
19 | 19 | | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) |
---|
20 | 20 | | else false) |
---|
21 | 21 | | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) |
---|
22 | | - | else { |
---|
23 | | - | let buy = sigVerify(t.buyOrder.bodyBytes, t.buyOrder.proofs[0], t.buyOrder.senderPublicKey) |
---|
24 | | - | if (buy) |
---|
25 | | - | then true |
---|
26 | | - | else if ((t.amount >= pass)) |
---|
27 | | - | then if ((t.price > val)) |
---|
28 | | - | then true |
---|
29 | | - | else throw("price => 0.09") |
---|
30 | | - | else throw("make buy => 369") |
---|
31 | | - | } |
---|
| 22 | + | else false |
---|
32 | 23 | | } |
---|
33 | | - | case t: TransferTransaction => |
---|
34 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
35 | | - | then true |
---|
36 | | - | else false |
---|
37 | | - | case t: ReissueTransaction => |
---|
38 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
39 | | - | then true |
---|
40 | | - | else false |
---|
41 | | - | case t: BurnTransaction => |
---|
42 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
43 | | - | then true |
---|
44 | | - | else false |
---|
45 | | - | case t: MassTransferTransaction => |
---|
46 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
47 | | - | then true |
---|
48 | | - | else false |
---|
49 | | - | case t: SetAssetScriptTransaction => |
---|
50 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
51 | | - | then true |
---|
52 | | - | else false |
---|
53 | 24 | | case _ => |
---|
54 | | - | throw("Transaction is not allowed by token-script") |
---|
| 25 | + | false |
---|
55 | 26 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let startHeight = 1375557 |
---|
4 | 4 | | let startPrice = 100000 |
---|
5 | 5 | | let interval = (24 * 60) |
---|
6 | 6 | | let exp = ((60 * 60) * 1000) |
---|
7 | 7 | | let pass = 89900000000 |
---|
8 | 8 | | let val = 9000000 |
---|
9 | 9 | | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" |
---|
10 | 10 | | match tx { |
---|
11 | 11 | | case t: ExchangeTransaction => |
---|
12 | 12 | | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else { |
---|
15 | 15 | | let days = ((height - startHeight) / interval) |
---|
16 | 16 | | if (if (if ((t.price >= (startPrice * (1 + (days * days))))) |
---|
17 | 17 | | then !(isDefined(t.sellOrder.assetPair.priceAsset)) |
---|
18 | 18 | | else false) |
---|
19 | 19 | | then (exp >= (t.sellOrder.expiration - t.sellOrder.timestamp)) |
---|
20 | 20 | | else false) |
---|
21 | 21 | | then (exp >= (t.buyOrder.expiration - t.buyOrder.timestamp)) |
---|
22 | | - | else { |
---|
23 | | - | let buy = sigVerify(t.buyOrder.bodyBytes, t.buyOrder.proofs[0], t.buyOrder.senderPublicKey) |
---|
24 | | - | if (buy) |
---|
25 | | - | then true |
---|
26 | | - | else if ((t.amount >= pass)) |
---|
27 | | - | then if ((t.price > val)) |
---|
28 | | - | then true |
---|
29 | | - | else throw("price => 0.09") |
---|
30 | | - | else throw("make buy => 369") |
---|
31 | | - | } |
---|
| 22 | + | else false |
---|
32 | 23 | | } |
---|
33 | | - | case t: TransferTransaction => |
---|
34 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
35 | | - | then true |
---|
36 | | - | else false |
---|
37 | | - | case t: ReissueTransaction => |
---|
38 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
39 | | - | then true |
---|
40 | | - | else false |
---|
41 | | - | case t: BurnTransaction => |
---|
42 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
43 | | - | then true |
---|
44 | | - | else false |
---|
45 | | - | case t: MassTransferTransaction => |
---|
46 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
47 | | - | then true |
---|
48 | | - | else false |
---|
49 | | - | case t: SetAssetScriptTransaction => |
---|
50 | | - | if ((toBase58String(t.senderPublicKey) == ASigned)) |
---|
51 | | - | then true |
---|
52 | | - | else false |
---|
53 | 24 | | case _ => |
---|
54 | | - | throw("Transaction is not allowed by token-script") |
---|
| 25 | + | false |
---|
55 | 26 | | } |
---|