tx · 6DMN3YWjw2nEPob1TqKyawh3x6dBR98oarHVJNaJEBAp
3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves
2019.07.04 11:49 [570459] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{
"type": 15,
"id": "6DMN3YWjw2nEPob1TqKyawh3x6dBR98oarHVJNaJEBAp",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1562230182038,
"version": 1,
"sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE",
"senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES",
"proofs": [
"3isfeq5w2hvUYeWwkQbCkqttpNTswwK7ykaGQ6dYfTwVUJzGahbEGW19YyG8oxXSip3cstQqz1k5qToXvxn2cw5Y"
],
"assetId": "7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29",
"script": "base64:AwQAAAAOb3duZXJQdWJsaWNLZXkBAAAAIEWL9bYTPmjYp+f8WUAtz6DaJ6KrIAyb2bOoFYKH1nAPBAAAAANLWUMJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTWNCDJr/AdVJ/HdBovhu37oPuYKPc8PVMEAAAAC1Bhc3NBc3NldElkAQAAACBg/bKkSalvO39oSPndnvUn1DFYSTpsagMRseVLRWFZYgoBAAAABWNoZWNrAAAAAQAAAAdhZGRyZXNzBAAAAA5zZW5kZXJBY2NlcHRlZAkABBsAAAACBQAAAANLWUMJAAJYAAAAAQgFAAAAB2FkZHJlc3MAAAAFYnl0ZXMDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAOc2VuZGVyQWNjZXB0ZWQJAQAAAAdleHRyYWN0AAAAAQUAAAAOc2VuZGVyQWNjZXB0ZWQHBAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAGVNldEFzc2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAYDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAADa2V5CQACWAAAAAEICAUAAAACdHgAAAAGc2VuZGVyAAAABWJ5dGVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MSkAAAACBQAAAANLWUMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAALYW1vdW50QXNzZXQICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAMJAAAAAAAAAgUAAAALYW1vdW50QXNzZXQFAAAAC1Bhc3NBc3NldElkCQEAAAAFY2hlY2sAAAABCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcgYHnHt0pg==",
"chainId": 84,
"height": 570459,
"spentComplexity": 0
}
View: original | compacted
Prev: 9tUJV3gbgLWGXUtYB6R5DDStB8wjN2ab3JwEkLFxnLMw
Next: yo4Sr4CNvzfEbRSXpMJBNSD7CS37bbW4X2jquHWVJhC
Diff:
Old | New | | Differences |
---|
3 | 3 | | let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES' |
---|
4 | 4 | | let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE') |
---|
5 | 5 | | let PassAssetId = base58'7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29' |
---|
6 | | - | func check (address) = extract(getBoolean(KYC, toBase58String(address.bytes))) |
---|
| 6 | + | func check (address) = { |
---|
| 7 | + | let senderAccepted = getBoolean(KYC, toBase58String(address.bytes)) |
---|
| 8 | + | if (isDefined(senderAccepted)) |
---|
| 9 | + | then extract(senderAccepted) |
---|
| 10 | + | else false |
---|
| 11 | + | } |
---|
7 | 12 | | |
---|
8 | 13 | | match tx { |
---|
9 | 14 | | case s: SetAssetScriptTransaction|ReissueTransaction => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES' |
---|
4 | 4 | | let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE') |
---|
5 | 5 | | let PassAssetId = base58'7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29' |
---|
6 | | - | func check (address) = extract(getBoolean(KYC, toBase58String(address.bytes))) |
---|
| 6 | + | func check (address) = { |
---|
| 7 | + | let senderAccepted = getBoolean(KYC, toBase58String(address.bytes)) |
---|
| 8 | + | if (isDefined(senderAccepted)) |
---|
| 9 | + | then extract(senderAccepted) |
---|
| 10 | + | else false |
---|
| 11 | + | } |
---|
7 | 12 | | |
---|
8 | 13 | | match tx { |
---|
9 | 14 | | case s: SetAssetScriptTransaction|ReissueTransaction => |
---|
10 | 15 | | true |
---|
11 | 16 | | case t: MassTransferTransaction|TransferTransaction => |
---|
12 | 17 | | let key = toBase58String(tx.sender.bytes) |
---|
13 | 18 | | getBooleanValue(KYC, key) |
---|
14 | 19 | | case e: ExchangeTransaction => |
---|
15 | 20 | | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
16 | 21 | | if ((amountAsset == PassAssetId)) |
---|
17 | 22 | | then check(e.sellOrder.sender) |
---|
18 | 23 | | else true |
---|
19 | 24 | | case _ => |
---|
20 | 25 | | false |
---|
21 | 26 | | } |
---|