tx · 5zT3DSPH7U2nb2MRfNcQfdvQnz7NXJKJNnfAyRAHH9H8
3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA: -1.00000000 Waves
2019.03.22 16:09 [547563] smart asset 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA > SELF 0 AAA111
{
"type": 15,
"id": "5zT3DSPH7U2nb2MRfNcQfdvQnz7NXJKJNnfAyRAHH9H8",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553260153337,
"version": 1,
"sender": "3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA",
"senderPublicKey": "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob",
"proofs": [
"4SQZ5imCEitgdTKzhfLiqK61HuHpaRpSSTxJ4oKXaQakiNZLnt6cK1GoVM2hhQFr5TmVVdAGPbaDkhZ97hKta8s"
],
"assetId": "2wBefKLN3DBkGtrW6WMN1mgMinYXEFuGhxM6vTQGLDwK",
"script": "base64:AgQAAAAGc3lzdGVtAgAAACw3emk0VjQyYzQxN2ZLblcxdWJ2R3Z3M1JSc2FhUWZHQ0Q4dzhSSENGNDNvYgQAAAADYWR2AgAAACxEaDdzdmtSUGVzaXAyRVBVNGdMaWtqQ3JqS1FRNFJxRHA2eXVoNlVhbko4TAQAAAAHYXNzZXRJZAIAAAAsMndCZWZLTE4zREJrR3RyVzZXTU4xbWdNaW5ZWEVGdUdoeE02dlRRR0xEd0sEAAAADG1pbmltdW1QcmljZQAAAAAABfXhAAQAAAALc3RhcnRIZWlnaHQAAAAAAAAWFIEEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwAAAAAAAAAADwEAAAACGludGVydmFsCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAGAAAAAAAAAAAPAAAAAAAAAAAPAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAA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aWNLZXkFAAAABnN5c3RlbQYJAAAAAAAAAgkAAlgAAAABCAUAAAABZQAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAA2FkdgYHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDADCQAAAAAAAAIJAAJYAAAAAQgFAAAAAWUAAAAPc2VuZGVyUHVibGljS2V5BQAAAAZzeXN0ZW0GBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAFlAAAAD3NlbmRlclB1YmxpY0tleQUAAAAGc3lzdGVtBgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwMJAAAAAAAAAgkAAlgAAAABCAUAAAABZQAAAA9zZW5kZXJQdWJsaWNLZXkFAAAABnN5c3RlbQYJAAAAAAAAAgkAAlgAAAABCAUAAAABZQAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAA2FkdgYHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAFlAAAAD3NlbmRlclB1YmxpY0tleQUAAAAGc3lzdGVtBgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAGCQAAAgAAAAECAAAAFlByb2hpYml0ZWQgYnkgY29udHJhY3TTOa0W",
"chainId": 84,
"height": 547563,
"spentComplexity": 0
}
View: original | compacted
Prev: ALuRGD5rKLfyKze5sW3oyJreF7XDmczCmVY26Q86wNGj
Next: none
Diff:
Old | New | | Differences |
---|
8 | 8 | | let exp = ((24 * 60) * 60) |
---|
9 | 9 | | let interval = ((24 * 60) * 60) |
---|
10 | 10 | | match tx { |
---|
11 | | - | case e: TransferTransaction => |
---|
| 11 | + | case e: DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction => |
---|
12 | 12 | | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), fromBase58String(assetId)) |
---|
13 | 13 | | throw(toString(balance1)) |
---|
| 14 | + | case e: TransferTransaction => |
---|
| 15 | + | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
| 16 | + | then true |
---|
| 17 | + | else (toBase58String(e.senderPublicKey) == adv)) |
---|
| 18 | + | then true |
---|
| 19 | + | else false |
---|
14 | 20 | | case e: ReissueTransaction => |
---|
15 | 21 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
16 | 22 | | then true |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let system = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" |
---|
4 | 4 | | let adv = "Dh7svkRPesip2EPU4gLikjCrjKQQ4RqDp6yuh6UanJ8L" |
---|
5 | 5 | | let assetId = "2wBefKLN3DBkGtrW6WMN1mgMinYXEFuGhxM6vTQGLDwK" |
---|
6 | 6 | | let minimumPrice = 100000000 |
---|
7 | 7 | | let startHeight = 1447041 |
---|
8 | 8 | | let exp = ((24 * 60) * 60) |
---|
9 | 9 | | let interval = ((24 * 60) * 60) |
---|
10 | 10 | | match tx { |
---|
11 | | - | case e: TransferTransaction => |
---|
| 11 | + | case e: DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction => |
---|
12 | 12 | | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), fromBase58String(assetId)) |
---|
13 | 13 | | throw(toString(balance1)) |
---|
| 14 | + | case e: TransferTransaction => |
---|
| 15 | + | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
| 16 | + | then true |
---|
| 17 | + | else (toBase58String(e.senderPublicKey) == adv)) |
---|
| 18 | + | then true |
---|
| 19 | + | else false |
---|
14 | 20 | | case e: ReissueTransaction => |
---|
15 | 21 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
16 | 22 | | then true |
---|
17 | 23 | | else false |
---|
18 | 24 | | case e: BurnTransaction => |
---|
19 | 25 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
20 | 26 | | then true |
---|
21 | 27 | | else false |
---|
22 | 28 | | case e: MassTransferTransaction => |
---|
23 | 29 | | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
24 | 30 | | then true |
---|
25 | 31 | | else (toBase58String(e.senderPublicKey) == adv)) |
---|
26 | 32 | | then true |
---|
27 | 33 | | else false |
---|
28 | 34 | | case e: SetAssetScriptTransaction => |
---|
29 | 35 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
30 | 36 | | then true |
---|
31 | 37 | | else false |
---|
32 | 38 | | case e: ExchangeTransaction => |
---|
33 | 39 | | true |
---|
34 | 40 | | case _ => |
---|
35 | 41 | | throw("Prohibited by contract") |
---|
36 | 42 | | } |
---|