tx · 2TfawKNSnsVcGseCR2HLpWx6NZqxq7kK6atu9Mu9iY1M
3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8: -1.00400000 Waves
2021.01.18 01:34 [1358035] smart asset 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8 > SELF 0.00 Szczepan
{
"type": 15,
"id": "2TfawKNSnsVcGseCR2HLpWx6NZqxq7kK6atu9Mu9iY1M",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1610922834920,
"version": 2,
"chainId": 84,
"sender": "3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8",
"senderPublicKey": "62prNgRbWHRQAXh3a5sG95EtrJoYEsuUAgwkg3F4Kt6k",
"proofs": [
"5VMF4Fe757JinVWtmTTbHDUbwqUMxPZt5pHRWbyMJTvaXGwXst1kbYiZBVYt7YW3qxapKjpMA1fUqafG4vtMWB1z"
],
"assetId": "GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo",
"script": "base64:BAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAFYWRyZXMEAAAAByRtYXRjaDEJAAPsAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCAUAAAABdAAAAAdhc3NldElkAgAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDECAAAABUFzc2V0BAAAAAVhc3NldAUAAAAHJG1hdGNoMQgFAAAABWFzc2V0AAAABmlzc3VlcgkBAAAABXRocm93AAAAAAMJAAAAAAAAAggFAAAAAXQAAAAGc2VuZGVyBQAAAAVhZHJlcwYEAAAACGZlZWFzc2V0CQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAVhZHJlcwIAAAAIZmVlYXNzZXQEAAAAA2ZlZQkAAlgAAAABCQEAAAALdmFsdWVPckVsc2UAAAACCAUAAAABdAAAAApmZWVBc3NldElkAQAAAAADCQAAAAAAAAIFAAAAA2ZlZQUAAAAIZmVlYXNzZXQGBAAAAAlrb211bmlrYXQJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABWFkcmVzAgAAAAlrb211bmlrYXQJAAACAAAAAQUAAAAJa29tdW5pa2F0Bphk3uw=",
"height": 1358035,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8KrwYMp64AsQtGK7GgqfCnknnnVLpz8wjbAQCNwC4wQn
Next: none
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let adres = Address(base58'3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8') |
---|
4 | 3 | | match tx { |
---|
5 | 4 | | case t: MassTransferTransaction|TransferTransaction => |
---|
6 | | - | if ((t.sender == addressFromString("3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8"))) |
---|
| 5 | + | let adres = match assetInfo(valueOrErrorMessage(t.assetId, "")) { |
---|
| 6 | + | case asset: Asset => |
---|
| 7 | + | asset.issuer |
---|
| 8 | + | case _ => |
---|
| 9 | + | throw() |
---|
| 10 | + | } |
---|
| 11 | + | if ((t.sender == adres)) |
---|
7 | 12 | | then true |
---|
8 | 13 | | else { |
---|
9 | 14 | | let feeasset = getStringValue(adres, "feeasset") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | let adres = Address(base58'3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8') |
---|
4 | 3 | | match tx { |
---|
5 | 4 | | case t: MassTransferTransaction|TransferTransaction => |
---|
6 | | - | if ((t.sender == addressFromString("3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8"))) |
---|
| 5 | + | let adres = match assetInfo(valueOrErrorMessage(t.assetId, "")) { |
---|
| 6 | + | case asset: Asset => |
---|
| 7 | + | asset.issuer |
---|
| 8 | + | case _ => |
---|
| 9 | + | throw() |
---|
| 10 | + | } |
---|
| 11 | + | if ((t.sender == adres)) |
---|
7 | 12 | | then true |
---|
8 | 13 | | else { |
---|
9 | 14 | | let feeasset = getStringValue(adres, "feeasset") |
---|
10 | 15 | | let fee = toBase58String(valueOrElse(t.feeAssetId, base58'')) |
---|
11 | 16 | | if ((fee == feeasset)) |
---|
12 | 17 | | then true |
---|
13 | 18 | | else { |
---|
14 | 19 | | let komunikat = getStringValue(adres, "komunikat") |
---|
15 | 20 | | throw(komunikat) |
---|
16 | 21 | | } |
---|
17 | 22 | | } |
---|
18 | 23 | | case _ => |
---|
19 | 24 | | true |
---|
20 | 25 | | } |
---|