def test_from_data(self): data = { "type": 15, "version": 1, "id": "8M6dgn85eh3bsHrVhWng8FNaHBcHEJD4MPZ5ZzCciyon", "sender": "3Jq8mnhRquuXCiFUwTLZFVSzmQt3Fu6F7HQ", "senderKeyType": "ed25519", "senderPublicKey": "AJVNfYjTvDD2GWKPejHbKPLxdvwXjAnhJzo6KCv17nne", "fee": 35000000, "timestamp": 1326499200000, "anchors": ["5SbkwAekNbaG8P1mTDdAE88mpWtCdET9vTmV2v9vQsCK"], "proofs": [ "4aMwABCZwtXrGGKmBdHdR5VVFqG51v5dPoyfDVZ7jfgD3jqc851ME5QkToQdfSRTqQmvnB9YT4tCBPcMzi59fZye" ], "height": 1069662 } transaction = Anchor.from_data(data) crypto.compare_data_transaction(data, transaction)
def test_from_data(self): data = { "type": 19, "version": 3, "recipient": "3N9ChkxWXqgdWLLErWFrSwjqARB6NtYsvZh", "id": "53r3mwknCUJmyacf1TP1A5zUGCF9z3N951Zegs9UrkZD", "sender": "3NBcx7AQqDopBj3WfwCVARNYuZyt1L9xEVM", "senderKeyType": "ed25519", "senderPublicKey": "7gghhSwKRvshZwwh6sG97mzo1qoFtHEQK7iM4vGcnEt7", "timestamp": 1610412950000, "fee": 500000000, "proofs": [ "RexaACH8AVfNKQcKDRVCvF2nSAzJLZPyUTtD9KmtikBy5CVCpVeBp78m2Myy7ekkecDMaJwERjgTVxjSxeLd8Da" ], "height": 1225860 } transaction = CancelSponsorship(data['recipient']).from_data(data) crypto.compare_data_transaction(data, transaction)
def test_from_data(self): data = { "type": 9, "version": 3, "id": "BLMA4vkfe2S5UFHnoPyTh8SJmpTA1deh5SnWk1bdfjhq", "sender": "3MtHYnCkd3oFZr21yb2vEdngcSGXvuNNCq2", "senderKeyType": 'ed25519', "senderPublicKey": "4EcSxUkMxqxBEBUBL2oKz3ARVsbyRJTivWpNrYQGdguz", "timestamp": 1519862400, "fee": 100000000, "leaseId": "B22YzYdNv7DCqMqdK2ckpt53gQuYq2v997N7g8agZoHo", "proofs": [ "2AKUBja93hF8AC2ee21m9AtedomXZNQG5J3FZMU85avjKF9B8CL45RWyXkXEeYb13r1AhpSzRvcudye39xggtDHv" ] } transaction = CancelLease(lease_id='').from_data(data) crypto.compare_data_transaction(data, transaction)
def test_from_data(self): data = { "type": 11, "version": 3, "id": "BG7MQF8KffVU6MMbJW5xPowVQsohwJhfEJ4wSF8cWdC2", "sender": "3HhQxe5kLwuTfE3psYcorrhogY4fCwz2BSh", "senderKeyType": "Ed25519", "senderPublicKey": "7eAkEXtFGRPQ9pxjhtcQtbH889n8xSPWuswKfW2v3iK4", "fee": 200000, "timestamp": 1518091313964, "proofs": ["4Ph6RpcPFfBhU2fx6JgcHLwBuYSpn..."], "attachment": "59QuUcqP6p", "transfers": [{ "recipient": "3HUQa6qtLhNvBJNyPV1pDRahbrcuQkaDQv2", "amount": 100000000 }, { "recipient": "3HaAdZcCXAqhvFj113Gbe3Kww4rCGMUZaEZ", "amount": 200000000 }] } transaction = MassTransfer(transfers='').from_data(data) crypto.compare_data_transaction(data, transaction)
def test_from_data(self): data = { "type": 18, "version": 1, "id": "8S2vD5dGCPhwS8jLzNQpSRYDBGXv6GKq6qT5yXUBWPgb", "sender": "3NBcx7AQqDopBj3WfwCVARNYuZyt1L9xEVM", "senderPublicKey": "7gghhSwKRvshZwwh6sG97mzo1qoFtHEQK7iM4vGcnEt7", "recipient": "3N9ChkxWXqgdWLLErWFrSwjqARB6NtYsvZh", "timestamp": 1610410901000, "fee": 500000000, "proofs": [ "QKef6R8LrMBupBF9Ry8zjFTu3mexC55J6XNofDDQEcJnZJsRjZPnAk6Yn2eiHkqqd2uSjB2r58fC8QVLaVegQEz" ], "height": 1225821 } transaction = Sponsorship(data['recipient']).from_data(data) crypto.compare_data_transaction(data, transaction)
def test_from_data(self): data = { "type": 16, "version": 1, "recipient": "3N9ChkxWXqgdWLLErWFrSwjqARB6NtYsvZh", "associationType": 1, "hash": "3yMApqCuCjXDWPrbjfR5mjCPTHqFG8Pux1TxQrEM35jj", "id": "1uZqDjRjaehEceSxrVxz6WD6wt8su8TBHyDLQ1KFnJo", "sender": "3NBcx7AQqDopBj3WfwCVARNYuZyt1L9xEVM", "senderPublicKey": "7gghhSwKRvshZwwh6sG97mzo1qoFtHEQK7iM4vGcnEt7", "timestamp": 1610404930000, "fee": 100000000, "proofs": [ "2jQMruoLoshfKe6FAUbA9vmVVvAt8bVpCFyM75Z2PLJiuRmjmLzFpM2UmgQ6E73qn46AVQprQJPBhQe92S7iSXbZ" ], "height": 1225712 } transaction = RevokeAssociation(recipient='', association_type='').from_data(data) crypto.compare_data_transaction(data, transaction)
def test_from_data(self): data = { "id": "5a1ZVJTu8Y7mPA6BbkvGdfmbjvz9YSppQXPnb5MxihV5", "type": 4, "version": 3, "sender": "3N9ChkxWXqgdWLLErWFrSwjqARB6NtYsvZh", "senderPublicKey": "9NFb1rvMyr1k8f3wu3UP1RaEGsozBt9gF2CmPMGGA42m", "fee": 100000000, "timestamp": 1609639213556, "amount": 100000000000, "recipient": "3NBcx7AQqDopBj3WfwCVARNYuZyt1L9xEVM", "attachment": "9Ajdvzr", "proofs": [ "3ftQ2ArKKXw655WdHy2TK1MGXeyzKRqMQYwFidekkyxLpzFGsTziSFsbM5RCFxrn32EzisMgPWtQVQ4e5UqKUcES" ], "height": 1212761 } transaction = Transfer(recipient=data['recipient'], amount=data['amount']).from_data(data) crypto.compare_data_transaction(data, transaction)
def test_from_data(self): data = { "id": "895ryYABK7KQWLvSbw8o8YSjTTXHCqRJw1yzC63j4Fgk", "type" : 8, "version": 3, "sender" : "3HgqG68qfeVz5dqbyvqnxQceFaH49xmGvUS", "amount" : 1, "senderKeyType": 'ed25519', "senderPublicKey" : "DddGQs63eWAA1G1ZJnJDVSrCpMS97NH4odnggwUV42kE", "fee" : 500000000, "timestamp" : 1495625418143, "proofs" : "2SUmFj4zo7NfZK7Xoqvqh7m7bhzFR8rT7eLtqe9Rrp18ugFH9SSvoTx1BtekWhU7PN1uLrnQCpJdS8JhmcBAjmb9", "recipient": "3N8TQ1NLN8KcwJnVZM777GUCdUnEZWZ85Rb" } transaction = Lease(amount=1, recipient='3N8TQ1NLN8KcwJnVZM777GUCdUnEZWZ85Rb').from_data(data) crypto.compare_data_transaction(data, transaction)
def test_from_data(self): data = { "type": 20, "version": 3, "id": "8M6dgn85eh3bsHrVhWng8FNaHBcHEJD4MPZ5ZzCciyon", "sender": "3Jq8mnhRquuXCiFUwTLZFVSzmQt3Fu6F7HQ", "senderKeyType": "ed25519", "senderPublicKey": "AJVNfYjTvDD2GWKPejHbKPLxdvwXjAnhJzo6KCv17nne", "fee": 45000000, "timestamp": 1326499200000, "accounts": [{ 'keyType': 'ed25519', 'publicKey': '8VNd1qLRyRSNdqfkjDffpFkdeUrPCGEL3btzkcr98ykX' }, { 'keyType': 'ed25519', 'publicKey': '7YVCTAzyAjrtRw5RsxjfonCn3tUrfgtYcy5xd2niqWDa' }], "proofs": [ "2omugkAQdrm9P7YPx6WZbXMBTifRS6ptaTT8rPRRvKFr1EPFafHSosq6HzkuuLv78gR6vaXLA9WtMsTSBgi3H1qe" ], "height": 1069662 } transaction = Register.from_data(data) crypto.compare_data_transaction(data, transaction)