tx · ALuRGD5rKLfyKze5sW3oyJreF7XDmczCmVY26Q86wNGj
3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA: -1.00000000 Waves
2019.03.22 16:02 [547556] smart asset 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA > SELF 0 AAA111
{
"type": 15,
"id": "ALuRGD5rKLfyKze5sW3oyJreF7XDmczCmVY26Q86wNGj",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1553259752778,
"version": 1,
"sender": "3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA",
"senderPublicKey": "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob",
"proofs": [
"5JgoBdAvm6SiZ6znjUeBRryxtYRFjKEKVKWy6Xgf7utXt9ZwbHWZ6fvpq6vaLvk8GN9EomMQUY3qkuWo5MCNvrS1"
],
"assetId": "2wBefKLN3DBkGtrW6WMN1mgMinYXEFuGhxM6vTQGLDwK",
"script": "base64:AgQAAAAGc3lzdGVtAgAAACw3emk0VjQyYzQxN2ZLblcxdWJ2R3Z3M1JSc2FhUWZHQ0Q4dzhSSENGNDNvYgQAAAADYWR2AgAAACxEaDdzdmtSUGVzaXAyRVBVNGdMaWtqQ3JqS1FRNFJxRHA2eXVoNlVhbko4TAQAAAAHYXNzZXRJZAIAAAAsMndCZWZLTE4zREJrR3RyVzZXTU4xbWdNaW5ZWEVGdUdoeE02dlRRR0xEd0sEAAAADG1pbmltdW1QcmljZQAAAAAABfXhAAQAAAALc3RhcnRIZWlnaHQAAAAAAAAWFIEEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwAAAAAAAAAADwEAAAACGludGVydmFsCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAGAAAAAAAAAAAPAAAAAAAAAAAPAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYX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1paLHD1ecUPKcB9Q5SHdx9Nq7VcYG6qDMpD1gyLzQ3R
Next: 5zT3DSPH7U2nb2MRfNcQfdvQnz7NXJKJNnfAyRAHH9H8
Diff:
Old | New | | Differences |
---|
9 | 9 | | let interval = ((24 * 60) * 60) |
---|
10 | 10 | | match tx { |
---|
11 | 11 | | case e: TransferTransaction => |
---|
12 | | - | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
13 | | - | then true |
---|
14 | | - | else (toBase58String(e.senderPublicKey) == adv)) |
---|
15 | | - | then true |
---|
16 | | - | else false |
---|
| 12 | + | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), fromBase58String(assetId)) |
---|
| 13 | + | throw(toString(balance1)) |
---|
17 | 14 | | case e: ReissueTransaction => |
---|
18 | 15 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
19 | 16 | | then true |
---|
|
33 | 30 | | then true |
---|
34 | 31 | | else false |
---|
35 | 32 | | case e: ExchangeTransaction => |
---|
36 | | - | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), fromBase58String(assetId)) |
---|
37 | | - | throw(toString(balance1)) |
---|
| 33 | + | true |
---|
38 | 34 | | case _ => |
---|
39 | 35 | | throw("Prohibited by contract") |
---|
40 | 36 | | } |
---|
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 | 11 | | case e: TransferTransaction => |
---|
12 | | - | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
13 | | - | then true |
---|
14 | | - | else (toBase58String(e.senderPublicKey) == adv)) |
---|
15 | | - | then true |
---|
16 | | - | else false |
---|
| 12 | + | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), fromBase58String(assetId)) |
---|
| 13 | + | throw(toString(balance1)) |
---|
17 | 14 | | case e: ReissueTransaction => |
---|
18 | 15 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
19 | 16 | | then true |
---|
20 | 17 | | else false |
---|
21 | 18 | | case e: BurnTransaction => |
---|
22 | 19 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
23 | 20 | | then true |
---|
24 | 21 | | else false |
---|
25 | 22 | | case e: MassTransferTransaction => |
---|
26 | 23 | | if (if ((toBase58String(e.senderPublicKey) == system)) |
---|
27 | 24 | | then true |
---|
28 | 25 | | else (toBase58String(e.senderPublicKey) == adv)) |
---|
29 | 26 | | then true |
---|
30 | 27 | | else false |
---|
31 | 28 | | case e: SetAssetScriptTransaction => |
---|
32 | 29 | | if ((toBase58String(e.senderPublicKey) == system)) |
---|
33 | 30 | | then true |
---|
34 | 31 | | else false |
---|
35 | 32 | | case e: ExchangeTransaction => |
---|
36 | | - | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), fromBase58String(assetId)) |
---|
37 | | - | throw(toString(balance1)) |
---|
| 33 | + | true |
---|
38 | 34 | | case _ => |
---|
39 | 35 | | throw("Prohibited by contract") |
---|
40 | 36 | | } |
---|