tx · CBEBfrKr3CNyvi7JKyAjffgGkVyaX34CyhVVgUxWdCwA
3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w: -1.00000000 Waves
2019.02.02 02:38 [476591] smart asset 3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w > SELF 0.00000000 mytest1
{
"type": 15,
"id": "CBEBfrKr3CNyvi7JKyAjffgGkVyaX34CyhVVgUxWdCwA",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1549064342972,
"version": 1,
"sender": "3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w",
"senderPublicKey": "5NKM8mtxgaEeB89FzmujLBdJrJXkYBkftRoTffUS53f",
"proofs": [
"42T78z9ZHEwrVLBTqjzLwpbyws33fWb97AgVqDjKCHiC9oiTymLtEoNWhJdGEPYCnW5SovWLcihFRYMh4LEngtTn"
],
"assetId": "FivmKRkvFdVhSHBtxQ1UFj4EmbAd87pk2hKenwnbdwsK",
"script": "base64:AQQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUatQCCuE3RLHy+k6O3owtbPTUFUwOIaG2BAAAAAZzZW5kZXIJAAJYAAAAAQgJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkAAAAFYnl0ZXMEAAAACGlzRnJvemVuCQEAAAAHZXh0cmFjdAAAAAEJAAQbAAAAAgUAAAAGaXNzdWVyAgAAAAtUb2tlbkZyb3plbgQAAAANaXNPbkJsYWNrbGlzdAkBAAAACWlzRGVmaW5lZAAAAAEJAAQbAAAAAgUAAAAGaXNzdWVyBQAAAAZzZW5kZXIDCQAAAAAAAAIFAAAABmlzc3VlcggFAAAAAnR4AAAABnNlbmRlcgQAAAAHJG1hdGNoMAUAAAACdHgGAwUAAAAIaXNGcm96ZW4EAAAAByRtYXRjaDAFAAAAAnR4BwMFAAAADWlzT25CbGFja2xpc3QEAAAACWlzQmxvY2tlZAkBAAAAB2V4dHJhY3QAAAABCQAEGwAAAAIFAAAABmlzc3VlcgUAAAAGc2VuZGVyAwUAAAAJaXNCbG9ja2VkBAAAAAckbWF0Y2gwBQAAAAJ0eAcEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAWIFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAFyBQAAAAckbWF0Y2gwBwYEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAWIFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAFyBQAAAAckbWF0Y2gwBwZeDZE4",
"chainId": 84,
"height": 476591,
"spentComplexity": 0
}
View: original | compacted
Prev: Ee4Uh6DCa8nLhxCP1z3NGfVW28nTWEoH5p9ajJsWZSSE
Next: JA5saJFBVNuAGoJHRad8fm7AAGGVwiPTJCDbJs6axHct
Diff:
Old | New | | Differences |
---|
15 | 15 | | false |
---|
16 | 16 | | } |
---|
17 | 17 | | else if (isOnBlacklist) |
---|
18 | | - | then match tx { |
---|
19 | | - | case _ => |
---|
20 | | - | extract(getBoolean(issuer, sender)) |
---|
21 | | - | } |
---|
| 18 | + | then { |
---|
| 19 | + | let isBlocked = extract(getBoolean(issuer, sender)) |
---|
| 20 | + | if (isBlocked) |
---|
| 21 | + | then match tx { |
---|
| 22 | + | case _ => |
---|
| 23 | + | false |
---|
| 24 | + | } |
---|
| 25 | + | else match tx { |
---|
| 26 | + | case b: BurnTransaction => |
---|
| 27 | + | false |
---|
| 28 | + | case s: SetAssetScriptTransaction => |
---|
| 29 | + | false |
---|
| 30 | + | case r: ReissueTransaction => |
---|
| 31 | + | false |
---|
| 32 | + | case _ => |
---|
| 33 | + | true |
---|
| 34 | + | } |
---|
| 35 | + | } |
---|
22 | 36 | | else match tx { |
---|
23 | 37 | | case b: BurnTransaction => |
---|
24 | 38 | | false |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let issuer = Address(base58'3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w') |
---|
4 | 4 | | let sender = toBase58String(addressFromPublicKey(tx.senderPublicKey).bytes) |
---|
5 | 5 | | let isFrozen = extract(getBoolean(issuer, "TokenFrozen")) |
---|
6 | 6 | | let isOnBlacklist = isDefined(getBoolean(issuer, sender)) |
---|
7 | 7 | | if ((issuer == tx.sender)) |
---|
8 | 8 | | then match tx { |
---|
9 | 9 | | case _ => |
---|
10 | 10 | | true |
---|
11 | 11 | | } |
---|
12 | 12 | | else if (isFrozen) |
---|
13 | 13 | | then match tx { |
---|
14 | 14 | | case _ => |
---|
15 | 15 | | false |
---|
16 | 16 | | } |
---|
17 | 17 | | else if (isOnBlacklist) |
---|
18 | | - | then match tx { |
---|
19 | | - | case _ => |
---|
20 | | - | extract(getBoolean(issuer, sender)) |
---|
21 | | - | } |
---|
| 18 | + | then { |
---|
| 19 | + | let isBlocked = extract(getBoolean(issuer, sender)) |
---|
| 20 | + | if (isBlocked) |
---|
| 21 | + | then match tx { |
---|
| 22 | + | case _ => |
---|
| 23 | + | false |
---|
| 24 | + | } |
---|
| 25 | + | else match tx { |
---|
| 26 | + | case b: BurnTransaction => |
---|
| 27 | + | false |
---|
| 28 | + | case s: SetAssetScriptTransaction => |
---|
| 29 | + | false |
---|
| 30 | + | case r: ReissueTransaction => |
---|
| 31 | + | false |
---|
| 32 | + | case _ => |
---|
| 33 | + | true |
---|
| 34 | + | } |
---|
| 35 | + | } |
---|
22 | 36 | | else match tx { |
---|
23 | 37 | | case b: BurnTransaction => |
---|
24 | 38 | | false |
---|
25 | 39 | | case s: SetAssetScriptTransaction => |
---|
26 | 40 | | false |
---|
27 | 41 | | case r: ReissueTransaction => |
---|
28 | 42 | | false |
---|
29 | 43 | | case _ => |
---|
30 | 44 | | true |
---|
31 | 45 | | } |
---|