tx · 99BWDngao4qU9TkvLFt99HMoBqeiekUnMNPZiD6zEBBx

3PMMhkehvBq5R5tAhCspsZU97r1cb9M4f8v:  -0.01400000 Waves

2019.11.18 13:04 [1800711] smart account 3PMMhkehvBq5R5tAhCspsZU97r1cb9M4f8v > SELF 0.00000000 Waves

{ "type": 13, "id": "99BWDngao4qU9TkvLFt99HMoBqeiekUnMNPZiD6zEBBx", "fee": 1400000, "feeAssetId": null, "timestamp": 1574071594547, "version": 1, "sender": "3PMMhkehvBq5R5tAhCspsZU97r1cb9M4f8v", "senderPublicKey": "8ZfeBJWwoGb8uKRDxY5qy73mqXbEmutQ6QAUvxctphZ", "proofs": [ "5z84FGRfX2RHS6ojyR6zVuWEZbvYhpNnohgSgwRfUmB5JCLQwrinGFhvbF7RDcKKhFC5jGu6vnCxaiNW3GQ4K2Kt", "fmWczRmUY9C3LdEb6pPL4hq6KwRagH1RXoXXTgL3nhwB7FiM4giagsUR4Qq52L4yN4R6heFAFiXfkoaD6CCe6D1" ], "script": "base64:AwQAAAAHYXNzZXRJZAEAAAAgiEW64ARXw/t+nKroLmO/NjYfHGv7F0WhqaxPCaX+jWkEAAAAEHdoaXRlTGlzdEFkZHJlc3MCAAAAIzNQRXZ0UnhQSnl5cHM3Y0tSa0xiS0ZBUThxYmRjenBMa0I5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMJAQAAAAIhPQAAAAIIBQAAAAF0AAAAB2Fzc2V0SWQFAAAAB2Fzc2V0SWQJAAH0AAAAAwgFAAAAAXQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BAAAABByZWNpcGllbnRBZGRyZXNzCQAEJQAAAAEJAAQkAAAAAQgFAAAAAXQAAAAJcmVjaXBpZW50B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AACdHgAAAAPc2VuZGVyUHVibGljS2V5BwkAAAIAAAABAgAAABRCYWQgdHJhbnNhY3Rpb24gdHlwZfJPJqA=", "chainId": 87, "height": 1800711, "spentComplexity": 0 } View: original | compacted Prev: Atr3qdo9F3k6XoV7M1rnyspsnQoQhxyxHrbMmFpYgZkd Next: 2bYGA7X5f2PviZm27AzRSFBATE3gcnmTzDGEajxvi8XT Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let assetId = base58'AAx7kicknEXkWUqSF1DKXp7bQHH6Z383Bw9H5v16MgFJ'
44 let whiteListAddress = "3PEvtRxPJyyps7cKRkLbKFAQ8qbdczpLkB9"
55 match tx {
66 case t: TransferTransaction =>
77 if ((t.assetId != assetId))
88 then sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
99 else {
1010 let recipientAddress = toString(addressFromRecipient(t.recipient))
1111 let addressIsAllowed = getBoolean(addressFromStringValue(whiteListAddress), recipientAddress)
1212 match addressIsAllowed {
1313 case b: Boolean =>
1414 (b == true)
1515 case _ =>
1616 throw("You can send this token only to white-listed addresses")
1717 }
1818 }
1919 case s: SetScriptTransaction =>
2020 let assetIssuerPublicKey = extract(assetInfo(assetId)).issuerPublicKey
2121 if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
2222 then sigVerify(tx.bodyBytes, tx.proofs[1], assetIssuerPublicKey)
2323 else false
2424 case i: InvokeScriptTransaction =>
2525 if ((toString(addressFromRecipient(i.dApp)) == whiteListAddress))
2626 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2727 else false
2828 case _ =>
2929 throw("Bad transaction type")
3030 }

github/deemru/w8io/fabc49c 
121.33 ms