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