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:
OldNewDifferences
1515 false
1616 }
1717 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+ }
2236 else match tx {
2337 case b: BurnTransaction =>
2438 false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let issuer = Address(base58'3MyewNpvp22jvzpxx2qxM2HFTowsqUEPo5w')
44 let sender = toBase58String(addressFromPublicKey(tx.senderPublicKey).bytes)
55 let isFrozen = extract(getBoolean(issuer, "TokenFrozen"))
66 let isOnBlacklist = isDefined(getBoolean(issuer, sender))
77 if ((issuer == tx.sender))
88 then match tx {
99 case _ =>
1010 true
1111 }
1212 else if (isFrozen)
1313 then match tx {
1414 case _ =>
1515 false
1616 }
1717 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+ }
2236 else match tx {
2337 case b: BurnTransaction =>
2438 false
2539 case s: SetAssetScriptTransaction =>
2640 false
2741 case r: ReissueTransaction =>
2842 false
2943 case _ =>
3044 true
3145 }

github/deemru/w8io/026f985 
35.37 ms