def encoded_message(self) -> bytes: return b"".join([ int_to_bytes(self.tx_type(), 1), serialize_account_id(self.initiator_account_id), serialize_address(self.target), serialize_token_id(self.token.id), packed_fee_checked(self.fee), serialize_nonce(self.nonce), serialize_timestamp(self.valid_from), serialize_timestamp(self.valid_until) ])
def encoded_message(self) -> bytes: return b"".join([ int_to_bytes(self.tx_type(), 1), serialize_account_id(self.account_id), serialize_address(self.from_address), serialize_address(self.to_address), serialize_token_id(self.token.id), int_to_bytes(self.amount, length=16), packed_fee_checked(self.fee), serialize_nonce(self.nonce), serialize_timestamp(self.valid_from), serialize_timestamp(self.valid_until) ])
def encoded_message(self) -> bytes: return b"".join([ int_to_bytes(0xff - self.tx_type(), 1), int_to_bytes(TRANSACTION_VERSION, 1), serialize_account_id(self.account_id), serialize_address(self.account), serialize_address(self.new_pk_hash), serialize_token_id(self.token.id), packed_fee_checked(self.fee), serialize_nonce(self.nonce), serialize_timestamp(self.valid_from), serialize_timestamp(self.valid_until) ])
def encoded_message(self) -> bytes: return b"".join([ int_to_bytes(self.msg_type(), 1), int_to_bytes(TRANSACTION_VERSION, 1), serialize_account_id(self.account_id), serialize_address(self.recipient), serialize_nonce(self.nonce), serialize_token_id(self.token_sell.id), serialize_token_id(self.token_buy.id), serialize_ratio_part(self.ratio.numerator), serialize_ratio_part(self.ratio.denominator), packed_amount_checked(self.amount), serialize_timestamp(self.valid_from), serialize_timestamp(self.valid_until) ])