tx · 6tZNGhHs5BNNn49BJr9NVdf9qnQWUd3TmWnvFhUbrdDi
3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA: -1.00000000 Waves
2019.03.24 11:48 [550209] smart asset 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA > SELF 0 A001
{
"type": 15,
"id": "6tZNGhHs5BNNn49BJr9NVdf9qnQWUd3TmWnvFhUbrdDi",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553417322982,
"version": 1,
"sender": "3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA",
"senderPublicKey": "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob",
"proofs": [
"oEasnTYHQzbWWwaBufQvZP9Yq63SviGG7kjQiXj2YUHcAn4ufjyXo1GZTq1jiaRKztbtz5jH5Lhx1rZVVerKAu3"
],
"assetId": "6xUri27gR2LR26jXyWSn4FF5YQRNHZt9ouBb9gfQfGsx",
"script": "base64:AgQAAAAGc3lzdGVtAgAAACw3emk0VjQyYzQxN2ZLblcxdWJ2R3Z3M1JSc2FhUWZHQ0Q4dzhSSENGNDNvYgQAAAADYWR2AgAAACw3emk0VjQyYzQxN2ZLblcxdWJ2R3Z3M1JSc2FhUWZHQ0Q4dzhSSENGNDNvYgQAAAAEdGVjaAIAAAAsN3ppNFY0MmM0MTdmS25XMXVidkd2dzNSUnNhYVFmR0NEOHc4UkhDRjQzb2IEAAAACnN0YXJ0UHJpY2UAAAAAAAX14QAEAAAACmRlbHRhUHJpY2UAAAAAAAAPQkAEAAAAC3N0YXJ0SGVpZ2h0AAAAAAAACGUkBAAAAAtkZWx0YUhlaWdodAAAAAAAAAAAAwQAAAAJdGltZU9yZGVyCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAABQAAAAAAAAAAPAAAAAAAAAAD6AQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRt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AWUFAAAAByRtYXRjaDAEAAAADG1pbmltdW1QcmljZQkAAGQAAAACBQAAAApzdGFydFByaWNlCQAAaAAAAAIJAABlAAAAAgkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAALc3RhcnRIZWlnaHQFAAAAC2RlbHRhSGVpZ2h0CQAAagAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAtzdGFydEhlaWdodAUAAAALZGVsdGFIZWlnaHQFAAAACmRlbHRhUHJpY2UJAAACAAAAAQkAASwAAAACAgAAABdNaW5pbXVtIG9yZGVyIHByaWNlIGlzIAkAAaQAAAABBQAAAAxtaW5pbXVtUHJpY2UJAAACAAAAAQIAAAAWUHJvaGliaXRlZCBieSBjb250cmFjdEylN18=",
"chainId": 84,
"height": 550209,
"spentComplexity": 0
}
View: original | compacted
Prev: EtZuJ2ZTbvbb9KZYzcirD3Zb2FzAyz2HCogh34eAYEsS
Next: 5HQFUnNJ7hsPuDu2GKHZzhtbRBh16subLig5dqE548RH
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let system = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" |
---|
4 | | - | let adv = "Dh7svkRPesip2EPU4gLikjCrjKQQ4RqDp6yuh6UanJ8L" |
---|
5 | | - | let tech = "6PwYYxscG2CdPgVaoXGfgkgmTjVtjiexwWtsxREvp66F" |
---|
| 4 | + | let adv = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" |
---|
| 5 | + | let tech = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" |
---|
6 | 6 | | let startPrice = 100000000 |
---|
7 | 7 | | let deltaPrice = 1000000 |
---|
8 | | - | let startHeight = 549047 |
---|
| 8 | + | let startHeight = 550180 |
---|
9 | 9 | | let deltaHeight = 3 |
---|
10 | | - | let timeOrder = ((60 * 60) * 1000) |
---|
| 10 | + | let timeOrder = ((5 * 60) * 1000) |
---|
11 | 11 | | match tx { |
---|
12 | 12 | | case e: TransferTransaction => |
---|
13 | | - | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
| 13 | + | if (if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
14 | 14 | | then true |
---|
15 | 15 | | else (toBase58String(e.senderPublicKey) == adv)) |
---|
| 16 | + | then true |
---|
| 17 | + | else (toBase58String(e.senderPublicKey) == tech)) |
---|
16 | 18 | | then true |
---|
17 | 19 | | else false |
---|
18 | 20 | | case e: ReissueTransaction => |
---|
|
24 | 26 | | then true |
---|
25 | 27 | | else false |
---|
26 | 28 | | case e: MassTransferTransaction => |
---|
27 | | - | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
| 29 | + | if (if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
28 | 30 | | then true |
---|
29 | 31 | | else (toBase58String(e.senderPublicKey) == adv)) |
---|
| 32 | + | then true |
---|
| 33 | + | else (toBase58String(e.senderPublicKey) == tech)) |
---|
30 | 34 | | then true |
---|
31 | 35 | | else false |
---|
32 | 36 | | case e: SetAssetScriptTransaction => |
---|
|
35 | 39 | | else false |
---|
36 | 40 | | case e: ExchangeTransaction => |
---|
37 | 41 | | let minimumPrice = (startPrice + ((((height - startHeight) / deltaHeight) - ((height - startHeight) % deltaHeight)) * deltaPrice)) |
---|
38 | | - | if ((e.price >= minimumPrice)) |
---|
39 | | - | then { |
---|
40 | | - | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) |
---|
41 | | - | if (buy) |
---|
42 | | - | then if ((timeOrder >= (e.buyOrder.expiration - e.buyOrder.timestamp))) |
---|
43 | | - | then true |
---|
44 | | - | else throw("TIME BUY") |
---|
45 | | - | else if ((timeOrder >= (e.sellOrder.expiration - e.sellOrder.timestamp))) |
---|
46 | | - | then true |
---|
47 | | - | else throw("TIME SELL") |
---|
48 | | - | } |
---|
49 | | - | else throw(("Minimum order price is " + toString(minimumPrice))) |
---|
| 42 | + | throw(("Minimum order price is " + toString(minimumPrice))) |
---|
50 | 43 | | case _ => |
---|
51 | 44 | | throw("Prohibited by contract") |
---|
52 | 45 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let system = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" |
---|
4 | | - | let adv = "Dh7svkRPesip2EPU4gLikjCrjKQQ4RqDp6yuh6UanJ8L" |
---|
5 | | - | let tech = "6PwYYxscG2CdPgVaoXGfgkgmTjVtjiexwWtsxREvp66F" |
---|
| 4 | + | let adv = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" |
---|
| 5 | + | let tech = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" |
---|
6 | 6 | | let startPrice = 100000000 |
---|
7 | 7 | | let deltaPrice = 1000000 |
---|
8 | | - | let startHeight = 549047 |
---|
| 8 | + | let startHeight = 550180 |
---|
9 | 9 | | let deltaHeight = 3 |
---|
10 | | - | let timeOrder = ((60 * 60) * 1000) |
---|
| 10 | + | let timeOrder = ((5 * 60) * 1000) |
---|
11 | 11 | | match tx { |
---|
12 | 12 | | case e: TransferTransaction => |
---|
13 | | - | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
| 13 | + | if (if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
14 | 14 | | then true |
---|
15 | 15 | | else (toBase58String(e.senderPublicKey) == adv)) |
---|
| 16 | + | then true |
---|
| 17 | + | else (toBase58String(e.senderPublicKey) == tech)) |
---|
16 | 18 | | then true |
---|
17 | 19 | | else false |
---|
18 | 20 | | case e: ReissueTransaction => |
---|
19 | 21 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
20 | 22 | | then true |
---|
21 | 23 | | else false |
---|
22 | 24 | | case e: BurnTransaction => |
---|
23 | 25 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
24 | 26 | | then true |
---|
25 | 27 | | else false |
---|
26 | 28 | | case e: MassTransferTransaction => |
---|
27 | | - | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
| 29 | + | if (if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
28 | 30 | | then true |
---|
29 | 31 | | else (toBase58String(e.senderPublicKey) == adv)) |
---|
| 32 | + | then true |
---|
| 33 | + | else (toBase58String(e.senderPublicKey) == tech)) |
---|
30 | 34 | | then true |
---|
31 | 35 | | else false |
---|
32 | 36 | | case e: SetAssetScriptTransaction => |
---|
33 | 37 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
34 | 38 | | then true |
---|
35 | 39 | | else false |
---|
36 | 40 | | case e: ExchangeTransaction => |
---|
37 | 41 | | let minimumPrice = (startPrice + ((((height - startHeight) / deltaHeight) - ((height - startHeight) % deltaHeight)) * deltaPrice)) |
---|
38 | | - | if ((e.price >= minimumPrice)) |
---|
39 | | - | then { |
---|
40 | | - | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) |
---|
41 | | - | if (buy) |
---|
42 | | - | then if ((timeOrder >= (e.buyOrder.expiration - e.buyOrder.timestamp))) |
---|
43 | | - | then true |
---|
44 | | - | else throw("TIME BUY") |
---|
45 | | - | else if ((timeOrder >= (e.sellOrder.expiration - e.sellOrder.timestamp))) |
---|
46 | | - | then true |
---|
47 | | - | else throw("TIME SELL") |
---|
48 | | - | } |
---|
49 | | - | else throw(("Minimum order price is " + toString(minimumPrice))) |
---|
| 42 | + | throw(("Minimum order price is " + toString(minimumPrice))) |
---|
50 | 43 | | case _ => |
---|
51 | 44 | | throw("Prohibited by contract") |
---|
52 | 45 | | } |
---|