tx · 2CKYVYvje8JaFmEhWynR4UCLEA7am2KtDCH2QkUsUVWx

3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW:  -1.00400000 Waves

2020.03.11 17:14 [904596] smart asset 3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW > SELF 0 PreSmartKey

{ "type": 15, "id": "2CKYVYvje8JaFmEhWynR4UCLEA7am2KtDCH2QkUsUVWx", "fee": 100400000, "feeAssetId": null, "timestamp": 1583936075921, "version": 1, "sender": "3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW", "senderPublicKey": "7wiL4SU2VfpuDUUtTqN4WrWXBp7awHtxk4BjkK1vYuSY", "proofs": [ "9myYhUZBa9bmToD3GkDoAxt7PVswssavcx6nSBVSAVFKUDe4jNqYTMfbBin7skL26UcFDiaxHBj8cQ13h6kxsmd" ], "assetId": "EaAk66w36Wo7mi1xgcHyjeaiCrsaerH1gJ3cKTePEz5o", "script": "base64:AgQAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUs/CL93FthWEyPB6G5SYCnsCIdjUWFfVfBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAJc2VuZGVyS2V5CQABLAAAAAICAAAAB3ByZV9za18JAAJYAAAAAQgIBQAAAAF0AAAABnNlbmRlcgAAAAVieXRlcwQAAAAPaXNTZW5kZXJBbGxvd2VkCQAAAAAAAAIJAAQaAAAAAgUAAAAGbWFzdGVyBQAAAAlzZW5kZXJLZXkAAAAAAAAAAAEDAwkAAAAAAAACCAUAAAABdAAAAAZzZW5kZXIFAAAABm1hc3RlcgYJAAAAAAAAAggFAAAAAXQAAAAJcmVjaXBpZW50BQAAAAZtYXN0ZXIGBQAAAA9pc1NlbmRlckFsbG93ZWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJtdAUAAAAHJG1hdGNoMAQAAAAJc2VuZGVyS2V5CQABLAAAAAICAAAAB3ByZV9za18JAAJYAAAAAQgIBQAAAAJtdAAAAAZzZW5kZXIAAAAFYnl0ZXMEAAAAD2lzU2VuZGVyQWxsb3dlZAkAAAAAAAACCQAEGgAAAAIFAAAABm1hc3RlcgUAAAAJc2VuZGVyS2V5AAAAAAAAAAABAwkAAAAAAAACCAUAAAACbXQAAAAGc2VuZGVyBQAAAAZtYXN0ZXIGBQAAAA9pc1NlbmRlckFsbG93ZWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAAlzZW5kZXJLZXkJAAEsAAAAAgIAAAAHcHJlX3NrXwkAAlgAAAABCAgIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyAAAABWJ5dGVzBAAAAA9pc1NlbmRlckFsbG93ZWQJAAAAAAAAAgkABBoAAAACBQAAAAZtYXN0ZXIFAAAACXNlbmRlcktleQAAAAAAAAAAAQMJAAAAAAAAAggIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyBQAAAAZtYXN0ZXIGBQAAAA9pc1NlbmRlckFsbG93ZWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABYgUAAAAHJG1hdGNoMAkAAAAAAAACCAUAAAABYgAAAAZzZW5kZXIFAAAABm1hc3RlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAYGozxe8g==", "chainId": 84, "height": 904596, "spentComplexity": 0 } View: original | compacted Prev: none Next: CFQAPXXaVLF73NS4iuypA6bEK4fqkVThedyXRX5zmMCS Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 2 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let master = Address(base58'3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW')
4+match tx {
5+ case t: TransferTransaction =>
6+ let senderKey = ("pre_sk_" + toBase58String(t.sender.bytes))
7+ let isSenderAllowed = (getInteger(master, senderKey) == 1)
8+ if (if ((t.sender == master))
9+ then true
10+ else (t.recipient == master))
11+ then true
12+ else isSenderAllowed
13+ case mt: MassTransferTransaction =>
14+ let senderKey = ("pre_sk_" + toBase58String(mt.sender.bytes))
15+ let isSenderAllowed = (getInteger(master, senderKey) == 1)
16+ if ((mt.sender == master))
17+ then true
18+ else isSenderAllowed
19+ case ex: ExchangeTransaction =>
20+ let senderKey = ("pre_sk_" + toBase58String(ex.sellOrder.sender.bytes))
21+ let isSenderAllowed = (getInteger(master, senderKey) == 1)
22+ if ((ex.sellOrder.sender == master))
23+ then true
24+ else isSenderAllowed
25+ case b: BurnTransaction =>
26+ (b.sender == master)
27+ case s: SetAssetScriptTransaction =>
28+ true
29+ case _ =>
30+ true
31+}

github/deemru/w8io/026f985 
13.62 ms